Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

horizontal line/break/image shift in video from webcam

Hello, when I move with my webcam quickly, I see these artefacts/image breaks/shifts. I am using vlc v4l2 with /dev/video0 via vlc command line to preview live webcam video. Please, What should I set please to prevent these artefacts?

image description

image description

image description

image description

horizontal line/break/image shift in video from webcam

Hello, when I move with my webcam quickly, I see these artefacts/image breaks/shifts. I am using vlc v4l2 with /dev/video0 via vlc command line to preview live webcam video. Please, What should I set please to prevent these artefacts?

image description

image description

image description

image description

My sample code: import cv2

def show_webcam(mirror=False): cam = cv2.VideoCapture(0) while True: ret_val, img = cam.read() img = cv2.flip(img, 0) cv2.imshow('my webcam', img) del(img) cv2.waitKey(1) cv2.destroyAllWindows()

def main(): show_webcam(mirror=False)

if __name__ == '__main__': main()

horizontal line/break/image shift in video from webcam

Hello, when I move with my webcam quickly, I see these artefacts/image breaks/shifts. I am using vlc v4l2 with /dev/video0 via vlc command line to preview live webcam video. Please, What should I set please to prevent these artefacts?

image description

image description

image description

image description

My sample code: import cv2code:

import cv2

def show_webcam(mirror=False):
    cam = cv2.VideoCapture(0)
    while True:
            ret_val, img = cam.read()
        img = cv2.flip(img, 0)
            cv2.imshow('my webcam', img)
        del(img)
        cv2.waitKey(1)
    cv2.destroyAllWindows()

cv2.destroyAllWindows()

def main(): show_webcam(mirror=False)

show_webcam(mirror=False)

if __name__ == '__main__': main()

main()