Rigorous crop counting is crucial for effective agricultural management and informed intervention strategies. However, in outdoor field environments, partial occlusions combined with inherent ambiguity in distinguishing clustered crops from individual viewpoints poses an immense challenge for image-based segmentation methods. To address these problems, we introduce a novel crop counting framework designed for exact enumeration via 3D instance segmentation. Our approach, crop neural radiance field (CropNeRF), utilizes 2D images captured from multiple viewpoints and associates independent instance masks for NeRF view synthesis. We develop crop visibility and mask consistency scores, which are incorporated alongside 3D information from a NeRF model. This results in an effective segmentation of crop instances in 3D and highly-accurate crop counts. Furthermore, our framework eliminates the dependence on crop-specific parameter tuning. We validate our system on three agricultural datasets consisting of cotton bolls, apples, and pears, and demonstrate consistent counting performance despite major variations in crop color, shape, and size. A comparative analysis against the state of the art highlights superior performance on crop counting tasks. Lastly, we contribute 3DCotton, a cotton plant dataset to advance further research on this topic.
If you find this project useful, then please consider citing both our paper and dataset.
@article{muzaddid2026cropnerf,
title={CropNeRF: A neural radiance field-based framework for crop counting},
author={Al Muzaddid, Md Ahmed and Beksi, William J},
journal={arXiv preprint arXiv:2601.00207},
year={2026}
}
@data{mavmatrix/dataset.xxx,
title={{3DCotton}},
author={Al Muzaddid, Md Ahmed and Beksi, William J},
publisher={MavMatrix},
version={V1},
url={https://doi.org/xxx/dataset.xxx},
doi={xxx/dataset.xxx},
year={2026}
}
The source code associated with this project is licensed under the Apache License, Version 2.0. The 3DCotton dataset is available for non-commercial use under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("CC BY-NC-SA 4.0").