Forums - Converting OpenCV Mat to Snpe's iTensor.

1 post / 0 new
Converting OpenCV Mat to Snpe's iTensor.
kshamajayantvete
Join Date: 6 Sep 17
Posts: 9
Posted: Fri, 2018-04-20 01:54

Hi,

I got  Mat object of OpenCV after reading one JPEG file. OpenCV  reads image data in NCHW order and iTennsor  of SNPE supports NHWC  order.

Is there any way I can copy my Mat (OpenCv) contents to SNPE's  input Tensor so that I can run my model with input Tensor using SNPE?

 

Regards,

Kshama Vete

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.