• lluis's avatar
    Overload the run() method in BaseOCR class in order to adapt to different… · ee677a25
    lluis authored
    Overload the run() method in BaseOCR class in order to adapt to different classifier callbacks. The original run() method accepts only one Mat input image, this is expected to be a binarzed image with black and white text and works both with the OCRTesseract class and the OCRHMMDecoder class when the character classifier callback works with binary images (e.g. NM). The new run() method accepts two Mat input parameters. One for the gray scale (or color) source image and the other for a binary mask where each connected component corresponds to a pre-segmented character in the input image. This way the OCRHMMDecoder is able to work with character classifiers that operate in grey scale (or color) images (e.g. a CNN).
    ee677a25
Name
Last commit
Last update
..
adas Loading commit data...
bgsegm Loading commit data...
bioinspired Loading commit data...
ccalib Loading commit data...
contrib_world Loading commit data...
cvv Loading commit data...
datasets Loading commit data...
datasetstools Loading commit data...
face Loading commit data...
latentsvm Loading commit data...
line_descriptor Loading commit data...
matlab Loading commit data...
optflow Loading commit data...
reg Loading commit data...
rgbd Loading commit data...
saliency Loading commit data...
stereo Loading commit data...
surface_matching Loading commit data...
text Loading commit data...
tracking Loading commit data...
xfeatures2d Loading commit data...
ximgproc Loading commit data...
xobjdetect Loading commit data...
xphoto Loading commit data...
README.md Loading commit data...