• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






任重道远-HSY

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页

2019年10月22日

在opencv3中的机器学习算法练习:对OCR进行分类
摘要: OCR (Optical Character Recognition,光学字符识别),我们这个练习就是对OCR英文字母进行识别。得到一张OCR图片后,提取出字符相关的ROI图像,并且大小归一化,整个图像的像素值序列可以直接作为特征。但直接将整个图像作为特征数据维度太高,计算量太大,所以也可以进行一些 阅读全文
posted @ 2019-10-22 09:52 任重道远-HSY 阅读(364) 评论(0) 推荐(0)
 
OpenCV KNN加载训练好的模型
摘要: 1 #include<iostream> 2 #include <opencv2\opencv.hpp> 3 using namespace cv; 4 using namespace std; 5 #include "test.h" 6 7 int main() 8 { 9 ///********************测试***************************/// 10 Ma 阅读全文
posted @ 2019-10-22 09:05 任重道远-HSY 阅读(760) 评论(0) 推荐(0)
 
OpenCV KNN数字分类
摘要: (1)、cv::ml::Knearest类:继承自cv::ml::StateModel,而cv::ml::StateModel又继承自cv::Algorithm; (2)、create函数:为static,new一个KNearestImpl用来创建一个KNearest对象; (3)、setDefau 阅读全文
posted @ 2019-10-22 08:54 任重道远-HSY 阅读(547) 评论(0) 推荐(0)
 

2019年10月21日

dirent.h文件
摘要: dirent.h头文件 阅读全文
posted @ 2019-10-21 08:46 任重道远-HSY 阅读(518) 评论(0) 推荐(0)
 

2019年10月19日

读取图像
摘要: 1 Mat readImage(string path) 2 { 3 std::ifstream file("cr.tif", std::ios::binary); 4 std::vector data; 5 file >>noskipws; 6 copy(istream_iterator(file),istream_iterator(), b... 阅读全文
posted @ 2019-10-19 17:32 任重道远-HSY 阅读(107) 评论(0) 推荐(0)
 

2019年10月18日

opencv ROI(感兴趣区域替换)
摘要: #include <opencv2/opencv.hpp> #include <iostream> using namespace cv; int main() { Mat img=imread("1.jpg"); Mat imgTemp=img.clone(); Mat logo = imread 阅读全文
posted @ 2019-10-18 17:37 任重道远-HSY 阅读(664) 评论(0) 推荐(0)
 
C++ #define,#ifndef和#ifdef
摘要: 有时候我们在编程的时候,希望有些代码在我们需要时编译,不需要时不编译,也就是让它快速注释,这时候即可以考虑#ifdef和#endif,它们会使我们的编译器进行选择性编译。 如果注释掉#define TEST 注释小#define TEST该#ifdef为#ifndef 阅读全文
posted @ 2019-10-18 11:42 任重道远-HSY 阅读(217) 评论(0) 推荐(0)
 

2019年9月27日

C++数据结构之链表一(删除,插入,销毁,返回长度)
摘要: 1、头文件 2、实现文件 阅读全文
posted @ 2019-09-27 17:24 任重道远-HSY 阅读(1976) 评论(0) 推荐(0)
 

2019年9月26日

排序(API)
摘要: 一、希尔排序 二、冒泡排序 阅读全文
posted @ 2019-09-26 16:39 任重道远-HSY 阅读(143) 评论(0) 推荐(0)
 

2019年9月21日

OpenCV 图像旋转
摘要: 1 RotateArbitrarilyAngle(Mat src, Mat &dst, float angle) 2 { 3 float radian = (float)(angle / 180.0 * CV_PI); 4 5 //填充图像 6 int maxBorder = (int)(max(src.cols, src.rows)* 1.414); //即为sqrt(2)*max 7 int 阅读全文
posted @ 2019-09-21 15:17 任重道远-HSY 阅读(292) 评论(0) 推荐(0)
 
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页