Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            try
            {
                List <RenderedImage.ImageType> lstType = new List <RenderedImage.ImageType>();
                lstType.Add(RenderedImage.ImageType.BlendedMSXRGBA8888Image);
                //lstType.Add(RenderedImage.ImageType.ThermalLinearFlux14BitImage);
                //lstType.Add(RenderedImage.ImageType.ThermalRGBA8888Image);
                //lstType.Add(RenderedImage.ImageType.ThermalRadiometricKelvinImage);
                //lstType.Add(RenderedImage.ImageType.VisibleAlignedRGBA8888Image);
                //lstType.Add(RenderedImage.ImageType.VisibleUnalignedYUV888Image);
                //lstType.Add(RenderedImage.ImageType.VisualJPEGImage);
                //lstType.Add(RenderedImage.ImageType.VisualYCbCr888Image);

                frameProcessor = new FrameProcessor(this, this, lstType);

                //아래꺼는 Simulated 테스트에서만 사용, 장비 연결할 경우는 주석 처리
                flirDevice = new SimulatedDevice(this, this, Resources.OpenRawResource(Resource.Raw.sampleframes), 10);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.Message);
            }
        }
Exemplo n.º 2
0
 public void OnDeviceDisconnected(Device p0)
 {
     flirDevice = null;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 카메라 연결되면 Device값 연결
 /// </summary>
 /// <param name="device"></param>
 public void OnDeviceConnected(Device device)
 {
     //flirDevice = device; //장비 연결할 경우는 여기 주석 해제
     device.StartFrameStream(this);
 }
Exemplo n.º 4
0
 protected override void OnPause()
 {
     base.OnPause();
     Device.StopDiscovery();
 }
Exemplo n.º 5
0
 protected override void OnResume()
 {
     base.OnResume();
     //Device.StartDiscovery(Application.Context, this);
     Device.StartDiscovery(this, this);
 }
Exemplo n.º 6
0
 /// <summary>
 /// 카메라 연결되면 Device값 연결
 /// </summary>
 /// <param name="device"></param>
 public void OnDeviceConnected(Device device)
 {
     flirDevice = device;
     device.StartFrameStream(this);
 }