๐์ธ์ฒด ๊ฒ์ถ

1. ์ฝ๋ ์์ฑ
from helloai import *
wnd = Window('wnd')
camera = Camera()
detector = PoseDetector()
def loop():
img = camera.read()
# ์ธ์ฒด ๊ฐ์ง ์ฒ๋ฆฌ
# ๋๋๋งํธ๊ฐ ๊ทธ๋ ค์ง ์ด๋ฏธ์ง, 33๊ฐ์ ๋๋๋งํฌ ์ ๋ณด๊ฐ ๋ฆฌํด๋๋ค.
img, landmarks = detector.process(img, draw=True)
# ์ด๋ฏธ์ง ์๋์ฐ์ ํ์
wnd.show(img)
# ---------------------------------------
# for HelloAI
# ---------------------------------------
if __name__ == '__main__':
run()
2. ๋๋๋งํฌ
HelloAI๋ ๊ฑฐ์ธ์ ๋น์ถฐ์ง ํํ๋ผ๊ณ ์๊ฐํ๋ฉด ์ดํดํ๊ธฐ ์ฝ๋ค. ์ค์ ์ ๋๋๋งํฌ ์ขํ๊ฐ๊ณผ ๋ฒํธ๋ฅผ ๋ง์ถฐ๋ณด๋ ๊ฒ์ด ์ค์ํ๋ค.

Last updated