At the same time, the development of systems to identify and classifies Vietnam''''s currency important requirement in financial, business and commercial activities.In this topic, we will l
Trang 1BỘ GIÁO DỤC VÀ ĐÀO TẠO
TRƯỜNG ĐẠI HỌC SƯ PHẠM KỸ THUẬT TP.HCMKHOA:ĐÀO TẠO CHẤT LƯỢNG CAO
Trang 2In the era of technology 4.0, artificial intelligence is becoming a hot research field and has great potential for development At the same time, the development of systems to identify and classifies Vietnam's currency important requirement in financial, business and commercial activities.
In this topic, we will learn about the identification of the Vietnamese currency, the methods and techniques used to solve this problem, as well as its application in practice Thereby, we will see the importance and potential of artificial intelligence in improving people's lives.
Trang 3The topic is "Identifying Vietnamese currency" is a topic in the field of artificial
intelligence, studying the ability of computers in Vietnamese image processing to generate input data.
The objective of the project is to learn and analyze techniques and methods to recognize Vietnamese banknotes (from VND 5,000 to VND 500,000) by artificial intelligence and determine its application in practice.
The scope of the topic covers methods and techniques of emotion recognition such as neural networks, deep learning, facial recognition techniques, voice, natural language processing, and its applications in various fields such as advertising markets, education, healthcare, and entertainment.
The significance of the topic is to make computer systems smarter and more sophisticated in interacting and communicating with humans This will make it possible to shorten the process of classifying money and develop methods to detect counterfeit money, thereby bringing higher economic and social efficiency.
II Method
The image-based method of identifying banknotes is one of the common methods used for currency identification This method uses software and computer technology to analyze features in images, such as colors and images in banknotes, to determine human emotions.
Image-based currency identification can be used in economic sectors such as vending machines, especially after the recent COVID-19 outbreak, contactless direct pay has also been developed.
However, image-based currency identification still faces challenges One of the challenges are the accuracy of recognizing bills of the same color that are still hitting In addition, the processing and analysis of different data between banknotes also require advanced techniques and technologies to achieve high accuracy.
III Implement
The training model will be implemented on the colab: a) Data preparation
Trang 6The dataset contains images with labels as monetary values that are collected and processed to match the training process This dataset is divided into a training set and a test set to evaluate the accuracy of the model.
b) Model building
# connect to Drive to get data from google.colab import drive drive.mount('/content/drive') # tải các thư viện cần thiết import numpy as np from os import listdir from numpy import asarray, save
from keras.utils import load_img, img_to_array, to_categorical from keras.models import Sequential, load_model
from keras.layers import
Dense,Dropout,Flatten,Conv2D,MaxPooling2D,Normalization,LeakyReLU from keras.optimizers import Adam
from keras.losses import categorical_crossentropy import matplotlib.pyplot as plt
from keras.utils.image_utils import img_to_array #lưu forder chứa dữ liệu vào 1 biếng
folder = '/content/drive/MyDrive/money/' #tiến hành tiền xử lý dữ liệu
photos, labels = list(), list() for file in listdir(folder): output = 0.0 if file.startswith('5k'): output = 1.0
Trang 8model.add(Conv2D(128,(3,3),activation ='relu',padding ='same'))
train = model.fit(x_train,y_train,batch_size=32,epochs = 200,verbose = 1)\
After training the model, we use the command to save and download the h5 file to the machine: model.save('doancuoiky.h5')
d) Check
Trang 12The accuracy is still not high, this may be due to the small number of training samples or the sharpness of the image needs to be higher.
IV.Interface design
The interface design process is performed on Visual Studio Code #tải các thư viện cần thiết
import numpy as np import matplotlib.pyplot as plt from keras.models import load_model from keras.utils import load_img, img_to_array from keras.utils.image_utils import img_to_array from tkinter import *
from tkinter.filedialog import * from PIL import Image, ImageTk #lưu model đã được huấn luyện trước
Trang 13DOAN ["state"] = "normal"
Trang 14#chỉ khi đã chọn hình mới được nhấn nút DOAN ["state"] = DISABLED mainloop()
V.Result
Trang 16Visual currency recognition is an important area of research in artificial intelligence By researching and applying methods to identify features in images, we can help computers will be able to convert image data into digital data and detect features through images In this article, we have been introduced to the basic concepts of currency identification, as well as the applications of currency identification in life and an industry In particular, we have learned about how to use CNN algorithms to train image recognition models Although the method of visual currency identification has made much progress, however, there are many challenges that need to be addressed These challenges include the accuracy of the system, especially in classifying banknotes of the same color, and the ability to handle low-quality images.
In short, visual currency identification is very promising and highly applicable field in life and an industry Currency identification methods are currently being continuously researched and improved to achieve greater accuracy and efficiency.
Trang 17Mã QR Github
Mã QR Google Drive chứa dữ liệu: