随笔分类 -  编程~C/C++

摘要:cv::Mat after_mask = cv::imread("mask.jpg"); vector<vector<cv::Point>> contours; cv::findContours(after_mask, contours, EGA_RETR_EXTERNAL, EGA_CHAIN_A 阅读全文
posted @ 2021-08-02 10:55 皮卡皮卡妞 编辑
摘要:灰度图转彩色图: cv::cvtColor(mask_face0, mask_face, cv::COLOR_GRAY2BGR); 阅读全文
posted @ 2021-04-13 08:28 皮卡皮卡妞 阅读(123) 评论(0) 推荐(0) 编辑
摘要:将单通道数据值变成3通道 cv::Mat mask_face(H, w, CV_8UC3, ppu8Plane[0]); for (int i = 0; i < mask_glass.rows; i++) { for (int j = 0; j < mask_glass.cols; j++) { m 阅读全文
posted @ 2021-04-12 17:14 皮卡皮卡妞 阅读(73) 评论(0) 推荐(0) 编辑
摘要:static int StaticVideo_test(std::string videodir) { { VideoCapture capture; capture.open(videodir); double rate = capture.get(CAP_PROP_FPS); int delay 阅读全文
posted @ 2020-12-28 16:13 皮卡皮卡妞 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1、VS2019 2、 阅读全文
posted @ 2020-12-23 14:40 皮卡皮卡妞 阅读(133) 评论(0) 推荐(0) 编辑
摘要:调用: cv::Mat ref_glass, src_glass; cv::Mat dst_glass = cv::Mat::zeros(src_glass.rows, src_glass.cols, src_glass.type()); HistSpecify(src_glass, ref_gla 阅读全文
posted @ 2020-11-18 14:51 皮卡皮卡妞 阅读(234) 评论(0) 推荐(0) 编辑
摘要:做泊松融合的时候 cv::seamlessClone(src, dst, inpaintMask2, center, im_result, cv::NORMAL_CLONE); 中: dst的大小任意。但是最好保证src和inpaintMask2大小一致。 1、不规则mask图 //seamless 阅读全文
posted @ 2020-10-30 17:23 皮卡皮卡妞 阅读(513) 评论(0) 推荐(0) 编辑
摘要:int face_index = 1;std::stringstream out; out << face_index; string save_pth = img_path.substr(0, img_path.find_last_of('.')) + "_face_index_"+ out.st 阅读全文
posted @ 2020-10-28 14:34 皮卡皮卡妞 阅读(111) 评论(0) 推荐(0) 编辑
摘要:1、 bool draw_rect = false; MRECT* rect = &face->rcFace[s]; if (draw_rect) { cv::rectangle(im_src, cv::Point(rect->left, rect->top), cv::Point(rect->ri 阅读全文
posted @ 2020-10-15 10:53 皮卡皮卡妞 阅读(1442) 评论(0) 推荐(0) 编辑
摘要:1、cv::mat string src_im_pth; im_src = cv::imread(src_im_pth, -1); if (im_src.empty()) { fprintf(stderr, " [wjj] Error! image %s not valid\n", src_im_p 阅读全文
posted @ 2020-10-15 10:38 皮卡皮卡妞 阅读(589) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-06-09 11:19 皮卡皮卡妞 阅读(2) 评论(0) 推荐(0) 编辑
摘要:#include <io.h> #include <windows.h> string im_pth; const char* p = im_pth.data(); DeleteFile(p); 阅读全文
posted @ 2020-03-24 17:31 皮卡皮卡妞 阅读(790) 评论(0) 推荐(0) 编辑
摘要:VS工程中image watch的安装和卸载 安装: 1、下载地址: https://marketplace.visualstudio.com/items?itemName=VisualCPPTeam.ImageWatch 2、安装 再安装好VS的基础上,直接双击下载到的文件进行安装。 或者按照下面 阅读全文
posted @ 2020-03-10 09:49 皮卡皮卡妞 阅读(1704) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-01-20 15:28 皮卡皮卡妞 阅读(2) 评论(0) 推荐(0) 编辑
摘要:1、渐变动画制作原理: 两幅图像加权相加,img = a*img1 + (1-a)img2,效果从img1变到img2,取值从1到0,取值间隔可以随意,间隔越小,视觉上越自然。 2、代码 (c/c++_渐变动画制作_合成视频) 我的运行平台:VS2015, window10 64位,opencv 3 阅读全文
posted @ 2020-01-14 11:34 皮卡皮卡妞 阅读(834) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示