From: Fabrizio Assabese on 14 Jul 2010 05:40 Hello everybody, I'm Matlab beginner and I need some advices. I'm creating an interface to study the attention of a person who's standing in front of a webcam, and who interactes with the gui, selecting some keys on the keyboard to follow a path that is shown in an image box in the gui. My gui consists in this image box, where a path is randomly shown (straight, right and left direction), another image box where is shown webcam image synchronized with path image and a text box where is shown if the keybutton pressed is correct in respect of the direction of the path. Now I need to develop another panel in the guy, where I can show if the person was watchful and, in the case the direction pressed was not right, it "explain" why the person done wrong, for instance, he was sleeping, he had his face turned... Anybody has some advice? Thanks for the support Fabrizio
From: us on 14 Jul 2010 05:53 "Fabrizio Assabese" <f.assabese(a)gmail.com> wrote in message <i1k0m5$dq0$1(a)fred.mathworks.com>... > Hello everybody, > > I'm Matlab beginner and I need some advices. > I'm creating an interface to study the attention of a person who's standing in front of a webcam, and who interactes with the gui, selecting some keys on the keyboard to follow a path that is shown in an image box in the gui. > My gui consists in this image box, where a path is randomly shown (straight, right and left direction), another image box where is shown webcam image synchronized with path image and a text box where is shown if the keybutton pressed is correct in respect of the direction of the path. > Now I need to develop another panel in the guy, where I can show if the person was watchful and, in the case the direction pressed was not right, it "explain" why the person done wrong, for instance, he was sleeping, he had his face turned... > Anybody has some advice? > > Thanks for the support > > Fabrizio well... advice on which on of the zillions of aspects of your master thesis(?)... show what YOU've done so far and come back with specific, ML related problems... us
From: Fabrizio Assabese on 14 Jul 2010 06:11 "us " <us(a)neurol.unizh.ch> wrote in message <i1k1e0$21j$1(a)fred.mathworks.com>... > "Fabrizio Assabese" <f.assabese(a)gmail.com> wrote in message <i1k0m5$dq0$1(a)fred.mathworks.com>... > > Hello everybody, > > > > I'm Matlab beginner and I need some advices. > > I'm creating an interface to study the attention of a person who's standing in front of a webcam, and who interactes with the gui, selecting some keys on the keyboard to follow a path that is shown in an image box in the gui. > > My gui consists in this image box, where a path is randomly shown (straight, right and left direction), another image box where is shown webcam image synchronized with path image and a text box where is shown if the keybutton pressed is correct in respect of the direction of the path. > > Now I need to develop another panel in the guy, where I can show if the person was watchful and, in the case the direction pressed was not right, it "explain" why the person done wrong, for instance, he was sleeping, he had his face turned... > > Anybody has some advice? > > > > Thanks for the support > > > > Fabrizio > > well... advice on which on of the zillions of aspects of your master thesis(?)... > show what YOU've done so far and come back with specific, ML related problems... > > us Thanks for your answer. Till now, I've created the first part of the gui that I've descripted. An image box showing a path synchronized with an image box showing webcam frames. I've projected interaction in the measure of I've developed an if statement getting the current key pressed and comparing it with ascii code of keys I'v choseen for directional key (q for straight, z for left and m for right). Now, I'm searching some documents to understand how to create second phase of the project. So if someone can help me by some link that can be useful, i'll be thankful. I'm sorry but I'm creating the ideas, as I'm Matlab beginner and don'tknow hits tools, so I cannot come back with specific,as for your suggestion. Thanks again. F.
From: us on 14 Jul 2010 06:29 "Fabrizio Assabese" <f.assabese(a)gmail.com> wrote in message <i1k2ft$ai0$1(a)fred.mathworks.com>... > "us " <us(a)neurol.unizh.ch> wrote in message <i1k1e0$21j$1(a)fred.mathworks.com>... > > "Fabrizio Assabese" <f.assabese(a)gmail.com> wrote in message <i1k0m5$dq0$1(a)fred.mathworks.com>... > > > Hello everybody, > > > > > > I'm Matlab beginner and I need some advices. > > > I'm creating an interface to study the attention of a person who's standing in front of a webcam, and who interactes with the gui, selecting some keys on the keyboard to follow a path that is shown in an image box in the gui. > > > My gui consists in this image box, where a path is randomly shown (straight, right and left direction), another image box where is shown webcam image synchronized with path image and a text box where is shown if the keybutton pressed is correct in respect of the direction of the path. > > > Now I need to develop another panel in the guy, where I can show if the person was watchful and, in the case the direction pressed was not right, it "explain" why the person done wrong, for instance, he was sleeping, he had his face turned... > > > Anybody has some advice? > > > > > > Thanks for the support > > > > > > Fabrizio > > > > well... advice on which on of the zillions of aspects of your master thesis(?)... > > show what YOU've done so far and come back with specific, ML related problems... > > > > us > > > Thanks for your answer. > Till now, I've created the first part of the gui that I've descripted. > An image box showing a path synchronized with an image box showing webcam frames. I've projected interaction in the measure of I've developed an if statement getting the current key pressed and comparing it with ascii code of keys I'v choseen for directional key (q for straight, z for left and m for right). > Now, I'm searching some documents to understand how to create second phase of the project. > So if someone can help me by some link that can be useful, i'll be thankful. I'm sorry but I'm creating the ideas, as I'm Matlab beginner and don'tknow hits tools, so I cannot come back with specific,as for your suggestion. > > Thanks again. > > F. hmm... wading through your lengthy prose, a typical ML user might extract this partial problem... - i create a figure - a user is asked to press a key while this figure is active - how do i retrieve the value of this key then, another typical ML/CSSMer would answer... one of the solutions fh=figure; set(fh,'windowkeypressfcn','get(gcbo,''currentchar'')'); % now put your cursor into your fig's canvas, press a few keys, and observe the % command window... as you see: here at CSSM we go step-by-step... us
From: Fabrizio Assabese on 14 Jul 2010 06:58 "us " <us(a)neurol.unizh.ch> wrote in message <i1k3hh$hqs$1(a)fred.mathworks.com>... > "Fabrizio Assabese" <f.assabese(a)gmail.com> wrote in message <i1k2ft$ai0$1(a)fred.mathworks.com>... > > "us " <us(a)neurol.unizh.ch> wrote in message <i1k1e0$21j$1(a)fred.mathworks.com>... > > > "Fabrizio Assabese" <f.assabese(a)gmail.com> wrote in message <i1k0m5$dq0$1(a)fred.mathworks.com>... > > > > Hello everybody, > > > > > > > > I'm Matlab beginner and I need some advices. > > > > I'm creating an interface to study the attention of a person who's standing in front of a webcam, and who interactes with the gui, selecting some keys on the keyboard to follow a path that is shown in an image box in the gui. > > > > My gui consists in this image box, where a path is randomly shown (straight, right and left direction), another image box where is shown webcam image synchronized with path image and a text box where is shown if the keybutton pressed is correct in respect of the direction of the path. > > > > Now I need to develop another panel in the guy, where I can show if the person was watchful and, in the case the direction pressed was not right, it "explain" why the person done wrong, for instance, he was sleeping, he had his face turned... > > > > Anybody has some advice? > > > > > > > > Thanks for the support > > > > > > > > Fabrizio > > > > > > well... advice on which on of the zillions of aspects of your master thesis(?)... > > > show what YOU've done so far and come back with specific, ML related problems... > > > > > > us > > > > > > Thanks for your answer. > > Till now, I've created the first part of the gui that I've descripted. > > An image box showing a path synchronized with an image box showing webcam frames. I've projected interaction in the measure of I've developed an if statement getting the current key pressed and comparing it with ascii code of keys I'v choseen for directional key (q for straight, z for left and m for right). > > Now, I'm searching some documents to understand how to create second phase of the project. > > So if someone can help me by some link that can be useful, i'll be thankful. I'm sorry but I'm creating the ideas, as I'm Matlab beginner and don'tknow hits tools, so I cannot come back with specific,as for your suggestion. > > > > Thanks again. > > > > F. > > hmm... > wading through your lengthy prose, a typical ML user might extract this partial problem... > > - i create a figure > - a user is asked to press a key while this figure is active > - how do i retrieve the value of this key > > then, another typical ML/CSSMer would answer... > > one of the solutions > > fh=figure; > set(fh,'windowkeypressfcn','get(gcbo,''currentchar'')'); > % now put your cursor into your fig's canvas, press a few keys, and observe the > % command window... > > as you see: here at CSSM we go step-by-step... > us I've created a gui and insert following code: tastocorrente=gcf; valore= double(get(tastocorrente, 'CurrentKey')); if valore~=113 % straight direction set(handles.edit1, 'String', 'Direzione Sbagliata'); %this show that the direction is wrong if wrong key in pressed. end; Now I need to save current key in a text file to retrieve the information at the end of application, in particular, for each frame I need to associate webcam frame, image of path and key pressed. I think i've to create an array of structures to save together this informations.
|
Next
|
Last
Pages: 1 2 Prev: command/syntax for entereing data at run time Next: continuous wavelet transform |