Git Product home page Git Product logo

Comments (3)

r9y9 avatar r9y9 commented on June 5, 2024

OpenCL and OpenGL packet pipelines in pylibfrenect2 should be automatically enabled if you have built libfreenect2 with those enabled. So it seems that

pylibfreenect2/setup.py

Lines 64 to 78 in 5f57a91

def has_define_in_config(key, close_fds=None):
if close_fds is None:
if platform.system() == "Windows":
close_fds = False
else:
close_fds = True
p = Popen("cat {0} | grep {1}".format(libfreenect2_configh_path, key),
stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=close_fds, shell=True)
p.wait()
lines = p.stdout.readlines()
if sys.version_info.major >= 3:
return len(lines) == 1 and lines[0].startswith(b"#define")
else:
return len(lines) == 1 and lines[0].startswith("#define")
isn't working on windows, probably due to use of cat and grep (which I guess doesn't exist on your environment). Since I don't have windows environment right now, it would be great if you could find a windows workaround for has_define_in_config working property.

from pylibfreenect2.

rascustoms avatar rascustoms commented on June 5, 2024

I've added a windows workaround. Also I noticed this library is very hard to find (through google), but yet seems to be one of the only active ways of using Kinect for Windows 2 with Open CV. Hopefully it can gain some more notice. Thank you for your help.

from pylibfreenect2.

r9y9 avatar r9y9 commented on June 5, 2024

Thank you!

from pylibfreenect2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.