Tuesday, June 7, 2011

Fingertip Detection : Source Code

Hi :)
As I promissed I am sharing the source code with you.
You can find the source code and write your issues in http://fingertip.codeplex.com/

Regards,
Vahag

24 comments:

  1. Thanks for sharing your source code. But I have a few questions. Your source code doesn't work with OpenNI1.3.3.6 version. I replaced xn with "OpenNI" and xnv with "NITE" to compile it but it still has some errors. Could you upgrade your code? Which versions of OpenNI and NITE did you use on this project?
    Sorry my poor english

    ReplyDelete
  2. Hello, say truly I am not very sure about the version of OpenNI, which I used in this project, because I published it months ago.
    I have done some changes in the code and upgraded OpenNI. Project is working normal.If you need it, I can publish it soon with the last version of OpenNI ))

    Vahag

    ReplyDelete
  3. Thank you very much. It will help me a lot.
    I just started kinect programming and there are many things which I don't know. Your work inspired me. Keep going man :)

    ReplyDelete
  4. Hello gd_bilgee.
    I have installed the lasted stable version of OpenNI. It seems that there are some other problems.
    Can you please try to run the sample Boxes.Net, which you can find in the samples folder of Nite.

    Default location is "C:\Program Files\PrimeSense\NITE\Samples\Boxes.net".

    Vahagn

    ReplyDelete
  5. I tried to run the sample Boxes.net but I got the following error

    Error 3 Assembly 'XnVNITE.net, Version=1.4.2.4, Culture=neutral,
    PublicKeyToken=399870656fc6c787' uses 'OpenNI.Net, Version=1.3.4.3,
    Culture=neutral, PublicKeyToken=6b43d0c6cf74ee7f' which has a higher
    version than referenced assembly 'OpenNI.Net, Version=1.3.3.6, etc
    It seems that NITE 1.4.2.4 needs unstable OpenNI 1.3.4.3 or higher edition.

    ReplyDelete
  6. Yes, you are right. So you`ll not be able to run any .NET solution using this stable releases.
    I have tried to install stable NITE with unstable OpenNI, but Kinect driver stopped to be recognized by OpenNI.

    Anyway, I noticed, that in the new version of OpenNI some methods has been changed to Properties and some Delegates has been changed. So, you can just change them, and after, Fingertip detection must start to work fine. (surely with working version of OpenNI and NITE).

    This week I`ll try to work on this. If I`ll have any solutions, then will post them here )))

    Vahagn

    ReplyDelete
  7. Thanks a lot man. I will try to change the properties and delegates.

    ReplyDelete
  8. hi sir,,
    i try the program and same error Xnv not be found,,
    can you help me,,
    thanks before

    ReplyDelete
  9. Hi Ryan,
    After we published this program, OpenNI changed a lot it`s API, so it is very normal that you are getting errors when compiling the code. If you`ll provide some details about your installation (OpenNI version, what sensor do you use) I`ll try to help you as mach as I can.

    ReplyDelete
  10. thanks sir,,,
    i use
    nite-win32-1.5.2.21-dev
    openni-win32-1.5.4.0-dev
    sensor-win32-5.1.2.1-redist
    do i need to change this installer sir??

    ReplyDelete
    Replies
    1. What type of sensor do you use (Kinect, Xtion Pro, Primsense)?

      Delete
    2. Also, have you tried to run .NET samples provided in OpenNI installation directory?

      Delete
  11. i use primesense sensor sir,,
    yes it work,,

    ReplyDelete
    Replies
    1. OK, I think I know where is the issue. Did you downloaded source codes and just build them? If yes, download the executable version and copy all the files from it to debug and release directories of your project. There you will find XnVNITE.net.dll file too. Let me know if this solved your problem?

      Delete
    2. yes i download source codes and just build them sir,
      i donn't understand about purpose of download the executable version.

      do I need to download the latest version primsense sir???

      Delete
    3. The latest version of PriemSense does not have yet .NET support. Also API there differs a lot from OpenNI v1. Executable version of fingertip recognizer contains the libraries, which you need to run your project (EmguCV and some OpenNI files). Have a look inside it http://fingertip.codeplex.com/downloads/get/246982

      Delete
    4. I've been copying all the files in Executableon to debug in my dproject on debug,
      for XNV has been read but xn Unread sir??
      so that DepthMetaData and Point3D is unread too,

      Delete
    5. hai sir after I tried the dll from execuitable directory, finally Xnv and Xn can be read,
      but I found a new error:

      Unable to load DLL 'XnVCNite': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

      in program

      SessionManager = new xnv.SessionManager (senssorContext, "Wave", "RaiseHand");

      please helpme sir,,

      Delete
    6. Hi Ryan,
      XnVNITE.net.dll can be found in http://fingertip.codeplex.com/downloads/get/246982 too.
      Please, copy that file to the realise and debug directories of your project. AFIK you can even add it as a reference DLL to your project.

      Delete
    7. I've been copying all the files from the executable version of the fingertip to the debug folder but in my project folder not have release folder,
      so i can not copying the files in the folder release,,
      what should i do sir??

      Delete
    8. If you don`t have release folder it`s ok. Did you add file XnVNITE.net.dll as a reference to your project? (Right click on your project then "Add Reference..." and choose that file)

      Delete
    9. I've tried it sir,
      I also add reference in visual studio but the error is still the same,
      the error is

      Unable to load DLL 'XnVCNite': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

      in program

      SessionManager = new xnv.SessionManager (senssorContext, "Wave", "RaiseHand");

      Can you give me your email so I can send the picture error sir,,,

      Delete
    10. Ryan, mail me to nahapetyanvahagn@gmail.com

      Delete
  12. 1 was send you message sir,,
    please check it,

    ReplyDelete