Despite these advanced technologies, lung cancer remains among the leading causes of death due to cancer. The earlier the disease is detected, the better the condition of the patient is, but the identification of lung tumors in medical images such as computed tomography (CT) scan is still a very challenging task. This paper has sought to evaluate the ability of the YOLOv8 model to detect the location of lung tumors from CT images. The research also shows that YOLOv8 has validity of using for detecting lung tumors in the real world. It is also applied to help distinguish tumor regions within CT as a diagnostic tool for early lung cancer. Such advancement could include early and efficient treatment procedures, which significantly enhance the survival of the patients. This optimistic experience with YOLOv8 reveals the potential of artificial intelligence in diagnosing illnesses and managing patients. The study is important as it gives information on Artificial intelligence (AI) diagnosis and input toward coming up with new technology in disease diagnosis and treatment.