Find image in scene
이전 댓글 표시
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
Image Analyst
2020년 4월 18일
편집: Image Analyst
2020년 4월 18일
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
2020년 4월 21일
Image Analyst
2020년 4월 21일
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
2020년 4월 21일
Highscore
2020년 4월 22일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
