Skip to content

请问336L使用python出现contiguous报错是什么问题 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
YiQiuZHAO opened this issue Apr 3, 2025 · 2 comments
Open

请问336L使用python出现contiguous报错是什么问题 #124

YiQiuZHAO opened this issue Apr 3, 2025 · 2 comments

Comments

@YiQiuZHAO
Copy link

numpy 报错not contiguous,使用.copy()读出后整个数组值相等

使用orbbec viewer连接就正常
python SDK试了1.3.3、1.3.4、2.0.7
python版本3.12.8
numpy==2.2.4
opencv-python==4.11.0.86

跑自带例程也是一样的问题

@Gabriel-Ning
Copy link

I have encountered a similar issue before. The error related to NumPy's "not contiguous" array is likely caused by the version of NumPy you're using.

In my case, switching to an earlier version of NumPy solved the problem. I suggest trying:

pip install numpy==1.24.4

After downgrading, the SDK examples worked normally,
Let me know if this helps!

@YiQiuZHAO
Copy link
Author

I have encountered a similar issue before. The error related to NumPy's "not contiguous" array is likely caused by the version of NumPy you're using.

In my case, switching to an earlier version of NumPy solved the problem. I suggest trying:

pip install numpy==1.24.4

After downgrading, the SDK examples worked normally, Let me know if this helps!

是的,提完问题第二天就解决了,忘了说

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants