V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
henryshen233
V2EX  ›  iDev

Mac 有没有像 iOS 的 squarecam 那样识别人脸的项目,只需要 Mac 摄像头抓到了人脸就播放一个动画

  •  
  •   henryshen233 · Sep 28, 2017 · 3968 views
    This topic created in 3132 days ago, the information mentioned may be changed or developed.
    请问各位有没有什么好的办法,谢谢!
    6 replies    2017-10-18 04:14:38 +08:00
    henryshen233
        1
    henryshen233  
    OP
       Sep 28, 2017
    我是搜到一个叫做 opencv 的东西,但是我不懂 Python,只懂一点 Objective-C 和 Swift,所以也弄不好
    henryshen233
        2
    henryshen233  
    OP
       Sep 28, 2017
    谢谢各位了
    abcyuxue123
        3
    abcyuxue123  
       Sep 29, 2017   ❤️ 1
    人脸识别部分:

    swift & ObjC

    虽然没有做过 macOS 的,但是我觉得应该跟 iOS 类似,可以用 AVFoundation,CaptureSession 的 metadataObject 类型制定为 AVMetadataObjectTypeFace

    网上大部分资料是 iOS 的,但原理应该一样:

    https://objccn.io/issue-21-3/ 里面有实时人脸检测部分

    还有一种老方法是用 CIDetector 来完成
    https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_detect_faces/ci_detect_faces.html 虽然这个例子是照片,但是觉得应该创建一个 CIDetetcor 实时用在 AVFounation 应该也行


    OpenCV:
    用 OpenCV 很简单,但是前提是要各种包装好

    https://realpython.com/blog/python/face-detection-in-python-using-a-webcam/
    henryshen233
        4
    henryshen233  
    OP
       Sep 29, 2017 via iPhone
    @abcyuxue123 万分感谢,谢谢!我去看一下
    henryshen233
        5
    henryshen233  
    OP
       Oct 17, 2017
    @abcyuxue123 已实现
    abcyuxue123
        6
    abcyuxue123  
       Oct 18, 2017
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5425 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 05:55 · PVG 13:55 · LAX 22:55 · JFK 01:55
    ♥ Do have faith in what you're doing.