- Put training images into folder .\roipoly_annotate\train
Put testing images into folder .\roipoly_annotate\test - Execute annotate.py to hand-label RedBarrel and TrickyCases. Remember to change colorClass in the code between. TrickyCases are basically light yellow ceiling, windows and dark red floor.
- Run train.py to get a GMM Model
- Once the model is obtained, run predict.py to detect red barrel. A image with bounding box and centroid will appear, also info like centroid, distance and numbers will be at command window.