Skip to content
/ z-cam Public

Django site to live stream video feed of my dog Z. Ultimately want to store footage and process data for computer vision tasks.

Notifications You must be signed in to change notification settings

sampiecz/z-cam

Repository files navigation

Django site to serve live video from raspberry pi camera

Running the project

Run with docker - below instructions were pre docker implementation but useful to understand how project functions

docker build -t z_cam . && docker run --privileged -d -p 9000:9000 z_cam

Install linux packages

sudo apt-get install libatlas-base-dev libhdf5-dev libhdf5-serial-dev libatlas-base-dev libjasper-dev libqtgui4 libqt4-test libopenjp2-7 libilmbase23 libilmbase-dev libopenexr-dev libgstreamer1.0-dev libavcodec-dev libavformat-dev libswscale-dev libgtk-3-dev

Install requirements

pip install -r requirements.txt

Make initial database migrations

python3 manage.py migrate

Start project

python3 manage.py runserver 0.0.0.0:8000

Accessing Device on network

1.) May need to change allowed hosts file depending on your machines ip.

2.) Access the url at your machines ip you added in the hosts file ex: http://raspberrypi.local:8000/cam

Setup servo arm

1.) cd PCA9685

2.) make

3.) mkdir /usr/local/lib/tup

4.) mv RunServoDemo.so /usr/local/lib/tup.

5.) touch /etc/ld.so.conf.d/libtup.conf

6.) use editor of choice to paste this in libtup.conf /usr/local/lib/tup

7.) Add this to .bashrc or .zshrc and source your config export LD_LIBRARY_PATH='/usr/local/lib/tup:$LD_LIBRARY_PATH

About

Django site to live stream video feed of my dog Z. Ultimately want to store footage and process data for computer vision tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published