If you have some extra money you’ll like to donate. That would be really helpful!

Downloads

Looking for older files? Here: http://www.as3kinect.org/download/old/

OpenKinect wrapper v0.9c (1/9/11):

OS support:

  • Linux
  • OSX
  • Windows

Functionalities:

  • 1 socket
  • Video Camera.
  • Depth Camera. (Depth limits can be set as v0.9b)
  • Motor tilt in degrees (-31 to 31)
  • Led color state (0-6)
  • Accelerometer info.
  • Mirror depth
  • Mirror video
  • Blob detection
  • Touch events
  • Depth range (min and max)
  • Threshold

Source:

Binaries:

Drivers and Dependencies:

Demos / Testing files:

OpenNI wrapper:

OS support:

  • Windows

Functionalities:

  • Single socket.
  • Depth Camera. (With user detection).
  • Skeleton detection
  • RGB Camera (Not yet)
  • Motor tilt (Not yet)
  • Led color (Not yet)

Source:

Binaries:

Drivers and Dependencies:

Demos / Testing files:

Note: This server needs OpenNI drivers and middleware.

Codelaboratories (NUI) wrapper (not developed anymore):

OS support:

  • Windows

Functionalities:

  • 3 sockets (data, rgb, depth)
  • RGB Camera.
  • Depth Camera. (Depth limit for ease hand detection now, will be configurable).
  • Motor tilt in degrees (-31 to 31)
  • Led Color State
  • Accelerometer info.
  • Blob detection
  • Touch events (in demo)

Source:

Binaries:

Demos / Testing files:

