mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiangjiajun
1fb3133ec5
|
4 years ago | |
---|---|---|
.. | ||
data | 4 years ago | |
README.md | 4 years ago | |
paddle_resnet50.py | 4 years ago |
README.md
Run PaddlePaddle model by OpenCV
This tutorial shows how to run PaddlePaddle model by opencv.
Environment Setup
pip install paddlepaddle-gpu
pip install paddlehub
pip install paddle2onnx
Run PaddlePaddle model demo
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.