├── .gitignore ├── FaceAR_SDK_IOS_OpenFace_RunFull.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── FaceAR_SDK_IOS_OpenFace_RunFull ├── AppDelegate.h ├── AppDelegate.mm ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── FaceAR_SDK_IOS_OpenFace_RunFull.xcdatamodeld │ ├── .xccurrentversion │ └── FaceAR_SDK_IOS_OpenFace_RunFull.xcdatamodel │ │ └── contents ├── Info.plist ├── ViewController.h ├── ViewController.mm ├── lib │ ├── FaceARDetect │ │ ├── FaceARDetectIOS.h │ │ └── FaceARDetectIOS.mm │ └── local │ │ ├── GazeEstimate │ │ ├── GazeEstimation.cpp │ │ └── GazeEstimation.h │ │ └── LandmarkDetector │ │ ├── include │ │ ├── CCNF_patch_expert.h │ │ ├── LandmarkCoreIncludes.h │ │ ├── LandmarkDetectionValidator.h │ │ ├── LandmarkDetectorFunc.h │ │ ├── LandmarkDetectorModel.h │ │ ├── LandmarkDetectorParameters.h │ │ ├── LandmarkDetectorUtils.h │ │ ├── PAW.h │ │ ├── PDM.h │ │ ├── Patch_experts.h │ │ ├── SVR_patch_expert.h │ │ └── stdafx.h │ │ └── src │ │ ├── CCNF_patch_expert.cpp │ │ ├── LandmarkDetectionValidator.cpp │ │ ├── LandmarkDetectorFunc.cpp │ │ ├── LandmarkDetectorModel.cpp │ │ ├── LandmarkDetectorParameters.cpp │ │ ├── LandmarkDetectorUtils.cpp │ │ ├── PAW.cpp │ │ ├── PDM.cpp │ │ ├── Patch_experts.cpp │ │ ├── SVR_patch_expert.cpp │ │ └── stdafx.cpp ├── main.m ├── model │ ├── classifiers │ │ ├── haarcascade_frontalface_alt.xml │ │ ├── haarcascade_frontalface_alt2.xml │ │ ├── haarcascade_frontalface_alt_tree.xml │ │ ├── haarcascade_frontalface_default.xml │ │ └── haarcascade_profileface.xml │ └── model │ │ ├── clm-z.txt │ │ ├── clm_general.txt │ │ ├── clm_wild.txt │ │ ├── clnf_general.txt │ │ ├── clnf_wild.txt │ │ ├── detection_validation │ │ ├── validator_general_66.txt │ │ └── validator_general_68.txt │ │ ├── haarAlign.txt │ │ ├── main_clm-z.txt │ │ ├── main_clm_general.txt │ │ ├── main_clm_wild.txt │ │ ├── main_clnf_general.txt │ │ ├── main_clnf_wild.txt │ │ ├── model_eye │ │ ├── clnf_left_synth.txt │ │ ├── clnf_right_synth.txt │ │ ├── main_clnf_synth_left.txt │ │ ├── main_clnf_synth_right.txt │ │ ├── patch_experts │ │ │ ├── ccnf_patches_1.00_synth_lid_.txt │ │ │ ├── ccnf_patches_1.50_synth_lid_.txt │ │ │ ├── left_ccnf_patches_1.00_synth_lid_.txt │ │ │ └── left_ccnf_patches_1.50_synth_lid_.txt │ │ └── pdms │ │ │ ├── pdm_28_eye_3D_closed.txt │ │ │ └── pdm_28_l_eye_3D_closed.txt │ │ ├── model_inner │ │ ├── clnf_inner.txt │ │ ├── main_clnf_inner.txt │ │ ├── patch_experts │ │ │ └── ccnf_patches_1.00_inner.txt │ │ └── pdms │ │ │ └── pdm_51_inner.txt │ │ ├── patch_experts │ │ ├── ccnf_patches_0.25_general.txt │ │ ├── ccnf_patches_0.25_wild.txt │ │ ├── ccnf_patches_0.35_general.txt │ │ ├── ccnf_patches_0.35_wild.txt │ │ ├── ccnf_patches_0.5_general.txt │ │ ├── ccnf_patches_0.5_wild.txt │ │ ├── ccnf_patches_1_wild.txt │ │ ├── depth_patches_0.25.txt │ │ ├── depth_patches_0.35.txt │ │ ├── depth_patches_0.5.txt │ │ ├── intensity_patches_0.25.txt │ │ ├── intensity_patches_0.35.txt │ │ ├── intensity_patches_0.5.txt │ │ ├── svr_patches_0.25_general.txt │ │ ├── svr_patches_0.25_wild.txt │ │ ├── svr_patches_0.35_general.txt │ │ ├── svr_patches_0.35_wild.txt │ │ ├── svr_patches_0.5_general.txt │ │ └── svr_patches_0.5_wild.txt │ │ ├── pdms │ │ ├── In-the-wild_aligned_PDM_68.txt │ │ ├── Multi-PIE_aligned_PDM_66.txt │ │ └── Multi-PIE_aligned_PDM_68.txt │ │ ├── tris_66.txt │ │ ├── tris_68.txt │ │ └── tris_68_full.txt └── opencv2.framework │ ├── Headers │ ├── Resources │ ├── Versions │ ├── A │ │ ├── Headers │ │ │ ├── calib3d.hpp │ │ │ ├── calib3d │ │ │ │ ├── calib3d.hpp │ │ │ │ └── calib3d_c.h │ │ │ ├── core.hpp │ │ │ ├── core │ │ │ │ ├── affine.hpp │ │ │ │ ├── base.hpp │ │ │ │ ├── bufferpool.hpp │ │ │ │ ├── core.hpp │ │ │ │ ├── core_c.h │ │ │ │ ├── cuda.hpp │ │ │ │ ├── cuda.inl.hpp │ │ │ │ ├── cuda_stream_accessor.hpp │ │ │ │ ├── cuda_types.hpp │ │ │ │ ├── cvdef.h │ │ │ │ ├── cvstd.hpp │ │ │ │ ├── cvstd.inl.hpp │ │ │ │ ├── directx.hpp │ │ │ │ ├── eigen.hpp │ │ │ │ ├── ippasync.hpp │ │ │ │ ├── mat.hpp │ │ │ │ ├── mat.inl.hpp │ │ │ │ ├── matx.hpp │ │ │ │ ├── ocl.hpp │ │ │ │ ├── ocl_genbase.hpp │ │ │ │ ├── opengl.hpp │ │ │ │ ├── operations.hpp │ │ │ │ ├── optim.hpp │ │ │ │ ├── persistence.hpp │ │ │ │ ├── private.cuda.hpp │ │ │ │ ├── private.hpp │ │ │ │ ├── ptr.inl.hpp │ │ │ │ ├── sse_utils.hpp │ │ │ │ ├── traits.hpp │ │ │ │ ├── types.hpp │ │ │ │ ├── types_c.h │ │ │ │ ├── utility.hpp │ │ │ │ ├── version.hpp │ │ │ │ └── wimage.hpp │ │ │ ├── cvconfig.h │ │ │ ├── features2d.hpp │ │ │ ├── features2d │ │ │ │ └── features2d.hpp │ │ │ ├── flann.hpp │ │ │ ├── flann │ │ │ │ ├── all_indices.h │ │ │ │ ├── allocator.h │ │ │ │ ├── any.h │ │ │ │ ├── autotuned_index.h │ │ │ │ ├── composite_index.h │ │ │ │ ├── config.h │ │ │ │ ├── defines.h │ │ │ │ ├── dist.h │ │ │ │ ├── dummy.h │ │ │ │ ├── dynamic_bitset.h │ │ │ │ ├── flann.hpp │ │ │ │ ├── flann_base.hpp │ │ │ │ ├── general.h │ │ │ │ ├── ground_truth.h │ │ │ │ ├── hdf5.h │ │ │ │ ├── heap.h │ │ │ │ ├── hierarchical_clustering_index.h │ │ │ │ ├── index_testing.h │ │ │ │ ├── kdtree_index.h │ │ │ │ ├── kdtree_single_index.h │ │ │ │ ├── kmeans_index.h │ │ │ │ ├── linear_index.h │ │ │ │ ├── logger.h │ │ │ │ ├── lsh_index.h │ │ │ │ ├── lsh_table.h │ │ │ │ ├── matrix.h │ │ │ │ ├── miniflann.hpp │ │ │ │ ├── nn_index.h │ │ │ │ ├── object_factory.h │ │ │ │ ├── params.h │ │ │ │ ├── random.h │ │ │ │ ├── result_set.h │ │ │ │ ├── sampling.h │ │ │ │ ├── saving.h │ │ │ │ ├── simplex_downhill.h │ │ │ │ └── timer.h │ │ │ ├── hal.hpp │ │ │ ├── hal │ │ │ │ ├── defs.h │ │ │ │ ├── intrin.hpp │ │ │ │ ├── intrin_cpp.hpp │ │ │ │ ├── intrin_neon.hpp │ │ │ │ └── intrin_sse.hpp │ │ │ ├── highgui.hpp │ │ │ ├── highgui │ │ │ │ ├── highgui.hpp │ │ │ │ └── highgui_c.h │ │ │ ├── imgcodecs.hpp │ │ │ ├── imgcodecs │ │ │ │ ├── imgcodecs.hpp │ │ │ │ ├── imgcodecs_c.h │ │ │ │ └── ios.h │ │ │ ├── imgproc.hpp │ │ │ ├── imgproc │ │ │ │ ├── imgproc.hpp │ │ │ │ ├── imgproc_c.h │ │ │ │ └── types_c.h │ │ │ ├── ml.hpp │ │ │ ├── ml │ │ │ │ └── ml.hpp │ │ │ ├── objdetect.hpp │ │ │ ├── objdetect │ │ │ │ ├── detection_based_tracker.hpp │ │ │ │ ├── objdetect.hpp │ │ │ │ └── objdetect_c.h │ │ │ ├── opencv.hpp │ │ │ ├── opencv_modules.hpp │ │ │ ├── photo.hpp │ │ │ ├── photo │ │ │ │ ├── cuda.hpp │ │ │ │ ├── photo.hpp │ │ │ │ └── photo_c.h │ │ │ ├── shape.hpp │ │ │ ├── shape │ │ │ │ ├── emdL1.hpp │ │ │ │ ├── hist_cost.hpp │ │ │ │ ├── shape.hpp │ │ │ │ ├── shape_distance.hpp │ │ │ │ └── shape_transformer.hpp │ │ │ ├── stitching.hpp │ │ │ ├── stitching │ │ │ │ ├── detail │ │ │ │ │ ├── autocalib.hpp │ │ │ │ │ ├── blenders.hpp │ │ │ │ │ ├── camera.hpp │ │ │ │ │ ├── exposure_compensate.hpp │ │ │ │ │ ├── matchers.hpp │ │ │ │ │ ├── motion_estimators.hpp │ │ │ │ │ ├── seam_finders.hpp │ │ │ │ │ ├── timelapsers.hpp │ │ │ │ │ ├── util.hpp │ │ │ │ │ ├── util_inl.hpp │ │ │ │ │ ├── warpers.hpp │ │ │ │ │ └── warpers_inl.hpp │ │ │ │ └── warpers.hpp │ │ │ ├── video.hpp │ │ │ ├── video │ │ │ │ ├── background_segm.hpp │ │ │ │ ├── tracking.hpp │ │ │ │ ├── tracking_c.h │ │ │ │ └── video.hpp │ │ │ ├── videoio.hpp │ │ │ ├── videoio │ │ │ │ ├── cap_ios.h │ │ │ │ ├── videoio.hpp │ │ │ │ └── videoio_c.h │ │ │ ├── videostab.hpp │ │ │ ├── videostab │ │ │ │ ├── deblurring.hpp │ │ │ │ ├── fast_marching.hpp │ │ │ │ ├── fast_marching_inl.hpp │ │ │ │ ├── frame_source.hpp │ │ │ │ ├── global_motion.hpp │ │ │ │ ├── inpainting.hpp │ │ │ │ ├── log.hpp │ │ │ │ ├── motion_core.hpp │ │ │ │ ├── motion_stabilizing.hpp │ │ │ │ ├── optical_flow.hpp │ │ │ │ ├── outlier_rejection.hpp │ │ │ │ ├── ring_buffer.hpp │ │ │ │ ├── stabilizer.hpp │ │ │ │ └── wobble_suppression.hpp │ │ │ └── world.hpp │ │ ├── Resources │ │ │ └── Info.plist │ │ └── opencv2 │ └── Current │ └── opencv2 ├── FaceAR_SDK_IOS_OpenFace_RunFullTests ├── FaceAR_SDK_IOS_OpenFace_RunFullTests.m └── Info.plist ├── FaceAR_SDK_IOS_OpenFace_RunFullUITests ├── FaceAR_SDK_IOS_OpenFace_RunFullUITests.m └── Info.plist ├── LICENSE ├── README.md └── imgs ├── KeeganRen1.png ├── KeeganRen2.png ├── KeeganRen3.png ├── KeeganRen4.png ├── KeeganRen5.png ├── KeeganRen6.png ├── KeeganRen7.png ├── appearance.png ├── au_sample.png ├── gaze_ex.png └── multi_face_img.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | 55 | #Code Injection 56 | # 57 | # After new code Injection tools there's a generated folder /iOSInjectionProject 58 | # https://github.com/johnno1962/injectionforxcode 59 | 60 | iOSInjectionProject/ 61 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // FaceAR_SDK_IOS_OpenFace_RunFull 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (strong, nonatomic) UIWindow *window; 15 | 16 | @property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext; 17 | @property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel; 18 | @property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator; 19 | 20 | - (void)saveContext; 21 | - (NSURL *)applicationDocumentsDirectory; 22 | 23 | 24 | @end 25 | 26 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/FaceAR_SDK_IOS_OpenFace_RunFull.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | FaceAR_SDK_IOS_OpenFace_RunFull.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/FaceAR_SDK_IOS_OpenFace_RunFull.xcdatamodeld/FaceAR_SDK_IOS_OpenFace_RunFull.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSCameraUsageDescription 6 | cameraDesciption 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // FaceAR_SDK_IOS_OpenFace_RunFull 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface ViewController : UIViewController 14 | 15 | //- (IBAction)startButtonPressed:(id)sender; 16 | @property (weak, nonatomic) IBOutlet UIButton *start; 17 | @property (weak, nonatomic) IBOutlet UIImageView *imageView; 18 | @property (nonatomic, strong) CvVideoCamera* videoCamera; 19 | 20 | @end 21 | 22 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/ViewController.mm: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // FaceAR_SDK_IOS_OpenFace_RunFull 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | ///// opencv 12 | #import 13 | ///// C++ 14 | #include 15 | ///// user 16 | #include "FaceARDetectIOS.h" 17 | // 18 | 19 | 20 | 21 | @interface ViewController () 22 | 23 | @end 24 | 25 | @implementation ViewController { 26 | FaceARDetectIOS *facear; 27 | int frame_count; 28 | } 29 | 30 | - (void)viewDidLoad { 31 | [super viewDidLoad]; 32 | 33 | // Do any additional setup after loading the view, typically from a nib. 34 | self.videoCamera = [[CvVideoCamera alloc] initWithParentView:self.imageView]; 35 | self.videoCamera.delegate = self; 36 | self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront; 37 | self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPreset640x480; 38 | self.videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationPortrait; 39 | self.videoCamera.defaultFPS = 30; 40 | self.videoCamera.grayscaleMode = NO; 41 | 42 | /////////////////// 43 | // facear =[[FaceARDetectIOS alloc] init]; 44 | 45 | } 46 | 47 | - (IBAction)startButtonPressed:(id)sender 48 | { 49 | [self.videoCamera start]; 50 | } 51 | 52 | - (void)processImage:(cv::Mat &)image 53 | { 54 | cv::Mat targetImage(image.cols,image.rows,CV_8UC3); 55 | cv::cvtColor(image, targetImage, cv::COLOR_BGRA2BGR); 56 | if(targetImage.empty()){ 57 | std::cout << "targetImage empty" << std::endl; 58 | } 59 | else 60 | { 61 | float fx, fy, cx, cy; 62 | cx = 1.0*targetImage.cols / 2.0; 63 | cy = 1.0*targetImage.rows / 2.0; 64 | 65 | fx = 500 * (targetImage.cols / 640.0); 66 | fy = 500 * (targetImage.rows / 480.0); 67 | 68 | fx = (fx + fy) / 2.0; 69 | fy = fx; 70 | 71 | [[FaceARDetectIOS alloc] run_FaceAR:targetImage frame__:frame_count fx__:fx fy__:fy cx__:cx cy__:cy]; 72 | frame_count = frame_count + 1; 73 | } 74 | cv::cvtColor(targetImage, image, cv::COLOR_BGRA2RGB); 75 | } 76 | 77 | 78 | - (void)didReceiveMemoryWarning { 79 | [super didReceiveMemoryWarning]; 80 | // Dispose of any resources that can be recreated. 81 | } 82 | 83 | @end 84 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/lib/FaceARDetect/FaceARDetectIOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // FaceARDetectIOS.h 3 | // FaceAR_SDK_IOS_OpenFace_RunFull 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | // OpenCV includes 16 | #include // Video write 17 | #include // Video write 18 | #include 19 | #include 20 | 21 | #include "LandmarkCoreIncludes.h" 22 | #include "GazeEstimation.h" 23 | 24 | @interface FaceARDetectIOS : NSObject 25 | 26 | //bool inits_FaceAR(); 27 | //-(instancetype) inits_FaceAR; 28 | //-(id) init; 29 | 30 | // void visualise_tracking(cv::Mat& captured_image, cv::Mat_& depth_image, const LandmarkDetector::CLNF& face_model, const LandmarkDetector::FaceModelParameters& det_parameters, int frame_count, double fx, double fy, double cx, double cy) 31 | //-(BOOL) visualise_tracking:(cv::Mat)captured_image depth_image_:(cv::Mat)depth_image face_model_:(const LandmarkDetector::CLNF)face_model det_parameters_:(const LandmarkDetector::FaceModelParameters)det_parameters frame_count_:(int)frame_count fx_:(double)fx fy_:(double)fy cx_:(double)cx cy_:(double)cy; 32 | 33 | //bool run_FaceAR(cv::Mat &captured_image, int frame_count, float fx, float fy, float cx, float cy); 34 | -(BOOL) run_FaceAR:(cv::Mat)captured_image frame__:(int)frame_count fx__:(double)fx fy__:(double)fy cx__:(double)cx cy__:(double)cy; 35 | 36 | //bool reset_FaceAR(); 37 | -(BOOL) reset_FaceAR; 38 | 39 | //bool clear_FaceAR(); 40 | -(BOOL) clear_FaceAR; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/lib/local/GazeEstimate/GazeEstimation.h: -------------------------------------------------------------------------------- 1 | #ifndef __GAZEESTIMATION_h_ 2 | #define __GAZEESTIMATION_h_ 3 | 4 | #include "opencv2/core/core.hpp" 5 | #include "LandmarkCoreIncludes.h" 6 | 7 | namespace GazeEstimate 8 | { 9 | 10 | void EstimateGaze(const LandmarkDetector::CLNF& clnf_model, cv::Point3f& gaze_absolute, float fx, float fy, float cx, float cy, bool left_eye); 11 | void DrawGaze(cv::Mat img, const LandmarkDetector::CLNF& clnf_model, cv::Point3f gazeVecAxisLeft, cv::Point3f gazeVecAxisRight, float fx, float fy, float cx, float cy); 12 | 13 | } 14 | #endif 15 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/lib/local/LandmarkDetector/include/LandmarkCoreIncludes.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | 5 | #ifndef __LANDMARK_CORE_INCLUDES_h_ 6 | #define __LANDMARK_CORE_INCLUDES_h_ 7 | 8 | #include "LandmarkDetectorModel.h" 9 | #include "LandmarkDetectorFunc.h" 10 | #include "LandmarkDetectorParameters.h" 11 | #include "LandmarkDetectorUtils.h" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/lib/local/LandmarkDetector/include/stdafx.h: -------------------------------------------------------------------------------- 1 | // Precompiled headers stuff 2 | 3 | #ifndef __STDAFX_h_ 4 | #define __STDAFX_h_ 5 | 6 | // OpenCV includes 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include // Video write 13 | #include // Video write 14 | #include 15 | 16 | // IplImage stuff 17 | #include 18 | #include 19 | 20 | // C++ stuff 21 | #include 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | #include 28 | #include 29 | 30 | #define _USE_MATH_DEFINES 31 | #include 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/lib/local/LandmarkDetector/src/stdafx.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // FaceAR_SDK_IOS_OpenFace_RunFull 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/clm-z.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/Multi-PIE_aligned_PDM_66.txt 2 | Triangulations tris_66.txt 3 | PatchesIntensity patch_experts/intensity_patches_0.25.txt 4 | PatchesIntensity patch_experts/intensity_patches_0.35.txt 5 | PatchesIntensity patch_experts/intensity_patches_0.5.txt 6 | PatchesDepth patch_experts/depth_patches_0.25.txt 7 | PatchesDepth patch_experts/depth_patches_0.35.txt 8 | PatchesDepth patch_experts/depth_patches_0.5.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/clm_general.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/In-the-wild_aligned_PDM_68.txt 2 | Triangulations tris_68.txt 3 | PatchesIntensity patch_experts/svr_patches_0.25_general.txt 4 | PatchesIntensity patch_experts/svr_patches_0.35_general.txt 5 | PatchesIntensity patch_experts/svr_patches_0.5_general.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/clm_wild.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/In-the-wild_aligned_PDM_68.txt 2 | Triangulations tris_68.txt 3 | PatchesIntensity patch_experts/svr_patches_0.25_wild.txt 4 | PatchesIntensity patch_experts/svr_patches_0.35_wild.txt 5 | PatchesIntensity patch_experts/svr_patches_0.5_wild.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/clnf_general.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/In-the-wild_aligned_PDM_68.txt 2 | Triangulations tris_68.txt 3 | PatchesCCNF patch_experts/ccnf_patches_0.25_general.txt 4 | PatchesCCNF patch_experts/ccnf_patches_0.35_general.txt 5 | PatchesCCNF patch_experts/ccnf_patches_0.5_general.txt 6 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/clnf_wild.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/In-the-wild_aligned_PDM_68.txt 2 | Triangulations tris_68.txt 3 | PatchesCCNF patch_experts/ccnf_patches_0.25_wild.txt 4 | PatchesCCNF patch_experts/ccnf_patches_0.35_wild.txt 5 | PatchesCCNF patch_experts/ccnf_patches_0.5_wild.txt 6 | PatchesCCNF patch_experts/ccnf_patches_1_wild.txt 7 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/detection_validation/validator_general_66.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/detection_validation/validator_general_66.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/detection_validation/validator_general_68.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/detection_validation/validator_general_68.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/haarAlign.txt: -------------------------------------------------------------------------------- 1 | 3 2 | 4 3 | 6 4 | 1.000000 0.000000 0.000000 0.000000 5 | 0.000000 1.000000 0.000000 0.000000 6 | 0.055858 0.229781 0.871248 0.892778 7 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/main_clm-z.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clm-z.txt 2 | FaceDetConversion haarAlign.txt 3 | DetectionValidator detection_validation/validator_general_66.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/main_clm_general.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clm_general.txt 2 | FaceDetConversion haarAlign.txt 3 | DetectionValidator detection_validation/validator_general_68.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/main_clm_wild.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clm_wild.txt 2 | FaceDetConversion haarAlign.txt 3 | DetectionValidator detection_validation/validator_general_68.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/main_clnf_general.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clnf_general.txt 2 | LandmarkDetector_part model_inner/main_clnf_inner.txt inner 17 0 18 1 19 2 20 3 21 4 22 5 23 6 24 7 25 8 26 9 27 10 28 11 29 12 30 13 31 14 32 15 33 16 34 17 35 18 36 19 37 20 38 21 39 22 40 23 41 24 42 25 43 26 44 27 45 28 46 29 47 30 48 31 49 32 50 33 51 34 52 35 53 36 54 37 55 38 56 39 57 40 58 41 59 42 60 43 61 44 62 45 63 46 64 47 65 48 66 49 67 50 17 0 18 1 19 2 20 3 21 4 22 5 23 6 24 7 25 8 26 9 27 10 28 11 29 12 30 13 31 14 32 15 33 16 34 17 35 18 36 19 37 20 38 21 39 22 40 23 41 24 42 25 43 26 44 27 45 28 46 29 47 30 48 31 49 32 50 33 51 34 52 35 53 36 54 37 55 38 56 39 57 40 58 41 59 42 60 43 61 44 62 45 63 46 64 47 65 48 66 49 67 50 3 | LandmarkDetector_part model_eye/main_clnf_synth_left.txt left_eye_28 36 8 37 10 38 12 39 14 40 16 41 18 4 | LandmarkDetector_part model_eye/main_clnf_synth_right.txt right_eye_28 42 8 43 10 44 12 45 14 46 16 47 18 5 | FaceDetConversion haarAlign.txt 6 | DetectionValidator detection_validation/validator_general_68.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/main_clnf_wild.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clnf_wild.txt 2 | LandmarkDetector_part model_eye/main_clnf_synth_left.txt left_eye_28 36 8 37 10 38 12 39 14 40 16 41 18 3 | LandmarkDetector_part model_eye/main_clnf_synth_right.txt right_eye_28 42 8 43 10 44 12 45 14 46 16 47 18 4 | FaceDetConversion haarAlign.txt 5 | DetectionValidator detection_validation/validator_general_68.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/clnf_left_synth.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/pdm_28_l_eye_3D_closed.txt 2 | PatchesCCNF patch_experts/left_ccnf_patches_1.00_synth_lid_.txt 3 | PatchesCCNF patch_experts/left_ccnf_patches_1.50_synth_lid_.txt 4 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/clnf_right_synth.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/pdm_28_eye_3D_closed.txt 2 | PatchesCCNF patch_experts/ccnf_patches_1.00_synth_lid_.txt 3 | PatchesCCNF patch_experts/ccnf_patches_1.50_synth_lid_.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/main_clnf_synth_left.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clnf_left_synth.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/main_clnf_synth_right.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clnf_right_synth.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/ccnf_patches_1.00_synth_lid_.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/ccnf_patches_1.00_synth_lid_.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/ccnf_patches_1.50_synth_lid_.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/ccnf_patches_1.50_synth_lid_.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/left_ccnf_patches_1.00_synth_lid_.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/left_ccnf_patches_1.00_synth_lid_.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/left_ccnf_patches_1.50_synth_lid_.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_eye/patch_experts/left_ccnf_patches_1.50_synth_lid_.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_inner/clnf_inner.txt: -------------------------------------------------------------------------------- 1 | PDM pdms/pdm_51_inner.txt 2 | PatchesCCNF patch_experts/ccnf_patches_1.00_inner.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_inner/main_clnf_inner.txt: -------------------------------------------------------------------------------- 1 | LandmarkDetector clnf_inner.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_inner/patch_experts/ccnf_patches_1.00_inner.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/model_inner/patch_experts/ccnf_patches_1.00_inner.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.25_general.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.25_general.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.25_wild.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.25_wild.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.35_general.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.35_general.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.35_wild.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.35_wild.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.5_general.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.5_general.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.5_wild.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_0.5_wild.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_1_wild.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/model/model/patch_experts/ccnf_patches_1_wild.txt -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/model/model/tris_68_full.txt: -------------------------------------------------------------------------------- 1 | 111 2 | 3 3 | 4 4 | 58 67 59 5 | 60 49 48 6 | 58 59 6 7 | 34 52 35 8 | 44 45 25 9 | 39 40 29 10 | 37 18 36 11 | 27 42 22 12 | 23 44 24 13 | 41 36 1 14 | 50 62 51 15 | 56 65 66 16 | 57 58 7 17 | 64 53 63 18 | 28 27 39 19 | 52 34 51 20 | 54 14 35 21 | 29 42 28 22 | 19 20 24 23 | 35 15 46 24 | 37 19 18 25 | 36 0 1 26 | 18 17 36 27 | 37 20 19 28 | 38 20 37 29 | 21 20 38 30 | 21 38 39 31 | 24 44 25 32 | 30 34 35 33 | 21 39 27 34 | 28 42 27 35 | 39 29 28 36 | 29 30 35 37 | 31 30 29 38 | 30 33 34 39 | 31 29 40 40 | 36 17 0 41 | 41 31 40 42 | 31 32 30 43 | 31 41 1 44 | 49 31 48 45 | 48 2 3 46 | 67 60 59 47 | 4 48 3 48 | 5 48 4 49 | 6 59 5 50 | 59 48 5 51 | 60 48 59 52 | 7 58 6 53 | 61 49 60 54 | 58 66 67 55 | 31 2 48 56 | 31 50 32 57 | 1 2 31 58 | 61 50 49 59 | 52 62 63 60 | 50 31 49 61 | 34 33 51 62 | 51 62 52 63 | 32 50 51 64 | 50 61 62 65 | 63 53 52 66 | 54 55 11 67 | 57 8 9 68 | 66 58 57 69 | 8 57 7 70 | 56 57 9 71 | 66 57 56 72 | 10 56 9 73 | 55 56 10 74 | 53 54 35 75 | 53 35 52 76 | 12 54 11 77 | 55 10 11 78 | 65 56 55 79 | 64 55 54 80 | 65 55 64 81 | 54 53 64 82 | 12 13 54 83 | 14 54 13 84 | 15 35 14 85 | 47 35 46 86 | 33 32 51 87 | 30 32 33 88 | 29 35 47 89 | 15 45 46 90 | 22 21 27 91 | 20 21 23 92 | 43 23 22 93 | 29 47 42 94 | 23 21 22 95 | 24 20 23 96 | 22 42 43 97 | 23 43 44 98 | 45 16 26 99 | 15 16 45 100 | 25 45 26 101 | 41 36 37 102 | 40 41 37 103 | 38 40 37 104 | 39 40 38 105 | 47 42 43 106 | 46 47 43 107 | 46 43 44 108 | 45 46 44 109 | 67 60 61 110 | 66 67 61 111 | 62 66 61 112 | 65 66 62 113 | 63 65 62 114 | 64 65 63 -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/calib3d/calib3d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/calib3d.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/core/bufferpool.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved. 6 | 7 | #ifndef __OPENCV_CORE_BUFFER_POOL_HPP__ 8 | #define __OPENCV_CORE_BUFFER_POOL_HPP__ 9 | 10 | namespace cv 11 | { 12 | 13 | //! @addtogroup core 14 | //! @{ 15 | 16 | class BufferPoolController 17 | { 18 | protected: 19 | ~BufferPoolController() { } 20 | public: 21 | virtual size_t getReservedSize() const = 0; 22 | virtual size_t getMaxReservedSize() const = 0; 23 | virtual void setMaxReservedSize(size_t size) = 0; 24 | virtual void freeAllReservedBuffers() = 0; 25 | }; 26 | 27 | //! @} 28 | 29 | } 30 | 31 | #endif // __OPENCV_CORE_BUFFER_POOL_HPP__ 32 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/core/core.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/core.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/core/cuda_stream_accessor.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_CORE_CUDA_STREAM_ACCESSOR_HPP__ 44 | #define __OPENCV_CORE_CUDA_STREAM_ACCESSOR_HPP__ 45 | 46 | #ifndef __cplusplus 47 | # error cuda_stream_accessor.hpp header must be compiled as C++ 48 | #endif 49 | 50 | /** @file cuda_stream_accessor.hpp 51 | * This is only header file that depends on CUDA Runtime API. All other headers are independent. 52 | */ 53 | 54 | #include 55 | #include "opencv2/core/cvdef.h" 56 | 57 | namespace cv 58 | { 59 | namespace cuda 60 | { 61 | 62 | //! @addtogroup cudacore_struct 63 | //! @{ 64 | 65 | class Stream; 66 | class Event; 67 | 68 | /** @brief Class that enables getting cudaStream_t from cuda::Stream 69 | */ 70 | struct StreamAccessor 71 | { 72 | CV_EXPORTS static cudaStream_t getStream(const Stream& stream); 73 | }; 74 | 75 | /** @brief Class that enables getting cudaEvent_t from cuda::Event 76 | */ 77 | struct EventAccessor 78 | { 79 | CV_EXPORTS static cudaEvent_t getEvent(const Event& event); 80 | }; 81 | 82 | //! @} 83 | 84 | } 85 | } 86 | 87 | #endif /* __OPENCV_CORE_CUDA_STREAM_ACCESSOR_HPP__ */ 88 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/core/directx.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors as is and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the copyright holders or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef __OPENCV_CORE_DIRECTX_HPP__ 43 | #define __OPENCV_CORE_DIRECTX_HPP__ 44 | 45 | #include "mat.hpp" 46 | #include "ocl.hpp" 47 | 48 | #if !defined(__d3d11_h__) 49 | struct ID3D11Device; 50 | struct ID3D11Texture2D; 51 | #endif 52 | 53 | #if !defined(__d3d10_h__) 54 | struct ID3D10Device; 55 | struct ID3D10Texture2D; 56 | #endif 57 | 58 | #if !defined(_D3D9_H_) 59 | struct IDirect3DDevice9; 60 | struct IDirect3DDevice9Ex; 61 | struct IDirect3DSurface9; 62 | #endif 63 | 64 | 65 | namespace cv { namespace directx { 66 | 67 | namespace ocl { 68 | using namespace cv::ocl; 69 | 70 | //! @addtogroup core_directx 71 | //! @{ 72 | 73 | // TODO static functions in the Context class 74 | CV_EXPORTS Context& initializeContextFromD3D11Device(ID3D11Device* pD3D11Device); 75 | CV_EXPORTS Context& initializeContextFromD3D10Device(ID3D10Device* pD3D10Device); 76 | CV_EXPORTS Context& initializeContextFromDirect3DDevice9Ex(IDirect3DDevice9Ex* pDirect3DDevice9Ex); 77 | CV_EXPORTS Context& initializeContextFromDirect3DDevice9(IDirect3DDevice9* pDirect3DDevice9); 78 | 79 | //! @} 80 | 81 | } // namespace cv::directx::ocl 82 | 83 | //! @addtogroup core_directx 84 | //! @{ 85 | 86 | CV_EXPORTS void convertToD3D11Texture2D(InputArray src, ID3D11Texture2D* pD3D11Texture2D); 87 | CV_EXPORTS void convertFromD3D11Texture2D(ID3D11Texture2D* pD3D11Texture2D, OutputArray dst); 88 | 89 | CV_EXPORTS void convertToD3D10Texture2D(InputArray src, ID3D10Texture2D* pD3D10Texture2D); 90 | CV_EXPORTS void convertFromD3D10Texture2D(ID3D10Texture2D* pD3D10Texture2D, OutputArray dst); 91 | 92 | CV_EXPORTS void convertToDirect3DSurface9(InputArray src, IDirect3DSurface9* pDirect3DSurface9, void* surfaceSharedHandle = NULL); 93 | CV_EXPORTS void convertFromDirect3DSurface9(IDirect3DSurface9* pDirect3DSurface9, OutputArray dst, void* surfaceSharedHandle = NULL); 94 | 95 | // Get OpenCV type from DirectX type, return -1 if there is no equivalent 96 | CV_EXPORTS int getTypeFromDXGI_FORMAT(const int iDXGI_FORMAT); // enum DXGI_FORMAT for D3D10/D3D11 97 | 98 | // Get OpenCV type from DirectX type, return -1 if there is no equivalent 99 | CV_EXPORTS int getTypeFromD3DFORMAT(const int iD3DFORMAT); // enum D3DTYPE for D3D9 100 | 101 | //! @} 102 | 103 | } } // namespace cv::directx 104 | 105 | #endif // __OPENCV_CORE_DIRECTX_HPP__ 106 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/core/ocl_genbase.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef __OPENCV_OPENCL_GENBASE_HPP__ 43 | #define __OPENCV_OPENCL_GENBASE_HPP__ 44 | 45 | namespace cv 46 | { 47 | namespace ocl 48 | { 49 | 50 | //! @cond IGNORED 51 | 52 | struct ProgramEntry 53 | { 54 | const char* name; 55 | const char* programStr; 56 | const char* programHash; 57 | }; 58 | 59 | //! @endcond 60 | 61 | } 62 | } 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/core/version.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright( C) 2000-2015, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2011-2013, NVIDIA Corporation, all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Copyright (C) 2015, Itseez Inc., all rights reserved. 17 | // Third party copyrights are property of their respective owners. 18 | // 19 | // Redistribution and use in source and binary forms, with or without modification, 20 | // are permitted provided that the following conditions are met: 21 | // 22 | // * Redistribution's of source code must retain the above copyright notice, 23 | // this list of conditions and the following disclaimer. 24 | // 25 | // * Redistribution's in binary form must reproduce the above copyright notice, 26 | // this list of conditions and the following disclaimer in the documentation 27 | // and/or other materials provided with the distribution. 28 | // 29 | // * The name of Intel Corporation may not be used to endorse or promote products 30 | // derived from this software without specific prior written permission. 31 | // 32 | // This software is provided by the copyright holders and contributors "as is" and 33 | // any express or implied warranties, including, but not limited to, the implied 34 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 35 | // In no event shall the Intel Corporation or contributors be liable for any direct, 36 | // indirect, incidental, special, exemplary, or consequential damages 37 | //(including, but not limited to, procurement of substitute goods or services; 38 | // loss of use, data, or profits; or business interruption) however caused 39 | // and on any theory of liability, whether in contract, strict liability, 40 | // or tort(including negligence or otherwise) arising in any way out of 41 | // the use of this software, even if advised of the possibility of such damage. 42 | // 43 | //M*/ 44 | 45 | /* 46 | definition of the current version of OpenCV 47 | Usefull to test in user programs 48 | */ 49 | 50 | #ifndef __OPENCV_VERSION_HPP__ 51 | #define __OPENCV_VERSION_HPP__ 52 | 53 | #define CV_VERSION_MAJOR 3 54 | #define CV_VERSION_MINOR 0 55 | #define CV_VERSION_REVISION 0 56 | #define CV_VERSION_STATUS "" 57 | 58 | #define CVAUX_STR_EXP(__A) #__A 59 | #define CVAUX_STR(__A) CVAUX_STR_EXP(__A) 60 | 61 | #define CVAUX_STRW_EXP(__A) L#__A 62 | #define CVAUX_STRW(__A) CVAUX_STRW_EXP(__A) 63 | 64 | #define CV_VERSION CVAUX_STR(CV_VERSION_MAJOR) "." CVAUX_STR(CV_VERSION_MINOR) "." CVAUX_STR(CV_VERSION_REVISION) CV_VERSION_STATUS 65 | 66 | /* old style version constants*/ 67 | #define CV_MAJOR_VERSION CV_VERSION_MAJOR 68 | #define CV_MINOR_VERSION CV_VERSION_MINOR 69 | #define CV_SUBMINOR_VERSION CV_VERSION_REVISION 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/cvconfig.h: -------------------------------------------------------------------------------- 1 | /* OpenCV compiled as static or dynamic libs */ 2 | /* #undef BUILD_SHARED_LIBS */ 3 | 4 | /* Compile for 'real' NVIDIA GPU architectures */ 5 | #define CUDA_ARCH_BIN "" 6 | 7 | /* Create PTX or BIN for 1.0 compute capability */ 8 | /* #undef CUDA_ARCH_BIN_OR_PTX_10 */ 9 | 10 | /* NVIDIA GPU features are used */ 11 | #define CUDA_ARCH_FEATURES "" 12 | 13 | /* Compile for 'virtual' NVIDIA PTX architectures */ 14 | #define CUDA_ARCH_PTX "" 15 | 16 | /* AVFoundation video libraries */ 17 | #define HAVE_AVFOUNDATION 18 | 19 | /* V4L capturing support */ 20 | /* #undef HAVE_CAMV4L */ 21 | 22 | /* V4L2 capturing support */ 23 | /* #undef HAVE_CAMV4L2 */ 24 | 25 | /* Carbon windowing environment */ 26 | /* #undef HAVE_CARBON */ 27 | 28 | /* AMD's Basic Linear Algebra Subprograms Library*/ 29 | /* #undef HAVE_CLAMDBLAS */ 30 | 31 | /* AMD's OpenCL Fast Fourier Transform Library*/ 32 | /* #undef HAVE_CLAMDFFT */ 33 | 34 | /* Clp support */ 35 | /* #undef HAVE_CLP */ 36 | 37 | /* Cocoa API */ 38 | /* #undef HAVE_COCOA */ 39 | 40 | /* C= */ 41 | /* #undef HAVE_CSTRIPES */ 42 | 43 | /* NVidia Cuda Basic Linear Algebra Subprograms (BLAS) API*/ 44 | /* #undef HAVE_CUBLAS */ 45 | 46 | /* NVidia Cuda Runtime API*/ 47 | /* #undef HAVE_CUDA */ 48 | 49 | /* NVidia Cuda Fast Fourier Transform (FFT) API*/ 50 | /* #undef HAVE_CUFFT */ 51 | 52 | /* IEEE1394 capturing support */ 53 | /* #undef HAVE_DC1394 */ 54 | 55 | /* IEEE1394 capturing support - libdc1394 v2.x */ 56 | /* #undef HAVE_DC1394_2 */ 57 | 58 | /* DirectX */ 59 | /* #undef HAVE_DIRECTX */ 60 | /* #undef HAVE_D3D11 */ 61 | /* #undef HAVE_D3D10 */ 62 | /* #undef HAVE_D3D9 */ 63 | 64 | /* DirectShow Video Capture library */ 65 | /* #undef HAVE_DSHOW */ 66 | 67 | /* Eigen Matrix & Linear Algebra Library */ 68 | /* #undef HAVE_EIGEN */ 69 | 70 | /* FFMpeg video library */ 71 | /* #undef HAVE_FFMPEG */ 72 | 73 | /* ffmpeg's libswscale */ 74 | /* #undef HAVE_FFMPEG_SWSCALE */ 75 | 76 | /* ffmpeg in Gentoo */ 77 | /* #undef HAVE_GENTOO_FFMPEG */ 78 | 79 | /* Geospatial Data Abstraction Library */ 80 | /* #undef HAVE_GDAL */ 81 | 82 | /* GStreamer multimedia framework */ 83 | /* #undef HAVE_GSTREAMER */ 84 | 85 | /* GTK+ 2.0 Thread support */ 86 | /* #undef HAVE_GTHREAD */ 87 | 88 | /* GTK+ 2.x toolkit */ 89 | /* #undef HAVE_GTK */ 90 | 91 | /* Define to 1 if you have the header file. */ 92 | /* #undef HAVE_INTTYPES_H */ 93 | 94 | /* Intel Perceptual Computing SDK library */ 95 | /* #undef HAVE_INTELPERC */ 96 | 97 | /* Intel Integrated Performance Primitives */ 98 | /* #undef HAVE_IPP */ 99 | /* #undef HAVE_IPP_ICV_ONLY */ 100 | 101 | /* Intel IPP Async */ 102 | /* #undef HAVE_IPP_A */ 103 | 104 | /* JPEG-2000 codec */ 105 | /* #undef HAVE_JASPER */ 106 | 107 | /* IJG JPEG codec */ 108 | #define HAVE_JPEG 109 | 110 | /* libpng/png.h needs to be included */ 111 | /* #undef HAVE_LIBPNG_PNG_H */ 112 | 113 | /* V4L/V4L2 capturing support via libv4l */ 114 | /* #undef HAVE_LIBV4L */ 115 | 116 | /* Microsoft Media Foundation Capture library */ 117 | /* #undef HAVE_MSMF */ 118 | 119 | /* NVidia Video Decoding API*/ 120 | /* #undef HAVE_NVCUVID */ 121 | 122 | /* OpenCL Support */ 123 | /* #undef HAVE_OPENCL */ 124 | /* #undef HAVE_OPENCL_STATIC */ 125 | /* #undef HAVE_OPENCL_SVM */ 126 | 127 | /* OpenEXR codec */ 128 | /* #undef HAVE_OPENEXR */ 129 | 130 | /* OpenGL support*/ 131 | /* #undef HAVE_OPENGL */ 132 | 133 | /* OpenNI library */ 134 | /* #undef HAVE_OPENNI */ 135 | 136 | /* OpenNI library */ 137 | /* #undef HAVE_OPENNI2 */ 138 | 139 | /* PNG codec */ 140 | #define HAVE_PNG 141 | 142 | /* Qt support */ 143 | /* #undef HAVE_QT */ 144 | 145 | /* Qt OpenGL support */ 146 | /* #undef HAVE_QT_OPENGL */ 147 | 148 | /* QuickTime video libraries */ 149 | /* #undef HAVE_QUICKTIME */ 150 | 151 | /* QTKit video libraries */ 152 | /* #undef HAVE_QTKIT */ 153 | 154 | /* Intel Threading Building Blocks */ 155 | /* #undef HAVE_TBB */ 156 | 157 | /* TIFF codec */ 158 | /* #undef HAVE_TIFF */ 159 | 160 | /* Unicap video capture library */ 161 | /* #undef HAVE_UNICAP */ 162 | 163 | /* Video for Windows support */ 164 | /* #undef HAVE_VFW */ 165 | 166 | /* V4L2 capturing support in videoio.h */ 167 | /* #undef HAVE_VIDEOIO */ 168 | 169 | /* Win32 UI */ 170 | /* #undef HAVE_WIN32UI */ 171 | 172 | /* XIMEA camera support */ 173 | /* #undef HAVE_XIMEA */ 174 | 175 | /* Xine video library */ 176 | /* #undef HAVE_XINE */ 177 | 178 | /* Define if your processor stores words with the most significant byte 179 | first (like Motorola and SPARC, unlike Intel and VAX). */ 180 | /* #undef WORDS_BIGENDIAN */ 181 | 182 | /* gPhoto2 library */ 183 | /* #undef HAVE_GPHOTO2 */ 184 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/features2d/features2d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/features2d.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/config.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_CONFIG_H_ 31 | #define OPENCV_FLANN_CONFIG_H_ 32 | 33 | #ifdef FLANN_VERSION_ 34 | #undef FLANN_VERSION_ 35 | #endif 36 | #define FLANN_VERSION_ "1.6.10" 37 | 38 | #endif /* OPENCV_FLANN_CONFIG_H_ */ 39 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/dummy.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef OPENCV_FLANN_DUMMY_H_ 3 | #define OPENCV_FLANN_DUMMY_H_ 4 | 5 | namespace cvflann 6 | { 7 | 8 | #if (defined WIN32 || defined _WIN32 || defined WINCE) && defined CVAPI_EXPORTS 9 | __declspec(dllexport) 10 | #endif 11 | void dummyfunc(); 12 | 13 | } 14 | 15 | 16 | #endif /* OPENCV_FLANN_DUMMY_H_ */ 17 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/dynamic_bitset.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | /*********************************************************************** 32 | * Author: Vincent Rabaud 33 | *************************************************************************/ 34 | 35 | #ifndef OPENCV_FLANN_DYNAMIC_BITSET_H_ 36 | #define OPENCV_FLANN_DYNAMIC_BITSET_H_ 37 | 38 | #ifndef FLANN_USE_BOOST 39 | # define FLANN_USE_BOOST 0 40 | #endif 41 | //#define FLANN_USE_BOOST 1 42 | #if FLANN_USE_BOOST 43 | #include 44 | typedef boost::dynamic_bitset<> DynamicBitset; 45 | #else 46 | 47 | #include 48 | 49 | #include "dist.h" 50 | 51 | namespace cvflann { 52 | 53 | /** Class re-implementing the boost version of it 54 | * This helps not depending on boost, it also does not do the bound checks 55 | * and has a way to reset a block for speed 56 | */ 57 | class DynamicBitset 58 | { 59 | public: 60 | /** default constructor 61 | */ 62 | DynamicBitset() 63 | { 64 | } 65 | 66 | /** only constructor we use in our code 67 | * @param sz the size of the bitset (in bits) 68 | */ 69 | DynamicBitset(size_t sz) 70 | { 71 | resize(sz); 72 | reset(); 73 | } 74 | 75 | /** Sets all the bits to 0 76 | */ 77 | void clear() 78 | { 79 | std::fill(bitset_.begin(), bitset_.end(), 0); 80 | } 81 | 82 | /** @brief checks if the bitset is empty 83 | * @return true if the bitset is empty 84 | */ 85 | bool empty() const 86 | { 87 | return bitset_.empty(); 88 | } 89 | 90 | /** set all the bits to 0 91 | */ 92 | void reset() 93 | { 94 | std::fill(bitset_.begin(), bitset_.end(), 0); 95 | } 96 | 97 | /** @brief set one bit to 0 98 | * @param index 99 | */ 100 | void reset(size_t index) 101 | { 102 | bitset_[index / cell_bit_size_] &= ~(size_t(1) << (index % cell_bit_size_)); 103 | } 104 | 105 | /** @brief sets a specific bit to 0, and more bits too 106 | * This function is useful when resetting a given set of bits so that the 107 | * whole bitset ends up being 0: if that's the case, we don't care about setting 108 | * other bits to 0 109 | * @param index 110 | */ 111 | void reset_block(size_t index) 112 | { 113 | bitset_[index / cell_bit_size_] = 0; 114 | } 115 | 116 | /** resize the bitset so that it contains at least sz bits 117 | * @param sz 118 | */ 119 | void resize(size_t sz) 120 | { 121 | size_ = sz; 122 | bitset_.resize(sz / cell_bit_size_ + 1); 123 | } 124 | 125 | /** set a bit to true 126 | * @param index the index of the bit to set to 1 127 | */ 128 | void set(size_t index) 129 | { 130 | bitset_[index / cell_bit_size_] |= size_t(1) << (index % cell_bit_size_); 131 | } 132 | 133 | /** gives the number of contained bits 134 | */ 135 | size_t size() const 136 | { 137 | return size_; 138 | } 139 | 140 | /** check if a bit is set 141 | * @param index the index of the bit to check 142 | * @return true if the bit is set 143 | */ 144 | bool test(size_t index) const 145 | { 146 | return (bitset_[index / cell_bit_size_] & (size_t(1) << (index % cell_bit_size_))) != 0; 147 | } 148 | 149 | private: 150 | std::vector bitset_; 151 | size_t size_; 152 | static const unsigned int cell_bit_size_ = CHAR_BIT * sizeof(size_t); 153 | }; 154 | 155 | } // namespace cvflann 156 | 157 | #endif 158 | 159 | #endif // OPENCV_FLANN_DYNAMIC_BITSET_H_ 160 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/flann.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/flann.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/general.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_GENERAL_H_ 32 | #define OPENCV_FLANN_GENERAL_H_ 33 | 34 | #include "opencv2/core.hpp" 35 | 36 | namespace cvflann 37 | { 38 | 39 | class FLANNException : public cv::Exception 40 | { 41 | public: 42 | FLANNException(const char* message) : cv::Exception(0, message, "", __FILE__, __LINE__) { } 43 | 44 | FLANNException(const cv::String& message) : cv::Exception(0, message, "", __FILE__, __LINE__) { } 45 | }; 46 | 47 | } 48 | 49 | 50 | #endif /* OPENCV_FLANN_GENERAL_H_ */ 51 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/ground_truth.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_GROUND_TRUTH_H_ 32 | #define OPENCV_FLANN_GROUND_TRUTH_H_ 33 | 34 | #include "dist.h" 35 | #include "matrix.h" 36 | 37 | 38 | namespace cvflann 39 | { 40 | 41 | template 42 | void find_nearest(const Matrix& dataset, typename Distance::ElementType* query, int* matches, int nn, 43 | int skip = 0, Distance distance = Distance()) 44 | { 45 | typedef typename Distance::ResultType DistanceType; 46 | int n = nn + skip; 47 | 48 | std::vector match(n); 49 | std::vector dists(n); 50 | 51 | dists[0] = distance(dataset[0], query, dataset.cols); 52 | match[0] = 0; 53 | int dcnt = 1; 54 | 55 | for (size_t i=1; i=1 && dists[j] 83 | void compute_ground_truth(const Matrix& dataset, const Matrix& testset, Matrix& matches, 84 | int skip=0, Distance d = Distance()) 85 | { 86 | for (size_t i=0; i(dataset, testset[i], matches[i], (int)matches.cols, skip, d); 88 | } 89 | } 90 | 91 | 92 | } 93 | 94 | #endif //OPENCV_FLANN_GROUND_TRUTH_H_ 95 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/heap.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_HEAP_H_ 32 | #define OPENCV_FLANN_HEAP_H_ 33 | 34 | #include 35 | #include 36 | 37 | namespace cvflann 38 | { 39 | 40 | /** 41 | * Priority Queue Implementation 42 | * 43 | * The priority queue is implemented with a heap. A heap is a complete 44 | * (full) binary tree in which each parent is less than both of its 45 | * children, but the order of the children is unspecified. 46 | */ 47 | template 48 | class Heap 49 | { 50 | 51 | /** 52 | * Storage array for the heap. 53 | * Type T must be comparable. 54 | */ 55 | std::vector heap; 56 | int length; 57 | 58 | /** 59 | * Number of element in the heap 60 | */ 61 | int count; 62 | 63 | 64 | 65 | public: 66 | /** 67 | * Constructor. 68 | * 69 | * Params: 70 | * sz = heap size 71 | */ 72 | 73 | Heap(int sz) 74 | { 75 | length = sz; 76 | heap.reserve(length); 77 | count = 0; 78 | } 79 | 80 | /** 81 | * 82 | * Returns: heap size 83 | */ 84 | int size() 85 | { 86 | return count; 87 | } 88 | 89 | /** 90 | * Tests if the heap is empty 91 | * 92 | * Returns: true is heap empty, false otherwise 93 | */ 94 | bool empty() 95 | { 96 | return size()==0; 97 | } 98 | 99 | /** 100 | * Clears the heap. 101 | */ 102 | void clear() 103 | { 104 | heap.clear(); 105 | count = 0; 106 | } 107 | 108 | struct CompareT 109 | { 110 | bool operator()(const T& t_1, const T& t_2) const 111 | { 112 | return t_2 < t_1; 113 | } 114 | }; 115 | 116 | /** 117 | * Insert a new element in the heap. 118 | * 119 | * We select the next empty leaf node, and then keep moving any larger 120 | * parents down until the right location is found to store this element. 121 | * 122 | * Params: 123 | * value = the new element to be inserted in the heap 124 | */ 125 | void insert(T value) 126 | { 127 | /* If heap is full, then return without adding this element. */ 128 | if (count == length) { 129 | return; 130 | } 131 | 132 | heap.push_back(value); 133 | static CompareT compareT; 134 | std::push_heap(heap.begin(), heap.end(), compareT); 135 | ++count; 136 | } 137 | 138 | 139 | 140 | /** 141 | * Returns the node of minimum value from the heap (top of the heap). 142 | * 143 | * Params: 144 | * value = out parameter used to return the min element 145 | * Returns: false if heap empty 146 | */ 147 | bool popMin(T& value) 148 | { 149 | if (count == 0) { 150 | return false; 151 | } 152 | 153 | value = heap[0]; 154 | static CompareT compareT; 155 | std::pop_heap(heap.begin(), heap.end(), compareT); 156 | heap.pop_back(); 157 | --count; 158 | 159 | return true; /* Return old last node. */ 160 | } 161 | }; 162 | 163 | } 164 | 165 | #endif //OPENCV_FLANN_HEAP_H_ 166 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/linear_index.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_LINEAR_INDEX_H_ 32 | #define OPENCV_FLANN_LINEAR_INDEX_H_ 33 | 34 | #include "general.h" 35 | #include "nn_index.h" 36 | 37 | namespace cvflann 38 | { 39 | 40 | struct LinearIndexParams : public IndexParams 41 | { 42 | LinearIndexParams() 43 | { 44 | (* this)["algorithm"] = FLANN_INDEX_LINEAR; 45 | } 46 | }; 47 | 48 | template 49 | class LinearIndex : public NNIndex 50 | { 51 | public: 52 | 53 | typedef typename Distance::ElementType ElementType; 54 | typedef typename Distance::ResultType DistanceType; 55 | 56 | 57 | LinearIndex(const Matrix& inputData, const IndexParams& params = LinearIndexParams(), 58 | Distance d = Distance()) : 59 | dataset_(inputData), index_params_(params), distance_(d) 60 | { 61 | } 62 | 63 | LinearIndex(const LinearIndex&); 64 | LinearIndex& operator=(const LinearIndex&); 65 | 66 | flann_algorithm_t getType() const 67 | { 68 | return FLANN_INDEX_LINEAR; 69 | } 70 | 71 | 72 | size_t size() const 73 | { 74 | return dataset_.rows; 75 | } 76 | 77 | size_t veclen() const 78 | { 79 | return dataset_.cols; 80 | } 81 | 82 | 83 | int usedMemory() const 84 | { 85 | return 0; 86 | } 87 | 88 | void buildIndex() 89 | { 90 | /* nothing to do here for linear search */ 91 | } 92 | 93 | void saveIndex(FILE*) 94 | { 95 | /* nothing to do here for linear search */ 96 | } 97 | 98 | 99 | void loadIndex(FILE*) 100 | { 101 | /* nothing to do here for linear search */ 102 | 103 | index_params_["algorithm"] = getType(); 104 | } 105 | 106 | void findNeighbors(ResultSet& resultSet, const ElementType* vec, const SearchParams& /*searchParams*/) 107 | { 108 | ElementType* data = dataset_.data; 109 | for (size_t i = 0; i < dataset_.rows; ++i, data += dataset_.cols) { 110 | DistanceType dist = distance_(data, vec, dataset_.cols); 111 | resultSet.addPoint(dist, (int)i); 112 | } 113 | } 114 | 115 | IndexParams getParameters() const 116 | { 117 | return index_params_; 118 | } 119 | 120 | private: 121 | /** The dataset */ 122 | const Matrix dataset_; 123 | /** Index parameters */ 124 | IndexParams index_params_; 125 | /** Index distance */ 126 | Distance distance_; 127 | 128 | }; 129 | 130 | } 131 | 132 | #endif // OPENCV_FLANN_LINEAR_INDEX_H_ 133 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/logger.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_LOGGER_H 32 | #define OPENCV_FLANN_LOGGER_H 33 | 34 | #include 35 | #include 36 | 37 | #include "defines.h" 38 | 39 | 40 | namespace cvflann 41 | { 42 | 43 | class Logger 44 | { 45 | Logger() : stream(stdout), logLevel(FLANN_LOG_WARN) {} 46 | 47 | ~Logger() 48 | { 49 | if ((stream!=NULL)&&(stream!=stdout)) { 50 | fclose(stream); 51 | } 52 | } 53 | 54 | static Logger& instance() 55 | { 56 | static Logger logger; 57 | return logger; 58 | } 59 | 60 | void _setDestination(const char* name) 61 | { 62 | if (name==NULL) { 63 | stream = stdout; 64 | } 65 | else { 66 | stream = fopen(name,"w"); 67 | if (stream == NULL) { 68 | stream = stdout; 69 | } 70 | } 71 | } 72 | 73 | int _log(int level, const char* fmt, va_list arglist) 74 | { 75 | if (level > logLevel ) return -1; 76 | int ret = vfprintf(stream, fmt, arglist); 77 | return ret; 78 | } 79 | 80 | public: 81 | /** 82 | * Sets the logging level. All messages with lower priority will be ignored. 83 | * @param level Logging level 84 | */ 85 | static void setLevel(int level) { instance().logLevel = level; } 86 | 87 | /** 88 | * Sets the logging destination 89 | * @param name Filename or NULL for console 90 | */ 91 | static void setDestination(const char* name) { instance()._setDestination(name); } 92 | 93 | /** 94 | * Print log message 95 | * @param level Log level 96 | * @param fmt Message format 97 | * @return 98 | */ 99 | static int log(int level, const char* fmt, ...) 100 | { 101 | va_list arglist; 102 | va_start(arglist, fmt); 103 | int ret = instance()._log(level,fmt,arglist); 104 | va_end(arglist); 105 | return ret; 106 | } 107 | 108 | #define LOG_METHOD(NAME,LEVEL) \ 109 | static int NAME(const char* fmt, ...) \ 110 | { \ 111 | va_list ap; \ 112 | va_start(ap, fmt); \ 113 | int ret = instance()._log(LEVEL, fmt, ap); \ 114 | va_end(ap); \ 115 | return ret; \ 116 | } 117 | 118 | LOG_METHOD(fatal, FLANN_LOG_FATAL) 119 | LOG_METHOD(error, FLANN_LOG_ERROR) 120 | LOG_METHOD(warn, FLANN_LOG_WARN) 121 | LOG_METHOD(info, FLANN_LOG_INFO) 122 | 123 | private: 124 | FILE* stream; 125 | int logLevel; 126 | }; 127 | 128 | } 129 | 130 | #endif //OPENCV_FLANN_LOGGER_H 131 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/matrix.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_DATASET_H_ 32 | #define OPENCV_FLANN_DATASET_H_ 33 | 34 | #include 35 | 36 | #include "general.h" 37 | 38 | namespace cvflann 39 | { 40 | 41 | /** 42 | * Class that implements a simple rectangular matrix stored in a memory buffer and 43 | * provides convenient matrix-like access using the [] operators. 44 | */ 45 | template 46 | class Matrix 47 | { 48 | public: 49 | typedef T type; 50 | 51 | size_t rows; 52 | size_t cols; 53 | size_t stride; 54 | T* data; 55 | 56 | Matrix() : rows(0), cols(0), stride(0), data(NULL) 57 | { 58 | } 59 | 60 | Matrix(T* data_, size_t rows_, size_t cols_, size_t stride_ = 0) : 61 | rows(rows_), cols(cols_), stride(stride_), data(data_) 62 | { 63 | if (stride==0) stride = cols; 64 | } 65 | 66 | /** 67 | * Convenience function for deallocating the storage data. 68 | */ 69 | FLANN_DEPRECATED void free() 70 | { 71 | fprintf(stderr, "The cvflann::Matrix::free() method is deprecated " 72 | "and it does not do any memory deallocation any more. You are" 73 | "responsible for deallocating the matrix memory (by doing" 74 | "'delete[] matrix.data' for example)"); 75 | } 76 | 77 | /** 78 | * Operator that return a (pointer to a) row of the data. 79 | */ 80 | T* operator[](size_t index) const 81 | { 82 | return data+index*stride; 83 | } 84 | }; 85 | 86 | 87 | class UntypedMatrix 88 | { 89 | public: 90 | size_t rows; 91 | size_t cols; 92 | void* data; 93 | flann_datatype_t type; 94 | 95 | UntypedMatrix(void* data_, long rows_, long cols_) : 96 | rows(rows_), cols(cols_), data(data_) 97 | { 98 | } 99 | 100 | ~UntypedMatrix() 101 | { 102 | } 103 | 104 | 105 | template 106 | Matrix as() 107 | { 108 | return Matrix((T*)data, rows, cols); 109 | } 110 | }; 111 | 112 | 113 | 114 | } 115 | 116 | #endif //OPENCV_FLANN_DATASET_H_ 117 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/object_factory.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_OBJECT_FACTORY_H_ 32 | #define OPENCV_FLANN_OBJECT_FACTORY_H_ 33 | 34 | #include 35 | 36 | namespace cvflann 37 | { 38 | 39 | class CreatorNotFound 40 | { 41 | }; 42 | 43 | template 46 | class ObjectFactory 47 | { 48 | typedef ObjectFactory ThisClass; 49 | typedef std::map ObjectRegistry; 50 | 51 | // singleton class, private constructor 52 | ObjectFactory() {} 53 | 54 | public: 55 | 56 | bool subscribe(UniqueIdType id, ObjectCreator creator) 57 | { 58 | if (object_registry.find(id) != object_registry.end()) return false; 59 | 60 | object_registry[id] = creator; 61 | return true; 62 | } 63 | 64 | bool unregister(UniqueIdType id) 65 | { 66 | return object_registry.erase(id) == 1; 67 | } 68 | 69 | ObjectCreator create(UniqueIdType id) 70 | { 71 | typename ObjectRegistry::const_iterator iter = object_registry.find(id); 72 | 73 | if (iter == object_registry.end()) { 74 | throw CreatorNotFound(); 75 | } 76 | 77 | return iter->second; 78 | } 79 | 80 | static ThisClass& instance() 81 | { 82 | static ThisClass the_factory; 83 | return the_factory; 84 | } 85 | private: 86 | ObjectRegistry object_registry; 87 | }; 88 | 89 | } 90 | 91 | #endif /* OPENCV_FLANN_OBJECT_FACTORY_H_ */ 92 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/params.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_PARAMS_H_ 31 | #define OPENCV_FLANN_PARAMS_H_ 32 | 33 | #include "any.h" 34 | #include "general.h" 35 | #include 36 | #include 37 | 38 | 39 | namespace cvflann 40 | { 41 | 42 | typedef std::map IndexParams; 43 | 44 | struct SearchParams : public IndexParams 45 | { 46 | SearchParams(int checks = 32, float eps = 0, bool sorted = true ) 47 | { 48 | // how many leafs to visit when searching for neighbours (-1 for unlimited) 49 | (*this)["checks"] = checks; 50 | // search for eps-approximate neighbours (default: 0) 51 | (*this)["eps"] = eps; 52 | // only for radius search, require neighbours sorted by distance (default: true) 53 | (*this)["sorted"] = sorted; 54 | } 55 | }; 56 | 57 | 58 | template 59 | T get_param(const IndexParams& params, cv::String name, const T& default_value) 60 | { 61 | IndexParams::const_iterator it = params.find(name); 62 | if (it != params.end()) { 63 | return it->second.cast(); 64 | } 65 | else { 66 | return default_value; 67 | } 68 | } 69 | 70 | template 71 | T get_param(const IndexParams& params, cv::String name) 72 | { 73 | IndexParams::const_iterator it = params.find(name); 74 | if (it != params.end()) { 75 | return it->second.cast(); 76 | } 77 | else { 78 | throw FLANNException(cv::String("Missing parameter '")+name+cv::String("' in the parameters given")); 79 | } 80 | } 81 | 82 | inline void print_params(const IndexParams& params, std::ostream& stream) 83 | { 84 | IndexParams::const_iterator it; 85 | 86 | for(it=params.begin(); it!=params.end(); ++it) { 87 | stream << it->first << " : " << it->second << std::endl; 88 | } 89 | } 90 | 91 | inline void print_params(const IndexParams& params) 92 | { 93 | print_params(params, std::cout); 94 | } 95 | 96 | } 97 | 98 | 99 | #endif /* OPENCV_FLANN_PARAMS_H_ */ 100 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/random.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_RANDOM_H 32 | #define OPENCV_FLANN_RANDOM_H 33 | 34 | #include 35 | #include 36 | #include 37 | 38 | #include "general.h" 39 | 40 | namespace cvflann 41 | { 42 | 43 | /** 44 | * Seeds the random number generator 45 | * @param seed Random seed 46 | */ 47 | inline void seed_random(unsigned int seed) 48 | { 49 | srand(seed); 50 | } 51 | 52 | /* 53 | * Generates a random double value. 54 | */ 55 | /** 56 | * Generates a random double value. 57 | * @param high Upper limit 58 | * @param low Lower limit 59 | * @return Random double value 60 | */ 61 | inline double rand_double(double high = 1.0, double low = 0) 62 | { 63 | return low + ((high-low) * (std::rand() / (RAND_MAX + 1.0))); 64 | } 65 | 66 | /** 67 | * Generates a random integer value. 68 | * @param high Upper limit 69 | * @param low Lower limit 70 | * @return Random integer value 71 | */ 72 | inline int rand_int(int high = RAND_MAX, int low = 0) 73 | { 74 | return low + (int) ( double(high-low) * (std::rand() / (RAND_MAX + 1.0))); 75 | } 76 | 77 | /** 78 | * Random number generator that returns a distinct number from 79 | * the [0,n) interval each time. 80 | */ 81 | class UniqueRandom 82 | { 83 | std::vector vals_; 84 | int size_; 85 | int counter_; 86 | 87 | public: 88 | /** 89 | * Constructor. 90 | * @param n Size of the interval from which to generate 91 | * @return 92 | */ 93 | UniqueRandom(int n) 94 | { 95 | init(n); 96 | } 97 | 98 | /** 99 | * Initializes the number generator. 100 | * @param n the size of the interval from which to generate random numbers. 101 | */ 102 | void init(int n) 103 | { 104 | // create and initialize an array of size n 105 | vals_.resize(n); 106 | size_ = n; 107 | for (int i = 0; i < size_; ++i) vals_[i] = i; 108 | 109 | // shuffle the elements in the array 110 | std::random_shuffle(vals_.begin(), vals_.end()); 111 | 112 | counter_ = 0; 113 | } 114 | 115 | /** 116 | * Return a distinct random integer in greater or equal to 0 and less 117 | * than 'n' on each call. It should be called maximum 'n' times. 118 | * Returns: a random integer 119 | */ 120 | int next() 121 | { 122 | if (counter_ == size_) { 123 | return -1; 124 | } 125 | else { 126 | return vals_[counter_++]; 127 | } 128 | } 129 | }; 130 | 131 | } 132 | 133 | #endif //OPENCV_FLANN_RANDOM_H 134 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/flann/sampling.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_SAMPLING_H_ 31 | #define OPENCV_FLANN_SAMPLING_H_ 32 | 33 | #include "matrix.h" 34 | #include "random.h" 35 | 36 | namespace cvflann 37 | { 38 | 39 | template 40 | Matrix random_sample(Matrix& srcMatrix, long size, bool remove = false) 41 | { 42 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 43 | 44 | T* src,* dest; 45 | for (long i=0; i 63 | Matrix random_sample(const Matrix& srcMatrix, size_t size) 64 | { 65 | UniqueRandom rand((int)srcMatrix.rows); 66 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 67 | 68 | T* src,* dest; 69 | for (size_t i=0; i 35 | #include "opencv2/core.hpp" 36 | #include "opencv2/core/utility.hpp" 37 | 38 | namespace cvflann 39 | { 40 | 41 | /** 42 | * A start-stop timer class. 43 | * 44 | * Can be used to time portions of code. 45 | */ 46 | class StartStopTimer 47 | { 48 | int64 startTime; 49 | 50 | public: 51 | /** 52 | * Value of the timer. 53 | */ 54 | double value; 55 | 56 | 57 | /** 58 | * Constructor. 59 | */ 60 | StartStopTimer() 61 | { 62 | reset(); 63 | } 64 | 65 | /** 66 | * Starts the timer. 67 | */ 68 | void start() 69 | { 70 | startTime = cv::getTickCount(); 71 | } 72 | 73 | /** 74 | * Stops the timer and updates timer value. 75 | */ 76 | void stop() 77 | { 78 | int64 stopTime = cv::getTickCount(); 79 | value += ( (double)stopTime - startTime) / cv::getTickFrequency(); 80 | } 81 | 82 | /** 83 | * Resets the timer value to 0. 84 | */ 85 | void reset() 86 | { 87 | value = 0; 88 | } 89 | 90 | }; 91 | 92 | } 93 | 94 | #endif // FLANN_TIMER_H 95 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/hal.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Copyright (C) 2015, Itseez Inc., all rights reserved. 17 | // Third party copyrights are property of their respective owners. 18 | // 19 | // Redistribution and use in source and binary forms, with or without modification, 20 | // are permitted provided that the following conditions are met: 21 | // 22 | // * Redistribution's of source code must retain the above copyright notice, 23 | // this list of conditions and the following disclaimer. 24 | // 25 | // * Redistribution's in binary form must reproduce the above copyright notice, 26 | // this list of conditions and the following disclaimer in the documentation 27 | // and/or other materials provided with the distribution. 28 | // 29 | // * The name of the copyright holders may not be used to endorse or promote products 30 | // derived from this software without specific prior written permission. 31 | // 32 | // This software is provided by the copyright holders and contributors "as is" and 33 | // any express or implied warranties, including, but not limited to, the implied 34 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 35 | // In no event shall the Intel Corporation or contributors be liable for any direct, 36 | // indirect, incidental, special, exemplary, or consequential damages 37 | // (including, but not limited to, procurement of substitute goods or services; 38 | // loss of use, data, or profits; or business interruption) however caused 39 | // and on any theory of liability, whether in contract, strict liability, 40 | // or tort (including negligence or otherwise) arising in any way out of 41 | // the use of this software, even if advised of the possibility of such damage. 42 | // 43 | //M*/ 44 | 45 | #ifndef __OPENCV_HAL_HPP__ 46 | #define __OPENCV_HAL_HPP__ 47 | 48 | #include "opencv2/hal/defs.h" 49 | 50 | /** 51 | @defgroup hal Hardware Acceleration Layer 52 | */ 53 | 54 | namespace cv { namespace hal { 55 | 56 | namespace Error { 57 | 58 | enum 59 | { 60 | Ok = 0, 61 | Unknown = -1 62 | }; 63 | 64 | } 65 | 66 | int normHamming(const uchar* a, int n); 67 | int normHamming(const uchar* a, const uchar* b, int n); 68 | 69 | int normHamming(const uchar* a, int n, int cellSize); 70 | int normHamming(const uchar* a, const uchar* b, int n, int cellSize); 71 | 72 | //////////////////////////////// low-level functions //////////////////////////////// 73 | 74 | int LU(float* A, size_t astep, int m, float* b, size_t bstep, int n); 75 | int LU(double* A, size_t astep, int m, double* b, size_t bstep, int n); 76 | bool Cholesky(float* A, size_t astep, int m, float* b, size_t bstep, int n); 77 | bool Cholesky(double* A, size_t astep, int m, double* b, size_t bstep, int n); 78 | 79 | int normL1_(const uchar* a, const uchar* b, int n); 80 | float normL1_(const float* a, const float* b, int n); 81 | float normL2Sqr_(const float* a, const float* b, int n); 82 | 83 | void exp(const float* src, float* dst, int n); 84 | void exp(const double* src, double* dst, int n); 85 | void log(const float* src, float* dst, int n); 86 | void log(const double* src, double* dst, int n); 87 | 88 | void fastAtan2(const float* y, const float* x, float* dst, int n, bool angleInDegrees); 89 | void magnitude(const float* x, const float* y, float* dst, int n); 90 | void magnitude(const double* x, const double* y, double* dst, int n); 91 | void sqrt(const float* src, float* dst, int len); 92 | void sqrt(const double* src, double* dst, int len); 93 | void invSqrt(const float* src, float* dst, int len); 94 | void invSqrt(const double* src, double* dst, int len); 95 | 96 | }} //cv::hal 97 | 98 | #endif //__OPENCV_HAL_HPP__ 99 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/highgui/highgui.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/highgui.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/imgcodecs/imgcodecs.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/imgcodecs.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/imgcodecs/ios.h: -------------------------------------------------------------------------------- 1 | 2 | /*M/////////////////////////////////////////////////////////////////////////////////////// 3 | // 4 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 5 | // 6 | // By downloading, copying, installing or using the software you agree to this license. 7 | // If you do not agree to this license, do not download, install, 8 | // copy or use the software. 9 | // 10 | // 11 | // License Agreement 12 | // For Open Source Computer Vision Library 13 | // 14 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 15 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #import 45 | #import 46 | #import 47 | #import 48 | #include "opencv2/core/core.hpp" 49 | 50 | //! @addtogroup imgcodecs_ios 51 | //! @{ 52 | 53 | UIImage* MatToUIImage(const cv::Mat& image); 54 | void UIImageToMat(const UIImage* image, 55 | cv::Mat& m, bool alphaExist = false); 56 | 57 | //! @} 58 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/imgproc/imgproc.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/imgproc.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/ml/ml.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/ml.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/objdetect/objdetect.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/objdetect.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/opencv.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2010, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_ALL_HPP__ 44 | #define __OPENCV_ALL_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | #include "opencv2/imgproc.hpp" 48 | #include "opencv2/photo.hpp" 49 | #include "opencv2/video.hpp" 50 | #include "opencv2/features2d.hpp" 51 | #include "opencv2/objdetect.hpp" 52 | #include "opencv2/calib3d.hpp" 53 | #include "opencv2/imgcodecs.hpp" 54 | #include "opencv2/videoio.hpp" 55 | #include "opencv2/highgui.hpp" 56 | #include "opencv2/ml.hpp" 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/opencv_modules.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ** File generated automatically, do not modify ** 3 | * 4 | * This file defines the list of modules available in current build configuration 5 | * 6 | * 7 | */ 8 | 9 | #define HAVE_OPENCV_CALIB3D 10 | #define HAVE_OPENCV_CORE 11 | #define HAVE_OPENCV_FEATURES2D 12 | #define HAVE_OPENCV_FLANN 13 | #define HAVE_OPENCV_HAL 14 | #define HAVE_OPENCV_HIGHGUI 15 | #define HAVE_OPENCV_IMGCODECS 16 | #define HAVE_OPENCV_IMGPROC 17 | #define HAVE_OPENCV_ML 18 | #define HAVE_OPENCV_OBJDETECT 19 | #define HAVE_OPENCV_PHOTO 20 | #define HAVE_OPENCV_SHAPE 21 | #define HAVE_OPENCV_STITCHING 22 | #define HAVE_OPENCV_VIDEO 23 | #define HAVE_OPENCV_VIDEOIO 24 | #define HAVE_OPENCV_VIDEOSTAB 25 | #define HAVE_OPENCV_WORLD 26 | 27 | 28 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/photo/photo.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/photo.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/photo/photo_c.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2008-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_PHOTO_C_H__ 44 | #define __OPENCV_PHOTO_C_H__ 45 | 46 | #include "opencv2/core/core_c.h" 47 | 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | /** @addtogroup photo_c 53 | @{ 54 | */ 55 | 56 | /* Inpainting algorithms */ 57 | enum InpaintingModes 58 | { 59 | CV_INPAINT_NS =0, 60 | CV_INPAINT_TELEA =1 61 | }; 62 | 63 | 64 | /* Inpaints the selected region in the image */ 65 | CVAPI(void) cvInpaint( const CvArr* src, const CvArr* inpaint_mask, 66 | CvArr* dst, double inpaintRange, int flags ); 67 | 68 | /** @} */ 69 | 70 | #ifdef __cplusplus 71 | } //extern "C" 72 | #endif 73 | 74 | #endif //__OPENCV_PHOTO_C_H__ 75 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/shape.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_SHAPE_HPP__ 44 | #define __OPENCV_SHAPE_HPP__ 45 | 46 | #include "opencv2/shape/emdL1.hpp" 47 | #include "opencv2/shape/shape_transformer.hpp" 48 | #include "opencv2/shape/hist_cost.hpp" 49 | #include "opencv2/shape/shape_distance.hpp" 50 | 51 | /** 52 | @defgroup shape Shape Distance and Matching 53 | */ 54 | 55 | #endif 56 | 57 | /* End of file. */ 58 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/shape/emdL1.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_EMD_L1_HPP__ 44 | #define __OPENCV_EMD_L1_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | 48 | namespace cv 49 | { 50 | /****************************************************************************************\ 51 | * EMDL1 Function * 52 | \****************************************************************************************/ 53 | 54 | //! @addtogroup shape 55 | //! @{ 56 | 57 | /** @brief Computes the "minimal work" distance between two weighted point configurations base on the papers 58 | "EMD-L1: An efficient and Robust Algorithm for comparing histogram-based descriptors", by Haibin 59 | Ling and Kazunori Okuda; and "The Earth Mover's Distance is the Mallows Distance: Some Insights from 60 | Statistics", by Elizaveta Levina and Peter Bickel. 61 | 62 | @param signature1 First signature, a single column floating-point matrix. Each row is the value of 63 | the histogram in each bin. 64 | @param signature2 Second signature of the same format and size as signature1. 65 | */ 66 | CV_EXPORTS float EMDL1(InputArray signature1, InputArray signature2); 67 | 68 | //! @} 69 | 70 | }//namespace cv 71 | 72 | #endif 73 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/shape/hist_cost.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifndef __OPENCV_HIST_COST_HPP__ 45 | #define __OPENCV_HIST_COST_HPP__ 46 | 47 | #include "opencv2/imgproc.hpp" 48 | 49 | namespace cv 50 | { 51 | 52 | //! @addtogroup shape 53 | //! @{ 54 | 55 | /** @brief Abstract base class for histogram cost algorithms. 56 | */ 57 | class CV_EXPORTS_W HistogramCostExtractor : public Algorithm 58 | { 59 | public: 60 | CV_WRAP virtual void buildCostMatrix(InputArray descriptors1, InputArray descriptors2, OutputArray costMatrix) = 0; 61 | 62 | CV_WRAP virtual void setNDummies(int nDummies) = 0; 63 | CV_WRAP virtual int getNDummies() const = 0; 64 | 65 | CV_WRAP virtual void setDefaultCost(float defaultCost) = 0; 66 | CV_WRAP virtual float getDefaultCost() const = 0; 67 | }; 68 | 69 | /** @brief A norm based cost extraction. : 70 | */ 71 | class CV_EXPORTS_W NormHistogramCostExtractor : public HistogramCostExtractor 72 | { 73 | public: 74 | CV_WRAP virtual void setNormFlag(int flag) = 0; 75 | CV_WRAP virtual int getNormFlag() const = 0; 76 | }; 77 | 78 | CV_EXPORTS_W Ptr 79 | createNormHistogramCostExtractor(int flag=DIST_L2, int nDummies=25, float defaultCost=0.2f); 80 | 81 | /** @brief An EMD based cost extraction. : 82 | */ 83 | class CV_EXPORTS_W EMDHistogramCostExtractor : public HistogramCostExtractor 84 | { 85 | public: 86 | CV_WRAP virtual void setNormFlag(int flag) = 0; 87 | CV_WRAP virtual int getNormFlag() const = 0; 88 | }; 89 | 90 | CV_EXPORTS_W Ptr 91 | createEMDHistogramCostExtractor(int flag=DIST_L2, int nDummies=25, float defaultCost=0.2f); 92 | 93 | /** @brief An Chi based cost extraction. : 94 | */ 95 | class CV_EXPORTS_W ChiHistogramCostExtractor : public HistogramCostExtractor 96 | {}; 97 | 98 | CV_EXPORTS_W Ptr createChiHistogramCostExtractor(int nDummies=25, float defaultCost=0.2f); 99 | 100 | /** @brief An EMD-L1 based cost extraction. : 101 | */ 102 | class CV_EXPORTS_W EMDL1HistogramCostExtractor : public HistogramCostExtractor 103 | {}; 104 | 105 | CV_EXPORTS_W Ptr 106 | createEMDL1HistogramCostExtractor(int nDummies=25, float defaultCost=0.2f); 107 | 108 | //! @} 109 | 110 | } // cv 111 | #endif 112 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/shape/shape.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/shape.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/stitching/detail/autocalib.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_STITCHING_AUTOCALIB_HPP__ 44 | #define __OPENCV_STITCHING_AUTOCALIB_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | #include "matchers.hpp" 48 | 49 | namespace cv { 50 | namespace detail { 51 | 52 | //! @addtogroup stitching_autocalib 53 | //! @{ 54 | 55 | /** @brief Tries to estimate focal lengths from the given homography under the assumption that the camera 56 | undergoes rotations around its centre only. 57 | 58 | @param H Homography. 59 | @param f0 Estimated focal length along X axis. 60 | @param f1 Estimated focal length along Y axis. 61 | @param f0_ok True, if f0 was estimated successfully, false otherwise. 62 | @param f1_ok True, if f1 was estimated successfully, false otherwise. 63 | 64 | See "Construction of Panoramic Image Mosaics with Global and Local Alignment" 65 | by Heung-Yeung Shum and Richard Szeliski. 66 | */ 67 | void CV_EXPORTS focalsFromHomography(const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok); 68 | 69 | /** @brief Estimates focal lengths for each given camera. 70 | 71 | @param features Features of images. 72 | @param pairwise_matches Matches between all image pairs. 73 | @param focals Estimated focal lengths for each camera. 74 | */ 75 | void CV_EXPORTS estimateFocal(const std::vector &features, 76 | const std::vector &pairwise_matches, 77 | std::vector &focals); 78 | 79 | bool CV_EXPORTS calibrateRotatingCamera(const std::vector &Hs, Mat &K); 80 | 81 | //! @} stitching_autocalib 82 | 83 | } // namespace detail 84 | } // namespace cv 85 | 86 | #endif // __OPENCV_STITCHING_AUTOCALIB_HPP__ 87 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/stitching/detail/camera.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_STITCHING_CAMERA_HPP__ 44 | #define __OPENCV_STITCHING_CAMERA_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | 48 | namespace cv { 49 | namespace detail { 50 | 51 | //! @addtogroup stitching 52 | //! @{ 53 | 54 | /** @brief Describes camera parameters. 55 | 56 | @note Translation is assumed to be zero during the whole stitching pipeline. : 57 | */ 58 | struct CV_EXPORTS CameraParams 59 | { 60 | CameraParams(); 61 | CameraParams(const CameraParams& other); 62 | const CameraParams& operator =(const CameraParams& other); 63 | Mat K() const; 64 | 65 | double focal; // Focal length 66 | double aspect; // Aspect ratio 67 | double ppx; // Principal point X 68 | double ppy; // Principal point Y 69 | Mat R; // Rotation 70 | Mat t; // Translation 71 | }; 72 | 73 | //! @} 74 | 75 | } // namespace detail 76 | } // namespace cv 77 | 78 | #endif // #ifndef __OPENCV_STITCHING_CAMERA_HPP__ 79 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/stitching/detail/timelapsers.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | 44 | #ifndef __OPENCV_STITCHING_TIMELAPSERS_HPP__ 45 | #define __OPENCV_STITCHING_TIMELAPSERS_HPP__ 46 | 47 | #include "opencv2/core.hpp" 48 | 49 | namespace cv { 50 | namespace detail { 51 | 52 | //! @addtogroup stitching 53 | //! @{ 54 | 55 | // Base Timelapser class, takes a sequence of images, applies appropriate shift, stores result in dst_. 56 | 57 | class CV_EXPORTS Timelapser 58 | { 59 | public: 60 | 61 | enum {AS_IS, CROP}; 62 | 63 | virtual ~Timelapser() {} 64 | 65 | static Ptr createDefault(int type); 66 | 67 | virtual void initialize(const std::vector &corners, const std::vector &sizes); 68 | virtual void process(InputArray img, InputArray mask, Point tl); 69 | virtual const UMat& getDst() {return dst_;} 70 | 71 | protected: 72 | 73 | virtual bool test_point(Point pt); 74 | 75 | UMat dst_; 76 | Rect dst_roi_; 77 | }; 78 | 79 | 80 | class CV_EXPORTS TimelapserCrop : public Timelapser 81 | { 82 | public: 83 | virtual void initialize(const std::vector &corners, const std::vector &sizes); 84 | }; 85 | 86 | //! @} 87 | 88 | } // namespace detail 89 | } // namespace cv 90 | 91 | #endif // __OPENCV_STITCHING_TIMELAPSERS_HPP__ 92 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/stitching/detail/util_inl.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_STITCHING_UTIL_INL_HPP__ 44 | #define __OPENCV_STITCHING_UTIL_INL_HPP__ 45 | 46 | #include 47 | #include "opencv2/core.hpp" 48 | #include "util.hpp" // Make your IDE see declarations 49 | 50 | //! @cond IGNORED 51 | 52 | namespace cv { 53 | namespace detail { 54 | 55 | template 56 | B Graph::forEach(B body) const 57 | { 58 | for (int i = 0; i < numVertices(); ++i) 59 | { 60 | std::list::const_iterator edge = edges_[i].begin(); 61 | for (; edge != edges_[i].end(); ++edge) 62 | body(*edge); 63 | } 64 | return body; 65 | } 66 | 67 | 68 | template 69 | B Graph::walkBreadthFirst(int from, B body) const 70 | { 71 | std::vector was(numVertices(), false); 72 | std::queue vertices; 73 | 74 | was[from] = true; 75 | vertices.push(from); 76 | 77 | while (!vertices.empty()) 78 | { 79 | int vertex = vertices.front(); 80 | vertices.pop(); 81 | 82 | std::list::const_iterator edge = edges_[vertex].begin(); 83 | for (; edge != edges_[vertex].end(); ++edge) 84 | { 85 | if (!was[edge->to]) 86 | { 87 | body(*edge); 88 | was[edge->to] = true; 89 | vertices.push(edge->to); 90 | } 91 | } 92 | } 93 | 94 | return body; 95 | } 96 | 97 | 98 | ////////////////////////////////////////////////////////////////////////////// 99 | // Some auxiliary math functions 100 | 101 | static inline 102 | float normL2(const Point3f& a) 103 | { 104 | return a.x * a.x + a.y * a.y + a.z * a.z; 105 | } 106 | 107 | 108 | static inline 109 | float normL2(const Point3f& a, const Point3f& b) 110 | { 111 | return normL2(a - b); 112 | } 113 | 114 | 115 | static inline 116 | double normL2sq(const Mat &r) 117 | { 118 | return r.dot(r); 119 | } 120 | 121 | 122 | static inline int sqr(int x) { return x * x; } 123 | static inline float sqr(float x) { return x * x; } 124 | static inline double sqr(double x) { return x * x; } 125 | 126 | } // namespace detail 127 | } // namespace cv 128 | 129 | //! @endcond 130 | 131 | #endif // __OPENCV_STITCHING_UTIL_INL_HPP__ 132 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifndef __OPENCV_VIDEO_HPP__ 45 | #define __OPENCV_VIDEO_HPP__ 46 | 47 | /** 48 | @defgroup video Video Analysis 49 | @{ 50 | @defgroup video_motion Motion Analysis 51 | @defgroup video_track Object Tracking 52 | @defgroup video_c C API 53 | @} 54 | */ 55 | 56 | #include "opencv2/video/tracking.hpp" 57 | #include "opencv2/video/background_segm.hpp" 58 | 59 | #ifndef DISABLE_OPENCV_24_COMPATIBILITY 60 | #include "opencv2/video/tracking_c.h" 61 | #endif 62 | 63 | #endif //__OPENCV_VIDEO_HPP__ 64 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/video/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/video.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videoio/videoio.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/videoio.hpp" 49 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_HPP__ 44 | #define __OPENCV_VIDEOSTAB_HPP__ 45 | 46 | /** 47 | @defgroup videostab Video Stabilization 48 | 49 | The video stabilization module contains a set of functions and classes that can be used to solve the 50 | problem of video stabilization. There are a few methods implemented, most of them are descibed in 51 | the papers @cite OF06 and @cite G11 . However, there are some extensions and deviations from the orginal 52 | paper methods. 53 | 54 | ### References 55 | 56 | 1. "Full-Frame Video Stabilization with Motion Inpainting" 57 | Yasuyuki Matsushita, Eyal Ofek, Weina Ge, Xiaoou Tang, Senior Member, and Heung-Yeung Shum 58 | 2. "Auto-Directed Video Stabilization with Robust L1 Optimal Camera Paths" 59 | Matthias Grundmann, Vivek Kwatra, Irfan Essa 60 | 61 | @{ 62 | @defgroup videostab_motion Global Motion Estimation 63 | 64 | The video stabilization module contains a set of functions and classes for global motion estimation 65 | between point clouds or between images. In the last case features are extracted and matched 66 | internally. For the sake of convenience the motion estimation functions are wrapped into classes. 67 | Both the functions and the classes are available. 68 | 69 | @defgroup videostab_marching Fast Marching Method 70 | 71 | The Fast Marching Method @cite Telea04 is used in of the video stabilization routines to do motion and 72 | color inpainting. The method is implemented is a flexible way and it's made public for other users. 73 | 74 | @} 75 | 76 | */ 77 | 78 | #include "opencv2/videostab/stabilizer.hpp" 79 | #include "opencv2/videostab/ring_buffer.hpp" 80 | 81 | #endif 82 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/deblurring.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_DEBLURRING_HPP__ 44 | #define __OPENCV_VIDEOSTAB_DEBLURRING_HPP__ 45 | 46 | #include 47 | #include "opencv2/core.hpp" 48 | 49 | namespace cv 50 | { 51 | namespace videostab 52 | { 53 | 54 | //! @addtogroup videostab 55 | //! @{ 56 | 57 | CV_EXPORTS float calcBlurriness(const Mat &frame); 58 | 59 | class CV_EXPORTS DeblurerBase 60 | { 61 | public: 62 | DeblurerBase() : radius_(0), frames_(0), motions_(0), blurrinessRates_(0) {} 63 | 64 | virtual ~DeblurerBase() {} 65 | 66 | virtual void setRadius(int val) { radius_ = val; } 67 | virtual int radius() const { return radius_; } 68 | 69 | virtual void deblur(int idx, Mat &frame) = 0; 70 | 71 | 72 | // data from stabilizer 73 | 74 | virtual void setFrames(const std::vector &val) { frames_ = &val; } 75 | virtual const std::vector& frames() const { return *frames_; } 76 | 77 | virtual void setMotions(const std::vector &val) { motions_ = &val; } 78 | virtual const std::vector& motions() const { return *motions_; } 79 | 80 | virtual void setBlurrinessRates(const std::vector &val) { blurrinessRates_ = &val; } 81 | virtual const std::vector& blurrinessRates() const { return *blurrinessRates_; } 82 | 83 | protected: 84 | int radius_; 85 | const std::vector *frames_; 86 | const std::vector *motions_; 87 | const std::vector *blurrinessRates_; 88 | }; 89 | 90 | class CV_EXPORTS NullDeblurer : public DeblurerBase 91 | { 92 | public: 93 | virtual void deblur(int /*idx*/, Mat &/*frame*/) {} 94 | }; 95 | 96 | class CV_EXPORTS WeightingDeblurer : public DeblurerBase 97 | { 98 | public: 99 | WeightingDeblurer(); 100 | 101 | void setSensitivity(float val) { sensitivity_ = val; } 102 | float sensitivity() const { return sensitivity_; } 103 | 104 | virtual void deblur(int idx, Mat &frame); 105 | 106 | private: 107 | float sensitivity_; 108 | Mat_ bSum_, gSum_, rSum_, wSum_; 109 | }; 110 | 111 | //! @} 112 | 113 | } // namespace videostab 114 | } // namespace cv 115 | 116 | #endif 117 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/fast_marching.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_FAST_MARCHING_HPP__ 44 | #define __OPENCV_VIDEOSTAB_FAST_MARCHING_HPP__ 45 | 46 | #include 47 | #include 48 | #include 49 | #include "opencv2/core.hpp" 50 | 51 | namespace cv 52 | { 53 | namespace videostab 54 | { 55 | 56 | //! @addtogroup videostab_marching 57 | //! @{ 58 | 59 | /** @brief Describes the Fast Marching Method implementation. 60 | 61 | See http://iwi.eldoc.ub.rug.nl/FILES/root/2004/JGraphToolsTelea/2004JGraphToolsTelea.pdf 62 | */ 63 | class CV_EXPORTS FastMarchingMethod 64 | { 65 | public: 66 | FastMarchingMethod() : inf_(1e6f) {} 67 | 68 | /** @brief Template method that runs the Fast Marching Method. 69 | 70 | @param mask Image mask. 0 value indicates that the pixel value must be inpainted, 255 indicates 71 | that the pixel value is known, other values aren't acceptable. 72 | @param inpaint Inpainting functor that overloads void operator ()(int x, int y). 73 | @return Inpainting functor. 74 | */ 75 | template 76 | Inpaint run(const Mat &mask, Inpaint inpaint); 77 | 78 | /** 79 | @return Distance map that's created during working of the method. 80 | */ 81 | Mat distanceMap() const { return dist_; } 82 | 83 | private: 84 | enum { INSIDE = 0, BAND = 1, KNOWN = 255 }; 85 | 86 | struct DXY 87 | { 88 | float dist; 89 | int x, y; 90 | 91 | DXY() : dist(0), x(0), y(0) {} 92 | DXY(float _dist, int _x, int _y) : dist(_dist), x(_x), y(_y) {} 93 | bool operator <(const DXY &dxy) const { return dist < dxy.dist; } 94 | }; 95 | 96 | float solve(int x1, int y1, int x2, int y2) const; 97 | int& indexOf(const DXY &dxy) { return index_(dxy.y, dxy.x); } 98 | 99 | void heapUp(int idx); 100 | void heapDown(int idx); 101 | void heapAdd(const DXY &dxy); 102 | void heapRemoveMin(); 103 | 104 | float inf_; 105 | 106 | cv::Mat_ flag_; // flag map 107 | cv::Mat_ dist_; // distance map 108 | 109 | cv::Mat_ index_; // index of point in the narrow band 110 | std::vector narrowBand_; // narrow band heap 111 | int size_; // narrow band size 112 | }; 113 | 114 | //! @} 115 | 116 | } // namespace videostab 117 | } // namespace cv 118 | 119 | #include "fast_marching_inl.hpp" 120 | 121 | #endif 122 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/frame_source.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__ 44 | #define __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__ 45 | 46 | #include 47 | #include "opencv2/core.hpp" 48 | 49 | namespace cv 50 | { 51 | namespace videostab 52 | { 53 | 54 | //! @addtogroup videostab 55 | //! @{ 56 | 57 | class CV_EXPORTS IFrameSource 58 | { 59 | public: 60 | virtual ~IFrameSource() {} 61 | virtual void reset() = 0; 62 | virtual Mat nextFrame() = 0; 63 | }; 64 | 65 | class CV_EXPORTS NullFrameSource : public IFrameSource 66 | { 67 | public: 68 | virtual void reset() {} 69 | virtual Mat nextFrame() { return Mat(); } 70 | }; 71 | 72 | class CV_EXPORTS VideoFileSource : public IFrameSource 73 | { 74 | public: 75 | VideoFileSource(const String &path, bool volatileFrame = false); 76 | 77 | virtual void reset(); 78 | virtual Mat nextFrame(); 79 | 80 | int width(); 81 | int height(); 82 | int count(); 83 | double fps(); 84 | 85 | private: 86 | Ptr impl; 87 | }; 88 | 89 | //! @} 90 | 91 | } // namespace videostab 92 | } // namespace cv 93 | 94 | #endif 95 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/log.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_LOG_HPP__ 44 | #define __OPENCV_VIDEOSTAB_LOG_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | 48 | namespace cv 49 | { 50 | namespace videostab 51 | { 52 | 53 | //! @addtogroup videostab 54 | //! @{ 55 | 56 | class CV_EXPORTS ILog 57 | { 58 | public: 59 | virtual ~ILog() {} 60 | virtual void print(const char *format, ...) = 0; 61 | }; 62 | 63 | class CV_EXPORTS NullLog : public ILog 64 | { 65 | public: 66 | virtual void print(const char * /*format*/, ...) {} 67 | }; 68 | 69 | class CV_EXPORTS LogToStdout : public ILog 70 | { 71 | public: 72 | virtual void print(const char *format, ...); 73 | }; 74 | 75 | //! @} 76 | 77 | } // namespace videostab 78 | } // namespace cv 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/motion_core.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_MOTION_CORE_HPP__ 44 | #define __OPENCV_VIDEOSTAB_MOTION_CORE_HPP__ 45 | 46 | #include 47 | #include "opencv2/core.hpp" 48 | 49 | namespace cv 50 | { 51 | namespace videostab 52 | { 53 | 54 | //! @addtogroup videostab_motion 55 | //! @{ 56 | 57 | /** @brief Describes motion model between two point clouds. 58 | */ 59 | enum MotionModel 60 | { 61 | MM_TRANSLATION = 0, 62 | MM_TRANSLATION_AND_SCALE = 1, 63 | MM_ROTATION = 2, 64 | MM_RIGID = 3, 65 | MM_SIMILARITY = 4, 66 | MM_AFFINE = 5, 67 | MM_HOMOGRAPHY = 6, 68 | MM_UNKNOWN = 7 69 | }; 70 | 71 | /** @brief Describes RANSAC method parameters. 72 | */ 73 | struct CV_EXPORTS RansacParams 74 | { 75 | int size; //!< subset size 76 | float thresh; //!< max error to classify as inlier 77 | float eps; //!< max outliers ratio 78 | float prob; //!< probability of success 79 | 80 | RansacParams() : size(0), thresh(0), eps(0), prob(0) {} 81 | /** @brief Constructor 82 | @param size Subset size. 83 | @param thresh Maximum re-projection error value to classify as inlier. 84 | @param eps Maximum ratio of incorrect correspondences. 85 | @param prob Required success probability. 86 | */ 87 | RansacParams(int size, float thresh, float eps, float prob); 88 | 89 | /** 90 | @return Number of iterations that'll be performed by RANSAC method. 91 | */ 92 | int niters() const 93 | { 94 | return static_cast( 95 | std::ceil(std::log(1 - prob) / std::log(1 - std::pow(1 - eps, size)))); 96 | } 97 | 98 | /** 99 | @param model Motion model. See cv::videostab::MotionModel. 100 | @return Default RANSAC method parameters for the given motion model. 101 | */ 102 | static RansacParams default2dMotion(MotionModel model) 103 | { 104 | CV_Assert(model < MM_UNKNOWN); 105 | if (model == MM_TRANSLATION) 106 | return RansacParams(1, 0.5f, 0.5f, 0.99f); 107 | if (model == MM_TRANSLATION_AND_SCALE) 108 | return RansacParams(2, 0.5f, 0.5f, 0.99f); 109 | if (model == MM_ROTATION) 110 | return RansacParams(1, 0.5f, 0.5f, 0.99f); 111 | if (model == MM_RIGID) 112 | return RansacParams(2, 0.5f, 0.5f, 0.99f); 113 | if (model == MM_SIMILARITY) 114 | return RansacParams(2, 0.5f, 0.5f, 0.99f); 115 | if (model == MM_AFFINE) 116 | return RansacParams(3, 0.5f, 0.5f, 0.99f); 117 | return RansacParams(4, 0.5f, 0.5f, 0.99f); 118 | } 119 | }; 120 | 121 | inline RansacParams::RansacParams(int _size, float _thresh, float _eps, float _prob) 122 | : size(_size), thresh(_thresh), eps(_eps), prob(_prob) {} 123 | 124 | //! @} 125 | 126 | } // namespace videostab 127 | } // namespace cv 128 | 129 | #endif 130 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/outlier_rejection.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_OUTLIER_REJECTION_HPP__ 44 | #define __OPENCV_VIDEOSTAB_OUTLIER_REJECTION_HPP__ 45 | 46 | #include 47 | #include "opencv2/core.hpp" 48 | #include "opencv2/videostab/motion_core.hpp" 49 | 50 | namespace cv 51 | { 52 | namespace videostab 53 | { 54 | 55 | //! @addtogroup videostab 56 | //! @{ 57 | 58 | class CV_EXPORTS IOutlierRejector 59 | { 60 | public: 61 | virtual ~IOutlierRejector() {} 62 | 63 | virtual void process( 64 | Size frameSize, InputArray points0, InputArray points1, OutputArray mask) = 0; 65 | }; 66 | 67 | class CV_EXPORTS NullOutlierRejector : public IOutlierRejector 68 | { 69 | public: 70 | virtual void process( 71 | Size frameSize, InputArray points0, InputArray points1, OutputArray mask); 72 | }; 73 | 74 | class CV_EXPORTS TranslationBasedLocalOutlierRejector : public IOutlierRejector 75 | { 76 | public: 77 | TranslationBasedLocalOutlierRejector(); 78 | 79 | void setCellSize(Size val) { cellSize_ = val; } 80 | Size cellSize() const { return cellSize_; } 81 | 82 | void setRansacParams(RansacParams val) { ransacParams_ = val; } 83 | RansacParams ransacParams() const { return ransacParams_; } 84 | 85 | virtual void process( 86 | Size frameSize, InputArray points0, InputArray points1, OutputArray mask); 87 | 88 | private: 89 | Size cellSize_; 90 | RansacParams ransacParams_; 91 | 92 | typedef std::vector Cell; 93 | std::vector grid_; 94 | }; 95 | 96 | //! @} 97 | 98 | } // namespace videostab 99 | } // namespace cv 100 | 101 | #endif 102 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/videostab/ring_buffer.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_RING_BUFFER_HPP__ 44 | #define __OPENCV_VIDEOSTAB_RING_BUFFER_HPP__ 45 | 46 | #include 47 | #include "opencv2/imgproc.hpp" 48 | 49 | namespace cv 50 | { 51 | namespace videostab 52 | { 53 | 54 | //! @addtogroup videostab 55 | //! @{ 56 | 57 | template inline T& at(int idx, std::vector &items) 58 | { 59 | return items[cv::borderInterpolate(idx, static_cast(items.size()), cv::BORDER_WRAP)]; 60 | } 61 | 62 | template inline const T& at(int idx, const std::vector &items) 63 | { 64 | return items[cv::borderInterpolate(idx, static_cast(items.size()), cv::BORDER_WRAP)]; 65 | } 66 | 67 | //! @} 68 | 69 | } // namespace videostab 70 | } // namespace cv 71 | 72 | #endif 73 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Headers/world.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2010, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_WORLD_HPP__ 44 | #define __OPENCV_WORLD_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | 48 | #ifdef __cplusplus 49 | namespace cv 50 | { 51 | 52 | CV_EXPORTS_W bool initAll(); 53 | 54 | } 55 | 56 | #endif 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleName 6 | OpenCV 7 | CFBundleIdentifier 8 | org.opencv 9 | CFBundleVersion 10 | 3.0.0 11 | CFBundleShortVersionString 12 | 3.0.0 13 | CFBundleSignature 14 | ???? 15 | CFBundlePackageType 16 | FMWK 17 | 18 | 19 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/opencv2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/A/opencv2 -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFull/opencv2.framework/opencv2: -------------------------------------------------------------------------------- 1 | Versions/Current/opencv2 -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFullTests/FaceAR_SDK_IOS_OpenFace_RunFullTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // FaceAR_SDK_IOS_OpenFace_RunFullTests.m 3 | // FaceAR_SDK_IOS_OpenFace_RunFullTests 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FaceAR_SDK_IOS_OpenFace_RunFullTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation FaceAR_SDK_IOS_OpenFace_RunFullTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFullTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFullUITests/FaceAR_SDK_IOS_OpenFace_RunFullUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // FaceAR_SDK_IOS_OpenFace_RunFullUITests.m 3 | // FaceAR_SDK_IOS_OpenFace_RunFullUITests 4 | // 5 | // Created by Keegan Ren on 7/5/16. 6 | // Copyright © 2016 Keegan Ren. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FaceAR_SDK_IOS_OpenFace_RunFullUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation FaceAR_SDK_IOS_OpenFace_RunFullUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /FaceAR_SDK_IOS_OpenFace_RunFullUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 毕业季了,最近比较忙,先放在这里,后面有机会在更新,抱歉了各位宝宝。 2 | 3 | #OpenFaceIOS 4 | 5 | OpenFace is get from https://github.com/TadasBaltrusaitis/OpenFace, a state-of-the art open source tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation. And I create an ios project. Delete Dlib,TBB, Only use OpenCV . And add Face Swap function, It can swap face to face or swap model to face. 6 | 7 | More details about the project - http://www.cl.cam.ac.uk/research/rainbow/projects/openface/ 8 | Code - https://github.com/TadasBaltrusaitis/OpenFace 9 | 10 | ## Functionality 11 | 12 | The system is capable of performing a number of facial analysis tasks: 13 | 14 | - Facial Landmark Detection 15 | 16 | ![Sample facial landmark detection image](https://github.com/FaceAR/OpenFaceIOS/blob/master/imgs/multi_face_img.png) 17 | 18 | - Facial Landmark and head pose tracking (links to YouTube videos) 19 | 20 | Multiple Face Tracking 21 | Multiple Face Tracking 22 | 23 | - Gaze tracking (image of it in action) 24 | 25 | 26 | 27 | - Facial Feature Extraction (aligned faces and HOG features) 28 | 29 | ![Sample aligned face and HOG image](https://github.com/FaceAR/OpenFaceIOS/blob/master/imgs/appearance.png) 30 | 31 | - IOS Facial Landmark Detection & head pose tracking & Gaze tracking 32 | 33 | 34 | 35 | - Face Swap 36 | 37 | User:Dooonut https://github.com/Dooonut 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /imgs/KeeganRen1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen1.png -------------------------------------------------------------------------------- /imgs/KeeganRen2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen2.png -------------------------------------------------------------------------------- /imgs/KeeganRen3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen3.png -------------------------------------------------------------------------------- /imgs/KeeganRen4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen4.png -------------------------------------------------------------------------------- /imgs/KeeganRen5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen5.png -------------------------------------------------------------------------------- /imgs/KeeganRen6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen6.png -------------------------------------------------------------------------------- /imgs/KeeganRen7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/KeeganRen7.png -------------------------------------------------------------------------------- /imgs/appearance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/appearance.png -------------------------------------------------------------------------------- /imgs/au_sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/au_sample.png -------------------------------------------------------------------------------- /imgs/gaze_ex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/gaze_ex.png -------------------------------------------------------------------------------- /imgs/multi_face_img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaceAR/OpenFaceIOS/6f75a627bd5679d2f4e3da38c9db78fa60147407/imgs/multi_face_img.png --------------------------------------------------------------------------------