当前位置:网站首页>[image detection] recognition of the front and back of a coin based on texture features with matlab code attached
[image detection] recognition of the front and back of a coin based on texture features with matlab code attached
2022-06-29 00:14:00 【Matlab scientific research studio】
1 brief introduction
In the banking industry, self-service industry and other financial service industries involving the identification of paper money , The paper money sorter plays a very important role , It has replaced a lot of boring and error prone manual work , And it has greatly improved the speed and efficiency of this business . However, there is still a big gap in the field of banknote sorter manufacturing between China and other countries with advanced banknote sorter manufacturing technology , China's large banks and other financial institutions use almost all the banknote sorters imported from abroad , The price is more than one million RMB . The denomination recognition of banknotes is the core function of the banknote sorter , Therefore, it is necessary to break the monopoly of foreign countries in China's sorter market , It is necessary to develop efficient paper currency identification technology with independent intellectual property rights . After fully investigating the domestic and foreign RMB banknote recognition market and widely reading the relevant literature , This paper presents a method for detecting the front and back images of RMB banknotes .
2 Complete code
clc,clear,close all;
% The drawing reading regulations are 200*400 size
f1=imresize(imread('5.jpg'),[200 400]);
f2=imresize(imread('5f.jpg'),[200 400]);
%imshow(f);
%figure,imshow(f1);
%figure,imshow(f2);
% take rgb Turn to grayscale
%g1=rgb2gray(f);figure,imshow(g1);
%g2=rgb2gray(ff);figure,imshow(g2);
% look for g Of Graphs h and w
for n=1:2
a=strcat('f',int2str(n));
aa=eval(a);
aa1=rgb2gray(aa);
[h,w]=size(aa1);
% take g The picture is divided into 9 block , high h Three equal parts
h1=1:round(h/3);
h2=round(h/3):round(h*2/3);
h3=round(h*2/3):h;
%w according to 1:2:1 branch
w1=1:round(w/4);
w2=round(w/4):round(w*3/4);
w3=round(w*3/4):w;
%9 The size of a small piece
g1=aa1(h1,w1);g2=aa1(h2,w1);g3=aa1(h3,w1);
g4=aa1(h1,w2);g5=aa1(h2,w2);g6=aa1(h3,w2);
g7=aa1(h1,w3);g8=aa1(h2,w3);g9=aa1(h3,w3);
% Define a 9 All zero matrix with row and column
m=zeros(9,1);
figure;
% Do a cycle
for i=1:9
% adopt strcat Concatenate the contents before and after commas ( take int Integer to str String type )
s=strcat('g',int2str(i));
% Execute string statements as statements , decimal
xx=eval(s);
% count xx Average value
mx=mean2(xx);
%m The number of lines is mx value
m(i,1)=mx;
subplot(3,3,i);
imshow(xx);
end
%m The maximum of ,k Is the number of components
[c,k]=max(m);
s=strcat('f',int2str(n));
xxx=eval(s);
figure,imshow(xxx);
if(k==2||k==8)
title(' positive ')
end
if(k==9||k==1)
title(' The reverse ')
end
end
3 Simulation results

4 reference
[1] Peng Hui . Image classification and recognition based on texture features [J]. Computer and information technology , 2007(10):3.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
边栏推荐
- 【LeetCode】21. Merge two ordered linked lists - go language solution
- stm32F407-------跑马灯、蜂鸣器
- 【C Primer Plus第二章课后编程题】
- 《英语语法新思维 基础版2》读书笔记(一)
- Stm32f407 ------ running lamp and buzzer
- Use and principle of handlerthread
- [200 opencv routines] 101 adaptive median filter
- Stm32f407------- general timer
- Comics | goodbye, postman! One stop collaboration makes apipost more fragrant!
- 基于.NetCore开发博客项目 StarBlog - (13) 加入友情链接功能
猜你喜欢

Technology sharing | software development process that you must understand if you want to get started with testing

6.28 learning content

HandlerThread使用及原理

Software testing tools: complete and precise

With notes: insert sort --from WCC

Matrix compression

MapReduce case

stm32F407-------时钟系统(SystemInit时钟初始化、Systick滴答定时器)

Typescript -- Section 3: Interface

Stm32f407-------- NVIC interrupt priority management
随机推荐
12.物体检测Mask-Rcnn
《英语语法新思维 基础版2》读书笔记(一)
【LeetCode】21. Merge two ordered linked lists - go language solution
[C Prime plus chapitre II Questions de programmation après la Classe]
Daily practice: delete duplicates in the ordered array
With notes: re understanding else if
LinkedIn DataHub --- 经验分享
Typescript -- Section 6 generic
Typescript -- Section 2: variable declaration
What will be done after digital IC Verification?
The magical zero knowledge proof can not only keep secrets, but also make others believe you!
ES6模块
Typescript -- Section 5: classes
Stm32f407 ------- RTC real time clock
Typescript-- section 4: Functions
With notes: insert sort --from WCC
这玩意叫跳表?
好用免费的PPT模板
10、YOLO系列
stm32F407-------串行(串口)通信