ÉèΪÊ×Ò³ ¼ÓÈëÊÕ²Ø

TOP

AndroidÖÐÈËÁ³Ê¶±ð¼¼Êõ
2014-11-24 12:09:27 À´Ô´: ×÷Õß: ¡¾´ó ÖРС¡¿ ä¯ÀÀ:0´Î
Tags£ºAndroid ÈËÁ³ ʶ±ð ¼¼Êõ

1. Ïà¹Ø±³¾°


Google ÓÚ2006Äê8ÔÂÊÕ¹ºNeven Vision ¹«Ë¾ £¨¸Ã¹«Ë¾ÓµÓÐ 10 ¶àÏîÓ¦ÓÃÓÚÒÆ¶¯É豸ÁìÓòµÄͼÏñʶ±ðµÄרÀû£©£¬ÒÔ´Ë»ñµÃÁËͼÏñʶ±ðµÄ¼¼Êõ£¬²¢ºÜ¿ìÓ¦Óõ½Ãâ·ÑµÄ Picasa Ïà²á¹ÜÀí³ÌÐòÖУ¬Ìṩ»ùÓÚÈËÁ³Ê¶±ðµÄÏàÆ¬¹ÜÀí¹¦ÄÜ£¬ÁíÍâ»¹ÍÆ³öÁËÒ»¸öÐÂÏîÄ¿½ÐGoggle £¬ÄÜ´ÓÕÕÆ¬ÖÐʶ±ðÊÀ½ç¸÷µØµÄµØ±ê½¨Öþ£¬Í¬ÑùGoogle Ò²°ÑÈËÁ³Ê¶±ð¹¦ÄÜÌí¼Óµ½ÁËAndroid ÖС£²»¹ýÓÉÓÚ¸öÈËÒþ˽µÈÏà¹ØÒòËØ£¬Google GogglesºÃÏñÔÝʱÆÁ±ÎÁËÈËÁ³Ê¶±ð¹¦ÄÜ ¡£


2. Android ÖеÄÈËÁ³Ê¶±ð¼¼Êõ


µ×²ã¿â£ºandroid/external/neven/


framework ²ã£ºframeworks/base/media/java/android/media/FaceDetector.java


Java ²ã½Ó¿ÚµÄÏÞÖÆ£º


3. ÈËÁ³Ê¶±ð¼¼ÊõµÄÓ¦ÓÃ


A. Ϊ Camera Ìí¼ÓÈËÁ³Ê¶±ðµÄ¹¦ÄÜ£ºÊ¹µÃ Camera µÄÈ¡¾°Æ÷ÉÏÄܱêʶ³öÈËÁ³·¶Î§£»Èç¹ûÓ²¼þÖ§³Ö£¬¿ÉÒÔ¶ÔÈËÁ³½øÐжԽ¹¡£


B. ΪÏà²á³ÌÐòÌí¼Ó°´ÈËÁ³Ë÷ÒýÏà²áµÄ¹¦ÄÜ£º°´ÈËÁ³Ë÷ÒýÏà²á£¬°´ÈËÁ³·Ö×飬ËÑË÷Ïà²á¡£


4.Neven¿â¸øÉϲãÌṩµÄÖ÷Òª·½·¨£º


android.media.FaceDetector .FaceDetector(int width, int height, int maxFaces)
public FaceDetector (int width, int height, int maxFaces)
Since: API Level 1


Creates a FaceDetector, configured with the size of the images to be analysed and the maximum number of faces that can be detected. These parameters cannot be changed once the object is constructed.


Parameters
width
the width of the image


height
the height of the image


maxFaces
the maximum number of faces to identify



int android.media.FaceDetector .findFaces(Bitmap bitmap, Face [] faces)
public int findFaces (Bitmap bitmap, Face[] faces)
Since: API Level 1


Finds all the faces found in a given Bitmap . The supplied array is populated with FaceDetector.Face s for each face found. The bitmap must be in 565 format (for now).


Parameters
bitmap
the Bitmap graphic to be analyzed


faces
an array in which to place all found FaceDetector.Face s. The array must be sized equal to the maxFaces value set at initialization


Returns
the number of faces found


Throws
IllegalArgumentException
if the Bitmap dimensions don't match the dimensions defined at initialization or the given array is not sized equal to the maxFaces value defined at initialization


¡¾´ó ÖРС¡¿¡¾´òÓ¡¡¿ ¡¾·±Ìå¡¿¡¾Í¶¸å¡¿¡¾Êղء¿ ¡¾ÍƼö¡¿¡¾¾Ù±¨¡¿¡¾ÆÀÂÛ¡¿ ¡¾¹Ø±Õ¡¿ ¡¾·µ»Ø¶¥²¿¡¿
·ÖÏíµ½: 
ÉÏһƪ£ºAndroid API½Ì³Ì£ºÈËÁ³¼ì²â£¨Face.. ÏÂһƪ£ºUbuntu ±àÒëÔËÐÐC±Ê¼Ç

ÆÀÂÛ

ÕÊ¡¡¡¡ºÅ: ÃÜÂë: (ÐÂÓû§×¢²á)
Ñé Ö¤ Âë:
±í¡¡¡¡Çé:
ÄÚ¡¡¡¡ÈÝ:

¡¤Linuxϵͳ¼ò½é (2025-12-25 21:55:25)
¡¤Linux°²×°MySQL¹ý³Ì (2025-12-25 21:55:22)
¡¤Linuxϵͳ°²×°½Ì³Ì£¨ (2025-12-25 21:55:20)
¡¤HTTP Åc HTTPS µÄ²î„ (2025-12-25 21:19:45)
¡¤ÍøÕ¾°²È«±ØÐ޿ΣºÍ¼ (2025-12-25 21:19:42)