Skip to main content

Case 01 AI Road Signs Recognition Cart

Purpose

Build a Cutebot PRO cart that uses an AI Lens to recognise road signs.

Materials Requested

Cutebot Pro

AI Lens

Science and Technology Pack

Assembly Steps

Hardware Connections

Connect the AI Lens to the IIC port on Cutebot Pro.

Software

Microsoft makecode

Code

Click "Extensions" in the makecode drawer to see more choices.

In order to programme the Cutebot Pro, we need to add an extension library. Find Extensions at the bottom of the code drawer and click on it. This will bring up a dialogue box to search for CutebotPro and click to download it.

For programming the AI Lens, we need to add the extension. Click Extensions at the bottom of the drawer and search with PlanetX-AI to download it.

Code Example

While on start , initialise the AI lens and set it to card recognition mode;

When button A is pressed, set the cart to move forward at the speed of 30%;

In forever block, set to get one image, set the cart to turn 90° to the right when the AI Lens recognises the image as turning to the right and the image size is over 100.

Program

Link: https://makecode.microbit.org/_aRxCqsMuY8iq

You may download it directly below:

Conclusion

When button A is pressed, the cart moves forward and when it meets a road sign turning right, it automatically turns right by 90° and stops moving.

Expanded Knowledge

Application and Development of AI Road Sign Recognition

AI Road Sign Recognition is an image recognition application based on Artificial Intelligence technology for detecting, recognising and understanding traffic road signs on roads. Here are some of the key points in terms of application and development of AI Road Sign Recognition:

Traffic Management : AI Road Sign Recognition helps traffic management to monitor the condition of traffic signs and road signs on roads. It can automatically detect and recognise traffic signs, provide real-time traffic information and directions, and help drivers and pedestrians follow traffic rules and navigation.

AUTOMATIC DRIVING: AI road sign recognition is one of the key technologies in the development of autonomous driving vehicles. It helps self-driving vehicles recognise and understand traffic signs and instructions on the road in order to make decisions and travel plans accordingly.

NAVIGATION AND PATH PLANNING: AI road sign recognition can be used in real-time navigation systems to help drivers and pedestrians determine the correct direction of travel and path planning. It recognises road names, intersection instructions and speed limit information on road signs to provide users with accurate navigation guidance.

Urban planning and traffic optimisation: AI road sign recognition can provide valuable data for urban planning and traffic optimisation. By analysing and recognising road sign information, the structure of the road network, traffic flow and traffic conditions can be understood to optimise traffic planning, improve road facilities and enhance urban traffic efficiency.

Safety monitoring: AI road sign recognition can be used for traffic safety monitoring system. It can monitor traffic signs and road signs on roads in real time and detect abnormalities, such as damaged road signs or missing signs. This helps to repair and maintain traffic facilities in time to ensure the safety and reliability of roads.

Significant progress has been made in the development of AI road sign recognition, mainly due to the continuous development of deep learning and computer vision technologies. With the continuous optimisation of algorithms and the enhancement of hardware, the accuracy and real-time performance of AI road sign recognition have been significantly improved. In the future, it is expected that AI road sign recognition will further develop to become more intelligent and comprehensive, bringing more convenience and benefits to fields such as traffic management, autonomous driving and urban planning.