Xilinx / Vitis_Libraries

Vitis Libraries
https://docs.xilinx.com/r/en-US/Vitis_Libraries
Apache License 2.0
840 stars 340 forks source link

cv2.findContours() in Vitis vision Library #201

Open raf329 opened 1 week ago

raf329 commented 1 week ago

Hi, all!

Is it possible to use cv2.findContours() with Vitis vision Library?

  1. I didn't find this function in list: https://github.com/Xilinx/Vitis_Libraries/blob/master/vision/docs/src/using-the-vitis-vision-library.rst

  2. What is the better way to release this function on PL part of FPGA? Matlab HDL Coder?

    Best Regards!

vt-lib-support commented 2 days ago

Hi @raf329 ,

There is no direct equivalent function for OpenCV's "findContours" function in Vitis Vision library, but you can achieve similar functionality using "fw_cca" function defined in _L1/include/imgproc/xf_cca_customimp.hpp.

You can check the Defect Detect L3 design example to know how to call this function.