Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to display Raw frame from wabcam?

I am using OpenCV 3.4.2 and my camera is QQSJ-8808 in a part of my project, I have to display various result of processes frame. but I can not find the way to display raw frame (direct from camera without any image processing). when I used cv2.imshow(), it shows me the colored frame.

but first, I want to show the raw frame and then I want to show grayscale and then colored.

Please help to solve the issue.

How to display Raw frame from wabcam?

I am using OpenCV 3.4.2 and my camera is QQSJ-8808 in a part of my project, I have to display various result of processes frame. but I can not find the way to display raw frame (direct from camera without any image processing). when I used cv2.imshow(), it shows me the colored frame.

but first, I want to show the raw frame and then I want to show grayscale and then colored.

Please help to solve the issue.

mycode :

  # Start default camera
video = cv2.VideoCapture(0)

while video.isOpened():
    ret, frame = video.read()
    # frame = cv2.cvtColor(frame, cv2.COLOR_BGR2YUYV)
    cv2.imshow("frame", frame)

    key = cv2.waitKey(1) & 0xFF
    # if the `q` key was pressed, break from the loop
    if key == ord("q"):
        break
# Release video
video.release()
cv2.destroyAllWindows()
click to hide/show revision 3
None

updated 2018-11-02 09:24:19 -0600

berak gravatar image

How to display Raw frame from wabcam?

I am using OpenCV 3.4.2 and my camera is QQSJ-8808 in a part of my project, I have to display various result of processes frame. but I can not find the way to display raw frame (direct from camera without any image processing). when I used cv2.imshow(), it shows me the colored frame.

but first, I want to show the raw frame and then I want to show grayscale and then colored.

Please help to solve the issue.

mycode :

  # Start default camera
video = cv2.VideoCapture(0)

while video.isOpened():
    ret, frame = video.read()
    # frame = cv2.cvtColor(frame, cv2.COLOR_BGR2YUYV)
    cv2.imshow("frame", frame)

    key = cv2.waitKey(1) & 0xFF
    # if the `q` key was pressed, break from the loop
    if key == ord("q"):
        break
# Release video
video.release()
cv2.destroyAllWindows()