vivado-hls

Access elements of multidimentional cv::Mat array

陌路散爱 提交于 2020-01-25 08:07:52
问题 I cannot figure out how to properly access elements of a 3D cv::Mat array. The following code runs in Vivado HLS and fails with a non-descriptive error. Is this a problem with the Vivado HLS, or I am not properly reading values? cv::Mat img = cv::Mat(cv::Size(100,100),CV_MAKETYPE(CV_8U,5)); // should create a 100x100x5 array uchar x; x = img.at<uchar>(0,0,0); // works fine when reading from third dimension at 0 x = img.at<uchar>(0,0,1); // fails when reading from third dimension at 1 Error:

a.at<uchar>(x,y) wont works in Vivado SDSoC

混江龙づ霸主 提交于 2020-01-25 07:48:12
问题 I want to get 2d array from a Mat in Vivado SDSoC but Im not able to do that because as described Xilinx(XAPP1167), cv::Mat<>.at() method and cvGet2D() function have no corresponding equivalent function in the synthesizable library I appreciate any help. Thank you. The project is about face recognition system. The system first will go viola-jone face detection and then feed the output to the CNN classification. The output of viola-jones face detection is in unsigned char*. I plant to convert

AXI4 Streaming interface: how to manage Floating Point array in HLS for generating HW accelerators and connect them, safely, in an RTL project?

拥有回忆 提交于 2019-12-22 18:27:33
问题 In the end what I want to do is to use a streaming interface with single precision floating point arrays in Vivado Design Suite to build hardware accelerators. HLS User Guide UG902 shows that is possible to create HW accelerators (starting from C, C++, SystemC, OpenCL code) using different interfaces. If you want to use an AXI4 streaming interface, HLS synthesizes the signals TREADY and TVALID but it doesn't synthesize the signal TLAST necessary to connect the RTL interface generated to Zynq

How to find connected object in a binary image in VIVADO HLS?

二次信任 提交于 2019-12-10 11:57:13
问题 I have a thresholded binary image as shown below: I want to find all connected object in the image. The code will take an input image stream and gives no. of connected components as output. I have already implemented it in C where matrices are stored and can be accessed directly by A[][] format. But in HLS images come in as a stream, which I have converted in hls::Mat . I am not sure whether I can perform an element-wise operation on Mat and whether mat is available for offline operations