中科院山世光老师开源的Seetaface人脸识别引擎SeetaFacesTest.rar


中科院山世光老师开源的Seetaface人脸识别引擎SeetaFacesTest.rar
资源截图
代码片段和文件信息
/*
 *
 * This file is part of the open-source SeetaFace engine which includes three modules:
 * SeetaFace Detection SeetaFace Alignment and SeetaFace Identification.
 *
 * This file is part of the SeetaFace Detection module containing codes implementing the
 * face detection method described in the following paper:
 *
 *
 *   Funnel-structured cascade for multi-view face detection with alignment awareness
 *   Shuzhe Wu Meina Kan Zhenliang He Shiguang Shan Xilin Chen.
 *   In Neurocomputing (under review)
 *
 *
 * Copyright (C) 2016 Visual Information Processing and Learning (VIPL) group
 * Institute of Computing Technology Chinese Academy of Sciences Beijing China.
 *
 * The codes are mainly developed by Shuzhe Wu (a Ph.D supervised by Prof. Shiguang Shan)
 *
 * As an open-source face recognition engine: you can redistribute SeetaFace source codes
 * and/or modify it under the terms of the BSD 2-Clause License.
 *
 * You should have received a copy of the BSD 2-Clause License along with the software.
 * If not see < https://opensource.org/licenses/BSD-2-Clause>.
 *
 * Contact Info: you can send an email to SeetaFace@vipl.ict.ac.cn for any problems.
 *
 * Note: the above information must be kept whenever or wherever the codes are used.
 *
 */
#include “stdafx.h“
#include “face_detection.h“

#include 
#include 

#include “detector.h“
#include “fust.h“
#include “image_pyramid.h“

namespace seeta {

class FaceDetection::Impl {
 public:
  Impl()
      : detector_(new seeta::fd::FuStDetector())
        slide_wnd_step_x_(4) slide_wnd_step_y_(4)
        min_face_size_(20) max_face_size_(-1)
        cls_thresh_(3.85f) {}

  ~Impl() {}

  inline bool IsLegalImage(const seeta::ImageData & image) {
    return (image.num_channels == 1 && image.width > 0 && image.height > 0 &&
      image.data != nullptr);
  }

 public:
  static const int32_t kWndSize = 40;

  int32_t min_face_size_;
  int32_t max_face_size_;
  int32_t slide_wnd_step_x_;
  int32_t slide_wnd_step_y_;
  float cls_thresh_;

  std::vector pos_wnds_;
  std::unique_ptr detector_;
  seeta::fd::ImagePyramid img_pyramid_;
};

FaceDetection::FaceDetection(const char* model_path)
    : impl_(new seeta::FaceDetection::Impl()) {
  impl_->detector_->LoadModel(model_path);
}

FaceDetection::~FaceDetection() {
  if (impl_ != nullptr)
    delete impl_;
}

std::vector FaceDetection::Detect(
    const seeta::ImageData & img) {
  if (!impl_->IsLegalImage(img))
    return std::vector();

  int32_t min_img_size = img.height <= img.width ? img.height : img.width;
  min_img_size = (impl_->max_face_size_ > 0 ?
    (min_img_size >= impl_->max_face_size_ ? impl_->max_face_size_ : min_img_size) :
    min_img_size);

  impl_->img_pyramid_.SetImage1x(img.data img.width img.height);
  impl_->img_pyramid_.SetMinScale(static_cast(impl_->kWndSize) / min_img_size);

  impl_->detector_->SetWindowSize(impl_->kWndS

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     478720  2016-09-22 19:27  SeetaFacesTestDebugSeetaFacesTest.exe

     文件       2475  2016-09-22 19:27  SeetaFacesTestDebugSeetaFacesTest.exp

     文件    1646816  2016-09-22 19:27  SeetaFacesTestDebugSeetaFacesTest.ilk

     文件       4818  2016-09-22 19:27  SeetaFacesTestDebugSeetaFacesTest.lib

     文件    3207168  2016-09-22 19:27  SeetaFacesTestDebugSeetaFacesTest.pdb

     文件      21899  2016-08-09 19:21  SeetaFacesTestSeetaFacesTest2.jpg

     文件       1880  2016-09-18 08:38  SeetaFacesTestSeetaFacesTestclassifier.h

     文件       2530  2016-09-18 08:38  SeetaFacesTestSeetaFacesTestcommon.h

     文件     676247  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugface_detection.obj

     文件    1544424  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugfust.obj

     文件     125957  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugimage_pyramid.obj

     文件     403761  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebuglab_boosted_classifier.obj

     文件     193420  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebuglab_boost_model_reader.obj

     文件     159714  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebuglab_feature_map.obj

     文件     268895  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugmlp.obj

     文件     227148  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebug
ms.obj

     文件       2798  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.Build.CppClean.log

     文件       9125  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.log

     文件     218305  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.obj

     文件    1638400  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.pch

     文件      10968  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tlogcl.command.1.tlog

     文件     144082  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tlogCL.read.1.tlog

     文件       9100  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tlogCL.write.1.tlog

     文件       5656  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tloglink.command.1.tlog

     文件      11308  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tloglink.read.1.tlog

     文件       2696  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tloglink.write.1.tlog

     文件        191  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tlogSeetaFacesTest.lastbuildstate

     文件        474  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugSeetaFacesTest.tlogSeetaFacesTest.write.1u.tlog

     文件      12069  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugstdafx.obj

     文件     434711  2016-09-22 19:27  SeetaFacesTestSeetaFacesTestDebugsurf_feature_map.obj

............此处省略49个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)