/rn-opencv-demo

React Native AR demo using openCV

Primary LanguageObjective-CMIT LicenseMIT

RN-openCV-demo

This is a 'pokemon' style AR app written using React Native.

screenshot

Use this as a template / guide, for building your own AR apps using React Native and Three.js.

It consists of Video passthrough, RN-openCV component, webView/webGL, and React-Native !

You'll likely want to run this on a device so the camera actually works.

Running

How it works

  1. The video feed is fed into openCV, which detects the {position, directionVector and scale} of a QR-code.
  2. The {result} is fed into a wkWebView via the javascript bridge.
  3. The webView renders the 3D creature using three.js/webGL at the given {position, direction and scale}.
  4. The webView canvas is overlayed over the live-camera canvas, using a transparent background.

References

Dependencies