Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import call | |
from pylab import * | |
from mpl_toolkits.axes_grid1 import make_axes_locatable | |
from matplotlib.patches import Rectangle | |
from time import sleep | |
import cv2 | |
# Read template image | |
templateImageGray = cv2.imread("./images/templateImage.png", cv2.IMREAD_GRAYSCALE) | |
templateImageGray = cv2.resize(templateImageGray, (0, 0), fx=16, fy=16, interpolation=cv2.INTER_CUBIC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from glob import glob | |
import cv2 | |
import numpy as np | |
from numpy import arange | |
import matplotlib.pyplot as plt | |
from matplotlib.figure import Figure | |
from matplotlib.backend_bases import key_press_handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#This software is released under the MIT License, see below. | |
#----------------License---------------- | |
#The MIT License (MIT) | |
# | |
#Copyright (c) <2015> <Kei Minagawa> | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PySide.QtGui import * | |
from PySide.QtCore import QTimer | |
app = QApplication([]) | |
widget = QWidget() | |
textbox = QLineEdit() | |
startbutton = QPushButton("start/stop") | |
resetbutton = QPushButton("reset") | |
timelabel = QLabel("00:00:00") | |
counttimer = QTimer() | |
hboxlayout = QHBoxLayout() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PySide.QtGui import QApplication, QMainWindow, QAction, QActionGroup, QWidget, QCursor, QPainter | |
from PySide.QtCore import QTimer | |
import PySide.QtCore as QtCore | |
class W(QWidget): | |
def __init__(self): | |
QWidget.__init__(self) | |
self.resize(400,400) | |
self.myIsMousePressing = False | |
self.p = QPainter(self) |