Skip to content

Instantly share code, notes, and snippets.

View McSimp's full-sized avatar

Will Donohoe McSimp

View GitHub Profile
@y6a2
y6a2 / imageProcessing.cs
Created January 3, 2014 03:09
opencv/samples/cpp/squares.cpp to unity @iphone5 Using NativePlugin
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public class imageProcessing : MonoBehaviour {
[DllImport ("__Internal")]
private static extern void UpdateTexture(System.IntPtr colors, int width, int height);
WebCamTexture webcamTexture;
Texture2D texture = null;