The invention provides a method and a
system for restoring a bamboo-strip character
image based on multi-
granularity feature guidance, and innovatively designs a coarse-fine two-stage restoration network and end-to-end multi-task loss joint training aiming at the problems of structure-texture
confusion, non-uniform degradation,
low contrast ratio and the like of the bamboo-strip image. In the coarse repair stage, a
font texture and structure double-reconstruction sub-network is used for separating
semantics from a source; in the fine repairing stage, multi-scale
dynamic range distribution diagram self-attention (Mdma) is provided, pixels are dynamically classified according to degradation intensity, and long-short range dependence joint modeling is achieved; an adaptive
mask is designed to sense pixel
shuffling downsampling (Ampd), sampling is guided by
mask confidence, damage position information is kept, and artifacts are inhibited. Five mainstream methods are compared on a homemade 313 bamboo strip single word
data set, the PSNR, the SSIM and the FID are optimal under 0-60% irregular masks, visual evaluation of real missing samples is natural in texture, the structure is complete, and the
readability of the bamboo strip characters and the subsequent recognition accuracy are effectively improved.