The application relates to the
medical imaging technical field, in particular to a
biopsy range positioning method and device for a gastric ulcer image, obtaining a gastric ulcer image of a patient to be detected, preprocessing the gastric ulcer image to obtain a gastric ulcer optimization image of the gastric ulcer image; inputting the gastric ulcer optimization image into an ulcer
lesion detection model and a background target detection model respectively, outputting a
lesion segmentation image of the gastric ulcer optimization image and a background target; fusing the
lesion segmentation image and the background target, and outputting an ulcer
biopsy range positioning and a
biopsy sequence of the patient to be detected. The application realizes
lesion segmentation of a gastric ulcer, thereby obtaining a gastric ulcer biopsy range, assisting a doctor in positioning biopsy, constructing a coordinate
system by taking the center points of a large bend and a mirror body and the center point of a gastric ulcer as the coordinate
system, combining logic, judging the biopsy sequence, and efficiently improving the gastroscopy detection efficiency.