MULTIPLE FRUITS DETECTOR USING OBJECT DETECTION MODEL - 7 to 10 chapters
Best Bakeries in Bangalore (2026 Updated List)
Looking for the best bakeries in Bangalore? Here is a curated list of top bakeries with address, phone number, and Google Maps location. Find the best cake shops near you in areas like Indiranagar, Whitefield, and Koramangala.
Top Bakeries You Must Try
- Aubree – Premium cakes in Whitefield
- Glen's Bakehouse – Popular dessert spot
- Albert Bakery – Famous for puffs
CHAPTER 7
SYSTEM TESTING AND IMPLEMENTATION
7.1 SYSTEM TESTING
After the source code has been completed, documented as related data structures. Completed the project has to undergo testing and validation where there is subtitle and definite attempt to get errors. The project developer treads lightly, designing and execution test that will demonstrates that the program works rather than uncovering errors, unfortunately errors will be present and if the project developer doesn’t find them, the user will find out. The project developer is always responsible for testing the individual units i.e. modules of the program. In many cases developer also conducts integration testing i.e. the testing step that leads to the construction of the complete program structure. This project has undergone the following testing procedures to ensure its correctness.
1. Unit testing
2. User Acceptance Testing
7.1.1 UNIT TESTING
In unit testing, we have to test the programs making up the system. For this reason, Unit testing sometimes called as Program testing. The software units in a system are the modules and routines that are assembled and integrated to perform a specific function, Unit testing first on the modules independently of one another, to locate errors. This enables, to detect errors in coding and logic that are contained with the module alone. The testing was carried out during programming stage itself.
7.1.2 User Acceptance Testing
In these testing procedures the project is given to the customer to test whether all requirements have been fulfilled and after the user is fully satisfied. The project is perfectly ready. If the user makes request for any change and if they found any errors those all errors has to be taken into consideration and to be correct it to make a project a perfect project.
CHAPTER 8
SYSTEM IMPLEMENTATION
When the initial design was done for the system, the client was consulted for the acceptance of the design so that further proceedings of the system development can be carried on. After the development of the system a demonstration was given to them about the working of the system. The aim of the system illustration was to identify any malfunction of the system.
After the management of the system was approved the system implemented in the concern, initially the system was run parallel with existing manual system. The system has been tested with live data and has proved to be error free and user friendly.
Implementation is the process of converting a new or revised system design into an operational one when the initial design was done by the system; a demonstration was given to the end user about the working system. This process is uses to verify and identify any logical mess working of the system by feeding various combinations of test data. After the approval of the system by both end user and management the system was implemented. System implementation is made up of many activities. The six major activities are as follows.
Coding
Coding is the process of whereby the physical design specifications created by the analysis team turned into working computer code by the programming team.
Testing
Once the coding process is begin and proceed in parallel, as each program module can be tested.
Installation
Installation is the process during which the current system is replaced by the new system. This includes conversion of existing data, software, and documentation and work procedures to those consistent with the new system.
Documentation
It is result from the installation process, user guides provides the information of how the use the system and its flow.
Training and support
Training plan is a strategy for training user so they quickly learn to the new system. The development of the training plan probably began earlier in the project.
The best-suited application package to develop the system is Python under Windows 10/11’ environment.
CHAPTER 9
CONCLUSION AND SCOPE FOR FUTURE ENHANCEMENTS
In conclusion, this project demonstrates the effective use of the YOLOv5 algorithm for real-time detection of multiple fruits in a given image. The transition from detecting just three fruit types in the existing system to fifteen types in the proposed system greatly enhances the practical utility of the detection framework. By leveraging YOLOv5's object detection capabilities, the system ensures fast, accurate, and reliable identification of fruits, making it applicable to various sectors like agriculture, retail, and food processing. The bounding box and confidence score outputs provide users with clear insights into the detected objects, further solidifying the system’s practicality and effectiveness.
Scope for Future Enhancements:
There are several possibilities for expanding and improving this system in the future. One enhancement could be increasing the variety of fruits even further, enabling the system to detect a wider range of objects, including vegetables or other food items. Additionally, implementing real-time video processing would allow for continuous monitoring and detection in dynamic environments, such as conveyor belts in food industries or drone-based fruit detection in agricultural fields. Integration of machine learning techniques like image segmentation or 3D object detection could further increase the accuracy and depth of the analysis, making the system more robust and adaptable to different use cases.
CHAPTER 10
BIBLIOGRAPHY
10.1 BOOKS
1. CyberPunk Architects, “PYTHON: THE BLUEPRINT TO PYTHON PROGRAMMING: A Beginners Guide: Everything You Need to Know to Get Started (CyberPunk Blueprint Series)” Kindle Edition.
2. David Mertz, “Functional Programming in Python”, O’Reilly, May 2015, First Edition.
10.2 WEB REFERENCES
APPENDIX
A. SAMPLE SCREENS
BROWSE FRUITS IMAGE
BROWSE FRUITS IMAGE
B. SOURCE CODE
import sys
import os
import PySide6
from PySide6.QtWidgets import QApplication, QWidget, QFileDialog
from PySide6.QtCore import QFile
from PySide6.QtUiTools import QUiLoader
from PySide6.QtGui import QPixmap, QImage
from PySide6.QtCore import QThread, Signal, QDir
import cv2
def convertCVImage2QtImage(cv_img):
cv_img = cv2.cvtColor(cv_img, cv2.COLOR_BGR2RGB)
height, width, channel = cv_img.shape
bytesPerLine = 3 * width
qimg = QImage(cv_img.data, width, height, bytesPerLine, QImage.Format_RGB888)
return QPixmap.fromImage(qimg)
class ProcessImage(QThread):
signal_show_frame = Signal(object)
def __init__(self, fileName):
QThread.__init__(self)
self.fileName = fileName
from detector import Detector
self.detector = Detector()
def run(self):
self.video = cv2.VideoCapture(self.fileName)
while True:
valid, self.frame = self.video.read()
if valid is not True:
break
self.frame = self.detector.detect(self.frame)
self.signal_show_frame.emit(self.frame)
cv2.waitKey(30)
self.video.release()
def stop(self):
try:
self.video.release()
except:
pass
class show(QThread):
signal_show_image = Signal(object)
def __init__(self, fileName):
QThread.__init__(self)
self.fileName = fileName
self.video=cv2.VideoCapture(self.fileName)
def run(self):
while True:
valid, self.frame = self.video.read()
if valid is not True:
break
self.signal_show_image.emit(self.frame)
cv2.waitKey(30)
self.video.release()
def stop(self):
try:
self.video.release()
except:
pass
class MainWindow(QWidget):
def __init__(self):
super(MainWindow, self).__init__()
loader = QUiLoader()
self.ui = loader.load("ui/form.ui")
self.ui.btn_browse.clicked.connect(self.getFile)
self.ui.btn_start.clicked.connect(self.predict)
self.ui.show()
def getFile(self):
self.fileName = QFileDialog.getOpenFileName(self,'Single File','C:\'','*.jpg *.mp4 *.jpeg *.png *.avi')[0]
self.ui.txt_address.setText(str(self.fileName))
self.show=show(self.fileName)
self.show.signal_show_image.connect(self.show_input)
self.show.start()
def predict(self):
self.process_image = ProcessImage(self.fileName)
self.process_image.signal_show_frame.connect(self.show_output)
self.process_image.start()
def show_input(self, image):
pixmap = convertCVImage2QtImage(image)
self.ui.lbl_input.setPixmap(pixmap)
def show_output(self, image):
pixmap = convertCVImage2QtImage(image)
self.ui.lbl_output.setPixmap(pixmap)
if __name__ == "__main__":
app = QApplication(sys.argv)
app.setAttribute(PySide6.QtCore.Qt.AA_UseHighDpiPixmaps)
app.setAttribute(PySide6.QtCore.Qt.AA_EnableHighDpiScaling)
#app.setAttribute(Qt.AA_ShareOpenGLContexts)
widget = MainWindow()
sys.exit(app.exec())
Comments
Post a Comment