Open
Description
rf = roboflow.Roboflow(api_key=API_KEY)
workspace = rf.workspace(WORKSPACE)
project = workspace.project(PROJECT_ID)
filename = "vlcsnap-2024-08-28-19h46m52s829.png"
results = []
for result in project.search_all(prompt=f'filename:"{filename}"'):
results.extend(result)
print(len(results))
Running the code above returns every single image in the dataset, instead of just the one with the specific filename. Using the same query in the web UI returns the correct image:
loading Roboflow workspace...
loading Roboflow project...
5887
Metadata
Metadata
Assignees
Labels
No labels