WO2022161237A1 - 一种文字的轮廓效果处理方法、装置、设备及存储介质 - Google Patents
一种文字的轮廓效果处理方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2022161237A1 WO2022161237A1 PCT/CN2022/072915 CN2022072915W WO2022161237A1 WO 2022161237 A1 WO2022161237 A1 WO 2022161237A1 CN 2022072915 W CN2022072915 W CN 2022072915W WO 2022161237 A1 WO2022161237 A1 WO 2022161237A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- distance field
- value
- pixel point
- canvas
- pixels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—Two-dimensional [2D] image generation
- G06T11/60—Creating or editing images; Combining images with text
Definitions
- the present disclosure relates to the field of data processing, and in particular, to a method, device, device and storage medium for processing outline effects of characters.
- the rendering of text effects is applied in more and more fields, such as scene rendering of online games, subtitle display of variety shows, text display in videos, and so on.
- the outline effect of text is a commonly used text effect. How to draw the outline effect of the text is a problem that attracts much attention at present.
- the current text outline drawing effect has the problem of outline fusion, as shown in FIG. 1 , which is a schematic diagram of a text outline effect.
- FIG. 1 is a schematic diagram of a text outline effect.
- the outlines of the characters drawn on the canvas successively cover each other, which affects the display effect of the characters. Therefore, there is an urgent need for a text outline effect processing method, which can improve the display effect of the text.
- the embodiments of the present disclosure provide a method, device, device and storage medium for processing outline effects of characters, which can avoid the problem that outlines between characters cover each other, and improve the The display effect of the text.
- the present disclosure provides a text outline effect processing method, the method comprising:
- an outline effect image corresponding to the target text is generated.
- the method before drawing the pixels on the directional distance field image on the canvas, the method further includes:
- the drawing of the pixels on the directional distance field image on the canvas is specifically:
- the method before generating the contour effect image corresponding to the target text based on the pixels drawn on the canvas in the directional distance field image, the method further includes:
- the gradient value of the pixel point is determined; wherein, the offset coordinate is The difference between the position coordinates of the pixel point and the gradient origin;
- the method before generating the contour effect image corresponding to the target text based on the pixels drawn on the canvas in the directional distance field image, the method further includes:
- the method further includes:
- the present disclosure provides a text outline effect processing device, the device comprising:
- a comparison module is used to compare the distance field value of the pixel point with the same position coordinate when it is detected that the directional distance field image of the target text and the drawn image on the canvas have the same pixel point;
- a first drawing module configured to draw the directional distance on the canvas when it is determined that the distance field value of the pixel point on the directional distance field image in the pixel points with the same position coordinates is smaller than the first value the pixels on the field image;
- a generating module configured to generate an outline effect image corresponding to the target text based on the pixels drawn on the canvas in the directional distance field image.
- the device further includes:
- a first determination module configured to determine the color value corresponding to the distance field value of the pixel point on the directional distance field image based on the corresponding relationship between the color value and the range of the distance field value, as the color value of the pixel point ;
- the first drawing module is specifically used for:
- the present disclosure provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement the above method.
- the present disclosure provides a device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, Implement the above method.
- the present disclosure provides a computer program product, wherein the computer program product includes a computer program or instructions, and the computer program or instructions implement the above method when executed by a processor.
- An embodiment of the present disclosure provides a text outline effect processing method.
- the distance fields of the pixels with the same position are compared. value. If it is determined that the distance field value of a pixel on the directional distance field image is small, the pixel is drawn on the canvas. Finally, based on the pixels drawn on the canvas in the directional distance field image, a contour effect image corresponding to the target text is generated.
- the embodiments of the present disclosure are based on the fact that the distance field value of the pixels in the inner area of the text is negative, while the distance field value of the pixels in the outer area of the text is positive, and the distance field value of the pixels in the inner area of the text must be smaller than the distance field value of the pixel in the outer area of the text.
- the feature of the distance field value of the pixel point by comparing the distance field value of the pixel point in the same position, to determine whether to draw the pixel point on the canvas, and finally generate the contour effect image in which the inner contour of the target text is not covered by the outer contour of other characters, Improved display of target text.
- 1 is a schematic diagram of a text outline effect
- FIG. 2 is a flowchart of a method for processing outline effects of text according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a contour effect image corresponding to a target text according to an embodiment of the present disclosure
- FIG. 4 is a schematic structural diagram of a text outline effect processing device according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of a text outline effect processing device according to an embodiment of the present disclosure.
- the outline effect of text is usually drawn based on bitmap text
- the directional distance field image records the shortest distance value of each pixel inside and outside the text from the text outline (also called the boundary), also known as the boundary. called the distance field value.
- the distance field value of the pixel points in the inner area of the text is set as a negative number
- the distance field value of the pixel points in the outer area around the text is set as a positive number.
- the inventor found that the text-based directional distance field image can be more convenient to draw the outline effect of the text.
- an embodiment of the present disclosure provides a text outline effect processing method.
- the pixels with the same positions are compared.
- the distance field value If it is determined that the distance field value of a pixel on the directional distance field image is small, the pixel is drawn on the canvas.
- a contour effect image corresponding to the target text is generated.
- the embodiments of the present disclosure are based on the fact that the distance field value of the pixels in the inner area of the text is negative, while the distance field value of the pixels in the outer area of the text is positive, and the distance field value of the pixels in the inner area of the text must be smaller than the distance field value of the pixel in the outer area of the text.
- the characteristics of the distance field value of the pixel point by comparing the distance field value of the pixel point in the same position, the pixel point drawn on the canvas is determined to be the pixel point with the smaller distance field value, and finally the inner contour of the target text is generated, which is not affected by the outer text of other texts.
- An outline effect image with outline masking which improves the display of the target text.
- an embodiment of the present disclosure provides a method for processing a text outline effect.
- a flowchart of a method for processing a text outline effect provided by an embodiment of the present disclosure, the method includes:
- the directional distance field image of the target text is obtained first, and then it is detected whether the directional distance field image of the target text and the drawn image on the canvas have the same position coordinates. pixel.
- the distance field values of the pixels with the same position coordinates are compared. Assuming that the pixels with the same position coordinates are the first pixel and the second pixel, and the first pixel belongs to the directional distance field image of the target text, and the second pixel belongs to the image drawn on the canvas, then compare the first pixel The size relationship between the distance field value of the point and the second pixel point.
- the distance field value of the first pixel is determined based on the directed distance field image of the target text
- the distance field value of the second pixel is determined based on the directed distance field image corresponding to the drawn image on the canvas. distance field value, and then compare the magnitude of the distance field value between the two.
- the embodiment of the present disclosure prioritizes the display of the inner contour of the text body over the outer contour of the text. Pixels whose distance field value is smaller than the first value are drawn on the canvas, that is, pixels whose distance field value is smaller are drawn on the canvas, so as to ensure the display effect of the text body.
- the first value can be set according to the actual situation.
- the embodiment of the present disclosure draws the pixel on the canvas, which can ensure the display effect of the text body.
- the color value of the pixel is determined based on the distance field value of the pixel, and then based on the color value to draw that pixel on the canvas.
- the corresponding relationship between the color value and the range of the distance field value is established in advance.
- the distance field value range [-m, n] (where m and n are arbitrary values, for example, m is 0.8, n is 0) corresponds to the color value white
- the distance field value range [j, k] (where , j and k are arbitrary values, for example, j is 0, k is 1) the corresponding color value is yellow.
- the pixel point on the directional distance field image is determined.
- the point is marked with a mark; wherein, the mark is used to identify that the pixel point is not drawn on the canvas. When drawing the target text, the pixels marked with this mark are not drawn.
- the second value can be set according to the actual situation.
- S203 Generate an outline effect image corresponding to the target text based on the pixels drawn on the canvas in the directional distance field image.
- the color value of each pixel is determined.
- the color value corresponding to the distance field value of the pixel point may be determined as the color value of the pixel point based on the corresponding relationship between the color value and the distance field value range. Specifically, the corresponding relationship between the color value and the distance field value range is established in advance, and then the distance field value range corresponding to the distance field value of each pixel in the directional distance field image is determined, and the color value corresponding to the distance field value range is determined. , which is determined as the color value of the pixel.
- the contour effect image corresponding to the target text can be obtained.
- the inner outline of the target text in the outline effect image is not covered.
- FIG. 3 it is a schematic diagram of a contour effect image corresponding to a target text according to an embodiment of the present disclosure. Compared with the image in Fig. 1, the contour effect image in Fig. 3 shows that the inner contour of the text is not covered, and the display effect is better.
- the distance field values of the pixels with the same positions are compared. If it is determined that the distance field value of a pixel on the directional distance field image is small, the pixel is drawn on the canvas. Finally, based on the pixels drawn on the canvas in the directional distance field image, a contour effect image corresponding to the target text is generated.
- the embodiments of the present disclosure are based on the fact that the distance field value of the pixels in the inner area of the text is negative, while the distance field value of the pixels in the outer area of the text is positive, and the distance field value of the pixels in the inner area of the text must be smaller than the distance field value of the pixel in the outer area of the text.
- the characteristics of the distance field value of the pixel point by comparing the distance field value of the pixel point in the same position, the pixel point drawn on the canvas is determined to be the pixel point with the smaller distance field value, and finally the inner contour of the target text is generated, which is not affected by the outer text of other texts.
- An outline effect image with outline masking which improves the display of the target text.
- the outline of the target text can be processed into a gradient effect.
- the embodiment of the present disclosure can be based on the directional distance.
- the dot product operation result between the offset coordinate of the pixel whose distance field value is greater than 0 and the gradient direction vector determines the gradient value of the pixel.
- the offset coordinate is the difference between the position coordinate of the pixel point and the gradient origin. Then, the color value of the pixel is determined according to the gradient value and the target gradient color.
- the target gradient color is usually two colors, such as white and black, and the gradient color effect is the effect of gradient from black to white, or the effect of gradient from black to white.
- the origin of the gradient is usually the center point of the text body, which is used to determine the point where one of the target gradient colors transitions to another color.
- the text body in the outline effect image corresponding to the target text may be drawn as a light-emitting effect.
- the absolute value of the distance field value of a pixel point is inversely proportional to the color transparency value of the pixel point, that is, the pixel point with a larger distance field value corresponds to a smaller color transparency value. Then, based on the pixel points that determine the color transparency value, the text body is drawn on the canvas, so as to realize the effect of the text body glowing.
- the depth test function in the image processor GPU can be used to implement the text contour effect processing method provided by the present disclosure. Specifically, when the GPU detects that the directional distance field image of the target text and the drawn image on the canvas have pixels with the same position coordinates, the GPU writes the distance field values of the pixels with the same position coordinates as the depth values into the GPU's depth buffer. After the depth test function is turned on, use the depth test function to compare the size relationship between the distance field values of the pixels with the same position coordinates that are written.
- the present disclosure also provides a text contour effect processing device.
- a text contour effect processing device Referring to FIG. 4 , a schematic structural diagram of a text contour effect processing device provided in an embodiment of the present disclosure is described.
- the device includes:
- the comparison module 401 is used to compare the distance field value of the pixel point with the same position coordinate when detecting that the directional distance field image of the target text and the drawn image on the canvas have the same pixel point of position coordinates;
- the first drawing module 402 is configured to draw the directional distance field image on the canvas when it is determined that the distance field value of the pixel point on the directional distance field image in the pixel point with the same position coordinate is smaller than the first value the pixels on the distance field image;
- the generating module 403 is configured to generate an outline effect image corresponding to the target text based on the pixels drawn on the canvas in the directional distance field image.
- the device further includes:
- a first determination module configured to determine the color value corresponding to the distance field value of the pixel point on the directional distance field image based on the corresponding relationship between the color value and the range of the distance field value, as the color value of the pixel point ;
- the first drawing module is specifically used for:
- the device further includes:
- the second determination module is configured to determine the gradient value of the pixel point based on the dot product operation result between the offset coordinate of the pixel point whose distance field value is greater than 0 and the gradient direction vector in the directional distance field image; wherein , the offset coordinate is the difference between the position coordinate of the pixel point and the gradient origin;
- the third determining module is configured to determine the color value of the pixel point according to the gradient value and the target gradient color.
- the device further includes:
- the fourth determination module is configured to determine the color transparency value of the pixel point based on the distance field value of the pixel point whose distance field value is less than 0 in the directional distance field image; wherein, the distance field value of the pixel point is The absolute value is inversely proportional to the color transparency value of the pixel.
- the device further includes:
- a marking module configured to mark the pixel point when the distance field value of the pixel point on the directional distance field image in the pixel point with the same position coordinate is determined to be greater than a second value; the mark is used to mark the pixel point; Identifies that the pixel is not drawn on the canvas.
- the distance field values of the pixels with the same positions are compared. If it is determined that the distance field value of a pixel on the directional distance field image is small, the pixel is drawn on the canvas. Finally, based on the pixels drawn on the canvas in the directional distance field image, a contour effect image corresponding to the target text is generated.
- the embodiments of the present disclosure are based on the fact that the distance field value of the pixels in the inner area of the text is negative, while the distance field value of the pixels in the outer area of the text is positive, and the distance field value of the pixels in the inner area of the text must be smaller than the distance field value of the pixel in the outer area of the text.
- the feature of the distance field value of the pixel point by comparing the distance field value of the pixel point in the same position, to determine whether to draw the pixel point on the canvas, and finally generate the contour effect image in which the inner contour of the target text is not covered by the outer contour of other characters, Improved display of target text.
- embodiments of the present disclosure also provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement the present invention.
- the method for processing the outline effect of text according to the embodiment is disclosed.
- Embodiments of the present disclosure also provide a computer program product, including computer programs or instructions, characterized in that, when the computer program or instructions are executed by a processor, the method for processing the outline effect of characters described in the embodiments of the present disclosure is implemented.
- an embodiment of the present disclosure also provides a text outline effect processing device, as shown in FIG. 5 , which may include:
- Processor 501 memory 502 , input device 503 and output device 504 .
- the number of processors 501 in the text outline effect processing device may be one or more, and one processor is taken as an example in FIG. 5 .
- the processor 501 , the memory 502 , the input device 503 and the output device 504 may be connected by a bus or in other ways, wherein the connection by a bus is taken as an example in FIG. 5 .
- the memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing of the text outline effect processing device by running the software programs and modules stored in the memory 502 .
- the memory 502 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like. Additionally, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input device 503 may be used to receive input numerical or character information, and to generate signal input related to user settings and function control of the text outline effect processing device.
- the processor 501 loads the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the executable files stored in the memory 502
- the application program realizes various functions of the above-mentioned text outline effect processing device.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本公开提供了一种文字的轮廓效果处理方法、装置、设备及存储介质,所述方法包括:当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较位置相同的像素点的距离场值。如果确定该有向距离场图像上的像素点的距离场值较小,则在画布上绘制该像素点。最终,基于该有向距离场图像中在画布上绘制的像素点,生成目标文字对应的轮廓效果图像。本公开基于文字内部区域的像素点的距离场值必然小于文字外部区域的像素点的距离场值的特征,通过比较位置相同的像素点的距离场值,确定是否在画布上绘制该像素点,最终生成目标文的字内轮廓不被其他文字的外轮廓遮盖的轮廓效果图像,改善了目标文字的显示效果。
Description
本公开要求于2021年01月28日提交中国国家知识产权局、申请号为202110121057.7、发明名称为“一种文字的轮廓效果处理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
本公开涉及数据处理领域,尤其涉及一种文字的轮廓效果处理方法、装置、设备及存储介质。
目前,文字效果的绘制在越来越多的领域得到应用,例如网络游戏的场景绘制中、综艺节目的字幕显示、视频中的文字显示等等。
文字的轮廓效果是一种比较常用的文字效果,如何对文字的轮廓效果进行绘制,是目前备受关注的问题。
目前的文字轮廓绘制效果存在轮廓融合的问题,如图1所示,为一种文字轮廓效果的示意图。其中,先后绘制在画布上的文字之间存在轮廓彼此遮盖的问题,影响了文字的显示效果。因此,目前亟需一种文字的轮廓效果处理方法,能够改善文字的显示效果。
发明内容
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例提供了一种文字的轮廓效果处理方法、装置、设备及存储介质,能够避免文字之间的轮廓彼此遮盖的问题,改善了文字的显示效果。
第一方面,本公开提供了一种文字的轮廓效果处理方法,所述方法包括:
当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较所述位置坐标相同的像素点的距离场值;
如果确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值小于第一数值,则在所述画布上绘制所述有向距离场图像上的所述 像素点;
基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像。
一种可选的实施方式中,所述在所述画布上绘制所述有向距离场图像上的所述像素点之前,还包括:
基于颜色值与距离场值范围的对应关系,确定所述有向距离场图像上的所述像素点的距离场值对应的颜色值,作为所述像素点的颜色值;
相应的,所述在所述画布上绘制所述有向距离场图像上的所述像素点,具体为:
基于所述像素点的颜色值,在所述画布上绘制所述有向距离场图像上的所述像素点。
一种可选的实施方式中,所述基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像之前,还包括:
基于所述有向距离场图像中距离场值大于0的像素点的偏移坐标与渐变方向向量之间的点积运算结果,确定所述像素点的渐变值;其中,所述偏移坐标为所述像素点的位置坐标与渐变原点的差值;
根据所述渐变值与目标渐变颜色,确定所述像素点的颜色值。
一种可选的实施方式中,所述基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像之前,还包括:
基于所述有向距离场图像中距离场值小于0的像素点的距离场值,确定所述像素点的颜色透明度值;其中,所述像素点的距离场值与所述像素点的颜色透明度值成反比。
一种可选的实施方式中,所述方法还包括:
如果确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值大于第二数值,则为所述像素点打上标记;所述标记用于标识所述像素点不在所述画布上绘制。
第二方面,本公开提供了一种文字的轮廓效果处理装置,所述装置包括:
比较模块,用于当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较所述位置坐标相同的像素点的距离场值;
第一绘制模块,用于在确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值小于第一数值时,在所述画布上绘制所述有向距离场图像上的所述像素点;
生成模块,用于基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像。
一种可选的实施方式中,所述装置还包括:
第一确定模块,用于基于颜色值与距离场值范围的对应关系,确定所述有向距离场图像上的所述像素点的距离场值对应的颜色值,作为所述像素点的颜色值;
相应的,所述第一绘制模块,具体用于:
基于所述像素点的颜色值,在所述画布上绘制所述有向距离场图像上的所述像素点。
第三方面,本公开提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现上述的方法。
第四方面,本公开提供了一种设备,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现上述的方法。
第五方面,本公开提供了一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,所述计算机程序或指令被处理器执行时实现上述的方法。
本公开实施例提供的技术方案与现有技术相比至少具有如下优点:
本公开实施例提供了一种文字的轮廓效果处理方法,当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较位置相同的像素点的距离场值。如果确定该有向距离场图像上的像素点的距离场值较小,则在画布上绘制该像素点。最终,基于该有向距离场图像中在画布上绘制的像素点,生成目标文字对应的轮廓效果图像。本公开实施例基于文字内部区域的像素点的距离场值为负数,而文字外部区域的像素点的距离场值为正数,且文字内部区域的像素点的距离场值必然小于文字外部区域的像素点的距离场值的特征,通过比较位置相同的像素点的距离场值,确定是否在画布上绘 制该像素点,最终生成目标文字内轮廓不被其他文字的外轮廓遮盖的轮廓效果图像,改善了目标文字的显示效果。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为一种文字轮廓效果的示意图;
图2为本公开实施例提供的一种文字的轮廓效果处理方法的流程图;
图3为本公开实施例提供的一种目标文字对应的轮廓效果图像的示意图;
图4为本公开实施例提供的一种文字的轮廓效果处理装置的结构示意图;
图5为本公开实施例提供的一种文字的轮廓效果处理设备的结构示意图。
为了能够更清楚地理解本公开实施例的上述目的、特征和优点,下面将对本公开实施例的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本公开实施例,但本公开实施例还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。
目前,文字的轮廓效果通常是基于位图文字进行绘制的,而有向距离场图像记录有文字内部及其周围外部的各个像素点距离文字轮廓(也可称为边界)的最短距离值,也称为距离场值。其中,处于文字内部区域的像素点的距离场值设为负数,而处于文字周围外部区域的像素点的距离场值设为正数。发明人发现,基于文字的有向距离场图像能够更便于对文字的轮廓效果进行绘制。
为此,本公开实施例提供了一种文字的轮廓效果处理方法,当检测到目标 文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较位置相同的像素点的距离场值。如果确定该有向距离场图像上的像素点的距离场值较小,则在画布上绘制该像素点。最终,基于该有向距离场图像中在画布上绘制的像素点,生成目标文字对应的轮廓效果图像。
本公开实施例基于文字内部区域的像素点的距离场值为负数,而文字外部区域的像素点的距离场值为正数,且文字内部区域的像素点的距离场值必然小于文字外部区域的像素点的距离场值的特征,通过比较位置相同的像素点的距离场值,确定绘制在画布上像素点为距离场值较小的像素点,最终生成目标文字内轮廓不被其他文字的外轮廓遮盖的轮廓效果图像,改善了目标文字的显示效果。
基于此,本公开实施例提供了一种文字的轮廓效果处理方法。参考图2,为本公开实施例提供的一种文字的轮廓效果处理方法的流程图,该方法包括:
S201:当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较所述位置坐标相同的像素点的距离场值。
本公开实施例中,在对目标文字的轮廓效果进行绘制之前,首先获取目标文字的有向距离场图像,然后检测目标文字的有向距离场图像与画布上已绘制图像是否存在位置坐标相同的像素点。
实际应用中,如果检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点,则比较位置坐标相同的像素点的距离场值。假设位置坐标相同的像素点为第一像素点和第二像素点,且第一像素点属于目标文字的有向距离场图像,而第二像素点属于画布上已绘制图像,则比较第一像素点和第二像素点的距离场值的大小关系。
一种可选的实施方式中,基于目标文字的有向距离场图像,确定第一像素点的距离场值,以及基于画布上已绘制图像对应的有向距离场图像,确定第二像素点的距离场值,然后比较二者的距离场值的大小关系。
实际应用中,如果未检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点,则直接基于该有向距离场图像在画布上绘制即可,不会出现目标文字的内轮廓被遮盖的问题。
S202:如果确定所述位置坐标相同的像素点中所述有向距离场图像上的像 素点的距离场值小于第一数值,则在所述画布上绘制所述有向距离场图像上的所述像素点。
由于位于文字内部区域的像素点的距离场值为负数,且位于文字外部区域的像素点的距离场值为正数,因此,位于文字内部区域的像素点的距离场值必然大于位于文字外部区域的像素点的距离场值。而本公开实施例为了保证文字的显示效果,相比文字的外轮廓更优先显示文字本体的内轮廓,为此,本公开实施例通过对位置坐标相同的像素点的距离场值的比较,保证在画布上绘制距离场值小于第一数值的像素点,即在画布上绘制距离场值较小的像素点,从而保证文字本体的显示效果。其中,第一数值可以根据实际情况设置。
实际应用中,在确定位置坐标相同的像素点中,目标文字的有向距离场图像上的像素点的距离场值较小时,说明有向距离场图像的该像素点为文字内部区域的像素点的概率较高。因此,本公开实施例在画布上绘制该像素点,能够保证文字本体的显示效果。
一种可选的实施方式中,在确定目标文字的有向距离场图像上的像素点的距离场值较小时,基于该像素点的距离场值确定该像素点的颜色值,然后基于该颜色值在画布上绘制该像素点。
一种可选的实施方式中,预先建立颜色值与距离场值范围的对应关系。例如,距离场值范围[-m,n](其中,m和n为任意值,例如,m为0.8,n为0)对应的颜色值为白色,距离场值范围[j,k](其中,j和k为任意值,例如,j为0,k为1)对应的颜色值为黄色。然后,在确定目标文字的有向距离场图像上的像素点的距离场值较小时,基于该对应关系,确定该像素点的距离场值对应的颜色值,作为该像素点的颜色值。
一种可选的实施方式中,如果确定位置坐标相同的像素点中目标文字的有向距离场图像上的像素点的距离场值大于第二数值,则为有向距离场图像上的该像素点打上标记;其中,该标记用于标识所述像素点不在所述画布上绘制。在对目标文字进行绘制时,针对打上该标记的像素点不做绘制。如果确定位置坐标相同的像素点中目标文字的有向距离场图像上的像素点的距离场值大于第二数值,即如果确定位置坐标相同的像素点中目标文字的有向距离场图像上的像素点的距离场值较大,则为有向距离场图像上的该像素点打上标记,不在 所述画布上绘制该像素点。其中,第二数值可以根据实际情况设置。
S203:基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像。
本公开实施例中,在画布上绘制各个像素点之前,确定各个像素点的颜色值。
一种可选的实施方式中,可以基于颜色值与距离场值范围的对应关系,确定该像素点的距离场值对应的颜色值,作为该像素点的颜色值。具体的,预先建立颜色值与距离场值范围的对应关系,然后,确定有向距离场图像中各个像素点的距离场值对应的距离场值范围,并将该距离场值范围对应的颜色值,确定为该像素点的颜色值。
本公开实施例中,基于目标文字的有向距离场图像,在画布上完成像素点的绘制后,可以得到目标文字对应的轮廓效果图像。其中,轮廓效果图像中的目标文字的文字内轮廓不被遮盖。如图3所示,为本公开实施例提供的一种目标文字对应的轮廓效果图像的示意图。与图1中的图像相比,图3中的轮廓效果图像的文字内轮廓未被遮盖,显示效果更优。
本公开实施例提供的文字的轮廓效果处理方法中,当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较位置相同的像素点的距离场值。如果确定该有向距离场图像上的像素点的距离场值较小,则在画布上绘制该像素点。最终,基于该有向距离场图像中在画布上绘制的像素点,生成目标文字对应的轮廓效果图像。本公开实施例基于文字内部区域的像素点的距离场值为负数,而文字外部区域的像素点的距离场值为正数,且文字内部区域的像素点的距离场值必然小于文字外部区域的像素点的距离场值的特征,通过比较位置相同的像素点的距离场值,确定绘制在画布上像素点为距离场值较小的像素点,最终生成目标文字内轮廓不被其他文字的外轮廓遮盖的轮廓效果图像,改善了目标文字的显示效果。
一种可选的实施方式中,可以将目标文字的轮廓处理成渐变色的效果,具体的,由于距离场值大于0的像素点处于文字外部区域,因此,本公开实施例可以基于有向距离场图像中距离场值大于0的像素点的偏移坐标与渐变方向向量之间的点积运算结果,确定该像素点的渐变值。其中,偏移坐标为像素点 的位置坐标与渐变原点的差值。然后,根据渐变值与目标渐变颜色,确定该像素点的颜色值。
其中,目标渐变颜色通常为两种颜色,例如白色和黑色,渐变色效果则为由黑色渐变为白色的效果,或者由黑色渐变为白色的效果。渐变原点通常为文字本体的中心点,具体用于确定目标渐变颜色中的其中一种颜色过渡到另一种颜色的点。
另一种可选的实施方式中,可以将目标文字对应的轮廓效果图像中的文字本体绘制为发光效果。具体的,在基于有向距离场图像中在画布上绘制的像素点,生成目标文字对应的轮廓效果图像之前,首先确定有向距离场图像中处于文字内部区域的像素点,即距离场值小于0的像素点。然后,基于距离场值小于0的像素点的距离场值,确定该像素点的颜色透明度值。其中,像素点的距离场值的绝对值与该像素点的颜色透明度值成反比,即距离场值越大的像素点对应的颜色透明度值越小。然后,基于确定颜色透明度值的像素点,在画布上绘制文字本体,从而实现文字本体发光的效果。
另外,实际应用中,可以利用图像处理器GPU中的深度测试功能实现本公开提供的文字的轮廓效果处理方法。具体的,当GPU检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,将位置坐标相同的像素点的距离场值作为深度值写入GPU的深度缓冲器buffer,开启深度测试功能之后,利用深度测试功能比较写入的位置坐标相同的像素点的距离场值的大小关系。
在接收到利用深度测试功能得到的距离场值的大小关系比较结果,在画布上绘制位置坐标相同的像素点中距离场值较小的像素点,保证同一个位置坐标绘制距离场值较小像素点的颜色值,不会出现目标文字的内轮廓被其他文字的外轮廓遮挡的情况。
与上述方法实施例基于同一个发明构思,本公开还提供了一种文字的轮廓效果处理装置,参考图4,为本公开实施例提供的一种文字的轮廓效果处理装置的结构示意图,所述装置包括:
比较模块401,用于当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较所述位置坐标相同的像素点的距离场 值;
第一绘制模块402,用于在确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值小于第一数值时,在所述画布上绘制所述有向距离场图像上的所述像素点;
生成模块403,用于基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像。
一种可选的实施方式中,所述装置还包括:
第一确定模块,用于基于颜色值与距离场值范围的对应关系,确定所述有向距离场图像上的所述像素点的距离场值对应的颜色值,作为所述像素点的颜色值;
相应的,所述第一绘制模块,具体用于:
基于所述像素点的颜色值,在所述画布上绘制所述有向距离场图像上的所述像素点。
一种可选的实施方式中,所述装置还包括:
第二确定模块,用于基于所述有向距离场图像中距离场值大于0的像素点的偏移坐标与渐变方向向量之间的点积运算结果,确定所述像素点的渐变值;其中,所述偏移坐标为所述像素点的位置坐标与渐变原点的差值;
第三确定模块,用于根据渐变值与目标渐变颜色,确定所述像素点的颜色值。
一种可选的实施方式中,所述装置还包括:
第四确定模块,用于基于所述有向距离场图像中距离场值小于0的像素点的距离场值,确定所述像素点的颜色透明度值;其中,所述像素点的距离场值的绝对值与所述像素点的颜色透明度值成反比。
一种可选的实施方式中,所述装置还包括:
标记模块,用于在确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值大于第二数值时,为所述像素点打上标记;所述标记用于标识所述像素点不在所述画布上绘制。
本公开实施例提供的文字的轮廓效果处理装置中,当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较位置相 同的像素点的距离场值。如果确定该有向距离场图像上的像素点的距离场值较小,则在画布上绘制该像素点。最终,基于该有向距离场图像中在画布上绘制的像素点,生成目标文字对应的轮廓效果图像。本公开实施例基于文字内部区域的像素点的距离场值为负数,而文字外部区域的像素点的距离场值为正数,且文字内部区域的像素点的距离场值必然小于文字外部区域的像素点的距离场值的特征,通过比较位置相同的像素点的距离场值,确定是否在画布上绘制该像素点,最终生成目标文字内轮廓不被其他文字的外轮廓遮盖的轮廓效果图像,改善了目标文字的显示效果。
除了上述方法和装置以外,本公开实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现本公开实施例所述的文字的轮廓效果处理方法。
本公开实施例还提供了一种计算机程序产品,包括计算机程序或指令,其特征在于,该计算机程序或指令被处理器执行时实现本公开实施例所述的文字的轮廓效果处理方法。
另外,本公开实施例还提供了一种文字的轮廓效果处理设备,参见图5所示,可以包括:
处理器501、存储器502、输入装置503和输出装置504。文字的轮廓效果处理设备中的处理器501的数量可以一个或多个,图5中以一个处理器为例。在本公开的一些实施例中,处理器501、存储器502、输入装置503和输出装置504可通过总线或其它方式连接,其中,图5中以通过总线连接为例。
存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的软件程序以及模块,从而执行文字的轮廓效果处理设备的各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。输入装置503可用于接收输入的数字或字符信息,以及产生与文字的轮廓效果处理设备的用户设置以及功能控制有关的信号输入。
具体在本实施例中,处理器501会按照如下的指令,将一个或一个以上的 应用程序的进程对应的可执行文件加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现上述文字的轮廓效果处理设备的各种功能。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
Claims (10)
- 一种文字的轮廓效果处理方法,其特征在于,所述方法包括:当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较所述位置坐标相同的像素点的距离场值;如果确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值小于第一数值,则在所述画布上绘制所述有向距离场图像上的所述像素点;基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像。
- 根据权利要求1所述的方法,其特征在于,所述在所述画布上绘制所述有向距离场图像上的所述像素点之前,还包括:基于颜色值与距离场值范围的对应关系,确定所述有向距离场图像上的所述像素点的距离场值对应的颜色值,作为所述像素点的颜色值;相应的,所述在所述画布上绘制所述有向距离场图像上的所述像素点,具体为:基于所述像素点的颜色值,在所述画布上绘制所述有向距离场图像上的所述像素点。
- 根据权利要求1所述的方法,其特征在于,所述基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像之前,还包括:基于所述有向距离场图像中距离场值大于0的像素点的偏移坐标与渐变方向向量之间的点积运算结果,确定所述像素点的渐变值;其中,所述偏移坐标为所述像素点的位置坐标与渐变原点的差值;根据所述渐变值与目标渐变颜色,确定所述像素点的颜色值。
- 根据权利要求1所述的方法,其特征在于,所述基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像之前,还包括:基于所述有向距离场图像中距离场值小于0的像素点的距离场值,确定所述像素点的颜色透明度值;其中,所述像素点的距离场值的绝对值与所述像素 点的颜色透明度值成反比。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:如果确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值大于第二数值,则为所述像素点打上标记;所述标记用于标识所述像素点不在所述画布上绘制。
- 一种文字的轮廓效果处理装置,其特征在于,所述装置包括:比较模块,用于当检测到目标文字的有向距离场图像与画布上已绘制图像存在位置坐标相同的像素点时,比较所述位置坐标相同的像素点的距离场值;第一绘制模块,用于在确定所述位置坐标相同的像素点中所述有向距离场图像上的像素点的距离场值小于第一数值时,在所述画布上绘制所述有向距离场图像上的所述像素点;生成模块,用于基于所述有向距离场图像中在所述画布上绘制的像素点,生成所述目标文字对应的轮廓效果图像。
- 根据权利要求6所述的装置,其特征在于,所述装置还包括:第一确定模块,用于基于颜色值与距离场值范围的对应关系,确定所述有向距离场图像上的所述像素点的距离场值对应的颜色值,作为所述像素点的颜色值;相应的,所述第一绘制模块,具体用于:基于所述像素点的颜色值,在所述画布上绘制所述有向距离场图像上的所述像素点。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现如权利要求1-5任一项所述的方法。
- 一种设备,其特征在于,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-5任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序或指令,所述计算机程序或指令被处理器执行时实现如权利要求1-5任一项所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/357,651 US12417567B2 (en) | 2021-01-28 | 2023-07-24 | Method for generating signed distance field image, method for generating text effect image, device and medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110121057.7 | 2021-01-28 | ||
| CN202110121057.7A CN114820876B (zh) | 2021-01-28 | 2021-01-28 | 一种文字的轮廓效果处理方法、装置、设备及存储介质 |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/133880 Continuation-In-Part WO2022160915A1 (zh) | 2021-01-28 | 2021-11-29 | 一种文字的发光效果处理方法、装置、设备及存储介质 |
Related Child Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/135953 Continuation-In-Part WO2022160946A1 (zh) | 2021-01-28 | 2021-12-07 | 一种文字的阴影效果处理方法、装置、设备及存储介质 |
| US18/357,651 Continuation-In-Part US12417567B2 (en) | 2021-01-28 | 2023-07-24 | Method for generating signed distance field image, method for generating text effect image, device and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022161237A1 true WO2022161237A1 (zh) | 2022-08-04 |
Family
ID=82526152
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/072915 Ceased WO2022161237A1 (zh) | 2021-01-28 | 2022-01-20 | 一种文字的轮廓效果处理方法、装置、设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114820876B (zh) |
| WO (1) | WO2022161237A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115512163A (zh) * | 2022-10-10 | 2022-12-23 | 北京汉仪创新科技股份有限公司 | 一种字体风格的采样方法、电子设备、存储介质和系统 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114820837A (zh) * | 2021-01-28 | 2022-07-29 | 北京字跳网络技术有限公司 | 一种渐变颜色效果处理方法、装置、设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070188498A1 (en) * | 2006-02-14 | 2007-08-16 | Fujitsu Limited | Character generation processing method |
| CN101187983A (zh) * | 2006-10-25 | 2008-05-28 | 佳能株式会社 | 图像处理设备和图像处理方法 |
| CN102208022A (zh) * | 2010-03-31 | 2011-10-05 | 富士通株式会社 | 遮挡字符恢复装置及其方法、遮挡字符识别装置及其方法 |
| CN103186506A (zh) * | 2011-12-31 | 2013-07-03 | 北大方正集团有限公司 | 一种调整字符对间距的方法和系统 |
| US20200279415A1 (en) * | 2019-02-28 | 2020-09-03 | Monotype Imaging Inc. | Efficiently Computed Distance Fields |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7054474B1 (en) * | 2001-07-25 | 2006-05-30 | 3D Sharp, Inc. | Image noise reduction |
| US8010328B2 (en) * | 2009-05-19 | 2011-08-30 | Mitsubishi Electric Research Laboratories, Inc. | Method for simulating numerically controlled milling using adaptively sampled distance fields |
| US8766985B1 (en) * | 2011-01-18 | 2014-07-01 | Pixar | Generating animation using image analogies to animate according to particular styles |
| WO2014025363A1 (en) * | 2012-08-10 | 2014-02-13 | Monotype Imaging Inc. | Producing glyph distance fields |
| KR20180042733A (ko) * | 2016-10-18 | 2018-04-26 | 삼성전자주식회사 | 영상 처리 장치 및 방법 |
| CN110782534B (zh) * | 2019-09-19 | 2023-04-07 | 稿定(厦门)科技有限公司 | 3d文字颜色渐变方法、介质、设备及装置 |
| CN111553837B (zh) * | 2020-04-28 | 2022-04-29 | 武汉理工大学 | 一种基于神经风格迁移的艺术文本图像生成方法 |
-
2021
- 2021-01-28 CN CN202110121057.7A patent/CN114820876B/zh active Active
-
2022
- 2022-01-20 WO PCT/CN2022/072915 patent/WO2022161237A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070188498A1 (en) * | 2006-02-14 | 2007-08-16 | Fujitsu Limited | Character generation processing method |
| CN101187983A (zh) * | 2006-10-25 | 2008-05-28 | 佳能株式会社 | 图像处理设备和图像处理方法 |
| CN102208022A (zh) * | 2010-03-31 | 2011-10-05 | 富士通株式会社 | 遮挡字符恢复装置及其方法、遮挡字符识别装置及其方法 |
| CN103186506A (zh) * | 2011-12-31 | 2013-07-03 | 北大方正集团有限公司 | 一种调整字符对间距的方法和系统 |
| US20200279415A1 (en) * | 2019-02-28 | 2020-09-03 | Monotype Imaging Inc. | Efficiently Computed Distance Fields |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115512163A (zh) * | 2022-10-10 | 2022-12-23 | 北京汉仪创新科技股份有限公司 | 一种字体风格的采样方法、电子设备、存储介质和系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114820876A (zh) | 2022-07-29 |
| CN114820876B (zh) | 2026-04-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10846543B2 (en) | Method and apparatus for detecting lane line, and medium | |
| US10388004B2 (en) | Image processing method and apparatus | |
| CN112001406B (zh) | 一种文本区域检测方法及装置 | |
| WO2022161237A1 (zh) | 一种文字的轮廓效果处理方法、装置、设备及存储介质 | |
| WO2022160914A1 (zh) | 一种效果处理方法、装置、设备及存储介质 | |
| CN109472852A (zh) | 点云图像的显示方法及装置、设备及存储介质 | |
| CN110853488B (zh) | 一种poi标签显示方法、装置和设备 | |
| CN113391779B (zh) | 类纸屏幕的参数调节方法、装置及设备 | |
| CN116051575A (zh) | 图像分割方法、装置、计算机设备、存储介质程序产品 | |
| EP3050605B1 (en) | A method for event detection in real-time graphic applications | |
| WO2022160915A1 (zh) | 一种文字的发光效果处理方法、装置、设备及存储介质 | |
| WO2022048414A1 (zh) | 一种图像生成方法、装置、设备及存储介质 | |
| WO2022160945A1 (zh) | 一种渐变颜色效果处理方法、装置、设备及存储介质 | |
| WO2022160946A1 (zh) | 一种文字的阴影效果处理方法、装置、设备及存储介质 | |
| WO2025112508A1 (zh) | 电子白板多区域书写方法、装置、终端设备及存储介质 | |
| CN109658324B (zh) | 一种三角形光栅化扫描方法 | |
| US20240005573A1 (en) | Method for generating signed distance field image, method for generating text effect image, device and medium | |
| JP4569785B2 (ja) | 二値化装置及び二値化処理プログラム | |
| CN105354833A (zh) | 一种阴影检测的方法和装置 | |
| WO2022161238A1 (zh) | 有向距离场图像、文字效果图像生成方法、设备及介质 | |
| CN114332836A (zh) | 一种图像检测方法、装置、存储介质及设备 | |
| CN115797494B (zh) | 图片二值化处理方法、装置、电子设备及存储介质 | |
| CN111667562B (zh) | 基于图片素材的动效界面生成方法和装置 | |
| CN114879897A (zh) | 一种笔画处理方法、装置、设备及存储介质 | |
| JPH11127353A5 (zh) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22745112 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22745112 Country of ref document: EP Kind code of ref document: A1 |