Hiện nay,. ứng dụng của drone trong lĩnh vực Internet vạn vật (IoTs) ngày càng trở nên rộng rãi vì tính thuận tiện cho việc thực hiện nhiệm vụ giám sát. Drone có thể được tích hợp với nhiều cảm biến và được sử dụng trong nhiều lĩnh vực khác nhau. Tuy nhiên, để hoàn thành một hay nhiều tác vụ thì việc điều khiển drone chính xác và thông minh là cần thiết. Vì thế, nghiên cứu đề xuất một phương pháp điều khiển drone mới để xác định và tránh vật cản sử dụng kết hợp giữa giải thuật xử lý ảnh thời gian thực và phương pháp học sâu dựa trên cấu trúc của YOLOv8 với độ chính xác trên 90%.Recently, the use of drones in the Internet of Things (IoTs) is becoming increasingly widespread due to their convenience in performing surveillance tasks. Drones can be integrated with various sensors and utilized in many different fields. However, precise and intelligent drone control is essential to successfully complete one or multiple tasks. Therefore, this study proposes a new method for drones to determine and avoid obstacle, using a combination of real-time image processing algorithms and deep learning methods based on the structure of YOLOv8 to achieve an accuracy of over 90%.