필터 지우기
필터 지우기

Detecting numbers from an image

조회 수: 8 (최근 30일)
Soumyadip
Soumyadip 2013년 7월 30일
I have an image taken from the display of an instrument screen. Is it possible to detect only the digits out of all the objects from the image and then somehow highlight them ?? (just like facebook automatically detects faces of persons)
  댓글 수: 2
Matt Kindig
Matt Kindig 2013년 7월 30일
In principle, yes. As for how to do so, it will vary substantially on your images. How consistent is the lighting, focus, angle, etc. between images? Can you upload one of your images somewhere (e.g. tinypic.com) and post the link here?
Soumyadip
Soumyadip 2013년 7월 30일
In this image, I want to identify the digits irrespective of their sizes and put a bounding box around them.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 7월 30일
I would start by using imdilate() to cause the sections at the bottom to "run together". Then convert to binary, regionprops, find the bounding box of the largest (or few largest) blob, remove those blobs from the original image. This will focus on the more scattered portions left over. At that point, it might potentially be as easy as a horizontal scan to find the bounds of the unneeded parts on each side, and removing those, leaving only the digits in the center. regionprops to bounding box.
  댓글 수: 1
Soumyadip
Soumyadip 2013년 7월 31일
that would be fine, specially for this particular image. If the snapshot had been taken from a larger distance, then more objects would appear which may not result in a big blob by dilation. I was thinking of using a classifier approach to distinguish numbers from the other objects right from the start and thus identify them. Is this possible??

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by