Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends

I am developing software for image process.To view images from local drive i am using picture box tool in c# windows application and i have scanned application form with photo copy of that applicant in my local drive.I need to crop photo of applicant systematically so i need to find that applicant photo form image copy how can we do this please help me.....
Posted
Updated 31-May-12 2:17am
v2

1 solution

Based on your question, it looks like you want to find a smaller picture inside a larger picture and then you want to crop the image to be just the smaller image inside.

To start with, here is a great CP article on how to work with images (including cropping):
Image Processing using C#[^]

To find that smaller image, if you don't know the coordinates and you don't want the user to draw a box on the screen to indicate the coordinates (which would be best, by the way), you could try to find the right place by looking for a particular pattern of pixels (say a box around the picture). Here is a post that might have some useful code that you could start from:
http://www.dreamincode.net/forums/topic/201783-c%23-trying-to-find-a-smaller-image-inside-a-larger-image-need-help/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900