- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Problem:
I try to read video frames in the official OpenVINO container but receive no frames:
docker pull openvino/ubuntu20_runtime:2021.1
docker run --rm -it -name test openvino/ubuntu20_runtime:2021.1 bash
docker cp video.mp4 test:/home/openvino/video.mp4
>>> import cv2
>>> video = cv2.VideoCapture('video.mp4')
>>> ret, frame = video.read()
>>> print(ret)
False
>>> print(frame)
None
While I try to read an image file, it works:
>>> import cv2
>>> frame = cv2.imread('image.png')
>>> frame.shape
(259, 787, 3)
Should I rebuild the Docker image by adding additional packages info to dockerfile?
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi Huang,
Could you check whether the file is copied properly and you are in the correct directory?
I tested using openvino/ubuntu18_runtime:2021.1 image and managed to read an mp4 file just fine (I do need to navigate to the copied file directory).
Regards,
Rizal
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi, I have the same question, my docker image is ubuntu18_runtime:2021.3,and input path for VideoCapture is absolute path or rtsp ,it cannot effect,whatever input its False for isOpened().Could you please give me some advice?thankyou so much~
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Greetings,
Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Sincerely,
Iffa
