isolation of text from an image
조회 수: 4 (최근 30일)
이전 댓글 표시
Sir, This is a student of B.Tech (ECE) doing project entitled "Comets Recognition From SOHO images".I need to isolate date and time from tne image in order to avoid false interpretation of comets.
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 1월 24일
I imagine that the date and time character images would have very different fft2 characteristics than the rest of the image.
Depending what you can count on to be in the date image, you might be able to do some simple detection of vertical or horizontal lines to get yourself in the right area.
If you do an erosion operation you would get rid of the specs in the image. bwlabel the graph after that, and look at the regionstats for each of the areas. You should be able to rule out some of the areas from the statistics.
If you were to dilate after the erosion, then you might perhaps join the entire date and time into a blob (or two blobs) that would likely be larger than anything else. Once you know the part of the image that contains the characters, it should be easier to remove the text.
Mind you, I still like ImageAnalyst's answer in the newsgroup, namely that the date and time are probably in pretty much the same place in each image, so find the area once manually and then either zero out that entire box or focus your removal efforts on just that part of the image.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Red에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!