Game interface labeling method and device, electronic equipment and storage medium
Through the search of word color recognition tools and word color coding library, the problems of inefficiency and inaccurate matching in game interface font design are solved, fast and accurate font matching is achieved, and the quality of game design and development is improved.
Patent Information
- Application Number
- CN202411397447.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2024-12-31
AI Technical Summary
In game interface font design, the existing technology relies on visual search and manual comparison, resulting in inefficiency and inaccurate matching, prone to human errors, affecting the design process.
The word color information of the target font element is determined through the word color recognition tool, and the matching word color code is retrieved in the preset word color code library according to the word color code code specifications of the game project, and the label information matching the target font element is generated.
It improves the efficiency and accuracy of font matching, reduces user burden, and improves the efficiency and quality of game design and development.
Smart Images

Figure CN119215423A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game data technology, and in particular to a method for marking a game interface, a device for marking a game interface, an electronic device, and a computer-readable storage medium. Background Art
[0002] The game interface of a game can be an active window for players to interact with the game. It can usually be composed of multiple interface elements to provide information, control the game process and enhance the game experience. Different games can correspond to different art styles. Based on different art styles, game developers can usually perform corresponding art designs on the game interface, such as designing the fonts in the game interface. Among them, in the process of designing the style of the fonts in the game interface, game visual designers often need to process the fonts in the game interface through visual search, manual comparison of color values, etc. In this process, visual search, manual comparison and other methods require a lot of time and energy, and are prone to human errors and deviations, resulting in inaccurate and inconsistent matching problems, affecting the font design process of the game interface. Summary of the invention
[0003] The embodiment of the present invention provides a method, device, electronic device and computer-readable storage medium for marking a game interface, so as to solve or partially solve the problems of low efficiency and inaccurate matching when processing the fonts of the game interface.
[0004] An embodiment of the present invention discloses a method for marking a game interface, which is applied to a game project. The method includes:
[0005] Determining a completed game interface, wherein the game interface at least includes a target font element to be annotated;
[0006] Determine the font color information corresponding to the target font element by using a font color recognition tool;
[0007] According to the character color coding specification of the game item, searching for the character color coding corresponding to the character color information in a preset character color coding library, and displaying a number of character color coding search results corresponding to the character color coding;
[0008] In response to a selection operation on the character color code search result, determining a target character color code corresponding to the selection operation;
[0009] Based on the target font color code, the target font element in the game interface is marked to generate marking information matching the target font element.
[0010] The embodiment of the present invention discloses a marking device for a game interface, which is applied to a game project. The device includes:
[0011] A font color information determination module, used to determine font color information corresponding to the target font element by using a font color recognition tool;
[0012] A search module, for searching a preset character color code library for a character color code corresponding to the character color information according to the character color code specification of the game item, and displaying a number of character color code search results corresponding to the character color code;
[0013] A screening module, for responding to a selection operation on the character color code search result, determining a target character color code corresponding to the selection operation;
[0014] The marking module is used to mark the target font element in the game interface based on the target font color code and generate marking information matching the target font element.
[0015] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0016] The memory is used to store computer programs;
[0017] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0018] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.
[0019] The embodiments of the present invention include the following advantages:
[0020] In an embodiment of the present invention, after the design of the game interface is completed, for the font elements in the game interface, the game developer can mark the font elements so as to provide the marking results to the corresponding downstream splicing and program front-end for use. In the process of marking the font elements in the game interface, the game developer can determine the font color information corresponding to the target font element through the font color recognition tool, and then retrieve the font color code corresponding to the font color information in the preset font color coding library according to the font color coding specification of the game project, and display a number of font color coding retrieval results corresponding to the font color code, and in response to the selection operation on the font color coding retrieval result, determine the target font color code corresponding to the selection operation, and then mark the target font element in the game interface based on the target font color code, and generate marking information matching the target font element, so that in the process of marking the font elements in the game interface, based on the font color information, a search can be performed to quickly find multiple matching font color coding retrieval results, and then the game developer can select the corresponding font parameters from them to mark the target font element. When the font elements are marked, the efficiency and accuracy of the game font color matching can be effectively improved based on the search results, the burden on users can be reduced, and the efficiency and quality of game design and development can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flowchart of the steps of a method for marking a game interface provided in an embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a tool management interface provided in an embodiment of the present invention;
[0023] Figure 3 is a structural block diagram of a marking device for a game interface provided in an embodiment of the present invention;
[0024] Figure 4 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0026] As an example, in the process of designing the font style of the game interface, the game visual designer often needs to process the fonts in the game interface through visual search, manual comparison of color values, etc. In this process, for the huge font color coding library, visual search, manual comparison and other methods require a lot of time and effort, and are prone to human errors and deviations, resulting in inaccurate and inconsistent matching problems, affecting the font design process of the game interface.
[0027] In this regard, in the present invention, after the design of the game interface is completed, for the font elements in the game interface, the game developer can mark the font elements so that the marking results can be provided to the corresponding downstream splicing and program front-end for use. In the process of marking the font elements in the game interface, the game developer can determine the font color information corresponding to the target font element through the font color recognition tool, and then retrieve the font color code corresponding to the font color information in the preset font color coding library according to the font color coding specification of the game project, and display a number of font color coding retrieval results corresponding to the font color code, and in response to the selection operation for the font color coding retrieval result, determine the target font color code corresponding to the selection operation, and then based on the target font color code, mark the target font element in the game interface, and generate marking information matching the target font element, so that in the process of marking the font elements in the game interface, based on the font color information, a search can be performed to quickly find multiple matching font color coding retrieval results, and then the game developer can select the corresponding font parameters from them to mark the target font element. When the font elements are marked, the efficiency and accuracy of the game font color matching can be effectively improved based on the search results, the burden on users can be reduced, and the efficiency and quality of game design and development can be improved.
[0028] Reference Figure 1 , shows a flowchart of a method for marking a game interface provided in an embodiment of the present invention, which may specifically include the following steps:
[0029] Step 101, determining a constructed game interface, wherein the game interface at least includes a target font element to be annotated;
[0030] Optionally, in an embodiment of the present invention, it can be applied to electronic devices, and corresponding font color recognition tools can be run in the electronic devices. Game developers (hereinafter referred to as users) can retrieve font parameters through the font color recognition tool and annotate font elements in the game interface based on the search results.
[0031] In an embodiment of the present invention, the game interface may be an active window for players to interact with the game, which may generally be composed of multiple interface elements to provide information, control the game process, and enhance the game experience. Among them, the game interface may include a number of font elements, and the font elements may be interface elements that transmit information through text in the game interface. The font elements can effectively convey information to players, enhance user experience, and shape the game atmosphere. For font elements, by designing corresponding font parameters such as corresponding font color identification, font color, border color, stroke information, font type, thickness information, etc., font elements of different styles can be effectively constructed, which can enrich the game interface content while effectively enhancing user experience and shaping the game atmosphere.
[0032] Step 102, determining the font color information corresponding to the target font element by using a font color recognition tool;
[0033] In the process of marking the font elements of the game interface, the user can run the corresponding font color recognition tool in the electronic device, and the electronic device can display the tool management interface corresponding to the font color recognition tool through the graphical user interface, so that the user can retrieve font parameters in the tool management interface.
[0034] Optionally, the character color recognition tool can be a corresponding plug-in, application, applet, browser page, etc. The electronic device runs the character color recognition tool and displays a tool management interface corresponding to the character color recognition tool through a graphical user interface, so that the user can retrieve font parameters in the tool management interface to improve the efficiency of font element marking.
[0035] In an embodiment of the present invention, for the target font elements that need to be marked, the user can input a parameter retrieval operation for the target font elements in the tool management interface, and the character color recognition tool can respond to the parameter retrieval operation and determine the character color information corresponding to the parameter retrieval operation, so as to perform corresponding parameter retrieval based on the character color information, and then implement the marking of the font elements based on the retrieval results, thereby improving the efficiency of font marking.
[0036] In some feasible implementations, a corresponding search control may be provided in the tool management interface corresponding to the character color recognition tool, and the user may use the search control to search for the character color coding search results for the target font element, so as to select the corresponding font parameter from the search results to annotate the target font element. Specifically, the electronic device may respond to the parameter search operation for the search control, determine the character color information corresponding to the parameter search operation, so as to perform parameter search based on the character color information, thereby searching based on the character color information, and quickly finding matching search results, and based on the search results, the efficiency of subsequent annotation of the font element may be improved.
[0037] In one example, the search control may be an identification search control, and the character color information may include a character color identification. Then, the electronic device may determine the character color identification corresponding to the identification input operation in response to the identification input operation of the identification search control; or may determine the color value information corresponding to the color value input operation in response to the color value input operation of the identification search control. Among them, the character color identification can be used to distinguish different colors, and the user can enter the corresponding character color identification in the identification search control to retrieve the corresponding font parameters based on the character color identification; the color value can be used to represent the numerical value or code of the color, and a color can be accurately defined by the color value. Similarly, the user can enter the corresponding color value information in the identification search control to retrieve the corresponding font parameters based on the color value information, so that the search based on the character color identification or color value information can quickly find the matching search results, and then based on the search results, the efficiency of subsequent annotation of font elements can be improved.
[0038] In another example, the retrieval control may be an image retrieval control, and the electronic device may determine a target image corresponding to the image input operation in response to an image input operation on the image retrieval control, where the target image is an image corresponding to a target font element. The target image may then be identified to obtain character color information corresponding to the target image, thereby performing a search based on the character color information, and quickly finding matching retrieval results. The efficiency of subsequent annotation of font elements may then be improved based on the retrieval results.
[0039] In another example, the search control may also be a color picker, and the electronic device may determine the target color corresponding to the color picking operation in response to the color picking operation on the color picker. The color picker may be used to select and obtain the color corresponding to the target font element, and the user may obtain the target color corresponding to the target font element by inputting the corresponding color picking operation in the color picker, thereby searching based on the target color, and quickly finding matching search results, thereby improving the efficiency of subsequent annotation of font elements based on the search results.
[0040] Through the above different methods, the font color information determined by the user can be accurately and quickly determined, so as to search based on the font color information and quickly find matching search results, thereby improving the efficiency of subsequent annotation of font elements based on the search results.
[0041] Step 103, according to the character color coding standard of the game item, searching for the character color coding corresponding to the character color information in a preset character color coding library, and displaying a number of character color coding search results corresponding to the character color coding;
[0042] For game projects, users can configure corresponding font color coding specifications for game projects, that is, encode according to the colors corresponding to the font elements in the game interface, so that each font element corresponds to a font color code. For example, font element ① corresponds to font color code 102, font element ② corresponds to font color code 103, font element ③ corresponds to font color code 107, font element ④ corresponds to font color code 52, etc., so that when the user marks the target font elements to be marked in the game interface, they can find the corresponding font color code, obtain the font parameters corresponding to the font color code, and then mark the target font elements based on the font parameters.
[0043] Among them, the character color coding library may include font parameters such as character color identification, font color, border color, stroke information, font type, thickness information, etc. At the same time, one character color coding can correspond to different font parameters, such as character color coding 102, character color coding 103, character color coding 107, character color coding 52, etc. can respectively correspond to different font parameters, etc., so that the user can retrieve the corresponding font parameters in the character color coding library based on the character color coding, and then mark the target font elements based on the retrieved results. The present invention is not limited to this.
[0044] In an embodiment of the present invention, in the process of retrieving font parameters, the font recognition tool can retrieve the corresponding font color code in the font color coding library based on the determined font color identification, color value information, color corresponding to the target image, target color and other font color information, and display the font color code retrieval results corresponding to each font color code.
[0045] It should be noted that there are corresponding identifiers for the character color identifier, color value information and target color, and the character color recognition tool can quickly retrieve the corresponding character color code and the corresponding character color code search results in the character color code library based on this type of character color information.
[0046] In addition, since there are corresponding legends in the character color coding library, in the process of retrieving the corresponding font parameters, the user can also take a screenshot of the target font element, obtain the corresponding target image, and then input the target image through the image retrieval control, so that the character color recognition tool can retrieve the corresponding font data in the character color coding library through image matching, and after retrieving the matching data, display the corresponding number of character color coding retrieval results.
[0047] Optionally, during the image matching process, the character color recognition tool can perform similarity matching based on the main color of the target image (determined based on the color corresponding to each pixel in the image), and use images with color similarity greater than or equal to a preset threshold as matching images. The font data corresponding to the matched images is then returned as character color encoding retrieval results, thereby searching based on the character color information and quickly finding matching retrieval results. Based on the retrieval results, the efficiency of subsequent annotation of font elements can be improved.
[0048] It should be noted that each color coding search result may include several font parameters, such as color identification, font color, border color, stroke information, font type, thickness information, etc. During the annotation process, each color coding search result is associated with the corresponding color coding, so that the user can search for font parameters based on the color coding corresponding to the color information. In addition, the search data source for the color recognition tool can be a pre-built color coding library, which can include different color data. After obtaining the color coding library, the color recognition tool can save the data in the cache by classification and sorting, and persist the images involved in the color coding library to the local disk. During the search process, the color recognition tool can directly return the corresponding search results based on the cached and persisted data.
[0049] It should be noted that, during the retrieval process, the character color recognition tool can also provide a corresponding precision adjustment control, through which the retrieval precision during the retrieval process can be adjusted. Specifically, the electronic device can respond to the precision adjustment operation on the precision adjustment control and determine the target retrieval precision corresponding to the precision adjustment operation. Thus, during the retrieval process, the terminal can retrieve the character color coding corresponding to the character color information in the preset character color coding library according to the character color coding specifications in the game project and the target retrieval precision, and then display a number of character color coding retrieval results corresponding to the character color coding in the tool management interface based on the retrieval results.
[0050] Among them, for the search accuracy, the larger the corresponding value, the wider the search range and the lower the search accuracy. On the contrary, the smaller the value, the narrower the search range and the higher the search accuracy. The user can adjust the search accuracy according to his own needs to ensure that the search results meet the needs of the user. For example, the accuracy adjustment control can be a corresponding adjustment progress bar, and its corresponding range can be set to 0-40. The adjustment value can be set according to the range of the R channel, the G channel and the B channel, and the present invention is not limited to this.
[0051] In addition, for the color coding search results retrieved based on the color information, the color recognition tool can also provide a corresponding filtering function, so that the user can filter the search results to improve the accuracy of the search results and quickly find the matching font parameters. Specifically, the electronic device can respond to the filtering operation for the color coding search results, filter a number of color coding search results according to the filtering operation, and display the filtered color coding search results. Optionally, for each font parameter, a corresponding filtering control can be provided. For example, for the color identifier, font color, etc., a corresponding sorting control can be provided respectively, and the search results are sorted by the sorting control, including according to the size of the color identifier, the color value corresponding to the font color, etc.; for the border color, stroke information, thickness information, etc., a corresponding state control can be provided. Since not all font elements have font parameters such as borders, strokes, and thickness, the state control can include two controls representing different states, "yes" and "no"; for the font type, a corresponding sorting control can be provided to sort according to the font type, etc., and the present invention does not limit this.
[0052] Step 104, in response to a selection operation on the character color code search result, determining a target character color code corresponding to the selection operation;
[0053] After retrieving several corresponding character color coding search results based on the character color information, the user can select the search results that match the target font element for use in marking the target font element, so that the downstream splicing and program front-end can complete game development and design based on the marked content. Therefore, in the process of marking the font elements of the game interface, based on the character color information, multiple matching character color coding search results can be quickly found. Then the game developer can select the corresponding font parameters to mark the target font element to achieve the marking of the target font element.
[0054] In some feasible implementations, the tool management interface may also include a copy control, each character color code retrieval result corresponds to a copy control, and the corresponding font parameters can be copied through the copy control. The electronic device can then respond to the selection operation on the copy control, select the target character color code retrieval result from the character color code retrieval results, and obtain the target character color code corresponding to the target character color code retrieval result.
[0055] Among them, the copy control includes a font color number copy control and a color copy control. In the process of copying font parameters to mark the target font element, the electronic device can respond to the selection operation of the font color number copy control, select the target font color code retrieval result from the font color code retrieval result, and obtain the target font color code corresponding to the target font color code retrieval result; or, respond to the selection operation of the color copy control, select the target font color code retrieval result from the font color code retrieval result, and obtain the target font color code corresponding to the target font color code retrieval result. By determining the target font color code, the target font parameters used to mark the target font element can be quickly locked from the font color code library, so as to realize the marking of the target font element based on the target font parameters.
[0056] Step 105: annotate the target font element in the game interface based on the target font color code, and generate annotation information matching the target font element.
[0057] After the target font color code is determined, the target font elements in the game interface can be annotated to generate annotation information that matches the target font elements. Therefore, in the process of annotating the font elements in the game interface, based on the font color information, multiple matching font color code retrieval results can be quickly found. Game developers can then select corresponding font parameters to annotate the target font elements. When the font elements are annotated, the efficiency and accuracy of the game font color matching can be effectively improved based on the retrieval results, reducing the burden on users and improving the efficiency and quality of game design and development.
[0058] It should be noted that in the above process, the font color number copy control can realize the function of "one-click" copying. The user can copy the font color identification, font color, border color, stroke information, font type, thickness information, legend and other font parameters through the font color number copy control to mark the target font element; and the color copy control can be used to copy the font color, and then mark the target font element based on the copied font color, so that after the corresponding results are retrieved through the font color recognition tool, the user can select the matching font color code retrieval result from it, and then copy part of the font parameters corresponding to the font color code retrieval result. Or all font parameters are used to mark the target font elements in the game interface, so that in the process of marking the font elements of the game interface, based on the font color information, multiple matching font color encoding search results can be quickly found, and then the game developer can select the corresponding font parameters to mark the target font elements. When the font elements are marked, the efficiency and accuracy of the game font color matching can be effectively improved based on the search results, the burden on users can be reduced, and the efficiency and quality of game design and development can be improved. At the same time, through copying, the marking process can be effectively simplified, and the marking efficiency can be further improved.
[0059] In addition, the tool management interface also includes a theme adaptation control. For the character color recognition tool, the theme mode of the tool management interface can be adjusted according to the state of the theme adaptation control. If the theme adaptation control is enabled, the tool management interface is adjusted to the same theme mode as the electronic device; if the theme adaptation control is not enabled, the tool management interface can be displayed with the default theme model, and the present invention is not limited to this.
[0060] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention is not limited to this.
[0061] In an embodiment of the present invention, after the design of the game interface is completed, for the font elements in the game interface, the game developer can mark the font elements so as to provide the marking results to the corresponding downstream splicing and program front-end for use. In the process of marking the font elements in the game interface, the game developer can determine the font color information corresponding to the target font element through the font color recognition tool, and then retrieve the font color code corresponding to the font color information in the preset font color coding library according to the font color coding specification of the game project, and display a number of font color coding retrieval results corresponding to the font color code, and in response to the selection operation on the font color coding retrieval result, determine the target font color code corresponding to the selection operation, and then mark the target font element in the game interface based on the target font color code, and generate marking information matching the target font element, so that in the process of marking the font elements in the game interface, based on the font color information, a search can be performed to quickly find multiple matching font color coding retrieval results, and then the game developer can select the corresponding font parameters from them to mark the target font element. When the font elements are marked, the efficiency and accuracy of the game font color matching can be effectively improved based on the search results, the burden on users can be reduced, and the efficiency and quality of game design and development can be improved.
[0062] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are used for exemplary description:
[0063] Reference Figure 2 , shows a schematic diagram of a tool management interface provided in an embodiment of the present invention, in which an electronic device runs a character color recognition tool and displays a tool management interface 20 through a graphical user interface. In the tool management interface 20, retrieval controls such as an identification retrieval control 210, a color picker 220, and an image retrieval control 230 may be displayed. Through these retrieval controls, retrieval may be performed based on character color information input by a user. During the retrieval process, the retrieval accuracy may be adjusted through the accuracy adjustment control 240. After the corresponding results are retrieved, the corresponding character color coding retrieval results may be displayed in the tool management interface 20. For each character color coding retrieval result, a "one-click" copy may be implemented through a character color number copy control 260, or the font color in the corresponding character color coding retrieval result may be copied 270 through a color copy control. In addition, for the retrieval results, the retrieval results may be filtered through a filter control 250 corresponding to each font parameter to quickly filter out character color coding retrieval results that meet the requirements.
[0064] Through the above process, in the process of marking the font elements of the game interface, based on the search for the font color information, multiple matching font color coding search results can be quickly found. Then the game developer can select the corresponding font parameters to mark the target font elements. When the font elements are marked, the efficiency and accuracy of the game font color matching can be effectively improved based on the search results, reducing the burden on users and improving the efficiency and quality of game design and development.
[0065] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0066] Reference Figure 3 , shows a structural block diagram of a game interface annotation device provided in an embodiment of the present invention, which is applied to a game project and may specifically include the following modules:
[0067] An interface determination module 301 is used to determine a constructed game interface, where the game interface at least includes a target font element to be annotated;
[0068] A character color information determination module 302 is used to determine the character color information corresponding to the target font element by using a character color recognition tool;
[0069] A search module 303 is used to search for a color code corresponding to the color information in a preset color code library according to the color code specification of the game item, and display a number of color code search results corresponding to the color code;
[0070] A screening module 304, configured to respond to a selection operation on the character color code search result and determine a target character color code corresponding to the selection operation;
[0071] The marking module 305 is used to mark the target font element in the game interface based on the target font color code, and generate marking information matching the target font element.
[0072] In some feasible implementations, a graphical user interface is provided by an electronic device, the electronic device runs the character color recognition tool, and a tool management interface corresponding to the character color recognition tool is displayed by the graphical user interface, the tool management interface at least includes a search control, and the character color information determination module 302 is specifically used to:
[0073] In response to a parameter search operation on the search control, character color information corresponding to the parameter search operation is determined.
[0074] In some feasible implementations, the search control at least includes an identification search control, the character color information includes a character color identification, and the character color information determination module 302 is specifically used to:
[0075] In response to an identification input operation for the identification retrieval control, a color identification corresponding to the identification input operation is determined.
[0076] In some feasible implementations, the character color information includes color value information, and the character color information determination module 302 is specifically used to:
[0077] In response to a color value input operation for the identified retrieval control, color value information corresponding to the color value input operation is determined.
[0078] In some feasible implementations, the search control includes at least an image search control, and the character color information determination module 302 is specifically used to:
[0079] In response to an image input operation for the image retrieval control, determining a target image corresponding to the image input operation, the target image being an image corresponding to the target font element;
[0080] The target image is identified to obtain the character color information corresponding to the target image.
[0081] In some feasible implementations, the search control at least includes a color picker, the character color information at least includes a target color, and the character color information determination module 302 is specifically used to:
[0082] In response to a color picking operation on the color picker, a target color corresponding to the color picking operation is determined.
[0083] In some feasible implementations, the tool management interface further includes a precision adjustment control, and the device further includes:
[0084] The precision adjustment module is used to determine a target retrieval precision corresponding to the precision adjustment operation in response to the precision adjustment operation on the precision adjustment control.
[0085] In some feasible implementations, the retrieval module 303 is specifically used to:
[0086] According to the character color coding specification in the game project, searching the character color coding corresponding to the character color information in the preset character color coding library according to the target search accuracy;
[0087] Based on the search results, a plurality of character color code search results corresponding to the character color code are displayed in the tool management interface.
[0088] In some feasible implementations, the tool management interface further includes a copy control, each of the color coding search results corresponds to a copy control, and the screening module 304 is specifically used to:
[0089] In response to a selection operation on the copy control, a target character color code search result is selected from the character color code search results, and a target character color code corresponding to the target character color code search result is obtained.
[0090] In some feasible implementations, the copy control includes a character color number copy control and a color copy control, and the screening module 304 is specifically used to:
[0091] In response to a selection operation on the character color number copy control, a target character color code search result is selected from the character color code search results, and a target character color code corresponding to the target character color code search result is obtained;
[0092] Or, in response to a selection operation on the color copy control, a target character color code retrieval result is selected from the character color code retrieval results, and a target character color code corresponding to the target character color code retrieval result is obtained.
[0093] In some feasible implementations, the marking module 305 is specifically used to:
[0094] Acquire a target font parameter corresponding to the target font color code, wherein the target font parameter includes at least one of a font color identifier, a font color, a border color, stroke information, a font type, thickness information, and a legend;
[0095] The target font element in the game interface is labeled according to at least one of the target font parameters to generate labeling information matching the target font element.
[0096] In some feasible implementations, the device further includes:
[0097] The processing module is used for responding to the screening operation on the character color code search result, screening the plurality of character color code search results according to the screening operation, and displaying the screened character color code search results.
[0098] In some feasible implementations, the tool management interface further includes a theme adaptation control, and the device further includes:
[0099] The theme adjustment module is used to adjust the tool management interface to the same theme mode as the electronic device if the theme adaptation control is in an enabled state.
[0100] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0101] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned game interface marking method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0102] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned game interface marking method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0103] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0104] The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. Those skilled in the art will appreciate that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0105] It should be understood that in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 410 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 401 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
[0106] The electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0107] The audio output unit 403 can convert the audio data received by the RF unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 can also provide audio output related to a specific function performed by the electronic device 400 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, etc.
[0108] The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processor (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 can be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
[0109] The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and / or the backlight when the electronic device 400 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 405 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0110] The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0111] The user input unit 407 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 4071 or near the touch panel 4071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 410, receives the command sent by the processor 410 and executes it. In addition, the touch panel 4071 can be implemented using various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.
[0112] Further, the touch panel 4071 may be covered on the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. It can be understood that in one embodiment, the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, but in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated to implement the input and output functions of the electronic device, which is not limited here.
[0113] The interface unit 408 is an interface for connecting an external device to the electronic device 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 400 or may be used to transmit data between the electronic device 400 and an external device.
[0114] The memory 409 can be used to store software programs and various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 409 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0115] The processor 410 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 409, and calling data stored in the memory 409, so as to monitor the electronic device as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.
[0116] The electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to each component. Preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0117] In addition, the electronic device 400 includes some functional modules not shown, which will not be described in detail here.
[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0120] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0123] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0124] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0125] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0126] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0127] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for marking a game interface, characterized in that: Applied to a game project, the method includes: Determining a completed game interface, wherein the game interface at least includes a target font element to be annotated; Determine the font color information corresponding to the target font element by using a font color recognition tool; According to the character color coding specification of the game item, searching for the character color coding corresponding to the character color information in a preset character color coding library, and displaying a number of character color coding search results corresponding to the character color coding; In response to a selection operation on the character color code search result, determining a target character color code corresponding to the selection operation; Based on the target font color code, the target font element in the game interface is marked to generate marking information matching the target font element.
2. The method according to claim 1, characterized in that Providing a graphical user interface through an electronic device, the electronic device running the character color recognition tool, and displaying a tool management interface corresponding to the character color recognition tool through the graphical user interface, the tool management interface at least including a search control, and determining the character color information corresponding to the target font element through the character color recognition tool, including: In response to a parameter search operation on the search control, character color information corresponding to the parameter search operation is determined.
3. The method according to claim 2, characterized in that The search control at least includes an identification search control, the character color information includes a character color identification, and in response to a parameter search operation on the search control, determining the character color information corresponding to the parameter search operation includes: In response to an identification input operation for the identification retrieval control, a color identification corresponding to the identification input operation is determined.
4. The method according to claim 3, characterized in that The character color information includes color value information, and the step of determining the character color information corresponding to the parameter search operation in response to the parameter search operation on the search control includes: In response to a color value input operation for the identified retrieval control, color value information corresponding to the color value input operation is determined.
5. The method according to claim 2, characterized in that: The search control at least includes an image search control, and the step of responding to a parameter search operation on the search control and determining the character color information corresponding to the parameter search operation includes: In response to an image input operation for the image retrieval control, determining a target image corresponding to the image input operation, the target image being an image corresponding to the target font element; The target image is identified to obtain the character color information corresponding to the target image.
6. The method according to claim 2, characterized in that The search control at least includes a color picker, the character color information at least includes a target color, and in response to a parameter search operation on the search control, determining the character color information corresponding to the parameter search operation includes: In response to a color picking operation on the color picker, a target color corresponding to the color picking operation is determined.
7. The method according to any one of claims 2 to 6, characterized in that: The tool management interface further includes a precision adjustment control, and the method further includes: In response to a precision adjustment operation on the precision adjustment control, a target retrieval precision corresponding to the precision adjustment operation is determined.
8. The method according to claim 7, characterized in that The method of searching a preset character color coding library for a character color coding corresponding to the character color information according to the character color coding specification of the game item, and displaying a plurality of character color coding search results corresponding to the character color coding, includes: According to the character color coding specification in the game project, searching the character color coding corresponding to the character color information in the preset character color coding library according to the target search accuracy; Based on the search results, a plurality of character color code search results corresponding to the character color code are displayed in the tool management interface.
9. The method according to any one of claims 2 to 6, characterized in that: The tool management interface further includes a copy control, each of the character color code search results corresponds to a copy control, and in response to a selection operation on the character color code search result, determining a target character color code corresponding to the selection operation includes: In response to a selection operation on the copy control, a target character color code search result is selected from the character color code search results, and a target character color code corresponding to the target character color code search result is obtained.
10. The method according to claim 9, characterized in that The copy control includes a character color number copy control and a color copy control. In response to a selection operation on the copy control, a target character color code search result is selected from the character color code search result, and a target character color code corresponding to the target character color code search result is obtained, including: In response to a selection operation on the character color number copy control, a target character color code search result is selected from the character color code search results, and a target character color code corresponding to the target character color code search result is obtained; Or, in response to a selection operation on the color copy control, a target character color code retrieval result is selected from the character color code retrieval results, and a target character color code corresponding to the target character color code retrieval result is obtained.
11. The method according to claim 10, characterized in that The step of marking the target font element in the game interface based on the target font color code and generating marking information matching the target font element includes: Acquire a target font parameter corresponding to the target font color code, wherein the target font parameter includes at least one of a font color identifier, a font color, a border color, stroke information, a font type, thickness information, and a legend; The target font element in the game interface is labeled according to at least one of the target font parameters to generate labeling information matching the target font element.
12. The method according to claim 1, characterized in that After obtaining a plurality of color code search results corresponding to the parameter search operation in response to the parameter search operation for the target font element, the method further includes: In response to a screening operation on the character color code search results, the plurality of character color code search results are screened according to the screening operation, and the screened character color code search results are displayed.
13. The method according to any one of claims 2 to 6, characterized in that: The tool management interface also includes a theme adaptation control, and the method further includes: If the theme adaptation control is in an enabled state, the tool management interface is adjusted to the same theme mode as that of the electronic device.
14. A marking device for a game interface, characterized in that: include: An interface determination module, used to determine a constructed game interface, wherein the game interface at least includes a target font element to be annotated; A font color information determination module, used to determine font color information corresponding to the target font element by using a font color recognition tool; A search module, for searching a preset character color code library for a character color code corresponding to the character color information according to the character color code specification of the game item, and displaying a number of character color code search results corresponding to the character color code; A screening module, for responding to a selection operation on the character color code search result, determining a target character color code corresponding to the selection operation; The marking module is used to mark the target font element in the game interface based on the target font color code and generate marking information matching the target font element.
15. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 13 when executing the program stored in the memory.
16. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 13.