Comments (18)
Hi,
Which Azure KInect SDK are you using? The problem might be caused because this function was not available in older SDK versions. If you have an older version (other than 1.4.X) try to update the SDK.
Let me know how it goes.
Ibai
from pykinectazure.
The Linux version I use is 16. 04, will it have an impact
Hi,
Which Azure KInect SDK are you using? The problem might be caused because this function was not available in older SDK versions. If you have an older version (other than 1.4.X) try to update the SDK.
Let me know how it goes.
Ibai
HI,
The Linux version I use is 16. 04, will it have an impact?
from pykinectazure.
Hi,
The Linux version should not be a problem, what I mean is the version of the k4a-tools you have installed. My guess is that you have an older version of the k4a-tools that does not include the color_2d_to_depth_2d function. So if you can, try to update the k4a-tools (I am not sure how since I work with the Kinect on Windows).
Also, just to make sure, do the rest of the examples work?
Ibai
from pykinectazure.
well.
I also want to know how to install SDK under windows. Can you share some tutorials for me?
from pykinectazure.
Check this link. In windows it should be easy, you just need to download the Microsoft installer and run it to install the SDK.
Tell me how it goes.
Ibai
from pykinectazure.
OK, I'll tell you later!Thanks!
from pykinectazure.
OK, I'll tell you later!Thanks!
from pykinectazure.
Hi,the rest of the examples don't work!
zhengzh@zhengzh:~/DK/DK_C++/pyKinectAzure-master/examples$ python exampleInfraredImageOpenCV.py
Traceback (most recent call last):
File "exampleInfraredImageOpenCV.py", line 5, in
from pyKinectAzure import pyKinectAzure, _k4a
File "../pyKinectAzure/pyKinectAzure.py", line 6, in
from config import config
File "../pyKinectAzure/config.py", line 43
f"\tcolor_format: {self.color_format} \n\t(0:JPG, 1:NV12, 2:YUY2, 3:BGRA32)\n\n"
^
SyntaxError: invalid syntax
from pykinectazure.
I think that error is because you are using Python 2 which does not support f-Strings, try to run the demos using Python 3.
Ibai
from pykinectazure.
You're right, but the final output error is the same...
zhengzh@zhengzh:/DK/DK_C++/pyKinectAzure-master/examples$ python3 --version/DK/DK_C++/pyKinectAzure-master/examples$ python2 --version
Python 3.5.2
zhengzh@zhengzh:
Python 2.7.12
zhengzh@zhengzh:/DK/DK_C++/pyKinectAzure-master/examples$ python --version/DK/DK_C++/pyKinectAzure-master/examples$ echo alias python=python3 >>
Python 2.7.12
zhengzh@zhengzh:/.bashrc/DK/DK_C++/pyKinectAzure-master/examples$
zhengzh@zhengzh:
zhengzh@zhengzh:/DK/DK_C++/pyKinectAzure-master/examples$ source /DK/DK_C++/pyKinectAzure-master/examples$ python exampleInfraredImageOpenCV.py/.bashrc/DK/DK_C++/pyKinectAzure-master/examples$ python --version
zhengzh@zhengzh:
Python 3.5.2
zhengzh@zhengzh:
Traceback (most recent call last):
File "exampleInfraredImageOpenCV.py", line 5, in
from pyKinectAzure import pyKinectAzure, _k4a
File "../pyKinectAzure/pyKinectAzure.py", line 6, in
from config import config
File "../pyKinectAzure/config.py", line 43
f"\tcolor_format: {self.color_format} \n\t(0:JPG, 1:NV12, 2:YUY2, 3:BGRA32)\n\n"
^
SyntaxError: invalid syntax
zhengzh@zhengzh:/DK/DK_C++/pyKinectAzure-master/examples$ python exampleDepthImageOpenCV.py/DK/DK_C++/pyKinectAzure-master/examples$ python exampleColorImageOpenCV.py
Traceback (most recent call last):
File "exampleDepthImageOpenCV.py", line 5, in
from pyKinectAzure import pyKinectAzure, _k4a
File "../pyKinectAzure/pyKinectAzure.py", line 6, in
from config import config
File "../pyKinectAzure/config.py", line 43
f"\tcolor_format: {self.color_format} \n\t(0:JPG, 1:NV12, 2:YUY2, 3:BGRA32)\n\n"
^
SyntaxError: invalid syntax
zhengzh@zhengzh:
Traceback (most recent call last):
File "exampleColorImageOpenCV.py", line 5, in
from pyKinectAzure import pyKinectAzure, _k4a
File "../pyKinectAzure/pyKinectAzure.py", line 6, in
from config import config
File "../pyKinectAzure/config.py", line 43
f"\tcolor_format: {self.color_format} \n\t(0:JPG, 1:NV12, 2:YUY2, 3:BGRA32)\n\n"
^
SyntaxError: invalid syntax
zhengzh@zhengzh:~/DK/DK_C++/pyKinectAzure-master/examples$
from pykinectazure.
True, should be Python 3.6 or above, sorry.
from pykinectazure.
I deleted the 1.2 version of the SDK, and now I am installing the 1.4.0 version of the SDK, but I have encountered the following problems:
zhengzh@zhengzh:~/Azure-Kinect-Sensor-SDK/scripts/docker$ sudo ./setup-ubuntu.shsudo: ./setup-ubuntu.sh:找不到命令
So I would like to ask you how to install version 1.4, thank you!
from pykinectazure.
Do you mean how to install the 1.4 SDK in Ubuntu? In the link I posted before there is information about it but I am not sure if it supports SDK 1.4.
I have just seen that you also asked in Microsoft's Azure-Kinect-Sensor-SDK, hopefully, they can help you with it.
Good luck!
from pykinectazure.
Yes, aren't you installing a 1.4.0 SDK?
from pykinectazure.
Currently, I am using the 1.4.1 SDK but in Windows 10 (I also used the 1.4.0 in Windows). But I have not tried in Ubuntu. In this issue, there is the link for the deb packages for the 1.4.1, however, I am not sure if that is useful for you.
from pykinectazure.
Thanks a lot!
Can you help me solve the following error?0.0..
zhengzh@zhengzh:~$ sudo apt install k4a-tools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
k4a-tools : 依赖: libk4a1.4 (= 1.4.1) 但是它将不会被安装
依赖: libc6 (>= 2.27) 但是 2.23-0ubuntu11.2 正要被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
If the following problem can not be solved, I can only install it under window
from pykinectazure.
Well, I have met the same problem under ubuntu 20.04. It is because the dependent order of the two packages. So please install libk4a1.4 before k4a-tools.
我在ubuntu20.04下安装的时候也遇到这样的问题,是依赖顺序的问题,你应该先安装libk4a1.4,再安装 k4a-tools,所以现在你需要做的是把安装好的包卸载了。(有可能是我记反了,这个只有你自己去尝试或者到Microsoft那里去发issue
from pykinectazure.
Thank you for the info!
Hopefully it helps with the problem.
from pykinectazure.
Related Issues (20)
- AttributeError: 'Tracker' object has no attribute '_handle' HOT 2
- Add record-length option to configuration?
- How can I save colored point clouds as .pcd or .ply by depthimage and colorimage? HOT 3
- Support for converting "k4arecorder" recordings?
- Open3dVisualizer runs slowly
- Offset in Y direction
- how to change color image and transformed color image to bgra32 format? HOT 1
- Support for synchronized captures? HOT 2
- Put K4ABT_JOINT_ constants into enum and use them consistently
- how to set exposure time/whilt balance/brightness value manually? HOT 1
- 'Tracker' object has no attribute '_handle', is the version problem?
- Run on GPU?
- something worng with infraredimage.py
- Set up the project again HOT 2
- Delay when capturing color images HOT 4
- Joint use of multiple kinects HOT 2
- Is it possible to access the raw sensory data with this library without processing in the host PC and just transfering it to a server?
- Persistence of body_id HOT 2
- Body and gesture tracking HOT 1
- Problem recording depth and color videos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pykinectazure.