This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
(VISION SDK 版本: processor_sdk_vision_03_03_00_00)
你(们)好
我是 TDA2x EVB 板和视觉应用板的新手
我想实施使用 OpenCV 的算法、并 通过修改示例 usecase 和 ALG_plugins (vIP_single_cam_opencvopenclasdilation / opencvopenclasimation)来实现它。
[问题]
我想 应用我的 alogirhtm 代码 并将其显示在显示器上。
我应该在哪里修改代码?
我开始进行如下修改、但是当我删除"CV::dilate"代码时、它会显示处理器使用情况下的黑色图像。
之前的代码 |
修改了代码 |
void* opclindilationThreadFunc (void* args) if (!gOpenCLDilationThreadStared) /*等待生产线程指向当前输入 pthread_mutex_lock (&gOpenCLDilationMtx); /* openCLDilationInputUMat = openCLDilationInputMat。getUMat (CV:ACCESS_RW); cv::dilate (openCLDilationInputUMat、openCLDilationOutputUMat、cv::Mat ());
G_CAC = 0; pthread_mutex_unlock (&gOpenCLDilationMtx); |
void* opclindilationThreadFunc (void* args) if (!gOpenCLDilationThreadStared) /*等待生产线程指向当前输入 pthread_mutex_lock (&gOpenCLDilationMtx); /* openCLDilationInputUMat = openCLDilationInputMat。getUMat (CV:ACCESS_RW);
G_CAC = 0; pthread_mutex_unlock (&gOpenCLDilationMtx); |