Computer Vision with Python and K3s Clusters
Artificial intelligence (AI) is commonly used to substitute activities that humans do every day. It can give systems the intelligence to operate autonomously without human intervention in most cases. Computer vision (CV) is a subcategory of AI that focuses on detecting objects in videos and images. CV is often used to detect traffic in a city. This chapter focuses on building a basic smart traffic system that consists of detecting objects such as cars, trucks, and pedestrians when a vehicle is moving. For this, the system uses the OpenCV, TensorFlow, and scikit-learn Python libraries and a camera to perform computer vision at the edge on a Raspberry Pi. This system also shows locally to drivers a map within the detected objects, and it also implements a public map for global detected object visualization. This public map can be used as a real-time traffic state map that municipalities can use.
In this chapter, we’re going to cover...