洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

9 months ago
  1. //
  2. // ToygerAlgorithmPublicDefine.h
  3. // ToygerAlgorithm
  4. //
  5. // Created by 王伟伟 on 2018/1/22.
  6. // Copyright © 2018年 DTF. All rights reserved.
  7. //
  8. #ifndef ToygerAlgorithmPublicDefine_h
  9. #define ToygerAlgorithmPublicDefine_h
  10. //#define USE_PB
  11. //#define USE_FPP
  12. #define LOCALVERIFY
  13. #define USE_SENSOR
  14. #define HUMMINGBIRD
  15. #import <Foundation/Foundation.h>
  16. #if defined(__cplusplus)
  17. #define TOYGER_EXPORT extern "C"
  18. #else
  19. #define TOYGER_EXPORT extern
  20. #endif
  21. typedef NSString* const ToygerServiceEventKey;
  22. typedef NSNumber* const ToygerServiceSerializeType;
  23. typedef NSString* const ToygerFaceFrameTypeKey;
  24. typedef NS_ENUM(NSUInteger, ToygerFrameFormat) {
  25. ToygerFrameFormat_NV21,
  26. ToygerFrameFormat_BGRA,
  27. ToygerFrameFormat_BGR,
  28. };
  29. typedef NS_ENUM(NSUInteger, ToygerFrameType) {
  30. ToygerFrameType_Light,
  31. ToygerFrameType_Unknown,
  32. ToygerFrameType_Dark,
  33. };
  34. typedef NS_ENUM(NSUInteger, ToygerServiceType) {
  35. ToygerServiceType_Face = 0,
  36. ToygerServiceType_Card,
  37. ToygerServiceType_Face_LocalRegist,
  38. ToygerServiceType_Face_LocalMatch,
  39. };
  40. typedef NS_ENUM(NSUInteger, TSToygerInitFailType) {
  41. TSToygerInitFailTypeInvalidAlgorithm,
  42. TSToygerInitFailTypeToygerFileError
  43. };
  44. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEventDarkScreen;
  45. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEventLivenessDone;
  46. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEventLivenessBlinkDone;
  47. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEventReset;
  48. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEventHighQualityImage;
  49. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEventUserInfo;
  50. TOYGER_EXPORT ToygerServiceEventKey ToygerServiceEvent;
  51. TOYGER_EXPORT ToygerFaceFrameTypeKey ToygerServiceFrameTypeLight;
  52. TOYGER_EXPORT ToygerFaceFrameTypeKey ToygerServiceFrameTypeDark;
  53. #endif /* ToygerAlgorithmPublicDefine_h */