IXC25 Temporal Localization
Temporally segment a video given a prompt that can be either an object or a phrase. It returns a list of boolean values indicating whether the object or phrase is present in the corresponding frame.
Output
python
import requests
url = "https://api.landing.ai/v1/tools/video-temporal-localization"
files = {
"video": open("{{path_to_video}}", "rb")
}
data = {
"prompt": "{{prompt}}",
"chunk_length": {{chunk_length_in_seconds}}
}
response = requests.post(url, files=files, data=data)
print(response.json())