1 | initial version |
I kind of missed this topic so I would be glad to help you out with the annotation tool since it is of my making.
The following steps could be used to annotate images using the tool provided. I will examples how to run it from command line in Ubuntu, Linux, but it can generalize to other systems also.
Make sure that you have the option BUILD_opencv_apps
selected during the built process of OpenCV and that you have performed a sudo make install
so that your installation knows the tools! Then the following steps will do the trick.
opencv_annotation -images /data/image_folder/ -annotations /data/annotations.txt
. Keep in mind that the tool loves absolute paths, since relative paths can screw up the processing.c key
on your keypad to confirm. You will see the red annotation turn to green.n key
on your keyboard to load the next image.ESC key
.Your results will be stored in the text file as follows image_location number_annotations x0 y0 w0 h0 x1 y1 w1 h1 ... xN yN wN hN
with N+1
being the amount of annotations, since we start calculating at 0 index.
2 | No.2 Revision |
I kind of missed this topic so I would be glad to help you out with the annotation tool since it is of my making.
The following steps could be used to annotate images using the tool provided. I will examples how to run it from command line in Ubuntu, Linux, but it can generalize to other systems also.
Make sure that you have the option BUILD_opencv_apps
selected during the built process of OpenCV and that you have performed a sudo make install
so that your installation knows the tools! Then the following steps will do the trick.
opencv_annotation -images /data/image_folder/ -annotations /data/annotations.txt
. Keep in mind that the tool loves absolute paths, since relative paths can screw up the processing.c key
on your keypad to confirm. You will see the red annotation turn to green.n key
on your keyboard to load the next image.ESC key
.Your results will be stored in the text file as follows image_location number_annotations x0 y0 w0 h0 x1 y1 w1 h1 ... xN yN wN hN
with N+1
being the amount of annotations, since we start calculating at 0 index.
UPDATE:
Due to a recent PR, the command line parser interface of OpenCV has been integrated into OpenCV annotation, and now one would need to use the new improved command for passing arguments, which is:
opencv_annotation --images=/data/image_folder/ --annotations=/data/annotations.txt