Skip to content

The-Zhou-Lab/OrchardQuant-3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrchardQuant-3D - combining drone and LiDAR to perform scalable 3D phenotyping for characterising key canopy and floral traits in fruit orchards

Yunpeng Xia1*, Hanghang Li1, Gang Sun1, Ji Zhou1,2*

1College of Engineering, Academy for Advanced Interdisciplinary Studies, Plant Phenomics Research Centre, Nanjing Agricultural University, Nanjing 210095, China ;

2Data Sciences Department, Crop Science Centre (CSC), National Institute of Agricultural Botany (NIAB), Cambridge CB3 0LE, UK;

*Correspondence: xiayunpeng@stu.njau.edu.cn; Ji.Zhou@NJAU.edu.cn, Ji.Zhou@NIAB.com, or JZ655@cam.ac.uk

The main files are as follows:

(1)Testing data

To help users better experience and evaluate our algorithm performance, we have provided a high-quality 3D point cloud dataset of apple and pear trees. Users can access this data via the 'Data_pear' and 'Data_apple' folders in our newly released v1.2 version, and can operate it according to the user manual.

(2)Jupyter notebook

We have shared the latest code for OrchardQuant-3D.We applied adaptive parameterisation to derive parameters for algorithms embedded in the pipeline to reduce hardcoded values.For example, the distance parameterisation was based on measures of tree trunks and reference points (e.g. GCPs) in the 3D orchard, whereas colour (e.g. RGB values) or LiDAR intensity values were normalised according to unified scales followed across key growth stages. Users can download the 'OrchardQuant-3D_V1.2' folder in our latest v1.2 release to access the complete code.

(3) GUI

We created a graphical user interface (GUI) for key steps of the OrchardQuant-3D pipeline (i.e. tree segmentation, 3D tree skeletonization, canopy- and branch-level trait analysis), so that nonexperts can easily utilise our work. We employed the Tkinter toolkit to develop the cross-platform GUI software. We have uploaded the relevant GUI files for user convenience.We provide testing data and RTK shapefile formats for users to download and use according to their workflow.

(4)Stratified Transformer model

We trained a standard stratified Transformer model (https://github.com/dvlab-research/Stratified-Transformer) using apple point cloud data.To facilitate reproducibility of our research, we provide the complete model training configuration file, including network architecture parameters and training hyperparameters. The trained deep learning model was then applied to effectively segment apple-related features within the point clouds, enabling the detection of apple-like objects.

Install Python, Anaconda and Libraries

If you wish to run OrchardQuant-3D from source code, you will need to set up Python on your operating system.

  1. Install Python releases:

    • Read the beginner’s guide to Python if you are new to the language: https://wiki.python.org/moin/BeginnersGuide

    • For Windows users, Python 3 release can be downloaded via: https://www.python.org/downloads/windows/

    • For Mac OS users, Python 3 release can be downloaded via: https://www.python.org/downloads/mac-osx/

    • OrchardQuant-3D only supports Python 3 onwards

  2. Install Anaconda Python distribution:

    • Read the install instruction using the URL: https://docs.continuum.io/anaconda/install

    • For Windows users, a detailed step-by-step installation guide can be found via: https://docs.continuum.io/anaconda/install/windows

    • For Mac OS users, a detailed step-by-step installation guide can be found via: https://docs.continuum.io/anaconda/install/mac-os.html

    • An Anaconda Graphical installer can be found via: https://www.continuum.io/downloads

    • We recommend users install the latest Anaconda Python distribution

  3. Install packages:

    • OrchardQuant-3D uses a number of 3rd-party libraries that you may need to add to your conda environment. These include, but are not limited to:

    Laspy=2.5.1
    Whitebox==2.3.1
    GDAL=3.6.2
    Rasterio=1.3.9
    Pc-skeletor=1.0.0
    Dijkstra=0.2.1
    OpenCV-Python=4.8.1
    Open3d=0.18.0
    Scikit-image=0.20.0
    Scikit-learn=1.3.2
    Geopandas=0.13.2
    PyShp=2.3.1
    CSF=1.1.5
    Matplotlib =3.7.3
    Pandas=2.0.3
    Numpy=1.23.2
    Scipy=1.9.1
    Vtk=9.2.6
    mistree=1.2.0
    

Running OrchardQuant-3D

After successfully installing the required third-party libraries, you can download the fruit tree point cloud test data and the necessary files for running the code from the compressed file (OrchardQuant-3D.zip) that we have provided. Then, please run the code in the latest version we provided to obtain the result data. To reduce the running time, we have also included a multi-process version of the code.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •