使用Python+OpenCV+ROS实现图像风格迁移,虽然是4年前的项目,结合这个项目打通从基于深度网络的算法移植到嵌入式平台这条路。
python2.7;opencv==4.1.0;ros-melodic;
# download source code
git clone https://github.com/ZZXin/StyleTransfer
# create workspace
mkdir -p catkin_ws1/src
# move source code to /src
mv ../StyleTransfer/style ./catkin_ws1/src/
# compile
cd catkin_ws1
catkin_make
# source
source devel/setup.bash
# run
rosrun style style.py
# or
rosrun style style_camera.py
Email: [email protected]