Get images from server running on default route
Project description
IMAGE THIEF
This is a python library for capturing images over default route (http://0.0.0.0)
Python-2.7 Not Supported
Functions:
Capture images from raspberryPi and access on your system.
Capture images on one system and access on other.
Note:
Don't forget to install opencv (Not included in this packages)
Installation :
Python3
python3 -m pip install imagethief --user
Server Demo:
from ImageThief import Thief def some(): print('Image stolen') pass if __name__ == '__main__': thief = Thief('Name', cameraPort=0) thief.add_plan('/image', 'image', some) thief.steal(port=5000, debug=True)
Client Demo:
import requests as req from ImageThief import StolenImageDecoder if __name__ == '__main__': your_ip = '<your server ip>' port = 5000 #default url = 'http://'+your_ip+':'+str(port)+'/plan_name' # For above Demo code it is # url = 'http://'+your_ip+':'+str(port)+'/image' r = req.get(url) decoder = StolenImageDecoder('<ImageName>') ## decoder = StolenImageDecoder('myImage') decoder.decodeImage(r.text)
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
ImageThief-1.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for ImageThief-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae74e24d652c36734ae68784197700af6ae33c279e5fe21f551b082b6e002bd |
|
MD5 | a2c61e14f349e0dd1c82b0641b21f6fa |
|
BLAKE2b-256 | 4c2b5c54e9bd530d3a0e075c8613fb23fa6976e9e13f88e4912a141c72505a44 |