ai-cfia / nachet-frontend

Frontend application for seed classification of images acquired from digital microscopes
MIT License
2 stars 2 forks source link

Have video window in front end display the full camera image #54

Closed TaranMeyer closed 1 month ago

TaranMeyer commented 8 months ago

It would be a lot nicer for getting things in frame and also maximizing as much detail as possible if the video feed and capture function from the Tagarno matched the aspect ratio/full camera image of the Tagarno rather than cropping the edges. Ideally it would accommodate whatever video or image aspect ratio was encountered, I guess.

TaranMeyer commented 1 month ago

Currently there is a very small amount of cutting off of both edges of the screen of the camera feed, I assume because the video display isn't quite a perfect 16:9 ratio. Is there a way to make the displayed image shrink to fit the defined box (so that there may be small blank areas in the box if the feed is a different shape ratio)? This might also help "future proof" the app if people end up using different equipment to use it that doesn't necessarily have a 16:9 feed. The downside I can see is it might reduce the number of pixels for the screencap the model works on, since there might be blank bands along the sides.

Similarly, for the capture view, would there be a way to modify how loaded images are displayed so that the display shrinks them to fit the box on their largest axis instead of stretching/distorting them to fit it exactly? Right now any loaded images (even ones taken with the Tagarno) are slightly to severely distorted on the display. I know this doesn't affect how the model interprets them, it's just somewhat unnerving to look at as a user.