CN118295566A - Drawing auxiliary method, device, equipment and readable storage medium - Google Patents
Drawing auxiliary method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN118295566A CN118295566A CN202410399271.2A CN202410399271A CN118295566A CN 118295566 A CN118295566 A CN 118295566A CN 202410399271 A CN202410399271 A CN 202410399271A CN 118295566 A CN118295566 A CN 118295566A
- Authority
- CN
- China
- Prior art keywords
- image
- camera
- position information
- captured
- drawing paper
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000008859 change Effects 0.000 claims abstract description 12
- 238000010422 painting Methods 0.000 claims description 29
- 238000012545 processing Methods 0.000 claims description 23
- 230000008569 process Effects 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 10
- 239000011159 matrix material Substances 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 238000003708 edge detection Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 description 17
- 238000013135 deep learning Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000011176 pooling Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000007591 painting process Methods 0.000 description 3
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000010339 dilation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003628 erosive effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 230000000877 morphologic effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Human Computer Interaction (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Studio Devices (AREA)
Abstract
本申请提供一种绘画辅助方法、装置、设备及可读存储介质。本申请的方法由电子设备执行,所述电子设备上设置有摄像头,所述方法包括:获取所述摄像头捕获图像中的第一图像;其中,所述第一图像包括绘画的目标对象;确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息;根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置。本方案解决了用户无法借助电子设备实现高质量绘画的问题。
The present application provides a drawing assistance method, device, equipment and readable storage medium. The method of the present application is executed by an electronic device, and the electronic device is provided with a camera, and the method comprises: obtaining a first image in the image captured by the camera; wherein the first image comprises a target object for drawing; determining the target position information of the first image in the drawing paper area captured by the camera; and adjusting the position of the first image in the image display interface according to the target position information and the change of the drawing paper area captured by the camera. This solution solves the problem that users cannot achieve high-quality drawing with the help of electronic devices.
Description
技术领域Technical Field
本申请实施例涉及图像处理技术领域,尤其是涉及一种绘画辅助方法、装置、设备及可读存储介质。The embodiments of the present application relate to the field of image processing technology, and in particular, to a drawing assistance method, device, equipment and readable storage medium.
背景技术Background technique
目前的绘画过程,需要用户本人进行实际创造,对用户的实际绘画水平要求较高。例如,当用户需要临摹一副作品时,如对照现实生活中的一件物品进行临摹,如果需要临摹出较好的效果,需要用户具备很强的临摹及绘画能力,对于一些画技不够出色的人、无实际绘画基础的初学者而言,想要实现出色的绘画效果是极其不便的。The current painting process requires the user to actually create, and the user's actual painting level is required to be high. For example, when a user needs to copy a work, such as copying an object in real life, if a good effect is needed to be copied, the user needs to have strong copying and painting skills. For some people who are not good at painting and beginners who have no actual painting foundation, it is extremely inconvenient to achieve excellent painting effects.
发明内容Summary of the invention
本申请实施例提供一种绘画辅助方法、装置、设备及可读存储介质,以辅助用户实现高质量绘画。The embodiments of the present application provide a drawing assistance method, device, equipment and readable storage medium to assist users in achieving high-quality drawing.
为了解决上述问题,本申请是这样实现的:In order to solve the above problems, this application is implemented as follows:
第一方面,本申请的实施例提供了一种绘画辅助方法,由电子设备执行,所述电子设备上设置有摄像头,所述方法包括:In a first aspect, an embodiment of the present application provides a drawing assistance method, which is performed by an electronic device, wherein the electronic device is provided with a camera, and the method includes:
获取所述摄像头捕获图像中的第一图像;其中,所述第一图像包括绘画的目标对象;Acquire a first image among the images captured by the camera; wherein the first image includes a target object of the painting;
确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息;Determine target position information of the first image in the drawing paper area captured by the camera;
根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置。The position of the first image in the image display interface is adjusted according to the target position information and the change of the drawing paper area captured by the camera.
第二方面,本申请实施例提供了一种绘画辅助装置,包括:In a second aspect, an embodiment of the present application provides a drawing assisting device, comprising:
获取模块,用于获取摄像头捕获图像中的第一图像;其中,所述第一图像包括绘画的目标对象;An acquisition module, used to acquire a first image from an image captured by a camera; wherein the first image includes a target object of a painting;
第一处理模块,用于确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息;A first processing module, used for determining target position information of the first image in the drawing paper area captured by the camera;
第二处理模块,用于根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置。The second processing module is used to adjust the position of the first image in the image display interface according to the target position information and the change of the drawing paper area captured by the camera.
第三方面,本申请实施例提供了一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序;所述处理器,用于读取存储器中的程序实现如前所述的绘画辅助方法中的步骤。In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is configured to read the program in the memory to implement the steps in the aforementioned painting assistance method.
第四方面,本申请实施例提供了一种可读存储介质,用于存储程序,所述程序被处理器执行时实现如前所述的绘画辅助方法中的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium for storing a program, wherein the program, when executed by a processor, implements the steps in the aforementioned painting assistance method.
第五方面,提供一种计算机程序产品,包括计算机指令,所述计算机指令被处理器执行时实现如前所述的绘画辅助方法的步骤。In a fifth aspect, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the steps of the above-mentioned drawing assistance method.
本申请的实施例,针对用户绘画的目标对象,能够获取摄像头捕获图像中的包括该目标对象的第一图像,之后,随着用户移动电子设备,在摄像头捕获的画纸区域中确定该第一图像的目标位置信息,从而根据该目标位置信息以及摄像头捕获的画纸区域的变化,及时调整第一图像在图像显示界面中的位置,方便用户临摹绘画,并实现更高质量的临摹绘画效果,无需用户具备专业绘画技能,为绘画初学者或爱好者提供便利。In an embodiment of the present application, for a target object drawn by a user, a first image including the target object can be obtained in an image captured by a camera. Thereafter, as the user moves the electronic device, the target position information of the first image is determined in the drawing paper area captured by the camera, so that the position of the first image in the image display interface is timely adjusted according to the target position information and changes in the drawing paper area captured by the camera, thereby facilitating the user to copy the painting and achieving a higher quality copying painting effect. The user does not need to have professional painting skills, thereby providing convenience for painting beginners or enthusiasts.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1表示本申请实施例的绘画辅助方法的流程示意图;FIG1 is a schematic diagram showing a flow chart of a drawing assistance method according to an embodiment of the present application;
图2表示电子设备的显示示意图之一;FIG2 is a schematic diagram showing a display of an electronic device;
图3表示深度学习抠图模型的结构示意图;FIG3 is a schematic diagram showing the structure of a deep learning cutout model;
图4表示电子设备的显示示意图之二;FIG4 shows a second display schematic diagram of an electronic device;
图5表示本申请实施例的方法的应用示意图;FIG5 is a schematic diagram showing an application of the method of an embodiment of the present application;
图6表示本申请实施例的绘画辅助装置的结构示意图;FIG6 is a schematic diagram showing the structure of a drawing assisting device according to an embodiment of the present application;
图7表示本申请实施例的电子设备的结构示意图。FIG. 7 is a schematic diagram showing the structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。在下面的描述中,提供诸如具体的配置和组件的特定细节仅仅是为了帮助全面理解本申请的实施例。因此,本领域技术人员应该清楚,可以对这里描述的实施例进行各种改变和修改而不脱离本申请的范围和精神。另外,为了清楚和简洁,省略了对已知功能和构造的描述。To make the technical problems, technical solutions and advantages to be solved by the present application clearer, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help fully understand the embodiments of the present application. Therefore, it should be clear to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. In addition, for clarity and brevity, the description of known functions and structures has been omitted.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
在本申请的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。另外,本文中术语“系统”和“网络”在本文中常可互换使用。In various embodiments of the present application, it should be understood that the order of execution of the following processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. In addition, the terms "system" and "network" are often used interchangeably in this article.
如图1所示,本申请的实施例提供了一种绘画辅助方法,由电子设备执行,所述电子设备上设置有摄像头,所述方法包括:As shown in FIG. 1 , an embodiment of the present application provides a drawing assistance method, which is performed by an electronic device, wherein a camera is provided on the electronic device, and the method includes:
步骤11,获取所述摄像头捕获图像中的第一图像;其中,所述第一图像包括绘画的目标对象;Step 11, obtaining a first image in the image captured by the camera; wherein the first image includes a target object of the painting;
步骤12,确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息;Step 12, determining target position information of the first image in the drawing paper area captured by the camera;
步骤13,根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置。Step 13: adjusting the position of the first image in the image display interface according to the target position information and the change of the drawing paper area captured by the camera.
即,按照上述步骤,电子设备针对用户绘画的目标对象,能够获取摄像头捕获图像中的包括该目标对象的第一图像,之后,随着用户移动该电子设备,在摄像头捕获的画纸区域中确定该第一图像的目标位置信息,从而根据该目标位置信息以及摄像头捕获的画纸区域的变化,及时调整第一图像在图像显示界面中的位置,方便用户临摹绘画,并实现更高质量的临摹绘画效果,无需用户具备专业绘画技能,为绘画初学者或爱好者提供便利。That is, according to the above steps, the electronic device can obtain a first image including the target object in the image captured by the camera for the target object drawn by the user. Thereafter, as the user moves the electronic device, the target position information of the first image is determined in the drawing paper area captured by the camera, so that the position of the first image in the image display interface is timely adjusted according to the target position information and changes in the drawing paper area captured by the camera, thereby facilitating the user to copy the painting and achieving higher quality copying painting effects. The user does not need to have professional painting skills, thereby providing convenience for painting beginners or enthusiasts.
需要说明的是,该实施例中,摄像头捕获到的实景作为图像在电子设备的图像显示界面中显示。It should be noted that, in this embodiment, the real scene captured by the camera is displayed as an image in the image display interface of the electronic device.
可选地,所述图像显示界面用于实时显示所述摄像头捕获的图像。Optionally, the image display interface is used to display the image captured by the camera in real time.
例如,用户通过特定操作触发电子设备的绘画辅助功能,来启动电子设备的摄像头,并在屏幕显示所述图像显示界面,触发电子设备执行本申请实施例的绘画辅助方法。For example, the user triggers the drawing assistance function of the electronic device through a specific operation to start the camera of the electronic device and display the image display interface on the screen, thereby triggering the electronic device to execute the drawing assistance method of the embodiment of the present application.
可选地,该实施例中,所述获取所述摄像头捕获图像中的第一图像,包括:Optionally, in this embodiment, acquiring the first image among the images captured by the camera includes:
在所述摄像头捕获图像的过程中,在所述图像显示界面显示所述摄像头捕获的图像;During the process of the camera capturing an image, displaying the image captured by the camera on the image display interface;
响应于用户的第一指令,对所述目标对象进行扣图处理,得到所述第一图像。In response to a first instruction from a user, the target object is subjected to image clipping processing to obtain the first image.
这里,第一指令是用户针对图像显示界面中部分图像的选择操作而生成的,用于获得第一图像。例如,如图2所示,图像显示界面20显示有绘画的目标对象,用户通过选择操作(如手指点击屏幕),与电子设备屏幕交互用矩形框21框选出目标对象22所在的区域。Here, the first instruction is generated by the user's selection operation for a portion of the image in the image display interface, and is used to obtain the first image. For example, as shown in FIG2 , the image display interface 20 displays a target object of a painting, and the user interacts with the electronic device screen through a selection operation (such as clicking the screen with a finger) to select the area where the target object 22 is located with a rectangular frame 21.
这样,用户通过查看图像显示界面显示的图像,可以在发现绘画的目标对象时,对其进行选择操作,使得电子设备响应于该选择操作对应的第一指令,执行目标对象的抠图处理,得到第一图像。通过电子设备的摄像头捕获到的实景中的目标对象并进行抠图处理,再将抠图处理后的目标对象的图像贴合呈现在摄像头捕获的用户实际的画纸区域上,从而实现用户通过设备屏幕即可观察到第一图像在画纸中的虚拟现实AR叠加效果,并可以通过设备屏幕观察并在实际的画纸上进行目标对象的临摹。In this way, the user can select the target object of the painting when the user finds it by viewing the image displayed on the image display interface, so that the electronic device responds to the first instruction corresponding to the selection operation, performs the cutout processing of the target object, and obtains the first image. The target object in the real scene captured by the camera of the electronic device is cut out, and then the image of the target object after the cutout processing is pasted and presented on the actual drawing paper area of the user captured by the camera, so that the user can observe the virtual reality AR superposition effect of the first image on the drawing paper through the device screen, and can observe and copy the target object on the actual drawing paper through the device screen.
应该知道的是,该实施例中,电子设备使用深度学习抠图模型,将目标对象的前景部分提取出作为第一图像。当然,提取出的第一图像将持续显示在图像显示界面(如显示在图像显示界面中央位置),以便用户移动电子设备,将该第一图像与画纸区域贴合。It should be known that in this embodiment, the electronic device uses a deep learning cutout model to extract the foreground portion of the target object as the first image. Of course, the extracted first image will continue to be displayed on the image display interface (such as displayed in the center of the image display interface) so that the user can move the electronic device to fit the first image to the drawing paper area.
其中,深度学习抠图模型可以自动地将图像中的前景与背景分离,生成精确的抠图结果。深度学习抠图模型采用端到端的结构,如图3所示,输入图像经过一系列卷积,下采样,上采样,最后,输出与输入图像大小一致的单通道二值Mask。Among them, the deep learning cutout model can automatically separate the foreground and background in the image and generate accurate cutout results. The deep learning cutout model adopts an end-to-end structure, as shown in Figure 3. The input image undergoes a series of convolutions, downsampling, and upsampling, and finally outputs a single-channel binary Mask with the same size as the input image.
深度学习抠图模型中,3*3卷积是指使用一个3x3的卷积核对输入图像进行卷积操作。卷积操作通过滑动卷积核在输入图像上进行计算,从而提取图像的特征。在3*3卷积中,卷积核的大小为3x3,它由9个权重参数组成。卷积操作会将卷积核与输入图像的每个像素点进行逐元素相乘,并将结果相加,得到卷积后的输出值。通过滑动卷积核,可以在整个输入图像上进行卷积操作,从而得到输出结果。3*3卷积在深度学习中被广泛应用,它可以用于图像分类、目标检测、图像分割等任务。由于3*3卷积具有较小的卷积核尺寸,参数量相对较少,计算量也较小,同时能够有效地捕捉图像的局部特征,因此被认为是一种高效的卷积操作。In the deep learning cutout model, 3*3 convolution refers to the convolution operation of the input image using a 3x3 convolution kernel. The convolution operation is calculated on the input image by sliding the convolution kernel to extract the features of the image. In the 3*3 convolution, the size of the convolution kernel is 3x3, which consists of 9 weight parameters. The convolution operation multiplies the convolution kernel by each pixel of the input image element by element, and adds the results to obtain the output value after convolution. By sliding the convolution kernel, the convolution operation can be performed on the entire input image to obtain the output result. 3*3 convolution is widely used in deep learning. It can be used for tasks such as image classification, object detection, and image segmentation. Because 3*3 convolution has a smaller convolution kernel size, relatively fewer parameters, and less computation, and can effectively capture the local features of the image, it is considered to be an efficient convolution operation.
深度学习抠图模型中,下采样用于减小图像的尺寸或降低图像的分辨率。它可以通过减少图像中的像素数量来实现。在下采样过程中,通常会使用一些特定的算法或方法来选择要保留的像素。最常见的下采样方法是平均池化和最大池化。平均池化是一种下采样方法,它将输入图像的每个小区域(例如2x2的区域)的像素值取平均,然后将平均值作为输出图像中对应区域的像素值。这样可以减小图像的尺寸,并且保留了一定程度上的图像信息。最大池化是另一种下采样方法,它将输入图像的每个小区域的像素值取最大值,然后将最大值作为输出图像中对应区域的像素值。最大池化可以帮助保留图像中的主要特征,同时减小图像的尺寸。下采样在深度学习中被广泛应用,特别是在卷积神经网络(Convolutional Neural Network,CNN)中。通过下采样操作,可以逐渐减小特征图的尺寸,从而减少计算量,并且可以提取出更加抽象和高级的特征。这有助于提高模型的效率和泛化能力。In deep learning image cutout models, downsampling is used to reduce the size of an image or reduce the resolution of an image. It can be achieved by reducing the number of pixels in an image. During the downsampling process, some specific algorithms or methods are usually used to select the pixels to be retained. The most common downsampling methods are average pooling and maximum pooling. Average pooling is a downsampling method that averages the pixel values of each small area (such as a 2x2 area) of the input image, and then uses the average value as the pixel value of the corresponding area in the output image. This can reduce the size of the image and retain a certain degree of image information. Maximum pooling is another downsampling method that takes the maximum value of the pixel value of each small area of the input image and then uses the maximum value as the pixel value of the corresponding area in the output image. Maximum pooling can help retain the main features in the image while reducing the size of the image. Downsampling is widely used in deep learning, especially in Convolutional Neural Network (CNN). Through the downsampling operation, the size of the feature map can be gradually reduced, thereby reducing the amount of calculation, and more abstract and advanced features can be extracted. This helps to improve the efficiency and generalization ability of the model.
深度学习抠图模型中,上采样用于增大图像的尺寸或提高图像的分辨率。它可以通过增加图像中的像素数量来实现。在上采样过程中,通常会使用一些特定的算法或方法来插值新的像素值。最常见的上采样方法是最近邻插值、双线性插值和双三次插值。双线性插值它通过对输入图像中的像素进行加权平均来计算输出图像中新像素的值。这种方法可以产生比最近邻插值更平滑的结果。In deep learning matting models, upsampling is used to increase the size of an image or improve the resolution of an image. It can be achieved by increasing the number of pixels in the image. During the upsampling process, some specific algorithms or methods are usually used to interpolate the new pixel values. The most common upsampling methods are nearest neighbor interpolation, bilinear interpolation, and bicubic interpolation. Bilinear interpolation calculates the value of the new pixel in the output image by taking a weighted average of the pixels in the input image. This method can produce smoother results than nearest neighbor interpolation.
在神经网络中,特征图的连接(Concat)操作是指将多个特征图按照某个维度进行拼接。这个操作可以在深度学习模型中的不同层之间进行,以便将它们的特征信息合并在一起。通常,concat操作是在特征图的通道维度上进行的,也就是将多个特征图在通道维度上进行拼接。例如,如果有两个特征图A和B,它们的尺寸分别为[H,W,C1]和[H,W,C2],其中H和W表示特征图的高度和宽度,C1和C2表示通道数。那么通过concat操作,可以将它们拼接成一个新的特征图,尺寸为[H,W,C1+C2]。特征图的concat操作将前一层的特征图与后一层的特征图进行拼接,以便保留更多的信息。它还可以用于多尺度特征融合,将来自不同层级的特征图进行拼接,以提高模型对不同尺度信息的感知能力。通过Concat操作,神经网络可以更好地利用不同层级的特征信息,从而提高模型的表达能力和性能。In neural networks, the concat operation of feature maps refers to splicing multiple feature maps along a certain dimension. This operation can be performed between different layers in a deep learning model to merge their feature information together. Usually, the concat operation is performed on the channel dimension of the feature map, that is, multiple feature maps are spliced on the channel dimension. For example, if there are two feature maps A and B, their sizes are [H, W, C1] and [H, W, C2] respectively, where H and W represent the height and width of the feature map, and C1 and C2 represent the number of channels. Then through the concat operation, they can be spliced into a new feature map with a size of [H, W, C1 + C2]. The concat operation of the feature map splices the feature map of the previous layer with the feature map of the next layer to retain more information. It can also be used for multi-scale feature fusion, splicing feature maps from different levels to improve the model's perception of information at different scales. Through the concat operation, the neural network can better utilize the feature information of different levels, thereby improving the model's expressiveness and performance.
另外,考虑到用户对临摹的期望,本申请实施例中,会在获得第一图像后,执行步骤12,确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息,以便后续用户绘画过程中出现电子设备移动等情况影响绘画效果。In addition, taking into account the user's expectations for copying, in an embodiment of the present application, after obtaining the first image, step 12 is executed to determine the target position information of the first image in the area of the drawing paper captured by the camera, so as to prevent the movement of the electronic device during the subsequent painting process of the user from affecting the painting effect.
可选地,该实施例中,所述确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息,包括:Optionally, in this embodiment, determining target position information of the first image in the drawing paper area captured by the camera includes:
在所述摄像头捕获到画纸区域的情况下,响应于用户的第二指令,调整所述图像显示界面中所述第一图像的位置;When the camera captures the drawing paper area, in response to a second instruction from the user, adjusting the position of the first image in the image display interface;
响应于用户的第三指令,获取所述图像显示界面中所述第一图像和所述画纸区域的相关位置信息;In response to a third instruction from the user, obtaining relevant position information of the first image and the drawing paper area in the image display interface;
根据所述相关位置信息确定所述目标位置信息。The target location information is determined according to the relevant location information.
这里,第二指令是用户移动电子设备,把摄像头对准画纸捕获到画纸区域的情况下对第一图像进行位置调整操作而生成的,用于调整图像显示界面中第一图像的位置。例如,用户通过调整操作(如双指触摸屏幕放大或缩小第一图像,单指拖拽第一图像)。当然,用户还可以根据个人需求自由调整,如对第一图像进行属性调整,通过滑动条调整第一图像透明度。Here, the second instruction is generated by the user moving the electronic device, aiming the camera at the drawing paper and capturing the drawing paper area to adjust the position of the first image, and is used to adjust the position of the first image in the image display interface. For example, the user performs an adjustment operation (such as two-finger touching the screen to zoom in or out the first image, and one-finger dragging the first image). Of course, the user can also freely adjust according to personal needs, such as adjusting the properties of the first image and adjusting the transparency of the first image through a slider.
第三指令是由用户完成调整第一图像的位置后确认操作(如用户调整完成后按下确定按钮)生成的,用于获取目标位置信息。这样,用户完成调整第一图像的位置后,电子设备则能够得到第一图像的目标位置信息,以便后续以目标位置信息作为参考,调整第一图像的位置。The third instruction is generated by the user confirming the operation after completing the adjustment of the position of the first image (such as pressing the confirmation button after the user completes the adjustment), and is used to obtain the target position information. In this way, after the user completes the adjustment of the position of the first image, the electronic device can obtain the target position information of the first image, so as to subsequently adjust the position of the first image with reference to the target position information.
其中,相关位置信息、目标位置信息可以包括第一图像的像素点与图像画纸区域的参考点的相对位置。画纸区域的参考点可以是画纸的四个顶点,也可以是其他位置点。The relevant position information and the target position information may include the relative position of the pixel points of the first image and the reference points of the image drawing area. The reference points of the drawing area may be the four vertices of the drawing paper or other position points.
该实施例中,根据所述相关位置信息确定所述目标位置信息,一方面,可以将相关位置信息作为目标位置信息,另一方面,基于相关位置信息计算得到目标位置信息。In this embodiment, the target position information is determined according to the relevant position information. On the one hand, the relevant position information can be used as the target position information. On the other hand, the target position information is calculated based on the relevant position information.
可选地,所述确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息,或者,所述根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置,包括:Optionally, determining target position information of the first image in the drawing paper area captured by the camera, or adjusting the position of the first image in the image display interface according to the target position information and a change in the drawing paper area captured by the camera, includes:
去除所述摄像头捕获的帧图像中的背景区域,得到第二图像;Removing the background area in the frame image captured by the camera to obtain a second image;
对所述第二图像进行边缘检测和轮廓提取,确定最大轮廓的位置;Performing edge detection and contour extraction on the second image to determine the position of the maximum contour;
根据所述最大轮廓的位置,得到参考点位置信息。According to the position of the maximum contour, the reference point position information is obtained.
一种实现中,对于用户的确认操作,电子设备会基于摄像头捕获的当前帧图像,去除其背景区域得到第二图像,然后通过边缘检测和轮廓提取,确定最大轮廓的位置,再由最大轮廓的位置得到参考点位置信息,这样,以参考点位置信息为基础能够确定该当前帧图像中第一图像和画纸区域的相关位置信息。In one implementation, in response to the user's confirmation operation, the electronic device will remove the background area of the current frame image captured by the camera to obtain a second image, and then determine the position of the maximum contour through edge detection and contour extraction, and then obtain the reference point position information from the position of the maximum contour. In this way, the relevant position information of the first image and the drawing paper area in the current frame image can be determined based on the reference point position information.
一种实现中,对于绘画过程中摄像头或画纸的移动,电子设备会基于摄像头捕获的实时帧图像,去除其背景区域得到第二图像,然后通过边缘检测和轮廓提取,确定最大轮廓的位置,再由最大轮廓的位置得到参考点位置信息,之后既能够以参考点位置信息为基础能够实时调整第一图像在图像显示界面中的位置。In one implementation, for the movement of the camera or drawing paper during the painting process, the electronic device will remove the background area of the real-time frame image captured by the camera to obtain a second image, and then determine the position of the maximum contour through edge detection and contour extraction, and then obtain the reference point position information from the position of the maximum contour. Thereafter, the position of the first image in the image display interface can be adjusted in real time based on the reference point position information.
其中,在进行背景区域去除之前,针对摄像头采集的原始帧图像,会通过形态学闭运算处理去除噪声,包括先膨胀,后腐蚀。Before removing the background area, the original frame image captured by the camera will be processed through morphological closing operations to remove noise, including dilation and then erosion.
在对第二图像进行边缘检测和轮廓提取后,最大轮廓可以基于轮廓包括的面积最大确定。After edge detection and contour extraction are performed on the second image, the maximum contour may be determined based on the maximum area included in the contour.
此外,该实施例中,所述根据所述最大轮廓的位置,得到参考点位置信息,包括:In addition, in this embodiment, obtaining the reference point position information according to the position of the maximum contour includes:
将所述最大轮廓进行四边形逼近处理,确定四个顶点的位置信息;Performing quadrilateral approximation processing on the maximum contour to determine position information of four vertices;
将所述顶点作为参考点进行排序,得到所述参考点位置信息。The vertices are sorted as reference points to obtain the reference point position information.
这里,四边形逼近处理包括以下步骤:Here, the quadrilateral approximation process includes the following steps:
将最大轮廓视为曲线,并确定曲线的首尾两点A、B;Consider the maximum contour as a curve and determine the first and last points A and B of the curve;
1)连接A、B,得到直线段AB,该直线为曲线的弦;1) Connect A and B to obtain a straight line segment AB, which is the chord of the curve;
2)选择曲线上与该直线段距离最大的点C,计算其与AB的距离d;2) Select the point C on the curve that is the farthest from the straight line segment, and calculate its distance d from AB;
3)比较d与预先给定的阈值threshold的大小,如果d小于threshold,则该直线段作为曲线的近似,该段曲线处理完毕;3) Compare d with a predetermined threshold value. If d is less than the threshold value, the straight line segment is regarded as an approximation of the curve, and the curve segment is processed.
如果d大于threshold,则用C将曲线分为两段AC和BC,并分别将这两段曲线进行上述1)~3)的处理。If d is greater than the threshold, the curve is divided into two segments AC and BC by C, and the two segments are processed by the above 1) to 3) respectively.
当所有曲线都处理完毕时,依次连接各个分割点形成的折线,即可以作为曲线的近似四边形,得到四个顶点的位置信息。When all curves are processed, the broken lines formed by sequentially connecting the segmentation points can be used as an approximate quadrilateral of the curve to obtain the position information of the four vertices.
需要了解的是,该实施例中的位置信息可以是坐标值。而对参考点的排序,则可以是:将横纵坐标和最小的参考点作为左上参考点,横纵坐标和最大的参考点作为右下参考点,横纵坐标差最小的参考点作为右上参考点,横纵坐标差最大的参考点作为左下参考点。It should be understood that the position information in this embodiment may be a coordinate value. The reference points may be sorted as follows: the reference point with the smallest sum of horizontal and vertical coordinates is used as the upper left reference point, the reference point with the largest sum of horizontal and vertical coordinates is used as the lower right reference point, the reference point with the smallest difference between horizontal and vertical coordinates is used as the upper right reference point, and the reference point with the largest difference between horizontal and vertical coordinates is used as the lower left reference point.
可选地,该实施例中,所述根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置,还包括:Optionally, in this embodiment, adjusting the position of the first image in the image display interface according to the target position information and the change of the drawing paper area captured by the camera further includes:
在所述摄像头捕获的画纸区域发生移动的情况下,获取移动前后的参考点位置信息;When the drawing paper area captured by the camera moves, obtaining the reference point position information before and after the movement;
根据所述移动前后的参考点位置信息,确定单应性变换矩阵;Determining a homography transformation matrix according to the position information of the reference points before and after the movement;
根据所述单应性变换矩阵和所述目标位置信息,调整所述第一图像在图像显示界面中的位置。The position of the first image in the image display interface is adjusted according to the homography transformation matrix and the target position information.
故,在发生移动的情况下,通过对画纸区域进行稳定跟踪,实时计算每帧图像相对初始帧,针对参考点位置变化,可以确定单应性变换矩阵H,这样,结合H和已确定的目标位置信息,则能够调整第一图像在图像显示界面中的位置,如图4所示,实现图像显示界面40中目标对象41与画纸42稳定贴合的效果。其中,初始帧是目标位置信息确定的帧图像。Therefore, in the case of movement, by stably tracking the drawing paper area and calculating each frame image relative to the initial frame in real time, the homography transformation matrix H can be determined for the change in the reference point position. In this way, by combining H and the determined target position information, the position of the first image in the image display interface can be adjusted, as shown in FIG4 , to achieve the effect of stable fit between the target object 41 and the drawing paper 42 in the image display interface 40. Among them, the initial frame is the frame image determined by the target position information.
下面,以用户想画自己家中的一盆花为例,说明本申请实施例的方法应用如图5所示:Below, taking the example of a user wanting to draw a pot of flowers in his home, the method application of the embodiment of the present application is illustrated as shown in FIG5 :
用户启动电子设备的绘画辅助功能,摄像头实时采集图像在图像显示界面显示。用户通过手指点击屏幕,用矩形框框选出一盆花作为目标对象。电子设备通过抠图处理得到第一图像。用户移动电子设备,把摄像头对准画纸。用户调整第一图像位置、透明度等(双指触摸屏幕实现放大或缩小第一图像,单指拖拽第一图像,也可以通过滑动条调整第一图像透明度),并确认调整(调整完后按下确定按钮),此时,图像显示界面会显示把第一图像叠加到画纸上的效果。之后,在摄像头捕获的画纸区域发生移动的情况下,对画纸区域进行稳定跟踪,实时计算每一帧图像相对初始帧的单应变换矩阵,调整第一图像在图像显示界面中的位置,从而实现当电子设备移动时能够时刻保持第一图像贴合画纸与画纸相对位置保持不变的效果。最后,用户通过图像显示界面画面可以在画纸上依照物体轮廓临摹出这盆花。The user activates the drawing assistance function of the electronic device, and the camera collects images in real time and displays them on the image display interface. The user clicks the screen with his finger and selects a pot of flowers as the target object with a rectangular frame. The electronic device obtains the first image through cutout processing. The user moves the electronic device and points the camera at the drawing paper. The user adjusts the position and transparency of the first image (touch the screen with two fingers to enlarge or reduce the first image, drag the first image with one finger, and adjust the transparency of the first image through the slider), and confirms the adjustment (press the OK button after the adjustment). At this time, the image display interface will show the effect of superimposing the first image on the drawing paper. Afterwards, when the drawing paper area captured by the camera moves, the drawing paper area is stably tracked, the homography transformation matrix of each frame image relative to the initial frame is calculated in real time, and the position of the first image in the image display interface is adjusted, so as to achieve the effect of keeping the first image in contact with the drawing paper and the relative position of the drawing paper unchanged when the electronic device moves. Finally, the user can copy the pot of flowers on the drawing paper according to the outline of the object through the image display interface.
摄像头对着花就能把这盆花从当前帧的画面背景中分离出来,然后在移动手机摄像头正对着画纸,就能够在手机画面上呈现出把这盆花贴合叠加在实际真实场景中的画纸上的AR效果。这样该名用户就能通过图像显示界面,在实际的真实画纸上,透过图像显示界面在画纸上呈现的内容依样画线条,临摹出这盆花。By pointing the camera at the flower, the flower can be separated from the background of the current frame. Then, by pointing the mobile phone camera at the drawing paper, an AR effect of superimposing the flower on the drawing paper in the actual scene can be presented on the mobile phone screen. In this way, the user can draw lines on the actual drawing paper through the image display interface, and copy the flower.
综上,本申请实施例的方法,通过电子设备的摄像头捕获到的实景中的目标对象并进行抠图处理,再将抠图处理后的目标对象图像贴合呈现在摄像头捕获的用户实际的画纸区域上,从而实现用户通过设备屏幕即可观察到抠图图像在画纸中的AR叠加效果,并可以通过设备屏幕观察并在实际的画纸上进行目标对象的临摹,辅助用户完成高质量绘画效果。In summary, the method of the embodiment of the present application captures the target object in the real scene through the camera of the electronic device and performs cutout processing, and then fits the target object image after cutout processing on the actual drawing paper area of the user captured by the camera, so that the user can observe the AR overlay effect of the cutout image on the drawing paper through the device screen, and can observe through the device screen and copy the target object on the actual drawing paper, helping the user to achieve high-quality drawing effects.
如图6所示,本申请实施例的一种绘画辅助装置,包括:As shown in FIG6 , a drawing assisting device according to an embodiment of the present application includes:
获取模块61,用于获取摄像头捕获图像中的第一图像;其中,所述第一图像包括绘画的目标对象;An acquisition module 61 is used to acquire a first image in an image captured by a camera; wherein the first image includes a target object of a painting;
第一处理模块62,用于确定所述第一图像在所述摄像头捕获的画纸区域的目标位置信息;A first processing module 62, configured to determine target position information of the first image in the drawing paper area captured by the camera;
第二处理模块63,用于根据所述目标位置信息以及所述摄像头捕获的画纸区域的变化,调整所述第一图像在图像显示界面中的位置。The second processing module 63 is used to adjust the position of the first image in the image display interface according to the target position information and the change of the drawing paper area captured by the camera.
该装置针对用户绘画的目标对象,能够获取摄像头捕获图像中的包括该目标对象的第一图像,之后,随着用户移动该电子设备,在摄像头捕获的画纸区域中确定该第一图像的目标位置信息,从而根据该目标位置信息以及摄像头捕获的画纸区域的变化,及时调整第一图像在图像显示界面中的位置,方便用户临摹绘画,并实现更高质量的临摹绘画效果,无需用户具备专业绘画技能,为绘画初学者或爱好者提供便利。The device can obtain a first image including the target object in the image captured by the camera for the target object drawn by the user. Thereafter, as the user moves the electronic device, the target position information of the first image is determined in the drawing paper area captured by the camera, so as to timely adjust the position of the first image in the image display interface according to the target position information and changes in the drawing paper area captured by the camera, thereby facilitating the user to copy the painting and achieving a higher quality copying painting effect, without the need for the user to have professional painting skills, providing convenience for painting beginners or enthusiasts.
可选地,所述获取模块还用于:Optionally, the acquisition module is further used for:
在所述摄像头捕获图像的过程中,在所述图像显示界面显示所述摄像头捕获的图像;During the process of the camera capturing an image, displaying the image captured by the camera on the image display interface;
响应于用户的第一指令,对所述目标对象进行扣图处理,得到所述第一图像。In response to a first instruction from a user, the target object is subjected to image clipping processing to obtain the first image.
可选地,所述第一处理模块还用于:Optionally, the first processing module is further used for:
在所述摄像头捕获到画纸区域的情况下,响应于用户的第二指令,调整所述图像显示界面中所述第一图像的位置;When the camera captures the drawing paper area, in response to a second instruction from the user, adjusting the position of the first image in the image display interface;
响应于用户的第三指令,获取所述图像显示界面中所述第一图像和所述画纸区域的相关位置信息;In response to a third instruction from the user, obtaining relevant position information of the first image and the drawing paper area in the image display interface;
根据所述相关位置信息确定所述目标位置信息。The target location information is determined according to the relevant location information.
可选地,所述第一处理模块或所述第二处理模块还用于:Optionally, the first processing module or the second processing module is further used for:
去除所述摄像头捕获的帧图像中的背景区域,得到第二图像;Removing the background area in the frame image captured by the camera to obtain a second image;
对所述第二图像进行边缘检测和轮廓提取,确定最大轮廓的位置;Performing edge detection and contour extraction on the second image to determine the position of the maximum contour;
根据所述最大轮廓的位置,得到参考点位置信息。According to the position of the maximum contour, the reference point position information is obtained.
可选地,所述第二处理模块还用于:Optionally, the second processing module is further used for:
在所述摄像头捕获的画纸区域发生移动的情况下,获取移动前后的参考点位置信息;When the drawing paper area captured by the camera moves, obtaining the reference point position information before and after the movement;
根据所述移动前后的参考点位置信息,确定单应性变换矩阵;Determining a homography transformation matrix according to the position information of the reference points before and after the movement;
根据所述单应性变换矩阵和所述目标位置信息,调整所述第一图像在图像显示界面中的位置。The position of the first image in the image display interface is adjusted according to the homography transformation matrix and the target position information.
可选地,所述根据所述最大轮廓的位置,得到参考点位置信息,包括:Optionally, obtaining reference point position information according to the position of the maximum contour includes:
将所述最大轮廓进行四边形逼近处理,确定四个顶点的位置信息;Performing quadrilateral approximation processing on the maximum contour to determine position information of four vertices;
将所述顶点作为参考点进行排序,得到所述参考点位置信息。The vertices are sorted as reference points to obtain the reference point position information.
可选地,所述图像显示界面用于实时显示所述摄像头捕获的图像。Optionally, the image display interface is used to display the image captured by the camera in real time.
本申请实施例装置的实现原理和技术效果类似,本实施例此处不再赘述。The implementation principle and technical effect of the device in the embodiment of the present application are similar, and this embodiment will not be repeated here.
如图7所示,本申请实施例还提供了一种电子设备,包括:存储器702、处理器701及存储在所述存储器702上并可在所述处理器701上运行的程序;As shown in FIG. 7 , an embodiment of the present application further provides an electronic device, including: a memory 702 , a processor 701 , and a program stored in the memory 702 and executable on the processor 701 ;
所述处理器701用于读取存储器中的程序实现上述的绘画辅助方法的步骤。The processor 701 is used to read the program in the memory to implement the steps of the above-mentioned drawing assistance method.
本申请实施例提供的电子设备,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The electronic device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.
本领域技术人员可以理解,实现上述实施例的全部或者部分步骤可以通过硬件来完成,也可以通过计算机程序来指示相关的硬件来完成,所述计算机程序包括执行上述方法的部分或者全部步骤的指令;且该计算机程序可以存储于一可读存储介质中,存储介质可以是任何形式的存储介质。Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing relevant hardware through a computer program, wherein the computer program includes instructions for executing part or all of the steps of the above method; and the computer program may be stored in a readable storage medium, and the storage medium may be any form of storage medium.
另外,本申请具体实施例还提供一种可读存储介质,其上存储有程序,该程序被处理器执行时实现上述的绘画辅助方法中的步骤。且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, the specific embodiment of the present application also provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the above-mentioned drawing assistance method are implemented. And the same technical effect can be achieved, so in order to avoid repetition, it will not be repeated here.
本申请实施例还提供一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现上述图1所示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the method embodiment shown in Figure 1 above are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
以上所述的是本申请的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本申请所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本申请的保护范围内。The above is a preferred embodiment of the present application. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications are also within the scope of protection of the present application.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410399271.2A CN118295566A (en) | 2024-04-03 | 2024-04-03 | Drawing auxiliary method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410399271.2A CN118295566A (en) | 2024-04-03 | 2024-04-03 | Drawing auxiliary method, device, equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118295566A true CN118295566A (en) | 2024-07-05 |
Family
ID=91680577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410399271.2A Pending CN118295566A (en) | 2024-04-03 | 2024-04-03 | Drawing auxiliary method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118295566A (en) |
-
2024
- 2024-04-03 CN CN202410399271.2A patent/CN118295566A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110532984B (en) | Key point detection method, gesture recognition method, device and system | |
WO2020220517A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
JP7542740B2 (en) | Image line of sight correction method, device, electronic device, and computer program | |
CN108062525B (en) | A deep learning hand detection method based on hand region prediction | |
WO2007128117A1 (en) | Method. system and computer program product for automatic and semi-automatic modification of digital images of faces | |
CN111723707B (en) | Gaze point estimation method and device based on visual saliency | |
CN111882627A (en) | Image processing method, video processing method, device, equipment and storage medium | |
WO2020186385A1 (en) | Image processing method, electronic device, and computer-readable storage medium | |
CN111831123B (en) | Gesture interaction method and system suitable for desktop mixed reality environment | |
CN109951635A (en) | Photographing processing method, device, mobile terminal, and storage medium | |
CN114372931A (en) | A target object blurring method, device, storage medium and electronic device | |
Dutta | Depth-aware blending of smoothed images for bokeh effect generation | |
CN103902730B (en) | Thumbnail generation method and system | |
CN109948525A (en) | Photographing processing method and device, mobile terminal and storage medium | |
CN101789235A (en) | Method and device for processing image | |
WO2024027583A1 (en) | Image processing method and apparatus, and electronic device and readable storage medium | |
CN111862287B (en) | Eye texture image generation method, texture mapping method, device and electronic device | |
CN117333635A (en) | Interactive two-hand three-dimensional reconstruction method and system based on single RGB image | |
CN116152100A (en) | Point cloud denoising method, device and storage medium based on feature analysis and scale selection | |
Chang et al. | Panoramic human structure maintenance based on invariant features of video frames | |
CN107093165A (en) | The fast display method and device of a kind of recursive image | |
Chai et al. | MSTGAR: Multioperator-based stereoscopic thumbnail generation with arbitrary resolution | |
CN118295566A (en) | Drawing auxiliary method, device, equipment and readable storage medium | |
CN112132085B (en) | Image processing method and electronic equipment | |
WO2022258013A1 (en) | Image processing method and apparatus, electronic device and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |