-
-
Save Euler29/ae78fd0b9c862cb4da7a54fde2bd4d4e to your computer and use it in GitHub Desktop.
otonom_araba_kod_5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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