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 sys | |
import os | |
import re | |
from optparse import OptionParser | |
import ConfigParser | |
try: | |
import pygccxml | |
except ImportError: |
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 cv2, subprocess | |
def adb(command): | |
proc = subprocess.Popen(command.split(' '), stdout=subprocess.PIPE, shell=True) | |
(out, _) = proc.communicate() | |
return out.decode('utf-8') | |
def image_position(small_image, big_image): | |
img_rgb = cv2.imread(big_image) | |
img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY) |