@@ -21,27 +21,31 @@ The below Python modules are required:
21
21
3 . bird_classifications.py - contains the main functions (display_bird() and classify_bird()) for producing outputs
22
22
4 . folders
23
23
- static: consists of favicon image file, img folder and css folder (this is a standard structure for a flask web application)
24
- - models: consists of the ONNX models
24
+ - templates: consists of HTML templates to be rendered by Flask (this is a standard structure for a flask web application)
25
+ - models: consists of the ONNX models and labels.txt (both downloaded from Microsoft CV services)
25
26
- plots: placeholder for the output images
26
27
27
- ## Dataset
28
- - The ONNX model was trained by Microsoft Azure Custom Vision services.
28
+ ## Model
29
+ - The ONNX is a deep learning model trained by Microsoft Azure Custom Vision services for image classification .
29
30
- The train/test dataset are a private image collection of birds seen in Singapore.
30
31
31
32
## The python program explained:
32
33
After running the main python program with 'python azurecv_birdclassifier.py':
33
34
- the web application will be running on 'http://127.0.0.1:50001/ ' (localhost)
34
35
- open a web browser and place the url at the address bar
35
36
- a web GUI will be displayed
37
+ ![ mainpage-imgfile] ( /images/mainpage.png )
36
38
- click on 'Choose File' button to select an image file from your local disk
37
39
- click on 'submit' button when ready
38
40
- the image and a bar chart with the Top-5 classification will be displayed
41
+ ![ outputpage-imgfile] ( /images/outputpage.png )
39
42
40
43
## Results Summary
41
44
- The result of the ONNX model is not satisfying mainly due to a relatively small and unbalanced dataset.
42
45
- The aim of this simple project is to demostrate the ONNX model deployment using Flask.
43
46
44
47
## Reference
45
48
1 . https://onnx.ai/
46
- 2 . Book: Flask Web Development, Developing Web Applications with Python (https://flaskbook.com/ )
47
- 3 . https://wtforms.readthedocs.io/en/stable/
49
+ 2 . https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/home
50
+ 3 . Book: Flask Web Development, Developing Web Applications with Python (https://flaskbook.com/ )
51
+ 4 . https://wtforms.readthedocs.io/en/stable/
0 commit comments