Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions 12 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ To enable encryption you need to run keyGen.py to generate priv/public keys
Also make sure that switches are on in config.ini

##How to run:
* sudo python3 client.py (on the client side (where the camera is))
* sudo python3 server.py (on the server side (where the web ui should be))

## Things you need to run it
* linux
* python3
* openCv
* python Crypto (sudo apt-get install python3-crypto)
* pip install -r requirements.txt
* adjust config.ini
* on the server python server.py
* on the client python client.py

## Trello board with info of what is going on:
https://trello.com/b/ZxRjPN2B/pythonvideostream
1 change: 1 addition & 0 deletions 1 camera/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def get_frame(self):
if self.failure_counter < self.MAX_PHOTO_FAILURE_ATTEMPTS:
self.failure_counter += 1
self.get_frame()
# TODO need to add else raise Error(photo taking failed... and camera close)

def compare_images(self, curr_image: Image) -> float:
diff = ImageChops.difference(curr_image, self.prev_image)
Expand Down
2 changes: 1 addition & 1 deletion 2 config/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tmp_directory = /tmp/
buffer_file = /tmp/buff.jpg
[TRANSPORT]
server_address = web2u.org
server_address = 0.0.0.0
port = 4080
ui_port = 8181
[COMPRESSION]
Expand Down
11 changes: 11 additions & 0 deletions 11 requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
certifi==2018.8.24
chardet==3.0.4
crypto==1.4.1
idna==2.7
Naked==0.1.31
numpy==1.15.2
opencv-python==3.4.3.18
PyYAML==3.13
requests==2.19.1
shellescape==3.4.1
urllib3==1.23
Morty Proxy This is a proxified and sanitized view of the page, visit original site.