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 IP Webcam 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)

TODO

Add support for Image resolution

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.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file ipwebcam-0.2.tar.gz.

File metadata

  • Download URL: ipwebcam-0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for ipwebcam-0.2.tar.gz
Algorithm Hash digest
SHA256 ec71cf8fc53162b70c1fd0e24ca8666df3aa72616ffe9bc793afc89fdf3595a8
MD5 b257cffff454798c637905afaec5a910
BLAKE2b-256 3c99ba9b5d17b6c188502fdeab81b994e874f9959f340250928a505b204e643f

See more details on using hashes here.

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