function Number = ParseNumber( Number_Model )
%PARSENUMBER 此处显示有关此函数的摘要
% 功能: 解析数字
% 数字投影30+20模板
Model_2 = [0.42045,0.60227,0.72727,0.81818,0.625, 0.5, 0.44318,0.43181,0.40909,0.40909,0.38636,0.27272,0.20454,0.19318,0.22727,0.25, 0.27272,0.27272,0.29545,0.31818,0.31818,0.29545,0.27272,0.26136,0.25, 0.23863,0.23863,0.22727,0.21590,0.66148,0.28571,0.42207,0.5, 0.55194,0.55844,0.44805,0.40909,0.38311,0.36363,0.35064,0.34415,0.34415,0.33766,0.35714,0.36363,0.38311,0.40259,0.56493,0.64935,0.50432];
Model_3 = [0.91666,0.9375, 0.91666,0.6875, 0.41666,0.41666,0.40625,0.41666,0.36458,0.22916,0.22916,0.25, 0.40625,0.53125,0.625, 0.58333,0.35416,0.20833,0.20833,0.1875, 0.19791,0.1875, 0.1875, 0.1875, 0.1875,0.1875, 0.19791,0.22916,0.32291,0.50911,0.33108,0.38513,0.42567,0.39864,0.25675,0.29054,0.32432,0.34459,0.34459,0.35811,0.37162,0.39864,0.42567,0.44594,0.45945,0.47297,0.49324,0.5, 0.52702,0.46756];
Model_4 = [0.22093,0.24418,0.27906,0.31395,0.33720,0.36046,0.39534,0.41860,0.45348,0.45348,0.45348,0.45348,0.43023,0.44186,0.45348,0.44186,0.44186,0.44186,0.44186,0.44186,0.44186,0.44186,0.43023,0.75581,1, 1, 1, 0.61627,0.20930,0.32421,0.12666,0.17333,0.21333,0.26, 0.3 ,0.32666,0.31333,0.32666,0.32, 0.32, 0.32666,0.36, 0.43333,0.43333,0.74666,1, 1, 1, 1, 0.208];
Model_5 = [0.84091,0.86363,0.86363,0.85227,0.21590,0.20454,0.20454,0.20454,0.20454,0.20454,0.32954,0.65909,0.77272,0.82954,0.65909,0.47727,0.38636,0.30681,0.21590,0.20454,0.20454,0.19318,0.18181,0.18181,0.1818,0.18181,0.18181,0.20454,0.20454,0.48863,0.35897,0.60256,0.60897,0.57692,0.53205,0.33974,0.30769,0.3141, 0.30128,0.29487,0.29487,0.30128,0.32051,0.33333,0.35256,0.37179,0.41025,0.50641,0.66025,0.43162];
Model_6 = [0.29787,0.51063,0.61702,0.63829,0.46808,0.40425,0.36171,0.26595,0.19148,0.17021,0.15957,0.17021,0.31914,0.57446,0.71276,0.79787,0.70212,0.57446,0.52127,0.45744,0.43617,0.41489,0.40425,0.39361,0.3829,0.37234,0.3617, 0.37234,0.38297,0.46136,0.33766,0.57792,0.70129,0.77922,0.77922,0.51948,0.42857,0.37662,0.33116,0.2987, 0.29221,0.27922,0.27922,0.2987, 0.32467,0.32467,0.36363,0.3961, 0.50649,0.46031];
Model_7 = [0.95238,1, 1, 0.73809,0.44047,0.44047,0.45238,0.45238,0.30952,0.22619,0.22619,0.21428,0.21428,0.22619,0.21428,0.21428,0.20238,0.19047,0.20238,0.21428,0.20238,0.21428,0.21428,0.21428,0.2142,0.21428,0.21428,0.22619,0.21428,0.20308,0.21333,0.22666,0.22666,0.22666,0.16, 0.15333,0.28, 0.39333,0.48, 0.51333,0.46666,0.44666,0.40666,0.38666,0.36666,0.35333,0.36666,0.31333,0.26666,0.17666];
Model_8 = [0.34693,0.5102, 0.62244,0.59183,0.40816,0.35714,0.31632,0.30612,0.30612,0.28571,0.30612,0.31632,0.33673,0.38775,0.42857,0.62244,0.61224,0.53061,0.5102, 0.61224,0.71428,0.5, 0.41836,0.38775,0.3469,0.33673,0.35714,0.32653,0.32653,0.46079,0.16233,0.36363,0.55194,0.70779,0.66233,0.51948,0.46103,0.42857,0.37012,0.36363,0.33116,0.32467,0.32467,0.32467,0.33766,0.38311,0.3961, 0.45454,0.51948,0.49232];
Model_9 = [0.25531,0.45744,0.57446,0.65957,0.53191,0.46808,0.41489,0.41489,0.38297,0.39361,0.38297,0.38297,0.38297,0.38297,0.38297,0.39361,0.39361,0.42553,0.44681,0.48936,0.51063,0.61702,0.75531,0.79787,0.7127,0.53191,0.2553, 0.18085,0.17021,0.38857,0.20779,0.37662,0.51298,0.61688,0.58441,0.43506,0.38961,0.34415,0.31818,0.30519,0.2987, 0.2987, 0.2987 ,0.31168,0.32467,0.35714,0.38961,0.48701,0.64935,0.61616];
Model_10 =[0.31914,0.59574,0.68085,0.74468,0.65957,0.58511,0.56382,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.55319,0.5532,0.55319,0.55319,0.55319,0.55319,0.60471,0.97402,0.98701,0.98701,0.98701,0.48051,0, 0, 0, 0.35714,0.81818,0.8961, 0.94155,0.96753,0.25324,0.21428,0.19481,0.19481,0.22077,0.25324,0.83116];
Model = [Model_2;Model_3;Model_4;Model_5;Model_6;Model_7;Model_8;Model_9;Model_10];
% 存储矩阵间的相关系数
correlation = [0,0,0,0,0,0,0,0,0];
for i=1 : 9
rel = corrcoef(Model(i,:),Number_Model);
correlation(i) = abs(rel(2));
end
% corrcoef(a,b)
% ans = 1.0000 0.9976 0.9976 1.0000
% 第一个1是a与a的相关系数,左边第一个0.9976是a与b相关系数,第二个0.9976是b与a相关系数,第二个1是b与b的相关系数
% 相关系数 相关程度
% 0.00-±0.30 微相关
% ±0.30-±0.50 实相关
% ±0.50-±0.80 显著相关
% ±0.80-±1.00 高度相关
d = dist(1,correlation);
[min_dist,index] = min(d);
Number = index + 1;
end
没有合适的资源?快使用搜索试试~ 我知道了~
基于MatLab实现扑克牌的数字、花色识别
共42个文件
jpg:35个
m:5个
png:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 144 浏览量
2024-10-04
11:41:39
上传
评论
收藏 1.82MB ZIP 举报
温馨提示
【作品名称】:基于MatLab实现扑克牌的数字、花色识别 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【项目介绍】: 基于MatLab实现扑克牌的数字、花色识别 基于MatLab实现扑克牌的数字、花色识别 基于MatLab实现扑克牌的数字、花色识别 基于MatLab实现扑克牌的数字、花色识别 【资源声明】:本资源作为“参考资料”而不是“定制需求”,代码只能作为参考,不能完全复制照搬。需要有一定的基础能够看懂代码,能够自行调试代码并解决报错,能够自行添加功能修改代码。
资源推荐
资源详情
资源评论
收起资源包目录
PuKe-master.zip (42个子文件)
PuKe-master
codes
ParseNumber.m 4KB
main.m 744B
ParseShape.m 2KB
main.asv 6KB
CutImage.m 1008B
GetModel.m 1KB
images
R_3.JPG 44KB
B_6.JPG 48KB
M_2.JPG 37KB
B_7.JPG 64KB
F_2.JPG 37KB
R_10.JPG 72KB
B_5.JPG 52KB
F_9.JPG 76KB
M_3.JPG 43KB
B_9.png 17KB
F_3.JPG 38KB
B_3.jpg 30KB
R_6.JPG 45KB
M_5.JPG 52KB
F_8.JPG 54KB
M_8.jpg 50KB
M_10.JPG 76KB
F_6.JPG 41KB
M_6.JPG 63KB
B_10.JPG 84KB
R_5.JPG 48KB
M_7.jpg 52KB
R_9.JPG 82KB
M_9.JPG 89KB
M_4.JPG 41KB
R_8.JPG 81KB
F_4.JPG 36KB
F_5.JPG 41KB
B_4.JPG 40KB
F_10.JPG 77KB
F_7.JPG 56KB
R_4.JPG 48KB
R_2.JPG 30KB
R_7.JPG 64KB
B_8.JPG 73KB
B_2.JPG 27KB
共 42 条
- 1
资源评论
小英子架构
- 粉丝: 1024
- 资源: 4123
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功