An ocular fundus image processing device includes a processor. The processor acquires an ocular fundus image of a subject's eye photographed using an ocular fundus image photographing unit. The processor also acquires a detection result of an artery and a vein in at least a part of the ocular fundus image, by inputting at least the part of the ocular fundus image into a mathematical model trained using a machine learning algorithm.