tensorflowLiteDetection2D module use tensorflow lite Python API. The module detects using pre-trained models like VGG16, Inception, ResNet, MobileNet and other pre-trained models. Also use YARP to send video source pre and post-procesed. Also admits YARP source video like input. The module has been tested with ssd_mobilenet_v1_1.0_coco. This module also publish detection results in YARP port with object coordinates.
Documentation available on docs.
tensorflowLiteDetection2D requires a model to detect. Models should be located in models dir.
- Create or configure YARP Server.
yarp server
yarp conf pc-ip 10000- Execute programs/tensorflowLiteDetection2D.py the detector.
python3 tensorflowLiteDetection2D.py- Connect video source to
tensorflowLiteDetection2D.
yarp connect /videoSource /tensorflowLiteDetection2D/img:iNOTE:
- Video results are published on
/tensorflowLiteDetection2D/img:o - Data results are published on
/tensorflowLiteDetection2D/data:o - Coordinate results are published on
/tensorflowLiteDetection2D/coord:o
tensorflowLiteDetection2D requires:
- Install OpenCV
pip3 install opencv-python==3.4.6.27- Install YARP 2.3.XX+ with Python 3 bindings
- Install pip3
- Install tensorflow:
pip3 install tensorflowTested on: ubuntu 14.04, ubuntu 16.04, ubuntu 18.04, lubuntu 18.04 and raspbian.
