Ask Your Question

Revision history [back]

Need to stream from my RGB888 supported camera

Dear All,

I'm able to stream the frames from my RGB888 supported camera using qv4l2. Now I want to stream the frames using opencv application and python.

I've tried the below code and it shows distorted images and not clear.

import numpy as np import cv2 cap = cv2.VideoCapture(4) if not(cap.isOpened()): cap.open() while(cap.isOpened()): ret, frame = cap.read() cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows()

BTW, my camera produces the RGB888 format frames.

Can you please support on this issue ?

Regards, Titus S.

click to hide/show revision 2
No.2 Revision

updated 2017-03-10 06:06:15 -0600

berak gravatar image

Need to stream from my RGB888 supported camera

Dear All,

I'm able to stream the frames from my RGB888 supported camera using qv4l2. Now I want to stream the frames using opencv application and python.

I've tried the below code and it shows distorted images and not clear.

import numpy as np
import cv2
cap = cv2.VideoCapture(4)
if not(cap.isOpened()):
    cap.open()
while(cap.isOpened()):
    ret, frame = cap.read()
    cv2.imshow('frame',frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()

cv2.destroyAllWindows()

BTW, my camera produces the RGB888 format frames.

Can you please support on this issue ?

Regards, Titus S.

Need to stream from my RGB888 supported camera

Dear All,

I'm able to stream the frames from my RGB888 supported camera using qv4l2. Now I want to stream the frames using opencv application and python.

I've tried the below code and it shows distorted images and not clear.

import numpy as np
import cv2
cap = cv2.VideoCapture(4)
if not(cap.isOpened()):
    cap.open()
while(cap.isOpened()):
    ret, frame = cap.read()
    cv2.imshow('frame',frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()

BTW, my camera produces the RGB888 format frames.

Can you please support on this issue ?

Regards, Titus S.