|
@@ -66,11 +66,11 @@ class Table:
|
|
|
mask_green = cv2.inRange(hsv, lower_green, upper_green)
|
|
|
color = [248, 248, 255]
|
|
|
self.img[mask_green != 0] = color
|
|
|
- # cv2.imwrite('table.jpg', self.img)
|
|
|
+ cv2.imwrite('table.jpg', self.img)
|
|
|
|
|
|
def check_html(self):
|
|
|
self.get_empty()
|
|
|
if self.empty > 4 and self.empty > self.total // 4:
|
|
|
self.change_green2white()
|
|
|
- return 1
|
|
|
+ return 1
|
|
|
return 0
|