@Namespace(value="cv::text") @Properties(inherit=opencv_text.class) public class OCRHolisticWordRecognizer extends BaseOCR
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
OCRHolisticWordRecognizer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static OCRHolisticWordRecognizer |
create(BytePointer archFilename,
BytePointer weightsFilename,
BytePointer wordsFilename)
\brief Creates an instance of the OCRHolisticWordRecognizer class.
|
static OCRHolisticWordRecognizer |
create(String archFilename,
String weightsFilename,
String wordsFilename) |
void |
run(Mat image,
BytePointer output_text) |
void |
run(Mat image,
BytePointer output_text,
RectVector component_rects,
StringVector component_texts,
FloatVector component_confidences,
int component_level) |
void |
run(Mat image,
Mat mask,
BytePointer output_text) |
void |
run(Mat image,
Mat mask,
BytePointer output_text,
RectVector component_rects,
StringVector component_texts,
FloatVector component_confidences,
int component_level)
\brief Recognize text using a segmentation based word-spotting/classifier cnn.
|
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 OCRHolisticWordRecognizer(Pointer p)
Pointer.Pointer(Pointer)
.public void run(@ByRef Mat image, @StdString @ByRef BytePointer output_text, RectVector component_rects, StringVector component_texts, FloatVector component_confidences, int component_level)
public void run(@ByRef Mat image, @StdString @ByRef BytePointer output_text)
public void run(@ByRef Mat image, @ByRef Mat mask, @StdString @ByRef BytePointer output_text, RectVector component_rects, StringVector component_texts, FloatVector component_confidences, int component_level)
Takes image on input and returns recognized text in the output_text parameter. Optionally provides also the Rects for individual text elements found (e.g. words), and the list of those text elements with their confidence values.
run
in class BaseOCR
image
- Input image CV_8UC1 or CV_8UC3
mask
- is totally ignored and is only available for compatibillity reasons
output_text
- Output text of the the word spoting, always one that exists in the dictionary.
component_rects
- Not applicable for word spotting can be be NULL if not, a single elemnt will
be put in the vector.
component_texts
- Not applicable for word spotting can be be NULL if not, a single elemnt will
be put in the vector.
component_confidences
- Not applicable for word spotting can be be NULL if not, a single elemnt will
be put in the vector.
component_level
- must be OCR_LEVEL_WORD.public void run(@ByRef Mat image, @ByRef Mat mask, @StdString @ByRef BytePointer output_text)
@opencv_core.Ptr public static OCRHolisticWordRecognizer create(@StdString BytePointer archFilename, @StdString BytePointer weightsFilename, @StdString BytePointer wordsFilename)
@opencv_core.Ptr public static OCRHolisticWordRecognizer create(@StdString String archFilename, @StdString String weightsFilename, @StdString String wordsFilename)
Copyright © 2020. All rights reserved.