You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class_names = [c.strip() for c in open("models/classes.TXT").readlines()]
boxes, scores, classes, nums = yolo(img)
count=0 for i in range(nums[0]): >>>>>>>> ERROR LINE
if int(classes[0][i] == 0):
count +=1
if int(classes[0][i] == 67):
print('Mobile Phone detected')
if count == 0:
print('No person detected')
elif count > 1:
print('More than one person detected')
The text was updated successfully, but these errors were encountered:
class_names = [c.strip() for c in open("models/classes.TXT").readlines()]
boxes, scores, classes, nums = yolo(img)
count=0
for i in range(nums[0]): >>>>>>>> ERROR LINE
if int(classes[0][i] == 0):
count +=1
if int(classes[0][i] == 67):
print('Mobile Phone detected')
if count == 0:
print('No person detected')
elif count > 1:
print('More than one person detected')
The text was updated successfully, but these errors were encountered: