예제 #1
0
	def test(self, e):			#测试用
		"""global _WaitingHandler
		if _WaitingHandler:
			_WaitingHandler.Hide()
		else:
			_WaitingHandler=_ct.WaitingFrame(self.parent)"""
		#ss=self.Sizer
		#ss.Add(ImContainer(self, 'label', self.paths[0]))
		#self.Init()
		#print e.GetEventHandler()
		#print len(ss.GetChildren())
		for c in self.Sizer.GetChildren():
			si=c.GetWindow().image
			#print type(si.GetData())
			arr=_dp.cvtImObject(si)
			arr=_dp.adjustImSize(arr, (1000,650))
			cv2.imshow('test', arr)
			break
예제 #2
0
	def fuzzy_recognition(self, e=None):
		img=cv2.imread(self._image_path)
		self._image=_dp.cvtImObject(img)
		self.initBuffer()
예제 #3
0
	def pre_processing(self, e=None):
		img=_dp.cvtImObject(self._image)
		cv2.imshow('cv2_show', img)