mertbozkurt commited on
Commit
9e8d168
1 Parent(s): 2524ad3

Update reader.py

Browse files
Files changed (1) hide show
  1. reader.py +2 -2
reader.py CHANGED
@@ -42,7 +42,7 @@ def reader(pathImage, save_images= True):
42
  biggestContour = functions.getCornerPoints(rectCon[0])
43
  secondContour = functions.getCornerPoints(rectCon[1])
44
  thirdContour = functions.getCornerPoints(rectCon[2])
45
- fourthContour = functions.getCornerPoints(rectCon[3])
46
 
47
  #main
48
  if biggestContour.size != 0 and secondContour.size != 0:
@@ -50,7 +50,7 @@ def reader(pathImage, save_images= True):
50
  cv2.drawContours(imgBiggestContour, biggestContour,-1,(0,255,0),20)
51
  cv2.drawContours(imgBiggestContour, secondContour,-1,(255,0,0),20) #sondk' kalinlik ortada renk
52
  cv2.drawContours(imgBiggestContour, thirdContour,-1,(0,0,255),20) #sondk' kalinlik ortada renk
53
- cv2.drawContours(imgBiggestContour, fourthContour,-1,(0,0,20),20) #sondk' kalinlik ortada renk
54
 
55
  biggestContour=functions.reorder(biggestContour)
56
  #cevap siklari icin -************************************************************
 
42
  biggestContour = functions.getCornerPoints(rectCon[0])
43
  secondContour = functions.getCornerPoints(rectCon[1])
44
  thirdContour = functions.getCornerPoints(rectCon[2])
45
+ #fourthContour = functions.getCornerPoints(rectCon[3])
46
 
47
  #main
48
  if biggestContour.size != 0 and secondContour.size != 0:
 
50
  cv2.drawContours(imgBiggestContour, biggestContour,-1,(0,255,0),20)
51
  cv2.drawContours(imgBiggestContour, secondContour,-1,(255,0,0),20) #sondk' kalinlik ortada renk
52
  cv2.drawContours(imgBiggestContour, thirdContour,-1,(0,0,255),20) #sondk' kalinlik ortada renk
53
+ #cv2.drawContours(imgBiggestContour, fourthContour,-1,(0,0,20),20) #sondk' kalinlik ortada renk
54
 
55
  biggestContour=functions.reorder(biggestContour)
56
  #cevap siklari icin -************************************************************