Skip to content

Instantly share code, notes, and snippets.

Last active August 9, 2023 06:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
import board
import time
import neopixel
from circuitPyHuskyLib import HuskyLensLibrary
hl = HuskyLensLibrary('UART', TX=board.GP8, RX=board.GP9)
hl.algorithm("ALGORITHM_FACE_RECOGNITION") # Redirect to Face Recognition Function
pixel = neopixel.NeoPixel(board.GP28, 1)
# Colors (r,g,b)
OFF = (0,0,0)
ON = (30,30,30)
while True:
results = hl.blocks() # Get All type=BLOCK result
if results: # if result not empty
print(f"Detected face count: {len(results)}")
Copy link

hktan125 commented Aug 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment