Count pixel for black and white using OpenCV for Unity [closed]
Hi, i'm developing a mobile app to capture images of seedling and calculate the plant growth (after 3 weeks) by calculating the differences of white pixels (after changing it to threshold) for each images. I already got how to change it to threshold but i don't know how to count black and white pixels numbers of the image. I'm using OpenCV for Unity plugin. Can anybody help me?
Please read FAQ.
In opencv you can use countNonZero
sorry, but we cannot help you with problems specific to unity's 3rdparty, unsupported c# api.
try to rephrase it, so it's more a "general" opencv problem, not one specific to unity.
i see. thank you by the way.