@Namespace(value="cv::barcode") @NoOffset @Properties(inherit=opencv_barcode.class) public class BarcodeDetector extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
BarcodeDetector() |
BarcodeDetector(BytePointer prototxt_path,
BytePointer model_path)
\brief Initialize the BarcodeDetector.
|
BarcodeDetector(long size)
Native array allocator.
|
BarcodeDetector(Pointer p)
Pointer cast constructor.
|
BarcodeDetector(String prototxt_path,
String model_path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
decode(GpuMat img,
GpuMat points,
StringVector decoded_info,
int[] decoded_type) |
boolean |
decode(GpuMat img,
GpuMat points,
StringVector decoded_info,
IntBuffer decoded_type) |
boolean |
decode(GpuMat img,
GpuMat points,
StringVector decoded_info,
IntPointer decoded_type) |
boolean |
decode(Mat img,
Mat points,
StringVector decoded_info,
int[] decoded_type) |
boolean |
decode(Mat img,
Mat points,
StringVector decoded_info,
IntBuffer decoded_type) |
boolean |
decode(Mat img,
Mat points,
StringVector decoded_info,
IntPointer decoded_type)
\brief Decodes barcode in image once it's found by the detect() method.
|
boolean |
decode(UMat img,
UMat points,
StringVector decoded_info,
int[] decoded_type) |
boolean |
decode(UMat img,
UMat points,
StringVector decoded_info,
IntBuffer decoded_type) |
boolean |
decode(UMat img,
UMat points,
StringVector decoded_info,
IntPointer decoded_type) |
boolean |
detect(GpuMat img,
GpuMat points) |
boolean |
detect(Mat img,
Mat points)
\brief Detects Barcode in image and returns the rectangle(s) containing the code.
|
boolean |
detect(UMat img,
UMat points) |
boolean |
detectAndDecode(GpuMat img,
StringVector decoded_info,
int[] decoded_type) |
boolean |
detectAndDecode(GpuMat img,
StringVector decoded_info,
int[] decoded_type,
GpuMat points) |
boolean |
detectAndDecode(GpuMat img,
StringVector decoded_info,
IntBuffer decoded_type) |
boolean |
detectAndDecode(GpuMat img,
StringVector decoded_info,
IntBuffer decoded_type,
GpuMat points) |
boolean |
detectAndDecode(GpuMat img,
StringVector decoded_info,
IntPointer decoded_type) |
boolean |
detectAndDecode(GpuMat img,
StringVector decoded_info,
IntPointer decoded_type,
GpuMat points) |
boolean |
detectAndDecode(Mat img,
StringVector decoded_info,
int[] decoded_type) |
boolean |
detectAndDecode(Mat img,
StringVector decoded_info,
int[] decoded_type,
Mat points) |
boolean |
detectAndDecode(Mat img,
StringVector decoded_info,
IntBuffer decoded_type) |
boolean |
detectAndDecode(Mat img,
StringVector decoded_info,
IntBuffer decoded_type,
Mat points) |
boolean |
detectAndDecode(Mat img,
StringVector decoded_info,
IntPointer decoded_type) |
boolean |
detectAndDecode(Mat img,
StringVector decoded_info,
IntPointer decoded_type,
Mat points)
\brief Both detects and decodes barcode
|
boolean |
detectAndDecode(UMat img,
StringVector decoded_info,
int[] decoded_type) |
boolean |
detectAndDecode(UMat img,
StringVector decoded_info,
int[] decoded_type,
UMat points) |
boolean |
detectAndDecode(UMat img,
StringVector decoded_info,
IntBuffer decoded_type) |
boolean |
detectAndDecode(UMat img,
StringVector decoded_info,
IntBuffer decoded_type,
UMat points) |
boolean |
detectAndDecode(UMat img,
StringVector decoded_info,
IntPointer decoded_type) |
boolean |
detectAndDecode(UMat img,
StringVector decoded_info,
IntPointer decoded_type,
UMat points) |
BarcodeDetector |
getPointer(long i) |
BarcodeDetector |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic BarcodeDetector(Pointer p)
Pointer(Pointer).public BarcodeDetector(long size)
Pointer.position(long).public BarcodeDetector(@StdString BytePointer prototxt_path, @StdString BytePointer model_path)
prototxt_path - prototxt file path for the super resolution modelmodel_path - model file path for the super resolution modelpublic BarcodeDetector()
public BarcodeDetector(@StdString String prototxt_path, @StdString String model_path)
public BarcodeDetector position(long position)
public BarcodeDetector getPointer(long i)
getPointer in class Pointer@Cast(value="bool") public boolean detect(@ByVal Mat img, @ByVal Mat points)
img - grayscale or color (BGR) image containing (or not) Barcode.points - Output vector of vector of vertices of the minimum-area rotated rectangle containing the codes.
For N detected barcodes, the dimensions of this array should be [N][4].
Order of four points in vector< Point2f> is bottomLeft, topLeft, topRight, bottomRight.@Cast(value="bool") public boolean decode(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type)
img - grayscale or color (BGR) image containing bar code.points - vector of rotated rectangle vertices found by detect() method (or some other algorithm).
For N detected barcodes, the dimensions of this array should be [N][4].
Order of four points in vectordecoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.decoded_type - vector of BarcodeType, specifies the type of these barcodes@Cast(value="bool") public boolean decode(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type)
@Cast(value="bool") public boolean decode(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type)
@Cast(value="bool") public boolean decode(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type)
@Cast(value="bool") public boolean decode(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type)
@Cast(value="bool") public boolean decode(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type)
@Cast(value="bool") public boolean decode(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type)
@Cast(value="bool") public boolean decode(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type)
@Cast(value="bool") public boolean decode(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal Mat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points)
img - grayscale or color (BGR) image containing barcode.decoded_info - UTF8-encoded output vector of string(s) or empty vector of string if the codes cannot be decoded.decoded_type - vector of BarcodeType, specifies the type of these barcodespoints - optional output vector of vertices of the found barcode rectangle. Will be empty if not found.@Cast(value="bool") public boolean detectAndDecode(@ByVal Mat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal Mat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal Mat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal Mat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal Mat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal UMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal UMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal UMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal UMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal UMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal UMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal GpuMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal GpuMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntPointer decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal GpuMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal GpuMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector IntBuffer decoded_type)
@Cast(value="bool") public boolean detectAndDecode(@ByVal GpuMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points)
@Cast(value="bool") public boolean detectAndDecode(@ByVal GpuMat img, @ByRef StringVector decoded_info, @Cast(value="cv::barcode::BarcodeType*") @StdVector int[] decoded_type)
Copyright © 2021. All rights reserved.