Detecting numbers from an image
12 次查看(过去 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
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?
回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!