|
|
8 months ago | |
|---|---|---|
| docs | 8 months ago | |
| static | 8 months ago | |
| templates | 8 months ago | |
| test | 8 months ago | |
| uploads | 8 months ago | |
| utils | 8 months ago | |
| .gitignore | 8 months ago | |
| README.md | 8 months ago | |
| __init__.py | 8 months ago | |
| app.py | 8 months ago | |
| config.py | 8 months ago | |
| models.py | 8 months ago | |
| poetry.lock | 8 months ago | |
| pyproject.toml | 8 months ago | |
| requirements.txt | 8 months ago | |
| routes.py | 8 months ago |
excel 相似图片搜索
python app.py
访问 http://127.0.0.1:5000/ 选择图片,设置文件目录,设置相似度,设置时间标签,点击开始匹配按钮,批量搜索指定目录的文件(excel,doc),搜索文件中的图片,找到指定图片所在文件位置。
图片计算相似度:
from skimage.metrics import structural_similarity as ssim
score, _ = ssim(grayA, grayB, full=True)
注意这里把彩色是3层数组改为灰色1层。
读取excel openpyxl
读取 word docx