Results 1 to 8 of 8

Thread: Auto Crop Picture From Scanned Document?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Posts
    340

    Auto Crop Picture From Scanned Document?

    Greetings,
    hope all member of this forum are fine..

    i am working on a project where i have to scan a lot of pages (application form) where each form is attached (pasted with glue) with application picture. So, i need to get the picture (crop only the picture) from that scanned page/document.

    I have attached a sample..

    i can set the exact location on the document/image but few issues with that:
    1. attached/pasted image is not on same size..
    2. it may be not be pasted on same place on each form
    3. it may be rotated slightly..

    so, i am looking for some automated process that can take out the picture correctly regardless the above issues. i assume face detection may be the tool, but i am not sure about that..

    so, it would be great if any one can help me with that?

    thanks in advance

    any help will be highly appreciated...

    take care (every one)
    may Allah bless all of you
    best regards
    Attached Images Attached Images  

  2. #2
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: Auto Crop Picture From Scanned Document?

    Short of having someone do the cropping manually, the only way I can think of is to scan the item the following ways:

    TOP->BOTTOM
    LEFT->RIGHT
    RIGHT->LEFT
    BOTTOM->TOP

    I would scan each way above until you find a series of pixels that are non-white for X number of pixels in a specific direction. Then you could pull back the initial location you found that pixel at. That sounds like quite a task, I have no experience with that, so I can only give you a general idea of how I would start researching..

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Posts
    340

    Re: Auto Crop Picture From Scanned Document?

    any help please?

  4. #4
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: Auto Crop Picture From Scanned Document?

    Did you read my post or what? I do not think what you are asking for is a simple solution. This will require plenty of research.

  5. #5
    PowerPoster SJWhiteley's Avatar
    Join Date
    Feb 2009
    Location
    South of the Mason-Dixon Line
    Posts
    2,256

    Re: Auto Crop Picture From Scanned Document?

    You are into image manipulation, and effectively character recognition. Not a vb-specific application or skill.

    As Jay says, this is quite a task. There will be a lot of math and matrix manipulation involved, I expect. Nothing that VB cannot handle, but it's the sort of manipulation which is generally done by those with the skills in other languages (maybe C, C++ or C#). Search for image manipulation techniques, rather than anything VB specific.
    "Ok, my response to that is pending a Google search" - Bucky Katt.
    "There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
    "Before you can 'think outside the box' you need to understand where the box is."

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Posts
    340

    Re: Auto Crop Picture From Scanned Document?

    Quote Originally Posted by SJWhiteley View Post
    You are into image manipulation, and effectively character recognition. Not a vb-specific application or skill.

    As Jay says, this is quite a task. There will be a lot of math and matrix manipulation involved, I expect. Nothing that VB cannot handle, but it's the sort of manipulation which is generally done by those with the skills in other languages (maybe C, C++ or C#). Search for image manipulation techniques, rather than anything VB specific.
    thanks for your reply sir..
    yes i think/know that is quite a task but i think that's is already done earlier by some one else (open source) like openCV or face detection technique, so, i think all i need to know the source/wrapper that i can use? right?

    thanks in advance...

    best regards

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Posts
    340

    Re: Auto Crop Picture From Scanned Document?

    any help sir?

  8. #8
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: Auto Crop Picture From Scanned Document?

    What more do you need? You need to either need to find something that has been done by some else as you mention (i.e. something open source) or you need to code it yourself like jayinthe813 and SJWhiteley are saying. If neither of those appeal to you, then your only other choices are to pay someone to do it, or to not do it.
    Kevin
    Last edited by kebo; May 9th, 2015 at 12:46 PM.
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width