Skip to content

Instantly share code, notes, and snippets.

Avatar

Shigemitsu Yamazaki jyuko

View GitHub Profile
@jyuko
jyuko / PeopleOcclusion.shader
Last active Oct 10, 2019
Sample Code to People Occlusion
View PeopleOcclusion.shader
Shader "Perchang/PeopleOcclusion"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_CameraFeed ("Texture", 2D) = "white" {}
_OcclusionDepth ("Texture", 2D) = "white" {}
_OcclusionStencil ("Texture", 2D) = "white" {}
_UVMultiplierLandScape ("UV MultiplerLandScape", Float) = 0.0
_UVMultiplierPortrait ("UV MultiplerPortrait", Float) = 0.0
View deeplab_sample_video_capture.py
import os
from io import BytesIO
import tarfile
import tempfile
from six.moves import urllib
import numpy as np
from PIL import Image
import tensorflow as tf
View deeplab_sample_local_image.py
import os
from io import BytesIO
import tarfile
import tempfile
from six.moves import urllib
from matplotlib import gridspec
from matplotlib import pyplot as plt
import numpy as np
from PIL import Image
@jyuko
jyuko / mrcnn_sample.py
Last active Nov 17, 2018
test script for MaskRCNN
View mrcnn_sample.py
import os
import sys
import random
import math
import numpy as np
import skimage.io
import matplotlib
import matplotlib.pyplot as plt
# Root directory of the project
View manifest.json
{
"name": "Mirage AR Sample",
"start_url": "mirage.html",
"display": "fullscreen",
"orientation": "landscape-secondary"
}
View mirage.html
<!DOCTYPE html>
<html lang="ja">
<head>
<title>Mirage Sample</title>
<meta charset="utf-8">
<meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<style>
canvas {
padding-left: 76px; /* 端末に合わせて調整 */
View physics.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Language" content="ja">
<title>Physics</title>
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/aframe-particle-system-component@1.0.x/dist/aframe-particle-system-component.min.js"></script>
<script src="https://cdn.rawgit.com/kripken/ammo.js/dcab07bf0e7f2b4b64c01dc45da846344c8f50be/builds/ammo.js"></script>
View navmesh.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Language" content="ja">
<title>NavMesh</title>
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/aframe-particle-system-component@1.0.x/dist/aframe-particle-system-component.min.js"></script>
<script src="https://cdn.rawgit.com/kripken/ammo.js/dcab07bf0e7f2b4b64c01dc45da846344c8f50be/builds/ammo.js"></script>
View hello-three-js.html
<!DOCTYPE html>
<html lang="ja">
<head>
<title>Hello three.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no,
minimum-scale=1.0, maximum-scale=1.0">
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/88/three.min.js"></script>