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形态学扑克牌识别【含Matlab源码 1352期】.zip
共43个文件
jpg:36个
m:5个
asv:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 53 浏览量
2021-11-06
19:58:36
上传
评论 4
收藏 1.83MB ZIP 举报
温馨提示
CSDN海神之光上传的代码均可运行,亲测可用,直接替换数据即可,适合小白; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主或扫描博客文章底部QQ名片; 4.1 博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作
资源推荐
资源详情
资源评论
收起资源包目录
【纸牌识别】基于matlab形态学扑克牌识别【含Matlab源码 1352期】.zip (43个子文件)
【纸牌识别】基于matlab形态学扑克牌识别【含Matlab源码 1352期】
GetModel.m 1KB
main.asv 6KB
main.m 744B
images
R_9.JPG 82KB
M_4.JPG 41KB
B_4.JPG 40KB
R_7.JPG 64KB
B_3.jpg 30KB
M_6.JPG 63KB
R_3.JPG 44KB
M_8.jpg 50KB
F_2.JPG 37KB
F_3.JPG 38KB
R_10.JPG 72KB
M_10.JPG 76KB
F_4.JPG 36KB
F_9.JPG 76KB
R_4.JPG 48KB
R_2.JPG 30KB
R_5.JPG 48KB
F_6.JPG 41KB
B_2.JPG 27KB
M_2.JPG 37KB
M_9.JPG 89KB
B_5.JPG 52KB
F_8.JPG 54KB
B_10.JPG 84KB
B_8.JPG 73KB
R_6.JPG 45KB
M_5.JPG 52KB
R_8.JPG 81KB
B_6.JPG 48KB
F_10.JPG 77KB
B_9.png 17KB
B_7.JPG 64KB
M_3.JPG 43KB
M_7.jpg 52KB
F_7.JPG 56KB
F_5.JPG 41KB
ParseNumber.m 4KB
CutImage.m 1008B
运行结果.jpg 28KB
ParseShape.m 2KB
共 43 条
- 1
资源评论
- mygao02132023-12-07资源和描述一致,质量不错,解决了我的问题,感谢资源主。
- lxz66882023-05-25超赞的资源,感谢资源主分享,大家一起进步!
海神之光
- 粉丝: 5w+
- 资源: 6477
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功