Ask Your Question

Revision history [back]

Convert Mat to normalized float array

Hello, I am trying to use opencv on android to detect objects and then to pass these objects to trained tensorflow model. The problem is that my tensorflow model needs float array of the image on the input and I cant give him Mat. Also the array should contains only values between 0 and 1. Is there any way to convert Mat to normalized float array?