blakeblackshear.frigate/migrations
Nick 045aac8933
Add object filter ratio (#2952)
* Add object ratio config parameters

Issue: #2948

* Add config test for object filter ratios

Issue: #2948

* Address review comments

- Accept `ratio` default
- Rename `bounds` to `box` for consistency
- Add migration for new field

Issue: #2948

* Fix logical errors

- field migrations require default values
- `clipped` referenced the wrong index for region, since it shifted
- missed an inclusion of `ratio` for detections in `process_frames`
- revert naming `o[2]` as `box` since it is out of scope!

This has now been test-run against a video, so I believe the kinks are
worked out.

Issue: #2948

* Update contributing notes for `make`

Issue: #2948

* Fix migration

- Ensure that defaults match between Event and migration script
- Deconflict migration script number (from rebase)

Issue: #2948

* Filter objects out of ratio bounds

Issue: #2948

* Update migration file to 009

Issue: #2948
2022-04-10 08:25:18 -05:00
..
001_create_events_table.py formatting cleanup 2021-02-25 07:01:57 -06:00
002_add_clip_snapshot.py formatting cleanup 2021-02-25 07:01:57 -06:00
003_create_recordings_table.py fix migrations 2022-02-18 21:18:26 -06:00
004_add_bbox_region_area.py add region/bbox/area to event table 2021-09-23 07:31:48 -05:00
005_make_end_time_nullable.py only save recordings when an event is in progress 2022-02-18 21:18:26 -06:00
006_add_motion_active_objects.py store objects and motion counts in the db 2022-02-18 21:18:26 -06:00
007_add_retain_indefinitely.py Ability to retain specific clips / events indefinitely (#2831) 2022-02-21 22:03:01 -06:00
008_add_sub_label.py FEAT: Ability to set sub labels for specific events (#2949) 2022-03-17 07:18:43 -05:00
009_add_object_filter_ratio.py Add object filter ratio (#2952) 2022-04-10 08:25:18 -05:00