CN-121996129-A - Icon inserting method and device for collaborative drawing board, electronic equipment and storage medium
Abstract
The disclosure provides an icon inserting method and device for a collaborative drawing board, electronic equipment and a storage medium. The method comprises the steps of obtaining an icon insertion request for inserting an icon into a target collaborative drawing board, extracting an icon insertion prompt text from the icon insertion request, obtaining element attribute data of at least one associated drawing board element in the target collaborative drawing board based on the icon insertion request, determining a target icon in a preset candidate icon set according to the icon insertion prompt text and the element attribute data, and inserting the target icon into the target collaborative drawing board. The embodiment of the disclosure can improve the efficiency of inserting icons in the collaborative palette.
Inventors
- ZHANG HANYUAN
Assignees
- 腾讯科技(深圳)有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (15)
- 1. An icon inserting method of a collaborative drawing board is characterized by comprising the following steps: Acquiring an icon insertion request for inserting an icon in a target collaborative drawing board, and extracting an icon insertion prompt text from the icon insertion request; Acquiring element attribute data of at least one associated drawing board element in the target collaborative drawing board based on the icon insertion request; Determining a target icon in a preset candidate icon set according to the icon insertion prompt text and the element attribute data; and inserting the target icon into the target collaborative drawing board.
- 2. The method of claim 1, wherein the obtaining element attribute data for at least one associated palette element in the target collaborative palette based on the icon insertion request comprises: Acquiring at least one candidate drawing board element in the target collaborative drawing board, and acquiring a relevance score between each candidate drawing board element and the icon insertion request; And determining at least one associated drawing board element from at least one candidate drawing board element based on the association degree score corresponding to each candidate drawing board element, and acquiring element attribute data of the at least one associated drawing board element.
- 3. The method of claim 2, wherein the obtaining a relevance score between each of the candidate palette elements and the icon insertion request comprises: acquiring element positions of each candidate drawing board element in the target collaborative drawing board; Acquiring a target insertion position for inserting an icon in the target collaborative drawing board based on the icon insertion request; A relevance score between each of the candidate palette elements and the icon insertion request is determined based on the target insertion position and the element position.
- 4. The method of claim 3, wherein the obtaining, based on the icon insertion request, a target insertion location for inserting an icon in the target collaborative palette comprises: acquiring a target insertion position for inserting an icon in the target collaborative drawing board based on the icon insertion request; The determining a relevance score between each of the candidate palette elements and the icon insertion request based on the target insertion position and the element position, comprising: determining the same-object drawing board elements corresponding to the inserted objects in at least one candidate drawing board element; And determining a relevance score between each candidate palette element and the icon insertion request based on the co-object palette element, the target insertion position, and the element position.
- 5. The method of claim 1, wherein determining a target icon from the set of preset candidate icons based on the icon insertion prompt text and the element attribute data comprises: Inputting the element attribute data into a preset neural network model to obtain the insertion probability corresponding to each first candidate icon in a preset candidate icon set; determining at least one second candidate icon from the preset candidate icon set based on the insertion probability; determining a target icon from the at least one second candidate icon based on the icon insertion prompt text.
- 6. The method of claim 5, wherein the determining a target icon from the at least one second candidate icon based on the icon insertion prompt text comprises: inserting the icon into a prompt text to perform feature extraction to obtain the characteristics of the prompt text; Extracting the characteristics of each second candidate icon to obtain candidate icon characteristics; And determining a target icon from the at least one second candidate icon based on the prompt text feature and the candidate icon feature corresponding to each second candidate icon.
- 7. The method of claim 6, wherein the feature extraction of the icon inserted prompt text to obtain a prompt text feature comprises: Inputting the icon-inserted prompt text into a first preset sub-neural network, and extracting features of the icon-inserted prompt text to obtain text semantic features; and extracting key features of the text semantic features by using a second preset sub-neural network to obtain prompt text features.
- 8. The method of claim 5, wherein the determining at least one second candidate icon from the set of preset candidate icons based on the insertion probability comprises: Acquiring a history icon record corresponding to the target collaborative drawing board; Determining preference coefficients corresponding to each first candidate icon based on the historical icon records; And determining at least one second candidate icon from the preset candidate icon set based on the preference coefficient and the insertion probability corresponding to each first candidate icon.
- 9. The method of claim 1, wherein the inserting the target icon into the target collaborative palette comprises: obtaining drawing board layout information and object operation information of the target collaborative drawing board; Determining a target insertion position in the target collaborative palette based on the palette layout information and the object operation information; Inserting the target icon into the target insertion position of the target collaborative palette.
- 10. The method of claim 9, wherein the determining a target insertion position in the target collaborative palette based on the palette layout information and the object operation information comprises: determining the association degree of the target icon and each associated drawing board element based on the element attribute data corresponding to each associated drawing board element; And determining a target insertion position in the target collaborative palette according to the palette layout information and the association degree corresponding to each associated palette element.
- 11. The method of claim 1, wherein the set of preset candidate icons is updated by: Acquiring a preset updating period; Acquiring the number of times of icon use corresponding to each candidate icon in the preset candidate icon set based on the preset updating period, and determining a low-frequency icon in the preset candidate icon set based on the number of times of icon use corresponding to each candidate icon; and acquiring a new icon of the target icon library in the preset updating period, and updating the preset candidate icon set based on the new icon and the low-frequency icon.
- 12. An icon inserting apparatus of a collaborative drawing board, comprising: A first acquisition unit configured to acquire an icon insertion request for inserting an icon in a target collaborative palette, and extract an icon insertion prompt text from the icon insertion request; a second obtaining unit, configured to obtain element attribute data of at least one associated drawing board element in the target collaborative drawing board based on the icon insertion request; The determining unit is used for determining a target icon in a preset candidate icon set according to the icon insertion prompt text and the element attribute data; And the inserting unit is used for inserting the target icon into the target collaborative drawing board.
- 13. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, implements the method of icon insertion for collaborative drawing boards according to any one of claims 1-11.
- 14. A storage medium storing a computer program, wherein the computer program when executed by a processor implements the icon inserting method of the collaborative palette according to any one of claims 1 to 11.
- 15. A computer program product comprising a computer program that is read and executed by a processor of an electronic device, causing the electronic device to perform the icon inserting method of a collaborative palette according to any of claims 1-11.
Description
Icon inserting method and device for collaborative drawing board, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of artificial intelligence, and in particular relates to an icon inserting method, an icon inserting device, electronic equipment and a storage medium of a collaborative drawing board. Background The collaborative drawing board is a tool allowing real-time collaboration of multiple people, and can provide rich drawing templates, various drawing tools and real-time collaboration functions to support efficient drawing and creative generation of teams. A large number of icons may be provided in the online collaborative palette for objects to select while drawing. When an object wants to draw through an icon, a target icon which can express drawing purposes can be acquired from a large number of candidate icons and then inserted into a collaborative drawing board. However, in the related art, the efficiency of inserting icons in the collaborative palette is low. Disclosure of Invention The embodiment of the disclosure provides an icon inserting method, an icon inserting device, electronic equipment and a storage medium of a collaborative drawing board, which can improve the efficiency of inserting icons in the collaborative drawing board. According to an aspect of the present disclosure, there is provided an icon inserting method of a collaborative palette, including: Acquiring an icon insertion request for inserting an icon in a target collaborative drawing board, and extracting an icon insertion prompt text from the icon insertion request; Acquiring element attribute data of at least one associated drawing board element in the target collaborative drawing board based on the icon insertion request; Determining a target icon in a preset candidate icon set according to the icon insertion prompt text and the element attribute data; and inserting the target icon into the target collaborative drawing board. According to an aspect of the present disclosure, there is provided an icon inserting apparatus of a collaborative palette, including: A first acquisition unit configured to acquire an icon insertion request for inserting an icon in a target collaborative palette, and extract an icon insertion prompt text from the icon insertion request; a second obtaining unit, configured to obtain element attribute data of at least one associated drawing board element in the target collaborative drawing board based on the icon insertion request; The determining unit is used for determining a target icon in a preset candidate icon set according to the icon insertion prompt text and the element attribute data; And the inserting unit is used for inserting the target icon into the target collaborative drawing board. Optionally, the second obtaining unit is specifically configured to: Acquiring at least one candidate drawing board element in the target collaborative drawing board, and acquiring a relevance score between each candidate drawing board element and the icon insertion request; And determining at least one associated drawing board element from at least one candidate drawing board element based on the association degree score corresponding to each candidate drawing board element, and acquiring element attribute data of the at least one associated drawing board element. Optionally, the second obtaining unit is specifically configured to: acquiring element positions of each candidate drawing board element in the target collaborative drawing board; Acquiring a target insertion position for inserting an icon in the target collaborative drawing board based on the icon insertion request; A relevance score between each of the candidate palette elements and the icon insertion request is determined based on the target insertion position and the element position. Optionally, the second obtaining unit is specifically configured to: acquiring a target insertion position for inserting an icon in the target collaborative drawing board based on the icon insertion request; determining the same-object drawing board elements corresponding to the inserted objects in at least one candidate drawing board element; And determining a relevance score between each candidate palette element and the icon insertion request based on the co-object palette element, the target insertion position, and the element position. Optionally, the determining unit is specifically configured to: Inputting the element attribute data into a preset neural network model to obtain the insertion probability corresponding to each first candidate icon in a preset candidate icon set; determining at least one second candidate icon from the preset candidate icon set based on the insertion probability; determining a target icon from the at least one second candidate icon based on the icon insertion prompt text. Optionally, the determining unit is specifically configured to: inserting the icon into a prompt text t