本文整理汇总了Python中Scanner.doit方法的典型用法代码示例。如果您正苦于以下问题:Python Scanner.doit方法的具体用法?Python Scanner.doit怎么用?Python Scanner.doit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Scanner
的用法示例。
在下文中一共展示了Scanner.doit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: import Scanner [as 别名]
# 或者: from Scanner import doit [as 别名]
Net_12.train_12net(x_train_12_a, y_train_12_a)
print 'trainning 24-net.....................................................'
Net_24.train_24net(x_train_24_a,x_train_12_a, y_train_24_a)
print 'trainning 48-net.....................................................'
Net_48.train_48net(x_train_48_a,x_train_24_a, y_train_48_a)
print 'trainning 12-calibration_net.........................................'
Calibration_12.train_12calibration_net(x_train_12_b, y_train_12_b)
print 'trainning 24-calibration_net.........................................'
Calibration_24.train_24calibration_net(x_train_24_b, y_train_24_b)
print 'trainning 48-calibration_net.........................................'
Calibration_48.train_48calibration_net(x_train_48_b[:100], y_train_48_b[:100])
net_12 = Net_12.get_12net()
net_24 = Net_24.get_24net()
net_48 = Net_48.get_48net()
calibration_12 = Calibration_12.get_12calibration()
calibration_24 = Calibration_24.get_24calibration()
calibration_48 = Calibration_48.get_48calibration()
'''
imageNames=Scanner.getImageNames(testImageFolder2)
imageNames.sort()
for imageName in imageNames:
print ('processing image:'+imageName)
Scanner.doit(testImageFolder2,imageName,resultFolder)
print '----end----'