Skip to content

code-with-rashid/image-processing

Repository files navigation

Image Processing

Getting Started

Clone the Repository

$ git clone https://github.com/code-with-rashid/image-processing.git

Docker setup

Make sure Docker and Docker Compose are installed on your system. Navigate to the project directory and run the following commands:

$ make redo-db

Access the APIs at:
http://127.0.0.1:8000/api/schema/swagger/

Development Steps

Clone the Project:

$ git clone https://github.com/code-with-rashid/image-processing.git

Install Dependencies:

Ensure that python3 and pip3 are installed on your system. Inside the project's root directory, install requirements (consider using a virtual environment):

$ pip install -r ./requirements/local.txt

Apply Database Migrations:

Run the following command to apply migrations into the database:

$ python manage.py migrate

Process Excel File:

Run the following management command to process the Excel file and save resized images into the database:

$ python manage.py process_excel_images data/img.csv

Start the Server:

Run the following command inside the project directory to start the server:

$ python3 manage.py runserver 8000

Swagger UI:

Open Swagger UI to access all project APIs:
http://127.0.0.1:8000/api/schema/swagger/

Public API - Images List:

Access the public Images List API to list and filter images stored in the database without authentication.

Upload Excel Option:

Users can upload an Excel file at the following URL, where the code will be applied, and the images will be saved in the database:
http://127.0.0.1:8000/images/process-csv/

Tests

Run the following command to execute test cases:

$ make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published