- Use
anaconda
to manage the package, you can usebase
to run script or create a new environment. - Install the follow package (Hint: Use tsinghua mirror).
conda install opencv-python pyserial
- Edit the serial port name and band rate, such as using
COM3
on Windows or/dev/tty*
on Linux. - Edit the camera number at line 9, such as 1 or 0.
- Edit serial port to '''/dev/ttyUSB0'''
- '''python3 xxx.py'''
- Open file in Code for car
- Simple version is maintaining, old version is deprecated.
- BURN IT.