-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature Request] Ability to choose where the date of the score is taken from during OCR #9
Comments
Oops, seems like I haven't read your question well, sorry! Quite fair request, I'll try working on this :) |
Yeah, I'm about where the OCR itself pulls the date/time from and adds to the scores, not file dialog |
I'm planning to add a new settings entry for this, but I can't really understand what I wrote before... so I'm temporarily delaying this issue until I'm fully available However, you may change this function (Specifically L71): client-pyside6/ui/extends/tabs/tabOcr/tabOcr_Device.py Lines 62 to 73 in d5895fe
Like this: - datetime = QFileInfo(imagePath).birthTime()
+ datetime = QFileInfo(imagePath).lastModified() Then the date should be extracted from the file modification date. You may refer to https://doc.qt.io/qt-6.5/qfileinfo.html for more choices. |
Thanks for telling where to look for a quick temporary fix/edit Will note it down and probably process my scores tomorrow, will report back if any more issues arise along the way |
* New settings entries * Choose `birthTime`/`lastModified` for OCR score date source if the image EXIF fails
The new Also I've noticed the packaging library (nuitka) has a linux option now, and I've tried building it using GitHub Actions. The output is a single |
Sure, will try tomorrow! |
LGTM! A simple |
Would be nice to have the ability to pick between file creation and modification time, especially considering how file creation date works on common Linux filesystems (idk about other operating systems). On ext4 and others, creation date is when the file was created on the filesystem and cannot be edited, unlike modification time that is changed only on data modification and is generally accurate in my case (and even if it wasn't, it is possible to fix with a script)
Probably kind of a niche thing, but would save a good amount of time for someone who cares about timestamps and stuff, like me
The text was updated successfully, but these errors were encountered: