Livestream anonymisation: blur buildings and optimise the pipeline
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- audio-video-rtc, computer-vision
Hướng nghiên cứu
Start with the linked pyro-engine issues #465, #466, and #467, which divide this work into study, model training and deployment, and pipeline optimisation. Read the listed datasets and model options, then measure the current 640x360, 10 fps stream on a station. Done means choosing blur classes, matching current FPS with the new model, measuring and merging useful pipeline optimisations, and closing the linked issues.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Related to pyronear/roadmap#37 (Privacy mask: a fixed mask per camera. This epic is about blurring objects live).
Context & Objective
During a doubt removal, the station streams the camera live and blurs it on the fly. A YOLO11n (pyronear/yolov11n on Hugging Face, NCNN on the Pi) detects persons and vehicles, and we paint a black box on them. Buildings are not blurred: YOLO has no such class.
We want to blur buildings too, and other classes if useful (houses, gardens, pools), and keep the stream real time on a Raspberry Pi. Two parts: train a new model with these classes, as fast as today, and optimise the stream code in pyro-engine, which is simple today.
What has to be done
Issues in pyro-engine: pyronear/pyro-engine#465 (study), pyronear/pyro-engine#466 (train and deploy), pyronear/pyro-engine#467 (optimise the pipeline).
1. Study: models and datasets
- Datasets with a building class: ADE20K (https://datasetninja.com/ade20k#class-sizes), COCO-Stuff, Cityscapes, Mapillary Vistas, Open Images. Our cameras look at landscapes from a tower, buildings are small and far. Most datasets are street level.
- Models: YOLO11n retrained on a merged dataset, YOLO11n-seg or a small segmentation model, or a big open-vocabulary model to label our own images and train a small YOLO on them.
- Choose the classes to blur and the target speed on the Pi (today: 640x360 at 10 fps, model input 640).
2. Train and deploy the new model
- Build the dataset, train, export NCNN and ONNX, publish on Hugging Face.
- Update
Anonymizerinpyro-engine. Measure FPS and latency on a station.
3. Optimise the stream pipeline
Today: one ffmpeg decodes the RTSP to raw frames, Python runs the model on the last frame in a thread, and an encoder thread paints the boxes and sends the frames to a second ffmpeg (x264 to SRT). Leads:
- Fewer copies per frame: give the raw frame to the model directly, paint the boxes in place.
- Boxes are painted on the current frame, not on the frame they come from. A moving object can show for a few frames. Delay the encoder, or keep the boxes longer and make them bigger.
- Hardware decode and encode on the Pi, or use a smaller camera substream.
- Smaller model input, or run the model one frame out of N.
- Measure before and after.
Done when
- The study is done and the classes to blur are chosen
- The new model runs on a station at the same FPS as today
- The pipeline is measured and the useful optimisations are merged
- The listed issues are closed
Theme Engine · Priority P2 · Period to be set
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pyronear/roadmap
-
P2 T1-27
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
P2 T2-27
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Triangulation and alert groupingĐang mởepic P2 T1-27
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
-
P2 T1-27
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Visibility analysisĐang mởepic P3 T2-AprMay-27
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Tất cả issue của pyronear/roadmap
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
transit-audio/transit#396 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
RVC-Boss/GPT-SoVITS#2869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eliasstravik/herdr-projects#785 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100