#include "dialogmajiang.h"
#include "ui_dialogmajiang.h"
DialogMaJiang::DialogMaJiang(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogMaJiang)
{
ui->setupUi(this);
setMouseTracking(true);
ui->pushButton->setEnabled(false);
setWindowTitle(QString::fromLocal8Bit("识别结果"));
//east
imageLabel[0] = ui->label_east_1;
imageLabel[1] = ui->label_east_2;
imageLabel[2] = ui->label_east_3;
imageLabel[3] = ui->label_east_4;
imageLabel[4] = ui->label_east_5;
imageLabel[5] = ui->label_east_6;
imageLabel[6] = ui->label_east_7;
imageLabel[7] = ui->label_east_8;
imageLabel[8] = ui->label_east_9;
imageLabel[9] = ui->label_east_10;
imageLabel[10] = ui->label_east_11;
imageLabel[11] = ui->label_east_12;
imageLabel[12] = ui->label_east_13;
imageLabel[13] = ui->label_east_14;
imageLabel[14] = ui->label_east_15;
imageLabel[15] = ui->label_east_16;
imageLabel[16] = ui->label_east_17;
imageLabel[17] = ui->label_east_35;
imageLabel[18] = ui->label_east_36;
imageLabel[19] = ui->label_east_37;
imageLabel[20] = ui->label_east_38;
imageLabel[21] = ui->label_east_39;
imageLabel[22] = ui->label_east_40;
imageLabel[23] = ui->label_east_41;
imageLabel[24] = ui->label_east_42;
imageLabel[25] = ui->label_east_43;
imageLabel[26] = ui->label_east_44;
imageLabel[27] = ui->label_east_45;
imageLabel[28] = ui->label_east_46;
imageLabel[29] = ui->label_east_47;
imageLabel[30] = ui->label_east_48;
imageLabel[31] = ui->label_east_49;
imageLabel[32] = ui->label_east_50;
imageLabel[33] = ui->label_east_51;
//west
imageLabel[34] = ui->label_east_69;
imageLabel[35] = ui->label_east_70;
imageLabel[36] = ui->label_east_71;
imageLabel[37] = ui->label_east_72;
imageLabel[38] = ui->label_east_73;
imageLabel[39] = ui->label_east_74;
imageLabel[40] = ui->label_east_75;
imageLabel[41] = ui->label_east_76;
imageLabel[42] = ui->label_east_77;
imageLabel[43] = ui->label_east_78;
imageLabel[44] = ui->label_east_79;
imageLabel[45] = ui->label_east_80;
imageLabel[46] = ui->label_east_81;
imageLabel[47] = ui->label_east_82;
imageLabel[48] = ui->label_east_83;
imageLabel[49] = ui->label_east_84;
imageLabel[50] = ui->label_east_85;
imageLabel[51] = ui->label_east_103;
imageLabel[52] = ui->label_east_104;
imageLabel[53] = ui->label_east_105;
imageLabel[54] = ui->label_east_106;
imageLabel[55] = ui->label_east_107;
imageLabel[56] = ui->label_east_108;
imageLabel[57] = ui->label_east_109;
imageLabel[58] = ui->label_east_110;
imageLabel[59] = ui->label_east_111;
imageLabel[60] = ui->label_east_112;
imageLabel[61] = ui->label_east_113;
imageLabel[62] = ui->label_east_114;
imageLabel[63] = ui->label_east_115;
imageLabel[64] = ui->label_east_116;
imageLabel[65] = ui->label_east_117;
imageLabel[66] = ui->label_east_118;
imageLabel[67] = ui->label_east_119;
//north
imageLabel[68] = ui->label_east_137;
imageLabel[69] = ui->label_east_138;
imageLabel[70] = ui->label_east_139;
imageLabel[71] = ui->label_east_140;
imageLabel[72] = ui->label_east_141;
imageLabel[73] = ui->label_east_142;
imageLabel[74] = ui->label_east_143;
imageLabel[75] = ui->label_east_144;
imageLabel[76] = ui->label_east_145;
imageLabel[77] = ui->label_east_146;
imageLabel[78] = ui->label_east_147;
imageLabel[79] = ui->label_east_148;
imageLabel[80] = ui->label_east_149;
imageLabel[81] = ui->label_east_150;
imageLabel[82] = ui->label_east_151;
imageLabel[83] = ui->label_east_152;
imageLabel[84] = ui->label_east_153;
imageLabel[85] = ui->label_east_171;
imageLabel[86] = ui->label_east_172;
imageLabel[87] = ui->label_east_173;
imageLabel[88] = ui->label_east_174;
imageLabel[89] = ui->label_east_175;
imageLabel[90] = ui->label_east_176;
imageLabel[91] = ui->label_east_177;
imageLabel[92] = ui->label_east_178;
imageLabel[93] = ui->label_east_179;
imageLabel[94] = ui->label_east_180;
imageLabel[95] = ui->label_east_181;
imageLabel[96] = ui->label_east_182;
imageLabel[97] = ui->label_east_183;
imageLabel[98] = ui->label_east_184;
imageLabel[99] = ui->label_east_185;
imageLabel[100] = ui->label_east_186;
imageLabel[101] = ui->label_east_187;
//South
imageLabel[102] = ui->label_east_205;
imageLabel[103] = ui->label_east_206;
imageLabel[104] = ui->label_east_207;
imageLabel[105] = ui->label_east_208;
imageLabel[106] = ui->label_east_209;
imageLabel[107] = ui->label_east_210;
imageLabel[108] = ui->label_east_211;
imageLabel[109] = ui->label_east_212;
imageLabel[110] = ui->label_east_213;
imageLabel[111] = ui->label_east_214;
imageLabel[112] = ui->label_east_215;
imageLabel[113] = ui->label_east_216;
imageLabel[114] = ui->label_east_217;
imageLabel[115] = ui->label_east_218;
imageLabel[116] = ui->label_east_219;
imageLabel[117] = ui->label_east_220;
imageLabel[118] = ui->label_east_221;
imageLabel[119] = ui->label_east_239;
imageLabel[120] = ui->label_east_240;
imageLabel[121] = ui->label_east_241;
imageLabel[122] = ui->label_east_242;
imageLabel[123] = ui->label_east_243;
imageLabel[124] = ui->label_east_244;
imageLabel[125] = ui->label_east_245;
imageLabel[126] = ui->label_east_246;
imageLabel[127] = ui->label_east_247;
imageLabel[128] = ui->label_east_248;
imageLabel[129] = ui->label_east_249;
imageLabel[130] = ui->label_east_250;
imageLabel[131] = ui->label_east_251;
imageLabel[132] = ui->label_east_252;
imageLabel[133] = ui->label_east_253;
imageLabel[134] = ui->label_east_254;
imageLabel[135] = ui->label_east_255;
for(int i=0;i<135;i++)
{
connect(imageLabel[i],SIGNAL(sendImage(Mat)),this,SLOT(recvImage(Mat)));
}
}
DialogMaJiang::~DialogMaJiang()
{
delete ui;
}
#define label(i) ui->label_east_##i
void DialogMaJiang::showImageMj()
{
printf("imgE size:%d\n",(int)imgE.size());
printf("imgW size:%d\n",(int)imgW.size());
printf("imgN size:%d\n",(int)imgN.size());
printf("imgS size:%d\n",(int)imgS.size());
fflush(NULL);
//East West North South
QImage img;
for(int i=0;i<(int)imgE.size();i++)
{
Mat src = imgE[i].clone();
cvtColor(src,src,CV_BGR2RGB);
img = QImage(src.data,src.cols,src.rows,src.cols*3,QImage::Format_RGB888);
// label(这里我再查一下,不记得怎么写了)->setPixmap(QPixmap::fromImage(img));
if(i==0){
ui->label_east_1->setPixmap(QPixmap::fromImage(img));
ui->label_east_1->image = imgE[i].clone();
ui->label_east_18->setText(labelE[i]);
}
else if(i==2){
ui->label_east_2->setPixmap(QPixmap::fromImage(img));
ui->label_east_2->image = imgE[i].clone();
ui->label_east_19->setText(labelE[i]);
}
else if(i==4){
ui->label_east_3->setPixmap(QPixmap::fromImage(img));
ui->label_east_3->image = imgE[i].clone();
ui->label_east_20->setText(labelE[i]);
}
else if(i==6){
ui->label_east_4->setPixmap(QPixmap::fromImage(img));
ui->label_east_4->image = imgE[i].clone();
ui->label_east_21->setText(labelE[i]);
}
else if(i==8){
ui->label_east_5->setPixmap(QPixmap::fromImage(img));
ui->label_east_5->image = imgE[i].clone();
ui->label_east_22->setText(labelE[i]);
}
else if(i==10){
ui->label_east_6->setPixmap(QPixmap::fromImage(img));
ui->label_east_6->image = imgE[i].clone();
ui->label_east_23->setText(labelE[i]);
}
else if(i==12){
ui->label_east_7->setPixmap(QPixmap:
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
人工智能项目资料-基于云飞针图像,把麻将的每张牌分离并识别,其中使用了颜色直方图和25维像素占比两种特征,识别方法采用了SVM 【探索人工智能的宝藏之地】 无论您是计算机相关专业的在校学生、老师,还是企业界的探索者,这个项目都是为您量身打造的。无论您是初入此领域的小白,还是寻求更高层次进阶的资深人士,这里都有您需要的宝藏。不仅如此,它还可以作为毕设项目、课程设计、作业、甚至项目初期的立项演示。 【人工智能的深度探索】 人工智能——模拟人类智能的技术和理论,使其在计算机上展现出类似人类的思考、判断、决策、学习和交流能力。这不仅是一门技术,更是一种前沿的科学探索。 【实战项目与源码分享】 我们深入探讨了深度学习的基本原理、神经网络的应用、自然语言处理、语言模型、文本分类、信息检索等领域。更有深度学习、机器学习、自然语言处理和计算机视觉的实战项目源码,助您从理论走向实践,如果您已有一定基础,您可以基于这些源码进行修改和扩展,实现更多功能。 【期待与您同行】 我们真诚地邀请您下载并使用这些资源,与我们一起在人工智能的海洋中航行。同时,我们也期待与您的沟通交流,共同学习,共同进步。让我们在这个充满挑战和机遇的领域中共同探索未来!
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083646.png)
![application/pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![caj](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/421fe3cf48564128aca47ee460992edd_m0_63168877.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
妄北y
- 粉丝: 1w+
- 资源: 1万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)