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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script> | |
<title>hlsjs</title> | |
</head> | |
<body> | |
<video id="video_smaple" controls> | |
<script> |
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 numpy as np | |
# src -> [[x,y],[x,y],...,[x,y]] List型 | |
# dst -> [[x,y],[x,y],...,[x,y]] List型 | |
# srcとdstは同じ数である必要があり、計算の都合上で最低3点が必要 | |
def CalcModel(src, dst): | |
if (len(src) != len(dst)) or (len(src) < 3) or (len(src) < 3): | |
return |
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 bcrypt | |
password = b"test123456" | |
salt = bcrypt.gensalt() | |
hashed = bcrypt.hashpw(password,salt) | |
print(hashed) |
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
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
#include <opencv2/opencv.hpp> | |
using namespace std; | |
static cv::Mat readCsv(string path, int w, int h) { | |
std::vector<std::vector<float>> vv; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
## https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url | |
import requests | |
def download_file_from_google_drive(id, destination): | |
URL = "https://docs.google.com/uc?export=download" | |
session = requests.Session() | |
response = session.get(URL, params = { 'id' : id }, stream = 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
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only"> | |
<info> | |
<title>my format</title> | |
<id>https://csl.mendeley.com/styles/566334571/ieee-2</id> | |
<link href="http://www.zotero.org/styles/ieee" rel="self"/> | |
<link href="https://ieeeauthorcenter.ieee.org/wp-content/uploads/IEEE-Reference-Guide.pdf" rel="documentation"/> | |
<link href="https://journals.ieeeauthorcenter.ieee.org/your-role-in-article-production/ieee-editorial-style-manual/" rel="documentation"/> | |
<author> | |
<name>Michael Berkowitz</name> |
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
void DrawCross(cv::Mat &src, cv::Point p, float r, cv::Scalar col, float lw) { | |
cv::line(src, cv::Point(p.x, p.y + r), cv::Point(p.x, p.y - r), col, lw); | |
cv::line(src, cv::Point(p.x + r, p.y), cv::Point(p.x - r, p.y), col, lw); | |
} |
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 pandas as pd | |
import cv2 | |
from tqdm import tqdm | |
import numpy as np | |
from scipy.stats import multivariate_normal | |
import matplotlib.pyplot as plt | |
import time | |
import pathlib | |
from multiprocessing import Process, Queue | |
import multiprocessing |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using OpenCvSharp; | |
namespace OpenCvSharp | |
{ | |
public class polyfit : MonoBehaviour | |
{ |
NewerOlder