python 3 cli应用程序,用于查找视觉上相似的图像

imagedupes的Python项目详细描述


用法:映像复制[-h][-a算法][-d目录][-d数据库][-l]
[-o选项][-p程序][-r[-r[-s哈希大小]

查找视觉上相似的图像并在图像查看器中打开它们,一组 一次匹配。如果未指定任何选项,则默认为搜索 使用感知图像哈希的非递归当前工作目录 散列大小为8的算法,在系统默认图像中打开图像 处理程序(一次匹配组的所有成员),不遵循 符号链接或使用持久数据库。

可选参数:
-h, --helpshow this help message and exit
-a ALGORITHM, --algorithm ALGORITHM
Specify a hash algorithm to use. Acceptable inputs: ‘dhash’ (horizontal difference hash), ‘dhash_vertical’, ‘ahash’ (average hash), ‘phash’ (perceptual hash), ‘phash_simple’, ‘whash_haar’ (Haar wavelet hash), ‘whash_db4’ (Daubechles wavelet hash). Defaults to ‘phash’ if not specified.
-d DIRECTORY, --directory DIRECTORY
Directory to search for images. Defaults to the current working directory if not specified.
-D DATABASE, --database DATABASE
Use a database to cache hash results and speed up hash comparisons. Argument should be the path to which you want to save or read from the database. Warning: runnning the program multiple times with the same database but a different hash algorithm (or different hash size) will lead to missed matches. Defaults to no database if not specified.
-l, --linksFollow symbolic links. Defaults to off if not specified.
-o OPTIONS, --options OPTIONS
Option parameters to pass to the program opened by the –program flag. Defaults to no options if not specified.
-p PROGRAM, --program PROGRAM
Program to open the matched images with. Defaults to your system’s default image handler if not specified.
-r, --recursive
Search through directories recursively. Defaults to off if not specified.
-R, --rawsProcess and hash raw image files. Note: Very slow. You might want to leave it running overnight for large image sets. Using the –database option in tandem is highly recommended. Defaults to off if not specified.
-s HASH_SIZE, --hash_size HASH_SIZE
Resolution of the hash; higher is more sensitive to differences. Some hash algorithms require that it be a power of 2 (2, 4, 8, 16…) so using a power of two is recommended. Defaults to 8 if not specified. Values lower than 8 may not work with some hash algorithms.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaSpring重定向请求处理程序   SwingJava:拆分字符串并将其放入文本区域的   Java:标记“”上出现语法错误,此标记后面应为表达式   web服务Java RestService从日志文件写入和读取数据   java如何将ArrayList<String>转换为char数组,然后向后打印每个单词?   java SimpleDataFormat解析返回年终日期   加密Java aes解密bytebuffer,包括填充为空字节   java有没有办法从特定的if语句调用变量?   java从更新返回到渲染   spring GRPC Java登录测试   java为什么下面的代码不工作(StringBuffer.toString!=null)   java是一种可行的模式吗?   使用Spring集成测试的JavaOSGi片段   java jCommander为未知和未使用的值引发异常?   在imageView的editText中输入的java图像URL