This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

What is this?

WifiCamera is a Python module for controlling the network camera CS-W07G-CY. About the device, see http://www.planex.co.jp/product/camera/cs-w07g-cy/.

Getting started

WifiCamera can be installed with pip or easy_install:

pip install wificamera

Create WifiCamera object, and you can take and save a snapshot:

from wificamera import WifiCamera
camera = WifiCamera(host='192.168.111.200')
data = camera.snapshot()
with open('snapshot.jpg', 'wb') as f:
    f.write(data)

You can get/set some kinds of parameters for the camera:

print(camera.resolution)        # 'VGA'
camera.resolution = 'QQVGA'     # set resolution 'QQVGA'

print(camera.compression)       # 'standard'
camera.compression = 'high'     # set compression 'high'

print(camera.brightness)        # 4
camera.brightness = 7           # set brightness 7

print(camera.contrast)          # 2
camera.contrast = 4             # set contrast 4

To load a snapshot as a PIL object, use StringIO module:

from cStringIO import StringIO
import Image
data = camera.snapshot()
img = Image.open(StringIO(data))
img.save('snapshot.jpg')

To use streaming, define callback and call ‘stream’ method:

count = 0

def on_data(data):  # callback
    global count
    with open('streaming.jpg', 'wb') as f:
        f.write(data)
    count += 1

def is_continue():  # stop condition
    global count
    if count < 100:
        return True
    else:
        return False

camera.stream(on_data, is_continue)

License

WifiCamera is licensed under the MIT Licence. See LICENSE for more details.

Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
wificamera-0.1.1.zip (7.6 kB) Copy SHA256 Checksum SHA256 Source Mar 4, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting