You are not logged in.
Pages: 1
Topic closed
Hi, I am hoping to find an answer to the subject title above.
I am looking for either a nemo_action or a terminal program that can reverse image a saved image on the HDD (searching via the internet) and display them in a window or web browser.
Thats all folks!
Thanks.
David.
EDITED: I have looked online for the above request but have not found anything. Maybe there are people here who know where to find what I am looking for.
Last edited by Scooby Doo (2023-07-22 22:47:39)
Offline
I think a problem with this is that going beyond the functionality of the web interface of reverse image search engines means using their API, which requires an authentication that is connected to a payment - so this is not likely to be something that can be done for free.
Here's a little info from Tineye: https://services.tineye.com/developers/ … _tineyeapi
They have a sandbox you can use for testing: https://services.tineye.com/developers/ … pi/sandbox
And they provide libraries for Node.js, PHP, Python and Ruby: https://services.tineye.com/developers/ … /libraries
So basically, if you're in mood for a little coding, you can make this yourself without too much effort.
Here's a start in Python, that takes image file names from the CLI, queries the sandbox and extracts the match quality score and the image url.
You need to install pytineye
#!/usr/bin/python3
from pytineye import TinEyeAPIRequest, TinEyeResponse, Match
import sys
# Sandbox key
api_key = "6mm60lsCNIB,FwOWjJqA80QZHh9BMwc-ber4u=t^"
api = TinEyeAPIRequest(
api_url="https://api.tineye.com/rest/",
api_key=api_key,
)
print("Name of the script : ", sys.argv[0])
print("Arguments to the script : ", sys.argv[1:])
for image in sys.argv[1:]:
file = open(image, 'rb')
data = file.read()
response = api.search_data(data=data)
file.close()
print("\n--- Response for:", image, "---")
for match in response.matches:
print("Score {0:5.3f}: {1}".format(match.score, match.image_url))Last edited by Ferdinand (2023-07-25 05:00:22)
Offline
I’m a bit late here, but I’ve been using a small script that sends images to the Google Lens upload endpoint via curl, then opens the results in the browser. It works well as a Nemo action too. Also curious if anyone has tried hooking in tools like reverse-image-search from AUR or using TinEye’s API lately. If someone has a cleaner Nemo integration, I’d love to hear about it.
Offline
Moderator Note
Renhiota, please read https://wiki.archlinux.org/title/Genera … bumping%22 .
Closing this old thread
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Pages: 1
Topic closed