We created a 2563-image custom dragon fruit image dataset, with 1248 images of raw dragon fruits and 1315 photographs of ripe dragon fruits. The images were taken with the Nikon D5200 DSLR and OnePlus 6's Sony IMX 519 16 megapixel camera. The photographs taken with the DSLR camera had a resolution of 4000 by 6000 pixels, while those taken with the OnePlus6 had a resolution of 3456 by 4608 pixels. They were photographed in natural sunlight. The average temperature during that time was 28°C (84.2°F), with partly sunny skies, 65 percent humidity, and 17 km/h wind speeds.