上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: glass_img = cv2.imread(glass_dir + glass_img_name) test_img = cv2.imread(test_dir + test_img_name) all_w = max(test_img.shape[1], glass_img.shape[1])* 阅读全文
posted @ 2021-01-15 16:31 皮卡皮卡妞 阅读(108) 评论(0) 推荐(0) 编辑
摘要: import cv2 import os for fi in os.listdir('./CCimage/'): I=cv2.imread('./CCimage/'+fi) cv2.imwrite('./CCimage/'+fi.split('.')[0]+'.png',I) os.remove(' 阅读全文
posted @ 2021-01-11 15:58 皮卡皮卡妞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: import os import shutil ''' num=0 for fi in os.listdir('./train_A/'): shutil.copy('./train_A/'+fi,'./all/'+str(num)+'_'+fi) shutil.copy('./train_B/'+' 阅读全文
posted @ 2021-01-07 15:21 皮卡皮卡妞 阅读(39) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sun Sep 13 21:35:34 2020 @author: ydc """ import re import requests from urllib import error from bs4 import Be 阅读全文
posted @ 2021-01-07 14:52 皮卡皮卡妞 阅读(46) 评论(0) 推荐(0) 编辑
摘要: import os import shutil num=0 for fi in os.listdir("./3/"): for fii in os.listdir("./3/"+fi): num=num+1 print(".................fi,fii",fi,fii,num) im 阅读全文
posted @ 2020-12-31 11:08 皮卡皮卡妞 阅读(109) 评论(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 皮卡皮卡妞 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1、VS2019 2、 阅读全文
posted @ 2020-12-23 14:40 皮卡皮卡妞 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、训练xml中的矩形框到图上并保存: # coding=utf-8 import os import xml.dom.minidom import cv2 as cv ImgPath = './JPEGImages/' AnnoPath = './Annotations_new/' save_pa 阅读全文
posted @ 2020-12-14 14:14 皮卡皮卡妞 阅读(224) 评论(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 皮卡皮卡妞 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 一个输入: input_tensor = torch.randn([1, 3, 256, 512]) print ("Exporting to ONNX: ", onnx_save_name) torch_onnx_out = torch.onnx.export(model, input_tenso 阅读全文
posted @ 2020-11-04 14:01 皮卡皮卡妞 阅读(5655) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页