The invention belongs to the field of digital
pathological image processing, and discloses an OpenSlide-based digital
pathological image processing method and a related device, and the method comprises the steps: obtaining a digital
pathological image, calling an OpenSlide
library to analyze a
pyramid structure of the image to generate a multi-resolution hierarchy, and dynamically calculating a loaded image region based on a slice request instruction input by a user; a double-Canvas rendering mode is adopted, a bottom layer Canvas loads an
image area in real time, a labeling layer Canvas independently renders a labeling path, and separation of an image and a
label is achieved; and generating a
closed path based on the superposed image and the
annotation mode, and exporting the
annotation data in a general format. According to the method, the user interaction experience is improved, the interface operation is more intuitive, the process is simplified, and the drawing
mode switching is convenient; the labeling efficiency is improved, real-time adjustment of complex contours is supported, and the
workload is reduced; a
data export function is enhanced, effective association of
annotation information is realized, and multi-format universality is supported; multi-level support is improved, level switching is smooth, loading is fast, and tool performance and user experience are improved.