This research was aimed to explore the application value of intelligent algorithm-based digital images in Da Vinci robot-assisted treatment of patients with gastric cancer surgery. 154 patients were included as the research objects, with 89 cases in the control group underwent laparoscopic surgery, and 65 cases in the experimental group underwent robotic surgery. According to the propensity score, the patients in two groups were pair matched (1: 1), of which 104 cases (52 cases in each group) were successfully matched. The general data of patients, the changes in the images before and after the algorithm processing, the intraoperative and postoperative conditions, the pathological examination results, and the follow-up information were observed after matching. Compared with the original images, the images processed by the thread image edge detection algorithm had the significantly improved clarity, as well as highly reduced artifacts and noises. The sensitivity, specificity, and accuracy of image-assisted diagnosis were improved remarkably, showing the differences of statistical significance (
P
<
0.05
). The total time of surgery, intraoperative bleeding, CRP (1d and 3d after surgery), and postoperative total abdominal drainage showed the significant differences as well (
P
<
0.05
). The surgeries of patients in both groups met R0 resection (no tumor infiltration within 1 mm of the surgical margin), but there was a significant difference in the number of lymph node dissections (
P
<
0.05
). The overall survival rates of patients in the experimental group and the control group were 83.0% and 76.1%, respectively, 2 years after surgery, with no significant difference (
P
>
0.05
). The thread image edge detection algorithm produced a better processing effect on the images, which greatly improved the diagnostic sensitivity, specificity, and accuracy. Compared with endoscopic surgery, robotic surgery has better postoperative recovery, safety and reliability, and obvious advantages of minimally invasive surgery.