Intel Realsense pyrealsense2 points对象
生活随笔
收集整理的這篇文章主要介紹了
Intel Realsense pyrealsense2 points对象
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
真是累啊,好不容易終于找到了points對象的文檔了。。。
隱藏得太深!!
通過dir()搜索對象方法,點擊方法才找到的
points = color_frame.as_points()# print(type(a)) # <class 'pyrealsense2.pyrealsense2.points'> # print(dir(a))# ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__nonzero__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'as_depth_frame', 'as_frame', 'as_frameset', 'as_motion_frame', 'as_points', 'as_pose_frame', 'as_video_frame', 'data', 'export_to_ply', 'frame_number', 'frame_timestamp_domain', 'get_data', 'get_data_size', 'get_frame_metadata', 'get_frame_number', 'get_frame_timestamp_domain', 'get_profile', 'get_texture_coordinates', 'get_timestamp', 'get_vertices', 'is_depth_frame', 'is_frame', 'is_frameset', 'is_motion_frame', 'is_points', 'is_pose_frame', 'is_video_frame', 'keep', 'profile', 'size', 'supports_frame_metadata', 'swap', 'timestamp'] points.export_to_ply()from pyrealsense2.points.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_builtinsfrom .frame import frameclass points(frame):""" Extends the frame class with additional point cloud related attributes and functions. """def export_to_ply(self, arg0, arg1): # real signature unknown; restored from __doc__"""export_to_ply(self: pyrealsense2.pyrealsense2.points, arg0: str, arg1: pyrealsense2.pyrealsense2.video_frame) -> NoneExport the point cloud to a PLY file"""passdef get_texture_coordinates(self, dims=1): # real signature unknown; restored from __doc__"""get_texture_coordinates(self: pyrealsense2.pyrealsense2.points, dims: int=1) -> pyrealsense2.pyrealsense2.BufDataRetrieve the texture coordinates (uv map) for the point cloud"""passdef get_vertices(self, dims=1): # real signature unknown; restored from __doc__"""get_vertices(self: pyrealsense2.pyrealsense2.points, dims: int=1) -> pyrealsense2.pyrealsense2.BufDataRetrieve the vertices of the point cloud"""passdef size(self): # real signature unknown; restored from __doc__""" size(self: pyrealsense2.pyrealsense2.points) -> int """return 0def __init__(self, *args, **kwargs): # real signature unknown; restored from __doc__"""__init__(*args, **kwargs)Overloaded function.1. __init__(self: pyrealsense2.pyrealsense2.points) -> None2. __init__(self: pyrealsense2.pyrealsense2.points, arg0: pyrealsense2.pyrealsense2.frame) -> None"""pass總結
以上是生活随笔為你收集整理的Intel Realsense pyrealsense2 points对象的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: pyrealsense2 frame_m
- 下一篇: python opencv cv.wai