Making the YOLOv8 project more user-friendly with Streamlit .

<p>Hello everyone! Today, I&rsquo;ll explain how to make your YOLOv8 project more user-friendly by using the Streamlit library. With the Streamlit dashboard integrated with YOLOv8, you&rsquo;ll be able to run object detection using external weight files and videos. Additionally, you&rsquo;ll have the flexibility to change both the weight file and the detection location without closing the program.</p> <p>To get started, you&rsquo;ll need to download the GitHub repository I&rsquo;ve prepared [here].</p> <pre> git clone https://github.com/ilyasdemir-demirilyas/yolov8-streamlit-detection-tracking.git</pre> <p>Once you&rsquo;ve downloaded the repository, navigate to the project folder:</p> <pre> cd yolov8-streamlit-detection-tracking</pre> <p>You can now install the necessary libraries:</p> <pre> pip install ultralytics streamlit pafy pip install pytube</pre> <p>After completing all the preparations, you can run the code using the following command:</p> <pre> streamlit run app.py</pre> <p>dashboard :</p> <ol> <li>image page:</li> </ol> <p>&nbsp;</p> <p>2. video page :</p> <p>&nbsp;</p> <p>Simply running this command will take you into the dashboard. Now, let&rsquo;s go through the steps to use YOLOv8 with the Streamlit dashboard:</p> <p>1. Start by uploading the weight file with a .pt extension.<br /> 2. Next, choose the type and location of the object you want to detect (Image, Video, Webcam, etc.).<br /> 3. If you select video or image, upload the video or image you want to perform detection on. For YouTube videos, a link is sufficient.<br /> 4. Finally, for images, you can perform detection by simply selecting the confidence level and clicking the &ldquo;Detect&rdquo; button. For other options (relevant if you&rsquo;re tracking), you can fine-tune the detection or tracking process by adjusting the confidence and IOU (Intersection over Union) values.</p> <p>If you have any questions or need further clarification on anything, please feel free to ask in the comments. Happy coding!</p> <p><a href="https://medium.com/@ilyasdemir.demirilyas/making-the-yolov8-project-more-user-friendly-with-streamlit-ee2bde7affd8">Click Here</a></p>