Skip to main content

AI image renamer using EfficientNetB0

Project description

auto_rename_ai

<> is a Python package for automatically renaming images using the EfficientNetB0 model. Each image is classified, and its filename is updated to include the class label, confidence percentage, and a counter.


Features

  • Automatically renames images in the format 'label(confidence%)(counter).ext'
  • Supports '.jpg', '.jpeg', and '.png' image formats
  • Handles corrupted images without stopping the program
  • Processes an entire folder of images in one batch

Installation

The package can be installed via pip after local build or publishing:

pip install .

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

##Usage

from auto_rename_ai import rename_images

# Specify input and output folders
input_folder = "path/to/images"
output_folder = "path/to/output"

# Automatically rename images
rename_images(input_folder, output_folder)

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

##Result
Each image will be renamed in the following format::

label(confidence%)(counter).ext

-->> for example: 
golden_retriever(97.00%)(1).jpg
sports_car(88.12%)(1).png
keyboard(91.03%)(2).jpeg

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

##Requirements::

Python 3.8+
TensorFlow 2.x

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

auto_rename_ai-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_rename_ai-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file auto_rename_ai-1.0.0.tar.gz.

File metadata

  • Download URL: auto_rename_ai-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for auto_rename_ai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a33ac6b49d432ba87f60b4213c053a04076fb2bfa96a22e3511856157d6ef0f5
MD5 a166f721fc6e1ae48adac0c8835489e1
BLAKE2b-256 57901a5263454b0d5936bd5468d9bed0f1103f3c2e3529cf00eaf9ff467af75f

See more details on using hashes here.

File details

Details for the file auto_rename_ai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: auto_rename_ai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for auto_rename_ai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97ee83faf465200907df8b2507b9eec037224c7726690f9370534f1a4f34d543
MD5 7e4fad97fb90b7505375a45e8dce405d
BLAKE2b-256 b7c5b0013e6f03e6afb0b91ab5cb93c4489842e0de406f46554ce1cd7f88450d

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