@Namespace(value="cv::text") @Properties(inherit=opencv_text.class) public class TextDetectorCNN extends TextDetector
opencv_contrib/modules/text/samples/textbox.prototxt
.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TextDetectorCNN(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static TextDetectorCNN |
create(BytePointer modelArchFilename,
BytePointer modelWeightsFilename)
\overload
|
static TextDetectorCNN |
create(BytePointer modelArchFilename,
BytePointer modelWeightsFilename,
SizeVector detectionSizes)
\brief Creates an instance of the TextDetectorCNN class using the provided parameters.
|
static TextDetectorCNN |
create(String modelArchFilename,
String modelWeightsFilename) |
static TextDetectorCNN |
create(String modelArchFilename,
String modelWeightsFilename,
SizeVector detectionSizes) |
void |
detect(GpuMat inputImage,
RectVector Bbox,
FloatVector confidence) |
void |
detect(Mat inputImage,
RectVector Bbox,
FloatVector confidence)
\overload
|
void |
detect(UMat inputImage,
RectVector Bbox,
FloatVector confidence) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public TextDetectorCNN(Pointer p)
Pointer.Pointer(Pointer)
.public void detect(@ByVal Mat inputImage, @ByRef RectVector Bbox, @ByRef FloatVector confidence)
detect
in class TextDetector
inputImage
- an image expected to be a CV_U8C3 of any sizeBbox
- a vector of Rect that will store the detected word bounding boxconfidence
- a vector of float that will be updated with the confidence the classifier has for the selected bounding boxpublic void detect(@ByVal UMat inputImage, @ByRef RectVector Bbox, @ByRef FloatVector confidence)
detect
in class TextDetector
public void detect(@ByVal GpuMat inputImage, @ByRef RectVector Bbox, @ByRef FloatVector confidence)
detect
in class TextDetector
@opencv_core.Ptr public static TextDetectorCNN create(@opencv_core.Str BytePointer modelArchFilename, @opencv_core.Str BytePointer modelWeightsFilename, @ByVal SizeVector detectionSizes)
modelArchFilename
- the relative or absolute path to the prototxt file describing the classifiers architecture.modelWeightsFilename
- the relative or absolute path to the file containing the pretrained weights of the model in caffe-binary form.detectionSizes
- a list of sizes for multiscale detection. The values[(300,300),(700,500),(700,300),(700,700),(1600,1600)]
are
recommended in \cite LiaoSBWL17 to achieve the best quality.@opencv_core.Ptr public static TextDetectorCNN create(@opencv_core.Str String modelArchFilename, @opencv_core.Str String modelWeightsFilename, @ByVal SizeVector detectionSizes)
@opencv_core.Ptr public static TextDetectorCNN create(@opencv_core.Str BytePointer modelArchFilename, @opencv_core.Str BytePointer modelWeightsFilename)
@opencv_core.Ptr public static TextDetectorCNN create(@opencv_core.Str String modelArchFilename, @opencv_core.Str String modelWeightsFilename)
Copyright © 2020. All rights reserved.