etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
288 stars 81 forks source link

Is Pyk4a avoids GIL? #101

Closed arudomanenko closed 3 years ago

arudomanenko commented 3 years ago

Hi, I am writing a huge machine vision project. So I want to separate capturing frame thread and logic main thread. Is your module released GIL while working?

shagren commented 3 years ago

Just use thread_safe=False for most operations, It will cause GIL releasing for k4a functionality.

You can check https://github.com/etiennedub/pyk4a/blob/master/example/threads.py