Forums - Using FastCV in an OpenCV project

2 posts / 0 new
Last post
Using FastCV in an OpenCV project
pe.ostad
Join Date: 21 May 21
Posts: 14
Posted: Fri, 2021-10-29 03:03

Hi all,

I am planning to use FastCV in my opencv project. I am currently checking how to use the basic functions, then move on to the more advanced implementations. The general plan is to get video frames using OpenCV, process the frames using FastCV functions, then show the result using OpenCV again.

 

For instance, I am converting an RGB image to grayscale. This is very easy in OpenCV, but I could not use the corresponding FastCV function:

fcvColorRGB888ToGrayu8 (const uint8_t *__restrict src, uint32_t srcWidth, uint32_t srcHeight, uint32_t srcStride, uint8_t *__restrict dst, uint32_t dstStride)

The problem error is : cannot convert cv::Mat to const uint_8*.

How can I convert OpenCV Mat to something that is usable by FastCV functions?

Regards,

Peyman

 

  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 58
Posted: Tue, 2022-09-27 19:14
  • Up0
  • Down0
or Register

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.