bool opencvTool::drawLines(std::string image_p, std::vector<cv::Point> points){cv::Mat ima = cv::imread(image_p.c_str());// 读取图像,替换为你的图片路径 cv::Scalar red = cv::Scalar(0,0,255);// Red color int thickness =2;// 遍历点列表,绘制线段for(size_t i =0; i < points.size()-1; i++){cv::Point2f start = points[i];cv::Point2f end = points[i +1];cv::line(ima, start, end, red, thickness);}cv::imwrite(image_p.c_str(), ima);returntrue;}bool opencvTool::drawLines(cv::Mat& image, std::vector<cv::Point> points,int lineWidth){cv::Scalar red = cv::Scalar(0,0,255);// Red color // 遍历点列表,绘制线段for(size_t i =0; i < points.size()-1; i++){cv::Point2f start = points[i];cv::Point2f end = points[i +1];cv::line(image, start, end, red, lineWidth);}returntrue;}
目录
拳打 GPT-4 Turbo ,脚踢 DALLE 3
端侧大模型,唯快不破
AI 应用落地需要一个即插即用的大模型超市
并不存在 AI 这个行业,只有 AI行业,强调 AI 需要与传统产业合作,这种关系是结合与赋能,而不是颠覆…