Get files from server running on default route
Project description
This is a python library for capturing images over default route (http://0.0.0.0)
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-2.0.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for ImageThief-2.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57f5dc8985ce3aa323005bedd8bcf5a9a08c9b06be980a0202db421d736f04c |
|
MD5 | 69b431f3bb6c84044b603add6a7841a4 |
|
BLAKE2b-256 | 65ff4b8df0fa9c79e3ffa6d4b5965eeca7517615b31695f6a65296a5ec9e2228 |