From 5634554e801bd093985cb5d2493125f5a9b01742 Mon Sep 17 00:00:00 2001 From: JingLin0 Date: Sat, 11 Oct 2025 20:11:51 +0200 Subject: [PATCH 1/2] add cors origin for production app --- api/main.py | 1 + 1 file changed, 1 insertion(+) 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=["*"], From 85f917d4808fc2bf68f568c2dd88c31d44018737 Mon Sep 17 00:00:00 2001 From: JingLin0 Date: Sat, 11 Oct 2025 20:11:57 +0200 Subject: [PATCH 2/2] update readme --- README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) 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/