# -*- coding: utf-8 -*-
"""
Created on Thu Jan 21 11:33:22 2021
根据文件名筛选将混合在同一文件夹中的图片分配到不同的文件夹中
"""
import os
import shutil
from PIL import Image
import numpy as nppath = ' /zy/task/'
newpath0=' /dataset/egg_skin/'
newpath='C: /dried_fruits_dis/'if not os.path.exists(newpath):os.makedirs(newpath)filelist = os.listdir(path)
for item in filelist:print(item)# src = cv.imread(path1+item)# [height,width,c]= src.shape# img_resize1 = cv.resize(src,(int(width*0.3),int(height*0.3)),interpolation=cv.INTER_CUBIC) name = item.split('-',3)[1]name0=item.split('-',3)[0]if name=='0.jpg' or name=='2.jpg'or name=='3.jpg'or name=='1.jpg':shutil.move(path+item,newpath0)else:         shutil.move(path+item,newpath

easydl code for classify相关推荐

  1. Latex算法伪代码使用总结

    Latex伪代码使用总结 algorithmicx例子 相应代码: [plain] view plain copy     \documentclass[11pt]{ctexart} \usepack ...

  2. Latex论文排版技巧再总结

    1.Q:几个作者同时共享机构地址,怎么搞? A:拿ACM的模版为例, Yes, and we suggest you do the following... Insert this piece of ...

  3. LaTex:算法排版

    排版可能需要的包: usepackage{algorithm} //format of the algorithm usepackage{algorithmic} //format of the al ...

  4. A wizard’s guide to Adversarial Autoencoders: Part 1, Autoencoder?

    "If you know how to write a code to classify MNIST digits using Tensorflow, then you are all se ...

  5. MMJ-Spring Boot(Java)获取小程序Openid

    背景 开发小程序,想使用微信账号唯一码,API是这么说的 wx.login... code 换取 session_key 接口地址: https://api.weixin.qq.com/sns/jsc ...

  6. Latex 伪代码、三线表与多线表

    Latex 伪代码.三线表与多线表 伪代码 先导入宏包 \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{amsmath} \ ...

  7. Software Engineering at Google翻译-III-11-Testing overview(测试概述)

    参考: https://github.com/daizhenhong/swe-at-google/blob/main/Part_III_Processes/total/Chapter-11-total ...

  8. LaTeX算法排版例子

    1)首先在导言区加入语句: \usepackage{algorithm} \usepackage{algorithmic} 2)例1 \begin{algorithm} \caption{A} \la ...

  9. 使用mne python简单的处理脑电数据的代码演示

    文章目录 导入包 导入数据 创建数据信息 提取数据(把samples和labels分别取出) 创建事件 trial序列图 ERP混合图(erp曲线和所有trial erp的色彩图) erp曲线图 er ...

最新文章

  1. 50年前的登月程序和程序员有多硬核?
  2. 转: 网卡名字eth0,eth1的修改方法
  3. c#调用Matlab的参数传递
  4. CSS技巧(含色卡)
  5. 原型链的理解_javascript之快速理解(原型链)
  6. 【clickhouse】clickhouse 一些博客链接
  7. RabbitMq学习笔记001---RabbitMq在Windows下安装配置
  8. 微信商户现金红包api php
  9. LARS算法---十折交叉验证
  10. 带温度补偿RTC芯片的选型和应用
  11. 编译报错【error】dexpreopt.sh:23 exited with status 1
  12. 姚锦云:再论庄子传播思想与接受主体性:回应尹连根教授
  13. 百度云同步盘服务器错误,百度云同步盘
  14. 谷歌SEO入门的基础知识
  15. 单独备份config配置文件 (来自老梁邮件)
  16. android 热更新 方案,与Android热更新方案Amigo的初次接触
  17. 三菱IPM驱动芯片PSS15S92\PSS20S92分析
  18. Chrome 53 支持 Shadow DOM 等规范
  19. Linux日志快速定位
  20. android ndk之opencv+MediaCodec硬编解码来处理视频动态时间水印

热门文章

  1. [c#]喜马拉雅、蜻蜓、荔枝FM音频批量下载器V1.3 by Levme开发手记
  2. python中assert是什么意思_python assert函数是什么以及如何使用?
  3. AOP切面获取参数的一个小技巧
  4. MySQL 5.5的安装配置(保姆级别,超级简单)
  5. 给定四种水果,分别是苹果(apple)、梨(pear)、桔子(orange)、葡萄(grape),单价分别对应为3.00元/公斤、2.50元/公斤、4.10元/公斤、10.20元/公斤。
  6. PTA 520钻石争霸赛题解
  7. 7款易上手C语言编程软件推荐
  8. 华为p9 html尺寸,华为P9 Plus的屏幕尺寸是多少
  9. 51Nod 1631 小鲨鱼在51Nod小学 【 扫描线 】
  10. Javaweb8==未实现前后端分离的列表展示、新增、删除、修改功能。 servlet(逻辑处理,封装数据进域对象,转发到jsp)+jsp(el表达式获取域对象中的数据+JSTL替换if for)。