8 of 10
8
Dual IR Laser, Firefly MV, TouchLib running @ 112fps + TouchLib Speed/CPU Fix !!! ** UPDATED **
Posted: 29 July 2008 10:55 AM   [ Ignore ]   [ # 106 ]
New Member
Rank
Total Posts:  32
Joined  2008-03-08
Gw - 27 July 2008 11:07 AM

xiehuangdouhua - 27 July 2008 10:49 AM
Hey, guys,
my firefly MV B/W worked but i can not set up frame rate in touchlib, i installed flystream driver1.0a12 and manual scanned the WinXP SP2 system, WinXP found the hardware and install the driver, in AMCAP.exe i could adjust the frame rate up to 60FPS, but seems it didn’t works for touchlib, do you guys know how to adjust the frame rate in touchlib? my frame rate in touchlib shows 15FPS, thanks!

I believe the only way is to use the ROI feature of the camera. When I punch in some numbers there the framerate jumps to ~110fps. I’m having some difficulty adjusting it to the correct settings. Will let you know if I can get it right.

Hi, GW,
did you use Flycapture driver or Flystream driver? i can not find the option in Flystream driver for ROI, and i checked the PTgrey website they mentioned Development SDK kit driver could use ROI, did you use that too? thanks!

Profile
 
 
Posted: 29 July 2008 11:08 AM   [ Ignore ]   [ # 107 ]
New Member
Avatar
Rank
Total Posts:  73
Joined  2008-06-17
xiehuangdouhua - 29 July 2008 10:55 AM

Gw - 27 July 2008 11:07 AM
xiehuangdouhua - 27 July 2008 10:49 AM
Hey, guys,
my firefly MV B/W worked but i can not set up frame rate in touchlib, i installed flystream driver1.0a12 and manual scanned the WinXP SP2 system, WinXP found the hardware and install the driver, in AMCAP.exe i could adjust the frame rate up to 60FPS, but seems it didn’t works for touchlib, do you guys know how to adjust the frame rate in touchlib? my frame rate in touchlib shows 15FPS, thanks!

I believe the only way is to use the ROI feature of the camera. When I punch in some numbers there the framerate jumps to ~110fps. I’m having some difficulty adjusting it to the correct settings. Will let you know if I can get it right.

Hi, GW,
did you use Flycapture driver or Flystream driver? i can not find the option in Flystream driver for ROI, and i checked the PTgrey website they mentioned Development SDK kit driver could use ROI, did you use that too? thanks!

I used the FlyStream, then you click on “Format 7” inside the PGR settings box that appears. I don’t believe you can use the FlyCapture with Touchlib.

Profile
 
 
Posted: 30 July 2008 01:58 AM   [ Ignore ]   [ # 108 ]
New Member
Avatar
Rank
Total Posts:  59
Joined  2008-04-27

I just got the FlyStream to work in Vista.  It seems that you have to install in the specified default directory for it to work.  I kept installing it in D: Drive and it did not work and when I installed it in C: drive, it works like a charm.

 Signature 

Pissed Right Off Genetically Engineered Nerd

Profile
 
 
Posted: 30 July 2008 02:42 AM   [ Ignore ]   [ # 109 ]
Administrator
Avatar
RankRank
Total Posts:  200
Joined  2008-05-08
dannytmurphy - 28 July 2008 01:24 PM

So wait, and please forgive my ignorance if I’m wrong, but the touch screen in the movies that were posted was created with only two lasers, as opposed to using a ton of LED’s?

Yes, that is correct.

 Signature 

Computing is not about computers any more.  It is about living!

~ Send me a PM about high quality laser modules for LLP ~

Profile
 
 
Posted: 30 July 2008 02:44 AM   [ Ignore ]   [ # 110 ]
Administrator
Avatar
RankRank
Total Posts:  200
Joined  2008-05-08
Gw - 28 July 2008 08:30 PM

AlexP - 28 July 2008 03:08 AM
Gw - 25 July 2008 02:59 PM
Hey Alex,

I was wondering if you could briefly go over calibrating the ROI feature of the FireFly, I’m having dificulty understanding how the offset works. Everytime I try and Format 7 in my own coordinates I always get a very small percentage of the actual screen, for example, the top right corner and the touches are offset. I would love to get this format calibrated, the 120fps is incredible!

The way ROI works is that it creates a ‘window’ within the full area of the CCD (752x480).
So for example if you want to capture frames at 320x240, you would set the width=320 and height=240.
Now, this would result is captured frames of right resolution, but the ROI origin is still at (0,0).
This means that the 320x240 window within full 752x480 is positioned at (0,0) (top left corner).
So we must move it so that is centered within full 752x480 camera resolution.
Therefore the new origin is:

X=(752-320)/2=216
Y=(480-240)/2=120

This goes for any other resolution you might chose.
Hope this answer your question.

~Alex

Thanks for the reply Alex.

I punched in these numbers, and after reducing the size my of screen I was able to fit it all into the 320x240 capture size. The distance from by FireFly to the screen is now about 6 feet.

In order to fit in a screen as large as yours, is your camera very far away? Or are you able to trick this by using a 150 degree fish eye lens to fit it all in there?

Are you using the original microlens that came with Firefly MV camera?
I used both 90 and 150 degree lens and this reduced the camera distance a lot.

~Alex

 Signature 

Computing is not about computers any more.  It is about living!

~ Send me a PM about high quality laser modules for LLP ~

Profile
 
 
Posted: 31 July 2008 09:32 PM   [ Ignore ]   [ # 111 ]
New Member
Avatar
Rank
Total Posts:  73
Joined  2008-06-17
AlexP - 30 July 2008 02:44 AM

Gw - 28 July 2008 08:30 PM
AlexP - 28 July 2008 03:08 AM
Gw - 25 July 2008 02:59 PM
Hey Alex,

I was wondering if you could briefly go over calibrating the ROI feature of the FireFly, I’m having dificulty understanding how the offset works. Everytime I try and Format 7 in my own coordinates I always get a very small percentage of the actual screen, for example, the top right corner and the touches are offset. I would love to get this format calibrated, the 120fps is incredible!

The way ROI works is that it creates a ‘window’ within the full area of the CCD (752x480).
So for example if you want to capture frames at 320x240, you would set the width=320 and height=240.
Now, this would result is captured frames of right resolution, but the ROI origin is still at (0,0).
This means that the 320x240 window within full 752x480 is positioned at (0,0) (top left corner).
So we must move it so that is centered within full 752x480 camera resolution.
Therefore the new origin is:

X=(752-320)/2=216
Y=(480-240)/2=120

This goes for any other resolution you might chose.
Hope this answer your question.

~Alex

Thanks for the reply Alex.

I punched in these numbers, and after reducing the size my of screen I was able to fit it all into the 320x240 capture size. The distance from by FireFly to the screen is now about 6 feet.

In order to fit in a screen as large as yours, is your camera very far away? Or are you able to trick this by using a 150 degree fish eye lens to fit it all in there?

Are you using the original microlens that came with Firefly MV camera?
I used both 90 and 150 degree lens and this reduced the camera distance a lot.

~Alex

Using the stock microlens that came with the camera I have great blobs, but there has to be a large distance from the camera to the screen.

I ordered a Swann 150 degree lens from Frys and gave it a shot tonight. It did significantly reduce the distance needed to fit the screen in, but the blobs were inconsistent. Towards the edges I would get feint or no blobs at all.

Maybe I should give the 90 degree a try and see if it does the same thing.

Alex , did you notice this with the 150degree lens as well?

Profile
 
 
Posted: 01 August 2008 02:44 AM   [ Ignore ]   [ # 112 ]
Administrator
Avatar
RankRank
Total Posts:  204
Joined  2007-04-03
AlexP - 16 June 2008 03:00 AM

@cerupcat
@Taha

I would be willing to help out and commit my fixes if I get the svn access, sure. Currently I’m using DSVideoLib in my config file and changes that I made pertain to this input method.
Regarding the smoke app, I didn’t make any changes there, but being a native windows app that links the touchlib, I think that the faster blob processing somehow affects the smoke app speed. Maybe the fact that I removed the SLEEP(32) from the touchlib resulted in smoke rendering speedup, I’d have to look into this.
But one thing is sure, the touch response if definitely way faster than before.


~Alex

Its been a while since you’ve posted the fixes, you could try sending whitenoiz a PM if you still want SVN access. I will be checking out your dsvl fix soon and commit it.

 Signature 

My multitouch blog: http://www.multigesture.net
Howto: Compile touchlib on windows XP/Vista
Howto: Compile touchlib on Ubuntu Linux
Downloads: Touchlib SVN builds

Profile
 
 
Posted: 03 August 2008 10:44 PM   [ Ignore ]   [ # 113 ]
New Member
Rank
Total Posts:  79
Joined  2008-05-20

anyone knows how can i achieve 60fps on firefly MV with alexP’s code @ 640 by 480?

i’m only getting 30fps using GBRG Nearest Neighbour Fast

Profile
 
 
Posted: 08 August 2008 02:47 PM   [ Ignore ]   [ # 114 ]
New Member
Avatar
Rank
Total Posts:  93
Joined  2008-06-10

Just incase anyone’s interested in buying a Firefly MV I’ve had a recent quote. You can actually buy a single black and white/colour Firefly MV, but you must purchase a dev kit with it for $300. On top of that you’ve also got to spend a whopping $100 for shipping.... those lead lined parcels sure don’t come cheap!

I’m pretty sure this is common knowledge on the forums but just incase I thought I’d share it, particularly as the results using it are extremely impressive!

Profile
 
 
Posted: 16 August 2008 08:30 AM   [ Ignore ]   [ # 115 ]
Jr. Member
RankRank
Total Posts:  236
Joined  2008-02-01

I finally got the FireflyMV to work, and it’s fast!  But, the laser modules I got from Alex only seem to have a range of 6-8 inches.  It seems they defy the laws of light, because they fire straight and level for this time then seem to bend up hugely, which obviously they don’t.  I thought they were bouncing off the acrylic, but they can’t be bouncing that extreme.  It’s very odd.

 Signature 

fingerpuk.tumblr.com

Profile
 
 
Posted: 20 August 2008 07:06 PM   [ Ignore ]   [ # 116 ]
Administrator
Avatar
RankRank
Total Posts:  200
Joined  2008-05-08
Larky - 16 August 2008 08:30 AM

I finally got the FireflyMV to work, and it’s fast!  But, the laser modules I got from Alex only seem to have a range of 6-8 inches.  It seems they defy the laws of light, because they fire straight and level for this time then seem to bend up hugely, which obviously they don’t.  I thought they were bouncing off the acrylic, but they can’t be bouncing that extreme.  It’s very odd.

When adjusting the lases there are two things you have to worry about. This is true because now you are dealing with a plane of light.

Lets break this adjustment process into two steps:

Step 1 Lets assume that you removed the line lens from a laser module. The laser module is now generating a single dot. In this step you need to adjust the laser so that the beam going from it is parallel to the surface.

Step 2 Lets assume that you now have the line lens on and that your laser module is still adjusted following the Step 1. Now you have to turn the line lens so that the line that is being generated by the line lens is fully parallel to the surface.

As you can see, for the lasers to be used in LLP method, you need to adjust them in two directions.

I think in your case, you accomplished the adjustment described in Step 1, but your line generated by the line lens was not fully parallel to the surface resulting in strange reflection with increasing angle as you were going from side to side of the laser line beam.

~Alex

 Signature 

Computing is not about computers any more.  It is about living!

~ Send me a PM about high quality laser modules for LLP ~

Profile
 
 
Posted: 21 August 2008 04:09 PM   [ Ignore ]   [ # 117 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  599
Joined  2008-02-12

Hey Alex i had a quick question what lens are you using with the firefly mv? Tamron??

 Signature 

My MultiTouch Blog

Profile
 
 
Posted: 28 August 2008 02:19 AM   [ Ignore ]   [ # 118 ]
New Member
Rank
Total Posts:  79
Joined  2008-05-20

hi guys,

i’m using firefly MV and my cpu usage is high, around 50% to 80% using alexP’s fix. what might be the problem?

Thanks

Profile
 
 
Posted: 28 August 2008 01:25 PM   [ Ignore ]   [ # 119 ]
Administrator
Avatar
RankRank
Total Posts:  200
Joined  2008-05-08

@Taha

I didn’t use CS lens with Firefly MV. I’m actually using a microlens in my setup. It is ~90º lens.

~Alex

 Signature 

Computing is not about computers any more.  It is about living!

~ Send me a PM about high quality laser modules for LLP ~

Profile
 
 
Posted: 28 August 2008 01:27 PM   [ Ignore ]   [ # 120 ]
Administrator
Avatar
RankRank
Total Posts:  200
Joined  2008-05-08
icube - 28 August 2008 02:19 AM

hi guys,

i’m using firefly MV and my cpu usage is high, around 50% to 80% using alexP’s fix. what might be the problem?

Thanks

Hey icube,

What is the spec of your machine (CPU, OS, RAM, etc...)?

~Alex

 Signature 

Computing is not about computers any more.  It is about living!

~ Send me a PM about high quality laser modules for LLP ~

Profile
 
 
   
8 of 10
8