我们的目标是在不能运行Matlab的嵌入式系统上运行Linux。我们有计算机视觉Matlab脚本原型,并希望此功能(Vision.blobAnalysis)移植到嵌入式。
两个选项:使用Matlab编码器将Matlab计算机视觉功能移植到嵌入式系统,或在嵌入式系统上使用openCV重现功能。
发布于 2015-08-19 22:10:05
尝试一个简单的斑点检测器:
using namespace cv;
// Read image
Mat im = imread( "blob.jpg", IMREAD_GRAYSCALE );
// Set up the detector with default parameters.
SimpleBlobDetector detector;
// Detect blobs.
std::vector<KeyPoint> keypoints;
detector.detect( im, keypoints);
// Draw detected blobs as red circles.
// DrawMatchesFlags::DRAW_RICH_KEYPOINTS flag ensures the size of the circle corresponds to the size of blob
Mat im_with_keypoints;
drawKeypoints( im, keypoints, im_with_keypoints, Scalar(0,0,255), DrawMatchesFlags::DRAW_RICH_KEYPOINTS );
// Show blobs
imshow("keypoints", im_with_keypoints );
waitKey(0);https://stackoverflow.com/questions/32097839
复制相似问题