Is it possible to get depth map from a ZED X ONE? If so, how do to access depth map?
def main():
filepath = opt.input_svo_file # Path to the .svo file to be playbacked
input_type = sl.InputType()
input_type.set_from_svo_file(filepath) # Set init parameter to run from the .svo
init = sl.InitParameters(input_t=input_type, svo_real_time_mode=False)
init.depth_mode = sl.DEPTH_MODE.PERFORMANCE # Set depth mode to performance
cam = sl.Camera()
status = cam.open(init)
Logging this:
Camera Model ZED XOne GS unsupported
Hi @han12580
you must use two coupled ZED X One to create a virtual stereo camera to retrieve depth information.
Read more here.
Well, there could be a way to get a good estimate if there is a known feature in your scene. For example if a street sign, cars, or even an adult is present; it could be used as a reference to estimate at least its distance. Do I have specific coding examples of how to do this, but I know some backup cameras work this way.
There are many interesting mono-camera depth estimator libraries.
For example this one from NVIDIA, but the ZED SDK does not provide direct support to it.
You can use the ZED SDK API to retrieve the color stream, the camera calibration parameters, and use the required information with the depth net library.