Requirements:
- Python <= 3.10.9
Steps to config:
- Install dependencies:
pip install -r requirements.txt
- Authenticate with your Google Cloud Developer Account to send video files to Google Drive:
python drive.py
- Remember you need a App Password in your Google Account to send report e-mails with Python:
# Create a file called .env and add a variable called EMAIL_PASSWORD
EMAIL_PASSWORD={your_google_app_password}
- Then run web server:
python index.py
Great! Now your environment is ready and you can send request to your server.
Routes avaliable:
- User register:
http://127.0.0.1:5000/user/register
- Send Video to analyse:
http://127.0.0.1:5000/send/video
Data structure:
- User register
{
"user_data": {
"username": "Your username",
"useremail": "Your user e-mail"
}
}
- Send video:
{
"filename": "Filename of file sent to API",
"user_id": "Your user id in database (Int) ",
"age_group": "Your public age in the video",
"audiovisual_production": "Your Audiovisual Production name"
}
Obs: This route need a zip file containing video to be analysed by AI in API with multipart/form-data format.
Obs: This reports was sent to user e-mail like result of AI analyze.