123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- //
- // This file is auto-generated. Please don't modify it!
- //
- #pragma once
- #ifdef __cplusplus
- //#import "opencv.hpp"
- #import "opencv2/dnn.hpp"
- #import "opencv2/dnn/dict.hpp"
- #else
- #define CV_EXPORTS
- #endif
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- // C++: class DictValue
- /**
- * This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64.
- * TODO: Maybe int64 is useless because double type exactly stores at least 2^52 integers.
- *
- * Member of `Dnn`
- */
- CV_EXPORTS @interface DictValue : NSObject
- #ifdef __cplusplus
- @property(readonly)cv::Ptr<cv::dnn::DictValue> nativePtr;
- #endif
- #ifdef __cplusplus
- - (instancetype)initWithNativePtr:(cv::Ptr<cv::dnn::DictValue>)nativePtr;
- + (instancetype)fromNative:(cv::Ptr<cv::dnn::DictValue>)nativePtr;
- #endif
- #pragma mark - Methods
- //
- // cv::dnn::DictValue::DictValue(int i)
- //
- - (instancetype)initWithI:(int)i;
- //
- // cv::dnn::DictValue::DictValue(double p)
- //
- - (instancetype)initWithP:(double)p;
- //
- // cv::dnn::DictValue::DictValue(String s)
- //
- - (instancetype)initWithS:(NSString*)s;
- //
- // bool cv::dnn::DictValue::isInt()
- //
- - (BOOL)isInt NS_SWIFT_NAME(isInt());
- //
- // bool cv::dnn::DictValue::isString()
- //
- - (BOOL)isString NS_SWIFT_NAME(isString());
- //
- // bool cv::dnn::DictValue::isReal()
- //
- - (BOOL)isReal NS_SWIFT_NAME(isReal());
- //
- // int cv::dnn::DictValue::getIntValue(int idx = -1)
- //
- - (int)getIntValue:(int)idx NS_SWIFT_NAME(getIntValue(idx:));
- - (int)getIntValue NS_SWIFT_NAME(getIntValue());
- //
- // double cv::dnn::DictValue::getRealValue(int idx = -1)
- //
- - (double)getRealValue:(int)idx NS_SWIFT_NAME(getRealValue(idx:));
- - (double)getRealValue NS_SWIFT_NAME(getRealValue());
- //
- // String cv::dnn::DictValue::getStringValue(int idx = -1)
- //
- - (NSString*)getStringValue:(int)idx NS_SWIFT_NAME(getStringValue(idx:));
- - (NSString*)getStringValue NS_SWIFT_NAME(getStringValue());
- @end
- NS_ASSUME_NONNULL_END
|