IMAGE PROCESSING METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM

    公开(公告)号:US20230087489A1

    公开(公告)日:2023-03-23

    申请号:US17989109

    申请日:2022-11-17

    Abstract: An image processing method and apparatus are provided. During image matting on an original image, a plurality of segmented images including different regions are first obtained through semantic segmentation. Further, according to the segmented images, lines of different widths are drawn on a contour line of a foreground region to obtain a target trimap. Finally, a target image is generated based on the target trimap. For the target trimap, because lines of different widths are drawn on the contour line of the foreground region, pertinent image matting may be implemented for different regions, so that image matting precision may be improved for a region requiring fine image matting, and image matting precision of another region can also be ensured. In this way, a final image obtained through image matting is fine and natural.

Patent Agency Ranking