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
from flask import session | |
import streamlit as st | |
import plotly.express as px | |
import pandas as pd | |
from streamlit_plotly_events import plotly_events | |
import numpy as np | |
#乱数のダミーデータがパラメータ変更毎に変更されるとうざいのでcacheする | |
@st.cache | |
def get_data(): |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Mar 27 11:47:20 2022 | |
@author: youak | |
""" | |
from rdflib import Graph | |
import tarfile | |
import gzip |
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> | |
<head> | |
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script> | |
<script src="digest-fetch.js"></script> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<a-scene> | |
<a-camera wasd-controls-enabled="false"></a-camera> |
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
//for A-Frame | |
//使い方:<a-entity gltf-model="#glb" gltf_shadow ></a-entity> | |
// gltf でなければ shadow="receive: true;cast: true;" とするところ。 | |
// しかしgltfでは無視されるのでgltf_shadowをしていして、以下のコンポーネントを適用させる | |
// | |
AFRAME.registerComponent('gltf_shadow', { | |
init: function () { | |
this.enableShadow(); |
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
# -*- coding: utf-8 -*- | |
""" | |
引数にあるMP4ファイルから切りだす。 | |
出力フォルダは [入力ファイル名]_rig | |
同時に処理されたファイルはファイル名が被らないようにしてあるので、 | |
各rigフォルダのコピーしてまとめてmeshroomに突っ込む事ができる。 | |
@author: akira_you | |
""" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#FreeCADスパイラル六角形をだすテスト | |
for j in range(8): | |
Base=50 | |
H=70 | |
N=20 | |
T=Base/4/2 | |
R=(Base-T*j+1)/2 | |
RTop=(Base-T*(j+1)+1)/2 |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun May 9 20:45:45 2021 | |
同一フォルダにdummy.JPGとして、適当なTHETAで撮影した写真を置いておく(EXIFをコピーして流用する) | |
同一フォルダにある*.MP4を全部パースして[ファイル名]rigフォルダ0/1にそれぞれのカメラの画像を切りだす。 | |
vignette処理もしてくれる | |
注意: | |
撮影時には適宜、カメラをその場回転(雑で良い)を入れて、二つのカメラの位置関係をmeshroomが認識出来るようにすること。 | |
@author: youak |
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
""" | |
引数に与えられた動画ファイルからmeshroomに設定すべきキャリブレーションパラメータを算出 | |
キャリブレーションボードは以下を印刷するなり、画面に表示するなりで。 | |
http://opencv.jp/sample/pics/chesspattern_7x10.pdf | |
印刷サイズは気にしなくてよい。 | |
""" | |
import cv2 | |
# assert cv2.__version__[0] == '3', 'The fisheye module requires opencv version >= 3.0.0' | |
import numpy as np | |
import sys |