You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
372 B
C++

#include "circle_detect.h"
#include "hls_opencv.h"
int main()
{
int const rows = MAX_HEIGHT;
int const cols = MAX_WIDTH;
cv::Mat src = cv::imread(INPUT_IMAGE);
cv::Mat dst = src;
stream_t stream_in, stream_out;
cvMat2AXIvideo(src, stream_in);
edge_detect(stream_in, stream_out);
AXIvideo2cvMat(stream_out, dst);
cv::imwrite(OUTPUT_IMAGE, dst);
return 0;
}