Skip to content

When I copied and ran tutorial #5, it outputed this error, and Im not sure what I'm doing wrong:  #12

Description

@intech12873

[ WARN:0@0.143] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (464) anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): OnReadSample() is called with error status: -1072875772 [ WARN:0@0.143] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (476) anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): async ReadSample() call is failed with error status: -1072875772
[ WARN:1@0.143] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1752) CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772
Traceback (most recent call last):
File "C:\Users\INSKO\OneDrive\Desktop\Hudson\OPENCVORTENSORFLOW.py", line 11, in
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

[Finished in 0.3s with exit code 1]
[shell_cmd: python -u "C:\Users\INSKO\OneDrive\Desktop\Hudson\OPENCVORTENSORFLOW.py"]
[dir: C:\Users\INSKO\OneDrive\Desktop\Hudson]
[path: C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\INSKO\OneDrive\Desktop\pip.py;C:\Users\INSKO\AppData\Local\Programs\Python\Python310;C:\Users\INSKO\AppData\Local\Programs\Python\Python310\Scripts;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\INSKO\OneDrive\Desktop\pip.py;C:\Users\INSKO\AppData\Local\Programs\Python\Python310;C:\Users\INSKO\AppData\Local\Programs\Python\Python310\Scripts;]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions