Spaces:
Runtime error
Runtime error
mertbozkurt
commited on
Commit
•
cda6f6c
1
Parent(s):
9e8d168
Update optic1.py
Browse files
optic1.py
CHANGED
@@ -45,7 +45,7 @@ def optic1(ans_txt1,ans_txt2,ans_txt3,pathImage, save_images= True):
|
|
45 |
biggestContour = functions.getCornerPoints(rectCon[0])
|
46 |
secondContour = functions.getCornerPoints(rectCon[1])
|
47 |
thirdContour = functions.getCornerPoints(rectCon[2])
|
48 |
-
fourthContour = functions.getCornerPoints(rectCon[3])
|
49 |
|
50 |
#main
|
51 |
if biggestContour.size != 0 and secondContour.size != 0:
|
@@ -53,7 +53,7 @@ def optic1(ans_txt1,ans_txt2,ans_txt3,pathImage, save_images= True):
|
|
53 |
cv2.drawContours(imgBiggestContour, biggestContour,-1,(0,255,0),20)
|
54 |
cv2.drawContours(imgBiggestContour, secondContour,-1,(255,0,0),20) #sondk' kalinlik ortada renk
|
55 |
cv2.drawContours(imgBiggestContour, thirdContour,-1,(0,0,255),20) #sondk' kalinlik ortada renk
|
56 |
-
cv2.drawContours(imgBiggestContour, fourthContour,-1,(0,0,20),20) #sondk' kalinlik ortada renk
|
57 |
|
58 |
biggestContour=functions.reorder(biggestContour)
|
59 |
#cevap siklari icin -************************************************************
|
|
|
45 |
biggestContour = functions.getCornerPoints(rectCon[0])
|
46 |
secondContour = functions.getCornerPoints(rectCon[1])
|
47 |
thirdContour = functions.getCornerPoints(rectCon[2])
|
48 |
+
#fourthContour = functions.getCornerPoints(rectCon[3])
|
49 |
|
50 |
#main
|
51 |
if biggestContour.size != 0 and secondContour.size != 0:
|
|
|
53 |
cv2.drawContours(imgBiggestContour, biggestContour,-1,(0,255,0),20)
|
54 |
cv2.drawContours(imgBiggestContour, secondContour,-1,(255,0,0),20) #sondk' kalinlik ortada renk
|
55 |
cv2.drawContours(imgBiggestContour, thirdContour,-1,(0,0,255),20) #sondk' kalinlik ortada renk
|
56 |
+
#cv2.drawContours(imgBiggestContour, fourthContour,-1,(0,0,20),20) #sondk' kalinlik ortada renk
|
57 |
|
58 |
biggestContour=functions.reorder(biggestContour)
|
59 |
#cevap siklari icin -************************************************************
|