OCR with Unity3d - unity3d

I would like to implement a letter detection feature for my "guess the drawing" game in Unity, that would detect if someone draws a letter and I would count it as cheating. So people would only be able to draw the word requested as pictures and would not draw the letters that create word itself.
I would like to know what is your opinion and what technology can I use for this task in Unity3d. Thanks in advance.

Vuforia is best pick for your requirement.
You can download vuforia SDK for unity from below link.
https://developer.vuforia.com/downloads/sdk
Steps need to be followed:
1.Download SDK for unity.
2.Draw the patters which you want as answers in any of tools like paint or photoshop and take screenshots of them.
3.Remove main camera and add AR camera in prefabs folder of vuforia library
4.Drag and drop image targets to your project and add the screenshots you have taken
5.Now implement code to broadcast message if image target is detected.
6.Use this broadcast message to implement post game logic.
There is so much to learn about image recognition and Vuforia, adding image targets and all require few additional steps, You can go through the tutorials for better understanding on how to use Vuforia SDK.
Following is link for vuforia tutorials
https://library.vuforia.com/tutorials
Happy Game Development

Related

how to open prefab brush window in unity 2017.1.1f1?

I am a complete beginner in unity 3d and I rely on youtube and other sources to learn unity. I will get to the point.. I am currently watching this tutorial #19:35 he opened a window called Prefab Brush but it is not available in mine which is Unity 2017.1.1f1. I believe in the future I might need this prefab brush, so I would like to ask some help.
Image here
Prefab Brush is a plugin from the Assetstore. It's was free at the time that video was made but the publisher decided to make it not free anymore. It cost only $2.99.
If you don't way to pay for that then use GeoPainter which is free and very similar to Prefab Brush. You can get GeoPainter here.

Vuforia recognition of hand painted marker

I have blank sheet and I want to do AR model to this sheet. I have idea do it with painted marker. For example: cross, square or something easy marker which you can paint to sheet. So how can i do it??? I use unity.
Here you want a simple marker so some simple options are:
ARToolkit Simple markers like Hiro KanZI marker (it's an open source and completely free AR Library):
http://artoolkit.org/documentation/doku.php?id=3_Marker_Training:marker_multi
Using Vuforia, you can try "Frame Marker". Vuforia provides more than 500 simple designs. You can paint it or stick it on your sheet:
https://developer.vuforia.com/library/articles/Training/Frame-Markers-Guide
FYI: Vuforia and Artoolkit for both Unity packages are available for free. You just have to import it into your Unity project.
I am writing from memory, so it might not be entirely correct.
Decide what marker you want to use.
Draw it on paper. Note, however, that the Vuforia SDK identifies points of interest in a target image (most often that is corners), so the more detailed a photo, the more points of interest, which is why their samples use high resolution images of e.g. lots of little stones. Drawing something like a square, cross, or some other simplistic marker, does not work very well.
Take a photo of it and transfer it to your computer.
Download Vuforia's Augmented Reality SDK for Unity.
Register on the Vuforia website and add your photo as an Image Target. Then save/download the database unity package they create for you from your image.
Also get a licence key.
In a blank Unity scene, import the SDK.
Add an AR camera prefab.
Add an image target prefab.
Import the downloaded database package (containing your uploaded image).
On the image target inspector, change the behaviour to use your image as the image target.
On the AR camera inspector, add your licence key, and specify the image target database.
Create or import some 3D model / primitive. Make it a child of the image target, and position it to sit on top of the image target.
Make sure the AR camera is looking at the image target.
Build the project and run the project, that's about it.
There should be many tutorials online, just google for something like vuforia augmented reality tutorial

Unity- Photosphere Photo Viewer for Google Cardboard

I am trying to build a Photosphere-like application with Unity3D and use it along with Google cardboard.
I need to load different panoramic view photos and be able to view them stereoscopically, by using the Cardboard goggles.
I am having problem to use the pano images and render it into stereoscopic view in Unity.
Any suggestions will be gratefully received.
Simplest solution that I can give to you:
A. Install your Unity Pro with Android Pro plugins, setup
Cardboard SDK For Unity, install Android Build tools and SDK.
B Setup Skybox
Get a stereoscopic panorama image (Might take a while to load the image as it is a high resolution image).
In Unity, import the image, change the Texture Type to Cubemap. Select the Mapping as Cylindrical (Lat and Long).
Create a Material, change the Shader to Skybox/Cubemap.
Assign the texture to the material.
In Unity 5 Pro topbar, select Window -> Ligthing, drag the material to the Skybox property. In this step you can do it programmatically. Combine these steps with the Cardboard assets and game objects. Voila, you've made a VR panorama stereoscopic Cardboard app! The whole setup is just take out your five minutes(excluding setup your tools :D).
If you're familiar with Unity, you know exactly what to do on my instructions. If you stuck at somewhere in my steps, feel free to ask me. Happy coding :)
Extra tips:
You can make the large textures files into Asset Bundles, act like a dynamic content which is stored in the server. Your app is just simply a small-size empty app. When app launches, request and download the asset bundles from server then manipulate the textures. :)
Super extra tip: Don't forget to generate asset bundles under Android Build Settings. If not, your textures will be corrupted when the bundle is downloaded to Android phones.
Make a sphere, write a shader so that it is not back culled and it can be seen from the inside. Use the pano image as a texture on the sphere. Place a VR camera rig in the center of the sphere. If you want true stereo, create two such spheres with separate textures for the left and right eye. Place the spheres at the lcoations of the cameras in the rig. Use layer culling so that each camera only sees the proper sphere.

Spritesheet creator/importer for unity3d

I am currently developing a 2d game for android using Unity3d , but i am wondering if is there any free sprite sheet creator software that is compatible with unity3d without the extra code to be written , i've tried texture packer with there plugin for unity and it work great but this software is paid and i can not afford it right now ,
i also tried Sprite Sheet Packer but when i import the sprite sheet into unity and trim the sprites in the editor the animation does not work properly due to the fact that unity did not know the pivot point and the exact information of the sprite inside the created sprite sheet,
Does anyone know some useful free software that i can use or some unity plugin that can serve this problem ?
I personally always used TexturePacker (then when I moved to Unity, NGUI does the work for me), so this is a recommendation from a friend:
http://renderhjs.net/shoebox/
A quick test showed that it made a PNG and accompanying XML file with the image data inside. Seems pretty simple.
This question still actual in 2017. So this is my approach:
1) Get xml file with coordinates from your editor. I use DarkFunction sprite editor for fast and smart creation of coordinates. It's free and pretty clever to do lots of jobs automatically.
2) Install this asset from asset store, it's free.
3) Tweak the TextureAtlasSlicer.cs file from the installed asset to correspond to your xml format. You have to do this only once.
That's it.

iPhone: Show image sequence as a VR

I need to use a image sequence as a VR on the iOS. Is there component on the OS that does that? If not, is there any third party view for that? I'm very interested on learning more about it!
Thanks!
Here is a tutorial to create your own OpenGL (iOS or Android) VR engine.
The principle is to create a 3D skybox where you will have to apply your images to create your environment.
There are some libraries ready to use too like this one : Open AR