from depth_frame.py
# encoding: utf-8
# module pyrealsense2.pyrealsense2
# from D:\20191031_tensorflow_yolov3\python\lib\site-packages\pyrealsense2\pyrealsense2.cp36-win_amd64.pyd
# by generator 1.147
"""
LibrealsenseTM Python Bindings
==============================
Library for accessing Intel RealSenseTM cameras
"""
# imports
import pybind11_builtins as __pybind11_builtins
from .video_frame import video_frame
class depth_frame(video_frame):
""" Extends the video_frame class with additional depth related attributes and functions.
使用其他与深度相关的属性和功能扩展video_frame类"""
def get_distance(self, x, y): # real signature unknown; restored from __doc__
"""
get_distance(self: pyrealsense2.pyrealsense2.depth_frame, x: int, y: int) -> float
Provide the depth in meters at the given pixel
提供给定像素的深度(以米为单位)
"""
return 0.0
def __init__(self, arg0): # real signature unknown; restored from __doc__
""" __init__(self: pyrealsense2.pyrealsense2.depth_frame, arg0: pyrealsense2.pyrealsense2.frame) -> None """
pass
注:频繁调用该函数,会让程序崩溃,不建议使用,参见:Intel Realsense C/C++ 转 python (1)rs-hello-realsense 获取摄像头正中心对应的深度数据 get_distance()