Skip to content

Commit

Permalink
new bot and more captchas
Browse files Browse the repository at this point in the history
  • Loading branch information
diofeher committed Apr 11, 2020
1 parent 110d078 commit eefc32d
Show file tree
Hide file tree
Showing 590 changed files with 10 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/compare_images.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import cv2
import numpy as np
from PIL import Image
from utils import list_individual_images, break_captcha, handle_name
from utils import resource_path, list_individual_images, break_captcha, handle_name
import sys


READ_CAPTCHA_PATH = './src/images/'
PATH_EXISTENT = './src/images_individual/'
READ_CAPTCHA_PATH = resource_path('images/')
PATH_EXISTENT = resource_path('images_individual/')


def calculate_diff(img1, img2):
Expand Down Expand Up @@ -35,7 +35,7 @@ def compare_image(image1, image2):

def compare(target):
target = handle_name(target)
image_png = Image.open('./src/images/'+target+'.png')
image_png = Image.open(READ_CAPTCHA_PATH + target + '.png')
matched_diff = sys.maxsize
match = ''
match_pos = None
Expand Down
Binary file added src/images_individual/Cabelo_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cabelo_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cabelo_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cadeira_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cadeira_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cadeira_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cadeira_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cadeira_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Cadeira_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Celular_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Celular_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Celular_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Celular_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Celular_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Celular_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Despertador_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Despertador_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Despertador_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Despertador_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Despertador_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Despertador_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Elefante_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Elefante_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Elefante_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Elefante_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images_individual/Faca_0.png
Binary file added src/images_individual/Faca_10.png
Binary file added src/images_individual/Faca_11.png
Binary file added src/images_individual/Faca_2.png
Binary file added src/images_individual/Faca_4.png
Binary file added src/images_individual/Faca_5.png
Binary file added src/images_individual/Faca_6.png
Binary file added src/images_individual/Flor_0.png
Binary file added src/images_individual/Flor_1.png
Binary file added src/images_individual/Flor_10.png
Binary file added src/images_individual/Flor_2.png
Binary file added src/images_individual/Flor_3.png
Binary file added src/images_individual/Flor_5.png
Binary file added src/images_individual/Flor_6.png
Binary file added src/images_individual/Flor_7.png
Binary file added src/images_individual/Formiga_1.png
Binary file added src/images_individual/Formiga_10.png
Binary file added src/images_individual/Formiga_11.png
Binary file added src/images_individual/Formiga_2.png
Binary file added src/images_individual/Formiga_3.png
Binary file added src/images_individual/Formiga_4.png
Binary file added src/images_individual/Formiga_6.png
Binary file added src/images_individual/Formiga_8.png
Binary file added src/images_individual/Girafa_1.png
Binary file added src/images_individual/Girafa_10.png
Binary file added src/images_individual/Girafa_4.png
Binary file added src/images_individual/Girafa_5.png
Binary file added src/images_individual/Girafa_6.png
Binary file added src/images_individual/Girafa_8.png
Binary file added src/images_individual/Sofa_2.png
Binary file added src/images_individual/Ventilador_0.png
Binary file added src/images_individual/Ventilador_1.png
Binary file added src/images_individual/Ventilador_10.png
Binary file added src/images_individual/Ventilador_3.png
Binary file added src/images_individual/abacaxi_1.png
Binary file added src/images_individual/abacaxi_10.png
Binary file added src/images_individual/abacaxi_101.png
Binary file added src/images_individual/abacaxi_11.png
Binary file added src/images_individual/abacaxi_12.png
Binary file added src/images_individual/abacaxi_13.png
Binary file added src/images_individual/abacaxi_14.png
Binary file added src/images_individual/abacaxi_15.png
Binary file added src/images_individual/abacaxi_16.png
Binary file added src/images_individual/abacaxi_17.png
Binary file added src/images_individual/abacaxi_2.png
Binary file added src/images_individual/abacaxi_3.png
Binary file added src/images_individual/abacaxi_4.png
Binary file added src/images_individual/abacaxi_5.png
Binary file added src/images_individual/abacaxi_6.png
Binary file added src/images_individual/abacaxi_7.png
Binary file added src/images_individual/abacaxi_8.png
Binary file added src/images_individual/ampulheta_0.png
Binary file added src/images_individual/ampulheta_1.png
Binary file added src/images_individual/ampulheta_10.png
Binary file modified src/images_individual/ampulheta_11.png
Binary file modified src/images_individual/ampulheta_2.png
Binary file added src/images_individual/ampulheta_3.png
Binary file added src/images_individual/ampulheta_4.png
Binary file added src/images_individual/ancora_101.png
Binary file added src/images_individual/anel_1.png
Binary file modified src/images_individual/anel_10.png
Binary file modified src/images_individual/anel_11.png
Binary file added src/images_individual/anel_2.png
Binary file added src/images_individual/anel_3.png
Binary file added src/images_individual/anel_4.png
Binary file added src/images_individual/anel_5.png
Binary file added src/images_individual/anel_6.png
Binary file added src/images_individual/anel_7.png
Binary file added src/images_individual/anel_8.png
Binary file added src/images_individual/antena_1.png
Binary file added src/images_individual/antena_101.png
Binary file added src/images_individual/arco e flecha_1211.png
Binary file added src/images_individual/arco e flecha_12310.png
Binary file added src/images_individual/arco e flecha_12314.png
Binary file added src/images_individual/arco e flecha_1236.png
Binary file added src/images_individual/arco e flecha_1237.png
Binary file added src/images_individual/arco e flecha_2135.png
Binary file added src/images_individual/arco e flecha_2213312.png
Binary file added src/images_individual/arco e flecha_2312311.png
Binary file added src/images_individual/arco e flecha_8123.png
File renamed without changes
File renamed without changes
Binary file modified src/images_individual/aviao_0.png
Binary file added src/images_individual/balao_0.png
Binary file modified src/images_individual/balao_1.png
Binary file added src/images_individual/balao_10.png
Binary file added src/images_individual/balao_101.png
Binary file added src/images_individual/balao_11.png
Binary file added src/images_individual/balao_3.png
Binary file added src/images_individual/balao_4.png
Binary file added src/images_individual/balao_5.png
Binary file added src/images_individual/balao_6.png
Binary file added src/images_individual/balao_7.png
Binary file modified src/images_individual/baleia_1.png
Binary file added src/images_individual/baleia_10.png
Binary file added src/images_individual/baleia_11.png
Binary file modified src/images_individual/baleia_2.png
Binary file added src/images_individual/baleia_3.png
Binary file added src/images_individual/baleia_4.png
Binary file added src/images_individual/baleia_5.png
Binary file added src/images_individual/baleia_6.png
Binary file added src/images_individual/baleia_7.png
Binary file added src/images_individual/baleia_8.png
Binary file added src/images_individual/barata_101.png
Binary file added src/images_individual/barata_2.png
Binary file added src/images_individual/basquete_0.png
Binary file added src/images_individual/batata frita_101.png
Binary file added src/images_individual/batata frita_3.png
File renamed without changes
Binary file added src/images_individual/bigode_6.png
Binary file modified src/images_individual/bolsa_0.png
Binary file added src/images_individual/bolsa_1.png
Binary file added src/images_individual/bolsa_10.png
Binary file added src/images_individual/bolsa_11.png
Binary file added src/images_individual/bolsa_2.png
Binary file added src/images_individual/bolsa_3.png
Binary file added src/images_individual/bolsa_4.png
Binary file added src/images_individual/bolsa_5.png
Binary file added src/images_individual/bolsa_6.png
Binary file added src/images_individual/bolsa_7.png
Binary file added src/images_individual/borboleta_101.png
Binary file modified src/images_individual/botao_0.png
Binary file added src/images_individual/botao_10.png
Binary file added src/images_individual/botao_11.png
Binary file added src/images_individual/botao_2.png
Binary file added src/images_individual/cabelo_1.png
Binary file added src/images_individual/cabelo_2.png
Binary file added src/images_individual/cachorroquente_101.png
Binary file added src/images_individual/cacto_101.png
Binary file modified src/images_individual/cadeira_10.png
Binary file modified src/images_individual/cadeira_3.png
Binary file modified src/images_individual/cadeira_4.png
Binary file added src/images_individual/caixa_1.png
Binary file added src/images_individual/caixa_10.png
Binary file added src/images_individual/caixa_101.png
Binary file added src/images_individual/caixa_11.png
Binary file added src/images_individual/caixa_2.png
Binary file added src/images_individual/caixa_3.png
Binary file added src/images_individual/caixa_4.png
Binary file added src/images_individual/caixa_5.png
Binary file added src/images_individual/caixa_6.png
Binary file added src/images_individual/calca_5.png
Binary file added src/images_individual/calca_6.png
Binary file added src/images_individual/calca_7.png
Binary file modified src/images_individual/calendario_1.png
Binary file added src/images_individual/calendario_11.png
Binary file added src/images_individual/calendario_2.png
Binary file added src/images_individual/calendario_3.png
Binary file added src/images_individual/calendario_4.png
Binary file added src/images_individual/calendario_5.png
Binary file added src/images_individual/calendario_6.png
Binary file added src/images_individual/calendario_7.png
Binary file modified src/images_individual/camera_7.png
Binary file modified src/images_individual/camera_8.png
Binary file modified src/images_individual/caminhao_3.png
Binary file added src/images_individual/caracol_101.png
Binary file added src/images_individual/carro_1.png
Binary file added src/images_individual/carro_10.png
Binary file added src/images_individual/carro_11.png
Binary file added src/images_individual/carro_2.png
Binary file modified src/images_individual/carro_3.png
Binary file added src/images_individual/carro_4.png
Binary file added src/images_individual/carro_5.png
Binary file added src/images_individual/carro_6.png
Binary file added src/images_individual/carro_7.png
Binary file added src/images_individual/carro_8.png
Binary file added src/images_individual/cartao_1.png
Binary file added src/images_individual/cartao_10.png
Binary file modified src/images_individual/cartao_11.png
Binary file added src/images_individual/cartao_2.png
Binary file added src/images_individual/cartao_3.png
Binary file added src/images_individual/cartao_4.png
Binary file added src/images_individual/cartao_5.png
Binary file modified src/images_individual/cartao_6.png
Binary file added src/images_individual/cartao_7.png
Binary file added src/images_individual/casaco_101.png
Binary file added src/images_individual/cd_101.png
Binary file added src/images_individual/cd_2.png
Binary file modified src/images_individual/celular_11.png
Binary file modified src/images_individual/celular_3.png
Binary file added src/images_individual/chapeu_1.png
Binary file added src/images_individual/chapeu_3.png
Binary file modified src/images_individual/chapeu_4.png
Binary file added src/images_individual/chapeu_5.png
Binary file added src/images_individual/chapeu_6.png
Binary file added src/images_individual/chave_101.png
Binary file modified src/images_individual/churrasqueira_0.png
Binary file added src/images_individual/churrasqueira_1.png
Binary file added src/images_individual/churrasqueira_10.png
Binary file added src/images_individual/churrasqueira_11.png
Binary file added src/images_individual/churrasqueira_2.png
Binary file added src/images_individual/churrasqueira_3.png
Binary file added src/images_individual/churrasqueira_4.png
Binary file added src/images_individual/churrasqueira_5.png
Binary file added src/images_individual/clipe_101.png
Binary file added src/images_individual/coelho_101.png
Binary file added src/images_individual/cogumelo_0.png
Binary file added src/images_individual/computador_0.png
Binary file added src/images_individual/computador_1.png
Binary file added src/images_individual/computador_10.png
Binary file added src/images_individual/computador_11.png
Binary file added src/images_individual/computador_2.png
Binary file added src/images_individual/computador_4.png
Binary file added src/images_individual/couveflor_4.png
Binary file added src/images_individual/dado_1.png
Binary file added src/images_individual/dado_10.png
Binary file added src/images_individual/dado_11.png
Binary file added src/images_individual/dado_2.png
Binary file added src/images_individual/dado_3.png
Binary file added src/images_individual/dado_4.png
Binary file added src/images_individual/dado_5.png
Binary file added src/images_individual/dado_6.png
Binary file added src/images_individual/dado_7.png
Binary file modified src/images_individual/despertador_2.png
Binary file added src/images_individual/dinossauro_0.png
Binary file modified src/images_individual/dinossauro_1.png
Binary file added src/images_individual/dinossauro_10.png
Binary file added src/images_individual/dinossauro_11.png
Binary file added src/images_individual/dinossauro_2.png
Binary file added src/images_individual/dinossauro_3.png
Binary file modified src/images_individual/dinossauro_4.png
Binary file added src/images_individual/dinossauro_5.png
Binary file added src/images_individual/dinossauro_6.png
Binary file modified src/images_individual/disquete_1.png
Binary file added src/images_individual/disquete_11.png
Binary file added src/images_individual/disquete_2.png
Binary file added src/images_individual/disquete_3.png
Binary file modified src/images_individual/disquete_4.png
Binary file added src/images_individual/disquete_5.png
Binary file added src/images_individual/disquete_6.png
Binary file added src/images_individual/disquete_7.png
Binary file added src/images_individual/disquete_8.png
Binary file added src/images_individual/disquete_9.png
Binary file modified src/images_individual/elefante_1.png
Binary file modified src/images_individual/elefante_10.png
Binary file modified src/images_individual/elefante_2.png
Binary file added src/images_individual/engrenagem_1.png
Binary file added src/images_individual/engrenagem_10.png
Binary file added src/images_individual/engrenagem_11.png
Binary file added src/images_individual/engrenagem_2.png
Binary file modified src/images_individual/engrenagem_3.png
Binary file added src/images_individual/engrenagem_4.png
Binary file added src/images_individual/engrenagem_5.png
Binary file modified src/images_individual/envelope_3.png
Binary file added src/images_individual/envelope_4.png
Binary file added src/images_individual/envelope_5.png
Binary file added src/images_individual/envelope_6.png
Binary file added src/images_individual/escadas_0.png
Binary file modified src/images_individual/escadas_1.png
Binary file added src/images_individual/escadas_10.png
Binary file added src/images_individual/escadas_11.png
Binary file added src/images_individual/escadas_2.png
Binary file added src/images_individual/escadas_3.png
Binary file added src/images_individual/escadas_4.png
Binary file added src/images_individual/escovadedente_1.png
Binary file added src/images_individual/escovadedente_101.png
Binary file added src/images_individual/escovadedente_2.png
Binary file modified src/images_individual/esquadro_0.png
Binary file added src/images_individual/esquadro_1.png
Binary file added src/images_individual/esquadro_10.png
Binary file added src/images_individual/esquadro_11.png
Binary file modified src/images_individual/esquadro_2.png
Binary file added src/images_individual/esquadro_3.png
Binary file added src/images_individual/esquadro_4.png
Binary file added src/images_individual/esquadro_5.png
Binary file added src/images_individual/esquadro_6.png
Binary file added src/images_individual/esquadro_7.png
Binary file added src/images_individual/estrela_101.png
Binary file modified src/images_individual/faca_1.png
Binary file added src/images_individual/ferramenta_0.png
Binary file added src/images_individual/ferramenta_1.png
Binary file modified src/images_individual/ferramenta_10.png
Binary file added src/images_individual/ferramenta_11.png
Loading

0 comments on commit eefc32d

Please sign in to comment.