[ cyb / tech / λ / layer ] [ zzz / drg / lit / diy / art ] [ w / rpg / r ] [ q ] [ / ] [ popular / ???? / rules / radio / $$ / news ] [ volafile / uboa / sushi / LainTV / lewd ]

tech - God bless the AMD

2nd chances
Name
Email
Subject
Comment
File
Password (For file deletion.)

BUY LAINCHAN STICKERS HERE

STREAM » LainTV « STREAM

[Return][Go to bottom]

File: 1449045401604.jpg (82.91 KB, 480x336, 1448993483630.jpg) ImgOps Exif iqdb

 No.14537

I want to improve the quality of the thousands of dank memes and wallpaper I've collected over the years. There are reverse image search engines out there like Google, Bing, Yandex, and TinEye. With TinEye for example you upload an image or provide a link and it gives you a bunch of similar pictures that can be sorted by best match, biggest size, etc.

Here's an example (the string is just the sha1sum of the file): https://www.tineye.com/search/15b0fac3f80305d533fa5359329c09349c81c864

How can I automate this using something like curl or wget or something? What do you guys do as far as optimizing, archiving, and organizing your collections?
>>

 No.14538

Basically I want to get the highest quality, preferably lossless, watermark free version and automate as much of it as possible.

>>

 No.14539

Yeah.. uh.. first of all, "lynx -dump" and phantomjs are useful tools too!

Secondly, there is a whacky one liner that will break at the first opportunity but worked for me to download the first result on tineye

wget $(lynx -dump -listonly "https://www.tineye.com/search/15b0fac3f80305d533fa5359329c09349c81c864?sort=size&order=desc" | head -45 | tail -1)

Thirdly, I was unable to produce the same sha1 hashes like tineye so i couldnt automate looking up pictures :(

>>

 No.14542

Since we dont know the original urls you will have to script image upload and result extraction on Google, Bing, Yandex, and TinEye. Alternatively you could upload them pics on a public webserver and then ask for those urls.

Maybe you can manage it with curl but to scare web apps (that work with lots of javascript) you will need phantomjs or similar. You could of course always write a firefox addon, greasemonkey script or call your firefox with -new-tab <url> too :)

>>

 No.14543

>>14539
The sha1sum is from the picture in the OP. If you replace it with a different sha1sum and the picture is in their database it should come up.

I really need to get back into programming.

>>

 No.14545

>>14543
>>14543
ah yes pardon me

for file in $(ls); do
HASH=$(sha1sum.exe $file | cut -c '1-40' )
echo $HASH
#call the other thing here?
done

here you go

>>

 No.14546

>>14545
>sha1sum.exe
kek



Delete Post [ ]
[ cyb / tech / λ / layer ] [ zzz / drg / lit / diy / art ] [ w / rpg / r ] [ q ] [ / ] [ popular / ???? / rules / radio / $$ / news ] [ volafile / uboa / sushi / LainTV / lewd ]