Skip to content

Commit

Permalink
Feat: Ring Power Add
Browse files Browse the repository at this point in the history
  • Loading branch information
suk-6 committed Sep 21, 2023
1 parent dd00aad commit 6afde69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async def serverHandler(websocket, path):
bboxRatio = (bboxArea / imageArea) * 100 # 퍼센트로 표현

bboxCoords['ratio'] = bboxRatio
bboxCoords['power'] = 1 + (bboxRatio / 100) * (255 - 1) # 진동 세기

annos.append(bboxCoords)

Expand Down

0 comments on commit 6afde69

Please sign in to comment.