-
Notifications
You must be signed in to change notification settings - Fork 0
Detecting bCodes
Lets begin by downloading an example image that shows a lot of bees with a bCode attached to their thorax. The bCodes in this image are fairly small and are therefore difficult to detect. To improve the detection rate, we will use the scaling.factor parameter to magnify the image and the sharpening.sigma and sharpening.amount parameters to sharpen it. We will detect bCodes in the magnified and sharpened image at 8 equally spaced intensity thresholds between 40 and 110, and only report a detected bCode if at least 85% of its template (excluding the border) are preserved, by running
java -jar bcode_detector.jar scaling.factor=1.2 sharpening.sigma=1.6 sharpening.amount=0.9 \
min.intensity.threshold=40 max.intensity.threshold=110 intensity.step.size=10 \
min.template.conservation=0.85 conserve.margin=0 image.filename=2013-07-18-13-57-25-600.jpg \
detected.bCodes.filename=detected_bcodes.txtThis will result in a file named detected_bcodes.txt that contains raw bCode detection results.
Before examining the bCode detection results or processing them with another program, you should probably convert them to a more convenient format (not required for this tutorial):
java -jar converter.jar raw.bCode.file=detected_bcodes.txt \
human.readable.file=converted_bcode_detections.txtConverting detection results will produce a file named converted_bcode_detections.txt in the format described here.