# image_similarity_finder **Repository Path**: damon708/image_similarity_finder ## Basic Information - **Project Name**: image_similarity_finder - **Description**: 查看文件内是否和某个图片是否相似 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-26 - **Last Updated**: 2025-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # image_similarity_finder #### 介绍 查看文件内是否和某个图片是否相似 #### 软件架构 开始运行时 报错 ``` global loadsave.cpp:275 cv::findDecoder imread_('D:\BaiduNetdiskDownload\贤德家-悦木时光\10.26贤德家斗柜加图\1 (2).jpg'): can't open/read file: check file path/integrity 如何处理? ``` 后找到 ``` def read_image_with_chinese_path_using_decode(path): try: with open(path, 'rb') as f: img_array = np.frombuffer(f.read(), np.uint8) img = cv2.imdecode(img_array, cv2.IMREAD_COLOR) return img except Exception as e: print(f"读取图片时出错: {e}") return None ``` 方法,处理中文路径乱码的问题。 #### 安装教程 1. 安装依赖包 ``` pip install pillow imagehash opencv-python scikit-image numpy ``` #### 使用说明 1. `python image_similarity_finder.py ./2.png D:\BaiduNetdiskDownload\贤德家-悦木时光\10.26贤德家斗柜加图` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)