Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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: in production at my house for ages now

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

Features

Tasks

  • [WIP] Rust object detector
    • [TODO] Transcoding on the GPU
  • [TODO] Work out how to make cache more effective (the regular camera + video claim stuff means very few cache hits); there's a TODO about smarter cache invalidation in Djangolang for this

Usage

Development

# shell 1
./run-env.sh
# shell 2
./build.sh
# shell 3
REDIS_URL=redis://localhost:6379 DJANGOLANG_API_ROOT=/api POSTGRES_DB=camry POSTGRES_PASSWORD=NoNVR\!11 go run ./cmd/ serve
# shell 4
websocat -B 1048576 ws://localhost:7070/api/__stream | jq
# shell 5
devserver --address 0.0.0.0:6060
# shell 6
curl -X POST http://localhost:7070/api/cameras -d '[{"name": "Driveway", "stream_url": "rtsp://192.168.137.31:554/Streaming/Channels/101"}, {"name": "Front door", "stream_url": "rtsp://192.168.137.32:554/Streaming/Channels/101"}, {"name": "Side gate", "stream_url": "rtsp://192.168.137.33:554/Streaming/Channels/101"}]' | jq
# shell 7
DJANGOLANG_API_ROOT=/api DESTINATION_PATH=media ENABLE_PASSTHROUGH=1 POSTGRES_DB=camry POSTGRES_PASSWORD=NoNVR\!11 go run ./cmd segment_producer
# shell 8
DEBUG=1 API_URL=http://localhost:7070 SOURCE_PATH=media ~/.venv/camry/bin/python3 -m object_detector

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

AltStyle によって変換されたページ (->オリジナル) /