MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION THESIS MECHANTRONICS ENGINEERING TECHONOLOGY PRODUCT CLASSIFICATION USING BARCODE ADVISOR: TRAN VI DO STUDENT: TANG HOANG LONG LE NGUYEN ANH KHOA BUI DINH NAM THANH SKL 0 1 0 4 5 3 Ho Chi Minh City, Febuary, 2023 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION THESIS PRODUCT CLASSIFICATION USING BARCODE TANG HOANG LONG 18146045 LE NGUYEN ANH KHOA 18146034 BUI DINH NAM THANH 18146059 Major: MECHATRONICS ENGINEERING Advisor: TRAN VI DO Ho Chi Minh City HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION THESIS PRODUCT CLASSIFICATION USING BARCODE TANG HOANG LONG 18146045 LE NGUYEN ANH KHOA 18146034 BUI DINH NAM THANH 18146059 Major: MECHATRONICS ENGINEERING Advisor: TRAN VI DO Ho Chi Minh City THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, Day. GRADUATION PROJECT ASSIGNMENT Student name: Tang Hoang Long Student ID: 18146045 Student name: Le Nguyen Anh Khoa Student ID: 18146034 Student name: Bui Dinh Nam Thanh Student ID: 18146059 Major: Mechatronics Engineering Class: 18146CLA Advisor: Tran Vi Do Phone number: Date of assignment: ____________ Date of submission: ______________ 1. Project title: PRODUCT CLASSIFICATION USING BARCODE 2. Initial materials provided by the advisor: ___________________________________ 3.
Content of the project: _________________________________________________ 4. Final product: ________________________________________________________ CHAIR OF THE PROGRAM ADVISOR (Sign with full name) (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, Day. ADVISOR’S EVALUATION SHEET Student name: Tang Hoang Long Student ID: 18146045 Student name: Le Nguyen Anh Khoa Student ID: 18146034 Student name: Bui Dinh Nam Thanh Student ID: 18146059 Major: Mechatronics Engineering Project title: PRODUCT CLASSIFICATION USING BARCODE RO Technology. Tran Vi Do EVALUATION 1.
Content of the project:. Approval for oral defense? (Approved or denied) .) Ho Chi Minh City, Day. ADVISOR (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, Day. PRE-DEFENSE EVALUATION SHEET Student name: Tang Hoang Long Student ID: 18146045 Student name: Le Nguyen Anh Khoa Student ID: 18146034 Student name: Bui Dinh Nam Thanh Student ID: 18146057 Major: Mechatronics Engineering Project title: PRODUCT CLASSIFICATION USING BARCODE EVALUATION 1.
Content and workload of the project. Approval for oral defense? (Approved or denied) .) Ho Chi Minh City, Day. REVIEWER (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, Day. EVALUATION SHEET OF DEFENSE COMMITTEE MEMBER Student name: Tang Hoang Long Student ID: 18146045 Student name: Le Nguyen Anh Khoa Student ID: 18146034 Student name: Bui Dinh Nam Thanh Student ID: 18146059 Major: Mechatronics Engineering Project title: PRODUCT CLASSIFICATION USING BARCODE Name of Defense Committee Member:.
Content and workload of the project .) Ho Chi Minh City, Day. COMMITTEE MEMBER (Sign with full name) Contents FIGURES. OVERVIEW OF THE TOPIC. Object of the research.
Overview of product categories. Methods of product classification. Product classification applied image processing. Overview of image processing.
Concepts of image processing. Basic problems in image processing. OpenCV library and image processing methods used in the project. Overview of Barcode detection.
Communication in industry. System block diagram design. System block diagram. Design each block.
Central processing unit. Calculation of 3-axis X-Y-Z mechanism. Method of learning points in PLC. Introduction to programming languages and software.
System connection diagram. General circuit layout. Circuit layout to connect driver to PLC and motor. Construction of mechanical parts.
Electrical cabinet results. The object lies upright, in the middle of the conveyor belt. The object lies upright, to the right of the conveyor belt. The object lies diagonally, in the middle of the conveyor belt.
The object lies diagonally, in the middle of the conveyor belt. Experiment result table. Review and evaluation. CONCLUSION AND DEVELOPMENT.
1 Classification of ripe tomatoes using image processing. 2 Image processing technology. 4 Gray level range. 5 Low and high resolution difference.
6 Function image representation. 7 OpenCV library logo. 8 Gaussian filter with multiply size (5. 10 Corrosion Magic Illustrated.
12 Approximation algorithm contour illustration. 19 Flowchart of Our Proposed Method. 20 Communication in industry. 1 System block diagram.
2 Types of PLCs available today. 4 NEMA17 stepper motor 42x42x48. 5 Stepper motor pinout. 9 Relay Omron MY2N-GS DC24V.
10 8 pins intermediate relay pin diagram. 11 Camera HIKVISON DS-U02. 12 Omron SS-5GL2 limit switch. 14 MCB CHINT NXB-63.
15 learn points PLC. 16 System Process Flowchart. 17 Object identification flowchart. 18 General circuit layout.
19 Circuit layout to connect driver to PLC and motor. 1 Complete system model from top to bottom (1). 2 Complete system model from top to bottom (2). 3 Complete system model from top to bottom 3D design.
4 Object recognition structure. 7 Conveyor structure 3D design. 8 Object moving structure. 9 Object moving structure3D design (1).
10 Object moving structure 3D design (2). 11 Complete electrical cabinet. 63 2 ACKNOWLEDGMENT During the process of implementing the thesis topic, although facing many difficulties, but with timely help and support from the teachers and classmates, the thesis was completed on schedule. The team would like to sincerely thank Mr.
Tran Vi Do, the instructor, who enthusiastically guided and helped me throughout the implementation process as well as giving me advice, directions and solutions for the topic. At the same time, the team would also like to thank the teachers in the Faculty of High Quality for facilitating in terms of hardware equipment and software knowledge, providing the team with the basic and necessary knowledge to carry out the project as well as perfect the product. Thank you to the classmates of 18146CLA and the students in the thesis group for always being there and helping the group, going through the joys and difficulties during the learning process. Everyone's sharing and contributions are always extremely valuable lessons so that the group can complete the project on time.
Although the team itself has tried to complete the project report, in the construction process there are many drafting errors as well as limited knowledge, so there may be many shortcomings. The group looks forward to receiving comments from teachers and students. Finally, the team would like to wish you good health, success and continue to train good students to contribute to the country. Thank you sincerely.
Students who did the project LE NGUYEN ANH KHOA BUI DINH NAM THANH TANG HOANG LONG 3 ABSTRACT The product classification system by barcode is a combination model of programmable control (PLC) combined with image processing capable of automatically detecting and classifying samples according to product barcodes. The thesis consists of 2 parts: Building a mechanical model operating in 3 stable X-Y-Z axes, designing a system to automatically detect and process images on barcodes and position for mechanical classification models. After recognizing the barcode and the position of the object on the conveyor belt by the experimental image processing algorithm to achieve relative accuracy. The lead screw mechanism and the electromagnet will receive a signal from the PLC to bring the product into the specified lane.
However, the system sometimes works is still unstable due to the influence of some factors such as natural light causing the shadow of the object, causing the barcode recognition and the position to be not completely accurate. Finally, students use Visual Studio Code software to program image processing programs based on Python programming language on OpenCV open-source library that can communicate with PLCs. As a result, a product classification system based on barcodes and communication with PLCs works in accordance with the requirements. OVERVIEW OF THE TOPIC 1.
Question Up to now, the automation system and the role of automation have become very great in the construction and development of the country in general as well as in the development of enterprises in particular. The application of technology to the factory's production lines as well as other operations of the factory helps to create closed, safe and quality implementation processes. In production sorting lines, for instance, shipping companies, it is essential to check the product’s name and its’ delivery location to ensure that the product is delivered to the right ordering person. For example, classify the products in groups of districts; classify the products into their categories.
For manual lines, workers use their eyes to check and find out the product’s location. However, in a modern production line, it is required to produce a large quantity in a short time, and the requirements for accuracy are for product quality. At that time, on the production line, the product must move at a very fast speed, moreover, there are very small products that the human eye cannot meet. Therefore, it is extremely necessary to automate the inspection process instead of humans.
A product sorting machine using barcode technology can be designed to increase efficiency and accuracy in sorting products. Here are some potential benefits: Increased speed and efficiency: With a barcode sorting machine, products can be sorted much faster than manual sorting. The machine can read the barcode and sort the product into the correct category automatically, saving time and reducing the likelihood of human error. Improved accuracy: Barcode technology is highly accurate and can help ensure that products are sorted into the correct category every time.
This can reduce the risk of errors and save money by reducing the need for manual sorting and handling. Better inventory management: By using barcode technology to sort products, the machine can also track inventory levels and provide real-time 5 data on stock levels. This can help businesses to manage their inventory more efficiently, reducing waste and improving profitability. Increased customer satisfaction: A product sorting machine can help businesses ensure that orders are fulfilled accurately and on time.
This can improve customer satisfaction and help businesses to retain their customers. Object of the research. The goal of the project is to design, program and operate the project "Design and construction of a product classification system" based on algorithms for detecting object barcodes, calculating the center of objects using Python language. based on OpenCV open-source library.
Use and program PLC proficiently, apply its functions to apply to the system. Identify the barcode, the location of the product. From there, it is possible to accurately classify products and put them in the lanes according to the original regulations. Refer to the documentation on the home page http://www.com combined with direct practice on the Siemens 1214 CPU on the model.
Refer to some documents on related forums. Survey some real models and some topics first. The topic covers the stages from design to successful building of the model, detailing the stages of model building from the process of understanding how the system works to mechanical design. Provide a plan for selecting and connecting control and monitoring devices, system control algorithms.
The topic also gives comments, evaluates the achieved results and analyzes the limitations to provide solutions and develop the topic in the future. The rest of the thesis has the following content: Chapter 1: Overview of the topic: Presenting a preliminary overview of the initial proposals of the topic, including the problem statement, the topic's objectives, the research content and the topic's limitations. 6 Chapter 2: Theoretical basis: Presenting possible solutions for the design and construction of the system. Chapter 3: Design calculations: From the design requirements and control requirements of the topic, make design calculations and select system hardware devices.
Chapter 4: System construction: Carrying out the construction and assembly of the designed model; provide algorithm flowchart and control programming, system operation.