Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCR read and ai to rename and categorize #329

Open
neonnightsnz opened this issue Nov 30, 2023 · 2 comments
Open

OCR read and ai to rename and categorize #329

neonnightsnz opened this issue Nov 30, 2023 · 2 comments

Comments

@neonnightsnz
Copy link

OCR and chatgpt could be used to read pdf docs and give them a more appropriate name and category

files would be scanned and pop up approving the new name and category manna adjustment and corrected. Data from this processing would be used to create a sorting models

https://nanonets.com/ http://www.dropitproject.com/

@tfeldmann
Copy link
Owner

Hi, thanks for the ticket. This is possible right now with a python filter and the confirm module.
Something like this:

rules:
  - locations: .
    filters:
      - python: |
          # AI help here:
          import random
          num = random.randint(1, 1000)

          return {
            "ai_name": f"new-name-{num}.txt"
          }
    actions:
      - confirm: "Should this file be renamed to {python.ai_name}?"
      - echo: "Renaming..."

@tfeldmann
Copy link
Owner

Two things already on the todo list:

  • Something like a prompt action instead of the confirm action would be more fitting here, so the AI-generated name could be corrected.
  • A way to write plugins which can be distributed via pypi. I guess a lot of people would love to use a helper like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants