This project is designed to use the image analysis API from providers such as Google (Vision), Amazon (Rekognition) or Azure (AI Vision).
The user will be able to customize the output by passing an image, the maximum number of results and the minimum level of confidence.
This project also introduces the concept of BI (Business Intelligence) by converting image analysis data into a SQL file that will be stocked on the provider's cloud storage.
Tools with versions that were used to realize this project. Versions may be subject to change as the project was realized exclusively on MacOS system.
Some data must remain private such as the API crendentials JSON file or bucket URI.
In order to do so, copy and rename the .env.example
file.
cp .env.example .env
In order to verify/test the conversion of the analyzed data to a SQL script :
create_model.sql
in your prefered SQL client to create the Databasephp index.php
to analyze and generateComposer dependencies used to realize and test the project.
git clone https://github.com/ThomasGrossmann/BI1/
cd BI1
composer install
./vendor/bin/phpunit tests/DataObjectTests.php
./vendor/bin/phpunit tests/LabelDetectorTests.php
├── LICENSE
├── README.md
├── composer.json
├── composer.lock
├── create_model.sql
├── docs
│ ├── RIA2.drawio
│ └── RIA2.png
├── images
│ ├── objectToRemove.jpeg
│ └── sample.jpeg
├── index.php
├── src
│ ├── GoogleDataObjectImpl.php
│ ├── IDataObject.php
│ ├── ILabelDetector.php
│ ├── LabelDetectorImpl.php
│ └── exceptions
│ ├── ObjectAlreadyExistsException.php
│ └── ObjectNotFoundException.php
└── tests
├── DataObjectTest.php
└── LabelDetectorTest.php