Taking photos every 2 seconds with FLIR ONE camera

Im new to Xcode and Objective-C but i manage to create a IOS app using FLIR ONE SDK and it works great. But now i want the app to take a picture every 2 seconds but i can manage to do it or found someone o did it. Below i copy my code of the app i created using FLIR ONE camera. If anyone can help me please!

@interface ViewController ()

import "ViewController.h"

@property (weak, nonatomic) IBOutlet UIImageView *thermalImageView; @property (strong, nonatomic) UIImage *thermalImage;


@implementation ViewController

  • (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.

    [[FLIROneSDKStreamManager sharedInstance] addDelegate:self];

    [[FLIROneSDKStreamManager sharedInstance] setImageOptions: FLIROneSDKImageOptionsBlendedMSXRGBA8888Image]; }

  • (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. }
  • (void)FLIROneSDKDelegateManager: (FLIROneSDKDelegateManager *)delegateManager didReceiveBlendedMSXRGBA8888Image: (NSData *)msxImage imageSize: (CGSize)size {

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ self.thermalImage = [FLIROneSDKUIImage imageWithFormat: FLIROneSDKImageOptionsBlendedMSXRGBA8888Image andData: msxImage andSize: size]; dispatch_async(dispatch_get_main_queue(), ^{ [self.thermalImageView setImage:self.thermalImage]; }); }); } @end


Category: ios Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.122 (s). 12 q(s)