public static class opencv_text.OCRBeamSearchDecoder.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 funtion
loadOCRBeamSearchClassifierCNN with all its parameters 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,
opencv_text.DoubleVector recognition_probabilities,
int[] oversegmentation) |
void |
eval(opencv_core.GpuMat image,
opencv_text.DoubleVector recognition_probabilities,
IntBuffer oversegmentation) |
void |
eval(opencv_core.GpuMat image,
opencv_text.DoubleVector recognition_probabilities,
org.bytedeco.javacpp.IntPointer oversegmentation) |
void |
eval(opencv_core.Mat image,
opencv_text.DoubleVector recognition_probabilities,
int[] oversegmentation) |
void |
eval(opencv_core.Mat image,
opencv_text.DoubleVector recognition_probabilities,
IntBuffer oversegmentation) |
void |
eval(opencv_core.Mat image,
opencv_text.DoubleVector recognition_probabilities,
org.bytedeco.javacpp.IntPointer oversegmentation)
\brief The character classifier must return a (ranked list of) class(es) id('s)
|
void |
eval(opencv_core.UMat image,
opencv_text.DoubleVector recognition_probabilities,
int[] oversegmentation) |
void |
eval(opencv_core.UMat image,
opencv_text.DoubleVector recognition_probabilities,
IntBuffer oversegmentation) |
void |
eval(opencv_core.UMat image,
opencv_text.DoubleVector recognition_probabilities,
org.bytedeco.javacpp.IntPointer oversegmentation) |
int |
getStepSize() |
int |
getWindowSize() |
opencv_text.OCRBeamSearchDecoder.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.OCRBeamSearchDecoder.ClassifierCallback position(long position)
position in class org.bytedeco.javacpp.Pointerpublic void eval(@ByVal
opencv_core.Mat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
org.bytedeco.javacpp.IntPointer oversegmentation)
image - Input image CV_8UC1 or CV_8UC3 with a single letter.recognition_probabilities - For each of the N characters found the classifier returns a list with
class probabilities for each class.oversegmentation - The classifier returns a list of N+1 character locations' x-coordinates,
including 0 as start-sequence location.public void eval(@ByVal
opencv_core.Mat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
IntBuffer oversegmentation)
public void eval(@ByVal
opencv_core.Mat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
int[] oversegmentation)
public void eval(@ByVal
opencv_core.UMat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
org.bytedeco.javacpp.IntPointer oversegmentation)
public void eval(@ByVal
opencv_core.UMat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
IntBuffer oversegmentation)
public void eval(@ByVal
opencv_core.UMat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
int[] oversegmentation)
public void eval(@ByVal
opencv_core.GpuMat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
org.bytedeco.javacpp.IntPointer oversegmentation)
public void eval(@ByVal
opencv_core.GpuMat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
IntBuffer oversegmentation)
public void eval(@ByVal
opencv_core.GpuMat image,
@StdVector
opencv_text.DoubleVector recognition_probabilities,
@StdVector
int[] oversegmentation)
public int getWindowSize()
public int getStepSize()
Copyright © 2018. All rights reserved.