One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
{ | |
"RJ": ["TJRJ", "TRE-RJ", "TRT-1"], | |
"BA": ["TJBA", "TRE-BA", "TRT-5"], | |
"AC": ["TJAC", "TRE-AC", "TRT-14"], | |
"AL": ["TJAL", "TRE-AL", "TRT-19"], | |
"AM": ["TJAM", "TRE-AM", "TRT-11"], | |
"AP": ["TJAP", "TRE-AP", "TRT-8"], | |
"CE": ["TJCE", "TRE-CE", "TRT-7"], | |
"DF": ["TJDF", "TRE-DF", "TRT-10"], | |
"ES": ["TJES", "TRE-ES", "TRT-17"], |
from shutil import copy | |
from sys import argv | |
NAMES = ["drawable-hdpi-icon.png", "drawable-ldpi-icon.png", "drawable-mdpi-icon.png", "drawable-xhdpi-icon.png", "drawable-xxhdpi-icon.png", "drawable-xxxhdpi-icon.png"] | |
#execute python icon_rename.py nome_do_icone.png | |
if len(argv) < 2: | |
print "Falta argumentos!" | |
exit() |
import cv2 | |
import numpy as np | |
FONTE = cv2.FONT_HERSHEY_SIMPLEX | |
img_binaria = cv2.imread('formas_binario.jpg') | |
blurred = cv2.GaussianBlur(img_binaria, (5, 5), 0) | |
img_binaria_gray = cv2.cvtColor(blurred, cv2.COLOR_BGR2GRAY) |
from bs4 import BeautifulSoup as bs | |
import requests, sys, re | |
from termcolor import colored | |
if len(sys.argv) < 2: | |
print colored("Falta o argumento palavra: Tente 'python main.py palavra'", 'red') | |
exit() | |
elif len(sys.argv) > 2: | |
print colored("O programa so toma apenas um argumento, o primeiro argumento sera utilizado.", 'red') |
from bs4 import BeautifulSoup as bs | |
import requests, sys, re | |
from termcolor import colored | |
if len(sys.argv) < 2: | |
print colored("Falta o argumento palavra: Tente 'python main.py palavra'", 'red') | |
exit() | |
elif len(sys.argv) > 2: | |
print colored("O programa so toma apenas um argumento, o primeiro argumento sera utilizado.", 'red') |
from bs4 import BeautifulSoup as bs | |
import requests, sys, re | |
from termcolor import colored | |
if len(sys.argv) < 2: | |
print colored("Falta o argumento palavra: Tente 'python main.py palavra'", 'red') | |
exit() | |
elif len(sys.argv) > 2: | |
print colored("O programa so toma apenas um argumento, o primeiro argumento sera utilizado.", 'red') |
from bs4 import BeautifulSoup as bs | |
import requests, sys, re | |
from termcolor import colored | |
if len(sys.argv) < 2: | |
print colored("Falta o argumento palavra: Tente 'python main.py palavra'", 'red') | |
exit() | |
elif len(sys.argv) > 2: | |
print colored("O programa so toma apenas um argumento, o primeiro argumento sera utilizado.", 'red') |
write_comp = False | |
cap = cv2.VideoCapture(1) | |
while(game): | |
fields = [] | |
ret, frame = cap.read() | |
#mirros the image to stay in the same position of screen computer | |
#maybe necessary to change | |
frame = cv2.flip(frame,1) | |
frame = cv2.flip(frame,0) |
#get the player play and write in game board (tic.game). | |
def getPlayer(points, frame): | |
global choose_user, init, last_time, player | |
hW,wW = frame.shape[0:2] | |
cv2.line(frame,(0,hW-25),(wW,hW-25),(35,35,155),25) | |
cv2.putText(frame, "Jogador, escolha uma jogada.",(150, hW-20), FONTE, 0.7,(0,255,0),2,cv2.LINE_AA) | |
field_key = 0 | |
gameboard = np.array(tic.game[0]+tic.game[1]+tic.game[2]) | |
indexs = np.where(gameboard == 0)[0] | |
for field in points: |