@@ -35,7 +35,7 @@ There are three important classes you need to load **LoadData** - for data loadi
35
35
36
36
``` python
37
37
# Importing the proper classes
38
- from DeepImageSearch import Index,LoadData,SerachImage
38
+ from DeepImageSearch import Index,LoadData,SearchImage
39
39
```
40
40
41
41
#### 2. Loading the Images Data
@@ -44,9 +44,9 @@ For loading the images data we need to use the **LoadData** object, from there w
44
44
45
45
``` python
46
46
# load the Images from the Folder (You can also import data from multiple folders in python list type)
47
- image_list = LoadData.from_folder([' images' ,' wiki-images' ])
47
+ image_list = LoadData() .from_folder([' images' ,' wiki-images' ])
48
48
# Load data from CSV file
49
- image_list = LoadData.from_csv(csv_file_path = ' your_csv_file.csv' ,images_column_name = ' column_name)
49
+ image_list = LoadData() .from_csv(csv_file_path = ' your_csv_file.csv' ,images_column_name = ' column_name)
50
50
```
51
51
# ## 3. Indexing and Saving The File in Local Folder
52
52
@@ -62,28 +62,28 @@ Searching operation is performed by the following method:
62
62
63
63
```python
64
64
# for searching, you need to give the image path and the number of the similar image you want
65
- SerachImage.get_similar_images(image_path = image_list[0 ],number_of_images = 5 )
65
+ SerachImage() .get_similar_images(image_path = image_list[0 ],number_of_images = 5 )
66
66
```
67
67
you can also plot some similar images for viewing purpose by following the code method:
68
68
69
69
```python
70
70
# If you want to plot similar images you can use this method, It will plot 16 most similar images from the data index
71
- SerachImage.plot_similar_images(image_path = image_list[0 ])
71
+ SerachImage() .plot_similar_images(image_path = image_list[0 ])
72
72
```
73
73
74
74
# # Complete Code
75
75
76
76
```python
77
77
# Importing the proper classes
78
- from DeepImageSearch import Index,LoadData,SerachImage
78
+ from DeepImageSearch import Index,LoadData,SearchImage
79
79
# load the Images from the Folder (You can also import data from multiple folder in python list type)
80
- image_list = LoadData.from_folder([' images' ,' wiki-images' ])
80
+ image_list = LoadData() .from_folder([' images' ,' wiki-images' ])
81
81
# For Faster Serching we need to index Data first, After Indexing all the meta data stored on the local path
82
82
Index(image_list).Start()
83
83
# for searching you need to give the image path and the number of similar image you want
84
- SerachImage.get_similar_images(image_path = image_list[0 ],number_of_images = 5 )
84
+ SerachImage() .get_similar_images(image_path = image_list[0 ],number_of_images = 5 )
85
85
# If you want to plot similar images the you can use this method, It will plot 16 most similar images from the data index
86
- SerachImage.plot_similar_images(image_path = image_list[0 ])
86
+ SerachImage() .plot_similar_images(image_path = image_list[0 ])
87
87
```
88
88
89
89
# # License
0 commit comments