Code Monkey home page Code Monkey logo

module_find_position_image's Introduction

module_find_position_image

  • This module is written from Imagededup and makes it easier to find exactly position of an image in a folder
  • We use this module and Imagededup to find an image from a folder
  • We need to save that image in folder to find duplicated imaged

Installation

  • Firstly, we need to install Imagededup:

    pip install imagededup
    
  • Next, we need to install this module:

    git clone https://github.com/luongdangvp2000/module_find_position_image.git
    

Get started:

  • Before we fine duplicated image, we have to import module, declare path of image directory and file name:
    from module_find_position_image import encodings_and_duplicates_images_dir, image_dir, name_image
    
    image_dir = image_dir(path of image directory)
    filename = name_image(name of image)
    
  • Next step, we generate encodings for all images:
    duplicates= encodings_and_duplicates_images_dir(image_dir= image_dir)
    
  • After that, we can find the most similar image and its position:
    from module_find_position_image import find_position_duplicated_image
    from module_find_position_image import find_name_duplicated_image
    
    duplicated_filename= find_name_duplicated_image(duplicates= duplicates, filename= filename)
    print(duplicated_filename)
    print(find_position_duplicated_image(duplicates= duplicates, filename=filename))
    
  • We can also display two image to compare:
    from module_find_position_image import display_images_to_compare
    
    display_images_to_compare(filename= filename, duplicated_filename= duplicated_filename, image_dir= image_dir)
    

module_find_position_image's People

Contributors

dangln0312 avatar

Watchers

 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.