Extract Rectangular Image from Scanned Image

1 回表示 (過去 30 日間)
razor007
razor007 2014 年 10 月 27 日
コメント済み: Image Analyst 2018 年 9 月 23 日
I have scanned copies of currency notes from which I need to extract only the rectangular notes. Although the scanned copies have a very blank background, the note itself can be rotated or aligned correctly. I'm using matlab.
Example inputs:
Example output:
I have tried using thresholding and canny/sobel edge detection to no avail.
PS: My primary objective is to determine the denomination of the currency. There are a couple of methods I thought I could use:
  1. Color based, since all currency notes have varying primary colors. The advantage of this method is that it's independent of the rotation or scale of the input image.
  2. Detect the small black triangle on the lower left corner of the note. This shape is unique for each denomination.
  3. Calculating the difference between 2 images. Since this is a small project, all input images will be of the same dpi and resolution and hence, once aligned, the difference between the input and the true images can give a rough estimate.
Which method do you think is the most viable?

回答 (1 件)

Image Analyst
Image Analyst 2014 年 10 月 27 日
Thresholding is your best bet for cropping.
For identification of denomination, you can use the histogram of the color gamut, or identification of the denomination symbol.
  2 件のコメント
oshawcole
oshawcole 2018 年 9 月 23 日
Hi! How did you finally do it?
Image Analyst
Image Analyst 2018 年 9 月 23 日
DO WHAT? Crop? Denomination determination?
Be aware that this was 4 years ago so he may not answer.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by