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,35 +1,35 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRRenderer.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2021-10-12.
|
|
6
|
-
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#pragma once
|
|
10
|
-
|
|
11
|
-
#import <UIKit/UIKit.h>
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Class for rendering images.
|
|
15
|
-
*/
|
|
16
|
-
@protocol FLIRRenderer
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Get "rendered result"
|
|
20
|
-
*
|
|
21
|
-
* Fetch the rendered image from the renderer. This returns a deep copy of the image.
|
|
22
|
-
* @return Returns an UIImage, or nil if update has not been called previously or no source image was available yet.
|
|
23
|
-
*/
|
|
24
|
-
- (UIImage * _Nullable)getImage;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Execute renderer
|
|
28
|
-
*
|
|
29
|
-
* Polls image data from the source (e.g. a @ref FLIRStream or a @ref FLIRThermalImage), then performs image processing
|
|
30
|
-
* Result could be stored in a UIImage or rendered directly to screen, depending on configuration.
|
|
31
|
-
* @return true if update is succesfull, otherwise the error is set
|
|
32
|
-
*/
|
|
33
|
-
- (BOOL)update:(out NSError * _Nullable __autoreleasing * _Nullable)error;
|
|
34
|
-
|
|
35
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRRenderer.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2021-10-12.
|
|
6
|
+
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#pragma once
|
|
10
|
+
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Class for rendering images.
|
|
15
|
+
*/
|
|
16
|
+
@protocol FLIRRenderer
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Get "rendered result"
|
|
20
|
+
*
|
|
21
|
+
* Fetch the rendered image from the renderer. This returns a deep copy of the image.
|
|
22
|
+
* @return Returns an UIImage, or nil if update has not been called previously or no source image was available yet.
|
|
23
|
+
*/
|
|
24
|
+
- (UIImage * _Nullable)getImage;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Execute renderer
|
|
28
|
+
*
|
|
29
|
+
* Polls image data from the source (e.g. a @ref FLIRStream or a @ref FLIRThermalImage), then performs image processing
|
|
30
|
+
* Result could be stored in a UIImage or rendered directly to screen, depending on configuration.
|
|
31
|
+
* @return true if update is succesfull, otherwise the error is set
|
|
32
|
+
*/
|
|
33
|
+
- (BOOL)update:(out NSError * _Nullable __autoreleasing * _Nullable)error;
|
|
34
|
+
|
|
35
|
+
@end
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRRendererImpl.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2021-11-01.
|
|
6
|
-
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "FLIRRenderer.h"
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Class implementing FLIRRenderer, for internal use only
|
|
13
|
-
*/
|
|
14
|
-
@interface FLIRRendererImpl : NSObject<FLIRRenderer>
|
|
15
|
-
|
|
16
|
-
@end
|
|
17
|
-
|
|
1
|
+
//
|
|
2
|
+
// FLIRRendererImpl.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2021-11-01.
|
|
6
|
+
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "FLIRRenderer.h"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Class implementing FLIRRenderer, for internal use only
|
|
13
|
+
*/
|
|
14
|
+
@interface FLIRRendererImpl : NSObject<FLIRRenderer>
|
|
15
|
+
|
|
16
|
+
@end
|
|
17
|
+
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRScale.h
|
|
3
|
-
//
|
|
4
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
#pragma once
|
|
8
|
-
|
|
9
|
-
#import "FLIRThermalValue.h"
|
|
10
|
-
#import "FLIRPalette.h"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Defines an image's linear scale object and basic scale's parameters.
|
|
14
|
-
* The scale defines the way the Palette is applied to the ThermalImage.
|
|
15
|
-
* Scale is an interval of the temperature, where colors from a selected Palette is applied.
|
|
16
|
-
* The available temperature's range is defined by the ThermalImage.
|
|
17
|
-
* Scale cannot be created directly, it should always be obtained from ThermalImage.
|
|
18
|
-
* To do so, the ThermalImage.getScale() method should be called.
|
|
19
|
-
*/
|
|
20
|
-
@interface FLIRScale : NSObject
|
|
21
|
-
/**
|
|
22
|
-
* Sets the minimum and maximum scale values.
|
|
23
|
-
*
|
|
24
|
-
* @param min The minimum scale value.
|
|
25
|
-
* @param max The maximum scale value.
|
|
26
|
-
*/
|
|
27
|
-
- (void)setRangeWithMin:(FLIRThermalValue * _Nonnull)min andMax:(FLIRThermalValue * _Nonnull) max;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Sets the scale automatically based on the min and max scale values.
|
|
31
|
-
*
|
|
32
|
-
* @note This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead.
|
|
33
|
-
*/
|
|
34
|
-
- (void)setAutoAdjustEnabled:(BOOL)enabled DEPRECATED_MSG_ATTRIBUTE("This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead");;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Gets the current minimum scale value.
|
|
38
|
-
* @return The min scale value.
|
|
39
|
-
*/
|
|
40
|
-
- (FLIRThermalValue * _Nonnull)getRangeMin;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Gets the current maximum scale value.
|
|
44
|
-
* @return The max scale value
|
|
45
|
-
*/
|
|
46
|
-
- (FLIRThermalValue * _Nonnull)getRangeMax;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Gets the thermal scale image.
|
|
50
|
-
*
|
|
51
|
-
* @return An UIImage representing the thermal scale.
|
|
52
|
-
*
|
|
53
|
-
* @note This call will be removed, use FLIRColorizer.getScaleImage from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead.
|
|
54
|
-
*/
|
|
55
|
-
- (UIImage * _Nullable)getImage DEPRECATED_MSG_ATTRIBUTE("This call will be removed, use FLIRColorizer.getScaleImage from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead");
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Gets the thermal scale image.
|
|
59
|
-
*
|
|
60
|
-
* @param palette the pallete
|
|
61
|
-
*
|
|
62
|
-
* @return An UIImage representing the full thermal range scale.
|
|
63
|
-
*
|
|
64
|
-
* @note This feature will likely be removed in upcoming release.
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
+ (UIImage * _Nullable)getFixedFullRangeScaleImage:(FLIRPalette * _Nonnull) palette DEPRECATED_MSG_ATTRIBUTE("This feature will likely be removed in upcoming release.");;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Gets the thermal scale image from current palette.
|
|
71
|
-
*
|
|
72
|
-
* @return An UIImage representing the full thermal range scale.
|
|
73
|
-
*
|
|
74
|
-
* @note This feature will likely be removed in upcoming release.
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
- (UIImage * _Nullable)getFixedFullRangeScaleImage DEPRECATED_MSG_ATTRIBUTE("This feature will likely be removed in upcoming release.");
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Gets auto adjust setting.
|
|
82
|
-
*
|
|
83
|
-
* @note This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead.
|
|
84
|
-
*/
|
|
85
|
-
- (BOOL)isAutoAdjustEnabled DEPRECATED_MSG_ATTRIBUTE("This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead");
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Sets the maximum range, where colors defined by the Palette are applied to the ThermalImage.
|
|
89
|
-
* @Deprecated Setting max value may affect min value, use setRangeWithMin:andMax:
|
|
90
|
-
*/
|
|
91
|
-
- (void)setRangeMax:(FLIRThermalValue * _Nonnull)max;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Sets the minimum range, where colors defined by the Palette are applied to the ThermalImage.
|
|
95
|
-
* @Deprecated Setting min value may affect max value, use setRangeWithMin:andMax:
|
|
96
|
-
*/
|
|
97
|
-
- (void)setRangeMin:(FLIRThermalValue * _Nonnull)min;
|
|
98
|
-
|
|
99
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRScale.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#pragma once
|
|
8
|
+
|
|
9
|
+
#import "FLIRThermalValue.h"
|
|
10
|
+
#import "FLIRPalette.h"
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Defines an image's linear scale object and basic scale's parameters.
|
|
14
|
+
* The scale defines the way the Palette is applied to the ThermalImage.
|
|
15
|
+
* Scale is an interval of the temperature, where colors from a selected Palette is applied.
|
|
16
|
+
* The available temperature's range is defined by the ThermalImage.
|
|
17
|
+
* Scale cannot be created directly, it should always be obtained from ThermalImage.
|
|
18
|
+
* To do so, the ThermalImage.getScale() method should be called.
|
|
19
|
+
*/
|
|
20
|
+
@interface FLIRScale : NSObject
|
|
21
|
+
/**
|
|
22
|
+
* Sets the minimum and maximum scale values.
|
|
23
|
+
*
|
|
24
|
+
* @param min The minimum scale value.
|
|
25
|
+
* @param max The maximum scale value.
|
|
26
|
+
*/
|
|
27
|
+
- (void)setRangeWithMin:(FLIRThermalValue * _Nonnull)min andMax:(FLIRThermalValue * _Nonnull) max;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Sets the scale automatically based on the min and max scale values.
|
|
31
|
+
*
|
|
32
|
+
* @note This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead.
|
|
33
|
+
*/
|
|
34
|
+
- (void)setAutoAdjustEnabled:(BOOL)enabled DEPRECATED_MSG_ATTRIBUTE("This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead");;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets the current minimum scale value.
|
|
38
|
+
* @return The min scale value.
|
|
39
|
+
*/
|
|
40
|
+
- (FLIRThermalValue * _Nonnull)getRangeMin;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets the current maximum scale value.
|
|
44
|
+
* @return The max scale value
|
|
45
|
+
*/
|
|
46
|
+
- (FLIRThermalValue * _Nonnull)getRangeMax;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Gets the thermal scale image.
|
|
50
|
+
*
|
|
51
|
+
* @return An UIImage representing the thermal scale.
|
|
52
|
+
*
|
|
53
|
+
* @note This call will be removed, use FLIRColorizer.getScaleImage from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead.
|
|
54
|
+
*/
|
|
55
|
+
- (UIImage * _Nullable)getImage DEPRECATED_MSG_ATTRIBUTE("This call will be removed, use FLIRColorizer.getScaleImage from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead");
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Gets the thermal scale image.
|
|
59
|
+
*
|
|
60
|
+
* @param palette the pallete
|
|
61
|
+
*
|
|
62
|
+
* @return An UIImage representing the full thermal range scale.
|
|
63
|
+
*
|
|
64
|
+
* @note This feature will likely be removed in upcoming release.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
+ (UIImage * _Nullable)getFixedFullRangeScaleImage:(FLIRPalette * _Nonnull) palette DEPRECATED_MSG_ATTRIBUTE("This feature will likely be removed in upcoming release.");;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Gets the thermal scale image from current palette.
|
|
71
|
+
*
|
|
72
|
+
* @return An UIImage representing the full thermal range scale.
|
|
73
|
+
*
|
|
74
|
+
* @note This feature will likely be removed in upcoming release.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
- (UIImage * _Nullable)getFixedFullRangeScaleImage DEPRECATED_MSG_ATTRIBUTE("This feature will likely be removed in upcoming release.");
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Gets auto adjust setting.
|
|
82
|
+
*
|
|
83
|
+
* @note This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead.
|
|
84
|
+
*/
|
|
85
|
+
- (BOOL)isAutoAdjustEnabled DEPRECATED_MSG_ATTRIBUTE("This call will be removed, use FLIRColorizer.autoScale from FLIRImageColorizer (still images) or FLIRThermalStreamer (live streams) instead");
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Sets the maximum range, where colors defined by the Palette are applied to the ThermalImage.
|
|
89
|
+
* @Deprecated Setting max value may affect min value, use setRangeWithMin:andMax:
|
|
90
|
+
*/
|
|
91
|
+
- (void)setRangeMax:(FLIRThermalValue * _Nonnull)max;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Sets the minimum range, where colors defined by the Palette are applied to the ThermalImage.
|
|
95
|
+
* @Deprecated Setting min value may affect max value, use setRangeWithMin:andMax:
|
|
96
|
+
*/
|
|
97
|
+
- (void)setRangeMin:(FLIRThermalValue * _Nonnull)min;
|
|
98
|
+
|
|
99
|
+
@end
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRScaleController.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2020-09-14.
|
|
6
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#pragma once
|
|
10
|
-
|
|
11
|
-
@class FLIRRange;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Camera scale controller interface.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
@interface FLIRScaleController : NSObject
|
|
18
|
-
|
|
19
|
-
/** check if auto adjust is available */
|
|
20
|
-
- (BOOL)autoAdjustAvailable;
|
|
21
|
-
/**
|
|
22
|
-
* Get auto adjust mode. Defines the adjust mode of the temperature scale on the live screen on the camera.
|
|
23
|
-
* Auto mode (true value): In this mode, the camera is continuously auto-adjusted for the best image brightness and contrast.
|
|
24
|
-
* Manual mode (false value): This mode allows manual adjustments of the temperature span and the temperature level.
|
|
25
|
-
*/
|
|
26
|
-
- (BOOL)getAutoAdjust;
|
|
27
|
-
/** Set auto adjust mode */
|
|
28
|
-
- (BOOL)setAutoAdjust:(BOOL)autoAdjust error: (out NSError * _Nullable * _Nullable)error;
|
|
29
|
-
/** subscribe to changes of auto adjust mode */
|
|
30
|
-
- (BOOL)subscribeAutoAdjust:(out NSError * _Nullable * _Nullable)error;
|
|
31
|
-
/** unsubscribe to changes of auto adjust mode */
|
|
32
|
-
- (void)unsubscribeAutoAdjust;
|
|
33
|
-
/** check if scale active mode is available */
|
|
34
|
-
- (BOOL)activeAvailable;
|
|
35
|
-
/** get active mode */
|
|
36
|
-
- (BOOL)getActive;
|
|
37
|
-
/** Enables/disables the scale active mode.*/
|
|
38
|
-
- (BOOL)setActive:(BOOL)active error: (out NSError * _Nullable * _Nullable)error;
|
|
39
|
-
/** get range for scale */
|
|
40
|
-
- (FLIRRange *_Nullable)getRange;
|
|
41
|
-
/** set range for scale */
|
|
42
|
-
- (BOOL)setRange:(FLIRRange *_Nonnull)range error:(out NSError * _Nullable * _Nullable)error;
|
|
43
|
-
|
|
44
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRScaleController.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2020-09-14.
|
|
6
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#pragma once
|
|
10
|
+
|
|
11
|
+
@class FLIRRange;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Camera scale controller interface.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@interface FLIRScaleController : NSObject
|
|
18
|
+
|
|
19
|
+
/** check if auto adjust is available */
|
|
20
|
+
- (BOOL)autoAdjustAvailable;
|
|
21
|
+
/**
|
|
22
|
+
* Get auto adjust mode. Defines the adjust mode of the temperature scale on the live screen on the camera.
|
|
23
|
+
* Auto mode (true value): In this mode, the camera is continuously auto-adjusted for the best image brightness and contrast.
|
|
24
|
+
* Manual mode (false value): This mode allows manual adjustments of the temperature span and the temperature level.
|
|
25
|
+
*/
|
|
26
|
+
- (BOOL)getAutoAdjust;
|
|
27
|
+
/** Set auto adjust mode */
|
|
28
|
+
- (BOOL)setAutoAdjust:(BOOL)autoAdjust error: (out NSError * _Nullable * _Nullable)error;
|
|
29
|
+
/** subscribe to changes of auto adjust mode */
|
|
30
|
+
- (BOOL)subscribeAutoAdjust:(out NSError * _Nullable * _Nullable)error;
|
|
31
|
+
/** unsubscribe to changes of auto adjust mode */
|
|
32
|
+
- (void)unsubscribeAutoAdjust;
|
|
33
|
+
/** check if scale active mode is available */
|
|
34
|
+
- (BOOL)activeAvailable;
|
|
35
|
+
/** get active mode */
|
|
36
|
+
- (BOOL)getActive;
|
|
37
|
+
/** Enables/disables the scale active mode.*/
|
|
38
|
+
- (BOOL)setActive:(BOOL)active error: (out NSError * _Nullable * _Nullable)error;
|
|
39
|
+
/** get range for scale */
|
|
40
|
+
- (FLIRRange *_Nullable)getRange;
|
|
41
|
+
/** set range for scale */
|
|
42
|
+
- (BOOL)setRange:(FLIRRange *_Nonnull)range error:(out NSError * _Nullable * _Nullable)error;
|
|
43
|
+
|
|
44
|
+
@end
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRStream.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2021-10-11.
|
|
6
|
-
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Delegate for streaming
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
@protocol FLIRStreamDelegate <NSObject>
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Called when an error occurs in streaming
|
|
21
|
-
*/
|
|
22
|
-
- (void)onError:(NSError *)error;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Called when an image is available on the stream
|
|
26
|
-
*/
|
|
27
|
-
- (void)onImageReceived;
|
|
28
|
-
|
|
29
|
-
@end
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Camera stream class.
|
|
33
|
-
* @note the implementation for thermal streaming for network cameras is still in experimental stage.
|
|
34
|
-
*/
|
|
35
|
-
@interface FLIRStream : NSObject
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Delegate with callbacks
|
|
39
|
-
*/
|
|
40
|
-
@property (nonatomic, strong, nullable) id<FLIRStreamDelegate> delegate;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* True if the stream contains both thermal and visual data
|
|
44
|
-
*/
|
|
45
|
-
@property (nonatomic, readonly) BOOL isDual;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Width and height of the IR data for each frame
|
|
49
|
-
* (Zero If no IR data is available)
|
|
50
|
-
*/
|
|
51
|
-
@property (nonatomic, readonly) CGSize irSize;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Width and height of the visual data for each frame
|
|
55
|
-
* (Zero If no visual data is available)
|
|
56
|
-
*/
|
|
57
|
-
@property (nonatomic, readonly) CGSize visualSize;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* True if the stream contains readiometric data
|
|
61
|
-
*/
|
|
62
|
-
@property (nonatomic, readonly) BOOL isThermal;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* True if the stream is active and streaming
|
|
66
|
-
*/
|
|
67
|
-
@property (nonatomic, readonly) BOOL isStreaming;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Start frame grabbing on the provided stream.
|
|
71
|
-
*
|
|
72
|
-
* Starts the frame grabbing. When a new frame is available the delegate method onImageRecieved will be called.
|
|
73
|
-
* @note the implementation for thermal streaming for network cameras is still in experimental stage.
|
|
74
|
-
* @param error The error if start returns false
|
|
75
|
-
* @return returns false if not able to start stream
|
|
76
|
-
*/
|
|
77
|
-
- (BOOL)start:(out NSError * _Nullable __autoreleasing * _Nullable)error;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Stop frame grabbing on the stream.
|
|
81
|
-
*/
|
|
82
|
-
- (void)stop;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Set the camera's streamed frame rate.<br />
|
|
86
|
-
* Note: Some cameras will not change frame rate while streaming.
|
|
87
|
-
*
|
|
88
|
-
* @param hz Frames per second, must be in between getMinFrameRate and getMaxFrameRate, inclusive
|
|
89
|
-
*/
|
|
90
|
-
- (BOOL)setFrameRate:(double)hertz error:(out NSError * _Nullable __autoreleasing * _Nullable)error;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Get the camera's streamed frame rate. If the frame rate cannot be fetched, zero is returned.
|
|
94
|
-
*/
|
|
95
|
-
- (double)getFrameRate;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Get the lowest possible frame rate for this camera stream.
|
|
99
|
-
*/
|
|
100
|
-
- (double)getMinFrameRate;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Get the highest possible frame rate for this camera stream. If the frame rate cannot be fetched, zero is returned.
|
|
104
|
-
*/
|
|
105
|
-
- (double)getMaxFrameRate;
|
|
106
|
-
|
|
107
|
-
@end
|
|
108
|
-
|
|
109
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
//
|
|
2
|
+
// FLIRStream.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2021-10-11.
|
|
6
|
+
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Delegate for streaming
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@protocol FLIRStreamDelegate <NSObject>
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Called when an error occurs in streaming
|
|
21
|
+
*/
|
|
22
|
+
- (void)onError:(NSError *)error;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Called when an image is available on the stream
|
|
26
|
+
*/
|
|
27
|
+
- (void)onImageReceived;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Camera stream class.
|
|
33
|
+
* @note the implementation for thermal streaming for network cameras is still in experimental stage.
|
|
34
|
+
*/
|
|
35
|
+
@interface FLIRStream : NSObject
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Delegate with callbacks
|
|
39
|
+
*/
|
|
40
|
+
@property (nonatomic, strong, nullable) id<FLIRStreamDelegate> delegate;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* True if the stream contains both thermal and visual data
|
|
44
|
+
*/
|
|
45
|
+
@property (nonatomic, readonly) BOOL isDual;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Width and height of the IR data for each frame
|
|
49
|
+
* (Zero If no IR data is available)
|
|
50
|
+
*/
|
|
51
|
+
@property (nonatomic, readonly) CGSize irSize;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Width and height of the visual data for each frame
|
|
55
|
+
* (Zero If no visual data is available)
|
|
56
|
+
*/
|
|
57
|
+
@property (nonatomic, readonly) CGSize visualSize;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* True if the stream contains readiometric data
|
|
61
|
+
*/
|
|
62
|
+
@property (nonatomic, readonly) BOOL isThermal;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* True if the stream is active and streaming
|
|
66
|
+
*/
|
|
67
|
+
@property (nonatomic, readonly) BOOL isStreaming;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Start frame grabbing on the provided stream.
|
|
71
|
+
*
|
|
72
|
+
* Starts the frame grabbing. When a new frame is available the delegate method onImageRecieved will be called.
|
|
73
|
+
* @note the implementation for thermal streaming for network cameras is still in experimental stage.
|
|
74
|
+
* @param error The error if start returns false
|
|
75
|
+
* @return returns false if not able to start stream
|
|
76
|
+
*/
|
|
77
|
+
- (BOOL)start:(out NSError * _Nullable __autoreleasing * _Nullable)error;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Stop frame grabbing on the stream.
|
|
81
|
+
*/
|
|
82
|
+
- (void)stop;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Set the camera's streamed frame rate.<br />
|
|
86
|
+
* Note: Some cameras will not change frame rate while streaming.
|
|
87
|
+
*
|
|
88
|
+
* @param hz Frames per second, must be in between getMinFrameRate and getMaxFrameRate, inclusive
|
|
89
|
+
*/
|
|
90
|
+
- (BOOL)setFrameRate:(double)hertz error:(out NSError * _Nullable __autoreleasing * _Nullable)error;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Get the camera's streamed frame rate. If the frame rate cannot be fetched, zero is returned.
|
|
94
|
+
*/
|
|
95
|
+
- (double)getFrameRate;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Get the lowest possible frame rate for this camera stream.
|
|
99
|
+
*/
|
|
100
|
+
- (double)getMinFrameRate;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Get the highest possible frame rate for this camera stream. If the frame rate cannot be fetched, zero is returned.
|
|
104
|
+
*/
|
|
105
|
+
- (double)getMaxFrameRate;
|
|
106
|
+
|
|
107
|
+
@end
|
|
108
|
+
|
|
109
|
+
NS_ASSUME_NONNULL_END
|