首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

QT笔记 4 人脸检测 这是一个库

移动开发 650.18KB 46 需要积分: 1
立即下载

资源介绍:

QT笔记 4 人脸检测 这是一个库
#ifndef INC_SEETA_STRUCT_H #define INC_SEETA_STRUCT_H #include "CStruct.h" #include #include #include #include #include #include #define INCLUDED_SEETA_STRUCT namespace seeta { class ImageData : public SeetaImageData { public: using self = ImageData; using supper = SeetaImageData; using byte = unsigned char; ~ImageData() = default; ImageData( const supper &image ) : ImageData( image.data, image.width, image.height, image.channels ) {} ImageData( int width, int height, int channels ) : supper( { width, height, channels, nullptr } ) { this->m_data.reset( new byte[this->count()], std::default_delete() ); this->data = this->m_data.get(); } ImageData() : ImageData( 0, 0, 0 ) {} ImageData( const byte *data, int width, int height, int channels ) : ImageData( width, height, channels ) { this->copy_from( data ); } ImageData( const self & ) = default; ImageData &operator=( const self & ) = default; ImageData &operator=( const supper &other ) { this->operator=( self( other ) ); return *this; } ImageData( self &&other ) : supper( { other.width, other.height, other.channels, nullptr } ) { this->m_data = std::move( other.m_data ); this->data = this->m_data.get(); } ImageData &operator=( self &&other ) { this->width = other.width; this->height = other.height; this->channels = other.channels; this->m_data = std::move( other.m_data ); this->data = this->m_data.get(); return *this; } void copy_from( const byte *data, int size = -1 ) { int copy_size = this->count(); copy_size = size < 0 ? copy_size : std::min( copy_size, size ); copy( this->data, data, copy_size ); } void copy_to( byte *data, int size = -1 ) const { int copy_size = this->count(); copy_size = size < 0 ? copy_size : std::min( copy_size, size ); copy( data, this->data, copy_size ); } static void copy( byte *dst, const byte *src, size_t size ) { std::memcpy( dst, src, size ); } int count() const { return this->width * this->height * this->channels; } ImageData clone() const { return ImageData( this->data, this->width, this->height, this->channels ); } private: std::shared_ptr m_data; }; class Point : public SeetaPoint { public: using self = Point; using supper = SeetaPoint; Point( const supper &other ) : supper( other ) {} Point( int x, int y ) : supper( { x, y } ) {} Point() : Point( 0, 0 ) {} }; class PointF : public SeetaPointF { public: using self = PointF; using supper = SeetaPointF; PointF( const supper &other ) : supper( other ) {} PointF( double x, double y ) : supper( { x, y } ) {} PointF() : PointF( 0, 0 ) {} }; class Size : public SeetaSize { public: using self = Size; using supper = SeetaSize; Size( const supper &other ) : supper( other ) {} Size( int width, int height ) : supper( { width, height } ) {} Size() : Size( 0, 0 ) {} }; class Rect : public SeetaRect { public: using self = Rect; using supper = SeetaRect; Rect( const supper &other ) : supper( other ) {} Rect( int x, int y, int width, int height ) : supper( { x, y, width, height } ) {} Rect() : Rect( 0, 0, 0, 0 ) {} Rect( int x, int y, const Size &size ) : supper( { x, y, size.width, size.height } ) {} Rect( const Point &top_left, int width, int height ) : supper( { top_left.x, top_left.y, width, height } ) {} Rect( const Point &top_left, const Size &size ) : supper( { top_left.x, top_left.y, size.width, size.height } ) {} Rect( const Point &top_left, const Point &bottom_right ) : supper( { top_left.x, top_left.y, bottom_right.x - top_left.x, bottom_right.y - top_left.y } ) {} operator Point() const { return{ this->x, this->y }; } operator Size() const { return{ this->width, this->height }; } }; class Region : public SeetaRegion { public: using self = Region; using supper = SeetaRegion; Region( const supper &other ) : supper( other ) {} Region( int top, int bottom, int left, int right ) : supper( { top, bottom, left, right } ) {} Region() : Region( 0, 0, 0, 0 ) {} Region( const Rect &rect ) : Region( rect.y, rect.y + rect.height, rect.x, rect.x + rect.width ) {} operator Rect() const { return{ left, top, right - left, bottom - top }; } }; class ModelSetting : public SeetaModelSetting { public: using self = ModelSetting; using supper = SeetaModelSetting; enum Device { AUTO, CPU, GPU }; ~ModelSetting() = default; ModelSetting() : supper( { SEETA_DEVICE_AUTO, 0, nullptr } ) { this->update(); } ModelSetting( const supper &other ) : supper( { other.device, other.id, nullptr } ) { if( other.model ) { int i = 0; while( other.model[i] ) { m_model_string.emplace_back( other.model[i] ); ++i; } } this->update(); } ModelSetting( const self &other ) : supper( { other.device, other.id, nullptr } ) { this->m_model_string = other.m_model_string; this->update(); } ModelSetting &operator=( const supper &other ) { this->operator=( self( other ) ); return *this; } ModelSetting &operator=( const self &other ) { this->device = other.device; this->id = other.id; this->m_model_string = other.m_model_string; this->update(); return *this; } ModelSetting( self &&other ) : supper( { other.device, other.id, nullptr } ) { this->m_model_string = std::move( other.m_model_string ); this->update(); } ModelSetting &operator=( self &&other ) { this->device = other.device; this->id = other.id; this->m_model_string = std::move( other.m_model_string ); this->update(); return *this; } ModelSetting( const std::string &model, SeetaDevice device, int id ) : supper( { device, id, nullptr } ) { this->append( model ); } ModelSetting( const std::string &model, SeetaDevice device ) : self( model, device, 0 ) {} ModelSetting( const std::string &model, Device device, int id ) : self( model, SeetaDevice( device ), id ) {} ModelSetting( const std::string &model, Device device ) : self( model, SeetaDevice( device ) ) {} ModelSetting( const std::string &model ) : self( model, SEETA_DEVICE_AUTO ) {} ModelSetting( const std::vector &model, SeetaDevice device, int id ) : supper( { device, id, nullptr } ) {

