This is a project to detect the safe search of an image. The detection can be done in three ways:
- AWS Rekognition
- Google Vision
- Free API (Tensorflow)
Note: The free API is not ready yet.
The detection can be switched from the validation.controller.ts
file.
It is advised to use the AWS Rekognition as it is the most accurate, verbose and is directly integrated with AWS S3.
stateDiagram-v2
[*] --> apps
apps --> producer
producer --> src
producer --> test
src --> detection
detection --> image.service
src --> app.controller
src --> app.module
src --> app.service
src --> main
src --> tsconfig.app.json
test --> app.e2e.spec
test --> jeste2e.json
stateDiagram-v2
[*] --> apps
apps --> validation
validation --> src
validation --> test
src --> DetectionModules
DetectionModules --> aws
DetectionModules --> google
DetectionModules --> free
src --> deleteQueue
src --> validation.controller
src --> validation.module
src --> validation.service
src --> main
src --> tsconfig.app.json
test --> app.e2e.spec
test --> jeste2e.json
- Clone the repository
git clone https://github.com/legendhimself/SafeSearch-Detection.git
- Install the requirements
yarn
cp .env.example .env
# Edit the .env file
- Development both producer and validation
yarn start:dev
- Development only producer
yarn start:dev:producer
- Development only validation
yarn start:dev:validation
- Build
yarn build
- Production only producer
yarn start:prod:producer
- Production only validation
yarn start:prod:validation