#include <stdio.h>
#include <stdlib.h>
#include "roc.h"
int main(int argc, char *argv[])
{
size_t adaptive_minimum_size;
int i;
if (argc != 4)
#ifdef _WIN32
" > roc-example-object-detection.exe path\\to\\rocsdk\\bin path/to/image.jpg airplane,bicycle,boat,bus,car,gun,license_plate,military_vehicle,motorcycle,person,truck"
#else
" $ roc-example-object-detection path/to/rocsdk/lib path/to/image.jpg airplane,bicycle,boat,bus,car,gun,license_plate,military_vehicle,motorcycle,person,truck"
#endif
);
const char *objects = argv[3];
if (!algorithm_id)
for (i=0; i<10; i++) {
if (!templates[i].algorithm_id) {
if (i == 0)
puts("Failed to detect objects in image!");
break;
}
printf("%s Confidence = %f Center = (%d, %d) Size = (%d, %d)\n", label, (double)templates[i].detection.confidence, (int)templates[i].detection.x, (int)templates[i].detection.y, (int)templates[i].detection.width, (int)templates[i].detection.height);
}
return EXIT_SUCCESS;
}