Changeset 4093
- Timestamp:
- 06/02/07 15:18:43 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/image_capture/trunk/image_capture/WorkModule.py
r4087 r4093 28 28 #!/usr/bin/env python 29 29 import threading 30 import wx 31 import time 30 import wx #for the graphics 31 import time #for the delay 32 import os #for the screen shot 32 33 33 34 class WorkClass: … … 68 69 def Process(self): 69 70 while self.is_running: 70 71 # TODO: add code for image capture 71 #-delay in 1/100 sec 72 #-quality 73 #-crop 399x500-0+0 74 os.system("import -window root -crop 399x500-0+0 -delay 100 -quality 20 /sdr/tx_image.jpeg") 72 75 76 #import -window root -crop 512x256-0+0 -quality 90 corner.png 73 77 # image = wx.Image("/sdr/wxpython_cover_2.jpg", wx.BITMAP_TYPE_JPEG) # load a jpeg from file 74 78 # image.Scale(self.width,self.height) 75 79 # image_data = image.GetData() #returns a giant string 76 if self.toggle == 1:77 my_file = open("/sdr/wxpython_cover_2.jpg", 'r')78 self.toggle = 079 else:80 my_file = open("/sdr/wxpython_cover_3.jpg", 'r')81 self.toggle = 182 80 81 82 my_file = open("/sdr/tx_image.jpeg", 'r') 83 83 image_data = my_file.read() 84 84 … … 96 96 self.data_signal.clear() 97 97 98 time.sleep(.5)98 #time.sleep(.5)