Good settings for Touchlib to get the best out of my camera picture
Posted: 09 May 2008 06:00 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  42
Joined  2007-07-02

Hi,

I think my touch blobs are not really bright enough, but I am not sure. I have added a sreenshot. Are your’s brighter?

Touch recognition is because of that kinda unstable: The touchpoints jitter and flicker and are sometimes not recognized if I don’t touch hard enough - especially for the little finger.

In the attached screenshot you can see how I set the parameters - there have already their extreme values and I have the feeling it gets worse when I change them.
I still do not really know what the parameters “level” and “threshold” do.

Can you suggest how I can adjust the values better or are my touch blobs really too dark??

Thanks,
Grit.

(I’m using the “touchlib_beta_v1.0” package, because I’m not into C++ programming.)

Image Attachments
blobs2.JPG
Profile
 
 
Posted: 09 May 2008 06:10 AM   [ Ignore ]   [ # 1 ]
Elite
Avatar
RankRankRankRank
Total Posts:  120
Joined  2008-01-28

Firstly, Get Touchlib Beta 2.0 ......
Use SimpleHighPass filter
Use A Scaling Filter
Remove the Brightness/Contrast filter, it wont be of much use, i think ......
it shud give u much brighter blobs ......

(and i go Elite here ..... wink meh ! rasberry )

 Signature 

..’m not the best..but ‘m not like the rest....

Profile
 
 
Posted: 09 May 2008 06:23 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2007-07-02

Thank you.

I tried to use Touchlib Beta 2.0 - but as I have already posted in another thread:
http://nuigroup.com/forums/viewthread/1785/
it sais that some dlls are missing.

I copied them (MSVCP71.DLL and msvcr71.dll) from the 1.0 package, but I have no idea, if this is a good idea.

At least, Beta 2.0 now runs, but I have the feeling, that the results are even worse (because of the 2 dlls from 1.0???).

Can you explain how to use these filters? Is this documented somewhere?

Grit.

Profile
 
 
Posted: 09 May 2008 06:34 AM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2007-07-02

Have to correct myself:

Using Beta 2.0 (with the copied dlls) config starts but I can not really configure my system: It doesn’t detect any touch.
and vision.bat starts but there are only two windows showing up:

The touch listener is just grey
and the cmd.exe tells me:
Square detected 0
all the time.

Profile
 
 
Posted: 09 May 2008 10:24 AM   [ Ignore ]   [ # 4 ]
Elite
Avatar
RankRankRankRank
Total Posts:  120
Joined  2008-01-28

yea ... in version 2.0 it no more shows filter windows wen u run vision app. ...
to see those filter windows, u need to run configapp.exe .....
and it shud’nt give u the missing dlls error ..... get touchlib here .....
copy config.xml from ur working touchlib 1.0 dir to ur touchlib 2.0 dir (replace it) .....

 Signature 

..’m not the best..but ‘m not like the rest....

Profile
 
 
Posted: 09 May 2008 11:03 AM   [ Ignore ]   [ # 5 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2007-07-02

Hello,

I downloaded touchlib 2.0 from your recommended link - same problem - see attached picture.
It sais:
Couldn’t run application, because MSVCP71.dll is missing.

???

Image Attachments
error-beta-2.0.JPG
Profile
 
 
Posted: 09 May 2008 12:55 PM   [ Ignore ]   [ # 6 ]
Elite
Avatar
RankRankRankRank
Total Posts:  120
Joined  2008-01-28

MSVCP71.dll is Microsoft® C Runtime Library, v. 7.10.3077.0 .... i din get ne such error ... maybe coz i have VS .NET installed ... neways .... u can copy the file from ur touchlib v1.0 directory to ur system32 .... then the rest follows same ..

 Signature 

..’m not the best..but ‘m not like the rest....

Profile
 
 
Posted: 10 May 2008 03:45 PM   [ Ignore ]   [ # 7 ]
Elite
Avatar
RankRankRankRank
Total Posts:  262
Joined  2007-09-07

@grit ... grab the M$ vc++ redistributable package from here >> http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en

this should fix it

cheers!!!

 Signature 

cheers!!!

deej
http://therealdesktop.blogspot.com

Profile
 
 
Posted: 13 May 2008 08:20 AM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2007-07-02

Thank you for your hints.

@deej: I downloaded and installed the M$ vc++ redistributable package - but it didn’t change anything.
Then I just copied the 2 dlls to the system23 folder and then it worked fine!
So I now can use the Beta 2.0 version.  smile

I’ve also got a new lens that is brighter/faster - I don’t know the english term wink - well it sees more light and my blobs are much brighter.

Now I have the problem that the camera also sees the ir-light from the LEDs at the edges of my screen and this light flickers, so it is not subtracted well.

I have also changed my config.xml file as suggested:

<filtergraph>
    <
dsvlcapture label="dsvlcapture0" />
    <
mono label="mono1" />
    <
smooth label="smooth2" />
    <
backgroundremove label="backgroundremove3">
        <
threshold value="0" />
    </
backgroundremove>
    <
simplehighpass label="shp5">
        <
blur value="197" />
        <
noise value="3" />
        <
noiseMethod value="1" />
    </
simplehighpass>
    <
scaler label="sc6">
        <
level value="105" />
    </
scaler>
    <
rectify label="rectify7">
        <
level value="23" />
    </
rectify>
</
filtergraph>

I have attached a new screenshot, where you can see my problem. When I turn down the scaler-level or the rectify-level, then the LED-flickers vanish, but the touch blobs start to flickr. I can’t find a good balance. Do you have any hints?

One idea I have is to put the cam nearer to the screen to get a smaller vision area, but this would result in a smaller projection and I would rather find another solution to make my screen more stable…

PS: The lights you see at the edges a about 6 cm from the actual acryl plate edges away.

Image Attachments
flicker1.JPG
Profile
 
 
Posted: 13 May 2008 09:26 AM   [ Ignore ]   [ # 9 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2007-07-02

I tried some things: I now do a second background remove after the shp-filter:

<filtergraph>
    <
dsvlcapture label="dsvlcapture0" />
    <
mono label="mono1" />
    <
smooth label="smooth2" />
    <
backgroundremove label="backgroundremove3">
        <
threshold value="0" />
    </
backgroundremove>
    <
simplehighpass label="shp4">
        <
blur value="127" />
        <
noise value="3" />
        <
noiseMethod value="1" />
    </
simplehighpass>
    <
backgroundremove label="backgroundremove5">
        <
threshold value="0" />
    </
backgroundremove>
    <
scaler label="sc6">
        <
level value="141" />
    </
scaler>
    <
rectify label="rectify7">
        <
level value="95" />
    </
rectify>
</
filtergraph>

It works a little better: The flickering lights are gone, but Touchlib only gets the touches with big touch area (doesn’t work for small finger tips any more).
I think there must be a good sequence of filters for my case. Do you have any suggestions?

Profile