Skip to content

Instantly share code, notes, and snippets.

View rodgomesc's full-sized avatar
🎯
Focusing

Rodrigo Gomes rodgomesc

🎯
Focusing
View GitHub Profile
@rodgomesc
rodgomesc / CoinDetector.py
Created July 16, 2014 18:23
Detector de Moedas
from SimpleCV import *
# A quarter mede 24.26mm
quarterSize = 24.26
# Isto ira manter o ratio entre o tamanho da imagem ao tamanho real do quartzo
sizeRatio = 0
objectSize = 0
img = Image('coins.jpg', sample=True)
@rodgomesc
rodgomesc / FaceDetect.py
Last active August 29, 2015 14:03
Face detect in 9 lines if code
from SimpleCV import * #importa FrameWork
import time # importa time
frame = Image("1.jpg").scale(0.8) # abre imagem e subtrai 20% do seu total
face = frame.findHaarFeatures("face.xml") #instancia de face.xml
if face: # se encontrar um rosto
face.draw((0, 255, 0), 3) #desenha cor (R,G,B) LarguraLinha 3
frame.show() #mostra o resultado
time.sleep(10) #segura por 10seg resltado n tela
@rodgomesc
rodgomesc / WebBrowser.py
Last active August 29, 2015 14:03
Navegador Web em Python com 11 linhas de código
from PySide.QtGui import QApplication
from PySide.QtCore import QUrl
from PySide.QtWebKit import QWebView
import sys
__autor__= 'Rodrigo Gomes'
app = QApplication(sys.argv)
b = QWebView()
b.load(QUrl('https://youtu.be/QXG-Rsmrt4A?list=PLe1Buo9ERpeVkq-3aqxBSeriyV-didkwW'))