Electronic Science and Technology ›› 2023, Vol. 36 ›› Issue (6): 64-71.doi: 10.16180/j.cnki.issn1007-7820.2023.06.010

Previous Articles     Next Articles

A Method of Facial Mask Segmentation Based on CA-Net

LI Keran,CHEN Sheng,KE Panpan   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology, Shanghai 200093,China
  • Received:2021-12-21 Online:2023-06-15 Published:2023-06-20
  • Supported by:
    National Natural Science Foundation of China(81101116)

Abstract:

Wearing medical masks of various materials and types will lead to different prevention and control the effect of virus spread. Segmentation to masks in image data sets will benefit analyzing the differences in prevention and control effects of different types of masks. Currently, there are many facial mask detection algorithms, but there is a lack of further segmentation. Therefore, this study proposes a facial mask segmentation method based on image processing and deep learning. An improved contrast-limited adaptive histogram equalization preprocessing method is proposed to reduce the poor effect of traditional preprocessing caused by dark part of the image through brightness adaptive adjustment. SSD network is used for mask pre-detection, and CA- Net is used for mask segmentation. With U-Net as the backbone network, CA-Net adds spatial attention module, channel attention module and scale attention module to realize the comprehensive attention guidance of space, channel and scale of feature map at the same time. The segmentation result is processed by binary image closing operation to get the final segmentation results. The Dice evaluation of preliminarily segmentation index can reach to 79.18%±3.44%, and the Dice coefficient is increased to 84.03%±2.81% by adding preprocessing and post-processing operations, indicating that the proposed method could significantly improve the visual segmentation results.

Key words: target detection, HSV space conversion, brightness adaptive adjustment, image segmentation, deep learning, CA-Net, closed operation, SSD

CLC Number: 

  • TP391