This file contains hidden or 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> | |
| <meta charset="utf-8" /> | |
| <script src="https://unpkg.com/three@0.147.0/build/three.min.js"></script> | |
| <script> | |
| //videoタグにUSBカメラ画像を流し込む | |
| window.addEventListener('DOMContentLoaded', init); | |
| function init_video() { |
This file contains hidden or 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 xml.dom import INDEX_SIZE_ERR | |
| import cv2 | |
| import numpy as np | |
| import os | |
| import glob | |
| from cv2 import aruco | |
| W=400 | |
| H=400 | |
| dir=r"C:\scan" |
This file contains hidden or 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 hsv2rgb(byte h/*0-252*/,byte s/*0-255*/,byte v/*0-255*/, unsigned char *r, unsigned char *g, unsigned char *b){ | |
| byte i=h/42; | |
| byte f=h%42; | |
| word tw,p1,p2,p3; | |
| tw=255*42-s*42; | |
| p1=((unsigned long)tw*v+21*255)/42/255; | |
| tw=255*42-s*f; | |
| p2=((unsigned long)tw*v+21*255)/42/255; | |
| tw=255*42-s*(42-f); |
This file contains hidden or 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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.Net; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using System.Net.Http; | |
| using System.Text; | |
| using System.Threading; |
This file contains hidden or 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
| // NOTE: requires the Encoder library. | |
| // 1) open Tools -> Manage Libraries... | |
| // 2) install "Encoder" by Paul Stoffregen v1.4.1 | |
| #include <Encoder.h> | |
| // NOTE: Requires the PS2X_lib installed. | |
| // 1) open Sketch -> Include Library -> Add .ZIP Library | |
| // 2) select "PS2X_lib.zip" | |
| #include <PS2X_lib.h> | |
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 hidden or 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
| <html> | |
| <body> | |
| <img id="a"/> | |
| <script> | |
| var img=document.getElementById("a"); | |
| img.addEventListener('load',function(){ | |
| img.src="http://atomcam.local/cgi-bin/get_jpeg.cgi?"+ Date.now(); | |
| //console.log("laod"); |
This file contains hidden or 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 hidden or 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 hidden or 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> |