airalab / robot_painter

KUKA KR6 R900 painter ROS package stack
Apache License 2.0
12 stars 2 forks source link

TextConverter fails after draving 3 strange lines #5

Open PaTara43 opened 3 years ago

PaTara43 commented 3 years ago

After running

rosrun picture_preprocessing TextConverter.py
rosrun local_task_planner trajectory_drawing
rostopic pub /run std_msgs/ String "data: ''"

TextConverter.py outputs Start image preprocessor! Kuka draws 3 strange lines and then TextConverter.py fails with Error processing request, need more than 2 values to unpack

Solution:

change line 111 of TextConverter.py to contours, hierarchy = cv2.findContours(bw2, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

It still draws 3 strange lines in the beginning though

PaTara43 commented 3 years ago

UPD: lines are no more drawn https://github.com/airalab/robot_painter/issues/6