Git Product home page Git Product logo

image_search_pinecone's Introduction

Assignment-4 This is a Streamlit web page that showcases a comparison between L2-Distance Search and Vectorize Search methods. The page contains two columns where the first column displays some markdown text and a link to a GitHub repository, while the second column displays an animation loaded from a JSON file. Additionally, the page includes an expander widget that compares the two types of search methods.

  • Libraries Used The following libraries have been used in this Streamlit app:

streamlit: for creating web pages streamlit_lottie: for adding animations json: for working with JSON files Page Configuration The set_page_config function from the streamlit library has been used to set the page configuration. The page_title parameter has been set to "Home".

  • Columns Two columns have been created for the page using the columns function from the streamlit library. The cols1 and cols2 variables represent the two columns.

  • First Column The first column (cols1) displays some markdown text and a link to a GitHub repository. The markdown text contains a message asking the user to select a task from the sidebar, and the link leads to the GitHub repository for Assignment-4.

  • Second Column The second column (cols2) displays an animation loaded from a JSON file. The animation is displayed using the st_lottie function from the streamlit_lottie library. The JSON file contains the animation data.

  • Expander Widget An expander widget has been added to the page using the expander function from the streamlit library. The widget compares L2-Distance Search and Vectorize Search methods, highlighting the differences between them. The comparison is presented in a table format.

  • Web Application for Image Search This code implements a web application for image search using Elastic Search. The user can upload an image and the application will recommend similar images based on the L2 distance between the uploaded image and the images already present in the system. The recommended images are displayed in a grid format based on the number of columns and rows selected by the user.

  • Libraries pandas - For data manipulation and analysis streamlit - For creating web pages PIL - For working with images pathlib - For working with file paths numpy - For numerical computing feature_extractor - A custom module for extracting features from images datetime - For working with dates and times

  • Functions sis_offline() - A function that takes an image file as input, extracts features from it, computes L2 distances between the uploaded image and the images already present in the system, and recommends similar images based on the number of recommendations and the grid size selected by the user.

  • Usage The user can upload an image by clicking on the "Choose an Image file" button. Once the image is uploaded, it is displayed on the page along with its extracted features. The user can select the number of recommendations and the grid size using sliders and number inputs. The recommended images are displayed in a grid format based on the selected grid size.

image_search_pinecone's People

Contributors

negi97mohit avatar

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.