tenderowl / frog Goto Github PK
View Code? Open in Web Editor NEWExtract text from any image, video, QR Code and etc.
Home Page: https://getfrog.app/
License: MIT License
Extract text from any image, video, QR Code and etc.
Home Page: https://getfrog.app/
License: MIT License
I was using Frog on the same machine with an Nvidia card on Ubuntu 21.10 and everything worked fine. I updated to Ubuntu 22.04 and now I have to manually select "Launch using discete graphics card" to be able to use Frog. Launching via the command line gives me this error message:
->
libEGL warning: MESA-LOADER: failed to retrieve device information
libEGL warning: DRI2: could not open /dev/dri/card0 (No such file or directory)
libGL error: MESA-LOADER: failed to retrieve device information
Cache downloaded codes: ['eng', 'ita']
No provider of glGetShaderiv found. Requires one of:
Desktop OpenGL 2.0
OpenGL ES 2.0
->
I believe I have OpenGL ES 3.2 installed not OpenGL ES 2.0.
When the hamburger menu is open you can't click away from it to close it. It forces the user to choose an option and close the window that pops up. Expected behaviour would be for the hamburger menu to close when the user clicks elsewhere on the application window.
The links is from GIMP's page, it should be Frog's page.
It could be helpful for folks to discover your app in AppCenter by adding some keywords. One that seems missing to me is ocr
For more info on keywords check out the HIG here: https://docs.elementary.io/hig/desktop-integration/app-launcher#keywords
You shouldn't need to include these manually here, they're included in the platform.
Frog/flatpak/com.github.tenderowl.frog.json
Lines 30 to 55 in f7e70b3
Hi! I'm impressed by the app. Thank you!
I would suggest a second "Take a screenshot" option, something like a "Quick screenshot". It wouldn't ask for type of screenshot we want (it may be configured previously), neither to review it prior sharing to Frog.
Skipping those two steps would come handy in repetitive tasks. Like those situations where we have to scan different parts of the same text; we always use the same type of screenshot and we know Frog will perform well.
Thank you again!
I imagine it would take some work to set everything needed to translate the app to other languages, but now that the portal integration is done it would be nice to be able to help translate it.
A Weblate instance, for example, would help a lot to make the process easier for everyone to contribute.
well, the issue is that i cant use it on gnome, (im using fedora 35) and after i downloaded the languages that i need and then press the "grab area" button it just reset the app, i tried changing some permissions but that didnt work.
Hi all!
Love the simplicity of the program, but one snag.
I would like to use this application to grab text that is reported in columns which would require line by line capture.
Instead, the capture is by columns instead of lines;
For example:
A 1 a
B 2 b
C 3 c
is captured as:
A
B
C
1
2
3
a
b
c
Can the application have an option to capture text line by line?
Thank you,
Mark Sarnov
@amka, On clicking the snip button, using GtkWindow.Hide()
on the main window would help taking screenshots easily instead of moving Frog's Window all over the desktop
Originally posted by @candiedoperation in #7 (comment)
Please explain how should I compile this app in ubuntu, with all the necessary dependencies. Or if you're planning to release a deb. We have a project called Pacstall. We can serve your deb via there. Or, we'll compile the app from source and serve it in our Pacstall.
Hello,
First of all, thanks for your work on this amazing app!
I saw that you've made GUI translation available for several languages including French, but after installing and setup the app, I still have english language display on button into the GUI, I've digging a bit before posting an issue but so far I'm out of luck to get things work.
Command used for install:
> flatpak install flathub com.github.tenderowl.frog
I have also forced the installation of locale (even if they where still installed by default)
> flatpak install flathub com.github.tenderowl.frog.Locale
Try a flatpak update after install (in case something missing)
> flatpak update
This is some output of my system configuration:
> flatpak config --system --list
languages: fr;en (default: fr)
extra-languages: *unset*
> flatpak config --user --list
languages: fr;en (default: fr)
extra-languages: *unset*
> flatpak info com.github.tenderowl.frog
Frog - Extract text from anywhere, even QR code
ID: com.github.tenderowl.frog
Ref: app/com.github.tenderowl.frog/x86_64/stable
Arch: x86_64
Branch: stable
Version: 1.1.1
License: MIT
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 26,4 MB
Runtime: org.gnome.Platform/x86_64/42
Sdk: org.gnome.Sdk/x86_64/42
Commit: b14bfaf3fcdb7dd3d6e9f4aacff5d0e459ef30498f661edc8a354f77b511d726
Parent: 33449479830dd70e38cdbbf257aba67bb3511cf838aebac7cf0f1f41cabacea6
Subject: Update to 1.1.2 (9910ebcd)
Date: 2022-06-07 10:51:01 +0000
> flatpak info com.github.tenderowl.frog.Locale
ID: com.github.tenderowl.frog.Locale
Ref: runtime/com.github.tenderowl.frog.Locale/x86_64/stable
Arch: x86_64
Branch: stable
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 512 bytes
Commit: dac13a117167ba47667cf6e6a0f8f8c7127b2112cfcfd0ea3068879aeb85cb94
Parent: 23eea8c74d1ed72b4d1b3d1cfd9677896cd11616601b97075d16b29cf1ce5de7
Subject: Update to 1.1.2 (9910ebcd)
Date: 2022-06-07 10:51:06 +0000
Subdirectories: /en,/fr
So far I've try to dig a bit and it seems that translation file are not present in the flatpak build (I don't know if this is relevant):
> flatpak run --command=ls com.github.tenderowl.frog /app/share/locale/
ja ru
> ls -la /var/lib/flatpak/app/com.github.tenderowl.frog/current/active/files/share/locale/
total 8
drwxr-xr-x. 2 root root 4096 1 janv. 1970 .
drwxr-xr-x. 13 root root 4096 1 janv. 1970 ..
lrwxrwxrwx. 1 root root 38 9 juin 11:37 ja -> ../../share/runtime/locale/ja/share/ja
lrwxrwxrwx. 1 root root 38 9 juin 11:37 ru -> ../../share/runtime/locale/ru/share/ru
> ls -la /var/lib/flatpak/app/com.github.tenderowl.frog/current/active/files/share/runtime/locale/
total 16
drwxr-xr-x. 4 root root 4096 1 janv. 1970 .
drwxr-xr-x. 3 root root 4096 1 janv. 1970 ..
drwxr-xr-x. 2 root root 4096 1 janv. 1970 ja
drwxr-xr-x. 2 root root 4096 1 janv. 1970 ru
Even running the application and forcing environment doesn't to work to get French language:
> flatpak run --env=LC_MESSAGES=fr_FR.UTF-8 com.github.tenderowl.frog
I've find some links related to that kind of issue, one that might be relevant is:
I'm missing some knowledge about how flatpak might interact between runtime and app but I don't understand why it's not working at all for me to get French language in GUI.
Other flatpak app are working with French language so I think it might be related to how Frog handle things, I don't know if anyone have the same issue for other language, I haven't found any issue related on this repository (open or closed).
Thanks for your feedback on this matter when you'll get time, have a nice day.
It just does not make the screenshot.
Terminal:
on_shot_error?
When I click on the "Grab the area" button I get the error ERROR: ''
and the app crashes.
Here is the full log (the first two lines are already there before clicking on the button):
~ flatpak run com.github.tenderowl.frog
(frog:2): Gtk-CRITICAL **: 18:32:11.522: gtk_bin_remove: assertion 'priv->child == child' failed
Cache downloaded codes: ['eng']
ERROR: ''
Frog version: 0.3.0 (Flatpak)
OS: Kubuntu 21.10
While result of this action is not visible to users, we have to provide some visual feedback about action results.
In-app Toasts looks good for that.
Ubuntu 22.04.1 LTS
GNOME 42.5
CPU Intel® Core™ i5-6200U CPU @ 2.30GHz × 4
GPU Mesa Intel® HD Graphics 520 (SKL GT2)
ERROR: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SelectArea is not allowed (9)
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/frog/window.py", line 221, in on_shot_error
self.on_screenshot_error(error)
TypeError: on_screenshot_error() missing 1 required positional argument: 'error'
Thanks for the amazing app! I'm using Ubuntu 21.10 gnome. I just changed to the new version (1.0.0) and it seems to make the capture process at least 2 steps longer. it now says "take shot" instead of "grab area" and open gnome screenshot tool. I then need to switch it to capture area instead of whole screen, and once it's captured, I need to click another button to share that with Frog app again.
I also noticed that the Ctrl+G and Ctrl+Shift+G does the same thing - open the gnome screenshot tool.
I used to love frog over other apps like TextSnatcher for making it simpler. Anyway we can get the 'Grab' feature back?
Also, is there a command that we can set in gnome shortcuts to directly launch the 'grab' function?
Your app has this Stripe key:
However, it appears to belong to the Sequeler app.
I just built Frog from source (tried both 0.1.7 & from latest commit) on Manjaro GNOME. Yes, I'm aware it's not meant for anything other than Elementary.
It appears it's looking for ~/.local/share/tessdata/
and should create it if it doesn't exist. However...
❯ frog
Traceback (most recent call last):
File "/usr/bin/frog", line 51, in <module>
from frog import main
File "/usr/lib/python3.9/site-packages/frog/main.py", line 37, in <module>
from .settings import Settings
File "/usr/lib/python3.9/site-packages/frog/settings.py", line 32, in <module>
from frog.config import APP_ID
File "/usr/lib/python3.9/site-packages/frog/config.py", line 33, in <module>
if not os.path.exists(os.path.join(os.environ['XDG_DATA_HOME'], 'tessdata')):
File "/usr/lib/python3.9/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'XDG_DATA_HOME'
Cause
cannot find the required model
On inspection, I found that it fails because the tesseract-ocr trained models at tessdata_best does not have the required ‘equ’ model.
But as listed on the Data files section of Tesseract docs, The ‘equ' module is available at tessdata.
There's a merge conflict on Hosted Weblate. Translations appear locked and might not be updating because of this.
The translations on Weblate are locked because of a merge conflict. Translators are therefore unable to contribute via Weblate.
Same as issue #65, but opening a new one since I can't re-open that.
First of all, thanks Andrey Maksimov for this product! I like it much and use it often.
However, it lacks or it is buggy to use it more intuitively. I usually take a screenshot using GNOME 42's screenshot software (the one that pops up when you press PrintScreen). When I copy my screenshot to clipboard and send it to frog via Ctrl+V, it does nothing.
For instance, in Obfuscate I can send the image via Ctrl+V and it is really intuitive. I want that feature to be also in Frog.
OS: OpenSUSE Tumbleweed, v20220905;
DE: GNOME 42.4 on Wayland
Frog: v1.2.0 via Flatpak, from Flathub
Please reply if you need more info
Hello. I installed From from Flatpak in a recently updated Fedora 36 install, but when I start the application, it crashes with the following error:
libEGL warning: MESA-LOADER: failed to retrieve device information
libEGL warning: DRI2: could not open /dev/dri/card0 (No such file or directory)
libGL error: MESA-LOADER: failed to retrieve device information
Cache downloaded codes: ['eng']
No provider of glGetShaderiv found. Requires one of:
Desktop OpenGL 2.0
OpenGL ES 2.0
I found out some Reddit thread of a similar problem regarding GTK4 apps and they said to run with GSK_RENDERER=cairo
environment variable and it works.
This error only apps in Frog and not other GTK4 apps.
I seem to have OpenGL installed:
❯ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (WHL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
``
Hi,
Your program is useful and easy to use. I congratulate you for creating it. Is is really time saver for me. I used it on popOS with no issue.
But now I am supposed to work on MX Linux and unfortunately it won't work there. Neither the one in their MX repository nor the one I created using builder nor the one from Elementary OS.
Program starts fine
When you click on Take snapshot it ends. I do not see any error messages or any clue as why it happens and where...
Looking forward to your comments and possible fix.
Thanks.
Bid
PS: here is my platform info:
Linux mx 5.16.0-5mx-amd64 #1 SMP PREEMPT Debian 5.16.14-1~mx21+1 (2022-03-22) x86_64 GNU/Linux
The language selection menu should be alphabetically sorted.
I'd like to request a feature for grabbing a shot from the camera, as well to extract text from.
Especially with QR Codes, this seems like a useful thing, given how ephemeral they often are
I know that I can drag an image into the window to use it, but I think there should be a more intuitive way to do it. The "Configure Languages" button could be moved into the hamburger menu and replaced with a button for selecting a file.
Hi,
I'm trying to ocr an arabic image, but frog couldn't read anything from the image, when i replaced the ara.tessdata from the frog flatpak directory with the one i downloaded from tessdata_best, frog managed to ocr tge image with great success.
Even using tessdata_fast had a very good success.
Please make tessdata_best the default
Hi there – very cool app - thanks!
Would you consider joining GNOME Circle?
FYI – reviewer might ask for some changes to match GNOME a big closer, but nothing too drastic as the app is really close already.
Cheers
A few minor UI issues I came across testing the app
.suggested-action
classI built a quick debian package. When try to launch it I get the following error:
frog
Traceback (most recent call last):
File "/usr/bin/frog", line 59, in <module>
from frog import main
File "/usr/lib/python3/dist-packages/frog/main.py", line 40, in <module>
from .about_dialog import AboutDialog
File "/usr/lib/python3/dist-packages/frog/about_dialog.py", line 29, in <module>
from frog.config import APP_ID, RESOURCE_PREFIX
File "/usr/lib/python3/dist-packages/frog/config.py", line 33, in <module>
if not os.path.exists(os.path.join(os.environ['XDG_DATA_HOME'], 'tessdata')):
File "/usr/lib/python3.10/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'XDG_DATA_HOME'
I think this is somewhat related to #22 . I built the latest release (1.1.3). Os is debian testing
Trying to install on my system which runs a derivative of Ubuntu 22.04.1 LTS, it fails to install and gives a alert popup:
An error occurred
Could not locate runtime 'runtime/io.elementary.Platform/x86_64/6.1' in any registered modules
There should be some sign that the extracted text has been copied to the clipboard, a toast notification for instance. Right now, you're easily unsure whether the text actually was copied.
Hello, I'm trying to use Frog, the text extractor, in the latest version of Parrot Os, but I can't get it to start the screenshot service, what could I do, what other alternative could I use, I really like this application a lot but I can't make it run.
I just love your APP
thanks for your help
Best regards
Hej Andrey.
love the program! easy to use and simple.
but i can't get it to initialize with the keyboard shortcuts.
I'm running Ubuntu 20.04.4 LTS.
and i installed through flatpack
Can anyone compile the program and make it run from the .exe? PLS
I would love to use your program on PC
@amka, hey there, would you like a new icon for the app? I can design one that follows the human interface guidelines of elementary.
Great app btw, very useful. Cheers!!
currently the URL it takes you to is https://tenderowl/work/Frog when it should take you to https://tenderowl.com/work/frog/ (just forgot to add .com)
First of all, thank you for your amazing app.
I'm currently having problems using your app on ubuntu 22.04.1 through flatpack.
When I take a screenshot the window blink and i get this error:
Cache downloaded codes: ['eng']
on_shot_error?
And it doesn't take a screenshot.
And when I load a file in my home folder I get this:
Decoding with eng language.
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/frog/window.py", line 242, in on_open_image
dialog.close()
AttributeError: 'FileChooserNative' object has no attribute 'close'
on_shot_error? No text found.
on_screenshot_error? Could not access your file!
And it doesn't load the file.
I didn't touch any flatpack permissions because I have absolutely no idea on how flatpack works.
Thanks a lot for your help !
Hey thanks for submitting Frog for review!
I noticed that the date in your release tag is 2021-16-08
, which is invalid since this tag uses ISO 8601. It should instead be in YYYY-MM-DD
format
The version number here also doesn't match the release tag that you've submitted for review
While we're at it, the Language list is quite ugly, and the scrollbar is in the wrong spot:
I'd remove the padding from the main box, putting it on the list instead, set selection-mode: none
on it, make the download buttons the activatable widgets and used AdwClampScrollable instead of AdwClamp. In addition, .flat isn't really supposed to be used with scrolled views so it intersects the list nastily.
Originally posted by @jannuary in #50 (comment)
The text does not appear to be extracted after taking the screenshot. Its only saving the image. The text also is not saved in the clipboard. Am i using it wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.