(EN) An image processing method and device. The method comprises: obtaining a first image, the first image comprising a target object (S101), and the target object overlapping an edge of the first image; constructing a filling pixel on the basis of color information of a pixel of the first image (S102); performing expansion at the edge of the first image by means of the filing pixel to obtain a second image (S103); and inputting the second image to a neural network for edge detection to obtain the contour of the target object (S104). The method can improve the edge recognition rate of images.
(FR) La présente invention concerne un procédé et un dispositif de traitement d’image. Le procédé consiste à : obtenir une première image, la première image comprenant un objet cible (S101), et l'objet cible chevauchant un bord de la première image ; construire un pixel de remplissage sur la base d'informations de couleur d'un pixel de la première image (S102) ; effectuer une expansion au niveau du bord de la première image au moyen du pixel de remplissage pour obtenir une seconde image (S103) ; et entrer la seconde image dans un réseau neuronal pour une détection de bord afin d'obtenir le contour de l'objet cible (S104). Le procédé peut améliorer le taux de reconnaissance de bord d'images.
(ZH) 一种图像处理方法以及装置。该方法包括:获得第一图像,所述第一图像中包含目标对象(S101),所述目标对象与所述第一图像的边缘存在重合;基于所述第一图像的像素的色彩信息构建填充像素(S102);使用所述填充像素在所述第一图像的边缘进行扩充,得到第二图像(S103);将所述第二图像输入到用于边缘检测的神经网络,得到所述目标对象的轮廓(S104)。该方法可以提高图像的边缘识别率。