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
I found that the ios version opencv read .png as rgb (but jpeg as bgr). cv::Mat img = cv::imread("test.png"); cv::cvtColor(img, img, cv::COLOR_RGB2BGR); cv::imwrite("new.png", img);
the code above generate correct new.png, but if I do not cvtColor for RGB to BGR, the result is not correct.
I found that the ios version opencv read .png as rgb (but jpeg as bgr).
cv::Mat img = cv::imread("test.png");
cv::cvtColor(img, img, cv::COLOR_RGB2BGR);
cv::imwrite("new.png", img);
the code above generate correct new.png, but if I do not cvtColor for RGB to BGR, the result is not correct.
I use the opencv-mobile-4.5.4-ios.zip downloaded from: https://github.com/nihui/opencv-mobile/releases/download/v14/opencv-mobile-4.5.4-ios.zip
The text was updated successfully, but these errors were encountered: