Comments (6)
I searched and seems it happens a lot, in a lot of different applications. When there was a solution, it was rebooting. The updates I installed forced a reboot, but this was before I ran your requirements.txt
So I did. Looks like Linux developers are getting Windows Envy with requiring reboots after installation. This is the first time a pip install has ever required a reboot for me. Might be good to add it to your instructions in the readme.
Got further, put up a window and said pipeline created then failed at line 604 ht.run(), looked like it may not have found the OAK-D camera, so I ran it without the --show3d option and it seemed to work. Closed it, and retried with --show3d and it seems to be working now.
Looks like the OAK-D initialization/startup code isn't 100% reliable yet.
Thanks for the help and for sharing this code. I will learn a lot about using my OAK-D from studying and modifying this code.
from depthai_blazepose.
Can you tell me the version of open3d you are using ?
python3 -c "import open3d ; print(open3d.__version__)"
from depthai_blazepose.
>>> import open3d
>>> open3d.__version__
'0.12.0'
from depthai_blazepose.
I have installed the same version as yours but can't reproduce the problem.
The error you get in line 165 means that self.vis3d.get_render_option()
in line 164 returns None.
I wonder if you can reproduce the problem with a simpler pure open3d script.
Can you try to run the code below which draws a blue sphere on a black background ?
import open3d as o3d
import numpy as np
vis3d = o3d.visualization.Visualizer()
vis3d.create_window()
opt = vis3d.get_render_option()
opt.background_color = np.asarray([0, 0, 0])
mesh_sphere = o3d.geometry.TriangleMesh.create_sphere(radius=1.0)
mesh_sphere.paint_uniform_color([0.1, 0.1, 0.7])
mesh_sphere.compute_vertex_normals()
vis3d.add_geometry(mesh_sphere)
while True:
vis3d.poll_events()
vis3d.update_renderer()
from depthai_blazepose.
Doing your simpler script line by line in an interactive window I get:
>>> vis3d.create_window()
[Open3D WARNING] GLFW Error: GLX: Failed to create context: BadValue (integer parameter out of range for operation)
[Open3D WARNING] Failed to create window
False
>>> opt = vis3d.get_render_option()
>>> opt.background_color = np.asarray([0, 0, 0])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'background_color'
Maybe I'm missing something at the system level for GLX context. I'm really not familiar with GLFW/GLX but this system can use the OpenVINO GPU with the sample C++ code and net[i].setPreferableTarget(cv2.dnn.DNN_TARGET_OPENCL_FP16) in my code to do MobilenetSSD.v2_coco object detection.
from depthai_blazepose.
It is not a problem with Open3d. Like you, I am not familiar GLFW/GLX but it is probably a problem on your system. You said you have updated it recently. Have you rebooted after the update ? https://www.reddit.com/r/SolusProject/comments/cmjyxq/opengl_and_minecraft/
Otherwise, I suggest you to google "GLFW Error: GLX: Failed to create context: BadValue (integer parameter out of range for operation)". Hopefully it may give you some hints on solving the problem.
from depthai_blazepose.
Related Issues (20)
- using IR LED and mono cameras for skeleton detection HOT 15
- run as standalone network device on OAK-D Pro POE HOT 3
- [ImageManip(7)] [error] Invalid configuration or input image -skipping frame HOT 21
- Input for landmark regression too small HOT 2
- How to replace ColorCamera with XLinkIn node? HOT 1
- AttributeError: 'depthai.node.Script' object has no attribute 'setScriptData' HOT 1
- align the person HOT 9
- RuntimeError: No available devices HOT 6
- Error in the edge mode HOT 3
- 'Couldn't read data from stream: 'manager_out' (X_LINK_ERROR)'
- What is the max FPS for real time pose estimation? HOT 1
- 'Couldn't read data from stream: 'manager_out' (X_LINK_ERROR)' on OAK-D S2, M1 Mac
- glitchiness HOT 1
- Renderer Argument -3 World Attribute Error
- Out of Memory Error
- requirements.txt update for RPi4
- Device not recognized for OAK-D W OV9782
- Wrong 3d hand pose
- Question about getting spatial data of each landmark
- How are Y coordinates actually mean to be interpreted? HOT 1
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 depthai_blazepose.