Pose Estimation Model: https://google.github.io/mediapipe/solutions/pose.html
autoencoder-decoder to do binary classification for stable and non-stable event.
segment-anything
- GUI
- Add menu helper
- Add current label indicator
- Add Auto-Refresh
- Add playback speed controls
-
make testto test different configurations specify insrc/test.py -
make recordto record video tovideo/folder- change MAX_TIME, FPS for record time or frame per second in
src/convert.py
- change MAX_TIME, FPS for record time or frame per second in
-
make labelto show all videos invideo/folder (max=10) with GUI, click 'label' then 'convert' to label each video. -
make model <file_name_in_nn_folder>make model LSTMto runLSTM.pyand save model tomodel/- specify
<name>.mp4.csvfiles inLSTM.pyto train
-
make predictto test model- specify MODEL_NAME to load in
src/predict.py - might need to retrain model on different machine to get the working
keras_metadata.pbfile
- specify MODEL_NAME to load in
-
Windows (recommended)
- use
pip install- libraries:
- opencv-python
- mediapipe
- pandas
- pygame
- and other modules defined in pyproject.toml
- libraries:
- download
makeutils - run
make setupin terminal
- use
-
MacOS (intel chip only)
- use
pip install- libraries:
- opencv-python
- mediapipe
- pandas
- pygame
- and other modules defined in pyproject.toml
- create
video/anddata/folders to store the outputs - run commands in
Makefile
- libraries:
- use
-
RaspberryPi 64bit Lite OS
- run the following commands
sudo apt install git git clone https://github.com/huangruoqi/computer_vision_learning.git cd computer_vision_learning mv Makefile4raspi Makefile make setupor install dependencies manually
sudo apt update # build dependencies sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev \ libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev \ libexpat1-dev liblzma-dev zlib1g-dev libffi-dev # Python:3.7.0 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz sudo tar zxf Python-3.7.0.tgz cd Python-3.7.0 sudo ./configure sudo make -j 4 sudo make altinstall echo "alias python='/usr/local/bin/python3.7'" >> ~/.bashrc source ~/.bashrc # pip with Python3.7 wget https://bootstrap.pypa.io/get-pip.py python get-pip.py # opencv, ffmpeg, mediapipe sudo apt install -y ffmpeg python3-opencv fswebcam wget https://files.seeedstudio.com/ml/mediapipe/mediapipe-0.8-cp37-cp37m-linux_aarch64.whl pip3.7 install mediapipe-0.8-cp37-cp37m-linux_aarch64.whl # [fix] TypeError: Descriptors cannot be created directly pip3.7 install protobuf==3.20.* # other libs pip3.7 install pandas pygameand change URL_PREFIX in
~/.local/lib/python3.7/site-packages/mediapipe/python/solutions/download_utils.pyto 'https://storage.googleapis.com/mediapipe-assets/'
