【问题标题】:Embed the YouCamMakeup camera functionality嵌入 YouCamMakeup 相机功能
【发布时间】:2016-06-26 12:54:18
【问题描述】:

我想嵌入YouCamMakeup 相机功能。在这个应用程序中,当我点击相机时,它会实时检测我的脸、眉毛和嘴唇,并提供在实时相机上更改眉毛和嘴唇颜色的选项。我想在我的应用程序中嵌入这个功能,我是如何实现这个功能的,或者告诉我任何FaceSDK 为我提供了这个功能。

这是这个应用程序实时改造的屏幕截图。

【问题讨论】:

    标签: android ios image-processing android-camera


    【解决方案1】:

    msqrd 用于面部trackingdetection。它非常可靠,因为 Facebook 购买它意味着其中有一些有趣的东西。 click here去链接

    【讨论】:

      【解决方案2】:

      你在苹果开发网站上拥有你所需要的一切:https://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_detect_faces/ci_detect_faces.html

          CIContext *context = [CIContext contextWithOptions:nil];                    // 1
          NSDictionary *opts = @{ CIDetectorAccuracy : CIDetectorAccuracyHigh };      // 2
          CIDetector *detector = [CIDetector detectorOfType:CIDetectorTypeFace
                                                    context:context
                                                    options:opts];                    // 3
      
          opts = @{ CIDetectorImageOrientation :
                    [[myImage properties] valueForKey:kCGImagePropertyOrientation] }; // 4
          NSArray *features = [detector featuresInImage:myImage options:opts];        
      
      for (CIFaceFeature *f in features)
      {
          NSLog(NSStringFromRect(f.bounds));
      
          if (f.hasLeftEyePosition)
              NSLog("Left eye %g %g", f.leftEyePosition.x. f.leftEyePosition.y);
      
          if (f.hasRightEyePosition)
              NSLog("Right eye %g %g", f.rightEyePosition.x. f.rightEyePosition.y);
      
          if (f.hasmouthPosition)
              NSLog("Mouth %g %g", f.mouthPosition.x. f.mouthPosition.y);
      }
      

      你可以试试这个框架:https://github.com/kairosinc/Kairos-SDK-iOS

      对于 Android,你可以试试这个:http://developer.android.com/reference/android/media/FaceDetector.Face.html(也是官方的 dev android 网站..)

      您必须进行研究,我们不会在您需要时为您提供所需的一切。

      您的问题已标记为 Android 和 iOS,下次请更具体

      【讨论】:

      • 是的,你说的完全正确。而且我已经检查了这些链接,这些链接并没有完全满足我的需求。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多