Performing a image Search using python
2016-08-23
0 0 0
no vote
Other
Earn points
The first thing, the first time. Import the package we will need. The oursearcherclass stored in the pyimagesearchmodule. Then, we define our arguments in the same way as we did in the indexing steps. Finally, we use pickleto to load. We close the disk index and initialize oursearcher. Line 3: index each image as a query to see what we get. In general, you query outside rather than part of the dataset, but before we get down to business, let's just do some sample searches. Line 5: This is where the actual search takes place. We view the current image as our query and perform the search. Line 8 11: load and display our query image. Line 17 35: show the results of the top 10, I have decided to use two montage images. The first montage shows 1-5 and the second montage shows 6-10. The name of image and distance is provided online 27. Line 38-40: finally, we show our search results to users.
python
图像
搜索
使用
执行
Related Source Codes
Word memorization software
0
0
no vote
CWT Python example
0
0
no vote
STFT example
0
0
no vote
Chinese Speech Recognition
0
0
no vote
python-ela
0
0
no vote
No comment