本文整理汇总了Python中options.Options.show方法的典型用法代码示例。如果您正苦于以下问题:Python Options.show方法的具体用法?Python Options.show怎么用?Python Options.show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类options.Options
的用法示例。
在下文中一共展示了Options.show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: vars
# 需要导入模块: from options import Options [as 别名]
# 或者: from options.Options import show [as 别名]
from gripper.TurnTableControl import *
from gripper.PyControl import *
from gripper.xboxController import *
from pipeline.bincam import BinaryCamera
from options import Options
import argparse
ap = argparse.ArgumentParser()
ap.add_argument("-s", "--show", required=False, action="store_true")
args = vars(ap.parse_args())
bincam = BinaryCamera("./meta.txt")
bincam.open()
options = Options()
options.show = args["show"]
options.record = False
t = TurnTableControl() # the com number may need to be changed. Default of com7 is used
izzy = PyControl(115200, 0.04, [0, 0, 0, 0, 0], [0, 0, 0])
# same with this
c = XboxController([options.scales[0], 155, options.scales[1], 155, options.scales[2], options.scales[3]])
izzy.stop()
# izzy.gotoState(None, .1, None, None, None, None])
示例2: vars
# 需要导入模块: from options import Options [as 别名]
# 或者: from options.Options import show [as 别名]
Comment or uncomment "options.record = True"
"""
from gripper.TurnTableControl import *
from gripper.PyControl import *
from gripper.xboxController import *
from pipeline.bincam import BinaryCamera
from options import Options
from lfd import LFD
import argparse
ap = argparse.ArgumentParser()
ap.add_argument('-s', '--show', required=False, action='store_true')
args = vars(ap.parse_args())
bincam = BinaryCamera('./meta.txt')
bincam.open()
options = Options()
options.show = args['show']
options.record = False
t = TurnTableControl() # the com number may need to be changed. Default of com7 is used
izzy = PyControl(115200, .04, [0,0,0,0,0],[0,0,0]); # same with this
c = XboxController([options.scales[0],155,options.scales[1],155,options.scales[2],options.scales[3]])
izzy.stop()
#izzy.gotoState(None, .1, None, None, None, None])
示例3: BinaryCamera
# 需要导入模块: from options import Options [as 别名]
# 或者: from options.Options import show [as 别名]
from Net.tensor import tensornet, net2
from pipeline.bincam import BinaryCamera
from options import Options
import cv2
import numpy as np
bc = BinaryCamera('./meta.txt')
bc.open()
options = Options()
options.show = True
options.record = False
tfnet = net2.NetTwo()
sess = tfnet.load(var_path=options.tf_dir + 'net2/net2_01-21-2016_02h14m08s.ckpt')
im = bc.read_binary_frame(show=options.show, record=False)
im = np.reshape(im, (125, 125, 1))
print(tfnet.output(sess, im))
sess.close()
sess = tfnet.load(var_path=options.tf_dir + 'net2/net2_01-21-2016_02h14m08s.ckpt')
print(tfnet.output(sess, im))
sess.close()