上一页 1 ··· 25 26 27 28 29
摘要: opencv python 把图(cv2下)BGR转RGB,且HWC转CHW img = cv2.imread("001.jpg") img_ = img[:,:,::-1].transpose((2,0,1)) ① 在opencv里,图格式HWC,其余都是CHW,故transpose((2,0,1 阅读全文
posted @ 2019-06-21 11:34 无左无右 阅读(1289) 评论(0) 推荐(0)
摘要: 1.遍历目录 os.walk() import os for root, dirs, files in os.walk(path): for name in files: print(os.path.join(root, name)) for name in dirs: print(os.path. 阅读全文
posted @ 2019-06-14 17:20 无左无右 阅读(322) 评论(0) 推荐(0)
摘要: 1 阅读全文
posted @ 2019-06-14 15:03 无左无右 阅读(1113) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29