unix - How do I access remote Raspberry Pi camera over the network using Python? -
i've made simple pygame application access local machine camera follows :
import pygame,sys import pygame.camera pygame.locals import * pygame.init() pygame.camera.init() stage= pygame.display.set_mode((640,480)) cameras = pygame.camera.list_cameras() cam=pygame.camera.camera(cameras[0],(640,480)) cam.start() while 1: image=cam.get_image() stage.blit(image,(0,0)) pygame.display.update() e in pygame.event.get(): if e.type==pygame.quit: pygame.quit() quit()
i've been looking around way me access raspberry pi camera feed located in local network, hopping possible not changing of current code , change line : cameras = pygame.camera.list_cameras()
find rpi camera on network instead of local machine adding rpi ip , login information, i'm starting realize maybe not possible way want it, if there similar way doesn't deal vlc player or other gui application fine me because intend use little possible of rpi memory , processor, there way close i'm hopping for?
Comments
Post a Comment