Closed sandeepdutta closed 2 years ago
The following adds the parameters of the lambda expression cvt_0 to the parameter list of the top level function.
void process_webcam_0(uint32_t oa[WC_IMGSIZE/WC_BPP], hls::stream &cont, hls::stream &ctl) { // wait for the webcam to start streaming while (1) { if (webcam_0 && webcam_0->running) break; sleep(1); }; auto cvt_0 = [] (cv::Mat &in, cv::Mat &out) { cv::cvtColor(in,out,CV_RGB2GRAY); }; // output convertion function : convert to gray scale webcam_0->webcam_cvt_process_image(oa,cont,ctl,cvt_0); }
Should be fixed in master. Verify and close.
The following adds the parameters of the lambda expression cvt_0 to the parameter list of the top level function.
void process_webcam_0(uint32_t oa[WC_IMGSIZE/WC_BPP], hls::stream &cont, hls::stream &ctl)
{
// wait for the webcam to start streaming
while (1) {
if (webcam_0 && webcam_0->running) break;
sleep(1);
};
auto cvt_0 = [] (cv::Mat &in, cv::Mat &out) {
cv::cvtColor(in,out,CV_RGB2GRAY);
};
// output convertion function : convert to gray scale
webcam_0->webcam_cvt_process_image(oa,cont,ctl,cvt_0);
}