Skip to main content

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

  1. opencv 2
  2. numpy
  3. 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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page