{ "info": { "author": "lanius", "author_email": "lanius@nirvake.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Multimedia :: Graphics :: Capture", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "What is this?\n=============\nWifiCamera 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/.\n\n\nGetting started\n===============\nWifiCamera can be installed with pip or easy_install::\n\n pip install wificamera\n\nCreate WifiCamera object, and you can take and save a snapshot::\n\n from wificamera import WifiCamera\n camera = WifiCamera(host='192.168.111.200')\n data = camera.snapshot()\n with open('snapshot.jpg', 'wb') as f:\n f.write(data)\n\nYou can get/set some kinds of parameters for the camera::\n\n print(camera.resolution) # 'VGA'\n camera.resolution = 'QQVGA' # set resolution 'QQVGA'\n \n print(camera.compression) # 'standard'\n camera.compression = 'high' # set compression 'high'\n \n print(camera.brightness) # 4\n camera.brightness = 7 # set brightness 7\n \n print(camera.contrast) # 2\n camera.contrast = 4 # set contrast 4\n\nTo load a snapshot as a PIL object, use StringIO module::\n\n from cStringIO import StringIO \n import Image\n data = camera.snapshot()\n img = Image.open(StringIO(data))\n img.save('snapshot.jpg')\n\nTo use streaming, define callback and call 'stream' method::\n\n count = 0\n \n def on_data(data): # callback\n global count\n with open('streaming.jpg', 'wb') as f:\n f.write(data)\n count += 1\n \n def is_continue(): # stop condition\n global count\n if count < 100:\n return True\n else:\n return False\n\n camera.stream(on_data, is_continue)\n\n\nLicense\n=======\nWifiCamera is licensed under the MIT Licence. See LICENSE for more details.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lanius/wificamera/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "wificamera", "package_url": "https://pypi.org/project/wificamera/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wificamera/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/lanius/wificamera/" }, "release_url": "https://pypi.org/project/wificamera/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "WifiCamera is a Python module for controlling the network camera CS-W07G-CY.", "version": "0.1.1" }, "last_serial": 801651, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "76457c6161f5d5e6b14ffb3aadd529aa", "sha256": "8c10dba0bc14b0a8333d177152c6840261bde73eba87de4906eaabe423d05822" }, "downloads": -1, "filename": "wificamera-0.1.zip", "has_sig": false, "md5_digest": "76457c6161f5d5e6b14ffb3aadd529aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5691, "upload_time": "2012-02-11T16:46:22", "url": "https://files.pythonhosted.org/packages/08/b9/32dd5d8e7cbb5f59ae921192808ec4999eb7f0a6f37c6e6befeb95cd3592/wificamera-0.1.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f898c05501b6152cc2b6a9e48f33bcdb", "sha256": "40397a133df5fb7aac8b96db76af58426bb17ee29d7b9f432c6d01a60bf8a8f1" }, "downloads": -1, "filename": "wificamera-0.1.1.zip", "has_sig": false, "md5_digest": "f898c05501b6152cc2b6a9e48f33bcdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2012-03-04T09:51:11", "url": "https://files.pythonhosted.org/packages/e6/7a/b66b2521afdc94fdc46b8ff4eb69a3ba3727e650072e04b78228b0e24608/wificamera-0.1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f898c05501b6152cc2b6a9e48f33bcdb", "sha256": "40397a133df5fb7aac8b96db76af58426bb17ee29d7b9f432c6d01a60bf8a8f1" }, "downloads": -1, "filename": "wificamera-0.1.1.zip", "has_sig": false, "md5_digest": "f898c05501b6152cc2b6a9e48f33bcdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2012-03-04T09:51:11", "url": "https://files.pythonhosted.org/packages/e6/7a/b66b2521afdc94fdc46b8ff4eb69a3ba3727e650072e04b78228b0e24608/wificamera-0.1.1.zip" } ] }