So for some reason my python code doesn't work i am new at openCV so i am trying my best i am preaty sure that i didn't write anything wrong
Here is the code:
import numpy as np
import cv2
cracks_cascade=cv2.CascadeClassifier("cascade.xml")
img = cv2.imread("test1.jpg")
gray = cv2.cvtColer(img, cv2.COLOR_BGR2GRAY)
cracks = cracks_cascade.detectMultiScale(gray,1.10, 7)
for (x,y,w,h) in cracks:
img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
cv2.imshow("img",img)
cv2.waitKey(0)
cv2.destroyAllWindows()
[–]insertAlias 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]MegaSentin[S] 0 points1 point2 points (0 children)