public static class opencv_text.OCRHMMDecoder.ClassifierCallback
extends org.bytedeco.javacpp.Pointer
This way it hides the feature extractor and the classifier itself, so developers can write their own OCR code.
The default character classifier and feature extractor can be loaded using the utility function
loadOCRHMMClassifierNM and KNN model provided in
| Constructor and Description |
|---|
ClassifierCallback()
Default native constructor.
|
ClassifierCallback(long size)
Native array allocator.
|
ClassifierCallback(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
eval(opencv_core.GpuMat image,
int[] out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.GpuMat image,
IntBuffer out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.GpuMat image,
org.bytedeco.javacpp.IntPointer out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.Mat image,
int[] out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.Mat image,
IntBuffer out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.Mat image,
org.bytedeco.javacpp.IntPointer out_class,
opencv_text.DoubleVector out_confidence)
\brief The character classifier must return a (ranked list of) class(es) id('s)
|
void |
eval(opencv_core.UMat image,
int[] out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.UMat image,
IntBuffer out_class,
opencv_text.DoubleVector out_confidence) |
void |
eval(opencv_core.UMat image,
org.bytedeco.javacpp.IntPointer out_class,
opencv_text.DoubleVector out_confidence) |
opencv_text.OCRHMMDecoder.ClassifierCallback |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ClassifierCallback()
public ClassifierCallback(long size)
Pointer.position(long).public ClassifierCallback(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public opencv_text.OCRHMMDecoder.ClassifierCallback position(long position)
position in class org.bytedeco.javacpp.Pointerpublic void eval(@ByVal
opencv_core.Mat image,
@StdVector
org.bytedeco.javacpp.IntPointer out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
image - Input image CV_8UC1 or CV_8UC3 with a single letter.out_class - The classifier returns the character class categorical label, or list of
class labels, to which the input image corresponds.out_confidence - The classifier returns the probability of the input image
corresponding to each classes in out_class.public void eval(@ByVal
opencv_core.Mat image,
@StdVector
IntBuffer out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.Mat image,
@StdVector
int[] out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.UMat image,
@StdVector
org.bytedeco.javacpp.IntPointer out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.UMat image,
@StdVector
IntBuffer out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.UMat image,
@StdVector
int[] out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.GpuMat image,
@StdVector
org.bytedeco.javacpp.IntPointer out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.GpuMat image,
@StdVector
IntBuffer out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
public void eval(@ByVal
opencv_core.GpuMat image,
@StdVector
int[] out_class,
@ByRef
opencv_text.DoubleVector out_confidence)
Copyright © 2018. All rights reserved.