资源文件列表:

seetaface2.zip 大约有29个文件
  1. seetaface2/include/
  2. seetaface2/include/seeta/
  3. seetaface2/include/seeta/CFaceInfo.h 245B
  4. seetaface2/include/seeta/CStream.h 352B
  5. seetaface2/include/seeta/CStruct.h 1.42KB
  6. seetaface2/include/seeta/CTrackingFaceInfo.h 401B
  7. seetaface2/include/seeta/FaceDatabase.h 3.93KB
  8. seetaface2/include/seeta/FaceDetector.h 2.04KB
  9. seetaface2/include/seeta/FaceLandmarker.h 1.75KB
  10. seetaface2/include/seeta/FaceRecognizer.h 3.41KB
  11. seetaface2/include/seeta/FaceTracker.h 1.87KB
  12. seetaface2/include/seeta/QualityAssessor.h 1.95KB
  13. seetaface2/include/seeta/SeetaDetectorExport.h 1.17KB
  14. seetaface2/include/seeta/SeetaFaceTrackerExport.h 1.18KB
  15. seetaface2/include/seeta/SeetaLandmarkerExport.h 1.21KB
  16. seetaface2/include/seeta/SeetaNetExport.h 1010B
  17. seetaface2/include/seeta/SeetaNetForward.h 7.75KB
  18. seetaface2/include/seeta/SeetaNetStruct.h 2.19KB
  19. seetaface2/include/seeta/SeetaRecognizerExport.h 1.21KB
  20. seetaface2/include/seeta/Stream.h 5.28KB
  21. seetaface2/include/seeta/Struct.h 20.19KB
  22. seetaface2/include/seeta/Struct_cv.h 1.7KB
  23. seetaface2/lib/
  24. seetaface2/lib/libSeetaFaceDetector.dll 192.36KB
  25. seetaface2/lib/libSeetaFaceLandmarker.dll 169.92KB
  26. seetaface2/lib/libSeetaFaceRecognizer.dll 288.65KB
  27. seetaface2/lib/libSeetaFaceTracker.dll 71.44KB
  28. seetaface2/lib/libSeetaNet.dll 1.23MB
  29. seetaface2/lib/libSeetaQualityAssessor.dll 154.78KB
0评论
提交 加载更多评论
其他资源 西安电子科技大学 电子课程设计 msm仿真电路图文件 + 电路图导出的pdf
西安电子科技大学 电子课程设计 msm仿真电路图文件 + 电路图导出的pdf
k8s二进制部署文件 node.zip
node
东财,baostock,tushare数据获取代码
东财,baostock,tushare数据获取代码
c语言万年历源码.zip
c语言万年历源码.zip
mspm0g3507代码
MSPM0G3507是一款由德州仪器(Texas Instruments,简称TI)生产的微控制器(MCU),通常用于嵌入式系统开发。由于MSPM0G3507的代码示例和具体实现可能因应用而异,且直接提供完整的代码可能超出了一般问题的范畴,我将基于一些常见的应用场景和参考文章中的内容,概述MSPM0G3507代码开发的一些基本步骤和示例代码片段。 基本步骤 环境搭建: 安装TI的Code Composer Studio(CCS)或其他支持的IDE。 下载并安装MSPM0G3507的支持库和文档。 项目创建: 在IDE中创建一个新的项目,选择MSPM0G3507作为目标设备。 配置项目设置,包括时钟源、外设初始化等。 代码编写: 编写主函数(main)和必要的初始化代码。 实现具体的应用逻辑,如数据处理、外设控制等。 编译与调试: 使用IDE的编译功能构建项目。 使用调试器进行代码调试,查找并修复错误。 部署与测试: 将编译好的代码下载到MSPM0G3507设备中。 在实际硬件上进行测试,验证功能是否符合预期。 示例代码片段 由于无法直接提供完整的项目代码,以下是一些可能的代码片段示例
超市综合管理信息系统java项目jsp
管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE 管理信息系统; MVC模式; JSP; SQL Server 2000 数据库管理系统; J2EE
超市综合管理信息系统java项目jsp 超市综合管理信息系统java项目jsp 超市综合管理信息系统java项目jsp
docker安装RabbitMQ延迟队列插件
一些插件
礼记簿子V3.0 免费无广告
【礼记簿子】致力为用户提供日常生活中礼尚往来的记录管理,取代传统手工、纸质方式记录和查阅,实现云端存储、永不丢失、记录方便、查找便捷的指尖应用。使用【礼记簿子】,礼尚往来更有礼。