简体   繁体   English

为什么我得到QUnhandledException?

[英]Why am I getting QUnhandledException?

  • I am working on FaceRecognition project. 我正在开发FaceRecognition项目。 For that i am using BRISK algorithm from openbr. 为此,我使用openbr的BRISK算法。

  • For that i have to train data using many number of images. 为此,我必须使用许多图像训练数据。 I am using training command as below, 我正在使用如下训练命令,

     br -algorithm 'Open+Cvt(Gray)+Cascade(FrontalFace)+ASEFEyes+Affine(128,128,0.33,0.45)+ (Grid(10,10)+SIFTDescriptor(12)+ByRow)/(Blur(1.1)+Gamma(0.2)+DoG(1,2)+ContrastEq(0.1,10)+LBP(1,2)+RectRegions(8,8,6,6)+Hist(59))+PCA(0.95)+Normalize(L2)+Dup(12)+RndSubspace(0.05,1)+LDA(0.98)+Cat+PCA(0.95)+Normalize(L1)+Quantize:NegativeLogPlusOne(ByteL1)' -train ../data/ATT/img FaceRecognitionATT 
  • But i am getting ' QUnhandledException ' after sometime. 但是有一段时间后我得到' QUnhandledException '。 I cant figure it out that why i am getting this error. 我无法弄清楚为什么我得到这个错误。 I am using 13500 images for training. 我正在使用13500张图片进行训练。

  • Any help is appreciated. 任何帮助表示赞赏。 Thanks!!! 谢谢!!!

I ran into the same error using OpenBR V1.1.0, with OpenCV-2.4.11 running on Ubuntu 14.04.3. 我使用OpenBR V1.1.0遇到了同样的错误,在Ubuntu 14.04.3上运行OpenCV-2.4.11。 I was able to move beyond the QUnhandledException by uninstalling QT4.x and explicitly linking OpenCV with QT5. 通过卸载QT4.x并显式链接OpenCV和QT5,我能够超越QUnhandledException。 With a little help from this open GitHub issue , I got things working by doing the following. 这个开放的GitHub问题的帮助下,我做了以下工作。

Uninstall earlier version of QT: 卸载早期版本的QT:

apt-get remove qt4-linguist-tools
apt-get remove qt4-qmake
apt-get autoremove

Install QT5: 安装QT5:

apt-get install qtdeclarative5-dev
apt-get install qttools5-dev-tools

Build OpenCV from source with this cmake command: 使用此cmake命令从源构建OpenCV:

cmake -DWITH_QT5=ON -DCMAKE_BUILD_TYPE=Release ..

Build OpenBR from source 从源代码构建OpenBR

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM