clc;
clear;
close all;
warning off;
addpath(genpath(pwd));
imgrgb = imread("para.jpeg");
figure,imshow(imgrgb)
[merkezler , yaricaplar] = imfindcircles(imgrgb,[60 110],'ObjectPolarity','bright','Sensitivity',0.97,'Method','TwoStage');
imshow(imgrgb);
viscircles(merkezler,yaricaplar);
toplam = 0;
Xmerkez = [merkezler(:,1)];
Ymerkez = [merkezler(:,2)];
for i=1:length(yaricaplar)
if yaricaplar(i) > 100
toplam = toplam + 1;
text(Xmerkez(i)-25,Ymerkez(i),'1 TL','FontSize',15,'FontWeight','bold','Color','b');
elseif yaricaplar(i) > 90
toplam = toplam +0.50;
text(Xmerkez(i)-35,Ymerkez(i),'0.5 TL','FontSize',15,'FontWeight','bold','Color','b');
elseif yaricaplar(i) > 75
toplam = toplam +0.25;
text(Xmerkez(i)-55,Ymerkez(i),'0.25 TL','FontSize',15,'FontWeight','bold','Color','b');
else
toplam = toplam +0.05;
text(Xmerkez(i)-60,Ymerkez(i),'0.05 TL','FontSize',15,'FontWeight','bold','Color','b');
end
end
yazilan = sprintf("%.2f",toplam);
text(1100 , 850,['Toplam = ',yazilan,'TL'],'Color','g','FontSize',14,'FontWeight','bold');
fpga和matlab
- 粉丝: 17w+
- 资源: 2630
最新资源
- 魔幻影片 1.iMovieMobile
- 文章中异常的字节码,Test27通过javap命令生成的字节码文件
- 烟雾火焰火灾检测3-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- OpenCV计算机视觉项目实战 - 停车场车位识别源码(基于Python + OpenCV)
- 由 Redis 提供支持的 MQEmitter.zip
- 超好的Python学习教程简单易懂100%好用.zip
- 烟雾火焰检测62-YOLO(v5至v8)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 用于在 Fastify 之间共享通用 Redis 连接的插件 .zip
- K230字谜游戏代码分享
- 用于 Redis 的 Electron,React GUI.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