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
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)); | |
} | |
} |
https://datavizm20.classes.andrewheiss.com/
https://www.youtube.com/playlist?list=PLAudUnJeNg4tvUFZ8tXQDoAkFAASQzOHm&disable_polymer=true
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 |
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 |
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); |
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; | |
// 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); |