Recognize text

1. Function Introduction

Obtain the rgb image of the camera, and perform grayscale and binarization processing on the image. Then use the pytesseract text recognition library to recognize the English letters or numbers of the image, and post the recognition result to the detect_word_reslut topic.

2. Running function

<aside> 💡 Note: Before running the command, please make sure that the programs in other terminals have been terminated. The termination command is: Ctrl+c

</aside>

  1. Launch node management, and enter the command in the terminal:

    roscore
    
  2. Enter the command and start the text recognition.

    rosrun vision detect_node.py
    
  3. Execute rostopic echo /detect_word_reslutto view the recognized results.

    rostopic echo /detect_word_reslut
    

    https://github.com/agilexrobotics/limo_pro_doc/raw/master/LIMO_image/shibie.png

Color recognition

1. Function introduction

The idea of using OpenCV for color recognition in ROS is to use cv_bridge to convert the ROS image message into OpenCV format, and then apply color threshold filtering on the image to extract the color range of interest. Label detection results, e.g. by drawing bounding boxes, and publish the results to a new ROS topic for use by other nodes. The process includes image acquisition, color space conversion, threshold processing, and result release, allowing the robot to identify target color areas in real-time.

2. Running function

<aside> 💡 Note: Before running the command, please make sure that the programs in other terminals have been terminated. The termination command is: Ctrl+c.

</aside>

  1. Enter the command to launch the color recognition.

    rosrun limo_visions recognition
    

    https://github.com/agilexrobotics/limo_pro_doc/raw/master/LIMO_image/vision_1.png

Color following

1. Function introduction

The idea of using OpenCV for color recognition in ROS is to use cv_bridge to convert the ROS image message into OpenCV format, and then apply color threshold filtering on the image to extract the color range of interest. Mark the detection results, and then determine whether it is necessary to publish data to the /cmd_vel topic based on the detection results.

2. Running Function

<aside> 💡 Note: Before running the command, please make sure that the programs in other terminals have been terminated. The termination command is: Ctrl+c.

</aside>

  1. Enter the following command to launch the color following.

    roslaunch limo_visions follow.launch
    

    https://github.com/agilexrobotics/limo_pro_doc/raw/master/LIMO_image/vision_2.png