From the course: Hands-On AI: Computer Vision Projects with Ultralytics and OpenCV

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Inference using Streamlit

Inference using Streamlit

- [Instructor] In this video, we will explore how to use the Streamlit Inference Solution with Ultralytics Python Package. With the help of streamlit, we can create different web-based application. We will see how we can use the streamlit to run the object detection and image segmentation model on the web browser with the help of Ultralytics Python Package. Let's quickly review the streamlit inference documentation. Here, we can see different advantages of streamlit inference. Then we have the similar application code that we can use easily. We can just copy the code snippet and use it. Next. how it works. Basically it use the analytics solution module and then first of all, it captured the video frame from the webcam or the video file. Next, it process each frame with the help of YOLO11 model, or any model that we will use. Then it run the object detection and then it displayed the original and annotated frame side by side. The usage is pretty simple. We just need to copy this code…

Contents