mirror of
https://github.com/opencv/opencv.git
synced 2024-12-04 08:49:14 +08:00
fea45c6911
* Added PaddlePaddle classification model conversion case * Modify cv2 import as cv * Modify documents in dnn_conversion/paddlepaddle * Modify documents in dnn_conversion/paddlepaddle |
||
---|---|---|
.. | ||
data | ||
paddle_resnet50.py | ||
README.md |
Run PaddlePaddle model by OpenCV
This tutorial shows how to run PaddlePaddle model by opencv, run the example code as below,
python paddle_resnet50.py
there are 3 part of this execution
-
- Export PaddlePaddle ResNet50 model to onnx format
-
- Use
cv2.dnn.readNetFromONNX
load model file
- Use
-
- Preprocess image file and do inference