In this lecture they're going to look at saying recognition.
So just the same way that you can try on a 3D object on a smaller scale.
You can try a very large 3-D object because to the point cloud data produce the images you take with
your camera.
It doesn't necessarily know whether it's a small thing or a very large thing.
So in this one I'm going to create an outdoor scene to begin waste without unity through a project and
that we might show we've got to we could shoot package in.
We then need to add in the old Weiqi camera so find that and drag and drop that into the hierarchy then
make sure that you delete the existing main camera.
Now if you have a way could Kuchu Lawsons key this is where you put it.
Click on we could shoot camera in the inspector you'll find a spot where you can type that in.
If you don't have a license key you can use the trial cases that come with the download samples.
That's fine when you build it out to a device.
It just will have some watermarking on it.
But if you apply through the white chewed Web site for Lawsons case this is where it's going to go.
Now in addition to that Lawsons Kaye there we also need to switch your project over to the correct platform.
Mine is currently a Mac platform because that was the default one to change it go to File build settings
and in the I'm going to change it to android so I click on Android and go switch platform.
And actually at the same time I'm just going to make that internal and it might take a little while.
When unity is finished rebuilding all of your assets for the platform you chose in this case it was
Android.
You'll need to add the scene that you want to build at.
Now in this case my saying is called Khoda or home of the ops which you'll see in a moment what's called
that so I'm not gonna use this sample saying My saying is in the assets folder right at the top.
They just drag and drop that into the scenes in build and that will make sure that it gets built out
to your device.
While we're also here click on playa settings and to link your license key up with your actual app you
need to put your Bondel ID in place settings over in the inspector.
If you look down through the list of all of the settings for Android you'll see onda identification
package name.
This is where your bundle I.D. goes.
So type whatever you're using into that space.
OK so let's now add in our object in the hierarchy we're going to add in an object trick.
So let's just search for object Cheka that's another pre-fab that comes with the we could chewed SDK
and it's just here drag and drop that into your scene.
Now you'll see that a child over is cool trackable.
The object tracker is what looks for your trained Mocca in the real world environment.
So we need to now create that Marco this tutorial I decided to use the new outdoor stage area that's
on the Gold Coast at the home of the arts.
And you can see here it's a very interesting structure with a lot of patterns in this going to make
a really great marker.
Once you've identified the saying of the object that you want to make a mark of from you need to walk
around it and take photographs at all different types of angles.
Make sure that you have overlapping photographs as well.
You're allowed to put up to 30 photographs even when you first create the Mocca up to 75.
In my walk around this structure and then I picked the best 30 that best represented it from all angles.
With those photographs in hand you then need to take a visit to we could choose studio it's on the way
cat food web site you then create a new project.
Make sure that the type is set to object and that you give it an appropriate meaningful name before
hitting create.
Once that comes up you can then click on it and go about adding target objects a box will pop up that
will allow you to drag and drop all of the images that you took into it.
So here are the ones that I selected.
I put them in a separate folder to make it easier and then just drag and drop them where it says choose
images on the web page you'll want to then give your target a name.
This will be the name of the file that you end up downloading.
You also need to set the field of view so that we could choose knows the perspective dimensions that
you created your photographs with.
And usually you can select the type of camera that you took them with what's there.
You can hit on create target and that will start uploading all of those images and you can see the progress
bars quite clearly as each one is processed.
Once that's done we will start building a three day Mocca from all of your photograph data.
When it's finish you can take a look at your three day data or the point cloud that is created from
all of your photographs.
If you open up the studio editor and he can see the point cloud data created from my photographs.
So it's really cool what it can do.
This is going to be the data that is used as the Mokka or at least the training for the Mac when you
get to the real world and it's trying to detect something that it knows about in the scene that it's
looking at.
Now what you need to put into Unity's cool the w o fall and you can find that at the top of the web
page where it says W.T. out the little arrow.
Just click on that and then go through the process of downloading it where you get a message that says
that you'll get an e-mail of where you can pick up your WTI fall.
That e-mail to arrive click on the link download the WTO file and keep it handy.
Backing unity you're going to put your WTO fall into the streaming assets folder inside the wicked chewed
folder.
Now if you don't have your own Dubie file you don't have your own scene.
You've taken photographs of to do the same exercise.
I've provided the deputy.
I fall from my location as well as some printable images that you can use as markers.
A little later on as resources attach this lecture.
So drag and drop your WTI file into the chewed folder.
Then what you need to do is go to your object tracker.
And we're going to set the target collection to be the WTO that are just brought in or you just brought
in.
So just drop that down and we could should will automatically look for the object Mocca data in that
field and you can see that mine is just there.
So I add that in.
And now when you run this is going to be looking for something in the Camerer fade that looks like the
structure that we trained.
Now so far all we've done is create an object track that's going to look for a structure.
Basically what happens is as a camera feed comes in from your device it gets processed and wicked shrewed
is looking through all of that data looking for something that it recognizes which has to look like
your Mocca when it finds it.
It makes these trackable object that's underneath it and chalta to it visible otherwise it turns it
off and makes it invisible so that when the Marcuse they you've got your augmented object when it's
not it's not there.
Now this checkable object needs to have the thing that you want displayed in the drawable settings for
it.
In this case I've got something in essence and this is a single prefab I'll just drag and drop that
into the same so that you can see what it looks like anyway.
So it's a sink.
And he is basically playing the guitar.
This is the guy I want to display on my Mac when it's detected.
So I'm not going to have it there.
What I'm going to do is click on trackable and set it up as one of these drawable objects.
So I just drag and drop that into that spot there.
Now if you don't have a model to put on here you can make a pre-fab out of a simple cube and use that
instead just to test the detection functionality in this app to test it all out.
You can press play and if you've got a webcam connected to your machine you'll be able to get a live
preview.
Of course if you've taken a real world scene you won't be able to get that seen me or webcam so a piece
of paper with a printout of one of your images will suffice.
You can see here how it's detected the image and put my singer on it.
But the singer isn't aligned to where I want it to be.
So just by selecting the singing prefab that will appeal to attached to your trackable object you can
then scale it and right tied it and transform it until it looks like he is on the stage because remember
this is all about faking the augmented object to look as though it's over your video feed.
So once you've got him pretty much where you want him to appear when you run your app you can go over
to the transform in the Inspectah and copy that component that will put all of those values for that
position rotation and scale into memory.
Then you can just simply paste them on to the pre-fab.
Now when you run it again you'll find these transformations are applied immediately to object and will
appear where you want it to be.
OK now you ready to build it up to your device and try.