Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

OCR command is not detecting certain terms

조회 수: 1 (최근 30일)
Soumya Panda
Soumya Panda 2015년 10월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
Hey guys, I tried to use the OCR command upon this image in order to identify text here. But OCR is not identifying SHERPA SURF SCHOOL. It is only able to identify the regions in RED. I guess it is because of the colour disparity amognst red and black layers.Any help in this regard would be deeply appreciated !!!

답변 (1개)

Image Analyst
Image Analyst 2015년 10월 3일
First extract the separate color channels,
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
threshold each one for white,
binaryR = redChannel > 200; % Or whatever value works
binaryG = greenChannel > 200; % Or whatever value works
binaryB = blueChannel > 200; % Or whatever value works
then AND the three binary images together.
finalImage = binaryR & binaryG & binaryB;
Now do the OCR.
or

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by