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
/** | |
* src/effects/auth.ts | |
* Similiar pattern for all other Effects | |
*/ | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/switchMap'; | |
import 'rxjs/add/operator/catch'; | |
import 'rxjs/add/operator/do'; |
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 UnityEngine.Events; | |
using HoloToolkit.Unity.InputModule; | |
using System; | |
public class HologramManager : MonoBehaviour, IInputClickHandler, IFocusable | |
{ |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Linq; | |
using UnityEngine; | |
namespace Arlane | |
{ |
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 cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
# Import our game board | |
canvas = cv2.imread('./data/box_med.jpg') | |
# Import our piece (we are going to use a clump for now) | |
piece = cv2.imread('./data/piece_small.jpg') | |
# Pre-process the piece |
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 cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
# Load images | |
img = cv2.imread('image.jpg', 0) | |
template = cv2.imread('template.jpg', 0) | |
w, h = template.shape[::-1] | |
# Apply template matching |