Hey All,
I just commited a few more files, bringing BBTouch up to r157. I had been running 152 all week with no trouble, but Sandor managed to find a handful of bugs (of course, right when he is trying to use it at a show :-) so I made some changes and hopefully it is a bit better.
The biggest changes between 152 and 157 are that I fixed some very minor UI issues where the TUIO settings fields were not being properly disabled so you could change them out from under the OSC objects (causing some odd behavior). But the big one was that in some circumstances BBTouch would boot up and the filter settings (and the dark blobs pref) would be basically disconnected from the detector objects. no matter how much you changed them they didnt really affect anything. In any case, with 157 that is all fixed.
That is all for now :-)
I should be posting the newest BBTUIOTest.app soon, once I get it all back together.
cheers!
-b
I was putting in random numbers to see what would happen and whatever I put in for the last Threshold Kernel Size crashed BBTouch. Here’s the output:
Oct 8 23:56:46 Logan [0x0-0x11a11a].com.BB.BBTouch[9400]: OpenCV ERROR: One of arguments’ values is out of range (Neighborhood size must be >=3 and odd (3, 5, 7, …))
Oct 8 23:56:46 Logan [0x0-0x11a11a].com.BB.BBTouch[9400]: in function icvAdaptiveThreshold_MeanC, ../../../cv/src/cvadapthresh.cpp(58)
So it’s really more my mistake, but it might be useful to have something there, or maybe text indicating what numbers are expected.
Hey Drills,
Ahh.. i see the problem. I have the constraints set to be odd numbers greater than 0, when really they should be 3 or better. My bad :-)
Good catch! :-) I will fix that in the next rev. but for now, just don’t go below 3 :-)
-b
Hey Ben!
Amazing piece of software you developed! Simple, effective and… for the Mac!
Been messing around with BBTouch and Processing for a few days, got everything working fine but was wondering if it’s possible to send blob radius (such as the info in the test view) over TUIO. Is this information extracted with the blob detection or is it infered by some other method?
Thanks a lot, will keep you posted on the advances of my little project!
Keep up the good work,
Pedro.
Hey Pedro,
thanks for the kind words :-) There have been a few requests for this over at NUIGroup, and initially i said ‘no’, but I have thought about it some more and I think it is absolutely do-able, it is just a matter of deciding how to go about it.
Currently the TUIO spec does not include the ability to send radius, but I think that the reactivision guys are working on a new updated spec, so I will go and have a look at that. If that is not a solution, it is trivial to add a radius command to the TUIO data stream (the other TUIO clients should ignore it). So that is also a possible solution.
Anyhow, I will do a bit more research and see what I can do.
Cheers!
-b
Hi Ben,
I hope you’ve been keeping off the red bull!!! I have a nice crashy problem that i hope you can fix!
No matter what i do i cant get BBtouch 158 not to crash when i press the Cam settings Button. It doesn’t matter which camera or variations of camera i plug in it just crashes.
Ive tried trashing the preferences both the com.BB.BBTouch.plist and the com.yourcompany.BBTouch.plist but this has no effect.
Heres the console:
19/10/2008 22:17:14 BBTouch[894] SGSetChannelUsage() returned -32767
19/10/2008 22:17:31 com.apple.launchd[111] ([0x0-0xb80b8].com.BB.BBTouch[894]) Exited abnormally: Floating point exception
Any help would be very gratefully received. I have probably not done something V simple! You know, like not switching it on and off again!!!
Cheers.
Hey AJ,
it looks like it is not starting up the sequence grabber properly when you load BBTouch (that is the SGSetchannel error) and then it looks like about 15 seconds later, you hit the settings button and it fails ungracefully because there is no channel to set the settings on. (I really should add a check for that eh? :-) So the problem is that for some reason BBTouch does not get the cam on first try like it should be.
try this: in your Application Support folder/BBTouch/ trash the cam settings file. (be sure BBTouch is not running at the time) there may be something off in there.
After that, go ahead and reboot your whole system. very occasionally when I have trouble like that with the camera, i can never get it to come back without a reboot.
first thing after reboot: try BBTouch. (ie make sure that you dont have any other apps open that could possibly be trying to use the camera)
if that doesn’t work, let me know and I will have a closer look into the code. There is something definitely going on in the sequence grabber code. One problem is that much of that code has been deprecated by Apple, but the equivalent functionality has not been exposed in the QTKit, so right now it is sorta in this limbo where it all ’should’ work, but there are a few really crazy bugs that pop up very occasionally. (making them very hard to track down :-) but there is no alternative yet.
Cheers!
-b
Hi Ben,
Thanks that sorted it out, now works perfectly.
Cheers
Hey Ben,
As you probably know nuigroup has released tbeta, Cerupcat has been having issues getting the firefly mv to work with tbeta on os x and on windows.
As it works seemlesly with bbtouch i wondered if you might be able to shed some light on it?
Do you have a firewire cam and if so does it work with tbeta?
Any way just thought id ask!
Cheers and keep of that redbull!
Hey AJ,
I have heard about the new beta but have been too busy to even download it :-( That said, do you know what libs they are using to access the firewire stream in tbeta? I know it is a cross-platform solution so I wonder if they are using one of the POSIX 1394 libs or if they are checking for the architecture and then running some hardware specific code?
Anyhow, I have a fire-i cam, the same as many many NUIGroupers, so I am sure that if that didn’t work you would have heard about it by now :-)
In any case, the sequence grabber code that I am using is all in one object: CSGCamera, (which I actually got originally from another open source project, and updated it for BBTouch).. so have a look in there for the specifics of how I am handling the camera input stream. (ie, I am letting the system deal with it :-)
none of that is probably helpful :-) hopefully soon i will have a few free minutes to download the tbeta stuff :-)
Cheers!
-b