Bug fixes
This commit is contained in:
Binary file not shown.
@@ -31,8 +31,8 @@ def cars(photo_name):
|
||||
instances = []
|
||||
|
||||
for label in response['Labels']:
|
||||
if label['Name'] != 'Car':
|
||||
continue
|
||||
instances.append(label['Instances'])
|
||||
if label['Name'] == 'Car':
|
||||
for instance in label['Instances']:
|
||||
instances.append(instance)
|
||||
|
||||
return (number_of_cars, instances)
|
||||
|
||||
Reference in New Issue
Block a user