#!/usr/bin/env python2 # -*- coding: utf-8 -*- import argparse import os import cv2 import numpy as np import cv_tools as cvt from common import DebugLog debug_log = DebugLog() def main(): opt = process_command_line() print opt targets = sorted(set(opt.files) - set([ opt.reference, ])) image0 = cvt.file_to_cv2(opt.reference) for image_fi in targets: basename = os.path.basename(image_fi) debug_log("Matching", os.path.basename(opt.reference), "with", basename) image = cvt.file_to_cv2(image_fi)
# Importando funciones de otros archivos from camera_cv_tools import CameraLink from camera_cv_tools import color_to_gray from common import DebugLog, get_utc_now_ms import dft_stitch as dft import motor_api from motor_uart import MotorLink from sweep_controller import SweepController """ ============================= Variables Globales ============================= """ debug_loggin = DebugLog() # Llaves son los websockets y los valores son los tipos de cliente websockets = dict() # Guardando los objetos globales objects = dict() # Para este uso del metodo MotorLink, debemos ver que TTY representa el microscopio y el otro argumento son los baudrate motor_execution = MotorLink("/dev/ttyACM0", 250000) # Esto se tiene que cambiar cuando se quite el sh # path_to_download_image = '../images' """ ============================ Codigo Valioso ============================