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 details)

Uploaded Source

File details

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

File metadata

  • Download URL: ipwebcam-0.2.1.tar.gz
  • Upload date:
  • Size: 3.4 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.1.tar.gz
Algorithm Hash digest
SHA256 d8d19f49679b9e81249c6f1acf2eb8cff5a87a828c303dce86d57b01f7bcf118
MD5 2e3f0bbc152665de920792f0fa2839e6
BLAKE2b-256 8f0354f84525361ef416b7134097ce62830377610596110772ba509a9b0f4154

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