- Edge computing solution: Intel NUC or Nvidia Jetson Xavier NX if using deep learning
- Ubuntu 18.04
- Opencv installation
sudo apt-get install python3-pip
pip3 install scikit-build -i https://mirrors.aliyun.com/pypi/simple
pip3 install pip -U
pip3 install cmake -i https://mirrors.aliyun.com/pypi/simple
pip3 install opencv-python -i https://mirrors.aliyun.com/pypi/simple
- Other dependencies
pipreqs ./ --encoding=utf8 --force
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
- List system port:
dmesg | grep ttyS*
- Modify port authentication:
sudo usermod -aG dialout username
- modbus_tk for PLC and PC communication
- Check sleep status:
systemctl status sleep.target
- Mask sleep status:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
- Install
sudo apt-get install gnome-tweak-tool
Run:gnome-tweaks
and turn OFF "Suspend when laptop lid is closed"
- Run:
gnome-session-properties
- Add Command:
gnome-terminal -x python3 xxx.py