1
0
Fork 0
luxonis-cruft/README.md

57 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2021-07-14 22:21:32 -06:00
# Camera AI Scripts
Scripts for Luxonis OAK-D-POE AI Camera.
# Streaming
There is no RTSP streaming available yet, but it is in the development
pipeline from Luxonis. For now a crufty workaround, perhaps.
```
# Install depthai, various ways, maybe like:
pip install --user depthai
# Clone this repo
git clone https://spacecruft.org/jebbacam/luxonis-cruft
# Build a streaming server
# Install deps first:
apt install [whatever ffmpeg-dev deps are on your system]
git clone https://github.com/klaxa/mkvserver_mk2
cd mkvserver_mk2
make
# Now run thang
# In another terminal
cd luxonis-cruft
rm video.mkv video.h265
./rgb_encoding.py
# In another terminal
cd luxonis-cruft
2021-07-14 22:55:53 -06:00
ffmpeg -framerate 30 -i video.h265 video.mkv
2021-07-14 22:21:32 -06:00
# In another terminal
# Run the server back in the
cd mkvserver_mk2
./server ../luxonis-cruft/video.mkv
# View stream at localhost or your IP or:
# http://127.0.0.1:8080
```
2022-09-28 12:55:11 -06:00
# Udev
```
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && udevadm trigger
```
Then unplug and plug the camera back in.
2021-07-14 22:21:32 -06:00
# Upstream Source Code
Forklets of Luxonis examples.
2021-07-14 22:21:32 -06:00
https://github.com/luxonis/depthai-python
2022-09-28 12:55:11 -06:00