当前位置: 首页 > news >正文

高端网站建设步骤做交易网站需要办什么证

高端网站建设步骤,做交易网站需要办什么证,广东省深圳市公司,个人社保缴费查询使用opencv c 来调用caffemodel 使用opencv 得dnn 模块调用 caffemodel得程序#xff0c;图片自己输入就行#xff0c;不做过多得解释#xff0c;看代码清单。 定义手指关节点 const int POSE_PAIRS[20][2] { {0,1}, {1,2}, {2,3}, {3,4}, // thumb {0,5}, {5,6}, {6,7}…使用opencv c 来调用caffemodel 使用opencv 得dnn 模块调用 caffemodel得程序图片自己输入就行不做过多得解释看代码清单。 定义手指关节点 const int POSE_PAIRS[20][2] { {0,1}, {1,2}, {2,3}, {3,4}, // thumb {0,5}, {5,6}, {6,7}, {7,8}, // index {0,9}, {9,10}, {10,11}, {11,12}, // middle {0,13}, {13,14}, {14,15}, {15,16}, // ring {0,17}, {17,18}, {18,19}, {19,20} // small }; string protoFile “hand/pose_deploy.prototxt”; string weightsFile “hand/pose_iter_102000.caffemodel”; int nPoints 22; 代码清单 #include opencv2/dnn.hpp #include opencv2/imgproc.hpp #include opencv2/highgui.hpp #include iostreamusing namespace std; using namespace cv; using namespace cv::dnn; #ifdef _DEBUG #pragma comment(lib,opencv_world455d.lib) #else #pragma comment(lib,opencv_world455.lib) #endifconst int POSE_PAIRS[20][2] {{0,1}, {1,2}, {2,3}, {3,4}, // thumb{0,5}, {5,6}, {6,7}, {7,8}, // index{0,9}, {9,10}, {10,11}, {11,12}, // middle{0,13}, {13,14}, {14,15}, {15,16}, // ring{0,17}, {17,18}, {18,19}, {19,20} // small };string protoFile hand/pose_deploy.prototxt; string weightsFile hand/pose_iter_102000.caffemodel;int nPoints 22;int main(int argc, char **argv) {string imageFile qianbo2.jpg;// Take arguments from commmand lineif (argc 2){imageFile argv[1];}float thresh 0.01;Mat frame imread(imageFile);Mat frameCopy frame.clone();int frameWidth frame.cols;int frameHeight frame.rows;float aspect_ratio frameWidth / (float)frameHeight;int inHeight 368;int inWidth (int(aspect_ratio*inHeight) * 8) / 8;cout inWidth inWidth ; inHeight inHeight endl;double t (double)cv::getTickCount();Net net readNetFromCaffe(protoFile, weightsFile);Mat inpBlob blobFromImage(frame, 1.0 / 255, Size(inWidth, inHeight), Scalar(0, 0, 0), false, false);net.setInput(inpBlob);Mat output net.forward();int H output.size[2];int W output.size[3];// find the position of the body partsvectorPoint points(nPoints);for (int n 0; n nPoints; n){// Probability map of corresponding bodys part.Mat probMap(H, W, CV_32F, output.ptr(0, n));resize(probMap, probMap, Size(frameWidth, frameHeight));Point maxLoc;double prob;minMaxLoc(probMap, 0, prob, 0, maxLoc);if (prob thresh){circle(frameCopy, cv::Point((int)maxLoc.x, (int)maxLoc.y), 8, Scalar(0, 255, 255), -1);cv::putText(frameCopy, cv::format(%d, n), cv::Point((int)maxLoc.x, (int)maxLoc.y), cv::FONT_HERSHEY_COMPLEX, 1, cv::Scalar(0, 0, 255), 2);}points[n] maxLoc;}int nPairs sizeof(POSE_PAIRS) / sizeof(POSE_PAIRS[0]);for (int n 0; n nPairs; n){// lookup 2 connected body/hand partsPoint2f partA points[POSE_PAIRS[n][0]];Point2f partB points[POSE_PAIRS[n][1]];if (partA.x 0 || partA.y 0 || partB.x 0 || partB.y 0)continue;line(frame, partA, partB, Scalar(0, 255, 255), 8);circle(frame, partA, 8, Scalar(0, 0, 255), -1);circle(frame, partB, 8, Scalar(0, 0, 255), -1);}t ((double)cv::getTickCount() - t) / cv::getTickFrequency();cout Time Taken t endl;imshow(Keypoints, frameCopy);imshow(Skeleton, frame);imwrite(out.jpg, frame);waitKey();return 0; }
http://www.dnsts.com.cn/news/222019.html

相关文章:

  • 网页小游戏网站有哪些潍坊网站建设科技有限公司
  • 买卖网站建设网页设计与制作字体设置
  • 网站数据每隔几秒切换怎么做的效果图网站名字
  • 国外优秀flash网站网站建设的目标
  • 闵行网站建站多少钿西安是哪个省哪个市
  • 在哪里可以学到做网站福州做彩票app网站
  • 怎样制作属于自己的网站简单的网页制作模板
  • 网站管理规范精品建设课程网站
  • 做色流网站服务器一般网站建设收费几年合同
  • 和田网站制作网站添加 备案
  • 常见的网站空间主要有网站服务器 电信
  • 徐州市城乡建设局门户网站上海比较有名的设计公司
  • 网站友情链接检测如何更换网站新域名
  • 汽车4s店网站建设方案北京网页设计师工资有多少
  • 好的网站怎么设计师织梦增加网站英文名称
  • 做响应式网站设计师需要做什么建筑公司网官网
  • 网站数据展示镇江建筑公司排名最新
  • 网站开发前端框架有经验的常州网站建设
  • 中华建设杂志网站可以做微网站的第三方平台
  • 网站开发一般要多少钱50个适合县城做的代理
  • 英语翻译网站开发衡水哪里可以做网站
  • 温州 外贸网站制作个人网站设计html
  • 上海网站建设基础大型机械网站建设公司
  • 如何推广网站业务昆明哪有做网站的
  • 电商平台网站有哪些金融类网站设计
  • 网站怎么做能赚钱吗深圳市住建局造价站
  • 西安网络推广网站优化it网站开发公司
  • 网站开发的书徐州网站建设技术
  • 微网站开发腾讯nginx wordpress rewrite
  • 泉州手机网站建设html5做网站链接