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.
Files changed (117) hide show
  1. package/Flir.podspec +31 -31
  2. package/README.md +1271 -1271
  3. package/android/Flir/build.gradle.kts +85 -80
  4. package/android/Flir/libs/flir-stubs.jar +0 -0
  5. package/android/Flir/src/main/AndroidManifest.xml +31 -31
  6. package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
  7. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
  8. package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
  9. package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
  10. package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
  11. package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
  12. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
  13. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
  14. package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
  15. package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
  16. package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
  17. package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
  18. package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
  19. package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
  20. package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
  21. package/android/Flir/src/main/java/flir/android/CameraHandler.java +224 -194
  22. package/android/Flir/src/main/java/flir/android/FlirCommands.java +111 -0
  23. package/android/Flir/src/main/java/flir/android/FlirConnectionManager.java +354 -0
  24. package/android/Flir/src/main/java/flir/android/FlirController.kt +11 -11
  25. package/android/Flir/src/main/java/flir/android/FlirDiscoveryManager.java +236 -0
  26. package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +75 -75
  27. package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
  28. package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
  29. package/android/Flir/src/main/java/flir/android/FlirManager.kt +254 -248
  30. package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
  31. package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -16
  32. package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +195 -191
  33. package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +890 -0
  34. package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
  35. package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
  36. package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
  37. package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +14 -14
  38. package/app.plugin.js +264 -264
  39. package/expo-module.config.json +5 -5
  40. package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
  41. package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
  42. package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
  43. package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
  44. package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
  45. package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
  46. package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
  47. package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
  48. package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
  49. package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
  50. package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
  51. package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
  52. package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
  53. package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
  54. package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
  55. package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
  56. package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
  57. package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
  58. package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
  59. package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
  60. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
  61. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
  62. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
  63. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
  64. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
  65. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
  66. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
  67. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
  68. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
  69. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
  70. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
  71. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
  72. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
  73. package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
  74. package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
  75. package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
  76. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
  77. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
  78. package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
  79. package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
  80. package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
  81. package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
  82. package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
  83. package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
  84. package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
  85. package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
  86. package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
  87. package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
  88. package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
  89. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
  90. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
  91. package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
  92. package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
  93. package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
  94. package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
  95. package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
  96. package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
  97. package/ios/Flir/src/FlirEventEmitter.h +12 -12
  98. package/ios/Flir/src/FlirEventEmitter.m +33 -33
  99. package/ios/Flir/src/FlirModule.h +10 -10
  100. package/ios/Flir/src/FlirModule.m +381 -381
  101. package/ios/Flir/src/FlirPreviewView.h +13 -13
  102. package/ios/Flir/src/FlirPreviewView.m +24 -24
  103. package/ios/Flir/src/FlirState.h +20 -20
  104. package/ios/Flir/src/FlirState.m +79 -79
  105. package/ios/Flir/src/FlirViewManager.h +9 -9
  106. package/ios/Flir/src/FlirViewManager.m +16 -16
  107. package/package.json +61 -61
  108. package/react-native.config.js +14 -14
  109. package/scripts/copy_ios_libs.sh +32 -32
  110. package/scripts/create_stubs.py +174 -174
  111. package/scripts/download-sdk.js +62 -62
  112. package/scripts/prepare-binaries.sh +171 -171
  113. package/sdk-manifest.json +30 -30
  114. package/src/FlirDownload.ts +78 -78
  115. package/src/index.d.ts +17 -17
  116. package/src/index.js +7 -7
  117. 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