Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

horizontal line/break/image shift in video from webcam

$
0
0
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](https://i.stack.imgur.com/EmHUX.png) ![image description](https://i.stack.imgur.com/kGgx6.png) ![image description](https://i.stack.imgur.com/B1zax.png) ![image description](https://i.stack.imgur.com/hpV0r.png) 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()

Viewing all articles
Browse latest Browse all 2088

Trending Articles