Code Monkey home page Code Monkey logo

frog's People

Contributors

adbeveridge avatar albanobattistella avatar amka avatar bordam avatar cassidyjames avatar comradekingu avatar dapigguy avatar filephil avatar fjuro avatar flipflop97 avatar foo-dogsquared avatar gabisawesome avatar gondolyr avatar gregorni avatar harisk20 avatar horvbalint avatar ibrahim-mu avatar karoush1 avatar mirusu400 avatar nathanbnm avatar oscfdezdz avatar oyajun avatar rene-coty avatar santossi avatar viniasbr avatar weblate avatar xezo360hye avatar yakushabb 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  avatar  avatar  avatar  avatar

frog's Issues

Suggestion for Quick screenshot

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!

Error starting frog on Fedora 36 - No provider of glGetShaderiv found.

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:
``

GNOME Circle

Hi there – very cool app - thanks!

Would you consider joining GNOME Circle?

https://circle.gnome.org/

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

Cannot paste screenshots using GNOME's screenshot software

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

Error after clicking Grab the area - SelectArea is not allowed

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'

Preferences redesign

While we're at it, the Language list is quite ugly, and the scrollbar is in the wrong spot:
image
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)

Canno't screenshot or load file on ubuntu22.04/flatpack

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:
Capture d’écran du 2022-09-02 02-05-26

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 !

UI translation to other languages

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.

LibHandy and Granite are included in the elementary Platform

You shouldn't need to include these manually here, they're included in the platform.

{
"name" : "libhandy",
"buildsystem" : "meson",
"builddir" : true,
"config-opts" : [
"-Dexamples=false",
"-Dtests=false"
],
"sources" : [
{
"type" : "git",
"url" : "https://gitlab.gnome.org/GNOME/libhandy.git"
}
]
},
{
"name" : "granite",
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "https://github.com/elementary/granite.git",
"tag" : "6.1.0"
}
]
},

Frog failed to initialize screenshots service on Parrot OS

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

Problema Frog

Flatpak install failed

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

Text is not extracted

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?

UI papercuts

A few minor UI issues I came across testing the app

  • The icon and text should be centered together on the empty state buttons
  • All button labels should use title case
  • I'd maybe make the "take a shot" label more explicit, "shot" is a bit vague. How about "Take a Screenshot" or "New Scan"?

image

  • The action bar should have a divider line above
  • The buttons in the action bar should not be raised, i.e. have no background unless hovered/active
  • The "take a shot" button should probably have the .suggested-action class

image

  • The "Configure" menu item could be more explicit, e.g. "Manage Languages"

The app won't launch unless I choose to "Launch using discete graphics card"

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.

Release tag is invalid

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

KeyError: 'XDG_DATA_HOME'

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'

In-app button for selecting image

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.

Can't Click Away from Hamburger Menu

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.

compile the program

Can anyone compile the program and make it run from the .exe? PLS
I would love to use your program on PC

Opens Gnome Screenshots to capture

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?

image
image

Immediate crash after clicking on "Grab the area" button

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

Grabbing text problem

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

[Bug] Frog not starting up

I 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

Does not run on MX Linux

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

Support for Ubuntu

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.

Not working on other OS

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.

Flatpak locale not working/load (French)

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.

  • System: Fedora 36
  • Flatpak version: 1.12.7
  • System language : French

Installation (system)

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

Configuration (system)

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*

Informations (flatpak)

> 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

Locales (testing)

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

Links

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.

New Icon

@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!!

Flatpak Frog downloads from tessdata instead of tessdata_best

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

Feedback on copying to clipboard

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.

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.