Skip to content

Instantly share code, notes, and snippets.

@Euler29
Created June 10, 2018 15:24
Show Gist options
  • Save Euler29/ae78fd0b9c862cb4da7a54fde2bd4d4e to your computer and use it in GitHub Desktop.
Save Euler29/ae78fd0b9c862cb4da7a54fde2bd4d4e to your computer and use it in GitHub Desktop.
otonom_araba_kod_5
def stop_sign_detect(gray):
gray=gray
stop=cascade_class.detectMultiScale(gray,1.1,5)
for (x,y,w,h) in stop:
cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
if len(stop)!=0:
return True
if len(stop)==0:
return False
cascade_class=cv2.CascadeClassifier('stop_sign.xml')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment