Ask Your Question

How to prevent my program from stopping?

asked 2013-05-17 10:53:16 -0500

RDub gravatar image

My program tracks an orange traffic cone using a webcam. It does this inside a while loop ( while myDisplay.isNotDone(): ) It outputs the coordinates and area of the largest blob that it finds. When the orange cone moves out of the field of view of the webcam, the program stops running.

Can someone tell me how to keep the program running?


edit retag flag offensive close merge delete


Can you post a link to the code? You can always use Github's gist ( to post and then just share the link here.

xamox gravatar imagexamox ( 2013-05-21 18:19:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-19 00:30:34 -0500

I had similar issue for hand tracking program when hand went out suddenly program stops. But now it stops just for a second and start again or if i show just hand once more it will start working . I think give a return 0 in the function or something to take the control back to the statement reading image in while loop . Mine issue was solved with return 0 , i guess . Hope this will help you .

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-05-17 10:53:16 -0500

Seen: 221 times

Last updated: May 19 '13