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
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| clear | |
| echo "--------------UPDATED--------" | |
| sudo apt-get install default-jdk | |
| clear | |
| java -version | |
| echo "-------------JAVA INSTALLED----" |
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 | |
| import numpy as np | |
| cap = cv2.VideoCapture('vtest.avi') | |
| frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH)) | |
| frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT)) | |
| fourcc = cv2.VideoWriter_fourcc('X','V','I','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
| // Algoritmos Genéticos - Problema OneMax | |
| #include <iostream> | |
| #include <vector> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| using namespace std; | |
| // parâmetros do algoritmo genético | |
| int tam_genes = 100; // quantidade de genes |