In the Phase 1 of the AI, works with Convolutional Neural Network (CNN) model in order to classify images whether they contain trees or not. The images are preprocessed, normalized, and resized into a consistent format suitable for CNNs. The model is trained using the processed dataset and validated on a small portion of the data.
Down here it is the code for Training and the resultes obtained.