I am looking for VB - VBA code to be run from with in Excel 2000, on WIn2K, to be able to look at a JPEG picture and "Look" for a white rectangle and determine the edges of the rectangle and then based on finding the edges of 4 rectangles crop out the image between them and save the resulting crop of the jpeg to a unique file name.
What I am doing is I am scanning 16mm film with a film scanner and converting it to a movie type format. My scanner will scan in 4 frames at once and I want this program to be able to go thru a directory of 4 frame scanns and turn them into 4 individual JPEG images. The tractor holes in the film scan in as totally white R,G,B=255. I think the program would be able to scan down the image a certain % of the image width and "look" for these white boxes and from there continue until it finds color other than white. Once it finds the 4 holes around one image crop the center protion out and save it to a JPEG file. The image to be cropped will start in the center of the white hole vertically and on the right and left edges horizontally. I would also want a optional input for a % or number of pixels to have the program remove/add additionally. Basically have it make the picture get cropped a little smaller or larger independantly verticaly or horizontally.
I attached asample of the clips I am trying to convert.
1) Complete and fully-functional working program(s) in executable form(Excel spread sheet with code) as well as complete source code, in VB/VBA language, of all work done.
2) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Excel 2000 on Win 2K Pentium III 533 machine with 512Mb ram