ilabs-flir 1.0.2 → 1.0.4
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/ErrorCode.java +13 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/ThermalSdkAndroid.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/androidsdk/image/BitmapAndroid.java +20 -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/Camera.java +26 -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/ConnectParameters.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/RemoteControl.java +16 -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/discovery/DiscoveryEventListener.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryFactory.java +33 -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/com/flir/thermalsdk/live/streaming/Stream.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/ThermalStreamer.java +28 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/VisualStreamer.java +18 -0
- package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -0
- package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +76 -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 +477 -248
- package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
- package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -19
- package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +165 -117
- package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +1511 -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/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 +60 -60
- 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 +37 -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
- package/android/Flir/src/main/java/flir/android/CameraHandler.java +0 -194
- package/android/Flir/src/main/java/flir/android/FlirController.kt +0 -11
- package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +0 -14
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRBattery.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2020-07-02.
|
|
6
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
ChargingState
|
|
11
|
-
*/
|
|
12
|
-
typedef NS_ENUM(NSUInteger, FLIRChargingState)
|
|
13
|
-
{
|
|
14
|
-
/** Indicates that the battery is not charging because the camera is in "developer mode". */
|
|
15
|
-
DEVELOPER,
|
|
16
|
-
/** Indicates that the battery is not charging because the camera is not connected to an external power supply. */
|
|
17
|
-
NOCHARGING,
|
|
18
|
-
/** Indicates that the battery is charging from external power. */
|
|
19
|
-
MANAGEDCHARGING,
|
|
20
|
-
|
|
21
|
-
/** Indicates that the battery is charging the iPhone.
|
|
22
|
-
|
|
23
|
-
This field indicates that IF there is an iPhone plugged in, it will
|
|
24
|
-
be receiving power from the RBPDevice battery. However, it is still possible
|
|
25
|
-
for the RBPDevice to be in this "mode" EVEN IF THERE IS NO IPHONE ATTACHED.
|
|
26
|
-
*/
|
|
27
|
-
CHARGINGSMARTPHONE,
|
|
28
|
-
|
|
29
|
-
/** Indicates that a charging fault occurred (overheat, etc.) */
|
|
30
|
-
FAULT,
|
|
31
|
-
/** Indicates that a charging heat fault occured */
|
|
32
|
-
FAULTHEAT,
|
|
33
|
-
/** Indicates that a charging fault occured due to low current from the charging source */
|
|
34
|
-
FAULTBADCHARGER,
|
|
35
|
-
/** Indicates that a charging fault exists but the iPhone is being charged */
|
|
36
|
-
CHARGINGSMARTPHONEFAULTHEAT,
|
|
37
|
-
/** Indicates that the device is in charge-only mode */
|
|
38
|
-
MANAGEDCHARGINGONLY,
|
|
39
|
-
/** Indicates that the device is in phone-charging-only mode */
|
|
40
|
-
CHARGINGSMARTPHONEONLY,
|
|
41
|
-
/** Indicates that a valid battery charging state was not available. */
|
|
42
|
-
BAD
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Camera battery status monitoring interface
|
|
47
|
-
*/
|
|
48
|
-
@interface FLIRBattery : NSObject
|
|
49
|
-
/** Get charging state.
|
|
50
|
-
*
|
|
51
|
-
* In certain cases (e.g. in case of FLIR ONE prior to starting streaming) the battery charging state value may not be available.
|
|
52
|
-
* When the value is not available a "ChargingState.BAD" value is returned.
|
|
53
|
-
* In the same time the "percentage" can return negative value indicating battery percentage is also not available.
|
|
54
|
-
*
|
|
55
|
-
* See Battery::percentage
|
|
56
|
-
*/
|
|
57
|
-
- (FLIRChargingState) getChargingState;
|
|
58
|
-
/** Remaining battery percentage.
|
|
59
|
-
*
|
|
60
|
-
* Valid value range from 0 to 100 where 0 is empty and 100 is full.
|
|
61
|
-
* In certain cases (e.g. in case of FLIR ONE prior to starting streaming) the battery percentage value may not be available.
|
|
62
|
-
* When the value is not available, an invalid (negative) value is returned.
|
|
63
|
-
* In the same time the "chargingState" can return "ChargingState.BAD" indicating state is also not available.
|
|
64
|
-
*
|
|
65
|
-
* See Battery::chargingState
|
|
66
|
-
*/
|
|
67
|
-
- (int)getPercentage;
|
|
68
|
-
/** Subscribes for battery charging state notifications. */
|
|
69
|
-
- (BOOL)subscribeChargingState: (out NSError * _Nullable *_Nullable) error;
|
|
70
|
-
/** Revokes subscription for battery charging state. */
|
|
71
|
-
- (void)unsubscribeChargingState;
|
|
72
|
-
/** Subscribes for remaining battery power notifications. */
|
|
73
|
-
- (BOOL)subscribePercentage: (out NSError * _Nullable *_Nullable) error;
|
|
74
|
-
/** Revokes subscription for remaining battery power. */
|
|
75
|
-
- (void)unsubscribePercentage;
|
|
76
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRBattery.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2020-07-02.
|
|
6
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
ChargingState
|
|
11
|
+
*/
|
|
12
|
+
typedef NS_ENUM(NSUInteger, FLIRChargingState)
|
|
13
|
+
{
|
|
14
|
+
/** Indicates that the battery is not charging because the camera is in "developer mode". */
|
|
15
|
+
DEVELOPER,
|
|
16
|
+
/** Indicates that the battery is not charging because the camera is not connected to an external power supply. */
|
|
17
|
+
NOCHARGING,
|
|
18
|
+
/** Indicates that the battery is charging from external power. */
|
|
19
|
+
MANAGEDCHARGING,
|
|
20
|
+
|
|
21
|
+
/** Indicates that the battery is charging the iPhone.
|
|
22
|
+
|
|
23
|
+
This field indicates that IF there is an iPhone plugged in, it will
|
|
24
|
+
be receiving power from the RBPDevice battery. However, it is still possible
|
|
25
|
+
for the RBPDevice to be in this "mode" EVEN IF THERE IS NO IPHONE ATTACHED.
|
|
26
|
+
*/
|
|
27
|
+
CHARGINGSMARTPHONE,
|
|
28
|
+
|
|
29
|
+
/** Indicates that a charging fault occurred (overheat, etc.) */
|
|
30
|
+
FAULT,
|
|
31
|
+
/** Indicates that a charging heat fault occured */
|
|
32
|
+
FAULTHEAT,
|
|
33
|
+
/** Indicates that a charging fault occured due to low current from the charging source */
|
|
34
|
+
FAULTBADCHARGER,
|
|
35
|
+
/** Indicates that a charging fault exists but the iPhone is being charged */
|
|
36
|
+
CHARGINGSMARTPHONEFAULTHEAT,
|
|
37
|
+
/** Indicates that the device is in charge-only mode */
|
|
38
|
+
MANAGEDCHARGINGONLY,
|
|
39
|
+
/** Indicates that the device is in phone-charging-only mode */
|
|
40
|
+
CHARGINGSMARTPHONEONLY,
|
|
41
|
+
/** Indicates that a valid battery charging state was not available. */
|
|
42
|
+
BAD
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Camera battery status monitoring interface
|
|
47
|
+
*/
|
|
48
|
+
@interface FLIRBattery : NSObject
|
|
49
|
+
/** Get charging state.
|
|
50
|
+
*
|
|
51
|
+
* In certain cases (e.g. in case of FLIR ONE prior to starting streaming) the battery charging state value may not be available.
|
|
52
|
+
* When the value is not available a "ChargingState.BAD" value is returned.
|
|
53
|
+
* In the same time the "percentage" can return negative value indicating battery percentage is also not available.
|
|
54
|
+
*
|
|
55
|
+
* See Battery::percentage
|
|
56
|
+
*/
|
|
57
|
+
- (FLIRChargingState) getChargingState;
|
|
58
|
+
/** Remaining battery percentage.
|
|
59
|
+
*
|
|
60
|
+
* Valid value range from 0 to 100 where 0 is empty and 100 is full.
|
|
61
|
+
* In certain cases (e.g. in case of FLIR ONE prior to starting streaming) the battery percentage value may not be available.
|
|
62
|
+
* When the value is not available, an invalid (negative) value is returned.
|
|
63
|
+
* In the same time the "chargingState" can return "ChargingState.BAD" indicating state is also not available.
|
|
64
|
+
*
|
|
65
|
+
* See Battery::chargingState
|
|
66
|
+
*/
|
|
67
|
+
- (int)getPercentage;
|
|
68
|
+
/** Subscribes for battery charging state notifications. */
|
|
69
|
+
- (BOOL)subscribeChargingState: (out NSError * _Nullable *_Nullable) error;
|
|
70
|
+
/** Revokes subscription for battery charging state. */
|
|
71
|
+
- (void)unsubscribeChargingState;
|
|
72
|
+
/** Subscribes for remaining battery power notifications. */
|
|
73
|
+
- (BOOL)subscribePercentage: (out NSError * _Nullable *_Nullable) error;
|
|
74
|
+
/** Revokes subscription for remaining battery power. */
|
|
75
|
+
- (void)unsubscribePercentage;
|
|
76
|
+
@end
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRCalibration.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2020-07-02.
|
|
6
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#pragma once
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
Shutter state
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
typedef NS_ENUM(NSUInteger, FLIRShutterState) {
|
|
16
|
-
/// Represents an invalid shutter state. This value should be treated as an error.
|
|
17
|
-
invalid,
|
|
18
|
-
|
|
19
|
-
/// Represents the "device powered off" shutter state.
|
|
20
|
-
off,
|
|
21
|
-
|
|
22
|
-
/// Represents the "device powered on" state of the hardware shutter.
|
|
23
|
-
on,
|
|
24
|
-
|
|
25
|
-
/// Represents the NUC state of the hardware shutter.
|
|
26
|
-
nuc,
|
|
27
|
-
|
|
28
|
-
/// Indicates that a corrupted/invalid shutter state was detected.
|
|
29
|
-
bad,
|
|
30
|
-
|
|
31
|
-
/// Indicates a unknown state
|
|
32
|
-
unknown_state
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
NUC state
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
typedef NS_ENUM(NSUInteger, FLIRNucState) {
|
|
40
|
-
/**
|
|
41
|
-
* Indicates that the *last* NUC (Non-Uniform Calibration) is invalid.
|
|
42
|
-
*/
|
|
43
|
-
INVALID,
|
|
44
|
-
/**
|
|
45
|
-
* Indicates that there is NUC activity in progress.
|
|
46
|
-
*/
|
|
47
|
-
PROGRESS,
|
|
48
|
-
/**
|
|
49
|
-
* Indicates that thermal pixel values are radiometrically calibrated.
|
|
50
|
-
*/
|
|
51
|
-
VALID_RAD,
|
|
52
|
-
/**
|
|
53
|
-
* Indicates that thermal pixels are calibrated enough to yield an image, but are not yet radiometrically calibrated.
|
|
54
|
-
*/
|
|
55
|
-
VALID_IMG,
|
|
56
|
-
/**
|
|
57
|
-
* Indicates that an NUC is desired.
|
|
58
|
-
*/
|
|
59
|
-
DESIRED,
|
|
60
|
-
/**
|
|
61
|
-
* Indicated that approximate radiometric values are being given.
|
|
62
|
-
*/
|
|
63
|
-
RAD_APPROX,
|
|
64
|
-
/**
|
|
65
|
-
* Indicates that a corrupted/invalid NUC state was detected.
|
|
66
|
-
*/
|
|
67
|
-
BAD_STATE,
|
|
68
|
-
/**
|
|
69
|
-
* Indicates a unknown state.
|
|
70
|
-
*/
|
|
71
|
-
UNKNOWN
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Camera calibration control interface.
|
|
77
|
-
*/
|
|
78
|
-
@interface FLIRCalibration : NSObject
|
|
79
|
-
/** Get calibration state. */
|
|
80
|
-
-(BOOL)getActive;
|
|
81
|
-
/** Process a one point NUC (Non-uniformity correction) with a black body method. */
|
|
82
|
-
-(BOOL)performNUC: (out NSError * _Nullable *_Nullable)error;;
|
|
83
|
-
/** Subscribes for camera NUC state notifications. */
|
|
84
|
-
-(BOOL)subscribeCalibrationState: (out NSError * _Nullable *_Nullable)error;
|
|
85
|
-
/** Revokes subscription for camera NUC state notifications. */
|
|
86
|
-
-(void)unsubscribeCalibrationState;
|
|
87
|
-
/** Get NUC state
|
|
88
|
-
* @note The state of some cameras (FLIR ONE notably) is `UNKNOWN` until streaming is started.
|
|
89
|
-
*/
|
|
90
|
-
- (FLIRNucState)getNucState;
|
|
91
|
-
/** NUC interval (max interval between each automatic NUC in seconds) */
|
|
92
|
-
- (int)getNucInterval;
|
|
93
|
-
/** NUC interval (max interval between each automatic NUC in seconds)
|
|
94
|
-
* For FLIR One setting nucInterval to 0 disables automatic nuc, any other value enables automatic nuc
|
|
95
|
-
*/
|
|
96
|
-
-(BOOL)setNucInterval: (int)nucInterval error: (out NSError * _Nullable *_Nullable)error;
|
|
97
|
-
|
|
98
|
-
/** Subscribes for shutter state notifications */
|
|
99
|
-
-(BOOL)subscribeShutterState: (out NSError * _Nullable *_Nullable)error;
|
|
100
|
-
/** Revokes subscription for shutter state notifications */
|
|
101
|
-
-(void)unsubscribeShutterState;
|
|
102
|
-
|
|
103
|
-
/** Get shutter state
|
|
104
|
-
* @note The state of some cameras (FLIR ONE notably) is `unknown_state` until streaming is started.
|
|
105
|
-
*/
|
|
106
|
-
- (FLIRShutterState)getShutterState;
|
|
107
|
-
@end
|
|
108
|
-
|
|
1
|
+
//
|
|
2
|
+
// FLIRCalibration.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2020-07-02.
|
|
6
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#pragma once
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
Shutter state
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
typedef NS_ENUM(NSUInteger, FLIRShutterState) {
|
|
16
|
+
/// Represents an invalid shutter state. This value should be treated as an error.
|
|
17
|
+
invalid,
|
|
18
|
+
|
|
19
|
+
/// Represents the "device powered off" shutter state.
|
|
20
|
+
off,
|
|
21
|
+
|
|
22
|
+
/// Represents the "device powered on" state of the hardware shutter.
|
|
23
|
+
on,
|
|
24
|
+
|
|
25
|
+
/// Represents the NUC state of the hardware shutter.
|
|
26
|
+
nuc,
|
|
27
|
+
|
|
28
|
+
/// Indicates that a corrupted/invalid shutter state was detected.
|
|
29
|
+
bad,
|
|
30
|
+
|
|
31
|
+
/// Indicates a unknown state
|
|
32
|
+
unknown_state
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
NUC state
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
typedef NS_ENUM(NSUInteger, FLIRNucState) {
|
|
40
|
+
/**
|
|
41
|
+
* Indicates that the *last* NUC (Non-Uniform Calibration) is invalid.
|
|
42
|
+
*/
|
|
43
|
+
INVALID,
|
|
44
|
+
/**
|
|
45
|
+
* Indicates that there is NUC activity in progress.
|
|
46
|
+
*/
|
|
47
|
+
PROGRESS,
|
|
48
|
+
/**
|
|
49
|
+
* Indicates that thermal pixel values are radiometrically calibrated.
|
|
50
|
+
*/
|
|
51
|
+
VALID_RAD,
|
|
52
|
+
/**
|
|
53
|
+
* Indicates that thermal pixels are calibrated enough to yield an image, but are not yet radiometrically calibrated.
|
|
54
|
+
*/
|
|
55
|
+
VALID_IMG,
|
|
56
|
+
/**
|
|
57
|
+
* Indicates that an NUC is desired.
|
|
58
|
+
*/
|
|
59
|
+
DESIRED,
|
|
60
|
+
/**
|
|
61
|
+
* Indicated that approximate radiometric values are being given.
|
|
62
|
+
*/
|
|
63
|
+
RAD_APPROX,
|
|
64
|
+
/**
|
|
65
|
+
* Indicates that a corrupted/invalid NUC state was detected.
|
|
66
|
+
*/
|
|
67
|
+
BAD_STATE,
|
|
68
|
+
/**
|
|
69
|
+
* Indicates a unknown state.
|
|
70
|
+
*/
|
|
71
|
+
UNKNOWN
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Camera calibration control interface.
|
|
77
|
+
*/
|
|
78
|
+
@interface FLIRCalibration : NSObject
|
|
79
|
+
/** Get calibration state. */
|
|
80
|
+
-(BOOL)getActive;
|
|
81
|
+
/** Process a one point NUC (Non-uniformity correction) with a black body method. */
|
|
82
|
+
-(BOOL)performNUC: (out NSError * _Nullable *_Nullable)error;;
|
|
83
|
+
/** Subscribes for camera NUC state notifications. */
|
|
84
|
+
-(BOOL)subscribeCalibrationState: (out NSError * _Nullable *_Nullable)error;
|
|
85
|
+
/** Revokes subscription for camera NUC state notifications. */
|
|
86
|
+
-(void)unsubscribeCalibrationState;
|
|
87
|
+
/** Get NUC state
|
|
88
|
+
* @note The state of some cameras (FLIR ONE notably) is `UNKNOWN` until streaming is started.
|
|
89
|
+
*/
|
|
90
|
+
- (FLIRNucState)getNucState;
|
|
91
|
+
/** NUC interval (max interval between each automatic NUC in seconds) */
|
|
92
|
+
- (int)getNucInterval;
|
|
93
|
+
/** NUC interval (max interval between each automatic NUC in seconds)
|
|
94
|
+
* For FLIR One setting nucInterval to 0 disables automatic nuc, any other value enables automatic nuc
|
|
95
|
+
*/
|
|
96
|
+
-(BOOL)setNucInterval: (int)nucInterval error: (out NSError * _Nullable *_Nullable)error;
|
|
97
|
+
|
|
98
|
+
/** Subscribes for shutter state notifications */
|
|
99
|
+
-(BOOL)subscribeShutterState: (out NSError * _Nullable *_Nullable)error;
|
|
100
|
+
/** Revokes subscription for shutter state notifications */
|
|
101
|
+
-(void)unsubscribeShutterState;
|
|
102
|
+
|
|
103
|
+
/** Get shutter state
|
|
104
|
+
* @note The state of some cameras (FLIR ONE notably) is `unknown_state` until streaming is started.
|
|
105
|
+
*/
|
|
106
|
+
- (FLIRShutterState)getShutterState;
|
|
107
|
+
@end
|
|
108
|
+
|