Tutorial

Table Of Contents
84
mimetype='multipart/x-mixed-replace; boundary=frame')
if __name__ == '__main__':
app.run(host='0.0.0.0', threaded=True)
After editing, press CTRL+X to launch the editing, and prompt whether to save the changes, press Y
and Entry after saving the changes.
Then you can run app.py:
sudo app.py
Open the browser on the device on the same local area network as the Raspberry Pi (we use Google
Chrome to test), and enter the IP address of the Raspberry Pi plus the video streaming port number: 5000 in
the address bar, as shown in the following example:
192.168.3.157:5000
Now you can see the page created by the Raspberry Pi on the browser of your computer or mobile
phone. After loading successfully, the page will display the real-time image of the Raspberry Pi camera.
This feature uses projects from GitHub flask-video-streaming.