Okay, let's try this again.
Just had to fix a script error with my chronicle script because it wasn't telling me how many pages were being uploaded and it wasn't naming the files correctly, something had broken in the code.
Now that we fix this, I present for anyone's enjoyment who wants to have a bit of a play, Chronicle document extractor.
An AI coded program for people who want to perform optical character recognition or text cleanup for Accessible reading using Google Gemini.
I have put a tonne of features into this program and there are nine different menus but most can be skipped.
It's general public license and for want of better hosting, I have put it on dropbox.
I'd like to know your thoughts if you want to test.
Please look at the read me file in the docs folder, it will explain how to do everything.
There's also a nice big fat technical document explaining exactly how it works with the AI models.
https://www.dropbox.com/scl/fi/x4cy9l5dtqj4celre48ql/Chronicle-Document-Extractor.zip?rlkey=89e3g003a3htvbh1y9huhzj7p&dl=0 #vibecoding #Blind #Accessibility #OCR
Chronicle Document Extractor.zip

Shared with Dropbox

Dropbox
@TheVoiceGuy Have you done much testing with JPG files? I just attempted to run a file through and got a message saying string missing from the terminator. It has done an excellent job however as it was a jpg of a handwritten invoice. Also, not sure if you already know, but if you simply put the line: Title Chronicle at the top of your batch file, it will give the CMD window a nice title instead of the user seeing C:\windows\System32\cmd.exe
@sjtaylor Could you do me a favour? If you’re able, could you send me the JPG file and if you can get a hold of it, the actual error message. Even if you give me the Terminal log in a text file.
Would really help me out.
I haven't done a lot with JP's at the moment.
@TheVoiceGuy Processing complete!
The string is missing the terminator: '.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

Press any key to continue .
https://www.dropbox.com/scl/fi/c452l6644sduvs8vpazlc/Tax-invoice.jpg?rlkey=b672adr43a103mpb3rs4970ft&dl=1
@sjtaylor I’ve just made a fix and tested and the error is gone.
I tested it on a handwritten letter.
I'll just push the fix out and then I'll let you know and if you're willing, I'd like you to try again and if it does pop up again, I'll know that something else is going on.
@sjtaylor Okay! I have just pushed out the fix and I have specifically Fixed JPEG encoding bug and added handwriting support.
If you could give it another shot, that would be tremendous and thanks so much for having a play with this thing.
@sjtaylor I’m definitely going to have a look at your.EXE and a dot app Installer a little bit down the line.
It's a bit more complicated partly because of the API keys and all that kind of thing.
I'm also working exclusively from a mac with the Windows virtual machine so I suppose I'm in a little bit of a disadvantage here but I'm definitely considering it.
Probably not in the next little while, I want to iron out any errors in the actual script and it's a bit easier in this form.
I know python is not the easiest thing but just at the moment, it's probably the safest.
@sjtaylor Another problem with the EXEN.app installers is that if I do find a bug or if someone finds a bug, I have to repackage the whole thing with the new fixed scripts inside of it.
@sjtaylor If you check that script now, everything should all be fixed and working.
I fixed a deprecation so it's now using a new Google library.
I've updated the change log.
@sjtaylor Gemini got stuck in some kind of coding loop and was giving me skeleton code.
Almost ruined the whole project.
@sjtaylor Did you find the installation okay? I know it’s probably a little bit complicated but it was the best I can do at the moment.
I was going to try and build an actual app but since I'm on the mac, I didn't know how I would get it across to Windows and the mac app we did try and build was a total disaster.
@sjtaylor Oh thanks for the thing about the Windows title.
This is why I love other people having a play with this because there are things that I miss.
Programming is not my second nature.
@sjtaylor What I’m going to do with Gemini’s help of course is strengthen the script a bit with this terminator error.
Also going to make that nice title window.
I will let you know when I've pushed out the updated script and then I would love it if you try it again.
@TheVoiceGuy The installation worked for me as i'm familiar with python. You could package it all as an .exe inclusive of dependencies with pyinstaller --onefile yourscript.py, but I can't speak to what you'd need to do on Mac.
@sjtaylor It’s a really good suggestion.
I am gonna think about it as much as I'm able.
Windows isn't my main operating system but I tell you what, or play around with Gemini and see if we can't do something.
i myself hate installing stuff like this so I feel your pain.
I'm just doing a bit of work on this script to fix this terminator problem at the moment.