本文整理匯總了Python中visualizer.Visualizer.visualize方法的典型用法代碼示例。如果您正苦於以下問題:Python Visualizer.visualize方法的具體用法?Python Visualizer.visualize怎麽用?Python Visualizer.visualize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類visualizer.Visualizer
的用法示例。
在下文中一共展示了Visualizer.visualize方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: EpisodeBuilder
# 需要導入模塊: from visualizer import Visualizer [as 別名]
# 或者: from visualizer.Visualizer import visualize [as 別名]
import argparse
from episode_builder import EpisodeBuilder
from visualizer import Visualizer
DEFAULT_FILE_PATH = "data/template.json"
parser = argparse.ArgumentParser(description="Visualize Conway's Game of Life")
parser.add_argument("-file_path", default=DEFAULT_FILE_PATH)
args = parser.parse_args()
file_path = args.file_path
episode_builder = EpisodeBuilder(file_path)
episode = episode_builder.get_episode()
visualizer = Visualizer(episode)
visualizer.visualize()
示例2: Visualizer
# 需要導入模塊: from visualizer import Visualizer [as 別名]
# 或者: from visualizer.Visualizer import visualize [as 別名]
from visualizer import Visualizer
vis = Visualizer( (1,1) )
vis.add_3dplot("./poseplotter/data/video2/new_stereo_results.csv","./poseplotter/data/video2/ground_truth_results_.csv",(0,0),2,1,xrange=(-20,20),yrange=(-20,20),zrange=(20,110))
#vis.add_video("./poseplotter/data/video.avi",(0,1),1,1,title="Video File")
#vis.add_video("./poseplotter/data/tracking.avi",(1,1),1,1,title="Tracking File")
vis.visualize()