Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

two button dialog

Solved!
Go to solution

hello. currently im doing a project to detect road marking using multiple geometric pattern matching. my idea was when the user has two choices the program will prompt the user to select which way to go. in my program i have used a "go left or right" marking and i planned to use two button dialog. however it only appears one time at the beginning of the program and didnt appear anymore. is it something wrong with the loop or in my program? or if you guys can share some idea how is best to prompt the user to make selection. 

 

here i attach the program and also the templates. any help is much appreciated. thanks

Download All
0 Kudos
Message 1 of 11
(4,505 Views)
I see your code it is not correct code you have too insert two button dialog part into your while loop otherwise it will be execute just once in any run
0 Kudos
Message 2 of 11
(4,378 Views)
Outside the case structure a for loop is used. Do i have to change to while loop or it has to put at the while loop that contains vision acquisition?
0 Kudos
Message 3 of 11
(4,376 Views)
second one
while loop that contains vision acquisition
0 Kudos
Message 4 of 11
(4,374 Views)

i have edited my program to add boolean as an indicator. but i still dont know how to connect the two button dialog and wire it to certain cases. in the program the two button dialog appears every time when an image is loaded. can u please share your idea? thanks a lot

0 Kudos
Message 5 of 11
(4,364 Views)
could you explain exactly what you want to do please explain your idea
0 Kudos
Message 6 of 11
(4,359 Views)

actually i want to detect the road markings on the road. there are two types of road markings which are a single option for examples straight only or right only. the second types of road marking has two option. for example either go straight or turn right. for this type of road marking, i want the user to make a choice which way he/she wants to go. thats why i want to put a two button dialog so that the option of go straight or turn right will come up. sorry for the confusion

0 Kudos
Message 7 of 11
(4,356 Views)
Solution
Accepted by hazik.

your code should be something like this 

Message 8 of 11
(4,348 Views)

thanks a lot sir. i will try to apply it to my program

0 Kudos
Message 9 of 11
(4,345 Views)
before continue just regard that this project is not so easy if you want to imply it to control car to driving on the rood
0 Kudos
Message 10 of 11
(4,341 Views)