Skip to main content

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

Metadata

Release files for ipwebcam 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipwebcam 0.2.1
File Size Uploaded
ipwebcam-0.2.1.tar.gz 3.4 kB Details

Release files / ipwebcam-0.2.1.tar.gz

Download URL ipwebcam-0.2.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d8d19f49679b9e81249c6f1acf2eb8cff5a87a828c303dce86d57b01f7bcf118
BLAKE2b-256 checksum
How to use checksums
8f0354f84525361ef416b7134097ce62830377610596110772ba509a9b0f4154
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page