Recognise micrometer symbol in image

2 Ansichten (letzte 30 Tage)
Josep Llobet
Josep Llobet am 29 Jul. 2021
Kommentiert: Josep Llobet am 3 Aug. 2021
I am trying to read a region of a image which contains the micrometer value.
image_sample = imread("https://i.ibb.co/GP2W6nn/mostra-josep.jpg");
imshow(image_sample)
Which binarized is like:
image_sample_BW = imread("https://i.ibb.co/HFJdYhz/mostra-josep2.jpg");
imshow(image_sample_BW)
I used ocr() function to identify the letters, but it does not result as I though:
results = ocr(image_sample_BW);
word = results.Words{1}
word = '100;4m'
Thank you
  3 Kommentare
Cris LaPierre
Cris LaPierre am 2 Aug. 2021
Let me move my comment to an answer then.
Josep Llobet
Josep Llobet am 3 Aug. 2021
;) okey it's all right
then thinking, maybe taking the position of, in this case, the greek letter mu, I could obtain the other symbology by the other languajes which recognise numbers.
Thank you @Cris LaPierre

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 2 Aug. 2021
I have only played around with this quickly, but it is likely part of the issue is that you are using the english language package, but mu is a greek letter. Therefore, it is not even being considered as an option. By default, MATLAB comes with 2 language packages installed - English and Japanese.
Try installing the Computer Vision Toolbox OCR Language Data file. Easiest is probably to use the Add-ons explorer and search for the name I used.
This will add 60 or so additional languages, including greek. When I run your code using 'Language','greek', it does recognize the mu, but now everything else is wrong. Like I said, I've only just dabbled a little to see what is happening, but hopefully that at least gets you started in the right direction.

Weitere Antworten (0)

Kategorien

Mehr zu Code Generation, GPU, and Third-Party Support finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by