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,56 +1,56 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRThermalImageFile.h
|
|
3
|
-
//
|
|
4
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
#ifndef FLIRThermalImageFile_h
|
|
8
|
-
#define FLIRThermalImageFile_h
|
|
9
|
-
#endif
|
|
10
|
-
|
|
11
|
-
#import "FLIRThermalImage.h"
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Describes a file on the physical file system, which contains a ThermalImage.
|
|
15
|
-
* Moreover it contains additional data, which helps to analyze and interpret the image.
|
|
16
|
-
*/
|
|
17
|
-
@interface FLIRThermalImageFile : FLIRThermalImage
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Opens an thermal image from the specified file.
|
|
21
|
-
*
|
|
22
|
-
* @param fileName Path to file.
|
|
23
|
-
* @return 0 if image was opened -1 if failed
|
|
24
|
-
*/
|
|
25
|
-
- (int)open:(NSString * _Nonnull)fileName;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Check if the file contains thermal data.
|
|
29
|
-
*
|
|
30
|
-
* @param fileName Path to file.
|
|
31
|
-
*/
|
|
32
|
-
-(BOOL)isThermalImage:(NSString * _Nonnull)fileName;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Gets an absolute path to the file this image was loaded from.
|
|
37
|
-
*/
|
|
38
|
-
-(NSString * _Nonnull) getAbsolutePath;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Gets an opened file's name.
|
|
43
|
-
*/
|
|
44
|
-
- (NSString * _Nonnull)getFileName;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Saves current object to file.
|
|
49
|
-
*/
|
|
50
|
-
- (BOOL)save:(out NSError * _Nullable * _Nullable)error;
|
|
51
|
-
|
|
52
|
-
@end
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
//
|
|
2
|
+
// FLIRThermalImageFile.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#ifndef FLIRThermalImageFile_h
|
|
8
|
+
#define FLIRThermalImageFile_h
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
#import "FLIRThermalImage.h"
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes a file on the physical file system, which contains a ThermalImage.
|
|
15
|
+
* Moreover it contains additional data, which helps to analyze and interpret the image.
|
|
16
|
+
*/
|
|
17
|
+
@interface FLIRThermalImageFile : FLIRThermalImage
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Opens an thermal image from the specified file.
|
|
21
|
+
*
|
|
22
|
+
* @param fileName Path to file.
|
|
23
|
+
* @return 0 if image was opened -1 if failed
|
|
24
|
+
*/
|
|
25
|
+
- (int)open:(NSString * _Nonnull)fileName;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Check if the file contains thermal data.
|
|
29
|
+
*
|
|
30
|
+
* @param fileName Path to file.
|
|
31
|
+
*/
|
|
32
|
+
-(BOOL)isThermalImage:(NSString * _Nonnull)fileName;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Gets an absolute path to the file this image was loaded from.
|
|
37
|
+
*/
|
|
38
|
+
-(NSString * _Nonnull) getAbsolutePath;
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Gets an opened file's name.
|
|
43
|
+
*/
|
|
44
|
+
- (NSString * _Nonnull)getFileName;
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Saves current object to file.
|
|
49
|
+
*/
|
|
50
|
+
- (BOOL)save:(out NSError * _Nullable * _Nullable)error;
|
|
51
|
+
|
|
52
|
+
@end
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRThermalParameters.h
|
|
3
|
-
// FLIR Thermal SDK
|
|
4
|
-
//
|
|
5
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import "FLIRThermalValue.h"
|
|
10
|
-
|
|
11
|
-
/** FLIRThermalParameters */
|
|
12
|
-
@interface FLIRThermalParameters : NSObject
|
|
13
|
-
|
|
14
|
-
/** Gets or sets the default emissivity for the IR Image. */
|
|
15
|
-
@property (nonatomic, readwrite) float objectEmissivity;
|
|
16
|
-
/** Gets or sets the distance from camera to focused object. */
|
|
17
|
-
@property (nonatomic, readwrite) float objectDistance;
|
|
18
|
-
/** Gets or sets the reflected temperature. */
|
|
19
|
-
@property (nonatomic, readwrite, nonnull) FLIRThermalValue* objectReflectedTemperature;
|
|
20
|
-
/** Gets or sets the atmospheric temperature. */
|
|
21
|
-
@property (nonatomic, readwrite, nonnull) FLIRThermalValue* atmosphericTemperature;
|
|
22
|
-
/** Gets or sets the external optics temperature. */
|
|
23
|
-
@property (nonatomic, readwrite, nonnull) FLIRThermalValue* externalOpticsTemperature;
|
|
24
|
-
/** Gets or sets the external optics transmission. */
|
|
25
|
-
@property (nonatomic, readwrite) float externalOpticsTransmission;
|
|
26
|
-
/** Gets or sets the atmospheric transmission. */
|
|
27
|
-
@property (nonatomic, readwrite) float atmosphericTransmission;
|
|
28
|
-
/** Gets or sets the relative humidity (0.0 - 100.0). */
|
|
29
|
-
@property (nonatomic, readwrite) float relativeHumidity;
|
|
30
|
-
|
|
31
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRThermalParameters.h
|
|
3
|
+
// FLIR Thermal SDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import "FLIRThermalValue.h"
|
|
10
|
+
|
|
11
|
+
/** FLIRThermalParameters */
|
|
12
|
+
@interface FLIRThermalParameters : NSObject
|
|
13
|
+
|
|
14
|
+
/** Gets or sets the default emissivity for the IR Image. */
|
|
15
|
+
@property (nonatomic, readwrite) float objectEmissivity;
|
|
16
|
+
/** Gets or sets the distance from camera to focused object. */
|
|
17
|
+
@property (nonatomic, readwrite) float objectDistance;
|
|
18
|
+
/** Gets or sets the reflected temperature. */
|
|
19
|
+
@property (nonatomic, readwrite, nonnull) FLIRThermalValue* objectReflectedTemperature;
|
|
20
|
+
/** Gets or sets the atmospheric temperature. */
|
|
21
|
+
@property (nonatomic, readwrite, nonnull) FLIRThermalValue* atmosphericTemperature;
|
|
22
|
+
/** Gets or sets the external optics temperature. */
|
|
23
|
+
@property (nonatomic, readwrite, nonnull) FLIRThermalValue* externalOpticsTemperature;
|
|
24
|
+
/** Gets or sets the external optics transmission. */
|
|
25
|
+
@property (nonatomic, readwrite) float externalOpticsTransmission;
|
|
26
|
+
/** Gets or sets the atmospheric transmission. */
|
|
27
|
+
@property (nonatomic, readwrite) float atmosphericTransmission;
|
|
28
|
+
/** Gets or sets the relative humidity (0.0 - 100.0). */
|
|
29
|
+
@property (nonatomic, readwrite) float relativeHumidity;
|
|
30
|
+
|
|
31
|
+
@end
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ThermalValue.h
|
|
3
|
-
// FLIR Thermal SDK
|
|
4
|
-
//
|
|
5
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
/** Specifies the supported temperature units. */
|
|
11
|
-
typedef NS_ENUM(NSUInteger, TemperatureUnit)
|
|
12
|
-
{
|
|
13
|
-
/** The Celsius temperature scale was previously known as the centigrade scale. */
|
|
14
|
-
CELSIUS,
|
|
15
|
-
/** Units in Fahrenheit. */
|
|
16
|
-
FAHRENHEIT,
|
|
17
|
-
/** The Kelvin scale is a thermodynamic (absolute) temperature scale where absolute zero, the theoretical absence of all thermal energy, is zero (0 K). */
|
|
18
|
-
KELVIN
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The possible ThermalValueStates.
|
|
23
|
-
*/
|
|
24
|
-
typedef NS_ENUM(NSUInteger, ThermalValueState) {
|
|
25
|
-
/** Value is invalid. Usually happens when calculation mask for the particular measure type (i.e. min, max, average) is not enabled. */
|
|
26
|
-
Invalid,
|
|
27
|
-
/** Value is OK. */
|
|
28
|
-
Ok,
|
|
29
|
-
/** Value is too high. */
|
|
30
|
-
Overflow,
|
|
31
|
-
/** Value is too low. */
|
|
32
|
-
Underflow,
|
|
33
|
-
/** Value is outside image. */
|
|
34
|
-
Outside,
|
|
35
|
-
/** Value is unreliable. */
|
|
36
|
-
Warning,
|
|
37
|
-
/** Value is not yet calculated, unstable image after restart/case change. */
|
|
38
|
-
Unstable,
|
|
39
|
-
/** Value is OK + compensated with a reference temperature delta. */
|
|
40
|
-
Delta,
|
|
41
|
-
}; // ThermalValueState;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* This class represents an IR value with additional information.
|
|
45
|
-
*/
|
|
46
|
-
@interface FLIRThermalValue : NSObject
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Initialize an "OK" thermal value with specified temperature value and unit
|
|
50
|
-
*
|
|
51
|
-
* @param value Temperature value.
|
|
52
|
-
* @param unit Temperature unit.
|
|
53
|
-
*/
|
|
54
|
-
- (instancetype)initWithValue:(double) value andUnit:(TemperatureUnit) unit;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Gets the value.
|
|
58
|
-
*/
|
|
59
|
-
@property (readonly) double value;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Gets the temperature unit of the value.
|
|
63
|
-
*/
|
|
64
|
-
@property (readonly) TemperatureUnit unit;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Gets the state of the value.
|
|
68
|
-
*/
|
|
69
|
-
@property (readonly) ThermalValueState state;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Gets a nicely formatted string representing the value.
|
|
73
|
-
*/
|
|
74
|
-
- (NSString *)description;
|
|
75
|
-
|
|
76
|
-
/** @brief Convenience function to test if two @ref FLIRThermalValue "ThermalValues" practically the same temperature with imprecise floating-point comparison.
|
|
77
|
-
* @param other The second (right hand side) value to compare.
|
|
78
|
-
* @param absError The margin of error in degrees Kelvin.
|
|
79
|
-
*/
|
|
80
|
-
- (BOOL)areNear:(id)other absError: (double)absError;
|
|
81
|
-
|
|
82
|
-
/** @brief Return the corresponding thermal value in another unit */
|
|
83
|
-
- (FLIRThermalValue*)asCelsius;
|
|
84
|
-
|
|
85
|
-
/** @brief Return the corresponding thermal value in another unit */
|
|
86
|
-
- (FLIRThermalValue*)asKelvin;
|
|
87
|
-
|
|
88
|
-
/** @brief Return the corresponding thermal value in another unit */
|
|
89
|
-
- (FLIRThermalValue*)asFahrenheit;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// ThermalValue.h
|
|
3
|
+
// FLIR Thermal SDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
/** Specifies the supported temperature units. */
|
|
11
|
+
typedef NS_ENUM(NSUInteger, TemperatureUnit)
|
|
12
|
+
{
|
|
13
|
+
/** The Celsius temperature scale was previously known as the centigrade scale. */
|
|
14
|
+
CELSIUS,
|
|
15
|
+
/** Units in Fahrenheit. */
|
|
16
|
+
FAHRENHEIT,
|
|
17
|
+
/** The Kelvin scale is a thermodynamic (absolute) temperature scale where absolute zero, the theoretical absence of all thermal energy, is zero (0 K). */
|
|
18
|
+
KELVIN
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The possible ThermalValueStates.
|
|
23
|
+
*/
|
|
24
|
+
typedef NS_ENUM(NSUInteger, ThermalValueState) {
|
|
25
|
+
/** Value is invalid. Usually happens when calculation mask for the particular measure type (i.e. min, max, average) is not enabled. */
|
|
26
|
+
Invalid,
|
|
27
|
+
/** Value is OK. */
|
|
28
|
+
Ok,
|
|
29
|
+
/** Value is too high. */
|
|
30
|
+
Overflow,
|
|
31
|
+
/** Value is too low. */
|
|
32
|
+
Underflow,
|
|
33
|
+
/** Value is outside image. */
|
|
34
|
+
Outside,
|
|
35
|
+
/** Value is unreliable. */
|
|
36
|
+
Warning,
|
|
37
|
+
/** Value is not yet calculated, unstable image after restart/case change. */
|
|
38
|
+
Unstable,
|
|
39
|
+
/** Value is OK + compensated with a reference temperature delta. */
|
|
40
|
+
Delta,
|
|
41
|
+
}; // ThermalValueState;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* This class represents an IR value with additional information.
|
|
45
|
+
*/
|
|
46
|
+
@interface FLIRThermalValue : NSObject
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initialize an "OK" thermal value with specified temperature value and unit
|
|
50
|
+
*
|
|
51
|
+
* @param value Temperature value.
|
|
52
|
+
* @param unit Temperature unit.
|
|
53
|
+
*/
|
|
54
|
+
- (instancetype)initWithValue:(double) value andUnit:(TemperatureUnit) unit;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Gets the value.
|
|
58
|
+
*/
|
|
59
|
+
@property (readonly) double value;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Gets the temperature unit of the value.
|
|
63
|
+
*/
|
|
64
|
+
@property (readonly) TemperatureUnit unit;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Gets the state of the value.
|
|
68
|
+
*/
|
|
69
|
+
@property (readonly) ThermalValueState state;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Gets a nicely formatted string representing the value.
|
|
73
|
+
*/
|
|
74
|
+
- (NSString *)description;
|
|
75
|
+
|
|
76
|
+
/** @brief Convenience function to test if two @ref FLIRThermalValue "ThermalValues" practically the same temperature with imprecise floating-point comparison.
|
|
77
|
+
* @param other The second (right hand side) value to compare.
|
|
78
|
+
* @param absError The margin of error in degrees Kelvin.
|
|
79
|
+
*/
|
|
80
|
+
- (BOOL)areNear:(id)other absError: (double)absError;
|
|
81
|
+
|
|
82
|
+
/** @brief Return the corresponding thermal value in another unit */
|
|
83
|
+
- (FLIRThermalValue*)asCelsius;
|
|
84
|
+
|
|
85
|
+
/** @brief Return the corresponding thermal value in another unit */
|
|
86
|
+
- (FLIRThermalValue*)asKelvin;
|
|
87
|
+
|
|
88
|
+
/** @brief Return the corresponding thermal value in another unit */
|
|
89
|
+
- (FLIRThermalValue*)asFahrenheit;
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@end
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRWirelessCameraDetails.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Teledyne on 2022-08-24.
|
|
6
|
-
// Copyright © 2022 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#import "FLIRIdentity.h"
|
|
12
|
-
|
|
13
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
-
@class FLIRWirelessCameraDetails;
|
|
15
|
-
|
|
16
|
-
@protocol FLIRWirelessCameraDetailsEventDelegate <NSObject>
|
|
17
|
-
-(void) detailsUpdated:(FLIRWirelessCameraDetails *) wcd;
|
|
18
|
-
@end
|
|
19
|
-
|
|
20
|
-
typedef NS_ENUM(NSInteger, FLIRSignalStrength) {
|
|
21
|
-
/**
|
|
22
|
-
* @brief State in which it is possible to discover the camera.
|
|
23
|
-
* @note after discovery phrase camera can be moved further away from the phone and still it will be possible to connect and stream.
|
|
24
|
-
*/
|
|
25
|
-
discoverable,
|
|
26
|
-
/** @brief Good signal, allows to live stream and interact with the camera. */
|
|
27
|
-
excellent,
|
|
28
|
-
/** @brief Signal strength is fair enough for live streaming and interaction with the camera. Minor frame drops or lag/delay may occur. */
|
|
29
|
-
fair,
|
|
30
|
-
/** @brief Weak signal may result in significant frame drops and delays in communication with the camera. */
|
|
31
|
-
weak,
|
|
32
|
-
/** @brief Bad signal will eventually result in a connection break or timeout and it will most likely be impossible to get a live stream or interact with the camera. */
|
|
33
|
-
bad_distance
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
@interface FLIRWirelessCameraDetails : NSObject
|
|
37
|
-
|
|
38
|
-
/// SSID/name of the FLIR ONE WiFi network.
|
|
39
|
-
@property (nonatomic, readonly) NSString* ssid;
|
|
40
|
-
|
|
41
|
-
/// Password for the FLIR ONE WiFi network.
|
|
42
|
-
@property (nonatomic, readonly) NSString* password;
|
|
43
|
-
|
|
44
|
-
/// The IP address of the F1 wireless camera i.e. 192.168.1.1.
|
|
45
|
-
@property (nonatomic, readonly) NSString* ipAddress;
|
|
46
|
-
|
|
47
|
-
/// Camera's firmware version.
|
|
48
|
-
@property (nonatomic, readonly) NSString* firmwareVersion;
|
|
49
|
-
|
|
50
|
-
/// Camera's serial number.
|
|
51
|
-
@property (nonatomic, readonly) NSString* serialNumber;
|
|
52
|
-
|
|
53
|
-
/// Flag determining if this is the first time setup/connection.
|
|
54
|
-
@property (nonatomic, readonly) BOOL firstTimeSetupFlag;
|
|
55
|
-
|
|
56
|
-
/// The transmit power in dBm. Valid range is [-127, 126]. A value of 127 (0x7F) indicates that the TX power is not present.
|
|
57
|
-
@property (nonatomic, readonly) NSInteger txPowerLevel;
|
|
58
|
-
|
|
59
|
-
/// Returns the received signal strength in dBm. The valid range is [-127, 126].
|
|
60
|
-
@property (nonatomic, readonly) NSInteger rssi;
|
|
61
|
-
|
|
62
|
-
/// Returns the distance.
|
|
63
|
-
@property (nonatomic, readonly) FLIRSignalStrength signal;
|
|
64
|
-
|
|
65
|
-
/// Flag determining if the default password has changed.
|
|
66
|
-
@property (nonatomic, readonly) BOOL passwordChangedFlag;
|
|
67
|
-
|
|
68
|
-
/// Camera's current battery level.
|
|
69
|
-
@property (nonatomic, readonly) NSInteger batteryLevel;
|
|
70
|
-
|
|
71
|
-
/// Camera's current battery state - charging or not.
|
|
72
|
-
@property (nonatomic, readonly) NSInteger batteryCharging;
|
|
73
|
-
|
|
74
|
-
/// Determines if there are active connections to the camera's WiFi network.
|
|
75
|
-
@property (nonatomic, readonly) NSInteger ConnectedFlag;
|
|
76
|
-
|
|
77
|
-
/// Delegate that will receive changes, useful to check distance between device and camera
|
|
78
|
-
@property (nonatomic, retain, nullable) id<FLIRWirelessCameraDetailsEventDelegate> delegate;
|
|
79
|
-
|
|
80
|
-
@property (nonatomic, readonly) NSInteger wifiMode;
|
|
81
|
-
|
|
82
|
-
@property (nonatomic, readonly) FLIRCameraType cameraType;
|
|
83
|
-
|
|
84
|
-
@end
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
//
|
|
2
|
+
// FLIRWirelessCameraDetails.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Teledyne on 2022-08-24.
|
|
6
|
+
// Copyright © 2022 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#import "FLIRIdentity.h"
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
@class FLIRWirelessCameraDetails;
|
|
15
|
+
|
|
16
|
+
@protocol FLIRWirelessCameraDetailsEventDelegate <NSObject>
|
|
17
|
+
-(void) detailsUpdated:(FLIRWirelessCameraDetails *) wcd;
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
typedef NS_ENUM(NSInteger, FLIRSignalStrength) {
|
|
21
|
+
/**
|
|
22
|
+
* @brief State in which it is possible to discover the camera.
|
|
23
|
+
* @note after discovery phrase camera can be moved further away from the phone and still it will be possible to connect and stream.
|
|
24
|
+
*/
|
|
25
|
+
discoverable,
|
|
26
|
+
/** @brief Good signal, allows to live stream and interact with the camera. */
|
|
27
|
+
excellent,
|
|
28
|
+
/** @brief Signal strength is fair enough for live streaming and interaction with the camera. Minor frame drops or lag/delay may occur. */
|
|
29
|
+
fair,
|
|
30
|
+
/** @brief Weak signal may result in significant frame drops and delays in communication with the camera. */
|
|
31
|
+
weak,
|
|
32
|
+
/** @brief Bad signal will eventually result in a connection break or timeout and it will most likely be impossible to get a live stream or interact with the camera. */
|
|
33
|
+
bad_distance
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
@interface FLIRWirelessCameraDetails : NSObject
|
|
37
|
+
|
|
38
|
+
/// SSID/name of the FLIR ONE WiFi network.
|
|
39
|
+
@property (nonatomic, readonly) NSString* ssid;
|
|
40
|
+
|
|
41
|
+
/// Password for the FLIR ONE WiFi network.
|
|
42
|
+
@property (nonatomic, readonly) NSString* password;
|
|
43
|
+
|
|
44
|
+
/// The IP address of the F1 wireless camera i.e. 192.168.1.1.
|
|
45
|
+
@property (nonatomic, readonly) NSString* ipAddress;
|
|
46
|
+
|
|
47
|
+
/// Camera's firmware version.
|
|
48
|
+
@property (nonatomic, readonly) NSString* firmwareVersion;
|
|
49
|
+
|
|
50
|
+
/// Camera's serial number.
|
|
51
|
+
@property (nonatomic, readonly) NSString* serialNumber;
|
|
52
|
+
|
|
53
|
+
/// Flag determining if this is the first time setup/connection.
|
|
54
|
+
@property (nonatomic, readonly) BOOL firstTimeSetupFlag;
|
|
55
|
+
|
|
56
|
+
/// The transmit power in dBm. Valid range is [-127, 126]. A value of 127 (0x7F) indicates that the TX power is not present.
|
|
57
|
+
@property (nonatomic, readonly) NSInteger txPowerLevel;
|
|
58
|
+
|
|
59
|
+
/// Returns the received signal strength in dBm. The valid range is [-127, 126].
|
|
60
|
+
@property (nonatomic, readonly) NSInteger rssi;
|
|
61
|
+
|
|
62
|
+
/// Returns the distance.
|
|
63
|
+
@property (nonatomic, readonly) FLIRSignalStrength signal;
|
|
64
|
+
|
|
65
|
+
/// Flag determining if the default password has changed.
|
|
66
|
+
@property (nonatomic, readonly) BOOL passwordChangedFlag;
|
|
67
|
+
|
|
68
|
+
/// Camera's current battery level.
|
|
69
|
+
@property (nonatomic, readonly) NSInteger batteryLevel;
|
|
70
|
+
|
|
71
|
+
/// Camera's current battery state - charging or not.
|
|
72
|
+
@property (nonatomic, readonly) NSInteger batteryCharging;
|
|
73
|
+
|
|
74
|
+
/// Determines if there are active connections to the camera's WiFi network.
|
|
75
|
+
@property (nonatomic, readonly) NSInteger ConnectedFlag;
|
|
76
|
+
|
|
77
|
+
/// Delegate that will receive changes, useful to check distance between device and camera
|
|
78
|
+
@property (nonatomic, retain, nullable) id<FLIRWirelessCameraDetailsEventDelegate> delegate;
|
|
79
|
+
|
|
80
|
+
@property (nonatomic, readonly) NSInteger wifiMode;
|
|
81
|
+
|
|
82
|
+
@property (nonatomic, readonly) FLIRCameraType cameraType;
|
|
83
|
+
|
|
84
|
+
@end
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
NS_ASSUME_NONNULL_END
|