Skip to content
Open
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: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# LiveStramingCamera
DIY live streaming camera using raspberry pi, opencv, flask and remote.it</br>
# LiveStreamingCamera
DIY live streaming camera using Raspberry Pi, OpenCV, Flask and remote.it</br>

### Essential Libraries to install<br/>
---------------------------
echo Y |sudo apt-get install libopenjp2-7-dev<br/>
echo Y | sudo apt-get install libopenjp2-7-dev<br/>
echo Y | sudo apt-get install libhdf5-dev<br/>
echo Y |sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test<br/>
echo Y | sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test<br/>
echo Y | sudo apt-get install libatlas-base-dev<br/>
echo Y | sudo apt-get install libjasper-dev<br/>
echo Y | sudo apt-get install python3-pip<br/>
Expand All @@ -16,7 +16,7 @@ sudo apt install remoteit<br/>



### Wfi Settings for Raspbian OS</br>
### WiFi Settings for Raspbian OS</br>
------------------------------
**File Name:** wpa_supplicant.conf<br/>
**Contents:**<br/>
Expand All @@ -30,5 +30,5 @@ sudo apt install remoteit<br/>

Known Issues</br>
--------------------
if you face any issue while installing library like python3-opencv or flask,</br>
if you face any issue while installing a library like python3-opencv or flask,</br>
then run the "sudo apt-get update --fix-missing" command first.
4 changes: 2 additions & 2 deletions camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from flask import Flask, render_template, Response, stream_with_context, request

video = cv2.VideoCapture(0)
app = Flask('__name__')
app = Flask(__name__)


def video_stream():
Expand All @@ -14,7 +14,7 @@ def video_stream():
else:
ret, buffer = cv2.imencode('.jpeg',frame)
frame = buffer.tobytes()
yield (b' --frame\r\n' b'Content-type: imgae/jpeg\r\n\r\n' + frame +b'\r\n')
yield (b' --frame\r\n' b'Content-type: image/jpeg\r\n\r\n' + frame +b'\r\n')


@app.route('/camera')
Expand Down