Welcome to DOFBOT-Ultra repository
16.Image classification algorithm
Image classification algorithm
Image classification algorithmImage Classification Algorithms—Mobilenet v11. How to run2. Expected results
Image Classification Algorithms—Mobilenet v1
This example mainly implements the following functions:
- Load the
mobilenet v1image classification model - Read the
zebra_cls.jpgstatic image as the input of the model - Parse the model output to get the classification result of the image
1. How to run
Execute the test_mobilenetv1.py program
Program path: /app/pydev_demo/01_basic_sample/
sunrise@ubuntu:~$ cd /app/pydev_demo/01_basic_sample/sunrise@ubuntu:/app/pydev_demo/01_basic_sample$ sudo ./test_mobilenetv1.py2. Expected results
Output the prediction results of the image classification algorithm, id and confidence.
zebra_cls.jpg is a picture of a zebra. According to the classification of the ImageNet dataset, the returned result id is 340 and the confidence is 0.991851.
xxxxxxxxxx========== Classification result ==========cls id: 340 Confidence: 0.991851