Click here to Skip to main content
13,248,766 members (46,914 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hello,
I'm trying to make a virtual dressing room application with kinect. My problem is that I want to use poser for modeling, so I need to convert C++ from kinect to python. I have no experience in python!

Can anybody help me please?
Posted 15-Feb-13 10:11am
Updated 29-Oct-17 5:25am
v3
Comments
joshrduncan2012 15-Feb-13 15:15pm
   
Why are you using Python if you have no prior experience with it? WHy can't you use a language you are more familiar with?
Sergey Alexandrovich Kryukov 15-Feb-13 15:25pm
   
It would be hard to answer such question. As if getting knowledge required excuses... But usually, "converting" is a bad idea.
The language is valuable only if it supports some different way of thinking...
—SA
joshrduncan2012 15-Feb-13 15:26pm
   
I agree 100%.
Matthew Faithfull 15-Feb-13 15:18pm
   
I know precious little about Python other than that it sucks but I have heard that if you want to connect C++ and Python together there is a Boost library to help with that, presumably Boost::python. I would start at http://wiki.python.org/moin/boost.python/GettingStarted
Sergey Alexandrovich Kryukov 15-Feb-13 15:27pm
   
You first problem here is not become a Python poser being a C++ fan at heart. :-)
That's why "conversion" is, maybe, not a good idea.
—SA
TRK3 15-Feb-13 16:29pm
   
You can call functions in a C-DLL from python using the ctypes python library.

Or you can spawn process and get return values using the subprocess python module.

And/or you can invoke the python interpreter from C.

There are all kinds of ways to interoperate C/C++ and python. I'd look into doing that rather converting everything to python.
GiZmoDragonBack 21-Jul-13 16:02pm
   
What do you mean by convert? Automatically or manually?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

I have no clue what "kinect" is but I do work with C++/Python binding often. There's a tool called "swig" that's a widely used method for exporting C++ to Python (and other combinations). Essentially you create interface files (*.i) that you pass to Swig (a standalone app) that generates objects/libraries that can be imported in Python. It can be a bit of a pain but it works and there are plenty of people using it so if you run into problems, there is some help out there.

Simplified Wrapper and Interface Generator[^]
  Permalink  
Comments
Dave Kreskowiak 18-Dec-16 22:15pm
   
You had to dig up a four year old question? Really?
Albert Holguin 18-Dec-16 22:29pm
   
Didn't look at the dates... that shows up on my feed as an unanswered question given my filters... what can I say? ::shrug::
Dave Kreskowiak 18-Dec-16 22:31pm
   
OK. I've done the same before.

It could have been hit before by a spam message that was deleted. This would kick it back up to the top of the list.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

class stack {
   public:
      int empty(stack* s );
      void pop(stack *, int * ,int * underflow);
      void push(stack *,int * ,int * overflow);
      int menu();
      int myTop;
      int data[300];
};
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 29 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100