I hereby claim:
- I am igorbelo on github.
- I am igorbelo (https://keybase.io/igorbelo) on keybase.
- I have a public key ASBnwnZ1ip1Mji0LUvbQknwTGQGxxYK2pwCbG-h-19Z1hAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
OPERADORES = ('+', '-', '*', '/') | |
class CalculadoraModel: | |
def __init__(self, *args, **kwargs): | |
self.operandos = [] | |
def adicionar_operando(self, operando): | |
self.operandos.append(operando) | |
def adicionar(self): |
class CalculadoraImposto: | |
def __init__(self, aliquota=0, *args, **kwargs): | |
self.aliquota = aliquota | |
def calcula_imposto(self, funcionario): | |
return funcionario.salario * self.aliquota | |
class Funcionario: | |
def __init__(self, salario, *args, **kwargs): | |
self.salario = salario |
from skimage import measure, color | |
import matplotlib.pyplot as plt | |
from skimage import data | |
from skimage.filters import threshold_adaptive | |
def measure_labels(image): | |
if len(image.shape) > 2: | |
work_image = color.rgb2gray(image) | |
else: |