Central Object Segmentation by Deep Learning to Continuously Monitor Fruit Growth through RGB Images
CROP(Central Roundish Object Painter), which is a deepr version of U-Net, identifies and paints the central roundish objects in RGB images in the varied light conditions. CROP was trained solely by 172 images of fruits but gained somewhat general ability to work for the other types of objects. Applying CROP to time series fruit images captured by fixed cameras will give the growth curves of fruits.
Read our paper: Sensors 2021, 21(21), 6999
The photos with no masks (left, 512×512 pixels) are the inputs and the ones with masks (right, 512×512 pixels) are the outputs. CROP can identify and process the central roundish fruit of various kinds and colors. These examples are independent of the training process. Photo credit: Hideki Murayama.
It can process organic or non-organic roundish objects. The photos with no masks (left, 512×512 pixels) were the inputs and the ones with masks (right, 512×512 pixels) were the outputs. These examples are independent of the training process.
The first figure was the input, and CROP identified the central pear, as at the top-left corner of the next figure. Then, it made the measurements in the eleven different scales, which can be seen in the same figure. The histogram shows the outcomes of pixel counting re-scaled to the original scale. The pear giving the median was picked as in the last figure. The process is supposed to exclude outliers.
Examples: the target pear during the day of 12 Oct 2020. For each photo, the one giving the median was chosen. The camera was set by Takashi Okuno in the farm of Yota Ozeki.The left boxplot was the outcome of the size measurements during the five days (08-12 Oct 2020); eight photos per day, where each photo was processed in eleven different scales, showing high variance during the evening. The right was the plot of positions of the target pear during 12 Aug-15 Oct 2020, with some outliers below the frame. The larger the ID is, the later it is.
Please install Python, PyTorch, Jupyter, Pillow, Matplotlib and then download the following files: demo.ipynb
, analysis_single.ipynb
, analysis_multiple.ipynb
, source.py
and favorite parameter dictionaries into the same folder, and open these IPython notebooks by Jupyter Notebook, depending on the purposes below. Follow the links for the details.
The network dictionaries are placed at release, so you can downlaod and unfreeze them (git-clone is not enough to get ones). To see the difference between the dictionaries, please have a look at our paper.
The TITAN Xp GPU used in this project was denoted by NVIDIA Corporation.