This repository contains a Flask application that handles video uploads and verifies the integrity of the videos. The app uses Blueprints for modular organization and provides endpoints to upload and check videos.
- Record Video: Upload a video with an associated Android tag.
- Verify Video: Verify the integrity of an uploaded video using a unique video identifier.
- Python 3.6+
- Flask
- SQLAlchemy
- GoogleAuth
- Anglular
- MySQL
- Android 24
-
Run the Flask application:
python app.py
-
Run the app on your Anroid Phone:
- Record a video and save it to the Flask Database
-
Run the Angular web page:
- Upload a video with a video Id and check if the video is valid
Returns a simple message to confirm the service is running.
Request:
curl -X GET http://127.0.0.1:5000/proof/
**Response**:
```plaintext
Proof!Uploads a video and returns a unique video identifier.
Request:
curl -X POST http://127.0.0.1:5000/record -F "android_tag=test_tag" -F "video=@your_video"Response:
{
"video_id": "unique_video_identifier"
}Verifies the integrity of an uploaded video using the video identifier.
Request:
curl -X POST http://127.0.0.1:5000/checkRecord -F "video_id=your_video_id" -F "video=@path_to_your_video_file"Response (match):
{
"match": true
}Response (no match):
{
"match": false
}
│
├── back # Flask Backend application
├── android # Android Project
├── angular # Angular Project for Judges to verify the video
└── README.md