mbari-org / vars-gridview

VARS GridView is a tool for reviewing and correcting VARS localizations in bulk.
MIT License
2 stars 0 forks source link

Handle resolution difference between annotation source video & MP4 proxy #33

Closed kevinsbarnard closed 1 year ago

kevinsbarnard commented 1 year ago

In some situations (e.g., i2MAP transects) GridView will use MP4 proxy videos that have a different resolution than the source of the annotation. This is problematic since the frame captured via beholder will not line up with the bounding boxes, since they are expressed in pixel coordinates.

For now, we'll maintain the assumption that the only difference between source and MP4 proxies is in scale.

kevinsbarnard commented 1 year ago

Simple solution: resize image (internal to GridView) to the correct dimensions, and render that instead.

kevinsbarnard commented 1 year ago

Many of the i2MAP MOV video references in MBARI VARS are registered at 0x0 resolution. This will prevent GridView from handling these images until it is resolved. 2f0e2b1724ea41b0f70ead90f1f2d0079c72c561 implements validation for this case.