Note: This server needs NUI drivers: (http://codelaboratories.com/nui) Download: http://codelaboratories.com/get/nui/

  • Edragos55

    finnally the windows server ;) … gogogo as3 KINECT

    • Sofiene Rabhi

      Hello,
      I want to know how I can change the number of frames per second in the example of IMEKINOX, because I tested it but I find that the frequency of the frames is very low!.
      What is that you know the name of parameter to be changed in the libfreenect for modifer the number of fram per second of the kinect
      Thank you for your assistant

      • Anonymous

        Are you using OpenKinect wrapper?, if you do, it works with a sync class, this means, each time a frame is successfully sent to the client the server requests another one so perhaps is the speed transfer of the data. It is also reported that OpenKinect on windows consumes a lot more resources than in OSX or Linux. This is because it is still in a very early stage on Windows.

        • Sofiene Rabhi

          Thank you for your fast answer
          Yes I use OpenKinect Wrapper, with the program of NUI CLNUIDeviceTest.exe the number of frames per second is normal thus I think that the problem as-server.exe or the other, what is what you have also notice this problem when you run the test.swf or not?

          • Anonymous

            Does this only happens with test.swf or with the test.exe file too? Perhaps the swf is not running with hardware acceleration.

          • Sofiene Rabhi

            Yoppi!!
            I know where from comes the problem of the slow of the test.swf program, simply that I tested it under Windows Vista but on WINDOWS SEVEN IT WORKS CORRECTLY.
            I have another question, what is what you can explain me, how to integrate the manipulation of blobs on an application of page FLIP?
            I want to change in your program the size of the intervalley the coordinates of blobs instead of 600X800 (size of the frames of the video Depth) in 1200X1600
            How to change this parameter?
            Thanks

          • Anonymous

            To make a page flip you’ll need to detect a vector to generate a gesture, currently the library does not support it by itself. But you can generate the vector from the change of the past point to the new point and check where does it moved.

            To translate the resolution you can simply do
            x_pos = (point.x / 640 * 1600);
            y_pos = (point.x / 480 * 1200);

          • Sofiene Rabhi

            good morning imekinox,

            I have make as you have me say:

            function blobsReceived(event:libfreenectCameraEvent):void
            {
            var object:Object = event.data;
            var xx:int;
            var yy:int;
            var x_pos:int;
            var y_pos:int;
            if(object.length > 0)
            {
            x_pos = (object[0].point.x / 640 * 1280);
            y_pos = (object[0].point.y / 480 * 1000);

            pointer.x = x_pos;
            pointer.y = y_pos;
            checkTouchStatus(0,object[0].point);//rajouter pointer au lieu de point
            bounds.x = (object[0].rect.x / 640 * 1280) ;
            bounds.y = (object[0].rect.y / 480 * 1000) ;

            bounds.width = object[0].rect.width;
            bounds.height = object[0].rect.height;
            }
            if(object.length > 1)
            {
            x_pos = (object[1].point.x / 640 * 1280);
            y_pos = (object[1].point.y / 480 * 1000);

            pointer2.x = x_pos;
            pointer2.y = y_pos;
            checkTouchStatus(1,object[1].point);//rajouter pointer2 au lieu de point
            bounds2.x = (object[1].rect.x / 640 * 1280);
            bounds2.y = (object[1].rect.y / 480 * 1000);

            bounds2.width = object[1].rect.width;
            bounds2.height = object[1].rect.height;
            }

            }

            function checkTouchStatus(id:int, point:Point):void
            {
            var targets:Array ;
            targets = stage.getObjectsUnderPoint(point);

            var i:int;
            var max:int;
            var found:Boolean;
            var local:Point;
            var x_pos:int;
            var y_pos:int;

            x_pos = (point.x / 640 * 1280);
            y_pos = (point.x / 480 * 1000);
            point.x = x_pos;
            point.y = y_pos;

            ….}

            Result: points and bounds take well position on 1280X1000 but TouchEvent always remains on the region 640 X 480.
            You can say to me where is the error?

            Thanks.

          • Anonymous

            Yes, change

            checkTouchStatus(0, object[0].point);

            to

            checkTouchStatus(0, new Point(x_pos, y_pos));

            and

            checkTouchStatus(1, object[1].point);

            to

            checkTouchStatus(1, new Point(x_pos, y_pos));

          • Sofiene Rabhi

            Hello Imkinox
            I thank you for the new version of “as3_server” and of freenect_demo_pkg_0.9c (the example of the piano), after the downloading of this version, I tested it, the demo.exe and the demo.swf work very well but regrettably when I wanted to recompile with CS5, I had these error messages. Do you know where from come these errors, I looked everywhere on Google but I found nothing?
            ReferenceError: Error 1065: variable Component_Ronda is not defined.
            ReferenceError: Error 1065: variable btn_white is not defined.
            ReferenceError: Error 1065: variable freenectMouse was not defined.
            ReferenceError: Error 1065: variable demo is not defined.

            Another question: I wanted to make an application « paint » which uses a drag event with blobs detected by the kinect (to click the right button mouse and to move her mouse with maintains it of clic) but regrettably nor the event TouchEvent. TOUCH_OUT nor TouchEvent. TOUCH_OVER gives me a result satisfactory.
            Do you know how to make that?

            Thank you very much for your help.

          • Anonymous

            Check that you have Flex.swf in your paths, it comes in org/minimalcomps, go to files -> actionscript settings and check if Library Path points to ./org/minimalcomps

          • Sofiene Rabhi

            Yes yes thank you very much Imkinox.Effectively now that works correctly.
            I wanted to make an application « paint » which uses a drag event with blobs detected by the kinect (to click the right button mouse and to move her mouse with maintains it of clic) but regrettably nor the event TouchEvent. TOUCH_OUT nor TouchEvent. TOUCH_OVER gives me a result satisfactory.
            Do you know how to make that?
            Thank you very much for your help.

        • Sofiene Rabhi

          Yoppi!!
          I know where from comes the problem of the slow of the test.swf program, simply that I tested him{*it*} under Windows Vista but on WINDOWS SEVEN HE{*IT*} WORKS CORRECTLY.
          I have another question, what is what you can explain me, how to integrate the manipulation of blobs on an application of page FLIP
          ThX

  • Pingback: Josué Palma Blog » flKinect, utiliza Kinect con Flash!

  • Pingback: Flash und Kinect - Flashforum

  • http://t.echnologist.com t.echnologist

    Awesome! You want any help?

    • Anonymous

      If you want to help you are welcomed, the tree wrappers are open source and probably as soon as openkinect wrapper works on windows I’ll stop developing for the NUI drivers, so Just OpenKinect / OpenNI may remain.

      • Sofiene Rabhi

        Hello Imekinox,
        I want to thank you for all that makes you for the use of the kinect under Windows.
        I want to know how I can change the number of frames per second in the example of IMEKINOX, because I tested it but I find that the frequency of the frames is very low!.
        What is that you know the name of parameter to be changed in the libfreenect for modifer the number of fram per second of the kinect
        Thank you for your assistant

      • Sofiene Rabhi

        I want to thank you for all that makes you for the use of the kinect under Windows
        Thank you very much Imkinex
        I tested your programs demo test.fla, I wanted to integrate the detection of blob on my pageflip application (turn the pages of an page flip application with both blobs) what is that you can help me?
        I noticed that the coordinates of blobs is in an intervalley 640 X 480, to change that it is necessary to change what parameter?
        Thank you

        • Anonymous

          As far as i remember blobs are returned as float coordinates (from 0 to 1) so in the flash I multiply those values to the resolution needed.

  • 283069985

    you will succeed attention you

  • Jeff Yamada

    Anyone else successfully implement hand tracking? I’m trying to get it to work using the latest unstable build. Looks like Blob detection is in, but it seems fairly sketchy so far. I’ve seen demos on youtube so I’m hopeful that I’m just not implementing it properly.

    Cheers!

    • Anonymous

      Are you in win or mac? Blob detection in AS3 is not quite perfect but if you have the right combination of angle and distance of the device it can work pretty acceptable. Also if you are compiling it try playing with line 238 of as3-sever.c:

      if(depth[i] 600){

      Try modifying that range for your custom case, perhaps this will need to be configurable somewhere.

      • Jeff Yamada

        I’m on mac and compiling. Thanks, I’ll try that out!

  • Jeff Yamada

    Anyone else successfully implement hand tracking? I’m trying to get it to work using the latest unstable build. Looks like Blob detection is in, but it seems fairly sketchy so far. I’ve seen demos on youtube so I’m hopeful that I’m just not implementing it properly.

    Cheers!

  • Qwe

    Great work with this. Any idea when the openNI wrapper will be released?

    • Anonymous

      Soon, I was going to release it yesterday but I didn’t had enough time. So I just fixed as3-server from OpenKinect to work on Windows. So as soon as I have enough time to clean up code, and put deps in a single place I’ll be able to make it public. Right now is a mess of files.

  • amb

    How do you get the Mac socket to run?

    • Anonymous

      Open Terminal, and run as3-server

      Ctrl-C to exit.

      Cheers,
      JC

  • amb

    Do you have to compile as3-server first, cause I just downloaded the pkg one. Where did it install the socket Mac wrapper to?

    • Anonymous

      If you installed from pkg just run as3-server from terminal, you dont have to do anything else. It should be installed into /usr/local/bin/as3-server

  • amb

    Sweet that helped, now it just says:

    ### Wait depth client
    ### Wait rgb client
    ### Wait data client
    ### Got depth client
    ### Wait depth client

    Do I need to install any additional dependencies?

    • Anonymous

      Nope, just run the server, then run the client and it should work.
      By the number of sockets I can tell you did not used 0.9 version of the pkg, did you?

      You just need to download the demo package.

  • amb

    I do have the latest package, still no luck.

    • Anonymous

      Download and install: http://www.as3kinect.org/distribution/osx/as3kinect_0.9.pkg

      After running as3-server you should see only:

      ### Wait client

      if you see something like: Error: Invalid index [0]

      Is because your device was not detected.

      You can run test.app from here: http://as3kinect.org/distribution/win/freenect_demo_pkg_0.9.zip

      Or open the fla file and run it (this one runs faster).

      • Jpercival

        I’ve installed as3kinect_0.9.pkg and start the as3-server via terminal and am still getting:
        ### Wait client
        Error: Invalid index [0]

        When the kinect is connected. Any help on how I can get to detect my kinect?

      • goodgoodgood

        Hi,

        I’m facing the same issue. No matter what I do, I get that error. I’ve installed the as3-server. I tried rebooting, unplugging the device, turning off and on, plugging back, different Mac computers, and that’s all I get from the terminal: Error: Invalid index [0]

        When you say “because your device is not detected”, how can it be? I’m running Lion. I can even see the USB device using IORegistryExplorer, but they keep becoming red-crossed and refreshed every few seconds and new entries keep showing up, like it is being disconnected and connected all the time.

        Any thoughts or help would be appreciated. Thanks.

  • amb

    On the PC side everything is working great, on the Mac side it looks like the socket is running fine but I get this error trying to test this file “3d_test.fla”,

    Error: Error #1000: The system is out of memory.
    at flash.net::Socket/readBytes()
    at org.as3kinect::as3kinectSocket/onSocketData()

  • amb

    Question: On the Mac side what driver do I need to install?

  • amb

    Okay got it working, ignore! Thanks for the help!

  • Tim

    It seems you’re missing TouchEvent in your org/as3kinect/events package, though. Thanks for the great libraries!

    • Anonymous

      TouchEvent is part of flash events, I think it is since flash player 10 (CS5) If you try to compile under CS4 TouchEvent is not present.

  • Rid

    I tested AS3 openNI and a byteArrayToBitmapData function works well.
    But I cannot get the skeleton data from a server. How can I solve this problem?

  • D Gapp

    hi,

    i installed the mac files, and i can’t find the osx as3-server (Installs libusb/freenect/examples/as3-server) where is it. i installed bot packes fpr the OpenKinect wrapper!

    where can i start the server. the kinnect works fine with the cocoaKinect demo.

    • Anonymous

      Just open the terminal, and type as3-server, it should run.

  • daniel gregorio

    Im with as3-server running on mac and the as3 wrapper version 0.9c for mac isnt work properly, it shows only
    Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.

    but i can still control the lEDS, and the Motor, just cant c any image.
    plus : at test.fla i can ce some kind of purple image, but the dots arent working in any logic way so im guessing that something here isnt fully functional

    ps : i have both as3-server, that I compiled from source and from the pkg you’ve created

  • Barry Lachapelle

    Hey imekinox. Great work man. Im trying my best to get this working. I have the as3-server running well. The demo almost works. I can control the LED lights with the buttons but I do not see the video feed from the kinect in my swf.

    The test swf running with no video:
    http://barryswebsite.com/staging/kinect/1.jpg

    When I open the test FLA and test movie I get an AS error:
    http://barryswebsite.com/staging/kinect/2.jpg

    • Barry Lachapelle

      Ah I just read Daniel’s post below…sounds like we have the same issue.

  • George

    I’ve noticed that there are coordinates for the blobs, how about having the coordinates for each node of the skeleton? Where should I look to invoke those parameters? Thanks

  • Deniro

    Hi,
    I use openni wrapper and it works fine. I have a question about how I get the depth so I want to know how long I’m standing off camera, or rather I want to know where my hand is now and when I reach the front.
    Grateful for any help

  • Rayz

    i’m a beginner and trying to connect the kinect to flash by your as3-server for OpenNI, but always get errors
    says:
    Data bind failed:10048
    ### wait data client
    Error on accept for data, exit data thread. 10093

    i dont know why and what is it. How can i solve it?
    Thank you very much!!

    • Anonymous

      Hello Rayz,
      You can find them in the git repository https://github.com/imekinox/as3_openni.

      • Rayz

        Thanks.
        I believe that i have installed all the drivers and devices. The problem remains. Is it possible that the security sandbox matters?

  • http://twitter.com/momijigari Roman O.

    Hey guys!
    You say here that Linux is one of the supported OSes, but I can’t see anything linuxish in the download section, nor I see any tutorials for Linux.
    Could you tell me whether Linux is actually supported or not?

  • http://twitter.com/bebensiganteng bebensiganteng

    i’ve followed the mac guide line exactly

    http://www.as3kinect.org/guides/openkinect-wrapper-guide/

    but i still couldnt get it running on mac, i’m constantly getting this error

    ### Wait client
    Error: Invalid index [0]

    i assumed the driver is not yet installed but i dont know which one is the driver, please help…

    • goodgoodgood

      Hi, very same problem here!
      Did you ended up finding the reason? It is driving me crazy…

  • Edwin

    i run the as3-server,
    and tried running test.fla (http://as3kinect.org/distribution/win/flash-testing-pkg.zip),
    when i export it this is what is shown on as3-server

    ### wait data client
    ### got data client
    ### wait data client

    got bad command: 18
    Error on accept of data, exit data thread. 10004
    Please help me on this. Thanks!

    I also tried running 3d_test_cs4.fla (http://www.as3kinect.org/distribution/win/openni_demo_pkg.zip),
    it works fine when i compile it in CS5 and not CS4.
    I have a question, each time i close my swf, i need to close and execute as3-server again?
    As each time i exit the swf as3-server will show

    ### wait data client
    ### got data client
    ### wait data client

    got bad command: 0
    Error on accept of data, exit data thread. 10004

    then i try to run another swf, it won’t have any reaction.
    Is something wrong here?

    • psw

       did you fix the server return error ?

      • And54

        how i do that?

  • psw

    the as3-server return with an error “Error on accept of data, exit data thread. 10004″
    as soon it lost the user.

  • http://profiles.google.com/nbovenko Nikita Bovenko

    Hello! I’m trying to start as3-server from freenect_win_as3server_0.9c, but getting an error (llibusb0.dll application is not an image program for Windows NT). Have you any idea how to fix this ? Thanks in advance!

  • Guga_severo

    Hi guys!
    All examples are in flex. I would like in flash professional. Somebody can help me?
    Answer to guga_severo@hotmail:disqus .com

    Thank you for your attention.

    Gustavo severo

  • Superz_pikky

    help me plzzz.
    i run the as3-server
    it’s error.
    the application was unable to start correctly (0xc000007b).

Easy AdSense by Unreal