opencv训练样本时出现停止不动

用opencv的opencv_traincascade.exe训练样本时出现如第一幅图中的停止现象,所用参数如第二幅图所示。请问问题出在哪里,怎么解决?![图片说明](https://img-ask.csdn.net/upload/201607/21/1469071380_400256.png)图片说明

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
opencv人脸训练样本库
opencv人脸训练样本库 图片,原来的下载地址已经不能用了。software-datasets/FaceData2.html,可以用winrar打开,
OpenCV训练样本遇到的问题
文件目录: F:\adaboost\         positive\               正样本文件夹              images\                正样本图片所在文件夹              pos.dat                  正样本集描述文件              pos.vec                  正样本特征
【opencv】训练样本的批量制作
做XML需要较多的样本,一张一张截图非常累,有些XML可以是现成的,但是总要自己做自己的XML去识别一些东西,样本的制作就是一个很麻烦的过程,以下方法是针对一张图中有很多样本,直接用opencv截取保存的到samples文件夹下。为了方便,可以是固定大小,可以是拖动的截图大小。截取后按S键保存,不需要保存直接重新截取区域即可。 #include #include #inclu
ATL控件 在Performing registration时停止不动
我在VC6.0下用ATL COM APPWizard生成了dll控件,在Build过程中执行到Performing registration 的时候停止不动,必须强制关闭任务管理器中的regsvr32进程才能结束,这是为什么,如何解决这一问题
执行imp时停止不动的问题
由我自己机器上exp的dmp,在自己机器上imp没问题,但在别的机器上imp时总是在同一个地方停止不动?请问大家该怎么办?我是新手希望大家写的详细些。rn那个dmp文件包括三个方案,总是在其中一个方案该结束,开始导另一个方案时停止导入。rn环境:Windows Server 2003 Enterprise Edition sp1;Oracle 10g
expdp导出表停止不动
expdp导出表,在最后收集索引,统计信息时没反应了。也无任何报错。rnprocessing object type TABLE_EXPORT/TABLE/TABLE这一步不动了。数据量很少rn已经停止不动2个小时了。rnrn还有另外的用户虽然导出成功但是也在这一步非常的慢?rnrn还有联机的环境rn如果加EXCLUDE=STATISTICSrn在新生产环境会不会有影响?需要全部收集一遍数据库的统计信息吗
opencv人头分类器训练样本数据集
opencv人头分类器训练样本数据集 正负样本都要,正样本4000+ 负样本25000+ 归一化为20*20
装redhat时,到running /sbin/loader时停止不动
在装redhat企业版四的时候,选择图形用户界面,并在boot:中输入了 linux acpi=off apm=off 可是运行到running /sbin/loader时还是停止不动了,等了半个多小时,还是没反应,请教各位,该怎么装啊?我想装双系统。
gevent pandas 程序停止不动
环境:py2.7,win7 32位.rn以下代码命令行下执行后,过一段时间就停止不动了,需要ctrl+c才会继续运行,请教是怎么回事呢?谢谢rnrn[code=python]#coding=utf-8rnfrom gevent import monkey,poolrnmonkey.patch_socket()rnimport osrnimport geventrnfrom lxml import etreernimport requestsrnimport rernimport pandas as pdrnrnclass Gaokao():rn def __init__(self):rn self.header='User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36'rn self.lists=[]rnrn def urls(self):rn #page_range=[1,23416]rn for i in range(1,2001): #test:get all page of 2017rn #url='https://data-gkcx.eol.cn/soudaxue/queryProvinceScore.html?messtype=jsonp&provinceforschool=&schooltype=&page=&size=10&keyWord=&schoolproperty=&schoolflag=&province=&fstype=&zhaoshengpici=&fsyear=2017'.format(i)rn url='https://data-gkcx.eol.cn/soudaxue/queryProvinceScore.html?messtype=jsonp&provinceforschool=&schooltype=&page=&size=10&keyWord=&schoolproperty=&schoolflag=&province=&fstype=&zhaoshengpici=&fsyear='.format(i)rn self.lists.append(url)rn return self.listsrnrndef get_html(url):rn global krn gevent.sleep(3)rn print 'downloading page:>>> ',urlrn dic=rn try:rn res=requests.get(url,header)rn res.encoding='utf-8'rn html=res.textrn #res.close()rn for r in re.findall(re_,html):rn lists=[rr.encode('gb2312','ignore') for rr in r]rn dic[k]=listsrn k+=1rn #record error urlsrn except:rn dic[k]=urlrn finally:rn df=pd.DataFrame.from_dict(dic,orient='index')rn df.to_csv(outputfile,mode='a',header=0,index=0)rnrnif __name__=='__main__':rn header='User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36'rn re_=re.compile(r'"schoolname": "(.*?)",.*?"localprovince": "(.*?)",.*?"province": "(.*?)",.*?"studenttype": "(.*?)",.*?"year": "(.*?)",.*?"batch": "(.*?)",.*?"var": "(.*?)",.*?"var_score": "(.*?)",.*?"max": (.*?),.*?"min": (.*?),.*?"num": "(.*?)",.*?"fencha": "(.*?)",.*?"provincescore": "(.*?)"',re.S)rn gk=Gaokao()rn k=0rn th=[]rn p=pool.Pool(20)rn outputfile='d:\\gaokao_every_10.csv'rn gk.urls()rn for u in gk.lists:rn th.append(p.spawn(get_html,u))rn gevent.joinall(th)[/code]
停止tomcat时,出现的错误信息
[code=java]11-Nov-2017 08:52:40.285 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.core.StandardContext.reload Reloading Context with name [] has startedrn11-Nov-2017 08:52:40.364 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn11-Nov-2017 08:52:40.364 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn11-Nov-2017 08:52:40.364 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn java.lang.ref.ReferenceQueue.remove(Unknown Source)rn com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)rn11-Nov-2017 08:52:40.379 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [IdleConnectionMonitorThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn me.chanjar.weixin.common.util.http.apache.DefaultApacheHttpClientBuilder$IdleConnectionMonitorThread.run(DefaultApacheHttpClientBuilder.java:312)rn11-Nov-2017 08:52:40.379 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn sun.misc.Unsafe.park(Native Method)rn java.util.concurrent.locks.LockSupport.park(Unknown Source)rn java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)rn java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:40.395 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-10] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Thread.sleep(Native Method)rn me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker$1.run(WxMessageInMemoryDuplicateChecker.java:67)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:40.395 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn sun.misc.Unsafe.park(Native Method)rn java.util.concurrent.locks.LockSupport.park(Unknown Source)rn java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)rn java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:40.411 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn sun.misc.Unsafe.park(Native Method)rn java.util.concurrent.locks.LockSupport.park(Unknown Source)rn java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)rn java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:40.411 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn sun.misc.Unsafe.park(Native Method)rn java.util.concurrent.locks.LockSupport.park(Unknown Source)rn java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)rn java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:40.426 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn sun.misc.Unsafe.park(Native Method)rn java.util.concurrent.locks.LockSupport.park(Unknown Source)rn java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)rn java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:40.442 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-6] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn sun.misc.Unsafe.park(Native Method)rn java.util.concurrent.locks.LockSupport.park(Unknown Source)rn java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)rn java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn java.lang.Thread.run(Unknown Source)rn11-Nov-2017 08:52:53.813 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.core.StandardContext.reload Reloading Context with name [] is completedrn11-Nov-2017 08:59:31.435 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.rn11-Nov-2017 08:59:31.435 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]rn11-Nov-2017 08:59:31.544 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]rn11-Nov-2017 08:59:31.638 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]rn11-Nov-2017 08:59:31.700 警告 [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn11-Nov-2017 08:59:31.700 警告 [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn11-Nov-2017 08:59:31.716 警告 [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn java.lang.ref.ReferenceQueue.remove(Unknown Source)rn com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)rn11-Nov-2017 08:59:31.716 警告 [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [IdleConnectionMonitorThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn me.chanjar.weixin.common.util.http.apache.DefaultApacheHttpClientBuilder$IdleConnectionMonitorThread.run(DefaultApacheHttpClientBuilder.java:312)[/code]
OpenCV Haar分类器交通红绿灯训练样本与模型
包含红绿信号灯的训练样本,以及opencv_traincascade.exe、opencv_createsamples.exe以及训练出的模型xml文件
DB2 连接jdbc时停止不动,非无响应也无异常
1。String driver="COM.ibm.db2.jdbc.net.DB2Driver";rn2。String url = "jdbc:db2://192.168.1.3:50000/test";rn3。String user = "testu";rn4。String password = "111111";rn5。Class.forName(driver);rn6。DriverManager.getConnection(url,user,password);rn就这几句代码!运行到第6行时就停止不动了!rn不报错,也不时无响应!rn求高手帮忙解决问题呀!
VS2017写opencv代码时莫名崩溃卡住不动的解决方法
原因在用mat类的时候鼠标放上去注释出不来就会崩溃。o(≧口≦)o 没保存代码的话让人欲哭无泪有没有 解决方法:将鼠标点在这种类似的位置,(ps:千万别放到Mat上面去),然后用方向键移动到Mat去,这样然后按F12跳到定义,将注释空出一行来,自己写个注释,像这样,就不会导致光标放上去的卡顿了。美滋滋,顺利解决。...
uclinux运行时停止在/bin/init不动
在google搜索了好多关于类似问题的文章,但是仍没有找到合适的解决办法,恳请各位高人指点。rn我使用的是petalinux-v0.30-rc1,由于使用的是spartan 3 starter kit板子,存储资源十分有限,只有1M SRAM,内核配置时基本做了最大简化。rn目前碰到的问题是运行到/bin/init时就卡住不动了,但是通过串口向控制台发送字符能够得到输出。rn启动信息如下:rnrnLinux version 2.4.32-uc0 (root@hostname) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #104 Tue May 20 17:04:03 CST 2008rnOn node 0 totalpages: 256rnzone(0): 256 pages.rnBUG: wrong zone alignment, it will crashrnzone(1): 0 pages.rnzone(2): 0 pages.rnCPU: MICROBLAZErnKernel command line: rnConsole: xmbserial on UARTLiternCalibrating delay loop... 24.67 BogoMIPSrnMemory: 1MB = 1MB totalrnMemory: 368KB available (452K code, 184K data, 36K init)rnDentry cache hash table entries: 512 (order: 0, 4096 bytes)rnInode cache hash table entries: 512 (order: 0, 4096 bytes)rnMount cache hash table entries: 512 (order: 0, 4096 bytes)rnBuffer cache hash table entries: 1024 (order: 0, 4096 bytes)rnPage-cache hash table entries: 1024 (order: 0, 4096 bytes)rnPOSIX conformance testing by UNIFIXrnLinux NET4.0 for Linux 2.4rnBased upon Swansea University Computer Society NET3.039rnMicroblaze UARTlite serial driver version 1.00rnttyS0 at 0x40600000 (irq = 1) is a Microblaze UARTliternStarting kswapdrnRAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksizernuclinux[mtd]: RAM probe address=0x2019f4cc size=0xe000rnuclinux[mtd]: root filesystem index=0rnVFS: Mounted root (romfs filesystem) readonly.rnFreeing init memory: 36Krnwarning: /sbin/init passed /*调试信息输出*/rnwarning: /etc/init passed /*调试信息输出*/rnrn通过XMD下载image.elf后得到如下信息:rnsection,.text:0x20100000-0x20171360rnsection,.intv:0x20171360-0x201713c8rnsection,.init:0x20179000-0x20182000rnsection,.data:0x201713c8-0x20178020rnsection,.bss:0x20182000-0x2019f4ccrnsection,.romfs:0x20182000-0x20190000rnrnsetting pc with program start addr = 0x20100000rnrn我接触uclinux不久,望请高人指点一下,谢谢!rn
WindowsXP 启动异常--在登录界面停止不动
我在机子上装了两个XP系统,其中一个可以正常使用;rn但另一个新装的,用过几次,现在启动时总是停在登录界面(就是类似进度条一直来回移动那个画面),安全模式下也能进去。rn到底是什么原因呢,我现在该怎么解决?
Intel OPEN_CL 编译FPGA停止不动?
使用Intel 17.1 open CL window7系统,按照手册搭建好环境,编译 板卡 test ,编译不动,也不报错,一直停在这:rnrnF:\open_CL_inst\17.1\hld\board\c5soc\device_test>aoc hello_world.clrnaoc: Running OpenCL parser....rnaoc: Optimizing and doing static analysis of code...rnCompiling for FPGA. This process may take a long time, please be patient.rnrnrn停在这一天也没动,电脑资源利用也没有什么变化,求大神指导rnrn电脑配置 8G内存,I5 第一代四核
关于控制台输出问题,程序停止不动
我写了一个程序,该程序涉及的内容太多,不好张贴,是多线程的,定时执行,并且每隔8秒中执行一次查询,并输出其中一个值,我在命令行下运行,在程序刚开始的时候能正常输出,但当程序运行一段时间后就停止了,不输出,但是我在控制台上回车后就可以输出了,是怎么回事?
crystal打印时出现对话框后停止
各位高人,小弟有个问题请教,我的水晶报表在打印时,数据都显示出来了,但点击打印按钮后出现那个打印对话框后就停止了,而且对话框中显示似乎有什么没有加载进去的方框图标,我感觉似乎是缺少什么插件,但一直没有搞定,请各位帮一帮忙,谢谢
训练样本和测试样本
一, 训练样本和测试样本 训练样本的目的是 数学模型的参数,经过训练之后,可以认为你的模型系统确立了下来。 建立的模型有多好,和真实事件的差距大不大,既可以认为是测试样本的目的。 一般训练样本和测试样本相互独立,使用不同的数据。 网上有人说测试样本集和验证样本集不一样,测试样本集数据主要用于模型可靠程度的检验,验证样本集的样本数据要在同样条件下,再另外采集一些数据用来对模型的准确性进行
训练样本分类
已知训练样本的特征和测试样本的特征,函数返回一个分类结果classification
创建训练样本
《ENVI 5.X 遥感影像处理入门实战教程》以ENVI5.3版本进行实战教学(适用ENVI5.X各版本学习),从软件界面开始,到最后的高级应用,适合入门级、初级、中级的人员学习、工作、教师教学参考。
评价训练样本
《ENVI 5.X 遥感影像处理入门实战教程》以ENVI5.3版本进行实战教学(适用ENVI5.X各版本学习),从软件界面开始,到最后的高级应用,适合入门级、初级、中级的人员学习、工作、教师教学参考。
手写数字识别训练样本
包含0到9的符合中国人手写习惯的数字样本,可以用来训练分类器,尤其适合于深度学习中的卷积神经网络,由于上传文件不能大于50M,故此样本为其中一部分,读者可仿照样子自己制作样本
车牌识别训练样本
提供了车牌字符的训练样本,主要应用于基于神经网络的车牌识别问题!
性别识别训练样本
性别识别训练样本,与《C++开发人脸性别识别》系列教程相配套
训练样本背景图片
opencv训练样本背景图片,供学习人工智能之用,正样本图片正在整理中,整理好后会共享给大家。
机器学习训练样本
机器学习训练样本part1, fcis_coco-0000.params.00000003
Opencv 在使用 resize时出现openclipboard失败
在通过VS2017使用opencv的图片大小变化函数resize()时出现openclipboard失败,各位大佬知道怎么回事不?rn[img=https://img-bbs.csdn.net/upload/201801/22/1516614108_778247.png][/img]rn// ConsoleApplication4.cpp: 定义控制台应用程序的入口点。rn//rnrn#include "stdafx.h"rn#include rn#include rnrn//#include rn//#include rn//#include rn#include rnrnrnusing namespace cv;rnrnint main()rnrn // 载入图档rn Mat image1 = imread("C:\\Users\\chenhj\\Desktop\\3.jpg");rn Mat logo = imread("C:\\Users\\chenhj\\Desktop\\2.png");rnrn Mat image = image1, opencvlogo;rnrn // 缩小圆图成Size(80, 64)rn resize(logo, opencvlogo, Size(50, 50));rnrn namedWindow("Image 1", CV_WINDOW_AUTOSIZE);rnrn // 定义图有兴趣的区域(Region Of Interest, ROI)rn Mat imageROI;rnrn // Rect(x, y, col, row)rn imageROI = image(Rect(420, 420, 80, 64));rnrn imshow("Image 1", opencvlogo);rnrn // 加入商标rn addWeighted(imageROI, 1.0, opencvlogo, 0.3, 0., imageROI);rnrn // 显示结果rn namedWindow("with logo");rn imshow("with logo", image);rnrn rn waitKey();rnrn return 0;rnrn
关于opencv训练时出现的问题。上图
代码为:opencv_traincascade.exe -data data -vec pos\pos.vec -bg neg\neg.dat -numPos 400 -numNeg 880 -numStages 15 -w 20 -h 20 -minHitRate 0.9999 -maxFalseAlarmRate 0.5 -mode ALL -precalcValBufSize 256 -precalcIdxBufSize 256rnpausern查了下,据说是相对路径的问题,但是处理了很久,都没有解决!只能在这里求教大神了
下载opencv时出现msvcprtd.lib打不开的错误
 弄了两天的问题终于还是问了高人才解决了,拿出来分享一下 ———————————————————————————————————————————————————————————————————————— 错误是这样的。 —————————————————————————————————————————————————————————————————————— 问题
VS2013环境下学习OpenCV时出现的一些问题
1.waitKey(0);语句不起作用。 #include #include using namespace cv; using namespace std; int main() { Mat M(2, 2, CV_8UC3, Scalar(0, 0, 255)); cout << "M=" << endl << " " << M << endl << endl; waitKey
opencv处理灰度图时出现的问题
最近在对图片进行灰度化时,只用cvCvtColor(img,dst,CV_RGB2GRAY);时遇到类似这样的错误 Unsupported format or combination of formats(Unsupported combination of input/output formats)in function cvConvertImage,C:\User\VP\opencv\otherlibs\highguiutils.cpp(573)(这是一个弹出的提示框)但是如果在cvCvtColor(img,dst,CV_RGB2GRAY);后面加上cvCvtColor(dst,img,CV_GRAY2RGB)就可以运行。可是我需要的是灰度图,我需要在灰度图的基础上进行操作。rn这块的主要代码如下:rnIplImage* image= cvCreateImage( cvGetSize(lefteye), 8, 1 ); //创建灰度图rncvZero( image );rnIplImage* left= cvCreateImage( cvGetSize(lefteye), 8, 3 ); //创建彩色图rncvZero( left ); rncvCvtColor(lefteye, image, CV_BGR2GRAY); //色彩空间转换rncvCvtColor(image, left, CV_GRAY2BGR);rncvThreshold( left, left,45, 255, CV_THRESH_BINARY);rncvSmooth(left,left,CV_GAUSSIAN,3,0,0);//平滑操作rncvErode(left,left);//腐蚀操作rncvDilate(left, left);//膨胀操作rnShowImage(left,IDC_SHOWLEFT);//在后面的窗口中显示rn其中lefteye是我传进来的图片,将cvCvtColor(image, left, CV_GRAY2BGR);屏蔽掉就出现上面的问题,加上就没有问题,麻烦看下,谢谢
使用opencv时出现Permission denied
在使用opencv时出现rnfatal error C1083: Cannot open include file: 'opencv/highgui.h': No such file or directoryrn1>includern1>c1xx : fatal error C1083: Cannot open source file: 'E:\OpenCV2.1\include': Permission deniedrn不明白是怎么回事,求大家指点
当Anaconda出现界面卡死不动时,处理方法
问题: File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 284, 界面一直显示add feature channels不动 解决: 删除C:\Users\Server目录下的.condarc文件,估计由于添加的清华镜像源(最近清华关闭了Ana...
Sql 2000出现停止
Sql Server 2000 经常出现停止的错误。rn查看日志:rn2008-10-03 02:16:10.40 server Microsoft SQL Server 2000 - 8.00.194 (Intel X86) rn Aug 6 2000 00:57:48 rn Copyright (c) 1988-2000 Microsoft Corporationrn Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)rnrn2008-10-03 02:16:10.40 server Copyright (C) 1988-2000 Microsoft Corporation.rn2008-10-03 02:16:10.40 server 保留所有权利。rn2008-10-03 02:16:10.40 server 服务器进程 ID 是 1724。rn2008-10-03 02:16:10.40 server 将 SQL Server 消息记录在文件“C:\Program Files\Microsoft SQL Server\MSSQL\log\ERRORLOG”中。rn2008-10-03 02:16:10.45 server SQL Server 正在以优先级“normal”(已检测到 2 CPUs)启动。rn2008-10-03 02:16:10.49 server 已为 thread 模式处理而配置了 SQL Server。rn2008-10-03 02:16:10.49 server 使用 dynamic 锁分配。[2500] 锁块,[5000] 锁所有者块。rn2008-10-03 02:16:10.53 server 尝试初始化分布式事务处理协调器。rn2008-10-03 02:16:13.59 spid4 启动数据库“master”。rn2008-10-03 02:16:15.21 server 正在使用“SSNETLIB.DLL”版本“8.0.194”。rn2008-10-03 02:16:15.21 spid5 启动数据库“model”。rn2008-10-03 02:16:15.26 spid4 服务器名称是“6K63ZGCR68S5FOA”。rn2008-10-03 02:16:15.26 spid8 启动数据库“msdb”。rn2008-10-03 02:16:15.26 spid9 启动数据库“pubs”。rn2008-10-03 02:16:15.29 spid10 启动数据库“Northwind”。rn2008-10-03 02:16:15.34 spid11 启动数据库“zyue_db815”。rn2008-10-03 02:16:15.39 spid12 启动数据库“jxdpw_db”。rn2008-10-03 02:16:15.57 spid13 启动数据库“zgdriver_db”。rn2008-10-03 02:16:15.71 spid14 启动数据库“zgjp_db1”。rn2008-10-03 02:16:17.04 spid5 清除 tempdb 数据库。rn2008-10-03 02:16:17.43 spid12 恢复操作正在对数据库 'jxdpw_db'(8)执行检查点操作。rn2008-10-03 02:16:17.49 spid14 恢复操作正在对数据库 'zgjp_db1'(10)执行检查点操作。rn2008-10-03 02:16:18.43 spid13 恢复操作正在对数据库 'zgdriver_db'(9)执行检查点操作。rn2008-10-03 02:16:18.54 spid11 恢复操作正在对数据库 'zyue_db815'(7)执行检查点操作。rn2008-10-03 02:16:18.78 server SQL Server 正在监听 Shared Memory, Named Pipes。rn2008-10-03 02:16:18.79 server SQL Server 已准备好进行客户端连接rn2008-10-03 02:16:19.51 spid5 启动数据库“tempdb”。rn2008-10-03 02:16:19.67 spid4 恢复完成。rn2008-10-03 02:18:31.10 spid4 由于服务控制管理器发出了“停止”请求,SQL Server 将终止运行。rnrnrn在线等!!
关于opencv haar训练样本大小如何选取的问题
以人脸数据为例子,假如待检测的图片人脸大小平均是100*100像素,那么用于opencv_createsamples.exe生成vec文件的正样本的大小是多少合适,是否越接近100*100检测效果就越好?具体怎么选取请说明原因。rn注:不要说因为opencv官方例子是24*24,这个我知道。
OpenCV Haar分类器车辆识别模型训练样本和训练结果
包含车辆正负样本,以及opencv_createsamples.exe、opencv_traincascade.exe以及训练样本结果
本地虚拟机停止时自动停止hadoop集群
在学习过程中,本地部署的VMware虚拟机,不可避免的需要关机,如果关机前忘记停止hadoop集群,可能导致一些意想不到的问题 下面是讲hadoop集群一键停止脚本加入到关机执行计划中,使操作系统正产关机前自动停止hadoop集群 准备一个停止脚本放在/etc/init.d目录:stopha.sh vi /etc/init.d/stopha.sh echo “Stop Zookeeper” s...
qt用opencv进行识别时出现程序异常停止错误,求各位大神解答。
qt用opencv进行识别时出现程序异常停止错误 pro文件: ————————————————- # Project created by QtCreator 2018-07-28T20:39:51 # ————————————————- QT += core gui QT += multimedia QT += multimediawidgets ...
solaris安装时停止
我在插入光盘后,在出现选择安装方式时,即1 solaris interactive (default) 选择之前,电脑就不动了,尝试了几次,都是这个情况,换成硬盘安装,还是这样,后来又下载了一个iso文件,用md5校验器校验过,iso文件没有损坏,但是还是同样的问题,请问怎样解决
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表