# Traffic Sign Detection question

**URL:** <https://forum.sunfounder.com/t/traffic-sign-detection-question/487>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [August 24, 2023, 7:20pm UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487 "2023-08-24T19:20:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry452](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/larry452/32/281_2.png) [@Larry452](https://forum.sunfounder.com/u/Larry452)\
**Post date:** [August 24, 2023, 7:20pm UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487/1 "2023-08-24T19:20:09Z")

</div>

I was studying your traffic detection app on the Ezblock for Pi-Car X and wondered how it works. I looked on the OS and found no image files it could match too. So how does it work? Larry

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [August 25, 2023, 7:52am UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487/2 "2023-08-25T07:52:33Z")

</div>

Combine traffic sign detection with line patrol functionality. Let PiCar-X track this straight line and when you place a stop sign in front of it, it stops. When you place a forward sign in front of it, it will continue to move forward.

---

<div class="post-metadata">

**Author:** ![Larry452](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/larry452/32/281_2.png) [@Larry452](https://forum.sunfounder.com/u/Larry452)\
**Post date:** [August 25, 2023, 1:30pm UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487/3 "2023-08-25T13:30:00Z")

</div>

How do I add different types of signs? How can a new variable know what the image looks like?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [August 28, 2023, 10:18am UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487/4 "2023-08-28T10:18:31Z")

</div>

The traffic standard model is a tensorflow modality trained by image classification, the ezblcok program references the model here: [https://github.com/ezblockcode/ezb-pi/blob/EzBlock3.1/workspace/vilib.py#L71](https://github.com/ezblockcode/ezb-pi/blob/EzBlock3.1/workspace/vilib.py#L71), and for the lexicon [https://github.com/ezblockcode/ezb-pi/blob/EzBlock3.1/workspace/vilib.py#L64C49-L64C49](https://github.com/ezblockcode/ezb-pi/blob/EzBlock3.1/workspace/vilib.py#L64C49-L64C49)

If you want to train your own model, you can refer to the following tutorial on image categorization: [Image Classification — SunFounder Pan-tilt HAT Kit documentation](https://docs.sunfounder.com/projects/pantilt-v3/en/latest/python/python_image_classification.html) via Google’s Teachable Machine to train tf models online

In the meantime you can refer to the vilib library for image classification and traffic sign recognition programs: [https://github.com/sunfounder/vilib/blob/dev/vilib/image\_classification.py](https://github.com/sunfounder/vilib/blob/dev/vilib/image_classification.py), the  
[https://github.com/sunfounder/vilib/blob/dev/vilib/traffic\_sign\_detection.py](https://github.com/sunfounder/vilib/blob/dev/vilib/traffic_sign_detection.py)

---

<div class="post-metadata">

**Author:** ![Larry452](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/larry452/32/281_2.png) [@Larry452](https://forum.sunfounder.com/u/Larry452)\
**Post date:** [September 5, 2023, 8:59pm UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487/5 "2023-09-05T20:59:42Z")

</div>

I followed train your own model, you can refer to the following tutorial on image categorization: [Image Classification — SunFounder Pan-tilt HAT Kit documentation](https://docs.sunfounder.com/projects/pantilt-v3/en/latest/python/python_image_classification.html) via Google’s Teachable Machine to train tf models online.  
It took the photo. I then created the I **Install Samba** and set the smbpasswd -a pi  
I could not map the network drive. Please advise. Larry

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [September 6, 2023, 3:48am UTC](https://forum.sunfounder.com/t/traffic-sign-detection-question/487/6 "2023-09-06T03:48:15Z")

</div>

Not quite sure what you mean, is it a case of not being able to log in to your Raspberry Pi, if it’s a remote login, make sure the Raspberry Pi is powered on and on the same LAN as your operating device.
