Added a tiny oled display

This commit is contained in:
2021-01-23 04:11:09 +03:00
parent 19a614b29b
commit 517ad11517
3 changed files with 30 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ import importlib.util
from threading import Thread
import time
from image import *
IM_WIDTH = 1280
IM_HEIGHT = 720
@@ -110,7 +112,11 @@ def pet_detector(frame, detection_time):
detection_time += 1
else:
detection_time = 0
print(detection_time)
no_cat()
print(detection_time)
if detection_time >= 2:
cat()
return frame, detection_time