OpenViBE forum

The OpenViBE community
It is currently Wed Jun 19, 2013 9:18 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Jan 19, 2011 1:04 am 
Offline

Joined: Thu Nov 18, 2010 4:37 pm
Posts: 16
Hi,

I would like to experiment my personal scenario using "P300-speller-xDAWN".

The plan is to modify the original "p300-speller-xDAWN" such that the size of the matrix is "3 x 3 with my personal symbols", instead of alphnumeric characters. I need some help on how to implement this scenario.

I have already tested the Magic Card scenario, and it works fine. However, I would like to use the latest "p300-speller xDAWN" algorithm and the "row-column flashing" method (not the cell-by-cell flashing in Magic Card scenario) in my scenario.


So, I have modified the following files in p300-speller-xDAWN.

[STEP 1]

In "p300-speller-stimulator.cfg" I have changed as follows:
(i.e. # of rows 6->3, # of cols 6->3, and # of repetitions 12 -> 6).
This change makes intensification to happen only in either the first 3 rows or the first 3 columns.

A copy of modified "p300-speller-stimulator.cfg" is below.
<OpenViBE-SettingsOverride>
<SettingValue>OVTK_StimulationId_Label_00</SettingValue>
<SettingValue>OVTK_StimulationId_Label_01</SettingValue>
<SettingValue>OVTK_StimulationId_Label_07</SettingValue>
<SettingValue>3</SettingValue>
<SettingValue>3</SettingValue>
<SettingValue>6</SettingValue>
<SettingValue>10</SettingValue>
<SettingValue>0.100000</SettingValue>
<SettingValue>0.050000</SettingValue>
<SettingValue>0.000000</SettingValue>
<SettingValue>4.000000</SettingValue>
<SettingValue>false</SettingValue>
</OpenViBE-SettingsOverride>

However, I am not sure how to change the graphics, that is, the "6 x 6 matrix with alphanumberic characters" to "3 x 3 matrix with my personal symbols".


[STEP 2]
In "p300-speller-visualisation.cfg", I am not sure exactly what I need to change here.


[STEP 3]
What do I need to change in "p300-speller.ui"?
Do I need GTK to change parameters and graphics?


Again much thanks for your wonderful support,

Sincerely,
David


Top
 Profile  
 
PostPosted: Wed Jan 19, 2011 9:57 am 
Offline

Joined: Fri Jan 08, 2010 4:02 pm
Posts: 46
Dear Davidchung

For your modifications on the file p300-speller-stimulation.cfg, I don't see any problems on it, but for the training phase, I think it's better to keep 12 repetitions to have a better classification.

You are right for the file p300-speller-visualisation.cfg, you needn't to do modification on it, except if you want to change the application colors, the labels size or the path of your file ".ui".

The real modifications for graphic part is in the file p300-speller.ui. It's more simple to use the software “glade” to do modifications.
First you need to delete a few "eventbox" objects. It's simple to know what "eventbox" you need to delete, example the "eventbox" naming "eventbox-1.3" is the event box corresponding to the letter, line 1 column 3. After that you can change the column and line values in the "p300-speller-table".
Each "eventbox" contains a "label" object, if you want to change the letter of it, you can add another letter in the property “Label”. Or if you want to change the letter by a picture, you need to delete the corresponding "label" object and add an "GtkImage" object, next you need to add the path of your picture in the “pixbuf “ property.

I hope this helps

best regards

bpayan


Top
 Profile  
 
PostPosted: Wed Jan 19, 2011 1:07 pm 
Offline
Site Admin

Joined: Fri Sep 01, 2006 3:39 pm
Posts: 638
Just an addition to mention that latest version of glade can be downloaded from http://glade.gnome.org/

Yann

_________________
CTO at Mensia Technologies | Image my blog | Image my tweets | Image my linkedin


Top
 Profile  
 
PostPosted: Fri Jan 21, 2011 2:39 am 
Offline

Joined: Thu Nov 18, 2010 4:37 pm
Posts: 16
bpayan wrote:
The real modifications for graphic part is in the file p300-speller.ui. It's more simple to use the software “glade” to do modifications.
First you need to delete a few "eventbox" objects. It's simple to know what "eventbox" you need to delete, example the "eventbox" naming "eventbox-1.3" is the event box corresponding to the letter, line 1 column 3. After that you can change the column and line values in the "p300-speller-table".
Each "eventbox" contains a "label" object, if you want to change the letter of it, you can add another letter in the property “Label”.


Following your guide, I was able to create my 3x3 matrix with different letters using Glade, and the acquisition scenario seems to work with my 3x3 matrix scenario (i.e. the rows and columns flash randomly). Although I haven't test the all steps yet, but I think it should work. I'll do that soon.

Thanks a lot!

bpayan wrote:
Or if you want to change the letter by a picture, you need to delete the corresponding "label" object and add an "GtkImage" object, next you need to add the path of your picture in the “pixbuf “ property.


I was able to create GtkImage objects in the 3x3 matrix with the path information in the pixbuf property. However, when I run the acquisition scenario, I see the 3x3 matrix with my images on the screen, but the rows and columns of the matrix do not flash.

What further changes do I need to make here?

Thank you,
David


Top
 Profile  
 
PostPosted: Fri Jan 21, 2011 11:35 am 
Offline

Joined: Fri Jan 08, 2010 4:02 pm
Posts: 46
Dear DavidChung,


Quote:
I was able to create GtkImage objects in the 3x3 matrix with the path information in the pixbuf property. However, when I run the acquisition scenario, I see the 3x3 matrix with my images on the screen, but the rows and columns of the matrix do not flash.

What further changes do I need to make here?



I'm sorry, I made a mistake when I proposed this solution, because I hadn't think to this problem. This solution is more difficult that I explained.
The letter's flash is represented by a changement of the background and foreground colors, but with a picture, the background is hided by it and the foreground color can't be changed, that's why you didn't see the flash. The problem is, you can't use the same solution as the "magic card" because the "speller" can't replace a GtkImage by an other.
You can try to fix the size of “even box” to have a picture smaller than the "even box" and change the color of the flash, to see it better.
With this solution, you will see your picture with a border corresponding to your flash, when the line or column will be flash. But I think the flash stay discrete, that's why I'm not sure this solution give a good result.

If you can, the best is to keep the letter's system otherwise if this solution have a bad result, you'll need to make a new box inspired by the "speller" and the "magic card".

I hope this help and I'm interested by your feedback.

bpayan


Top
 Profile  
 
PostPosted: Fri Jan 28, 2011 1:40 am 
Offline

Joined: Thu Nov 18, 2010 4:37 pm
Posts: 16
Hi

I am testing P300-speller-xDAWN using 3x3 matrix containing letters only (e.g. A ~ I).
After all the training, the OpenViBE does NOT display any detected "results" in the final Online phase. I see the targets flash, but it is does not show the results.

Thanks,
David


FYI,

1. p300-speller-stimulator.cfg

<OpenViBE-SettingsOverride>
<SettingValue>OVTK_StimulationId_Label_00</SettingValue>
<SettingValue>OVTK_StimulationId_Label_01</SettingValue>
<SettingValue>OVTK_StimulationId_Label_07</SettingValue>
<SettingValue>3</SettingValue>
<SettingValue>3</SettingValue>
<SettingValue>12</SettingValue>
<SettingValue>10</SettingValue>
<SettingValue>0.100000</SettingValue>
<SettingValue>0.050000</SettingValue>
<SettingValue>0.000000</SettingValue>
<SettingValue>4.000000</SettingValue>
<SettingValue>false</SettingValue>
</OpenViBE-SettingsOverride>

3. p300-stimulations-targets.xml
Please refer to the attachment.


Attachments:
p300-stimulations-targets.xml [3.44 KiB]
Downloaded 65 times
Top
 Profile  
 
PostPosted: Thu Feb 03, 2011 9:42 am 
Offline
Site Admin

Joined: Fri Sep 01, 2006 3:39 pm
Posts: 638
Dear davidchung,

Did you adapt the processing pipeline so it handles 3 choices instead of 6 for both rows & columns ?

Btw, Baptiste is currently on holidays, he will be back and able to help you next week.

Yann

_________________
CTO at Mensia Technologies | Image my blog | Image my tweets | Image my linkedin


Top
 Profile  
 
PostPosted: Tue Feb 08, 2011 3:07 pm 
Offline

Joined: Fri Jan 08, 2010 4:02 pm
Posts: 46
Dear davidchung,

I tested the P300-speller-xDAWN with a 3x3 matrix, and I hadn't problems. I saw targets and results flashes.

Your files, p300-stimulation-targets.xml and p300-speller-stimulator.cfg, are good so, if you haven't got problems about classifier processor and spatial filter, I think the problem comes to "voting classifier" boxes.

You have 2 "voting classifier" boxes, one to choose the good column and one to choose the good line.
Each voting classifier needs to have the same input number as the number of column/line of the matrix.
In your case, each voting classifier needs to keep only the three first inputs.
If this explication doesn't correct your problem can you send me your scenario, I will look it to find the problem.

Best regards,

bpayan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
POWERED_BY
Translated by Maël Soucaze © 2009 phpBB.fr