This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
from Tkinter import * | |
def calculaDiferenca(img1, img2, img3): | |
""" | |
Captura o movimento pela subtração de pixel dos frames. | |
""" | |
d1 = cv2.absdiff(img3, img2) | |
d2 = cv2.absdiff(img2, img1) | |
imagem = cv2.bitwise_and(d1,d2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DiaUtilService | |
{ | |
/** | |
* Busca dias úteis por período, podendo utilizar feriados como parêmetro | |
* | |
* @param string $dataInicio formato deve ser Y-m-d | |
* @param string $dataFim formato deve ser Y-m-d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Exception; | |
use Throwable; | |
class FeriadoNacionalService | |
{ | |
/** | |
* Busca todos os feriados nacionais por ano. | |
* |