I have car/truck images taken from above roads. From this images, I have to identify width of vehicle in terms of percentage of image.
Application to be done shall use openCV to do this. It shall be a windows command line application, taking filename of picture, writing to stdout the result.
## Deliverables
Samples attached.
Please note application shall also indicate if vehicle is truncated (only on part of photo).
Efficiency expected: 95% of responses are accurate at 5%, 99% at 10%.
Command line shall accept multiple filenames and and argument allowing to loop process multiple times in order to estimate CPU and memory usage and time performances.
[login to view URL] -loop 10000 filename1 filename2 filename3 ...
Exit format shall be one line per picture:
timestamp;counter;filename;percent;alignment
* timestamp is ISO8601 [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[nnn] format date and time,
* counter is an incremental starting to 1,
* filename, as given in command line,
* percent, with on decimal max 100.0 to 0.0
* alignement, C for center (vehicle does not touch border), L for left (vehicle is across left border), R for right (vehicle is across right border)
Picture formats to be suported are at least PNG and JPG.
If picture contains more than one vehicle, and if these can be identified, percent and alignement result shall be repeated. If error, percent chall be set to 0 and alignment shall be E for error.
Project must be compiled with Visual Studio 2010, with 4 targets:
* Exe, Debug and release
* Dll, Debug and release
Dll shall export only one function:
int getWidth(char* filename, unsigned float** percentage, char** position);
* filename is execution directory relative path to filename
* percentage is an array of pointers to a float that will contain computed percentage of width of picture covered by vehicle, one pointer per vehicle
* position is an array of pointers to a char that will contain position of vehicle (L, R or C as described above).
Arrays to be allocated by caller, max dimension is 10.
Function return 0 if everithing is OK but no vehicle detected, >0 if several vehicle were detected, negative int in case of error.
Exe main function must parse arguments and call this function.
Some moto pictures added to samples.
* * *This broadcast message was sent to all bidders on Tuesday Feb 8, 2011 11:31:57 AM:
A way to remove mirrors from computation have to be found (may be find max width (this should be at mirrors height), compute width 20 pixels above and 20 pixels bottom of this max, result width will be mean of this last 2 widths).
* * *This broadcast message was sent to all bidders on Tuesday Mar 29, 2011 4:57:10 AM:
New set of pictures attached to project (sample V2). Please review them, and confirm your bid. Previous pictures included for historical purpose but not to be taken into account anymore. In sampleV2, picture are 1.282 kb BMP, but can be compressed as JPG.