Skip to main content

Detects if an image already exist a database. This project was made for educational purposes and is not meant to be used in any other projet or production env.

Project description

# DuplicaDetector

## Installation

> pip3 install DuplicaDetector

## Information

  • You’ll need to create a folder called “pictures” (will be able to rename later) to save the pictures you upload to the lib.;

  • DuplicaDetector will create a file called “db.pkl”, it is the database it’s using. If you want to start over you can just delete it or rename it

## Usage

### Import

> from DuplicaDetector import ImageChecker

> im = ImageChecker()

OR > import DuplicaDetector as dd

> im = dd.ImageChecker()

OR > import DuplicaDetector

> im = DuplicaDetector.ImageChecker()

### Check if an image is in database - DoesExist() This function will check if the image already exist in the database by checking multiple values

##### Call > im = ImageChecker() > im.DoesExist(“path_to_the_image”)

#### Return DoesExist returns an object with two values callable as method: - *path*

Gives the path to the image as a string > im.DoesExist(“path_to_the_image”).path -> “path_to_image”

  • *exists*

Tells if the image already existed or if it has been created as a boolean > im.DoesExist(“path_to_the_image”).exists -> True

### Exit - Exit() The Exit() function saves the database

#### Call > im = ImageChecker()

> im.Exit()

#### Return The Exit() function does not return anything

## License MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DuplicaDetector-2.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file DuplicaDetector-2.5.tar.gz.

File metadata

  • Download URL: DuplicaDetector-2.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for DuplicaDetector-2.5.tar.gz
Algorithm Hash digest
SHA256 596c1f66e1c529f0d20b5e65e7b3d8d95fffe3d0630b747b6a5fcd976e3d40f0
MD5 18eea5250b14b88dc8a18cbb3a2d2099
BLAKE2b-256 4cd6b260192d4580371f9574fc7e4b2e731f5e3b11dbc31527a67f49eeb7bddd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page