TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Face detection with OS X and python

37 点作者 recurser超过 14 年前

3 条评论

dekomote超过 14 年前
For those developing on Debian based Linux, these are the steps:<p>1. Install python-opencv package with apt-get/aptitude<p>2. You can get the Haar cascades here - <a href="http://alereimondo.no-ip.org/OpenCV/34" rel="nofollow">http://alereimondo.no-ip.org/OpenCV/34</a><p>3. Run the same code, just make sure to use one of the cascades downloaded from step 2<p>Line 60: parser.add_option("-c", "--cascade", action="store", dest="cascade", type="str", help="Haar cascade file, default %default", default = "/usr/local/Cellar/opencv/2.2/share/opencv/haarcascades/haarcascade_frontalface_default.xml") Change default to the haar cascade file path, or use --cascade option to specify it.<p>4. Execute<p><i></i>Edit: For non-Deb based distros<i></i>, use your package manager to download/install opencv for python (or compile it) and continue from step 2.
beambot超过 14 年前
FYI, there are OpenCV-based face detection nodes in ROS (Robot Operating System by Willow Garage) that publish the detected face positions using a stereo pair (which prunes false positives based on face depth/size estimates). Slightly modified to use one camera or a Kinect, and you would have a python consumer node that requires a mere 5 lines of Python code. ;-)<p><a href="http://www.ros.org/wiki/face_detector" rel="nofollow">http://www.ros.org/wiki/face_detector</a>
评论 #2003465 未加载
andre超过 14 年前
does it call any other services? or is it all in the JS?
评论 #2003560 未加载