mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-01 08:32:18 +03:00
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
This commit is contained in:
@@ -30,7 +30,9 @@ SQL = pw.SQL
|
||||
def migrate(migrator, database, fake=False, **kwargs):
|
||||
migrator.add_fields(
|
||||
Event,
|
||||
ratio=pw.FloatField(),
|
||||
ratio=pw.FloatField(
|
||||
default=1.0
|
||||
), # There is no way to get the true ratio from an existing recording, so simply assume they are square.
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user