CascadeClassifier人脸截取时出现错误

在尝试练习用CascadeClassifier做人脸截取的时候一直报错,而且是同一个错误:
SystemError: returned a result with an error set
请问大佬这是什么情况?

以下练习代码源自网络

mport cv2
import sys
import os

def getface(img):

    path = "E:/deeplearning/haarcascades/haarcascade_frontalface_default.xml"
        hc = cv2.CascadeClassifier(path)
        faces = hc.detectMultiScale(img)#得到人脸个数以及区域
    i=0
    while i <len(faces): #对每张脸进行输出
        imgROI = img[faces[i][1]:faces[i][1] + faces[i][3], faces[i][0]:faces[i][0] + faces[i][2]]# 前者为高度,后者为宽度
        cv2.imshow("face_default", imgROI)#创建窗口显示图片
        k = cv2.waitKey(0)  # 无限期等待输入
        i = i + 1


img = cv2.imread("E:/deeplearning/picture/2.jpg")#jpg放在.py路径下
getface(img)

---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
error: OpenCV(3.4.4) C:\projects\opencv-python\opencv\modules\core\src\persistence_c.cpp:388: error: (-49:Unknown error code -49) Input file is empty in function 'cvOpenFileStorage'


During handling of the above exception, another exception occurred:

SystemError                               Traceback (most recent call last)
<ipython-input-8-fba8e5a3ccdd> in <module>()
     20 
     21 img = cv2.imread("E:/deeplearning/picture/2.jpg")#jpg放在.py路径下
---> 22 getface(img)

<ipython-input-8-fba8e5a3ccdd> in getface(img)
      7     path = "E:/deeplearning/haarcascades/haarcascade_frontalface_default.xml" #分类器类别,路径与.py一致
      8 
----> 9     hc = cv2.CascadeClassifier(path)#识别分类器
     10 
     11     # 人脸区域探测 裁剪 i可以处理 如果一张图像中多个人脸的情况

SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set

1个回答

你在下载python的地址里找到haarcascade_frontalface_alt2.xml文件,例如:D:\Python37\Lib\site-packages\cv2\data\haarcascade_frontalface_alt2.xml.我之前在网上找了很多方法,无论是把中文路径都改了,还是把路径换成绝对路径都没用,最后在python自带的CV2路径下找到了分类器文件。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
文件流读取时出现错误
各位大虾,我做的一个程序,里面出现了,这样一个异常,就是在关闭文件时,出现java.lang.ArrayIndexOutOfBoundsException: Offset out of boundsrn的异常,相应的错误日志如下:rn10-26 09:42:33.463: INFO/global(2089): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.463: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.483: WARN/System.err(2089): java.lang.InterruptedExceptionrn10-26 09:42:33.483: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.513: INFO/global(2089): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.513: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.563: ERROR/PlayerDriver(1189): Seek is called in the prepared state, hence put the player to Pause statern10-26 09:42:33.603: VERBOSE/MediaPlayer(2089): Info (1,44)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): java.lang.ArrayIndexOutOfBoundsException: Offset out of boundsrn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:81)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:134)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:174)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:188)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthInputStream.java:121)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.conn.BasicManagedEntity.streamClosed(BasicManagedEntity.java:179)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:266)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:213)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at com.ophone.reader.ui.StreamingMediaPlayer.downloadAudioIncrement(StreamingMediaPlayer.java:627)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at com.ophone.reader.ui.StreamingMediaPlayer$4.run(StreamingMediaPlayer.java:467)rn10-26 09:42:33.753: ERROR/AndroidRuntime(2089): at java.lang.Thread.run(Thread.java:1096)rn10-26 09:42:33.753: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.783: VERBOSE/MediaPlayer(2089): Info (1,44)rn10-26 09:42:33.783: VERBOSE/MediaPlayer(2089): Info (1,44)rn10-26 09:42:33.793: INFO/global(2089): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.803: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.883: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.883: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.883: INFO/global(2089): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.rn10-26 09:42:33.963: INFO/global(2089): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.rn请问,他上面提到的,rnDefault buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.rn是上面意思啊。谢谢。
CascadeClassifier
该文档拥有详细的人脸检测xml文件以及VS代码,可供你学习opencv人脸检测技术。
OpenCV学习笔记(一):使用CascadeClassifier检测人脸
内容说明 直接参考了OpenCV 3.0的示例程序,程序为opencv\sources\samples\cpp\tutorial_code\objectDetection目录下的objectDetection.cpp文件。本文使用了C++类进行封装 实验结果 原始图像与识别结果:   程序代码 1、 OpenCVTest.cpp #include "stdaf
SATA读取时偶尔出现错误
状况如下:我们做的板子能支持12块高速SATA硬盘(通过PCIE转SATA连接的硬盘),但是在读硬盘的时候 偶尔 会出现错误,写的时候不会出现错误。请各位给分析一下大概是什么原因。是不是高速的SATA硬盘对板子的硬件电路要求特别高才产生的这种现象:rnrnata4.00: failed to read SCR 1 (Emask=0x40)rnata4.01: failed to read SCR 1 (Emask=0x40)rnata4.02: failed to read SCR 1 (Emask=0x40)rnata4.03: failed to read SCR 1 (Emask=0x40)rnata4.15: exception Emask 0x4 SAct 0x0 SErr 0x400000 action 0x6 frozenrnata4.15: SError: Handshk rnata4.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.03: exception Emask 0x100 SAct 0xf SErr 0x0 action 0x6 frozenrnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:00:3f:fc:00/00:00:00:00:00/40 tag 0 ncq 65536 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:08:bf:fc:00/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:10:3f:fd:00/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:18:bf:fd:00/00:00:00:00:00/40 tag 3 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.15: hard resetting linkrnata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata4.00: hard resetting linkrnata4.00: SATA link down (SStatus 0 SControl 320)rnata4.01: hard resetting linkrnata4.01: SATA link down (SStatus 0 SControl 320)rnata4.02: hard resetting linkrnata4.02: SATA link down (SStatus 0 SControl 320)rnata4.03: hard resetting linkrnata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata4.03: configured for UDMA/133rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4: EH completernata1.00: failed to read SCR 1 (Emask=0x40)rnata1.01: failed to read SCR 1 (Emask=0x40)rnata1.02: failed to read SCR 1 (Emask=0x40)rnata1.03: failed to read SCR 1 (Emask=0x40)rnata1.15: exception Emask 0x4 SAct 0x0 SErr 0x400000 action 0x6 frozenrnata1.15: SError: Handshk rnata1.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.03: exception Emask 0x100 SAct 0xf SErr 0x0 action 0x6 frozenrnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/10:00:af:0d:01/00:00:00:00:00/40 tag 0 ncq 8192 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/70:08:3f:0d:01/00:00:00:00:00/40 tag 1 ncq 57344 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:10:bf:0d:01/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/70:18:3f:0e:01/00:00:00:00:00/40 tag 3 ncq 57344 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.15: hard resetting linkrnata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata1.00: hard resetting linkrnata1.00: SATA link down (SStatus 0 SControl 320)rnata1.01: hard resetting linkrnata1.01: SATA link down (SStatus 0 SControl 320)rnata1.02: hard resetting linkrnata1.02: SATA link down (SStatus 0 SControl 320)rnata1.03: hard resetting linkrnata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata1.03: configured for UDMA/133rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1: EH completernata1.00: failed to read SCR 1 (Emask=0x40)rnata1.01: failed to read SCR 1 (Emask=0x40)rnata1.02: failed to read SCR 1 (Emask=0x40)rnata1.03: failed to read SCR 1 (Emask=0x40)rnata1.15: exception Emask 0x4 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.00: failed to read SCR 1 (Emask=0x40)rnata4.01: failed to read SCR 1 (Emask=0x40)rnata4.02: failed to read SCR 1 (Emask=0x40)rnata4.03: failed to read SCR 1 (Emask=0x40)rnata4.15: exception Emask 0x4 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.03: exception Emask 0x100 SAct 0xf SErr 0x0 action 0x6 frozenrnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:00:3f:25:01/00:00:00:00:00/40 tag 0 ncq 65536 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:08:bf:25:01/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:10:3f:26:01/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:18:bf:26:01/00:00:00:00:00/40 tag 3 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.15: hard resetting linkrnata1.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.03: exception Emask 0x100 SAct 0x2 SErr 0x0 action 0x6 frozenrnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:08:3f:27:01/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.15: hard resetting linkrnata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata4.00: hard resetting linkrnata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata1.00: hard resetting linkrnata4.00: SATA link down (SStatus 0 SControl 320)rnata4.01: hard resetting linkrnata1.00: SATA link down (SStatus 0 SControl 320)rnata1.01: hard resetting linkrnata4.01: SATA link down (SStatus 0 SControl 320)rnata4.02: hard resetting linkrnata1.01: SATA link down (SStatus 0 SControl 320)rnata1.02: hard resetting linkrnata4.02: SATA link down (SStatus 0 SControl 320)rnata4.03: hard resetting linkrnata1.02: SATA link down (SStatus 0 SControl 320)rnata1.03: hard resetting linkrnata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata4.03: configured for UDMA/133rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4: EH completernata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata1.03: configured for UDMA/133rnata1.03: device reported invalid CHS sector 0rnata1: EH completernata1.00: failed to read SCR 1 (Emask=0x40)rnata1.01: failed to read SCR 1 (Emask=0x40)rnata1.02: failed to read SCR 1 (Emask=0x40)rnata1.03: failed to read SCR 1 (Emask=0x40)rnata1.15: exception Emask 0x4 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.03: exception Emask 0x100 SAct 0x7 SErr 0x0 action 0x6 frozenrnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:00:bf:41:01/00:00:00:00:00/40 tag 0 ncq 65536 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:08:3f:41:01/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:10:3f:42:01/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.15: hard resetting linkrnata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata1.00: hard resetting linkrnata1.00: SATA link down (SStatus 0 SControl 320)rnata1.01: hard resetting linkrnata1.01: SATA link down (SStatus 0 SControl 320)rnata1.02: hard resetting linkrnata1.02: SATA link down (SStatus 0 SControl 320)rnata1.03: hard resetting linkrnata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata1.03: configured for UDMA/133rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1: EH completern
处理文章截取时对html的处理
package people.util; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.jsp.JspException; import javax.se...
屏幕截取时,GDI设备描述表的一个问题。
想通过GDI进行屏幕截取,如果程序以exe方式,普通账户方式运行,截取可以成功。rn但是如果以后台服务方式运行,却不能得到屏幕截取。我怀疑是后台方式账户是system的缘故。以上语句无法获得GDI设备描述表。rn hScrDC := GetDC(0);//或者下句。rn //hScrDC := GetDC(GetDesktopWindow);rn不知道其他同学碰到此问题,应该如何解决?rnps:系统为win7 32位。
关于图片截取时的内存泄露问题
[code=C/C++]-(void)readPicturern UIImage *image;rn switch (roleType) rn case ROLE_PLAYER:rn image=[UIImage imageNamed:@"man.png"];rn break;rn default:rn break;rn rn rn int subImageLocationX;rn if (direction.x==-1&&direction.y==0) rn subImageLocationX=0;rn else if (direction.x==1&&direction.y==0) rn subImageLocationX=IMAGE_SIZE;rn else if (direction.x==0&&direction.y==1) rn subImageLocationX=IMAGE_SIZE*2;rn else if (direction.x==0&&direction.y==-1) rn subImageLocationX=IMAGE_SIZE*3;rn else if (direction.x==-1&&direction.y==1) rn subImageLocationX=IMAGE_SIZE*4;rn else if (direction.x==1&&direction.y==-1) rn subImageLocationX=IMAGE_SIZE*5;rn else if (direction.x==1&&direction.y==1) rn subImageLocationX=IMAGE_SIZE*6;rn else if (direction.x==-1&&direction.y==-1) rn subImageLocationX=IMAGE_SIZE*7;rn rn rn rn rn [imageArray removeAllObjects];rn for (int i=0; i<14; i++) rn CGRect subImageRect=CGRectMake(subImageLocationX, i*IMAGE_SIZE, IMAGE_SIZE, IMAGE_SIZE);rn CGImageRef imageRef=image.CGImage;rn CGImageRef subImageRef=CGImageCreateWithImageInRect(imageRef, subImageRect);rn UIGraphicsBeginImageContext(CGSizeMake(IMAGE_SIZE, IMAGE_SIZE));rn CGContextRef context=UIGraphicsGetCurrentContext();rn CGContextDrawImage(context, subImageRect, subImageRef);rn UIImage *subImage=[UIImage imageWithCGImage:subImageRef];rn UIGraphicsEndImageContext();rn [imageArray addObject:subImage];rn rn rn rn rn [imageView setImage:[imageArray objectAtIndex:0]];rn[/code]rn这是我从一张大图上截取部分图片时的代码,但在模拟器上运行时每次调用readPicture都会分配大量的内存,用leaks查泄露时提示CGImage和CGDataProvider造成泄露,定位的语句是UIImage *subImage=[UIImage imageWithCGImage:subImageRef];造成泄露,但这是由系统负责分配的内存,我又无法释放。我尝试使用autoreleasepool来释放,但也没有用。能不能麻烦各位帮看一下,或者大家有没有其他办法在iphone上从一张图片上截取部分图片?谢谢啦~
提交数据,提取时错误!
提交数据时,数据库里得到数据,提取时发生错误,必须关闭网页重新打开才能显示数据,求高手提示!!rn下面时提取数据时用到的代码:rnrn rnrnrn rnrnfunction loadSeries(bid)rn rn series.src="/xml/Serial_xml.asp?brand="+bid;rn //alert(series.src)rnrnrn下面是Serial_xml.asp文件里的代码:rnrnrn<%rnbrand=trim(request("brand"))rnrnresponse.write ""&chr(13)rnresponse.write ""&chr(13)rnif len(brand)=6 thenrnset rs= Server.CreateObject("adodb.recordset")rnsql="select id,cartype from t_cars_type where left(id,6)='"&brand&"' order by cartype asc"rnrnrs.open sql,conn,1,1rnresponse.write ""&rs.recordcount&""&chr(13)rndo while not rs.eofrn response.write ""&chr(13)rnrs.movenextrnlooprnrs.closernset rs=nothingrnend ifrnresponse.write ""&chr(13)rncloseConnrn %>rnrn
利用OpenCV的级联分类器类CascadeClassifier和Haar特征实现人脸区域的检测
级联分类器是将若干个分类器进行连接,从而构成一种多项式级的强分类器。级联分类器使用前要先进行训练,怎么训练?用目标的特征值去训练,对于人脸来说,通常使用Haar特征进行训练。 Haar特征是由M.Oren,C.Papageorgious等人在论文“Pedestrian detection using wavelet templates”中首次提出的,后续经过改进与发展,C.H.Messom和A....
0058-用OpenCV的级联分类器CascadeClassifier做人脸和人眼的识别
级联分类器可以用来识别人脸区域和人眼区域,OpenCV提供了类CascadeClassifier,它是Opencv中做人脸检测的时候的一个级联分类器,相关的原理请大家自行查阅相关资料。 使用级联分类器时要先加载训练好的xml分类器文件。 示例代码如下: 代码中用的视频下载链接:https://pan.baidu.com/s/1bo7rRtl 密码:6zyj 代码是用到的xml分类器文件下载链接...
cookie数组的存储和读取时出现的错误 求高手帮忙
using System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnpublic partial class WebUserControl : System.Web.UI.UserControlrnrn protected void Page_Load(object sender, EventArgs e)rn rnrnrn if (!IsPostBack)rn rn Class1 aas = new Class1();rn // string id= Request.QueryString["id"];rn string id = "1";rn string str = "select * from member where id>@id";rn ;rn SqlConnection con = new SqlConnection("Data Source=ZH-B0140C4856DE;DataBase=ycw;User ID=sa;PWD=owen2000");rn con.Open();rn SqlDataAdapter ssd = new SqlDataAdapter(str, con);rnrnrn SqlParameter[] parms = aas.MakeInParam("@id", SqlDbType.BigInt, 50, id) ;rnrnrn ssd.SelectCommand.CommandType = CommandType.Text;rn if (parms != null)rn rn foreach (SqlParameter pp in parms)rn ssd.SelectCommand.Parameters.Add(pp);rnrn rn DataSet ds = new DataSet();rn ssd.Fill(ds);rn DataList1.DataSource = ds.Tables[0].DefaultView;rn DataList1.DataKeyField = "id";rn DataList1.DataBind();rn con.Close();rnrnrnrn rnrn rn protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)rn rn string[] userid = "dfd", "123" ; rnrn HttpCookie cookie = new HttpCookie("aspcn");rn if ("redirect".Equals(e.CommandName))rn rn this.Label3.Text = "hahaha";rnrn ImageButton ib = (ImageButton)e.Item.FindControl("ImageButton1");rn string id = ((Label)e.Item.FindControl("Label1")).Text;rnrn rn cookie.Values.Add("id", id);rn cookie.Values.Add("userid", userid);rnrn Response.AppendCookie(cookie);rn Response.Redirect("cookie.aspx?id="+id+"");rnrnrnrnrn rnrnrnrn rnrnrnrn错误 1 出处rn cookie.Values.Add("userid", userid); 中的cookiern错误1 rn与“System.Collections.Specialized.NameValueCollection.Add(string, string)”最匹配的重载方法具有一些无效参数rnrn错误2出处rn cookie.Values.Add("userid", userid); 中的useridrn错误 2 参数“2”: 无法从“string[]”转换为“string” rnrnrnrnrnrnrnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnrnpublic partial class cookie : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rn if (!IsPostBack)rn rn string id = Request.Cookies["aspcn"]["id"].ToString();rnrn for (int j = 0; j < cookie.Count; j++)rn rnrn rnrn Response.Write("子键名=" + Cookies["aspcn"]["userid"] + " ");rn rn this.Label1.Text = id;rn rn rn rnrnrnrnrn错误3出处 for (int j = 0; j < cookie.Count; j++) 中的 countrn错误 3 “cookie”并不包含“Count”的定义 rnrnrn错误4 rn错误 4 当前上下文中不存在名称“Cookies” rnrn哪位高手帮我看看这几个错误怎么改 帮我把改的代码贴出来rn谢谢rn
python 对文本数据关键词提取时出现错误
#!/usr/bin/env pythonrn# -*- coding:utf-8 -*-rnimport pandas as pdrnimport numpy as nprnimport jiebarnimport nltkrnimport jieba.posseg as psegrnrndf = pd.read_csv('D:\csv_test.csv',names=['id','cont','type'])rnrncont = df['cont']rntagall=[]rnfor t in cont:rn tags = jieba.analyse.extract_tags(t,10)rn tagall.append(tags)rn dist = nltk.FreqDist(tagall)rn fea_words = dist.keys()[:100]rn print fea_wordsrnrn出现:E:\Python27\python.exe C:/Users/Administrator/PycharmProjects/Ma/m1.pyrnsys:1: DtypeWarning: Columns (1) have mixed types. Specify dtype option on import or set low_memory=False.rnTraceback (most recent call last):rn File "C:/Users/Administrator/PycharmProjects/Ma/m1.py", line 14, in rn tags = jieba.analyse.extract_tags(t,1)rnAttributeError: 'module' object has no attribute 'analyse'rn怎么解决???rnrn
WebFace 错误人脸
0000157/057.jpg
CascadeClassifier级联分类器的使用
CascadeClassifier检测的基本原理: 参考:https://blog.csdn.net/qq_37791134/article/details/80583726 级联分类器类的检测框架简而言之就是一个多尺度缩放+滑动窗口遍历搜索的框架。在CascadeClassifier中包含detectMultiScale和detectSingleScale成员函数,分别对应多尺度和单尺度检测...
参数文件在websphere中读取时出现乱码
参数文件, 在websphere环境中,读取时,出现了乱码, 修改参数文件的编码格式或者修改websphere的默认编码都不能解决问题, 在修改完websphere的默认编码之后,这个参数文件,可以读取,但是文件导入等其它功能,全部出现乱码,所以这个是不可取的,只能在系统中,用程序来读取参数文件,并转换成byte数组,再读取参数文件,使得系统来适应发布服务器的环境 [code=&quot;java&quot;] ...
SATA读取时 偶尔 发生错误
如题:状况如下:我们做的板子能支持12块高速SATA硬盘(通过PCIE转SATA连接的硬盘),但是在读硬盘的时候 偶尔 会出现错误,写的时候不会出现错误。请各位给分析一下大概是什么原因。是不是高速的SATA硬盘对板子的硬件电路要求特别高才产生的这种现象:rnrnrnrnata4.00: failed to read SCR 1 (Emask=0x40)rnata4.01: failed to read SCR 1 (Emask=0x40)rnata4.02: failed to read SCR 1 (Emask=0x40)rnata4.03: failed to read SCR 1 (Emask=0x40)rnata4.15: exception Emask 0x4 SAct 0x0 SErr 0x400000 action 0x6 frozenrnata4.15: SError: Handshk rnata4.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.03: exception Emask 0x100 SAct 0xf SErr 0x0 action 0x6 frozenrnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:00:3f:fc:00/00:00:00:00:00/40 tag 0 ncq 65536 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:08:bf:fc:00/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:10:3f:fd:00/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:18:bf:fd:00/00:00:00:00:00/40 tag 3 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.15: hard resetting linkrnata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata4.00: hard resetting linkrnata4.00: SATA link down (SStatus 0 SControl 320)rnata4.01: hard resetting linkrnata4.01: SATA link down (SStatus 0 SControl 320)rnata4.02: hard resetting linkrnata4.02: SATA link down (SStatus 0 SControl 320)rnata4.03: hard resetting linkrnata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata4.03: configured for UDMA/133rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4: EH completernata1.00: failed to read SCR 1 (Emask=0x40)rnata1.01: failed to read SCR 1 (Emask=0x40)rnata1.02: failed to read SCR 1 (Emask=0x40)rnata1.03: failed to read SCR 1 (Emask=0x40)rnata1.15: exception Emask 0x4 SAct 0x0 SErr 0x400000 action 0x6 frozenrnata1.15: SError: Handshk rnata1.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.03: exception Emask 0x100 SAct 0xf SErr 0x0 action 0x6 frozenrnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/10:00:af:0d:01/00:00:00:00:00/40 tag 0 ncq 8192 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/70:08:3f:0d:01/00:00:00:00:00/40 tag 1 ncq 57344 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:10:bf:0d:01/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/70:18:3f:0e:01/00:00:00:00:00/40 tag 3 ncq 57344 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.15: hard resetting linkrnata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata1.00: hard resetting linkrnata1.00: SATA link down (SStatus 0 SControl 320)rnata1.01: hard resetting linkrnata1.01: SATA link down (SStatus 0 SControl 320)rnata1.02: hard resetting linkrnata1.02: SATA link down (SStatus 0 SControl 320)rnata1.03: hard resetting linkrnata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata1.03: configured for UDMA/133rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1: EH completernata1.00: failed to read SCR 1 (Emask=0x40)rnata1.01: failed to read SCR 1 (Emask=0x40)rnata1.02: failed to read SCR 1 (Emask=0x40)rnata1.03: failed to read SCR 1 (Emask=0x40)rnata1.15: exception Emask 0x4 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.00: failed to read SCR 1 (Emask=0x40)rnata4.01: failed to read SCR 1 (Emask=0x40)rnata4.02: failed to read SCR 1 (Emask=0x40)rnata4.03: failed to read SCR 1 (Emask=0x40)rnata4.15: exception Emask 0x4 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata4.03: exception Emask 0x100 SAct 0xf SErr 0x0 action 0x6 frozenrnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:00:3f:25:01/00:00:00:00:00/40 tag 0 ncq 65536 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:08:bf:25:01/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:10:3f:26:01/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.03: failed command: READ FPDMA QUEUEDrnata4.03: cmd 60/80:18:bf:26:01/00:00:00:00:00/40 tag 3 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata4.03: status: DRDY rnata4.15: hard resetting linkrnata1.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.03: exception Emask 0x100 SAct 0x2 SErr 0x0 action 0x6 frozenrnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:08:3f:27:01/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.15: hard resetting linkrnata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata4.00: hard resetting linkrnata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata1.00: hard resetting linkrnata4.00: SATA link down (SStatus 0 SControl 320)rnata4.01: hard resetting linkrnata1.00: SATA link down (SStatus 0 SControl 320)rnata1.01: hard resetting linkrnata4.01: SATA link down (SStatus 0 SControl 320)rnata4.02: hard resetting linkrnata1.01: SATA link down (SStatus 0 SControl 320)rnata1.02: hard resetting linkrnata4.02: SATA link down (SStatus 0 SControl 320)rnata4.03: hard resetting linkrnata1.02: SATA link down (SStatus 0 SControl 320)rnata1.03: hard resetting linkrnata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata4.03: configured for UDMA/133rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4.03: device reported invalid CHS sector 0rnata4: EH completernata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata1.03: configured for UDMA/133rnata1.03: device reported invalid CHS sector 0rnata1: EH completernata1.00: failed to read SCR 1 (Emask=0x40)rnata1.01: failed to read SCR 1 (Emask=0x40)rnata1.02: failed to read SCR 1 (Emask=0x40)rnata1.03: failed to read SCR 1 (Emask=0x40)rnata1.15: exception Emask 0x4 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozenrnata1.03: exception Emask 0x100 SAct 0x7 SErr 0x0 action 0x6 frozenrnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:00:bf:41:01/00:00:00:00:00/40 tag 0 ncq 65536 inrn res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:08:3f:41:01/00:00:00:00:00/40 tag 1 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.03: failed command: READ FPDMA QUEUEDrnata1.03: cmd 60/80:10:3f:42:01/00:00:00:00:00/40 tag 2 ncq 65536 inrn res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)rnata1.03: status: DRDY rnata1.15: hard resetting linkrnata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 330)rnata1.00: hard resetting linkrnata1.00: SATA link down (SStatus 0 SControl 320)rnata1.01: hard resetting linkrnata1.01: SATA link down (SStatus 0 SControl 320)rnata1.02: hard resetting linkrnata1.02: SATA link down (SStatus 0 SControl 320)rnata1.03: hard resetting linkrnata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)rnata1.03: configured for UDMA/133rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1.03: device reported invalid CHS sector 0rnata1: EH completern
NUTCH1.0抓取时HADOOP的数据接点错误
我用NUTCH1.0配置分布式抓取,1台MASTAER,10台SLAVER,每台都是4G内存,1T硬盘.但是当我抓取数据是,如果是3个数据接点以内就都正常,如果数据接点超过3个就出现以下错误,那位大哥知道是什么情况吗?(我的系统是ubuntu64位系统)rn2009-05-15 22:47:34,145 ERROR datanode.DataNode - DatanodeRegistration(61.16.54.80:50010, storageID=DS-1055642516-61.16.54.80-50010-1242441578071, infoPort=50075, ipcPort=50020):DataXceiverrnorg.apache.hadoop.hdfs.server.datanode.BlockAlreadyExistsException: Block blk_-6383669944497305101_1003 is valid, and cannot be written to.rn at org.apache.hadoop.hdfs.server.datanode.FSDataset.writeToBlock(FSDataset.java:975)rn at org.apache.hadoop.hdfs.server.datanode.BlockReceiver.(BlockReceiver.java:97)rn at org.apache.hadoop.hdfs.server.datanode.DataXceiver.writeBlock(DataXceiver.java:259)rn at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:103)rn at java.lang.Thread.run(Thread.java:619)rn2009-05-15 22:48:35,300 WARN datanode.DataNode - DatanodeRegistration(61.16.54.80:50010, storageID=DS-1055642516-61.16.54.80-50010-1242441578071, infoPort=50075, ipcPort=50020):Failed to transfer blk_2793279559950989337_1044 to 61.16.54.79:50010 got java.net.SocketException: Original Exception : java.io.IOException: Connection reset by peerrn at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)rn at sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:418)rn at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:519)rn at org.apache.hadoop.net.SocketOutputStream.transferToFully(SocketOutputStream.java:199)rn at org.apache.hadoop.hdfs.server.datanode.BlockSender.sendChunks(BlockSender.java:313)rn at org.apache.hadoop.hdfs.server.datanode.BlockSender.sendBlock(BlockSender.java:400)rn at org.apache.hadoop.hdfs.server.datanode.DataNode$DataTransfer.run(DataNode.java:1108)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.io.IOException: Connection reset by peerirn ... 8 morernrnmaster configrnrnrnrnrnrnrn dfs.block.sizern 134217728rn truernrnrn dfs.data.dirrn /data/filesystem/datarn truernrnrn dfs.datanode.du.reservedrn 1073741824rn truernrnrn dfs.datanode.handler.countrn 3rn truernrnrn dfs.name.dirrn /data/filesystem/namenodern truernrnrn dfs.namenode.handler.countrn 5rn truernrnrn dfs.permissionsrn Truern truernrnrn dfs.replicationrn 3rnrnrn fs.checkpoint.dirrn /data/filesystem/secondary-nnrn truernrnrn fs.default.namern hdfs://ubuntu76:9000rnrnrn fs.trash.intervalrn 1440rn truernrnrn hadoop.tmp.dirrn /tmp/hadoop-$user.namern truernrnrn io.file.buffer.sizern 65536rnrnrn mapred.child.java.optsrn -Xmx1945mrnrnrn mapred.child.ulimitrn 3983360rn truernrnrn mapred.job.trackerrn ubuntu76:9001rnrnrn mapred.job.tracker.handler.countrn 5rn truernrnrn mapred.local.dirrn $hadoop.tmp.dir/mapred/localrn truernrnrn mapred.map.tasks.speculative.executionrn truernrnrn mapred.reduce.parallel.copiesrn 10rnrnrn mapred.reduce.tasksrn 10rnrnrn mapred.reduce.tasks.speculative.executionrn falsernrnrn mapred.tasktracker.map.tasks.maximumrn 1rn truernrnrn mapred.tasktracker.reduce.tasks.maximumrn 1rn truernrnrn tasktracker.http.threadsrn 12rn truernrnrnrnrnslaver configrnrnrnrnrnrnrnrn dfs.block.sizern 134217728rn truernrnrn dfs.data.dirrn /data/filesystem/datarn truernrnrn dfs.datanode.du.reservedrn 1073741824rn truernrnrn dfs.datanode.handler.countrn 3rn truernrnrn dfs.name.dirrn /data/filesystem/namenodern truernrnrn dfs.namenode.handler.countrn 5rn truernrnrn dfs.permissionsrn Truern truernrnrn dfs.replicationrn 3rnrnrn fs.checkpoint.dirrn /data/filesystem/secondary-nnrn truernrnrn fs.default.namern hdfs://ubuntu76:9000rnrnrn fs.trash.intervalrn 1440rn truernrnrn hadoop.tmp.dirrn /tmp/hadoop-$user.namern truernrnrn io.file.buffer.sizern 65536rnrnrn mapred.child.java.optsrn -Xmx1945mrnrnrn mapred.child.ulimitrn 3983360rn truernrnrn mapred.job.trackerrn ubuntu76:9001rnrnrn mapred.job.tracker.handler.countrn 5rn truernrnrn mapred.local.dirrn /data/filesystem/mapred/localrn truernrnrn mapred.map.tasks.speculative.executionrn truernrnrn mapred.reduce.parallel.copiesrn 10rnrnrn mapred.reduce.tasksrn 10rnrnrn mapred.reduce.tasks.speculative.executionrn falsernrnrn mapred.tasktracker.map.tasks.maximumrn 1rn truernrnrn mapred.tasktracker.reduce.tasks.maximumrn 1rn truernrnrn tasktracker.http.threadsrn 12rn truernrnrnrn rn mapred.map.tasksrn 50rn rn rn mapred.reduce.tasksrn 50rn
OpenCV中训练CascadeClassifier(级联分类器)
参考: Cascade Classifier Training [OpenCV3]级联分类器训练——traincascade快速使用详解 级联分类器介绍 文章总概:Cascade分类器全程级联增强弱分类器(boosted cascade of weak classifiers),而使用此分类器主要包括两方面------训练&amp;amp;amp;定位。而麻烦的在于训练,如何训练,正是这篇文章将要介绍的...
【OpenCV3】级联分类器目标检测——cv::CascadeClassifier简介
Cascade级联分类器是一种快速简单的分类方法,opencv2和opencv3中提供了完整的cascade分类器的训练和检测方法,本篇主要介绍下级联分类器的检测方法。
python3__深度学习/机器学习__图像识别:OpenCV之级联分类器CascadeClassifier
1.理论说明 Haar-like矩形特征是用于物体检测的数字图像特征。这类矩形特征模板由两个或多个全等的黑白矩形相邻组合而成,而矩形特征值是白色矩形的灰度值的和减去黑色矩形的灰度值的和,矩形特征对一些简单的图形结构,如线段、边缘比较敏感。如果把这样的矩形放在一个非人脸区域,那么计算出的特征值应该和人脸特征值不一样,所以这些矩形就是为了把人脸特征量化,以区分人脸和非人脸。 以Haar特征分类器...
FreeTextBox输入的数据出现截位现象
在FreeTextBox录入数据后,保存到数据库的时候,只保存了前面的一部分rn数据库是sqlserver2000,保存的到的字段是text型的字段rn
怎么截取到'_' 第二次出现的位置
Xrs_Body_1000090_00.png , 截取这个比如。'_'第二次出现的位置
实时错误 ... 字符串数据,右截位
实时错误 ‘-214727883 (80040E57)rn[Microsoft][ODBC SQL Server Driver]字符串数据,右截位rnrn这是怎么回事啊?
哪有截包软件下截?
哪有截包软件下截?我想截获特定软件的发出和收到包进行分析.rn请告诉我哪个工具比较方便好用,并给出下载地址.
人脸系列:人脸检测、人脸关键点定位、人脸优选、人脸对齐、人脸特征提取、人脸跟踪、人脸活体检测
一、一点想法 缘由:最近想整理下从事人脸方向的所有查阅过的论文,做过的相关实验,因为随着时间的推移,自己总会遗忘当初的一些想法,所以想好好整理下自己的学习笔记。 过程:本系列包括从人脸检测、人脸关键点检测、人脸优选、人脸对齐、再到人脸特征提取的一系系列过程,每个模块都有尝试一些网络结构和方法,因为自己主要部署在嵌入式平台、移动端等设备,所以都是采用轻量级的网络结构,采用Caffe训练,然后采用...
人脸识别系统_人脸注册
    基于上次的人脸检测后,一直纠结人脸注册,照片存放方式,我想到了两种方式,1.数据库存照片存放的路径,2.数据库存放照片的二进制码。但是针对我的毕业设计我想要是存路径的话,万一一不小心图片删除了,岂不是很麻烦,也就是我觉得要是系统迁移的话容易数据丢失(小白想法,其实正常情况下都是直接存的图片路径)。直接存照片的话数据库压力,开销等都比较大。所以最终小白还是选择了存图片路径的方式。     ...
MIT 人脸库 包含人脸与非人脸
MIT 人脸库 包含人脸与非人脸 黑白色 用于人脸检测
PCA 人脸 VCPCA 人脸 VCPCA 人脸 VC
PCA 人脸 VC.rarPCA 人脸 VC.rarPCA 人脸 VC.rarPCA 人脸 VC.rarPCA 人脸 VC.rarPCA 人脸 VC.rarPCA 人脸 VC.rar
【人脸】人脸质量评估
看看就好,没有使用价值,太老了!           
人脸库人脸库
orl人脸,里边有40个人,没人十张图片,大家可以下载学习
人脸
本章介绍卷积神经网络应用。
出现错误
<%@ page contentType="text/html; charset=gb18030" language="java" import="java.sql.*"%>rnrnrn rn <%rn String b=" ";rnString name=request.getParameter("name");rnString mima=request.getParameter("mima");rnint nianling=Integer.parseInt(request.getParameter("nianling"));rnString xingbie=request.getParameter("xingbie");rnString ziwojieshao=request.getParameter("ziwojieshao");rnString laizi=request.getParameter("laizi");rnif(request.getParameterValues("hobby") != null)rn rn String[] ch1 = request.getParameterValues("hobby");rn for(int i=0;i");rn rn rn rn rnrnif(xingbie!=null) rn rn b=new String(xingbie.getBytes("ISO-8859-1")); rn xingbie=b; rnif(laizi!=null) rn rn b=new String(laizi.getBytes("ISO-8859-1")); rn rn laizi=b; rn if(ziwojieshao!=null) rn rn b=new String(ziwojieshao.getBytes("ISO-8859-1")); rn rn ziwojieshao=b; rn rnrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //载入驱动程序类别rn String url="jdbc:odbc:MySiteDataBase"; //数据库路径rn String user="";rn String pwd="";rn Connection con=DriverManager.getConnection(url,user,pwd);rn PreparedStatement pstmt=con.prepareStatement("INSERT INTO userInfo () VALUES (?,?,?,?,?,?)",ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);rn rn pstmt.setString(1,name);rn pstmt.setString(2,mima);rn pstmt.setString(3,xingbie);rn pstmt.setString(4,ziwojieshao);rn pstmt.setInt(5,nianling);rn pstmt.setString(6,laizi);rn pstmt.executeUpdate();%>rn rn rn rn pstmt.close();rn con.close();rn out.println("注册成功");rn %>rn rn rn rn 返回登录页rn
出现的错误
You have an error in your SQL syntax  check the manual that corresponds to your MySQL server version for the right syntax to use near '?' 出现这种错误的原因是在执行sql的时候使用了pstmt.executeQuery(sql)这个实际上是statement的...
出现错误!
your hard drive has less than 1MB free space.rnIf you encounter problems please refer to the reference card.rnrn我在打“极品飞车”应用程序时,出现了这个提示框!如果继续的话,也可以玩这个游戏,但每次运行的时候老出这个对话框,why?
出现错误????
我进入mysql提示界面后输入use mysql出现以下错误:rnaccess denied for user:''@'localhost' to daabase 'myicq'rn怎么回事,谢谢各位!!!!
access数据库读取时出错
各位大虾:rnrn你们好!rn在写上位机,发现当使用另外一个窗体的程序访问同一个access数据库是相对路径出错。rnrn在代码中运行没问题,但是到客户的电脑上运行提示错误。rnform3下的代码,rnData Source=|DataDirectory|\db1.mdb, db1.mdb放在.exe文件下的目录,应该是能查找得到啊。rn我把数据库放在输出目录debug文件夹下,文件名为db1.rn提示如下错误:rnrnSee the end of this message for details on invoking rnjust-in-time (JIT) debugging instead of this dialog box.rnrn************** Exception Text **************rnSystem.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 系统找不到指定的文件。 ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 系统找不到指定的文件。rnFile name: 'System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'rn at Coemt.db1DataSet1.InitClass()rn at Coemt.db1DataSet1..ctor() in F:\测试程序\Debug_Tool19\ChuanKouTiaoShi\db1DataSet1.Designer.vb:line 37rn at Coemt.Form3.InitializeComponent() in F:\测试程序\Debug_Tool19\ChuanKouTiaoShi\Form3.Designer.vb:line 58rn at Coemt.Form3..ctor() in F:\测试程序\Debug_Tool19\ChuanKouTiaoShi\Form3.vb:line 7rnrnWRN: Assembly binding logging is turned OFF.rnTo enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.rnNote: There is some performance penalty associated with assembly bind failure logging.rnTo turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].rnrn --- End of inner exception stack trace ---rn at Coemt.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190rn at Coemt.My.MyProject.MyForms.get_Form3()rn at Coemt.Form1.DataGridView1_CellContentDoubleClick(Object sender, DataGridViewCellEventArgs e) in F:\测试程序\Debug_Tool19\ChuanKouTiaoShi\Form1.vb:line 3181rn at System.Windows.Forms.DataGridView.OnCellContentDoubleClick(DataGridViewCellEventArgs e)rn at System.Windows.Forms.DataGridView.OnCommonCellContentClick(Int32 columnIndex, Int32 rowIndex, Boolean doubleClick)rn at System.Windows.Forms.DataGridViewCell.OnMouseUpInternal(DataGridViewCellMouseEventArgs e)rn at System.Windows.Forms.DataGridView.OnCellMouseUp(DataGridViewCellMouseEventArgs e)rn at System.Windows.Forms.DataGridView.EditingControls_CommonMouseEventHandler(Object sender, MouseEventArgs e, DataGridViewMouseEvent dgvme)rn at System.Windows.Forms.DataGridView.EditingControls_MouseUp(Object sender, MouseEventArgs e)rn at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)rn at System.Windows.Forms.TextBoxBase.OnMouseUp(MouseEventArgs mevent)rn at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.TextBoxBase.WndProc(Message& m)rn at System.Windows.Forms.TextBox.WndProc(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** Loaded Assemblies **************rnmscorlibrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dllrn----------------------------------------rnCometrn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.019rn CodeBase: file:///E:/严卫兵/Bin/Comet.exern----------------------------------------rnMicrosoft.VisualBasicrn Assembly Version: 8.0.0.0rn Win32 Version: 8.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dllrn----------------------------------------rnSystemrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnSystem.Windows.Formsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystem.Drawingrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystem.Configurationrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnSystem.Xmlrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnSystem.Runtime.Remotingrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dllrn----------------------------------------rnSystem.Datarn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dllrn----------------------------------------rnMicrosoft.VisualBasic.PowerPacks.Vsrn Assembly Version: 10.0.0.0rn Win32 Version: 10.0.30319.1rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dllrn----------------------------------------rnSystem.Transactionsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dllrn----------------------------------------rnSystem.EnterpriseServicesrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dllrn----------------------------------------rnrn************** JIT Debugging **************rnTo enable just-in-time (JIT) debugging, the .config file for thisrnapplication or computer (machine.config) must have thernjitDebugging value set in the system.windows.forms section.rnThe application must also be compiled with debuggingrnenabled.rnrnFor example:rnrnrn rnrnrnWhen JIT debugging is enabled, any unhandled exceptionrnwill be sent to the JIT debugger registered on the computerrnrather than be handled by this dialog box.rnrnrn
截包分析,截包分析,截包分析,
截包分析,截包分析,截包分析,截包分析,截包分析,截包分析,截包分析,截包分析,截包分析,截包分析,截包分析,
截包过程分析截包过程分析截包过程分析
截包过程分析截包过程分析截包过程分析截包过程分析
取时区的问题
我想取到服务器端的时区,请大家帮帮我
数据库读取时的问题
我用的是VB做的,用ADO连接的access数据库 两个label标签分别显示单词和解释,打开窗体程序后就出现第一行的单词和解释,几秒之后跳到所连接的数据库表的第二下,以此类推循环。我现在做好了链接,但是两个标签中只显示第一行,请问该怎么做才能达到效果,我是新手,可以只用ADO控件吗?麻烦各位给个代码可以注释一下吗?
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件