Find image in scene
Ältere Kommentare anzeigen
Hi, my problem is shown in the images below:

I am trying to find the second image in the first image. The more complex problem I'm working on is that I can find the number displayed in the second picture out of a database of numbers (for example; if the number was 27, the program would run in a loop and remember 27 was the best matching number). But since I am stuck on already comparing 2 pictures, this is for later.
Any tips on how to handle this problem? I tried the code in the link below, but I got no results so this seems not the right approach.
I am not a coder at all, so I hope there is already an existing code for this type of problem I didn't find myself!
Thanks
5 Kommentare
Image Analyst
am 18 Apr. 2020
Bearbeitet: Image Analyst
am 18 Apr. 2020
There are function in the Computer Vision System Toolbox or Image Processing Toolbox that should be able to solve that, like the one you gave, or normxcorr2() (demo attached), or OCR, or others. Since you don't know how to code, here is a group of people that would happily write the program for you: Mathworks Consulting
Highscore
am 21 Apr. 2020
Image Analyst
am 21 Apr. 2020
It really depends on how general your template and scene are. In that one specific case you showed, a black one on a white background, it's easy to find. But if you have partially obscured characters on complicated backgrounds, it can be quite complicated. For example, if you wanted to find a small red patch neighboring a green and blue patch (like the red patch on the paper on the wall).
So assuming that all images are alphanumeric characters on a uniform white patch, it's pretty easy. Just find the white patch, check it to make sure it's only black and white, not colored stuff in it like that frame on the stack of books on the floor, crop it out, and call ocr().
Highscore
am 21 Apr. 2020
Highscore
am 22 Apr. 2020
Antworten (0)
Kategorien
Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
