739 questions
-3
votes
2
answers
88
views
Return the depth of an object with multiple properties [closed]
I'm doing a coding exercise. I must create a recursive function that return the depth of an object. Said object has several properties and arrays of children, emulating a family tree:
const foo = { ...
Tooling
0
votes
1
replies
82
views
Object detection + metric depth on mobile for outdoor navigation (blind users)
I’m building a mobile navigation app (android) for blind users. Two core features needed:
real-time detection of outdoor objects (cars, benches, curbs, stairs, pedestrians) on the phone camera.
a ...
0
votes
0
answers
53
views
React Native GiftedChat: Maximum update depth exceeded error on minimal example
I am building a chatbot screen in React Native CLI using the react-native-gifted-chat package (version 0.16.3). However, when I run even a minimal example, I get the following error:
Maximum update ...
0
votes
0
answers
46
views
Is there a way to use attachMovie in different layers?
I'm currently writing a code that when executed, it'll attach lots of movieClips into the _root property. Is there is a way to choose which layer these movieClips are attached into?
For example:
...
1
vote
0
answers
222
views
How to Generate a Point Cloud from an Image with Intrinsic Camera Parameters and a Depth Map?
I am working on generating a point cloud from an image, and I have the following data:
1. An image (height x width)
2. Intrinsic camera parameters (camera matrix).
3. A depth map of the image (height ...
0
votes
1
answer
125
views
Sony ToFAR: Coexistence of ToFARToFManager and XR Origin's main camera
I am currently trying to implement a simple Unity app for obstacle detection using iPhone PointCloud data obtained by ToFAR.
In addition to ToF AR, I have implemented AR display content and originally ...
0
votes
1
answer
41
views
I have a "depth" problem with z-index during transiton
I want the clicked box to be most top during transition. I tried some ways but couldn't figure out. This is short (minimized) form of code. I removed my failed tries like loops etc. to achive my aim. ...
0
votes
1
answer
150
views
Kinect v1 Camera not connect with Kinect SDK
I tried to connect Kinect V1 depth camera with my windows lap. It couldn't connect with Kinect for Windows SDK v1.8. But i can use kinect with "Processing" IDE. I need to record 3D point ...
0
votes
1
answer
149
views
Qt Vulkan: How to enable depth test?
I use this Vulkan under QML approach to integrate Vulkan with QtQuick. But I noticed that the depth test is disabled (the model that was rendered later overlaps the first model even if it is behind).
...
0
votes
1
answer
55
views
Check if the number of nodes at any depth of the binary tree is equal to the height of the tree
I'm trying to do a function that checks if the number of nodes at any depth of the binary tree is equal to the height of the tree. Here's the code:
#include <stdio.h>
#include <stdlib.h>
/...
2
votes
0
answers
576
views
ARCore does not work in certain Android environments
I am testing the aar file extracted with Unity in the Android environment.
The problem is that ARCore does not work on the Galaxy S22 Ultra device.
The way to implement this bug is to reboot the ...
0
votes
0
answers
68
views
Extracting max bottom depth in NetCDF files
I have global 4 dimenions (lon, lat, time and depth) with two variables NetCDF files for environmental marine variables. I am looking to extract data from the bottom-most depth for each cell that does ...
0
votes
0
answers
68
views
Disparity Map obtained through StereoSGBM is flickering
I am trying to implement stereo vision using 2 RPI v2 Cameras kept 8.43cm apart.
After performing camera calibration and rectification, I used StereoSGBM to compute disparity map.
But for some reason, ...
0
votes
1
answer
80
views
how to count the number of keys in an json in front of a nested scalar wih jq
I have deep nested jsons and I want to count how many keys I have in front of a scalar with jq.
Here a very simplified example
{
"one": {
"two": {
"...
1
vote
1
answer
92
views
PHP, RecursiveIteratorIterator, depth of 2 only
I would like to retrieve all subdirectories of a directory, but only those subdirectories that have a depth of 2 only.
By now, I've written this code, which works fine.
$directory="./...
0
votes
1
answer
100
views
Get the depth of a List in flutter/dart
How do you get the depth of a List in flutter/ dart language, given a list like this one
List testRy = [1,2,[3,4,[5,6],7,[8,[9,91]],10],11,12];
Can you help me create something like an extension for ...
0
votes
0
answers
152
views
How to get the physical size - width,height of captured image?
I'm using ARKit and need to count physical size of captured image, for now I'm only have distance from camera to object.
One of my idea was to have Max top point and Max bottom so then with hitTest I ...
1
vote
2
answers
175
views
How can I add the correct depth value to a nested json object when children have multiple parents
I'm facing an issue when trying to add a depth value to each object to a nested array.
The specific issue I'm facing is that when an object has multiple siblings the depth is applied to the first but ...
1
vote
0
answers
473
views
realsense d415 with yolov8 trained model
I'm trying to detect object and get the depth using realsense d415 and yolov8 trained model.
I've already trained yolov8 and I have best.pt file about it.
So I want to use this best.pt file to put it ...
-1
votes
1
answer
157
views
depth map of specific object
everyone!
i am trying to find distance of an object(apple for example) from my camera(using a single camera) by using depth map created by neural network(like pydnet or MiDaS)
I have two problems:
I ...
0
votes
1
answer
713
views
How to write depth data (AVDepthData) to photo file from AVCapturePhoto object?
I've implemented solution similar to Apple's example of capturing depth data with iPhone lidar camera. Main code snippets are as follow:
Setting depth formats
let device = AVCaptureDevice.default(....
2
votes
0
answers
444
views
Problems with camera calibration and calculating stereo disparity map
I'm working on a project where I need to use stereoscopic vision to calculate the depth and distance of people and objects from the camera. I'm using OpenCV and the IMX219-83 camera from Waveshare ...
0
votes
2
answers
564
views
How to convert Python script to ROS script? (Measuring distance between two points using RealSense depth camera)
I have written a Python script which uses a RealSense depth camera to measure the distance between two points in the input image. The distance returned is very accurate. I have tried converting this ...
1
vote
0
answers
312
views
Stereo Camera rectification using OpenCV
I have two images from my stereo camera model is ZED 1 from stereoLabs. I want to rectify those images, This is the code I used to try that :
import numpy as np
import cv2
# Load the calibration ...
1
vote
0
answers
207
views
How does glPolygonOffset work internally?
I'm trying to understand how glPolygonOffset works from the inside. After researching, I found this formula:
o = m * factor + r * units
but I don't understand how the "m" parameter (depth ...
0
votes
1
answer
382
views
jq: select top two level of the object [duplicate]
I have some json data that looks like:
{
"a1": {
"b1": {
"c1": {...},
"c2": [...]
},
"b2": {
...
3
votes
3
answers
759
views
jq get x levels of keys and remove all the rest
How can I get the first x levels of depth of an object and remove the rest using jq ?
I have the following example:
{
"Service1": {
"Production": {
"Location 1&...
1
vote
1
answer
429
views
Using jq, how to determine the maximum depth of a JSON document if it cannot be loaded into memory?
The downloadable binaries for the C implementation of jq come with a rather low hard-coded value of MAX_PARSING_DEPTH (currently 256).
Without having to recompile jq, what are my options for ...
0
votes
1
answer
411
views
GStreamer - Save depth map video from ZED 2
I have a ZED 2 camera that gives me the not normalized depth map values (real depth values) in GRAY16_LE format and I want to save this information without loosing the real depth values (so I can ...
1
vote
0
answers
428
views
How to read information in .ply file
i want to understand the point cloud data generated by zed. and my saved .ply file looks like this
ply
format ascii 1.0
element vertex 1614755
property float x
property float y
property float z
...
1
vote
0
answers
228
views
how I can evaluation the depth map result?
Code section 1
!mkdir -p inputs
!mkdir -p outputs_midas
!mkdir -p outputs_leres
Code section 2
Clone git repo
!git clone https://github.com/compphoto/BoostingMonocularDepth.git
!wget https://sfu.ca/~...
0
votes
1
answer
25
views
Nesting depth and check of valid or invalid values
I have a script for counting the paranthese depth of a text. My function counts the depth and checks for open parantheses, and is supposed to return the following tupel: (depth, valid, balanced).
The ...
1
vote
1
answer
4k
views
How to set max_depth and max_leaves in Python XGboost
I have some questions regarding the max_depth and max_leaves hyperparams in XGBoost (I'm using Python).
Let's go through some examples.
Example 1.
In the following case I have set:
max_depth = 3
...
-6
votes
1
answer
444
views
creating a recursive function to show the depth of numbers of list in dictionary [closed]
Design a function depth_map which returns a dictionary whose keys are the depths of the items in and the value for a given key is a list of the items at that depth. The depth of an object in a ...
0
votes
1
answer
141
views
Sort an array of floats and apply the same sorting sequence to other arrays C++
I am using the following insertion sort function to sort an array of Z-depth float values:
for (int i = 1; i < n; i++)
{
float temp = depth[i];
for (j = i - 1; j >= 0 && depth[j] ...
1
vote
0
answers
83
views
iOS 16 has more noise in stream of raw depth values
I'm having an issue with depth values using iOS 16. I'm getting noisier depth data from my AVFCaptureSession on iOS 16 than iOS 15 and below. Has something changed for iOS 16? If anyone has ...
2
votes
0
answers
417
views
Possible to access Apple Watch Ultra Depth Data?
Does anyone know if it is possible to access the apple watch ultra depth data from diving?
Trying to find api access for this.
0
votes
1
answer
876
views
OpenGL compute shaders producing incorrect texture coordinates from invocation ID
I have a compute shader that samples a depth sampler2D, however when using texture() the result is weird with some jagged edges. If I use texelFetch() then it works fine, so I would guess its an issue ...
0
votes
1
answer
764
views
Stream Web Depth Camera (Intel D455) with python
I'm trying to stream the depth and RGB video of a depth camera (Intel D455) through web.
I'm re-using a script from here: https://pyshine.com/Live-streaming-multiple-videos-on-a-webpage/
My probleme ...
0
votes
1
answer
275
views
What is the definition of depth in the task of depth completion - KITTI dataset
What is the depth definition of the pixels in an image? In the sketch map as following, if the target position of the red star represent the pixels with depth in its corresponding image, I am not sure ...
1
vote
1
answer
108
views
How to check for substantial change in two depth frames?
My goal is to detect any change in frames(single channel. each pixel is depth value). On app init, I take average of all corresponding pixels of first 30 frames so one average background frame will be ...
0
votes
1
answer
433
views
depth camera interpretation of data ROS
I am using ROS with a depth camera, and the data for each pixel is 4 bytes. Example: 0,0,192,127
I am trying to extract the distance to a point but I don't know what the 4 numbers represent.
3
votes
1
answer
770
views
Incorrect conversion from Raw RGB Depth image to gray
I am working with a simulation in Python equipped with a depth sensor. The visualization it's done in C++. The sensor gives me the following image that I need to convert to gray.
For the conversion, ...
0
votes
0
answers
355
views
How to convert depth16 image into 3D models in Android Studio
Most of my work now is based on this project: https://github.com/plluke/tof
I can already get depth image on my Android phone (see below) but my ultimate goal is to generate a 3D model.
Is there any ...
0
votes
1
answer
70
views
Values don't change as they should because of recursion depth
I am making checkers. I encountered quite a big problem. The code below describes cells king can move on. 1 cell is 100x100. He starts from (550, 50). This picture describes current_battlefield:
And ...
2
votes
0
answers
488
views
PCA for ellipse fitting
I have a depth video stream (grayscale) of a pen and pen-like objects. Since they are mostly of an ellipse shape, I want to fit an ellipse using PCA and get real-time output of ellipse angles.
The ...
0
votes
1
answer
66
views
Comparing the number of nodes at a given depth in Prolog
Given two binary trees T1 and T2 having the same height, I would like to know how to check if the number of nodes of T1 is equal to the number of nodes in T2, for each value of depth D.
I wrote a ...
0
votes
1
answer
115
views
Prolog - Find the depth of an element in a binary tree
I would like to know how I can find the depth of a given element E in a binary tree.
For simplicity, the tree has no repeated elements.
I tried:
ElemDepth(E,t(E,T1,T2), D).
ElemDepth(E,t(M,T1,T2), D):-...
1
vote
1
answer
769
views
Depth-first search how it decides to visit node
Imagine we have a graph like this:
The DFS would search it in the order of the digits in the picture.
I wonder how it knows when to pick 6 over 8.
I know it searches for the deepest part first but ...
0
votes
1
answer
112
views
Correction Function to Balance Depth
I have a depth image with a shape of 11 x 23, and I do want to balance the depth in all cells using the fact that the depth in the four corners is the same, the values are shown in the drawing here:
...