This presentation explains why we passed to the expert system based on edge-based object detection on traditional image analysis techniques to the AI-based, leveraging advanced machine learning. The first method uses parameters derived from image analysis tools, focusing on attributes such as shape, size, and color of objects, informed by preliminary tests and expert data. The machine learning method employs a sophisticated algorithm that dynamically learns and identifies objects in images. We used both approaches using diverse datasets and measured their accuracy and efficiency under various conditions. The aim of this presentation is to show the improvement obtained by using the AI-based system applied for real-time detection and classification, offering insights into their practical strengths and applications.