跳转到主要内容

用于分析摄影习惯的软件包。

项目描述

photocrawl

一个简单的软件包,用于运行分析和了解我在摄影实践中对设备和设置的运用。

安装

此代码与所有当前支持的Python版本兼容,并要求您在PATH中安装Phil Harvey的出色ExifTool软件包。您可以在虚拟环境中使用以下命令安装它:

python -m pip install photocrawl

用法

在已激活的环境中安装此软件包后,可以通过python -m photocrawl或通过新创建的photocrawl命令来调用。

详细用法如下

 Usage: python -m photocrawl [OPTIONS] [IMAGES]                                   
                                                                                  
 Crawl and ensemble of pictures to run analysis of their metadata and get insight 
 on one's use of equipment and settings in their practice of photography.         
                                                                                  
╭─ Arguments ────────────────────────────────────────────────────────────────────╮
│   images      [IMAGES]  Location, relative or absolute, of the images          │
│                         directory you wish to crawl.                           │
│                         [default: None]                                        │
╰────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────╮
│ --output-dir                                 TEXT  Location, either relative   │
│                                                    or absolute, of the output  │
│                                                    directory.                  │
│                                                    [default: outputs]          │
│ --show-figures          --no-show-figures          Whether or not to show      │
│                                                    figures when plotting       │
│                                                    insights.                   │
│                                                    [default: no-show-figures]  │
│ --save-figures          --no-save-figures          Whether or not to save      │
│                                                    figures when plotting       │
│                                                    insights.                   │
│                                                    [default: no-save-figures]  │
│ --log-level                                  TEXT  The base console logging    │
│                                                    level. Can be 'debug',      │
│                                                    'info', 'warning' and       │
│                                                    'error'.                    │
│                                                    [default: info]             │
│ --install-completion                               Install completion for the  │
│                                                    current shell.              │
│ --show-completion                                  Show completion for the     │
│                                                    current shell, to copy it   │
│                                                    or customize the            │
│                                                    installation.               │
│ --help                                             Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────╯

脚本将爬取文件,提取EXIF信息,并在新创建的outputs文件夹(或您指定的文件夹)中输出名为insight_1.pnginsight_2.png的见解可视化。

输出示例

以下是脚本输出的示例

Example_1

Example_2

待办事项

  • 处理原始文件。
  • 在查找文件时处理子文件夹。
  • 在单个/两个图中输出所有见解。
  • 实现适当的日志记录。
  • 将其制成软件包。
  • 使其可作为Python模块调用(python -m photocrawl ...)。
  • 改进命令行体验。

由 fsoubelet 用❤️制作
MIT © 2019 Felix Soubelet

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

photocrawl-0.3.2.tar.gz (7.9 MB 查看哈希值)

上传时间

构建分布

photocrawl-0.3.2-py3-none-any.whl (11.3 kB 查看哈希值)

上传时间 Python 3

由以下支持