Comments (11)
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.
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.
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.
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.
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.
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.
Ok thanks, I'll check it out
from image-match.
Hey @rezaAdie any insight? I'm on vacation for the holidays, no ETA from my end
from image-match.
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.
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.
ses = SignatureES(es, distance_cutoff=0.3)
You can try this.
from image-match.
Related Issues (20)
- skimage `imread` as_grey vs as_gray HOT 4
- Using Image-Match with Real-Time/Live/Video Stream? HOT 2
- Issue installing on python 3.7 conda env HOT 2
- cut_distance
- fails to pass a sanity check due to a bug in the windows runtime
- Failure when running this function through pytest
- Will the face search function be added?
- Mongo search is slow
- Is this still maintained? HOT 1
- New release compatible with Python 3.7
- Broken link to Pavlov in the readme
- Bulk insert of images on ElasticSearch
- Elasticsearch version conflict HOT 1
- Link to get 80M images is FORBIDDEN
- Fast Insert HOT 2
- setup.py fails when installing scikit-image everytime HOT 2
- Error on search_image HOT 3
- ValueError: the input array must have size 3 along `channel_axis`, got (923, 600) HOT 15
- Doesn't support Webp image format. HOT 1
- Whether to consider adding face search ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-match.