fix(maixcam): add metadata for person detection handling
This commit is contained in:
parent
d92c8d2670
commit
00bb72e3d6
1 changed files with 2 additions and 0 deletions
|
|
@ -170,6 +170,8 @@ func (c *MaixCamChannel) handlePersonDetection(msg MaixCamMessage) {
|
||||||
"y": fmt.Sprintf("%.0f", y),
|
"y": fmt.Sprintf("%.0f", y),
|
||||||
"w": fmt.Sprintf("%.0f", w),
|
"w": fmt.Sprintf("%.0f", w),
|
||||||
"h": fmt.Sprintf("%.0f", h),
|
"h": fmt.Sprintf("%.0f", h),
|
||||||
|
"peer_kind": "channel",
|
||||||
|
"peer_id": "default",
|
||||||
}
|
}
|
||||||
|
|
||||||
c.HandleMessage(senderID, chatID, content, []string{}, metadata)
|
c.HandleMessage(senderID, chatID, content, []string{}, metadata)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue