
OpenCV
SoftGit
深度学习,活体检测,模型压缩
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OpenCV/C/C++读取文件夹内所有图或者多张图片
因为我是用来OpenCV的类,但是无伤大雅,大家可以吧多余的删除文件夹图片以及按顺序命名,如1,2,3......./*函数功能:读取文件夹下指定数目的图片*/void ReadImage(int num){ float x = 1.0, y = 0.0, z = 0.0,tidu=0.0; int m = 0; Mat image;// ofstream outf; //...原创 2018-03-26 15:45:06 · 6083 阅读 · 0 评论 -
linux下删除大量文件提示参数过长解决办法和查看文件夹内包含文件数量
linux下删除大量文件提示参数过长解决办法转载:https://blog.youkuaiyun.com/ls198825/article/details/7529570在linux中删除大量文件时,直接用rm会出现:-bash: /bin/rm: 参数列表过长的错误。这时可以用find命令来结合使用。删除当前目录下文件名或文件夹名中包含name字段的文件:find . -name "name*" | xar...转载 2018-03-26 16:38:20 · 2502 阅读 · 0 评论 -
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 88: invalid continuation byte
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 88: invalid continuation byte在程序前面添加#coding:utf-8#!/usr/bin/pythonimport os import sys reload(sys) sys.setdefaultencoding("utf-8")...原创 2018-04-02 16:30:04 · 4234 阅读 · 0 评论 -
TypeError: cannot concatenate 'str' and 'list' objects和Python读取和保存图片
运行程序时报错,然后我将list转化为str就好了。利用''.join(list)如果需要用逗号隔开,如1,2,3,4则使用','.join(list)Python中plt可以显示和保存图片,不能使用mpingimport matplotlib.image as mpimg # mpimg 用于读取图片开头import时加入import matplotlib.pyplot as plt from ...原创 2018-04-02 17:27:35 · 9852 阅读 · 0 评论 -
numpy数组的操作取前行和取列
这个数组跟MATLAB简直不要太像。首先得导包,from numpy import *如果你要取前几行a=c[0:3,:] 前0,1,2行b = c[0,2:4] 第0行的第2和第3列不包括第4列,因为列下标也是从0开始的d = c[2:4,2:4] 取中间的2-4行的2-4列e = c[0,:] 取第0行所有数据f = c[:,1] 取第1列所有数据g = c[::2,::2] 两个冒号...原创 2018-04-03 09:19:16 · 36673 阅读 · 3 评论 -
C++ (opencv)读取文件夹下所有的图片(某一种类型,如JPG)(一次性读取)
`/testpath下面有两个文件夹,一个RGBFace,一个DepthFace,所有的图片都是彩色和PNG的 //读取文件夹下的图片文件名称 vector files; //string filepath_RGB = testpath + “/RGBFace/*.jpg”; string filepath_RGB = “E:/*.jp...原创 2018-05-22 17:26:06 · 12317 阅读 · 0 评论 -
OpenCV(c++)字符替换函数
字符串中的替换//************************************// Method: string_replace// FullName: string_replace// Access: public // Returns: void// Qualifier: 把字符串的strsrc替换成strdst// Parameter: std:...原创 2018-06-07 11:04:05 · 752 阅读 · 0 评论 -
利用300fps检测人脸的68个特征点
从github上获取3000fps的源码,我是从这里git clone下来的。 /*****************************************************************/ 运行环境 系统:windows 10 VS版本:VS2017 windows SDK:8.1 OpenCV version : 3.4.1 /**************...原创 2019-03-15 15:36:29 · 641 阅读 · 0 评论