- 博客(4)
- 收藏
- 关注
原创 DetectionTest--SCZJ
# -*- coding: utf-8 -*-"""Created on Wed Apr 18 22:56:16 2018@author: sczjwjh"""import cv2def locations(img):# haar = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') haar = cv2.Casc...
2018-06-29 17:22:01
130
原创 把图像信息编辑成txt文档--SCZJ
import osimport os.pathrootdir = "C:/Users/SEELE/Desktop/bg.1"file_object = open('C:/Users/SEELE/Desktop/bg,1.txt','w')for parent,dirnames,filenames in os.walk(rootdir): for filename in filenames: ...
2018-06-28 10:59:43
211
原创 改变图像大小--SCZJ
import numpy as npimport osimport cv2## 同化图片尺寸def resize_imgs(imgs, tar_size=None): if tar_size: resized_imgs =[] i=5 for img in imgs: resized = cv2.resize(img, tar_...
2018-06-28 10:57:02
266
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人