Skip to content

Instantly share code, notes, and snippets.

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)
@YashMakan
YashMakan / cpp2c.py
Created November 24, 2020 15:13 — forked from katyo/cpp2c.py
import sys
import os
import re
from optparse import OptionParser
import ConfigParser
try:
import pygccxml
except ImportError: