This file contains 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
// convert between colorspaces | |
Mat in, out | |
cvtColor(in, out, CV_RGB2GRAY); | |
// threshold | |
threshold(in, out, 20, 256, THRESH_BINARY); | |
threshold(in, out, 20, 256, THRESH_BINARY_INV); |
This file contains 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
VideoCapture cap(0); | |
if(!cap.isOpened()) exit(0); | |
cap.set(CV_CAP_PROP_FRAME_WIDTH, 250); | |
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 250); | |
cout << "Frame width: " << cap.get(CV_CAP_PROP_FRAME_WIDTH) << endl; | |
cout << "Frame height: " << cap.get(CV_CAP_PROP_FRAME_HEIGHT) << endl; | |
This file contains 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
Mat in, out; | |
Mat kern = ( Mat_<char>(3,3) << 1, 1, 1, | |
1, -8, 1, | |
1, 1, 1); | |
in = imread("DRIVE/training/images/21_training.tif"); | |
filter2D(in, out, in.depth(), kern, Point(-1,-1), 5.0, BORDER_REPLICATE); |
This file contains 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 gpxpy.parser as parser | |
import gpxpy.gpx as gpx | |
import os | |
import math | |
import datetime | |
## functions | |
def min_max_timestamp(parsed): | |
min_ts = parsed.tracks[0].segments[0].points[0].time | |
max_ts = parsed.tracks[0].segments[0].points[0].time |
This file contains 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
defmodule Console do | |
def read_until_eof() do | |
read_until_eof([]) | |
end | |
def read_until_eof(acc) do | |
case IO.read(:stdio, :line) do | |
:eof -> | |
acc |
https://datavizm20.classes.andrewheiss.com/
Aulas USP | Inteligência Artificial em saúde: o uso de machine learning - Alexandre Chiavegatto Filho
https://www.youtube.com/playlist?list=PLAudUnJeNg4tvUFZ8tXQDoAkFAASQzOHm&disable_polymer=true
This file contains 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 java.time.*; | |
import java.time.format.*; | |
import java.time.temporal.ChronoField; | |
public class YearWeek { | |
public static void main(String[] args){ | |
for(int week = 1; week < 53; week++){ | |
dbYearWeekToDateRange("2023%02d".formatted(week)); | |
} | |
} |