cv2.face.LBPHFaceRecognizer_create

简介:
LBPHFaceRecognizer_create(...)
    LBPHFaceRecognizer_create([, radius[, neighbors[, grid_x[, grid_y[, threshold]]]]]) -> retval
    .   @param radius The radius used for building the Circular Local Binary Pattern. The greater the
    .   radius, the smoother the image but more spatial information you can get.
    .   @param neighbors The number of sample points to build a Circular Local Binary Pattern from. An
    .   appropriate value is to use `8` sample points. Keep in mind: the more sample points you include,
    .   the higher the computational cost.
    .   @param grid_x The number of cells in the horizontal direction, 8 is a common value used in
    .   publications. The more cells, the finer the grid, the higher the dimensionality of the resulting
    .   feature vector.
    .   @param grid_y The number of cells in the vertical direction, 8 is a common value used in
    .   publications. The more cells, the finer the grid, the higher the dimensionality of the resulting
    .   feature vector.
    .   @param threshold The threshold applied in the prediction. If the distance to the nearest neighbor
    .   is larger than the threshold, this method returns -1.
    .   
    .   ### Notes:
    .   
    .   -   The Circular Local Binary Patterns (used in training and prediction) expect the data given as
    .   grayscale images, use cvtColor to convert between the color spaces.
    .   -   This model supports updating.
    .   
    .   ### Model internal data:
    .   
    .   -   radius see LBPHFaceRecognizer::create.
    .   -   neighbors see LBPHFaceRecognizer::create.
    .   -   grid_x see LLBPHFaceRecognizer::create.
    .   -   grid_y see LBPHFaceRecognizer::create.
    .   -   threshold see LBPHFaceRecognizer::create.
    .   -   histograms Local Binary Patterns Histograms calculated from the given training data (empty if
    .   none was given).
    .   -   labels Labels corresponding to the calculated Local Binary Patterns Histograms.


read(...) method of cv2.face_LBPHFaceRecognizer instance
    read(filename) -> None
    .   @brief Loads a FaceRecognizer and its model state.
    .   
    .   Loads a persisted model and state from a given XML or YAML file . Every FaceRecognizer has to
    .   overwrite FaceRecognizer::load(FileStorage& fs) to enable loading the model state.
    .   FaceRecognizer::load(FileStorage& fs) in turn gets called by
    .   FaceRecognizer::load(const String& filename), to ease saving a model.

目录
相关文章
|
3月前
|
存储 计算机视觉
OpenCV 中 CV_8UC1,CV_32FC3,CV_32S等参数的含义
OpenCV 中 CV_8UC1,CV_32FC3,CV_32S等参数的含义
172 3
|
5月前
|
机器学习/深度学习 算法 图形学
shape_predictor_68_face_landmarks
【6月更文挑战第22天】
207 7
|
4月前
|
Python
已解决:_tkinter.TcLError: couldn’t recognize data in image file “Image/nakamuraan.gif”
已解决:_tkinter.TcLError: couldn’t recognize data in image file “Image/nakamuraan.gif”
148 1
|
5月前
get_frontal_face_detector
【6月更文挑战第20天】
91 5
|
6月前
|
计算机视觉
halcon系列基础之Scale_image_range
halcon系列基础之Scale_image_range
303 0
|
6月前
|
计算机视觉 Python
opencv cv::Range()和cv::Rect()用于crop来获得感兴趣区域
opencv cv::Range()和cv::Rect()用于crop来获得感兴趣区域
221 0
【BUG】 ‘cv2.cv2‘ ‘wechat_qrcode_WeChatQRCode‘
【BUG】 ‘cv2.cv2‘ ‘wechat_qrcode_WeChatQRCode‘
|
计算机视觉
图像拼接遇到module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
图像拼接遇到module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
131 0
|
算法 计算机视觉 Python
【完美解决方案】module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
【完美解决方案】module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
1180 0
|
编解码 算法 计算机视觉
【CV】PIL.Image.save() 保存图片压缩问题
PIL.Image.save() 保存图片压缩问题