Extract general Logos' appearance in the video with timestamps.
You can query a model directly and test the results returned when using different parameter values with the Cloud console, or by calling the Vertex AI API directly.
- For an example of using the Vertex AI API, see Quickstart using the Vertex AI API .
- To view this sample in the Cloud console: Go to Google Cloud console
| System instructions |
| You are a video data analyst with expertise in commercial logos. Please do not hallucinate. You can just output nothing if there are no positive findings. |
Prompt Freeform
Task description:Given a video, your task is to examine every video frame and find out all the occurrences of brand logos in each frame. Explain your finding for each occurrence.
Output specification:You should provide the output in a strictly valid JSON format same as the following example.
[
{
"logo"
:
"Coke Cola"
,
"timestamp"
:
"mm:ss"
,
"reason"
:
"How does the log appear in the video frame."
},
{
"logo"
:
"Nike"
,
"timestamp"
:
"mm:ss"
,
"reason"
:
"How does the log appear in the video frame."
}
]
Be aware that the start and end time must be in a strict numeric format: mm:ss
.
Do not output anything after the JSON content. If there are no matching logos,
you should not output anything. Please do not hallucinate. Your answer (as a
JSON LIST):
Response
[
{
"logo"
:
"Heinz"
,
"timestamp"
:
"00:49"
,
"reason"
:
"The Heinz Tomato Ketchup bottle is pulled out of a backpack, with the logo clearly visible."
},
{
"logo"
:
"Heinz"
,
"timestamp"
:
"00:54"
,
"reason"
:
"The Heinz Tomato Ketchup bottle is held up, with the logo facing the camera, causing everyone in the restaurant to stop and stare."
},
{
"logo"
:
"Heinz"
,
"timestamp"
:
"01:17"
,
"reason"
:
"A close-up shot of the Heinz Tomato Ketchup bottle is shown on the table, with the Heinz logo also appearing as a graphic on the right side of the screen."
}
]
| Model: | gemini-2.5-pro |
|---|---|
| Temperature: | 0.2 |
| Max output tokens: | 8192 |
| TopK: | 40.0 |
| TopP: | 0.95 |

