-
[javascript] PoseNet - Eye tracking통계.머신러닝.딥러닝/파이썬 2020. 12. 9. 16:09반응형
I needed a code that tracks eyes.
I got it from my colleague what is called PoseNet.
Also, there were many examples and tutorials which helped me a lot.
1. API
To modify the script, you need to know which modules are included.
ml5js.org/reference/api-PoseNet/
ml5js·Friendly Machine Learning For The Web
Breonna Taylor, George Floyd, Ahmaud Arbery, Tony McDade, Regis Korchinski-Paquet, Nina Pop, Monika Diamond, Yassin Mohamed, Finan H. Berhe, Sean Reed, Steven Demarco Taylor, Sandra Bland, David McAtee, Ariane McCree, Terrance Franklin, Miles Hall, Darius
ml5js.org
In the script, ellipses are used to mask eyes, but I wanted rectangles to mask eyes.
I found code lines 'ellipse()' and changed to 'rect()' after some research.
You may find the lines below.
medium.com/@abhiramgp/control-anything-with-arduino-and-posenet-4b4dadf2237
Control anything with Arduino and Posenet
Here I will explain how to use posenet library from ml5 and use it to get human keypoints in your web-browser which is then sent to a…
medium.com
해당 자료를 보면 뭐가 엄청 많은데 원형, 선긋기, 숫자 입력 등 많은 예시가 있었다. 그 중 나의 눈에 들어온 것은 rect() 라고 써있던 딱 한 줄 이었다.
바로 입력해보니 성공..
구글링 실력이 진짜 실력이다.. (원하는 자료를 빨리 찾을 수 있어서 다행이다)
poseNet 튜토리얼: https://youtu.be/EA3-k9mnLHs
2. GitHub
아래 링크에 들어가면 poseNet 뿐만 아니라 자바스크립트로 구현된 다양한 모듈을 확인할 수 있다.
github.com/ml5js/ml5-library/tree/main/examples/p5js
ml5js/ml5-library
Friendly machine learning for the web! 🤖 . Contribute to ml5js/ml5-library development by creating an account on GitHub.
github.com
Other references
Machine learning for everyone: How to implement pose estimation in a browser using your webcam
The 20th century turned out to be an era of exponential growth in the field of machine learning. The 3000-year-old ancient game of ‘Go’ that computer scientists predicted will take another decade to crack was made possible by Google Brain teams Alp
thenextweb.com
Machine Learning for Everyone: Pose Estimation in a Browser With Your Webcam
A code-friendly guide to using ML in your browser without any installation
medium.com
github.com/tensorflow/tfjs/issues/1462
Running posenet on video input · Issue #1462 · tensorflow/tfjs
I was trying to implement 2D posenet implementation using ml5.js wrapper for machine learning. I wanted to do pose-estimation on a video stored locally on my PC . However , the output skeleton seem...
github.com
github.com/ml5js/ml5-library/tree/main/examples/javascript
ml5js/ml5-library
Friendly machine learning for the web! 🤖 . Contribute to ml5js/ml5-library development by creating an account on GitHub.
github.com
www.twilio.com/blog/pose-detection-video-tensorflow-js
Pose Detection in Twilio Video with JavaScript and TensorFlow
Detect poses in a Twilio Programmable Video app with machine learning using TensorFlow and JavaScript.
www.twilio.com
github.com/tensorflow/tfjs-models/blob/master/posenet/demos/coco.js
tensorflow/tfjs-models
Pretrained models for TensorFlow.js. Contribute to tensorflow/tfjs-models development by creating an account on GitHub.
github.com
반응형'통계.머신러닝.딥러닝 > 파이썬' 카테고리의 다른 글
Keras-NN 시험해보기 (2) 2020.12.25 [Windows 10] 아나콘다에서 Keras 설치하기 (0) 2020.12.12 파이썬으로 하는 네트워크 분석 NetworkX 사용법 기초 정리 (0) 2020.11.23 [Windows 10] Anaconda, CUDA, cuDNN, tensorflow-gpu 설치하기 (1) 2020.11.23 [Linux/Ubuntu 18.04 LTS] Git 설치하기 (0) 2020.11.17