|
@@ -167,7 +167,6 @@ def findface(image):
|
|
|
return faces
|
|
|
return ()
|
|
|
|
|
|
-
|
|
|
def circlefaces(image, faces):
|
|
|
global lastface
|
|
|
for (x, y, w, h) in faces:
|
|
@@ -175,7 +174,6 @@ def circlefaces(image, faces):
|
|
|
# Temporary, save the image
|
|
|
cv2.imwrite("tmp/img.{}.facetype{}.png".format(datetime.now().strftime("%Y%m%d.%H%M%S.%f"), lastface), image)
|
|
|
|
|
|
-
|
|
|
def distance_to_closest(faces):
|
|
|
# Negative values will be left
|
|
|
closestdistance = None
|
|
@@ -233,7 +231,6 @@ def fire():
|
|
|
send_char('F')
|
|
|
return
|
|
|
|
|
|
-
|
|
|
if __name__ == "__main__":
|
|
|
# allow the camera to warmup
|
|
|
time.sleep(0.1)
|