class cat_detection – 猫脸检测

cat_detection 用于猫脸检测。

示例:

import esp_ai

c = esp_ai.cat_detection()  #构建猫脸检测对象
c.start)  #启动
c.read()  #获取检测结果

构造函数

class esp_ai.cat_detection(None)

构建猫脸检测对象,无参数。需要初始化摄像头和LCD。

使用方法

cat_detection.start()

启动AI功能。

cat_detection.read()

识别摄像头图像中的猫脸并返回数据。

结果说明:返回矩形区域数量和对应的左上角和右下角坐标(4个值)。

无检测结果返回(0)

1个结果,返回(1,A[x0],A[y0],A[x1],A[y1])

当前最大支持返回1个结果。