Skip to content

A ghetto CCTV system built around YOLO (or maybe some other NN probably)

Notifications You must be signed in to change notification settings

initialed85/camry

Repository files navigation

camry

status: not yet working

Intended as the spiritual sucessor to initialed85/cameranator, built on initialed85/djangolang

Tasks

  • [TODO] Come up with a more efficient way to use the detections data, probably some sort of aggregation

Usage

Testing

./run-env.sh full

Development

# shell 1
./run-env.sh

# shell 2
./build.sh

# shell 3
REDIS_URL=redis:https://localhost:6379 DJANGOLANG_API_ROOT=/api POSTGRES_DB=camry POSTGRES_PASSWORD=NoNVR\!11 go run ./cmd/ serve

# shell 4
websocat -B 1048576 ws:https://localhost:7070/api/__stream | jq

# shell 5
curl -X POST https://localhost:7070/api/cameras -d '[{"name": "Driveway", "stream_url": "rtsp:https://192.168.137.31:554/Streaming/Channels/101"}, {"name": "Front door", "stream_url": "rtsp:https://192.168.137.32:554/Streaming/Channels/101"}, {"name": "Side gate", "stream_url": "rtsp:https://192.168.137.33:554/Streaming/Channels/101"}]' | jq

# shell 6
DJANGOLANG_API_ROOT=/api DESTINATION_PATH=media ENABLE_PASSTHROUGH=1 CAMERA_NAME='Driveway' NET_CAM_URL=rtsp:https://192.168.137.31:554/Streaming/Channels/101 POSTGRES_DB=camry POSTGRES_PASSWORD=NoNVR\!11 go run ./cmd segment_producer

# shell 7
DJANGOLANG_API_ROOT=/api DESTINATION_PATH=media ENABLE_PASSTHROUGH=1 CAMERA_NAME='Front door' NET_CAM_URL=rtsp:https://192.168.137.32:554/Streaming/Channels/101 POSTGRES_DB=camry POSTGRES_PASSWORD=NoNVR\!11 go run ./cmd segment_producer

# shell 8
DJANGOLANG_API_ROOT=/api DESTINATION_PATH=media ENABLE_PASSTHROUGH=1 CAMERA_NAME='Side gate' NET_CAM_URL=rtsp:https://192.168.137.33:554/Streaming/Channels/101 POSTGRES_DB=camry POSTGRES_PASSWORD=NoNVR\!11 go run ./cmd segment_producer

# shell 9

Scratch

docker run --rm -it --gpus=all --ipc=host pytorch/pytorch:2.4.0-cuda11.8-cudnn9-runtime python3 -c 'import torch; print([torch.cuda.is_available(), torch.cuda.device_count(), torch.cuda.current_device()])'

About

A ghetto CCTV system built around YOLO (or maybe some other NN probably)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published