Giter Site home page Giter Site logo

mediaboxes / regioncapture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maximrouf/regioncapture

0.0 2.0 0.0 612 KB

Plug-in for Vuforia 5.X

Home Page: https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/region-capture-0

regioncapture's Introduction

Texture Region Capture (Ver. 1.6.9)

Plug-in for Vuforia 5.0.X

Note:

  • IOS builds - Save image to Gallery worked now.

  • Black pixels around captured texture has been fixed.

  • "Reduse Noise" option has been removed.

  • Unity 4X is not supported more.

How to setup:

1. Create a new layer โ„–20 "Region_Capture"
2. Drag Prefab into the scene
3. Set a references (to the game objects) in Prefab

How to use:

1. Get Texture from "Render_Texture_Camera" in PlayMode - RenderTextureCamera.CameraOutputTexture (look at "Samples" folder)

2. Set custom Scale, Position, Rotation (with 90-degree increments) to modify region size (disable "Auto Region Size" checkbox);

3. If all works fine - switch off Layer "Region_Capture" in ARCamera > Camera > Culling Mask (or enable "Hide from ARCamera" checkbox);

4. Enable "Check Marker Position" checkbox, to get state (see console messages) if the marker is out of bounds.

5. Enable "Autofocus Camera" checkbox, if you want to use autofocus on Android devices.

6. Enable "Hide Android Toolbar" checkbox, to hide navigation toolbar on devices without physical buttons.

7. Enable "Color Debug Mode" checkbox, to highlight captured marker.

8. Enable "Show Texture" checkbox, to draw RenderTexture in GUI.

9. Add any texture to the "Marker Background" field if you want to overwrite white spots in captured texture.

How to IOS build:

Add AssetsLibrary.framework in XCode project (Expand Link Binary With Libraries and click (+) button)

PS: AssetsLibrary is deprecated (but still work) in iOS 9.0 and will be replaced to Photos framework next time.

Available methods:

Region_Capture.RecalculateRegionSize();		//	Call it - if the marker has changed.

RenderTextureCamera.RecalculateTextureSize();		//	Call it - if the marker or size of renderTexture has changed.

RenderTextureCamera.MakeScreen();		//	Call it - if you want to save RegionTexture to localStorage.

Best Regards, Maxim Ruf

regioncapture's People

Contributors

maximrouf avatar

Watchers

James Cloos avatar mediaboxes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.