Skip to content

Instantly share code, notes, and snippets.

View saccadic's full-sized avatar
🌎
Maybe on Earth. Maybe in the future.

Katsuyoshi Hotta saccadic

🌎
Maybe on Earth. Maybe in the future.
  • Osaka
  • 06:11 (UTC +09:00)
View GitHub Profile
@saccadic
saccadic / 2D-Affine.py
Last active March 9, 2022 02:53
2次アフィン変換のサンプル
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
@saccadic
saccadic / index.html
Created July 21, 2023 15:10
hls sample
<!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>