Giter VIP home page Giter VIP logo

betterocr's Introduction

Hello, I'm Junho Yeo

Sometimes a designer and dreamer, I just like to build—or hack things. Check my website for my work.

  • 🦄 Anything for Creation. Preparing the infrastructure—insight, followers, and capital—for a bigger dream.
  • ⚡️ Someone who can start something right away, when they have an idea.

betterocr's People

Contributors

imgbot[bot] avatar junhoyeo avatar snacsnoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

betterocr's Issues

I want use chatgpt-3.5 api

Can you help me to modified the source code to run with chatgpt-3.5 api. I don't want to use the gpt-4. Thanks

Import BetterOCR Error

After creating virtual environment and installing betterocr with required versions in google colab,it showing no module found betterocr ,
How could I solve it, Thanks in advance.
image

Write tests

  • Start by writing unit tests for https://github.com/junhoyeo/BetterOCR/blob/main/betterocr/parsers.py
  • And also
    for idx, item in enumerate(items):
    box = item["box"]
    # [x,y,w,h]
    if len(box) == 4 and isinstance(box[0], int):
    rect = rectangle_corners(box)
    items[idx]["box"] = rect
    # [[x,y],[w,h]]
    elif len(box) == 2 and isinstance(box[0], list) and len(box[0]) == 2:
    flattened = [i for sublist in box for i in sublist]
    rect = rectangle_corners(flattened)
    items[idx]["box"] = rect

OpenAI Package Confliction

Hello, whenever BetterOCR dependencies are installed in the OpenAI package, this is a problem because the package version is 1.0.0-re, while the newest lib is 0.28.0. This is an entirely different package, but it conflicts with my other OpenAI implementation deeper down my code. Installing a venv is not an option as my code is nested inside itself which needs the official openAI package.

BetterOCR OpenAI -V
betterocr

Default OpenAI -V
default

Can I use this repo without internet?

This repo use LLM model by calling API
But, I wanna use it like a import a library, such as easyocr, pororo etc..
Can I use BetterOCR and LLM model like that?

Implement `verbose` option & Improve logging

print("=====")
print(prompt)
api_key = os.environ["OPENAI_API_KEY"]
if "API_KEY" in options["openai"] and options["openai"]["API_KEY"] != "":
api_key = options["openai"]["API_KEY"]
client = OpenAI(
api_key=api_key,
)
print("=====")
completion = client.chat.completions.create(
messages=[
{"role": "user", "content": prompt},
],
**options["openai"],
)
output = completion.choices[0].message.content
output = output.replace("\n", "")
print("[*] LLM", output)

replace ^ and a few more places we're just logging to stdout

🔍 List of OCR Engines

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.