Giter VIP home page Giter VIP logo

Comments (6)

wb666greene avatar wb666greene commented on July 18, 2024 1

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.

geaxgx avatar geaxgx commented on July 18, 2024

Can you tell me the version of open3d you are using ?
python3 -c "import open3d ; print(open3d.__version__)"

from depthai_blazepose.

wb666greene avatar wb666greene commented on July 18, 2024
>>> import open3d
>>> open3d.__version__
'0.12.0'

from depthai_blazepose.

geaxgx avatar geaxgx commented on July 18, 2024

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.

wb666greene avatar wb666greene commented on July 18, 2024

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.

geaxgx avatar geaxgx commented on July 18, 2024

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)

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.