コード例 #1
0
ファイル: Tester.cs プロジェクト: dengnianchen/DLib
 private void Start()
 {
     _cameraService = CameraService.Get();
     _cameraService.FrameUpdated.Bind(frame => {
         uiTimestampText.text = $"Timestamp: {frame.Timestamp}";
     });
     if (_cameraService.CurrentState == ServiceState.Running)
     {
         var range = _cameraService.Device.GetPropertyRange(Property.EType.FrameRate);
         Debug.Log(
             $"Frame rate range is {range.low} - {range.high}");
     }
 }