Face Detection
Import KOI 2 Library
from future import *
from koi2 import KOI2Serial Initialization
koi = KOI2(tx, rx)Select Face Mask Mode
koi.setModel(7)Get Face Data
koi.xywh[0]data
Meaning
Get Mask Value
Sample Code: Mask Detection
Select Face Attribute Mode
Get Face Data
data
Meaning
Get Number of Faces
attr(decimal)
meaning
Get Attribute of Main Character
attr(decimal)
meaning
Sample Code: Face Attribute
Last updated