Resize-images.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Self-Driving-Car 作者: guptayash 项目源码 文件源码
def find_uglies():
    for file_type in ['Negative']:
        for img in os.listdir(file_type):
            for ugly in os.listdir('uglies'):
                try:
                    current_image_path=str(file_type)+'/'+str(img)
                    ugly=cv2.imread('uglies/'+str(ugly))
                    question=cv2.imread(current_image_path)
                    if ugly.shape==question.shape and not (np.bitwise_xor(ugly,question).any()):
                        os.remove(current_image_path)
                        print ('Ohyeahh')
                except Exception as e:
                    print (str(e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号