Intel Realsense Pyrealsense get_distance()函数 (获取给定像素的深度值)

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()

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Dontla

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值