- Software
- JSON parser from: https://github.com/udp/json-parser.
- Openpose from: https://github.com/CMU-Perceptual-Computing-Lab/openpose.
- TCP/IP Socket: https://github.com/Yucheng0208/TCP_Socket.
- Ubuntu 18.04 LTS: https://ftp.ubuntu-tw.org/ubuntu-releases/18.04.6/ubuntu-18.04.6-desktop-amd64.iso.
- JSON parser from: https://github.com/udp/json-parser.
- Hardware
- Raspberry Pi: 3B+ 4GB.
- Desktop: CPU i9-9900KF, GPU RTX-2060(2 sets), RAM DDR4-3200 32GB(2 sets), SSD 1TB,and HDD 2TB.
- This desktop has a dual system.
- This desktop has a dual system.
- Raspberry Pi: 3B+ 4GB.
- Search Raspberry Pi's HOST/IP (Touch on Wi-Fi Icon, or Raspberry Pi's Terminal is key-in
ip a
). - Open Raspberry Pi's Terminal.
- Raspberry Pi's Terminal key-in
cd Desktop
, goto Desktop. - Raspberry Pi's Terminal key-in
python3 raspberry_pi_control.py
, running program(raspberry_pi_control.py
).
- Python version is very important, key-in
python3 -v
orpython -v
to check your Python version default set.
- Python version is very important, key-in
- Open PC's Terminator or Terminal.
- PC's Terminator key in
cd openpose_combined
, goto openpose_combined directory. - Open "main.c", and write HOST/IP (Raspberry Pi HOST/IP).
- PC's Terminator key-in
gcc main.c json.c -lm
, will be building programmain.c
. - PC's Terminator key-in
cd ..
,it back to upper layer directory, until key-inll
can look for openpose directory. - PC's Terminator key-in
cd openpose
, goto openpose directory. - PC's Terminator key-in
./test "./build/examples/openpose/openpose.bin --write_json /home/Yu.Cheng/openpose_combined/json >/dev/null 2>/dev/null" "/home/Yu.Cheng/openpose_combined/a.out" 2>/dev/null
, running system all (openpose
andopenpose_combined
).
- Notice: The paths and instructions in the program need to be changed according to the computer environment.
- Notice: The paths and instructions in the program need to be changed according to the computer environment.
- Ubuntu PC's Camera form click
esc
, will be stop program openpose Camera-Frame. - Ubuntu PC's Terminator click
Ctrl+c
, will be close program openpose andopenpose_combined
. - Raspberry Pi's Terminal click
Ctrl+c
will be break Tcp/IP and close programraspberry_pi_control.py
.