You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cv2.imencode function calls cv2_convert.cpp to ensure that the non-contiguous input can be converted properly. However, PyTurboJPEG assumes that the input is already a contiguous buffer. You can try calling np.ascontiguousarray(flipped_rgb_pixel_array) before passing it to the PyTurboJPEG encoder. This should resolve the issue you encountered, and this will be natively supported in a future release.
use opencv imencode is correct
maybe use this code
but use pyturbojpeg is uncorrect
The text was updated successfully, but these errors were encountered: