This repository contains the training codes for the development of the model used to quantify stigma area and ovary diameter. The trained models are also included. Additionally, R scripts used for data organisation, modelling and visualisation are provided.