Logitech Webcam Issues - Raspberry Pi Forums
hello,
trying connect logitech hd pro webcam c920 via usb raspi, out hdmi port tv.
have written program (which working), seems raspi isn't able recognize webcam. getting error message:
"systemerror: ioctl(vidioc_s_fmt) failure: no supported formats."
here code:
know way raspi work consistently webcam i'm using? what's frustrating work, , won't, no real discernible pattern.
help!
trying connect logitech hd pro webcam c920 via usb raspi, out hdmi port tv.
have written program (which working), seems raspi isn't able recognize webcam. getting error message:
"systemerror: ioctl(vidioc_s_fmt) failure: no supported formats."
here code:
code: select all
import pygame, sys import pygame.camera pygame.locals import * mkrgr_1 = '/dev/video0' size = (1280, 720) filename = 'capture.jpg' def camstream(): pygame.init() pygame.camera.init() display = pygame.display.set_mode(size, fullscreen) camera = pygame.camera.camera(mkrgr_1, size) camera.start() screen = pygame.surface.surface(size, 0, display) caption = pygame.display.get_caption() pygame.display.set_caption(*caption) capture = true while capture: screen = camera.get_image(screen) display.blit(screen, (0,0)) pygame.display.flip() e in pygame.event.get(): if e.type keydown , e.key == k_escape: capture = false camera.stop() pygame.quit() return if __name__ == '__main__': pygame.display.set_caption('makergear m2') camstream()
help!
raspberrypi
Comments
Post a Comment