利用大师兄人工智能板的图像识别扩展功能,可以识别各种交通标志卡片,比如:**红灯、绿灯、停车、掉头、停止、左转、右转**。<br />![8 正.jpg](https://cdn.nlark.com/yuque/0/2022/jpeg/22145445/1650422780700-8ea1ecae-dd33-4a83-b1ff-18315150c245.jpeg#clientId=u4826aae0-38c8-4&crop=0&crop=0&crop=1&crop=1&from=ui&height=300&id=u8f9c272c&margin=%5Bobject%20Object%5D&name=8%20%E6%AD%A3.jpg&originHeight=1614&originWidth=1615&originalType=binary&ratio=1&rotation=0&showTitle=false&size=756489&status=done&style=none&taskId=u1f983dc3-ff6e-4c4b-b888-419d9e34ab5&title=&width=300)![7 正.jpg](https://cdn.nlark.com/yuque/0/2022/jpeg/22145445/1650422793320-d17608b5-1aed-4559-b5d6-2e030b276c35.jpeg#clientId=u4826aae0-38c8-4&crop=0&crop=0&crop=1&crop=1&from=ui&height=300&id=ub605ddf1&margin=%5Bobject%20Object%5D&name=7%20%E6%AD%A3.jpg&originHeight=1614&originWidth=1615&originalType=binary&ratio=1&rotation=0&showTitle=false&size=757485&status=done&style=none&taskId=u742d85e2-77c5-425e-8dce-d0644adc065&title=&width=300)<br />如下程序展示了如何实现识别左右转向交通标志,以及如何将识别结果实时显示在屏幕上。<br />程序如下:<br />![screenshot-20220420-111247.png](https://cdn.nlark.com/yuque/0/2022/png/22145445/1650424390213-575c38ed-6fcd-40f5-b2d9-d0c8a9a4357a.png#clientId=u4826aae0-38c8-4&crop=0&crop=0&crop=1&crop=1&from=ui&id=ub02adc88&margin=%5Bobject%20Object%5D&name=screenshot-20220420-111247.png&originHeight=549&originWidth=608&originalType=binary&ratio=1&rotation=0&showTitle=false&size=71003&status=done&style=none&taskId=u57780a56-070a-4bad-9df0-1ce582d6c16&title=)<br />运行程序,拿出配套的红绿灯卡片,将卡片图案一侧对准摄像头,屏幕会显示识别到的内容。