Download the trained models from
- 2018-03-09_faster_rcnn_mensural_detection.pb
- 2018-03-26_inception_resnet_v2_position_classification.h5
and put them into the demo directory.
Then run inference_over_image.py
from inside the demo directory:
python inference_over_image.py \
--detection_inference_graph 2018-03-09_faster_rcnn_mensural_detection.pb \
--classification_inference_graph 2018-03-26_inception_resnet_v2_position_classification.h5 \
--input_image 12673.JPG \
--detection_label_map category_mapping.txt \
--classification_label_map position_mapping.txt \
--ignorable_classes_list ignorable_classes.txt \
--output_image annotated_image.jpg \
--output_result output_transcript.txt
Note that the depicted parameters are the default-parameter, so if you are happy with them, they can be omitted (e.g. the label_maps).