C# Class TakePicture

Inheritance: MonoBehaviour, ITrackerEventHandler
Exibir arquivo Open project: DiUS/3DiUS Class Usage Examples

Public Properties

Property Type Description
initialPhotoTakenText string
resultPanel GameObject
resultTtext UnityEngine.UI.Text
takePictureButton GameObject

Public Methods

Method Description
CallGoogleVisionApi ( VisionRequestBody, request, System callback ) : void
DebugPrint ( string message, Object context = null ) : void
DebugPrintImage ( Image, image ) : void
OnInitialized ( ) : void
OnTrackablesUpdated ( ) : void
SaveImage ( Image, image ) : void
SaveScreenshot ( ) : void
ShowResults ( ) : void
Start ( ) : void
TakeScreenshot ( ) : void
VisionAnnotate ( byte image ) : void

Private Methods

Method Description
ActivateUI ( ) : IEnumerator
GetImageFromCamera ( ) : Image,
ImageToBytes ( Image, image ) : byte[]
LoadPNG ( ) : byte[]
SendPicture ( WWW www, System callback ) : IEnumerator

Method Details

CallGoogleVisionApi() public method

public CallGoogleVisionApi ( VisionRequestBody, request, System callback ) : void
request VisionRequestBody,
callback System
return void

DebugPrint() public method

public DebugPrint ( string message, Object context = null ) : void
message string
context Object
return void

DebugPrintImage() public method

public DebugPrintImage ( Image, image ) : void
image Image,
return void

OnInitialized() public method

public OnInitialized ( ) : void
return void

OnTrackablesUpdated() public method

public OnTrackablesUpdated ( ) : void
return void

SaveImage() public method

public SaveImage ( Image, image ) : void
image Image,
return void

SaveScreenshot() public method

public SaveScreenshot ( ) : void
return void

ShowResults() public method

public ShowResults ( ) : void
return void

Start() public method

public Start ( ) : void
return void

TakeScreenshot() public method

public TakeScreenshot ( ) : void
return void

VisionAnnotate() public method

public VisionAnnotate ( byte image ) : void
image byte
return void

Property Details

initialPhotoTakenText public_oe property

public string initialPhotoTakenText
return string

resultPanel public_oe property

public GameObject resultPanel
return GameObject

resultTtext public_oe property

public Text,UnityEngine.UI resultTtext
return UnityEngine.UI.Text

takePictureButton public_oe property

public GameObject takePictureButton
return GameObject