public void TakePhoto()
 {
     Debug.Log("TakePhoto");
     PhotoCapture.CreateAsync(true, OnPhotoCaptureCreated);
 }
 private void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     photoCapture.Dispose();
     photoCapture = null;
 }
 private void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     // Shutdown the photo capture resource
     photoCapture.Dispose();
     photoCapture = null;
 }
Exemple #4
0
 public void TakePhoto()
 {
     PhotoCapture.CreateAsync(true, OnPhotoCaptureCreated);
 }
Exemple #5
0
 void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     // Shutdown our photo capture resource
     photoCaptureObject.Dispose();
     photoCaptureObject = null;
 }
Exemple #6
0
 private void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     photoCaptureObject.Dispose();
     photoCaptureObject = null;
     DetectFacesAsync();
 }
 /// <summary>
 /// Called when the photo mode stops
 /// </summary>
 /// <param name="result">Result of the intent of stopping the photo mode</param>
 private void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     photoCaptureObject.Dispose();
     photoCaptureObject = null;
     capturing          = false;
 }
Exemple #8
0
 private void AnalyzeScene()
 {
     DisplaySystemMessage("Detect Start...");
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
 }
Exemple #9
0
 // Use this for initialization
 void Start()
 {
     photoCapture = null;
 }
Exemple #10
0
 void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     _captureObject.Dispose();
     _captureObject = null;
     _ready         = false;
 }
Exemple #11
0
 // Use this for initialization
 void Start()
 {
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
 }
Exemple #12
0
 // エアタップの取得
 public void OnInputClicked(InputClickedEventData eventData)
 {
     textObject.text = "Call Custom Services...";
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
 }
Exemple #13
0
 void CreateCaptureObj(PhotoCapture captureObject)
 {
     this.photoCaptureObject = captureObject;
     this.photoCaptureObject.StartPhotoModeAsync(cameraParameters, _ => { });
 }
Exemple #14
0
 //クリーンアップ
 void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     Debug.Log("OnStoppedPhotoMode");
     photoCaptureObject.Dispose();
     photoCaptureObject = null;
 }
Exemple #15
0
    //internal void RunPC()
    //{
    //	imageBufferBytesArray = null;

    //	// Photo Capture
    //	cameraResolution = PhotoCapture.SupportedResolutions.OrderByDescending((res) => res.width * res.height).First();
    //	targetTexture = new Texture2D(cameraResolution.width, cameraResolution.height, TextureFormat.BGRA32, false);
    //	m_CameraParameters = new CameraParameters(WebCamMode.PhotoMode)
    //	{
    //		hologramOpacity = 0.0f,
    //		cameraResolutionWidth = cameraResolution.width,
    //		cameraResolutionHeight = cameraResolution.height,
    //		pixelFormat = CapturePixelFormat.BGRA32
    //	};
    //	PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
    //	// Debugging
    //	time_before_send = 0.0f;
    //}

    // ############################################# PHOTO CAPTURE
    private void OnPhotoCaptureCreated(PhotoCapture captureObject)
    {
        photoCaptureObject = captureObject;
        captureObject.StartPhotoModeAsync(m_CameraParameters, OnPhotoModeStarted);
    }
Exemple #16
0
 public void PhotoModeActive()
 {
     PhotoCapture.CreateAsync(true, OnPhotoCaptureCreated);
 }
 void onStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     m_PhotoCaptureObj.Dispose();
     m_PhotoCaptureObj = null;
 }
 void Start()
 {
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
     qrcodePlane = transform.Find("QRCodePlane").gameObject;
     plane       = transform.Find("QRCodePlane/Plane").gameObject;
 }
 void OnCreatedPhotoCaptureObject(PhotoCapture captureObject)
 {
     m_PhotoCaptureObj = captureObject;
     m_PhotoCaptureObj.StartPhotoModeAsync(m_CameraParameters, OnStartPhotoMode);
 }
Exemple #20
0
 /// <summary>
 /// 开始图像分析识别,倒数动画结束时触发
 /// </summary>
 public void AnalyzeImage()
 {
     ModelManager.Instance.SetPrepareCanvas(false);
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
 }
Exemple #21
0
 private void OnPhotoModeStopped(PhotoCapture.PhotoCaptureResult result)
 {
     m_PhotoCapture.Dispose();
     m_PhotoCapture = null;
 }
Exemple #22
0
 void OnCreatedPhotoCaptureObject(PhotoCapture captureObject)
 {
     _photoCaptureObj = captureObject;
     _photoCaptureObj.StartPhotoModeAsync(_cameraParameters, _ => { });
 }
Exemple #23
0
 void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     gui.text = "Stop Capture";
     photoCaptureObject.Dispose();
     photoCaptureObject = null;
 }
 /// <summary>
 /// クリックイベント
 /// </summary>
 public void OnInputClicked(InputClickedEventData eventData)
 {
     // キャプチャを開始する
     PhotoCapture.CreateAsync(true, OnPhotoCaptureCreated);
 }
 public void StartPhotoCapture()
 {
     //Create capture async
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
 }
 // Use this for initialization
 void Start()
 {
     //DLL method test.
     //Debug.Log(Test(1));
     PhotoCapture.CreateAsync(false, this.OnPhotoCreated);
 }
 void TakePicture(PhraseRecognizedEventArgs prea)
 {
     PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
 }
Exemple #28
0
 void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
 {
     _photoCapture.Dispose();
     _photoCapture = null;
 }