[scikit-image] 回复: Fwd: Extract a particular area in document

imagepy at sina.com imagepy at sina.com
Fri May 26 05:55:38 EDT 2017


Hi FWD:
There are many methods to do this. as you said, you had do a transform to make sure the image in standard direction. 
if your image are in the standard scale, you can use a template match. but if has different scales, it will not work. 
but I think you can do a threshold, then binary fill, then the [no, si] will be a solid rectangle. you can do a region analysis http://scikit-image.org/docs/stable/api/skimage.measure.html#regionprops to make sure if it is your goal (by the area, perimeter and moments).  I think it will be ok!
you can also try the adboost,  sift, and other local descriptor, and so on. but I think it is too fussy and waste to solve this problem.
														YXDragon
----- 原始邮件 -----
发件人:Fabio <fdalforno at gmail.com>
收件人:scikit-image at python.org
主题:[scikit-image] Fwd: Extract a particular area in document
日期:2017年05月26日 14点42分

Hi all, my name's Fabio Dal Forno.
I'm a basic scikit user and i have many question too.

I've a lot of scanned document like this



And i want to extract a particular area (si no, yes or no in english) see image below


​
After that i want to train a neural networ for detect the data compiled by people, y,x coordinate for detect the means of the area (materials damage ecc ecc) 
and a fixed dimension image for a neural network

I started to work with the following step:

1) Homography for detect document orientation after that i transform the document for rectify that
2) Homography for detect si/no area and coordinate once

the first step work wery well but the second doesn't detect anything.

Am i wrong reasoning ?


Thanks a lot and sorry for my beginner english :)
 



​ 




_______________________________________________
scikit-image mailing list
scikit-image at python.org
https://mail.python.org/mailman/listinfo/scikit-image
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170526/313d7625/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: first.JPG
Type: image/jpeg
Size: 199433 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170526/313d7625/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testarea.png
Type: image/png
Size: 1986 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170526/313d7625/attachment-0001.png>


More information about the scikit-image mailing list