///
/// VisionCameraFaceDetectorAutolinking.mm
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#import <Foundation/Foundation.h>
#import <NitroModules/HybridObjectRegistry.hpp>
#import "VisionCameraFaceDetector-Swift-Cxx-Umbrella.hpp"
#import <type_traits>

#include "HybridFaceDetectorFactorySpecSwift.hpp"
#include "HybridImageFaceDetectorFactorySpecSwift.hpp"

@interface VisionCameraFaceDetectorAutolinking : NSObject
@end

@implementation VisionCameraFaceDetectorAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::camera::facedetector;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "FaceDetectorFactory",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridFaceDetectorFactorySpec> hybridObject = VisionCameraFaceDetector::VisionCameraFaceDetectorAutolinking::createFaceDetectorFactory();
      return hybridObject;
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "ImageFaceDetectorFactory",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridImageFaceDetectorFactorySpec> hybridObject = VisionCameraFaceDetector::VisionCameraFaceDetectorAutolinking::createImageFaceDetectorFactory();
      return hybridObject;
    }
  );
}

@end
