artificial intelligence - How to extract information from a photo of a document - Stack Overflow
Metadata from emailed image?
I have created an image metadata extraction tool that is compatible with any image viewer (Windows only). Info in the comments.
AI Tool (other than ChatGPT) for extracting data from images and creating spreadsheets?
How do I export the extracted image data?
You can download the extracted data in JSON, CSV, or XLSX format directly from Parseur, which covers common workflows like converting a PNG or JPG to Excel. You can also send the data automatically to CRMs and other downstream tools through Parseur's integrations.
Can Parseur extract data from images automatically?
Yes. Parseur uses AI-powered OCR to automatically extract data from images, processing each file according to the fields you define. You forward or drag and drop an image into your Parseur mailbox, and the AI engine reads it and returns structured data without manual copying.
Is Parseur secure for processing sensitive image documents?
Parseur is GDPR compliant, which makes it suitable for handling sensitive records in industries like healthcare, finance, and insurance. Parseur's SOC 2 Type II audit is in progress, so it is not yet SOC 2 certified.
There are several ways to go about it but you can start of with Ollama, you need to download a model such as llama3, if you have experience with python you are in luck.
You don't need to train a model, there are different models out there that does what you need or solves this kind of problem, all you need to do is provided the llm your documents(images, text, pdfs etc) and ask questions on them.
However in some cases, if your pdf contains financial information such as annuity and the likes , You might need to train it for it to understand how to do those kind of calculations or better still write a function which inherits from Langchain_tool to instruct the llm on how to use it for those specific cases.
It just feels like a black box that is liable to change without notice, i.e. fragile. I assumed I'd need to train and deploy my own model, is using chat gpt expensive overkill for what I want to do? If I somehow ended up with a lot of users I'm thinking this would become a problem.
Here are the general steps on how to go go about it:
Step 1:
First download Ollama then you can pull the llama image which would serve as your llm, do a docker pull of llama, preferably llama3.
Step 2: Find a library that converts images to text or pdf such as
Optical character recognition Library (OCR)
Step 3: Find a vector_db(FAISS, chromadb and the likes) which converts text to vectors; this makes information extraction easy.
Step 4: Feed your documents to the vector_db so it can convert it to vectors because numbers are good...
You don't need to train a model to just extract text from documents/images, you can simply use python libraries like pytesseract etc. By simply using 10 lines of code you can extract all the information. You can integrate this model/code to your tool. You can ask ChatGPT for a reference code.