hamuchiwa / AutoRCCar

OpenCV Python Neural Network Autonomous RC Car
BSD 2-Clause "Simplified" License
3.32k stars 1.48k forks source link

Stop sign detection #245

Closed 9salman7 closed 3 years ago

9salman7 commented 4 years ago

Hi @hamuchiwa , can you please explain why you have used the following logic for detecting the stop signs?

# stop sign if width / height == 1: cv2.putText(image, 'STOP', (x_pos, y_pos - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)

why does width/height == 1 mean that the object is a stop sign? For reference, those two variables are returned from the detectMultiScale function from OpenCV

maazmmd commented 4 years ago

Am also stuck here, How to stop the car using a stop sign

hamuchiwa commented 4 years ago

@9salman7 The bounding box of stop sign in this project is a square, so if width == height, it's a stop sign.

9salman7 commented 4 years ago

@9salman7 The bounding box of stop sign in this project is a square, so if width == height, it's a stop sign.

Thank you for the reply! I appreciate it

We have completed everything apart from the traffic signal detection (will finish that soon) thanks to your wonderful repository. Thank you so much, @hamuchiwa !

Have a look - https://drive.google.com/open?id=10Z7oCw4XpBe3b9kgd6YishomECpyB6iY

Yoganandhan01 commented 4 years ago

Hi Salman. I have also followed those steps but my car only goes on the straight that does not follow the lane. How can i solve the problem..?

Yoganandhan01 commented 4 years ago

@9salman7 can you help me.?

9salman7 commented 4 years ago

Hi Salman. I have also followed those steps but my car only goes on the straight that does not follow the lane. How can i solve the problem..?

Hello @Yoganandhan01. Are you following the OpenCV neural network model? I did that too and my car was also moving along just one direction. I'd suggest you to use a Keras neural network model. It works perfectly for me.

Yoganandhan01 commented 4 years ago

How can I implement Keras neural network into it.? Can you tell me some examples.? Yoganandhan A

On Sat, Mar 21, 2020 at 1:27 PM Salman notifications@github.com wrote:

Hi Salman. I have also followed those steps but my car only goes on the straight that does not follow the lane. How can i solve the problem..?

Hello. Are you following the OpenCV neural network model? I did that too and my car was also moving along just one direction. I'd suggest you to use a Keras neural network model. It works perfectly for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hamuchiwa/AutoRCCar/issues/245#issuecomment-602010920, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5TEUELUCZC3LNVLNVKR2DRIRXOLANCNFSM4LE5VVKQ .

9salman7 commented 4 years ago

You can refer to this Jupyter notebook: https://github.com/9salman7/self-driving-car2/blob/master/kerasInfernus.ipynb

After training, you can load the model into your program to predict the directions

Yoganandhan01 commented 4 years ago

Thanks Salman..

Yoganandhan A

On Sun, Mar 22, 2020 at 1:09 PM Salman notifications@github.com wrote:

You can refer to this Jupyter notebook:

https://github.com/9salman7/self-driving-car2/blob/master/kerasInfernus.ipynb

After training, you can load the model into your program to predict the directions

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hamuchiwa/AutoRCCar/issues/245#issuecomment-602160624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5TEUAZNMHPLDFUOUQMXYTRIW6E5ANCNFSM4LE5VVKQ .

denisrexhepi commented 4 years ago

Did the Keras model work?

Chinmay922 commented 4 years ago

I want to work on the same model but on MATLAB is it possible?