Enum ImgResizeMode
Defined in File ImgFrameCapability.hpp
Enum Documentation
-
enum class dai::ImgResizeMode
Values:
-
enumerator CROP
Keeps aspect ratio. Crops the image to get the correct output aspect ratio. Crops some FOV to match the required FOV, then scale. No potential NN accuracy decrease.
-
enumerator STRETCH
Doesn’t keep aspect ratio. Squishes or streches the image to fill the required pixel area. Preserves full FOV, but frames are stretched to match the FOV, which might decrease NN accuracy.
-
enumerator LETTERBOX
Keeps aspect ratio. Envelop the image with a background color to get the corect output aspect ratio. Preserves full FOV by padding/letterboxing, but smaller frame means less features which might decrease NN accuracy.
-
enumerator CROP