Git Product home page Git Product logo

invoice-rename-tool's Introduction

发票识别与重命名工具

该工具使用百度API进行发票识别,自动提取发票信息,并根据发票信息重命名PDF和图片文件。 申请百度AI的接口,每个月可领免费额度2000次,方法请自行百度。 https://cloud.baidu.com/product/ocr_receipts/vat_invoice

特性

  • 支持多种文件格式,包括PDF、JPG、PNG等。
  • 自动从发票中提取关键信息,如发票号码、开票日期、销售方名称等。
  • 根据提取的信息重命名文件,便于管理和归档。

下载和运行

对于非Python用户

如果您不熟悉Python或不希望安装Python环境,我们提供了一个独立的.exe文件,您可以直接下载并运行这个程序,无需进行额外的安装或配置。

  1. 访问GitHub仓库的Releases页面
  2. 下载最新版本的.exe文件。
  3. 双击下载的文件以运行程序。

对于Python用户

如果您熟悉Python,您可以按照下面的安装指南来运行源代码。

前提条件

  • Python 3.6或更高版本。
  • 依赖库:requestspandastkinter(通常Python自带)、configparser

安装步骤

  1. 确保Python已安装:在命令行中运行python --versionpython3 --version来检查Python版本。
  2. 下载脚本:从GitHub或其他提供的链接下载invoice-rename.py脚本及相关文件(如config.ini)。
  3. 安装依赖库:打开命令行工具,导航到脚本所在目录,运行以下命令安装所需的Python库:

pip install requests pandas

  1. 配置API密钥:在config.ini文件中填入你的百度API的APP_IDAPI_KEYSECRET_KEY

使用指南

  1. 启动脚本:在命令行中导航到脚本所在目录,运行:

python invoice-rename.py

  1. 选择文件夹:在弹出的窗口中选择包含发票文件的文件夹。
  2. 处理文件:脚本将自动处理文件夹中的所有支持的发票文件,并根据发票信息进行重命名。

支持和反馈

如遇到任何问题或需要帮助,请通过以下方式联系我们:

invoice-rename-tool's People

Contributors

deserteagle369 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.