This is a simple module that helps in accessing the image from the Android App IPWebcam and to be able to display it in pygame
Project description
This is a simple script that helps in accessing the image from the Android App IPWebcam and to be able to display it in pygame
Requirements
- opencv 2
- numpy
- pygame
Usage
import sys
import pygame
from IPWebCam import *
pygame.init()
clock = pygame.time.Clock()
screen = pygame.display.set_mode((176,144))
ipcam = IPWEBCAM('192.168.1.103:8080') # thats the server address shown on the IP webcam, don't add 'http://' the class adds it
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.quit()
sys.exit()
screen.blit(ipcam.get_pygame_image(),(0,0))
pygame.display.flip()
clock.tick(0)
Features
- Camera Swap
- Overlay control
- Flash light control
- Set quality
- Set orientation
- Set resolution
- Zoom
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipwebcam-0.2.1.tar.gz
(3.4 kB
view hashes)