Closed nogayama closed 3 years ago
pip install opencv-python
fixes this problem.
$ pip install opencv-python
Collecting opencv-python
Using cached opencv_python-4.5.1.48-cp39-cp39-macosx_10_13_x86_64.whl (40.3 MB)
Collecting numpy>=1.19.3
Downloading numpy-1.20.2-cp39-cp39-macosx_10_9_x86_64.whl (16.1 MB)
|████████████████████████████████| 16.1 MB 2.7 MB/s
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.20.2 opencv-python-4.5.1.48
mbp2019:vision-tools_nogayama nogayama1$ vision deployed-models infer /tmp/hoge.JPG --modelid=e1a90034-7fa0-469a-b81e-9e7b6f6fc082
{
"webAPIId": "e1a90034-7fa0-469a-b81e-9e7b6f6fc082",
"imageUrl": "http://vision-ny-service:9080/vision-ny-api/uploads/temp/e1a90034-7fa0-469a-b81e-9e7b6f6fc082/cdee6576-fcc7-4b19-b4ef-17cc212081df.JPG",
"imageMd5": "69afa2d1c283a303413d8a43fe945665",
"classified": [
{
"confidence": 0.9999998807907104,
"ymax": 2993,
"label": "human",
"xmax": 1494,
"xmin": 634,
"ymin": 472
},
{
"confidence": 0.9999139308929443,
"ymax": 1394,
"label": "neck_strap",
"xmax": 1127,
"xmin": 898,
"ymin": 901
},
{
"confidence": 0.9999920129776001,
"ymax": 1579,
"label": "ID_card",
"xmax": 1047,
"xmin": 948,
"ymin": 1390
}
],
"result": "success"
}
I have fixed this on a pull request #39
@bcarld Thanks!
Symptom
import cv2 as cv
fails when executingvision deployed-models infer
.Reproduce