-
Notifications
You must be signed in to change notification settings - Fork 69
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
Depth value in script #23
Comments
Hi, instead of doing N requests where each request retrieves data for 1 landmark, you can do only 1 request for the N landmarks. depthai_blazepose/BlazeposeDepthai.py Line 430 in a3ce15a
You could have instead something like: cfg.setROIs([conf_data_1, conf_data_2, ...conf_data_N]) so with one conf_data_i for every landmark you want. It should be faster as there would be only one round-trip. |
I'm currently using the "On Edge" version of your module, and this code is non present do I have to modify int conf_data.roi = Rect(rect_center, rect_size)
cfg = SpatialLocationCalculatorConfig()
cfg.addROI(conf_data) to conf_data_1.roi = Rect(body.landmarks_1, body.landmarks_1)
conf_data_2.roi = Rect(body.landmarks_2, body.landmarks_2)
...
cfg = SpatialLocationCalculatorConfig()
cfg.addROI([conf_data_1, conf_data_2, ...]) |
I've try something else. I've linked the stereo depth capture to the script as : And then try to get it in the script as :
But the
Am doing it wrongly ? |
You can either use:
The arguments in your code: Why do you want to get the depth frame in the script ? |
I want to make it in the script, because, I want the real stereo capture estimation of the landmarks in the scene. And when I've try to implement it on the host size, by just getting the depth frame and match the x y coords of the landmarks in the depth capture. I do it to frequently and so the program slowed and it was not performant. What I wanted to do by making it directly in the script, is too get the positions x, y of the var In my project, I have to generate the landmarks of the body, and by a click event, add a point on the display. The goal is to keep the point always at the same place where he was fixed on the human body. For exemple, if you put it on the arm, I defines vector between shoulder -> point and elbow -> point to keep the generate point always at the same position. Then I need the depth value, because the body can rotate and I have to respect the positon. It was interessant for the case of my subject goes way of the camera, the size of his body change, and then my position define for a added point, depend on the first capture. Then if the size of the body change, the point will not be at the same place. And I suppose that the depth value could maybe help this kind of problem But I think that i'll try to make it only with 2D landmarks position that seems quite good for my goal to keep it on the same place. |
Hi, again :x,
I would like to know, if there's an easy way to modify your script in order to replace the z value generated by the model, with the z value perceived by stereo capture. At the moment, I've implemented a queue with the stereo output in, but the number of request on the pipeline for the depth slowed the retrieval of the body data.
The text was updated successfully, but these errors were encountered: