Skip to content

Commit 71f39db

Browse files
authored
Update README.md
1 parent e758678 commit 71f39db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ There are three important classes you need to load **LoadData** - for data loadi
3535

3636
```python
3737
# Importing the proper classes
38-
from DeepImageSearch import Index,LoadData,SerachImage
38+
from DeepImageSearch import Index,LoadData,SearchImage
3939
```
4040

4141
#### 2. Loading the Images Data
@@ -44,9 +44,9 @@ For loading the images data we need to use the **LoadData** object, from there w
4444

4545
```python
4646
# 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'])
4848
# 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)
5050
```
5151
### 3. Indexing and Saving The File in Local Folder
5252

@@ -62,28 +62,28 @@ Searching operation is performed by the following method:
6262

6363
```python
6464
# 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)
6666
```
6767
you can also plot some similar images for viewing purpose by following the code method:
6868

6969
```python
7070
# 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])
7272
```
7373

7474
## Complete Code
7575

7676
```python
7777
# Importing the proper classes
78-
from DeepImageSearch import Index,LoadData,SerachImage
78+
from DeepImageSearch import Index,LoadData,SearchImage
7979
# 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'])
8181
# For Faster Serching we need to index Data first, After Indexing all the meta data stored on the local path
8282
Index(image_list).Start()
8383
# 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)
8585
# 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])
8787
```
8888

8989
## License

0 commit comments

Comments
 (0)