예제 #1
0
 def start_capture_map(self):
     self.back_frame.destroy()
     Capture(self.root, "map")
예제 #2
0
from src.capture import Capture
from src.config import Config
from src.detect import Detect
from src.display import Display
from src.label import Label
from src.save import Save
from src.transform import Transform
from sys import argv

if len(argv) < 2:
    print('You must specify a name argument.')

else:
    config = Config().get()
    capture = Capture(config)
    trans = Transform(config)
    display = Display()
    detect = Detect()
    label = Label()

    with capture, display:
        key = ''
        while key != 'q':
            success = False
            image = capture.frame()
            disk = trans.image_copy(image)
            disk = trans.image_color_flip(disk)
            small = trans.scale_image(image)
            locs = detect.locations(small)
            if len(locs) == 1:
                success = True
예제 #3
0
 def start_capture_dw(self):
     self.back_frame.destroy()
     Capture(self.root, "dw")
예제 #4
0
from src.capture      import Capture
from src.config       import Config
from src.detect       import Detect
from src.display      import Display
from src.label        import Label
from src.local_camera import LocalCamera
from src.save         import Save
from src.transform    import Transform
from sys              import argv


config  = Config().get()
camera  = LocalCamera(config)
capture = Capture(config, camera)
trans   = Transform(config)
display = Display()
detect  = Detect()
label   = Label()

if len(argv) < 2:
    print('You must specify a name argument.')

else:
    with capture, display:
        key = ''
        while key != 'q':
            success = False
            image = capture.frame()
            disk  = trans.image_copy(image)
            disk  = trans.image_color_flip(disk)
            small = trans.scale_image(image)