Roon311 / LightingProductClassifier

Load images from a link, apply it to a deep learning model to check if the image is of a product or an application. If it is not for a product search for image of a product in the csv file and validate it using the model. Then edit the csv .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LightingProductClassifier

This Python script uses a deep learning model to classify images as either a product or an application. The classification is performed on a CSV file containing image links. The script provides an option to use multi-threading for faster processing.

Dependencies

Make sure to install the following dependencies:

  1. pandas
  2. tensorflow
  3. numpy
  4. requests
  5. sickit image
  6. matplotlib
  7. PySimpleGUI

You can install them using the following command:

pip install pandas tensorflow numpy requests scikit-image matplotlib PySimpleGUI

Usage

  1. Change the Model Path: Update the model path in the script to point to your trained deep learning model.

    Nour4 = load_model('Model\\Nour4.h5')
  2. Run the Script: Execute the script, and a GUI window will appear.

    python LightClassifier.py
  3. Select CSV File: Click the "Select CSV File" button and choose a CSV file containing image links.

  4. Choose Multi-Threading (Optional): Check the "Use Multi-Threading" checkbox for faster processing.

  5. Submit: Click the "Submit" button to start the image classification process.

  6. View Results: The classification results will be displayed on the GUI. Optionally, you can view the processing logs by clicking "View Logs."

  7. Done: Click the "Done" button when the processing is complete.

Log Viewer

If you want to review processing logs, you can click "View Logs" to open the log viewer window(currently under development).

Application in Action

Notes

  • The script loads images from the provided links and classifies them using the specified deep learning model.
  • If an image is classified as an application, the script searches for a product image in the CSV file and validates it using the model.
  • The processed CSV file is updated with the classification results.

Note: Ensure that your model file, CSV file, and image links are correctly specified in the script.

Feel free to customize the script according to your requirements.

About

Load images from a link, apply it to a deep learning model to check if the image is of a product or an application. If it is not for a product search for image of a product in the csv file and validate it using the model. Then edit the csv .


Languages

Language:Jupyter Notebook 99.4%Language:Python 0.6%