ilabs-flir 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Flir.podspec +31 -31
- package/README.md +1271 -1271
- package/android/Flir/build.gradle.kts +85 -80
- package/android/Flir/libs/flir-stubs.jar +0 -0
- package/android/Flir/src/main/AndroidManifest.xml +31 -31
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
- package/android/Flir/src/main/java/flir/android/CameraHandler.java +224 -194
- package/android/Flir/src/main/java/flir/android/FlirCommands.java +111 -0
- package/android/Flir/src/main/java/flir/android/FlirConnectionManager.java +354 -0
- package/android/Flir/src/main/java/flir/android/FlirController.kt +11 -11
- package/android/Flir/src/main/java/flir/android/FlirDiscoveryManager.java +236 -0
- package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +75 -75
- package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
- package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
- package/android/Flir/src/main/java/flir/android/FlirManager.kt +254 -248
- package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
- package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -16
- package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +195 -191
- package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +890 -0
- package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
- package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
- package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
- package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +14 -14
- package/app.plugin.js +264 -264
- package/expo-module.config.json +5 -5
- package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
- package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
- package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
- package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
- package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
- package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
- package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
- package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
- package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
- package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
- package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
- package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
- package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
- package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
- package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
- package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
- package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
- package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
- package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
- package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
- package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
- package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
- package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
- package/ios/Flir/src/FlirEventEmitter.h +12 -12
- package/ios/Flir/src/FlirEventEmitter.m +33 -33
- package/ios/Flir/src/FlirModule.h +10 -10
- package/ios/Flir/src/FlirModule.m +381 -381
- package/ios/Flir/src/FlirPreviewView.h +13 -13
- package/ios/Flir/src/FlirPreviewView.m +24 -24
- package/ios/Flir/src/FlirState.h +20 -20
- package/ios/Flir/src/FlirState.m +79 -79
- package/ios/Flir/src/FlirViewManager.h +9 -9
- package/ios/Flir/src/FlirViewManager.m +16 -16
- package/package.json +61 -61
- package/react-native.config.js +14 -14
- package/scripts/copy_ios_libs.sh +32 -32
- package/scripts/create_stubs.py +174 -174
- package/scripts/download-sdk.js +62 -62
- package/scripts/prepare-binaries.sh +171 -171
- package/sdk-manifest.json +30 -30
- package/src/FlirDownload.ts +78 -78
- package/src/index.d.ts +17 -17
- package/src/index.js +7 -7
- package/src/index.ts +7 -7
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRDiscovery.h
|
|
3
|
-
//
|
|
4
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
// An interface for discovering cameras in vicinity.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef FLIRDiscovery_h
|
|
10
|
-
#define FLIRDiscovery_h
|
|
11
|
-
|
|
12
|
-
#import "FLIRIdentity.h"
|
|
13
|
-
#import "FLIRDiscoveredCamera.h"
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Delegate to return events detected in the camera scanner
|
|
17
|
-
*/
|
|
18
|
-
@protocol FLIRDiscoveryEventDelegate <NSObject>
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* This event is raised when a camera device is returning an error.
|
|
22
|
-
*
|
|
23
|
-
* @param error The error.
|
|
24
|
-
*
|
|
25
|
-
* @param nsnetserviceserror The NSNetServicesError code
|
|
26
|
-
*
|
|
27
|
-
* @param iface The interface where the discovery error was encountered.
|
|
28
|
-
*/
|
|
29
|
-
-(void)discoveryError:(nonnull NSString *)error netServiceError:(int)nsnetserviceserror on:(FLIRCommunicationInterface)iface;
|
|
30
|
-
|
|
31
|
-
@optional
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* This event is raised when new camera device is found.
|
|
35
|
-
* @Deprecated Implement `cameraDiscovered:` instead
|
|
36
|
-
*/
|
|
37
|
-
-(void)cameraFound:(nonnull FLIRIdentity *)cameraIdentity __attribute((deprecated("Implement cameraDiscovered: instead.")));;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* This event is raised when a camera device is removed from the collection.
|
|
41
|
-
*/
|
|
42
|
-
-(void)cameraLost:(nonnull FLIRIdentity *)cameraIdentity;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* This event is called when discovery is finished (i.e. OS limitation).
|
|
46
|
-
* this event it NOT called after "FLIRDiscovery#stop()" is called
|
|
47
|
-
*
|
|
48
|
-
* @param iface The interface where the discovery was finished .
|
|
49
|
-
*/
|
|
50
|
-
-(void) discoveryFinished:(FLIRCommunicationInterface)iface;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* This event is called when a camera is discovered, it provides more information than `cameraFound:`
|
|
54
|
-
*/
|
|
55
|
-
- (void)cameraDiscovered:(nonnull FLIRDiscoveredCamera *)discoveredCamera;
|
|
56
|
-
|
|
57
|
-
@end
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
Discover cameras on your connected network. Finds a FLIR ONE if connected to your device.
|
|
62
|
-
|
|
63
|
-
@note Cameras can be reported as found even if they aren't connectable, depending on the implementation (entries could be cached in system services).
|
|
64
|
-
Similarly camera lost events might be delayed, depending on the implementation (some implementations are only refreshed once per 5 minutes).
|
|
65
|
-
One should use `FLIRCamera.connect(...)` if faster feedback is required.
|
|
66
|
-
|
|
67
|
-
### Example Usage
|
|
68
|
-
```swift
|
|
69
|
-
import UIKit
|
|
70
|
-
import ThermalSDK
|
|
71
|
-
|
|
72
|
-
class ViewController: UIViewController, FLIRDiscoveryEventDelegate {
|
|
73
|
-
|
|
74
|
-
// Create a discovery object.
|
|
75
|
-
let discoverer = FLIRDiscovery()
|
|
76
|
-
|
|
77
|
-
override func viewDidLoad() {
|
|
78
|
-
super.viewDidLoad()
|
|
79
|
-
// Set the discovere delegate to self.
|
|
80
|
-
discoverer.delegate = self
|
|
81
|
-
// Start discovery on all supported interfaces.
|
|
82
|
-
discoverer.start(FLIRCommunicationInterface.FLIRCommunicationInterfaceLightning)
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
func cameraFound(_ cameraIdentity: FLIRIdentity) {
|
|
86
|
-
// Handle discovered camera identity object...
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Etc ...
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
*/
|
|
93
|
-
@interface FLIRDiscovery : NSObject
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Start searching for devices on specified interfaces.
|
|
97
|
-
* The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
|
|
98
|
-
* @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
|
|
99
|
-
*/
|
|
100
|
-
-(void) start: (FLIRCommunicationInterface)iface;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Start searching for devices on specified interfaces.
|
|
104
|
-
* The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
|
|
105
|
-
* @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
|
|
106
|
-
* @param type specify a specific type to scan for (currently only supported for the emulator)
|
|
107
|
-
*/
|
|
108
|
-
- (void)start:(FLIRCommunicationInterface)iface cameraType:(FLIRCameraType)type;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Stop scanning for devices.
|
|
113
|
-
* Does nothing if no scan is active.
|
|
114
|
-
* The operation is asynchronous
|
|
115
|
-
*/
|
|
116
|
-
-(void) stop;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Checks if the scanner is active.
|
|
120
|
-
*
|
|
121
|
-
* @return YES if still scanning for cameras, otherwise NO.
|
|
122
|
-
*/
|
|
123
|
-
-(BOOL) isDiscovering;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* A delegate to handle the events in FLIRDiscoveryEventDelegate.
|
|
127
|
-
*/
|
|
128
|
-
@property (nonatomic, assign, nullable) id<FLIRDiscoveryEventDelegate> delegate;
|
|
129
|
-
|
|
130
|
-
@end
|
|
131
|
-
|
|
132
|
-
#endif
|
|
1
|
+
//
|
|
2
|
+
// FLIRDiscovery.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
// An interface for discovering cameras in vicinity.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef FLIRDiscovery_h
|
|
10
|
+
#define FLIRDiscovery_h
|
|
11
|
+
|
|
12
|
+
#import "FLIRIdentity.h"
|
|
13
|
+
#import "FLIRDiscoveredCamera.h"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Delegate to return events detected in the camera scanner
|
|
17
|
+
*/
|
|
18
|
+
@protocol FLIRDiscoveryEventDelegate <NSObject>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* This event is raised when a camera device is returning an error.
|
|
22
|
+
*
|
|
23
|
+
* @param error The error.
|
|
24
|
+
*
|
|
25
|
+
* @param nsnetserviceserror The NSNetServicesError code
|
|
26
|
+
*
|
|
27
|
+
* @param iface The interface where the discovery error was encountered.
|
|
28
|
+
*/
|
|
29
|
+
-(void)discoveryError:(nonnull NSString *)error netServiceError:(int)nsnetserviceserror on:(FLIRCommunicationInterface)iface;
|
|
30
|
+
|
|
31
|
+
@optional
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* This event is raised when new camera device is found.
|
|
35
|
+
* @Deprecated Implement `cameraDiscovered:` instead
|
|
36
|
+
*/
|
|
37
|
+
-(void)cameraFound:(nonnull FLIRIdentity *)cameraIdentity __attribute((deprecated("Implement cameraDiscovered: instead.")));;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* This event is raised when a camera device is removed from the collection.
|
|
41
|
+
*/
|
|
42
|
+
-(void)cameraLost:(nonnull FLIRIdentity *)cameraIdentity;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* This event is called when discovery is finished (i.e. OS limitation).
|
|
46
|
+
* this event it NOT called after "FLIRDiscovery#stop()" is called
|
|
47
|
+
*
|
|
48
|
+
* @param iface The interface where the discovery was finished .
|
|
49
|
+
*/
|
|
50
|
+
-(void) discoveryFinished:(FLIRCommunicationInterface)iface;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* This event is called when a camera is discovered, it provides more information than `cameraFound:`
|
|
54
|
+
*/
|
|
55
|
+
- (void)cameraDiscovered:(nonnull FLIRDiscoveredCamera *)discoveredCamera;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
Discover cameras on your connected network. Finds a FLIR ONE if connected to your device.
|
|
62
|
+
|
|
63
|
+
@note Cameras can be reported as found even if they aren't connectable, depending on the implementation (entries could be cached in system services).
|
|
64
|
+
Similarly camera lost events might be delayed, depending on the implementation (some implementations are only refreshed once per 5 minutes).
|
|
65
|
+
One should use `FLIRCamera.connect(...)` if faster feedback is required.
|
|
66
|
+
|
|
67
|
+
### Example Usage
|
|
68
|
+
```swift
|
|
69
|
+
import UIKit
|
|
70
|
+
import ThermalSDK
|
|
71
|
+
|
|
72
|
+
class ViewController: UIViewController, FLIRDiscoveryEventDelegate {
|
|
73
|
+
|
|
74
|
+
// Create a discovery object.
|
|
75
|
+
let discoverer = FLIRDiscovery()
|
|
76
|
+
|
|
77
|
+
override func viewDidLoad() {
|
|
78
|
+
super.viewDidLoad()
|
|
79
|
+
// Set the discovere delegate to self.
|
|
80
|
+
discoverer.delegate = self
|
|
81
|
+
// Start discovery on all supported interfaces.
|
|
82
|
+
discoverer.start(FLIRCommunicationInterface.FLIRCommunicationInterfaceLightning)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
func cameraFound(_ cameraIdentity: FLIRIdentity) {
|
|
86
|
+
// Handle discovered camera identity object...
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Etc ...
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
*/
|
|
93
|
+
@interface FLIRDiscovery : NSObject
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Start searching for devices on specified interfaces.
|
|
97
|
+
* The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
|
|
98
|
+
* @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
|
|
99
|
+
*/
|
|
100
|
+
-(void) start: (FLIRCommunicationInterface)iface;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Start searching for devices on specified interfaces.
|
|
104
|
+
* The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
|
|
105
|
+
* @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
|
|
106
|
+
* @param type specify a specific type to scan for (currently only supported for the emulator)
|
|
107
|
+
*/
|
|
108
|
+
- (void)start:(FLIRCommunicationInterface)iface cameraType:(FLIRCameraType)type;
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Stop scanning for devices.
|
|
113
|
+
* Does nothing if no scan is active.
|
|
114
|
+
* The operation is asynchronous
|
|
115
|
+
*/
|
|
116
|
+
-(void) stop;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Checks if the scanner is active.
|
|
120
|
+
*
|
|
121
|
+
* @return YES if still scanning for cameras, otherwise NO.
|
|
122
|
+
*/
|
|
123
|
+
-(BOOL) isDiscovering;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* A delegate to handle the events in FLIRDiscoveryEventDelegate.
|
|
127
|
+
*/
|
|
128
|
+
@property (nonatomic, assign, nullable) id<FLIRDiscoveryEventDelegate> delegate;
|
|
129
|
+
|
|
130
|
+
@end
|
|
131
|
+
|
|
132
|
+
#endif
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRDisplaySettings.h
|
|
3
|
-
//
|
|
4
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
#import <Foundation/Foundation.h>
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The FLIRDisplaySettings exposes a range of visual attributes which specify how the image is
|
|
11
|
-
* displayed. They also specify how image was displayed when it was initially taken by a camera.
|
|
12
|
-
* FLIRDisplaySettings allows user to specify a "subsection" of interest, while still keeping the
|
|
13
|
-
* entire image available for context.
|
|
14
|
-
* For example: taking an image of a car engine, but "zoom-in" to a faulty spark-plug, while keeping
|
|
15
|
-
* the entire image of the photographed engine for a context.
|
|
16
|
-
* The FLIRDisplaySettings effects both the IR and visual image.
|
|
17
|
-
*/
|
|
18
|
-
@interface FLIRDisplaySettings : NSObject
|
|
19
|
-
|
|
20
|
-
- (instancetype)initWithZoomFactor:(float)zoomFactor zoomPanX:(int)zoomPanX zoomPanY:(int)zoomPanY;
|
|
21
|
-
|
|
22
|
-
/** Defines the image zoom factor, where value 1.0 means no zoom. */
|
|
23
|
-
@property (nonatomic, readonly) float zoomFactor;
|
|
24
|
-
/** Defines the image zoom pan/offset in X axis, where value 0 means centered. */
|
|
25
|
-
@property (nonatomic, readonly) int zoomPanX;
|
|
26
|
-
/** Defines the image zoom pan/offset in Y axis, where value 0 means centered. */
|
|
27
|
-
@property (nonatomic, readonly) int zoomPanY;
|
|
28
|
-
|
|
29
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRDisplaySettings.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#import <Foundation/Foundation.h>
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The FLIRDisplaySettings exposes a range of visual attributes which specify how the image is
|
|
11
|
+
* displayed. They also specify how image was displayed when it was initially taken by a camera.
|
|
12
|
+
* FLIRDisplaySettings allows user to specify a "subsection" of interest, while still keeping the
|
|
13
|
+
* entire image available for context.
|
|
14
|
+
* For example: taking an image of a car engine, but "zoom-in" to a faulty spark-plug, while keeping
|
|
15
|
+
* the entire image of the photographed engine for a context.
|
|
16
|
+
* The FLIRDisplaySettings effects both the IR and visual image.
|
|
17
|
+
*/
|
|
18
|
+
@interface FLIRDisplaySettings : NSObject
|
|
19
|
+
|
|
20
|
+
- (instancetype)initWithZoomFactor:(float)zoomFactor zoomPanX:(int)zoomPanX zoomPanY:(int)zoomPanY;
|
|
21
|
+
|
|
22
|
+
/** Defines the image zoom factor, where value 1.0 means no zoom. */
|
|
23
|
+
@property (nonatomic, readonly) float zoomFactor;
|
|
24
|
+
/** Defines the image zoom pan/offset in X axis, where value 0 means centered. */
|
|
25
|
+
@property (nonatomic, readonly) int zoomPanX;
|
|
26
|
+
/** Defines the image zoom pan/offset in Y axis, where value 0 means centered. */
|
|
27
|
+
@property (nonatomic, readonly) int zoomPanY;
|
|
28
|
+
|
|
29
|
+
@end
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRFocus.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2020-07-02.
|
|
6
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Determines if camera should focus on near or far objects or control focus automatically (depending on the scene).
|
|
13
|
-
*/
|
|
14
|
-
typedef NS_ENUM(NSUInteger, FLIRDistance) {
|
|
15
|
-
NEAR,
|
|
16
|
-
FAR,
|
|
17
|
-
AUTO
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Autofocus modes.
|
|
22
|
-
*/
|
|
23
|
-
typedef NS_ENUM(NSUInteger, FLIRAutoFocusMode) {
|
|
24
|
-
/**
|
|
25
|
-
* Allows to specify focus distance parameter.
|
|
26
|
-
*/
|
|
27
|
-
NORMAL,
|
|
28
|
-
/**
|
|
29
|
-
* Camera automatically and continuously manages focus.
|
|
30
|
-
*/
|
|
31
|
-
CONTINUOUS
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Defines the focus calculation method. I.e. based on maximizing the image contrast or based on laser distance measurement.
|
|
36
|
-
*/
|
|
37
|
-
typedef NS_ENUM(NSUInteger, FLIRCalculationMethod) {
|
|
38
|
-
/**
|
|
39
|
-
* calculation based on maximizing the image contrast
|
|
40
|
-
*/
|
|
41
|
-
CONTRAST,
|
|
42
|
-
/**
|
|
43
|
-
* calculation based on laser distance measurement
|
|
44
|
-
*/
|
|
45
|
-
LASER,
|
|
46
|
-
/**
|
|
47
|
-
* calculation method automatically chosen by the camera (if supported)
|
|
48
|
-
*/
|
|
49
|
-
AUTOMATIC
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/** focus settings for the camera */
|
|
53
|
-
@interface FLIRFocus : NSObject
|
|
54
|
-
|
|
55
|
-
/** Triggers a single autofocus / AF event. */
|
|
56
|
-
-(BOOL)autofocus: (out NSError * _Nullable *_Nullable)error;
|
|
57
|
-
/** get distance selection */
|
|
58
|
-
- (FLIRDistance)getDistance;
|
|
59
|
-
/** set distance selection */
|
|
60
|
-
- (BOOL)setDistance: (FLIRDistance)distance error: (out NSError * _Nullable *_Nullable)error;
|
|
61
|
-
/** get autofocus mode */
|
|
62
|
-
- (FLIRAutoFocusMode)getMode;
|
|
63
|
-
/** set autofocus mode */
|
|
64
|
-
- (BOOL)setMode: (FLIRAutoFocusMode)mode error: (out NSError * _Nullable *_Nullable)error;
|
|
65
|
-
/** get focus calculation method */
|
|
66
|
-
- (FLIRCalculationMethod)getCalculationMethod;
|
|
67
|
-
/** set focus calculation method */
|
|
68
|
-
- (BOOL)setCalculationMethod: (FLIRCalculationMethod)method error: (out NSError * _Nullable *_Nullable)error;
|
|
69
|
-
|
|
70
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRFocus.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2020-07-02.
|
|
6
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Determines if camera should focus on near or far objects or control focus automatically (depending on the scene).
|
|
13
|
+
*/
|
|
14
|
+
typedef NS_ENUM(NSUInteger, FLIRDistance) {
|
|
15
|
+
NEAR,
|
|
16
|
+
FAR,
|
|
17
|
+
AUTO
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Autofocus modes.
|
|
22
|
+
*/
|
|
23
|
+
typedef NS_ENUM(NSUInteger, FLIRAutoFocusMode) {
|
|
24
|
+
/**
|
|
25
|
+
* Allows to specify focus distance parameter.
|
|
26
|
+
*/
|
|
27
|
+
NORMAL,
|
|
28
|
+
/**
|
|
29
|
+
* Camera automatically and continuously manages focus.
|
|
30
|
+
*/
|
|
31
|
+
CONTINUOUS
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Defines the focus calculation method. I.e. based on maximizing the image contrast or based on laser distance measurement.
|
|
36
|
+
*/
|
|
37
|
+
typedef NS_ENUM(NSUInteger, FLIRCalculationMethod) {
|
|
38
|
+
/**
|
|
39
|
+
* calculation based on maximizing the image contrast
|
|
40
|
+
*/
|
|
41
|
+
CONTRAST,
|
|
42
|
+
/**
|
|
43
|
+
* calculation based on laser distance measurement
|
|
44
|
+
*/
|
|
45
|
+
LASER,
|
|
46
|
+
/**
|
|
47
|
+
* calculation method automatically chosen by the camera (if supported)
|
|
48
|
+
*/
|
|
49
|
+
AUTOMATIC
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** focus settings for the camera */
|
|
53
|
+
@interface FLIRFocus : NSObject
|
|
54
|
+
|
|
55
|
+
/** Triggers a single autofocus / AF event. */
|
|
56
|
+
-(BOOL)autofocus: (out NSError * _Nullable *_Nullable)error;
|
|
57
|
+
/** get distance selection */
|
|
58
|
+
- (FLIRDistance)getDistance;
|
|
59
|
+
/** set distance selection */
|
|
60
|
+
- (BOOL)setDistance: (FLIRDistance)distance error: (out NSError * _Nullable *_Nullable)error;
|
|
61
|
+
/** get autofocus mode */
|
|
62
|
+
- (FLIRAutoFocusMode)getMode;
|
|
63
|
+
/** set autofocus mode */
|
|
64
|
+
- (BOOL)setMode: (FLIRAutoFocusMode)mode error: (out NSError * _Nullable *_Nullable)error;
|
|
65
|
+
/** get focus calculation method */
|
|
66
|
+
- (FLIRCalculationMethod)getCalculationMethod;
|
|
67
|
+
/** set focus calculation method */
|
|
68
|
+
- (BOOL)setCalculationMethod: (FLIRCalculationMethod)method error: (out NSError * _Nullable *_Nullable)error;
|
|
69
|
+
|
|
70
|
+
@end
|