Coder Social home page Coder Social logo

can't search about image-match HOT 11 OPEN

rhsimplex avatar rhsimplex commented on July 28, 2024
can't search

from image-match.

Comments (11)

rhsimplex avatar rhsimplex commented on July 28, 2024

I can't reproduce it, but I'm still using elasticsearch 2.x:

import elasticsearch
from image_match.elasticsearch_driver import SignatureES
es = elasticsearch.Elasticsearch()
es.indices.create('tester')
ses = SignatureES(es, index='tester')
ses.add_image('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg/687px-Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg')
list = ses.search_image('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg/687px-Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg')
print(list)

outputs:

[{'dist': 0.0, 'id': 'AVji11MghIbF9_pSG8pq', 'path': 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg/687px-Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg', 'metadata': None, 'score': 2.435569}]

Can you double-check?

from image-match.

rezaAdie avatar rezaAdie commented on July 28, 2024

hi, if i search using image that stored in my db use

list = ses.search_image('/data01/image_collections/caleg/Wakil_Calon_-JEMMY_ASIKU(2).jpg')
print(list)
i can get it like this
[{'id': 'AVjfKYajkwc-LUweSHty', 'dist': 0.0, 'score': 65.11921, 'metadata': None, 'path': '/data01/image_collections/caleg/Wakil_Calon_-_JEMMY_ASIKU_(2).jpg'}]

but when i search using
list = ses.search_image('http://i.imgur.com/CVYBCCy.jpg')
print(list)

i get no value like '[]'

from image-match.

rhsimplex avatar rhsimplex commented on July 28, 2024

I can't help without something I can reproduce myself. Hard to say when it's stuff that's in your db already.

Can you reproduce it in a self-contained script with a fresh index on images from the web?

from image-match.

rezaAdie avatar rezaAdie commented on July 28, 2024

hi rhsimplex. can you produce it using this image in this link

https://www.dropbox.com/s/svrv12gggiaqdf3/aamir_khan.rar?dl=0
and try to search using
ses.search_image('http://static.koimoi.com/wp-content/new-galleries/2014/06/Aamir-Khan-Wallpaper-7.jpg')

that was some image that i use in my elastic using elastic 2.2.1

from image-match.

rhsimplex avatar rhsimplex commented on July 28, 2024

Ok, so if I add all the the images in the archive and then search against this URL, there are no matches but you expect one (or many)?

I'll try to get to it early next week at the latest. Let me know if you figure anything else out about what's going on.

from image-match.

rezaAdie avatar rezaAdie commented on July 28, 2024

Yes for now i just get no value. What i expected is i can get value like

[
{'dist': 0.15454905655638429,
'id': u'AVM37oZq0osmmAxpPvx7',
'metadata': None,
'path': u'https://pixabay.com/static/uploads/photo/2012/11/28/08/56/mona-lisa-67506_960_720.jpg',
'score': 1.6818419},
{'dist': 0.24980626832071956,
'id': u'AVM37nMg0osmmAxpPvx6',
'metadata': None,
'path': u'https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg/687px-Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg',
'score': 0.16198477},
{'dist': 0.43387141782958921,
'id': u'AVM37p530osmmAxpPvx9',
'metadata': None,
'path': u'https://c2.staticflickr.com/8/7158/6814444991_08d82de57e_z.jpg',
'score': 0.031996995}
]
but from image that i add into elastic.
If i can figure it, i'll gonna post it right away.

from image-match.

rhsimplex avatar rhsimplex commented on July 28, 2024

Ok thanks, I'll check it out

from image-match.

rhsimplex avatar rhsimplex commented on July 28, 2024

Hey @rezaAdie any insight? I'm on vacation for the holidays, no ETA from my end

from image-match.

rezaAdie avatar rezaAdie commented on July 28, 2024

Hey @rhsimplex i'm still stuck, i try to lower elastic version but it's still same, but when i try monalisa image that from your tutorial... when i search it, i can found it. But still no value from my own image.

from image-match.

rezaAdie avatar rezaAdie commented on July 28, 2024

When i add image, am i need to do it using URL??? because i add image from my directory path likethis :

"path": "/data01/image_collections/caleg/Wakil_Calon_-JEMMY_ASIKU(2).jpg",

from image-match.

wuqueshan avatar wuqueshan commented on July 28, 2024

ses = SignatureES(es, distance_cutoff=0.3)
You can try this.

from image-match.

Related Issues (20)

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.