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
Hello, I am using image v4.2.0 to binarize images. But when testing iOS app, I encountered a headache: when I selected a screenshot from the album, I tried to use pixel to get the r, g, b value, but found that its value was not 0-255, which made it impossible for me to binarize it.
If it is not an iOS screenshot picture, the rgb value obtained is correct. In addition, I sent this picture to my android 14 phone, and it also had a similar problem.
This problem did not occur when using image v3, and after testing, the same iOS screenshot, v3 can correctly obtain r, g, b values between 0-255.
I don't know what v4 does, but I hope you can help check this problem, or tell me how to use v4's api correctly, thank you very much!
In addition, I am using flutter v3.16.9, image v4.2.0, and the iOS test machine is iphoneX (16.1.2)
for (int y = 0; y < image.height; y++) { for (int x = 0; x < image.width; x++) { imgLib.Pixel pixel = image.getPixel(x, y); if (x == 0 && y == 0) { print("@@@${pixel.r},${pixel.g},${pixel.b}"); } } }
log=> flutter: @@@54434,42598,20770
The text was updated successfully, but these errors were encountered:
Hello, I am using image v4.2.0 to binarize images. But when testing iOS app, I encountered a headache: when I selected a screenshot from the album, I tried to use pixel to get the r, g, b value, but found that its value was not 0-255, which made it impossible for me to binarize it.
If it is not an iOS screenshot picture, the rgb value obtained is correct. In addition, I sent this picture to my android 14 phone, and it also had a similar problem.
This problem did not occur when using image v3, and after testing, the same iOS screenshot, v3 can correctly obtain r, g, b values between 0-255.
I don't know what v4 does, but I hope you can help check this problem, or tell me how to use v4's api correctly, thank you very much!
In addition, I am using flutter v3.16.9, image v4.2.0, and the iOS test machine is iphoneX (16.1.2)
for (int y = 0; y < image.height; y++) { for (int x = 0; x < image.width; x++) { imgLib.Pixel pixel = image.getPixel(x, y); if (x == 0 && y == 0) { print("@@@${pixel.r},${pixel.g},${pixel.b}"); } } }
log=> flutter: @@@54434,42598,20770
The text was updated successfully, but these errors were encountered: