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,124 +1,124 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRStreamer.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2021-10-12.
|
|
6
|
-
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#import "FLIRRendererImpl.h"
|
|
12
|
-
#import "FLIRColorizer.h"
|
|
13
|
-
#import "FLIRCamera.h"
|
|
14
|
-
|
|
15
|
-
@class FLIRStream;
|
|
16
|
-
@class FLIRThermalImage;
|
|
17
|
-
|
|
18
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
-
|
|
20
|
-
@class FLIRVividIRParameters;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Vivid IR upscale methods
|
|
24
|
-
* chaning this will give faster response, but lower quality
|
|
25
|
-
*/
|
|
26
|
-
typedef NS_ENUM(NSInteger, FLIRVividIRUpscale) {
|
|
27
|
-
/// Use superResolution for scaling (only available on FLIR One Pro models)
|
|
28
|
-
/// this is the default setting for FLIR One Pro
|
|
29
|
-
FLIRSuperResolution,
|
|
30
|
-
/// use trilateral scaling
|
|
31
|
-
/// this is default setting for FLIR One
|
|
32
|
-
FLIRTrilateral
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Vivid IR latency mode
|
|
37
|
-
* chaning this will give faster response, but lower quality
|
|
38
|
-
*/
|
|
39
|
-
typedef NS_ENUM(NSInteger, FLIRVividIRLatency) {
|
|
40
|
-
/// Use a latency of 2 frames for denoise
|
|
41
|
-
/// this is the default setting for FLIR One
|
|
42
|
-
FLIRLatencyHigh,
|
|
43
|
-
/// Use a latency of 0 frames for denoise (fastest)
|
|
44
|
-
FLIRLatencyLow
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Streamer class
|
|
49
|
-
*/
|
|
50
|
-
@interface FLIRStreamer : FLIRRendererImpl
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Get parameters for the VividIR filter
|
|
54
|
-
* Returns nil if this streamer doesn't use VividIR
|
|
55
|
-
*/
|
|
56
|
-
@property (nonatomic, nullable, readonly) FLIRVividIRParameters* vividIRParameters;
|
|
57
|
-
|
|
58
|
-
@end
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Streamer class for thermal data
|
|
62
|
-
*/
|
|
63
|
-
@interface FLIRThermalStreamer : FLIRStreamer<FLIRColorizer>
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Create a thermal streamer on a stream
|
|
67
|
-
*
|
|
68
|
-
* @param stream the stream to be streamed
|
|
69
|
-
*
|
|
70
|
-
* The stream should contain thermal data. This will also contain a colorizer to provide a visual image
|
|
71
|
-
* from the thermal stream.
|
|
72
|
-
*/
|
|
73
|
-
- (instancetype)initWithStream:(FLIRStream *)stream;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Create a thermal streamer on a stream
|
|
77
|
-
*
|
|
78
|
-
* @param stream the stream to be streamed
|
|
79
|
-
* @param streamingOptions options for streaming, currently the only option is STREAMING_NO_OPENGL
|
|
80
|
-
* which creates a pipeline using only CPU filters, avoiding openGL rendering
|
|
81
|
-
*
|
|
82
|
-
* The stream should contain thermal data. This will also contain a colorizer to provide a visual image
|
|
83
|
-
* from the thermal stream.
|
|
84
|
-
*/
|
|
85
|
-
- (instancetype)initWithStream:(FLIRStream *)stream options: (StreamingOptions)streamingOptions;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* call a function with a @ref FLIRThermalImage from the stream
|
|
89
|
-
*
|
|
90
|
-
* @param imageBlock a block with an image parameter
|
|
91
|
-
*/
|
|
92
|
-
- (void)withThermalImage:(void (^)(FLIRThermalImage *))imageBlock;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@end
|
|
96
|
-
|
|
97
|
-
@interface FLIRVividIRParameters : NSObject
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/// Upscale method used, superresolution is only available on FLIR One Pro models
|
|
101
|
-
@property (nonatomic, assign) FLIRVividIRUpscale upscale;
|
|
102
|
-
/// Latency for denoise
|
|
103
|
-
@property (nonatomic, assign) FLIRVividIRLatency latency;
|
|
104
|
-
/// Denoise filters enabled
|
|
105
|
-
@property (nonatomic, assign) BOOL useDenoise;
|
|
106
|
-
|
|
107
|
-
@end
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Streamer class for visual data
|
|
111
|
-
*/
|
|
112
|
-
@interface FLIRVisualStreamer : FLIRStreamer
|
|
113
|
-
/**
|
|
114
|
-
* Create a visual streamer on a stream
|
|
115
|
-
*
|
|
116
|
-
* @param stream the stream to be streamed
|
|
117
|
-
*
|
|
118
|
-
* The stream should contain visual data.
|
|
119
|
-
*/
|
|
120
|
-
- (instancetype)initWithStream:(FLIRStream *)stream;
|
|
121
|
-
|
|
122
|
-
@end
|
|
123
|
-
|
|
124
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
//
|
|
2
|
+
// FLIRStreamer.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2021-10-12.
|
|
6
|
+
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#import "FLIRRendererImpl.h"
|
|
12
|
+
#import "FLIRColorizer.h"
|
|
13
|
+
#import "FLIRCamera.h"
|
|
14
|
+
|
|
15
|
+
@class FLIRStream;
|
|
16
|
+
@class FLIRThermalImage;
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
|
|
20
|
+
@class FLIRVividIRParameters;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Vivid IR upscale methods
|
|
24
|
+
* chaning this will give faster response, but lower quality
|
|
25
|
+
*/
|
|
26
|
+
typedef NS_ENUM(NSInteger, FLIRVividIRUpscale) {
|
|
27
|
+
/// Use superResolution for scaling (only available on FLIR One Pro models)
|
|
28
|
+
/// this is the default setting for FLIR One Pro
|
|
29
|
+
FLIRSuperResolution,
|
|
30
|
+
/// use trilateral scaling
|
|
31
|
+
/// this is default setting for FLIR One
|
|
32
|
+
FLIRTrilateral
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Vivid IR latency mode
|
|
37
|
+
* chaning this will give faster response, but lower quality
|
|
38
|
+
*/
|
|
39
|
+
typedef NS_ENUM(NSInteger, FLIRVividIRLatency) {
|
|
40
|
+
/// Use a latency of 2 frames for denoise
|
|
41
|
+
/// this is the default setting for FLIR One
|
|
42
|
+
FLIRLatencyHigh,
|
|
43
|
+
/// Use a latency of 0 frames for denoise (fastest)
|
|
44
|
+
FLIRLatencyLow
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Streamer class
|
|
49
|
+
*/
|
|
50
|
+
@interface FLIRStreamer : FLIRRendererImpl
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get parameters for the VividIR filter
|
|
54
|
+
* Returns nil if this streamer doesn't use VividIR
|
|
55
|
+
*/
|
|
56
|
+
@property (nonatomic, nullable, readonly) FLIRVividIRParameters* vividIRParameters;
|
|
57
|
+
|
|
58
|
+
@end
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Streamer class for thermal data
|
|
62
|
+
*/
|
|
63
|
+
@interface FLIRThermalStreamer : FLIRStreamer<FLIRColorizer>
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Create a thermal streamer on a stream
|
|
67
|
+
*
|
|
68
|
+
* @param stream the stream to be streamed
|
|
69
|
+
*
|
|
70
|
+
* The stream should contain thermal data. This will also contain a colorizer to provide a visual image
|
|
71
|
+
* from the thermal stream.
|
|
72
|
+
*/
|
|
73
|
+
- (instancetype)initWithStream:(FLIRStream *)stream;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Create a thermal streamer on a stream
|
|
77
|
+
*
|
|
78
|
+
* @param stream the stream to be streamed
|
|
79
|
+
* @param streamingOptions options for streaming, currently the only option is STREAMING_NO_OPENGL
|
|
80
|
+
* which creates a pipeline using only CPU filters, avoiding openGL rendering
|
|
81
|
+
*
|
|
82
|
+
* The stream should contain thermal data. This will also contain a colorizer to provide a visual image
|
|
83
|
+
* from the thermal stream.
|
|
84
|
+
*/
|
|
85
|
+
- (instancetype)initWithStream:(FLIRStream *)stream options: (StreamingOptions)streamingOptions;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* call a function with a @ref FLIRThermalImage from the stream
|
|
89
|
+
*
|
|
90
|
+
* @param imageBlock a block with an image parameter
|
|
91
|
+
*/
|
|
92
|
+
- (void)withThermalImage:(void (^)(FLIRThermalImage *))imageBlock;
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@end
|
|
96
|
+
|
|
97
|
+
@interface FLIRVividIRParameters : NSObject
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/// Upscale method used, superresolution is only available on FLIR One Pro models
|
|
101
|
+
@property (nonatomic, assign) FLIRVividIRUpscale upscale;
|
|
102
|
+
/// Latency for denoise
|
|
103
|
+
@property (nonatomic, assign) FLIRVividIRLatency latency;
|
|
104
|
+
/// Denoise filters enabled
|
|
105
|
+
@property (nonatomic, assign) BOOL useDenoise;
|
|
106
|
+
|
|
107
|
+
@end
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Streamer class for visual data
|
|
111
|
+
*/
|
|
112
|
+
@interface FLIRVisualStreamer : FLIRStreamer
|
|
113
|
+
/**
|
|
114
|
+
* Create a visual streamer on a stream
|
|
115
|
+
*
|
|
116
|
+
* @param stream the stream to be streamed
|
|
117
|
+
*
|
|
118
|
+
* The stream should contain visual data.
|
|
119
|
+
*/
|
|
120
|
+
- (instancetype)initWithStream:(FLIRStream *)stream;
|
|
121
|
+
|
|
122
|
+
@end
|
|
123
|
+
|
|
124
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRSystem.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
|
-
/** system parameters for the camera */
|
|
12
|
-
@interface FLIRSystem : NSObject
|
|
13
|
-
|
|
14
|
-
/** get the a flag indicating the system is running */
|
|
15
|
-
- (BOOL) getSystemUp;
|
|
16
|
-
/** get the date and time for the camera */
|
|
17
|
-
- (NSDateComponents* _Nullable)getTime;
|
|
18
|
-
/** get the time zone name for the camera */
|
|
19
|
-
- (NSString* _Nullable)getTimeZoneName;
|
|
20
|
-
/// Set the date and time for the camera.
|
|
21
|
-
/// - Parameter dateComponents: Required components: year, month, day, hour, minute, second and calendar.
|
|
22
|
-
///
|
|
23
|
-
/// The given components are used to set the camera's date and time.
|
|
24
|
-
/// > Note: Timezone is ignored; it's set by ``setTimeZoneName:error:``. Some cameras set seconds to 0.
|
|
25
|
-
- (BOOL)setTime:(NSDateComponents* _Nonnull)dateComponents error:(out NSError * _Nullable *_Nullable)error;
|
|
26
|
-
/// Set the time zone name for the camera.
|
|
27
|
-
/// > Note: not all cameras support this.
|
|
28
|
-
- (BOOL)setTimeZoneName:(NSString* _Nonnull)timeZoneName error:(out NSError * _Nullable *_Nullable)error;
|
|
29
|
-
/// Get a list of available time zones
|
|
30
|
-
- (NSArray<NSString *>* _Nullable)getAvailableTimeZones:(out NSError * _Nullable *_Nullable)error;
|
|
31
|
-
|
|
32
|
-
- (BOOL)setWiFiSSID:(NSString * _Nonnull)ssid;
|
|
33
|
-
|
|
34
|
-
@property (nonatomic, readonly) NSUInteger capacityKBytes;
|
|
35
|
-
@property (nonatomic, readonly) NSUInteger freeKBytes;
|
|
36
|
-
@property (nonatomic) BOOL isTorchOn;
|
|
37
|
-
|
|
38
|
-
- (void) reboot;
|
|
39
|
-
|
|
40
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRSystem.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
|
+
/** system parameters for the camera */
|
|
12
|
+
@interface FLIRSystem : NSObject
|
|
13
|
+
|
|
14
|
+
/** get the a flag indicating the system is running */
|
|
15
|
+
- (BOOL) getSystemUp;
|
|
16
|
+
/** get the date and time for the camera */
|
|
17
|
+
- (NSDateComponents* _Nullable)getTime;
|
|
18
|
+
/** get the time zone name for the camera */
|
|
19
|
+
- (NSString* _Nullable)getTimeZoneName;
|
|
20
|
+
/// Set the date and time for the camera.
|
|
21
|
+
/// - Parameter dateComponents: Required components: year, month, day, hour, minute, second and calendar.
|
|
22
|
+
///
|
|
23
|
+
/// The given components are used to set the camera's date and time.
|
|
24
|
+
/// > Note: Timezone is ignored; it's set by ``setTimeZoneName:error:``. Some cameras set seconds to 0.
|
|
25
|
+
- (BOOL)setTime:(NSDateComponents* _Nonnull)dateComponents error:(out NSError * _Nullable *_Nullable)error;
|
|
26
|
+
/// Set the time zone name for the camera.
|
|
27
|
+
/// > Note: not all cameras support this.
|
|
28
|
+
- (BOOL)setTimeZoneName:(NSString* _Nonnull)timeZoneName error:(out NSError * _Nullable *_Nullable)error;
|
|
29
|
+
/// Get a list of available time zones
|
|
30
|
+
- (NSArray<NSString *>* _Nullable)getAvailableTimeZones:(out NSError * _Nullable *_Nullable)error;
|
|
31
|
+
|
|
32
|
+
- (BOOL)setWiFiSSID:(NSString * _Nonnull)ssid;
|
|
33
|
+
|
|
34
|
+
@property (nonatomic, readonly) NSUInteger capacityKBytes;
|
|
35
|
+
@property (nonatomic, readonly) NSUInteger freeKBytes;
|
|
36
|
+
@property (nonatomic) BOOL isTorchOn;
|
|
37
|
+
|
|
38
|
+
- (void) reboot;
|
|
39
|
+
|
|
40
|
+
@end
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRTemperatureRange.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2020-07-02.
|
|
6
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@class FLIRThermalValue;
|
|
10
|
-
|
|
11
|
-
/** a temperature range for a camera */
|
|
12
|
-
@interface FLIRRange : NSObject
|
|
13
|
-
|
|
14
|
-
/** lowest thermal value */
|
|
15
|
-
@property (nonatomic, retain) FLIRThermalValue* _Nonnull min;
|
|
16
|
-
/** highest thermal value */
|
|
17
|
-
@property (nonatomic, retain) FLIRThermalValue* _Nonnull max;
|
|
18
|
-
|
|
19
|
-
@end
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@interface FLIRTemperatureRange : NSObject
|
|
23
|
-
|
|
24
|
-
/** get all available ranges */
|
|
25
|
-
- (NSArray<FLIRRange*>* _Nullable) getRanges;
|
|
26
|
-
/** get the range used */
|
|
27
|
-
- (int)getSelectedIndex;
|
|
28
|
-
/**
|
|
29
|
-
* Set the range used.
|
|
30
|
-
* When 'selectedIndex' is being set on the network camera, the camera responds with a success, but it asynchronously sets itself up.
|
|
31
|
-
* In consequence, the success response doesn't necessarily mean the camera is done with changing the setting.
|
|
32
|
-
* This means that reading the 'selectedIndex' will return the old value for a short while, until the camera sets everything up internally.
|
|
33
|
-
* It is up to the developer to subscribe if it is required.
|
|
34
|
-
* When 'selectedIndex' is being set on the FLIR ONE camera, in order to properly reflect new value in 'image.CameraInformation'
|
|
35
|
-
* the streaming must be started prior to setting the value and also 'FLIRThermalImage.getImage()' needs to be called.
|
|
36
|
-
*/
|
|
37
|
-
- (BOOL)setSelectedIndex: (int)selectedIndex error: (out NSError * _Nullable *_Nullable)error;
|
|
38
|
-
/** Subscribes for selected temperature range notifications. */
|
|
39
|
-
- (BOOL)subscribeSelectedIndex: (out NSError * _Nullable *_Nullable) error;
|
|
40
|
-
/** Revokes subscription for selected temperature range. */
|
|
41
|
-
- (void)unsubscribeSelectedIndex;
|
|
42
|
-
|
|
43
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRTemperatureRange.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2020-07-02.
|
|
6
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
@class FLIRThermalValue;
|
|
10
|
+
|
|
11
|
+
/** a temperature range for a camera */
|
|
12
|
+
@interface FLIRRange : NSObject
|
|
13
|
+
|
|
14
|
+
/** lowest thermal value */
|
|
15
|
+
@property (nonatomic, retain) FLIRThermalValue* _Nonnull min;
|
|
16
|
+
/** highest thermal value */
|
|
17
|
+
@property (nonatomic, retain) FLIRThermalValue* _Nonnull max;
|
|
18
|
+
|
|
19
|
+
@end
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@interface FLIRTemperatureRange : NSObject
|
|
23
|
+
|
|
24
|
+
/** get all available ranges */
|
|
25
|
+
- (NSArray<FLIRRange*>* _Nullable) getRanges;
|
|
26
|
+
/** get the range used */
|
|
27
|
+
- (int)getSelectedIndex;
|
|
28
|
+
/**
|
|
29
|
+
* Set the range used.
|
|
30
|
+
* When 'selectedIndex' is being set on the network camera, the camera responds with a success, but it asynchronously sets itself up.
|
|
31
|
+
* In consequence, the success response doesn't necessarily mean the camera is done with changing the setting.
|
|
32
|
+
* This means that reading the 'selectedIndex' will return the old value for a short while, until the camera sets everything up internally.
|
|
33
|
+
* It is up to the developer to subscribe if it is required.
|
|
34
|
+
* When 'selectedIndex' is being set on the FLIR ONE camera, in order to properly reflect new value in 'image.CameraInformation'
|
|
35
|
+
* the streaming must be started prior to setting the value and also 'FLIRThermalImage.getImage()' needs to be called.
|
|
36
|
+
*/
|
|
37
|
+
- (BOOL)setSelectedIndex: (int)selectedIndex error: (out NSError * _Nullable *_Nullable)error;
|
|
38
|
+
/** Subscribes for selected temperature range notifications. */
|
|
39
|
+
- (BOOL)subscribeSelectedIndex: (out NSError * _Nullable *_Nullable) error;
|
|
40
|
+
/** Revokes subscription for selected temperature range. */
|
|
41
|
+
- (void)unsubscribeSelectedIndex;
|
|
42
|
+
|
|
43
|
+
@end
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRThermalDelta.h
|
|
3
|
-
// FLIR Thermal SDK
|
|
4
|
-
//
|
|
5
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "FLIRThermalValue.h"
|
|
11
|
-
|
|
12
|
-
// should match atlas::image::measurements::DeltaMemberValueType
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Defines delta member value type.
|
|
16
|
-
*/
|
|
17
|
-
typedef NS_ENUM(NSUInteger, DeltaMemberValueType) {
|
|
18
|
-
/** Min marker value for the specified member type.
|
|
19
|
-
* Valid for member types: rectangle, ellipse, line.
|
|
20
|
-
*/
|
|
21
|
-
typeMin,
|
|
22
|
-
/** Max marker value for the specified member type.
|
|
23
|
-
* Valid for member types: rectangle, ellipse, line.
|
|
24
|
-
*/
|
|
25
|
-
typeMax,
|
|
26
|
-
/** Average value for the specified member type.
|
|
27
|
-
* Valid for member types: rectangle, ellipse, line.
|
|
28
|
-
*/
|
|
29
|
-
typeAvg,
|
|
30
|
-
/** Arbitrary value.
|
|
31
|
-
* Valid for member types: spot, reference temperature.
|
|
32
|
-
*/
|
|
33
|
-
typeValue
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Represents an Thermal delta with additional state information. It is used to obtain Thermal data
|
|
38
|
-
* from a ThermalImage or any MeasurementShape added to the image.
|
|
39
|
-
*/
|
|
40
|
-
@interface FLIRThermalDelta : NSObject
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Initialize a thermal delta value with specified temperature difference and unit (useful for tests)
|
|
44
|
-
*
|
|
45
|
-
* @param value Temperature difference.
|
|
46
|
-
* @param unit Temperature unit.
|
|
47
|
-
*/
|
|
48
|
-
- (instancetype)initWithValue:(double) value andUnit:(TemperatureUnit) unit;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Gets the difference/delta value.
|
|
52
|
-
*/
|
|
53
|
-
@property (readonly, nonatomic) double value;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Gets the temperature unit.
|
|
57
|
-
*/
|
|
58
|
-
@property (readonly, nonatomic) TemperatureUnit unit;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Gets the state of the value.
|
|
62
|
-
*/
|
|
63
|
-
@property (readonly, nonatomic) ThermalValueState state;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Gets a formatted string representing the value.
|
|
67
|
-
*/
|
|
68
|
-
- (NSString *)description;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Convenience function to test if two FLIRThermalDelta have the same temperature difference with imprecise floating-point comparison.
|
|
72
|
-
* @param other The second (right hand side) value to compare.
|
|
73
|
-
* @param absError The margin of error in degrees Kelvin.
|
|
74
|
-
*/
|
|
75
|
-
- (BOOL)areNear:(id)other absError: (double)absError;
|
|
76
|
-
|
|
77
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRThermalDelta.h
|
|
3
|
+
// FLIR Thermal SDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "FLIRThermalValue.h"
|
|
11
|
+
|
|
12
|
+
// should match atlas::image::measurements::DeltaMemberValueType
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Defines delta member value type.
|
|
16
|
+
*/
|
|
17
|
+
typedef NS_ENUM(NSUInteger, DeltaMemberValueType) {
|
|
18
|
+
/** Min marker value for the specified member type.
|
|
19
|
+
* Valid for member types: rectangle, ellipse, line.
|
|
20
|
+
*/
|
|
21
|
+
typeMin,
|
|
22
|
+
/** Max marker value for the specified member type.
|
|
23
|
+
* Valid for member types: rectangle, ellipse, line.
|
|
24
|
+
*/
|
|
25
|
+
typeMax,
|
|
26
|
+
/** Average value for the specified member type.
|
|
27
|
+
* Valid for member types: rectangle, ellipse, line.
|
|
28
|
+
*/
|
|
29
|
+
typeAvg,
|
|
30
|
+
/** Arbitrary value.
|
|
31
|
+
* Valid for member types: spot, reference temperature.
|
|
32
|
+
*/
|
|
33
|
+
typeValue
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Represents an Thermal delta with additional state information. It is used to obtain Thermal data
|
|
38
|
+
* from a ThermalImage or any MeasurementShape added to the image.
|
|
39
|
+
*/
|
|
40
|
+
@interface FLIRThermalDelta : NSObject
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initialize a thermal delta value with specified temperature difference and unit (useful for tests)
|
|
44
|
+
*
|
|
45
|
+
* @param value Temperature difference.
|
|
46
|
+
* @param unit Temperature unit.
|
|
47
|
+
*/
|
|
48
|
+
- (instancetype)initWithValue:(double) value andUnit:(TemperatureUnit) unit;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Gets the difference/delta value.
|
|
52
|
+
*/
|
|
53
|
+
@property (readonly, nonatomic) double value;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Gets the temperature unit.
|
|
57
|
+
*/
|
|
58
|
+
@property (readonly, nonatomic) TemperatureUnit unit;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Gets the state of the value.
|
|
62
|
+
*/
|
|
63
|
+
@property (readonly, nonatomic) ThermalValueState state;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Gets a formatted string representing the value.
|
|
67
|
+
*/
|
|
68
|
+
- (NSString *)description;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Convenience function to test if two FLIRThermalDelta have the same temperature difference with imprecise floating-point comparison.
|
|
72
|
+
* @param other The second (right hand side) value to compare.
|
|
73
|
+
* @param absError The margin of error in degrees Kelvin.
|
|
74
|
+
*/
|
|
75
|
+
- (BOOL)areNear:(id)other absError: (double)absError;
|
|
76
|
+
|
|
77
|
+
@end
|