diff --git a/README.md b/README.md index fe3f7b8..8a8c509 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,26 @@ -# video-logo-tracker (code challenge) +# video-logo-tracker -This is a code challenge for a video logo tracker. +⚙️ Overview -It consists of two parts: - -1. API -2. Worker +The system consists of two main components: ## API -The API is a FastAPI application deployed on GCP cloud run that allows you to upload a video and a logo, and then process the video to detect the logo. +A FastAPI application deployed on Google Cloud Run. +It allows users to: + +- Upload a video and a logo image. +- Trigger cloud function that processes the video to detect occurrences of the logo. ## Worker -The Worker is a Cloud Function deployed on GCP that processes the video to detect the logo using the SIFT algorithm. +A Google Cloud Function responsible for the actual video processing. +It uses the SIFT (Scale-Invariant Feature Transform) algorithm to: + +- Detect the logo in individual frames. + +- Generate an output video with detected logo regions highlighted. + +🚀 Live Demo -Visit the APP \ No newline at end of file +🔗 Visit the App: https://neurons-code-challenge.lovable.app/ diff --git a/api/main.py b/api/main.py index be865e8..3383ad6 100644 --- a/api/main.py +++ b/api/main.py @@ -42,6 +42,7 @@ async def lifespan(app: FastAPI): allow_origins=[ "https://8a33b7dc-2d6d-43a9-af02-5ff81682d7f1.lovableproject.com", "https://id-preview--8a33b7dc-2d6d-43a9-af02-5ff81682d7f1.lovable.app", + "https://neurons-code-challenge.lovable.app", ], allow_methods=["*"], allow_headers=["*"],