My company needs the following project completed ASAP:
- We will be using a software that creates black and white “mask” images in bmp format. The images are snapshots from a video, and are named accordingly. For example, image frames 12-14 will be named something like shot_000_012.bmp, shot_000_013.bmp, and shot_000_014.bmp. You may see an example at www.claritylabs.com/screenshots/shot_5.jpg, shot_6.jpg, etc. Note that the demos are in jpg format.
- We will need a software that will allow us to easily process these images in batches and do the following:
1. Extract the frame #, x, y coordinate and the rectangular height and width of the white spot (bounded area) relative to the original dimensions of the image file.
2. Save the coordinates and rectangle dimensions in a .txt file like so:
<BEGIN CONTENT>
array[frame_number] = ["x-coordinate", "y-coordinate", "rectangle_width", "rectangle_height"];
array[frame_number] = ["x-coordinate", "y-coordinate", "rectangle_width", "rectangle_height"];
array[frame_number] = ["x-coordinate", "y-coordinate", "rectangle_width", "rectangle_height"];
<END CONTENT>
I’ve also posted up sample code programmed in Flash AS3. You simply need to convert it to JAVA, C, C++, or .NET. You may view the file at
http://www.claritylabs.com/screenshots/project_example_flash_as3.txt