Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Within - Search for an Image in another Image ✨

An Experiment Project with API and Web Interface created to Find Images Within Another Image

The Following technologies are used in this project

  • openCV
  • numpy
  • fastapi
  • streamlit

This is the UI - where you can upload your images UI

This is the Result - You can see the output highlighted in green annotation - Rectangle Result

 

The Logic behind

The logical comparision is now powered by OpenCV's matchTemplate and cv2.TM_CCOEFF_NORMED

I am currently working on AI Custom Models to improve the accuracy of the results and to enhance the scope of the project

Here are some modeles I am trying right now

cv2.matchTemplate(graybaseImage, scaled_refImg, cv2.TM_CCOEFF_NORMED)

This is an experiment project created to Find Images Within Another Image and to test the performance of OpenCV's matchTemplate and cv2.TM_CCOEFF_NORMED and other algorithms and provide an interface for future AI - ML based model validations - Feel free to contribute

 

How to use it

  1. Download the project
git clone https://github.com/robertoferreira/image-within.git 
  1. Install the requirements
pip install -r requirements.txt 
  1. Run the UI
streamlit run ui/app.py 
  1. Run the API
cd api && uvicorn app:app --reload
  1. Open the browser and go to http://localhost:8501

Future Improvements

  • AI Custom Models
  • More Algorithms
  • More UI Improvements

 

License

MIT License

Contributions Welcome - Leave a Star if you like it ⭐

About

Search for an Image in Another Image

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages