Game equipment recommendation method and device, electronic equipment and storage medium
By taking screenshots in the game to obtain and recognize interface information, and providing personalized equipment recommendations, the problem of single equipment recommendation methods in the existing technology is solved, and the game win rate and experience are improved.
Patent Information
- Application Number
- CN202411834881.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The equipment recommendation method in the existing games is single, and it is impossible to personalize recommendations based on the specific situation and opponent information, resulting in a low winning rate for players and poor experience.
By taking screenshots, you can obtain the interface image of the game interface and recognize the image, and obtain the attribute information of your own character, the attribute information of the other person's character, and the situation information between the two. Based on this information, the equipment recommendation information is displayed to guide the player to install.
By making different equipment recommendations based on different matchmaking and situation information, the game winner rate of gamers is improved and the user's gaming experience is improved.
Smart Images

Figure CN119701365A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and more specifically, to a method, device, electronic device and storage medium for recommending game equipment. Background Art
[0002] Currently, various games, such as MOBA (multiplayer online battle arena), often involve equipment recommendations for game characters. However, the current equipment recommendation method in games is often relatively simple, and generally fixed equipment recommendations are given for a certain character, resulting in a low game winning rate for some players and a poor gaming experience. Summary of the invention
[0003] In view of the above problems, the present application proposes a game equipment recommendation method, device, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for recommending equipment for a game, the method comprising: displaying a game interface of a game application, wherein the game application includes an opponent's own character and an opponent's character; taking a screenshot to obtain an interface image of the game interface and performing image recognition on the interface image to obtain attribute information of the own character, attribute information of the opponent's character, and situation information between the own character and the opponent's character; based on the attribute information of the own character, the attribute information of the opponent's character, and the situation information, displaying equipment recommendation information, wherein the equipment recommendation information is used to guide the own character in outfitting.
[0005] In a second aspect, an embodiment of the present application provides an equipment recommendation device for a game, the device comprising: a game interface display module, used to display a game interface of a game application, wherein the game application includes a player's own character and an opponent's character; an image recognition module, used to capture an interface image of the game interface and perform image recognition on the interface image to obtain attribute information of the player's own character, attribute information of the opponent's character, and situation information between the player's own character and the opponent's character; an equipment recommendation module, used to display equipment recommendation information based on the attribute information of the player's own character, the attribute information of the opponent's character, and the situation information, wherein the equipment recommendation information is used to guide the player's own character in outfitting.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program implements the above method when executed by a processor.
[0009] The equipment recommendation method for a game provided in an embodiment of the present application displays a game interface of a game application, wherein the game application includes a player's own character and an opponent's character, takes a screenshot to obtain an interface image of the game interface and performs image recognition on the interface image, obtains attribute information of the player's own character, attribute information of the opponent's character, and situation information between the player's own character and the opponent's character, and displays equipment recommendation information based on the attribute information of the player's own character, the attribute information of the opponent's character, and the situation information, wherein the equipment recommendation information is used to guide the player's own character in outfitting equipment, thereby improving the game player's game winning rate and enhancing the user's gaming experience by making different equipment recommendations based on different opponents and situation information. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 A schematic diagram showing a flow chart of a method for recommending equipment for a game provided in an embodiment of the present application is shown;
[0012] Figure 2 A first interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0013] Figure 3 A schematic diagram showing a flow chart of a method for recommending equipment for a game provided in an embodiment of the present application is shown;
[0014] Figure 4 This application shows Figure 3 The flowchart of step S220 of the equipment recommendation method of the game shown;
[0015] Figure 5 This application shows Figure 3 The flowchart of step S230 of the game equipment recommendation method according to an embodiment is shown;
[0016] Figure 6 This application shows Figure 3 The flowchart of step S230 of the game equipment recommendation method according to an embodiment is shown;
[0017] Figure 7 A second interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0018] Figure 8 This application shows Figure 3 The flowchart of step S230 of the game equipment recommendation method according to an embodiment is shown;
[0019] Fig. 9 A schematic diagram showing a flow chart of a method for recommending equipment for a game provided in an embodiment of the present application is shown;
[0020] Fig.10 A module block diagram of a device for recommending game equipment provided by an embodiment of the present application is shown;
[0021] Fig.11 A block diagram of an electronic device for executing a method for recommending equipment for a game according to an embodiment of the present application is shown;
[0022] Fig.12 A storage unit for storing or carrying program codes for implementing a method for recommending equipment for a game according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0024] Equipment is an essential part of the game, and its attached attributes will enhance the attack, defense, movement speed, etc. of the character controlled by the player. Generally, the game will give fixed equipment recommendations for a certain character without considering the actual situation, resulting in a low game winning rate for some players and a poor gaming experience.
[0025] In response to the above problems, the inventors have discovered after long-term research and proposed the game equipment recommendation method, device, electronic device and storage medium provided in the embodiments of the present application. By making different equipment recommendations according to different opponents and situation information, the game winning rate of game players can be improved to enhance the user's gaming experience. Among them, the specific game equipment recommendation method is described in detail in the subsequent embodiments.
[0026] See also Figure 1 , Figure 1The flowchart of the equipment recommendation method for a game provided by an embodiment of the present application is shown. The equipment recommendation method for the game is used to improve the game player's game winning rate by making different equipment recommendations according to different opponents and situation information, thereby enhancing the user's gaming experience. In a specific embodiment, the equipment recommendation method for the game is applied to Fig.10 The equipment recommendation device 200 for a game and the electronic device 100 equipped with the equipment recommendation device 200 for a game are shown. Fig.11 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment may include a smart phone, a tablet computer, etc., which is not limited here. Figure 1 The process shown is described in detail, and the equipment recommendation method of the game may specifically include the following steps:
[0027] Step S110: Displaying a game interface of a game application, wherein the game application includes a character of the opponent and a character of the opponent.
[0028] Optionally, the electronic device may run a game application, wherein the game application may be a local game application that has been downloaded and installed on the electronic device, or the game application may be an online game application that has not been downloaded and installed on the electronic device, which is not limited here.
[0029] Optionally, the game application can be a multiplayer online tactical competitive game, in which players are usually divided into two or more teams to compete on a well-designed map, each player controls a game character, and these game characters usually have unique skills, attributes and positioning (such as warriors, mages, assassins, etc.), and the goal of the game is to destroy the opponent's base or achieve other specific victory conditions through teamwork. In this embodiment, the game characters included in the game application can be divided into own characters and opponent characters according to the battle party. It can be understood that the own character is the game character controlled by the player, and the opponent character is the game character that fights against the own character. Of course, in addition to the own character and the opponent character, other teammate characters belonging to the same team as the own character can also be included, wherein the number of the own character can be one or more, the number of the opponent character can be one or more, and the number of other teammate characters can be zero, one or more, which is not limited here.
[0030] In this embodiment, the game application can be displayed to obtain a game interface. Optionally, the game interface may include a game loading interface, a game battle interface, and an equipment purchase interface, etc., which are not limited here. Among them, the game loading interface may refer to the interface that the player first sees when starting the game or entering a specific game mode. The game loading interface may generally include the following elements: loading progress bar, background image or animation, game character image, game character name, prompt information, etc., which are not limited here. The game battle interface may refer to the core area where the player plays the game, which directly determines the interactivity and playability of the game. The game battle interface may generally include the following elements: game character, map, small map, health value, energy bar, status indicator, score, resource display, etc., which are not limited here. The equipment purchase interface may refer to a game interface that can provide props or equipment to enhance the ability of the game character. The equipment purchase interface may generally include the following elements: equipment list, preview function, purchase button, currency display, etc., which are not limited here.
[0031] Step S120: taking a screenshot to obtain an interface image of the game interface and performing image recognition on the interface image to obtain attribute information of the own character, attribute information of the opponent character, and situation information between the own character and the opponent character.
[0032] In this embodiment, during the process of displaying the game interface, a screenshot can be taken to obtain an interface image of the game interface, and image recognition can be performed on the interface image to obtain attribute information of the own character, attribute information of the opponent's character, and situation information between the own character and the opponent's character.
[0033] Among them, the attribute information of your own character may include: the basic attributes of your own character, such as your own character's health, attack power, defense power, movement speed, etc.; the special skills of your own character, such as your own character may have unique skills or spells, these skills or spells usually have specific effects, such as treatment, damage, control, etc.; the existing equipment or props of your own character, such as the equipment (such as weapons, armor) and props (such as potions, scrolls) that your own character may carry; the level and experience of your own character, such as the level and experience value of your own character; the status effects of your own character, such as various status effects (such as poisoning, burning, freezing, etc.) suffered by your own character.
[0034] Among them, the attribute information of the opponent's character may include: the basic attributes of the opponent's character, such as the opponent's character's health, attack power, defense, movement speed, etc.; the opponent's character's special skills, such as the opponent's character may have unique skills or spells, which usually have specific effects, such as treatment, damage, control, etc.; the opponent's character's existing equipment or props, such as the equipment (such as weapons, armor) and props (such as potions, scrolls) that the opponent's character may carry; the opponent's character's level and experience, such as the opponent's character's level and experience value; the opponent's character's status effects, such as the various status effects suffered by the opponent's character (such as poisoning, burning, freezing, etc.).
[0035] Among them, the situation information between your own character and the opponent's character may include: the head ratio of the opponent's side, the ratio of the number of defense towers of the opponent's side, whether your own character is killed, whether the opponent's character is killed, the resurrection time after your own character is killed, the resurrection time after the opponent's character is killed, the game time, etc., without limitation here.
[0036] In some embodiments, during the process of displaying the game interface, the game interface can be captured in real time to obtain an interface image, or the game interface can be captured at a preset time interval (such as 1 second) to obtain an interface image, etc., which is not limited here.
[0037] In some embodiments, when an interface image is obtained, the interface image may be preprocessed to obtain a preprocessed interface image, and image recognition may be performed on the preprocessed interface image to obtain attribute information of the own character, attribute information of the other party's character, and situation information between the own character and the other party's character. Preprocessing the interface image may include: adjusting the image size, removing noise, enhancing contrast, etc. of the interface image to improve the accuracy of image recognition.
[0038] In some embodiments, when an interface image is obtained, feature extraction can be performed on the interface image to obtain image features included in the interface image, and image recognition can be performed on the image features to obtain attribute information of one's own character, attribute information of the opponent's character, and situation information between one's own character and the opponent's character.
[0039] In some embodiments, when an interface image is obtained, the interface image can be recognized by an image recognition algorithm to obtain attribute information of one's own character, attribute information of the opponent's character, and situation information between one's own character and the opponent's character.
[0040] As an implementable method, when displaying the game interface, the electronic device can take a screenshot to obtain an interface image of the game interface. When obtaining the interface image, the electronic device can perform image recognition on the interface image to analyze features such as the opponent's head ratio, the opponent's defense tower number ratio, and analyze various game-related information such as one's own character, the attribute information of one's own character, the opponent's character, the attribute information of the opponent's character, whether one's own character is killed, whether the opponent's character is killed, and if killed, how long the resurrection countdown is, and so on, and based on the various information obtained above, obtain the attribute information of one's own character, the attribute information of the opponent's character, and the situation information between one's own character and the opponent's character.
[0041] Among them, the head-to-head ratio of the opposing team can be detected and counted by an image recognition algorithm, the number of kills (i.e., "heads") displayed on the game interface. This can be achieved by identifying and parsing specific areas on the game interface, such as the scoreboard or battle record. Then, the difference in the number of kills of the opposing team (usually two teams) is calculated to obtain the head-to-head ratio.
[0042] Among them, the ratio of the number of defense towers of the opposing team, similarly, the number of defense towers displayed on the game interface can be detected and counted by an image recognition algorithm. It can be done by identifying the unique icon or model of the defense tower, counting the number of defense towers of each team, and then calculating the ratio.
[0043] Among them, the identification of the attribute information of one's own character and the attribute information of the opponent's character can be achieved through image recognition technology, by analyzing the game character image on the game interface, and comparing it with the database of known game characters to identify the attribute information of the current player's own character and the attribute information of the opponent's character being fought. For example, the game character can be identified through features such as the game character's clothing, weapons, skill icons, etc.
[0044] Among them, the status analysis of the game character can analyze the current status of the game character by detecting specific elements on the game interface (such as life bar, resurrection countdown, etc.). If the life bar is empty or displays the word "killed in battle", it is determined that the game character has been killed in battle.
[0045] Among them, the resurrection countdown analysis, if there are countdown elements on the game interface (such as game time, resurrection time, skill cooling time, etc.), the image recognition algorithm will parse these elements to obtain the resurrection countdown information.
[0046] Step S130: Based on the attribute information of the own character, the attribute information of the opponent character and the situation information, display equipment recommendation information, wherein the equipment recommendation information is used to guide the own character in outfitting.
[0047] In this embodiment, when the attribute information of the own character, the attribute information of the opponent character, and the situation information between the own character and the opponent character are obtained, the state recommendation information can be displayed based on the attribute information of the own character, the attribute information of the opponent character, and the situation information, wherein the state recommendation information is used to guide the own character to wear equipment. That is, based on the attribute information of the own character, the attribute information of the opponent character, and the situation information between the own character and the opponent character, equipment that is more suitable for the own character and can improve the game winning rate can be recommended to the own character, which can improve the game winning rate of the game player and enhance the game experience of the user.
[0048] Optionally, the equipment recommendation information may include: equipment recommended for purchase. Further, the equipment recommendation information may also include text introduction information of the equipment recommended for purchase.
[0049] In some embodiments, the electronic device may be provided with a game assistant function, and the electronic device may be provided with a target switch, through which the game assistant function may be controlled to be turned on or off. Based on this, if the target switch is in the on state, it indicates that the player expects to provide game-related consultations and improve the winning rate of the game through the electronic device, and therefore, equipment recommendation information may be displayed based on the attribute information of the player's own character, the attribute information of the opponent's character, and the situation information; if the target switch is in the off state, it indicates that the player does not expect to provide game-related consultations through the electronic device, and therefore, the default equipment information may be displayed.
[0050] See also Figure 2 , Figure 2 FIG. 1 shows a first interface schematic diagram of an electronic device provided in an embodiment of the present application. Figure 2 As shown, the electronic device may display equipment recommendation information, for example, recommended equipment: XX.
[0051] An equipment recommendation method for a game provided by an embodiment of the present application displays a game interface of a game application, wherein the game application includes a player's own character and an opponent's character, takes a screenshot to obtain an interface image of the game interface and performs image recognition on the interface image, obtains attribute information of the player's own character, attribute information of the opponent's character, and situation information between the player's own character and the opponent's character, and displays equipment recommendation information based on the attribute information of the player's own character, the attribute information of the opponent's character, and the situation information, wherein the equipment recommendation information is used to guide the player's own character in outfitting equipment, thereby improving the game player's game winning rate and enhancing the user's gaming experience by making different equipment recommendations based on different opponents and situation information.
[0052] See also Figure 3 , Figure 3The flowchart of the equipment recommendation method for a game provided by an embodiment of the present application is shown in FIG. In this embodiment, the game interface includes a game loading interface and a game battle interface. Figure 3 The process shown is described in detail, and the equipment recommendation method of the game may specifically include the following steps:
[0053] Step S210: Displaying a game interface of a game application, wherein the game application includes a character of the opponent and a character of the opponent.
[0054] For the detailed description of step S210, please refer to step S110, which will not be repeated here.
[0055] Step S220: in the process of displaying the game loading interface, a loading interface image of the game loading interface is captured by screenshot and image recognition is performed on the loading interface image to obtain attribute information of the own character and attribute information of the opponent character.
[0056] Optionally, the game interface may include a game loading interface and a game battle interface.
[0057] In this embodiment, when displaying the game loading interface, a screenshot can be taken to obtain a loading interface image of the game loading interface, and image recognition can be performed on the loading interface image to obtain the attribute information of the own character and the attribute information of the opponent character.
[0058] In some embodiments, during the process of displaying the game loading interface, the game loading interface can be captured in real time to obtain a loading interface image, or the game loading interface can be captured at a preset time interval (such as 1 second) to obtain a loading interface image, etc., which is not limited here.
[0059] In some embodiments, when a loading interface image is obtained, the loading interface image may be preprocessed to obtain a preprocessed loading interface image, and image recognition may be performed on the preprocessed loading interface image to obtain attribute information of the own character and attribute information of the opponent character. Preprocessing the loading interface image may include: adjusting the image size, removing noise, enhancing contrast, etc. of the loading interface image to improve the accuracy of image recognition.
[0060] In some embodiments, when a loading interface image is obtained, feature extraction can be performed on the loading interface image to obtain image features included in the loading interface image, and image recognition can be performed on the image features to obtain attribute information of one's own character and attribute information of the opponent's character.
[0061] In some implementations, when a loading interface image is obtained, the loading interface image can be subjected to image recognition through an image recognition algorithm to obtain attribute information of one's own character and attribute information of the opponent's character.
[0062] See also Figure 4 , Figure 4 This application shows Figure 3 The following is a flow chart of step S220 of the game equipment recommendation method. Figure 4 The process shown is described in detail, and the method may specifically include the following steps:
[0063] Step S221: in the process of displaying the game loading interface, a loading interface image of the game loading interface is captured by screenshot and image recognition is performed on the loading interface image to obtain the character name of the own character and the character name of the opponent character.
[0064] In some embodiments, when displaying the game loading interface, the game loading interface can be screenshotted to obtain a loading interface image, and the loading interface image can be image recognized to obtain the character name of one's own character and the character name of the opponent's character.
[0065] As an implementable method, when the game application starts loading, the game client will display a game loading interface, which usually contains some basic game information, such as your own character, the opponent's character, map information, loading progress, etc. During the display of the game loading interface, an automated script or a specific software tool can be used to capture the content of the current screen. Through the screenshot operation, an image file containing the complete content of the game loading interface can be generated and recorded as the loading interface image. The loading interface image obtained by the screenshot is preprocessed to improve the accuracy of subsequent image recognition. The preprocessing steps may include denoising, contrast enhancement, grayscale, etc. Use image recognition technology (such as OCR, optical character recognition, or image recognition algorithm based on deep learning) to process the preprocessed image. The image recognition algorithm can try to recognize the text information in the image, especially the part related to the character name. According to the result of image recognition, the algorithm can identify the accurate character name through string matching, regular expression or other natural language processing technology. Based on the above method, the character name of your own character and the character name of the opponent's character can be obtained.
[0066] Step S222: obtaining attribute information of the own character based on the character name of the own character, and obtaining attribute information of the target character based on the character name of the opponent character.
[0067] In some embodiments, when the role name of one's own character is obtained, the attribute information of the one's own character can be obtained based on the role name of the one's own character, for example, the basic attributes and special skills of the one's own character can be obtained based on the role name of the one's own character, which is not limited here. When the role name of the other party's character is obtained, the attribute information of the other party's character can be obtained based on the role name of the other party's character, for example, the basic attributes and special skills of the other party's character can be obtained based on the role name of the other party's character, which is not limited here.
[0068] Step S230: During the process of displaying the game battle interface, a battle interface image of the game battle interface is obtained by taking a screenshot and performing image recognition on the battle interface image to obtain situation information between the own character and the opponent character.
[0069] In this embodiment, during the process of displaying the game battle interface, a screenshot can be taken to obtain a battle interface image of the game battle interface, and image recognition can be performed on the battle interface image to obtain situation information between the own character and the opponent character.
[0070] In some embodiments, during the process of displaying the game battle interface, the game battle interface can be captured in real time to obtain a battle interface image, or the game battle interface can be captured at a preset time interval (such as 1 second) to obtain a battle interface image, etc., which is not limited here.
[0071] In some embodiments, when obtaining a battle interface image, the battle interface image may be preprocessed to obtain a preprocessed battle interface image, and image recognition may be performed on the preprocessed battle interface image to obtain situation information between the own character and the opponent character. Preprocessing the battle interface image may include: adjusting the image size, removing noise, enhancing contrast, etc. of the battle interface image to improve the accuracy of image recognition.
[0072] In some embodiments, when a battle interface image is obtained, feature extraction can be performed on the battle interface image to obtain image features included in the battle interface image, and image recognition can be performed on the image features to obtain situation information between one's own character and the opponent's character.
[0073] In some implementations, when a battle interface image is obtained, the battle interface image can be subjected to image recognition through an image recognition algorithm to obtain situation information between one's own character and the opponent's character.
[0074] As an implementable method, when the game enters the battle state, the game client will display a game battle interface, which usually contains various information such as one's own character, opponent's character, map, health bar, resource bar, equipment bar, skill icon, small map, etc. In the process of displaying the game battle interface, an automated script or a specific software tool can be used to capture the screen content of the current game battle interface. The screenshot operation should ensure that all important images are captured and recorded as battle interface images. The battle interface image obtained by the screenshot is preprocessed to improve the accuracy of subsequent image recognition. The preprocessing steps may include denoising, contrast enhancement, grayscale, binarization, etc. to highlight key information and reduce noise interference. Use image recognition technology (such as OCR, template matching, deep learning model, etc.) to process the preprocessed image, identify and parse key information, such as health value, resource amount, equipment icon, skill icon, etc. According to the result of image recognition, extract the situation information between one's own character and the opponent's character, wherein the situation information between the one's own character and the opponent's character may include health value ratio, resource gap, equipment quality, position relationship, etc.
[0075] See also Figure 5 , Figure 5 This application shows Figure 3 The flowchart of step S230 of the game equipment recommendation method is shown in FIG. Figure 5 The process shown is described in detail, and the method may specifically include the following steps:
[0076] Step S231A: During the process of displaying the game battle interface, a battle interface image of the game battle interface is obtained by taking a screenshot and performing image recognition on the battle interface image to obtain the duration from the start of the battle to the death of the own character.
[0077] In some embodiments, when displaying the game battle interface, the game battle interface can be screenshotted to obtain a battle interface image, and the battle interface image can be image recognized to obtain the duration from the start of the battle to the death of the own character.
[0078] Among them, in the process of displaying the game battle interface, the game battle interface can be captured and processed for image recognition in real time or at preset time intervals. If it is recognized that a certain frame of the battle interface image in the screenshot represents the start of a battle between your own character and the opponent's character (such as the start of a team battle), then the timing can be started and the game battle interface can continue to be captured and processed for image recognition. If it is recognized that a certain frame of the battle interface image in the screenshot represents the death of your own character, then the timing can be stopped, and the time from the start of the timing to the stop of the timing is counted as the time from the start of the battle to the death of your own character.
[0079] As a feasible method, when displaying the game battle interface, the game battle interface can be screenshoted to obtain a battle interface image, and the battle interface image can be recognized to obtain the blood volume change of one's own character from the beginning of the battle. Based on the blood volume change, the duration from the start of the battle to the death of one's own character is determined.
[0080] Among them, in the process of displaying the game battle interface, the game battle interface can be captured and processed for image recognition in real time or at preset time intervals. If it is recognized that a certain frame of the battle interface image in the screenshot represents the start of a battle between the own character and the opponent's character (such as the start of a team battle), the blood volume of the own character can be determined, the timing can be started, and the game battle interface can continue to be captured and processed for image recognition. If it is recognized that a certain frame of the battle interface image in the screenshot represents that the blood volume of the own character is reduced to 0, the timing can be stopped, and the time from the start of the timing to the stop of the timing is counted as the time from the start of the battle to the death of the own character.
[0081] Step S232A: Based on the duration, obtain situation information between the own character and the opponent character.
[0082] In some embodiments, when the duration from the start of the battle to the death of one's own character is obtained, the situation information between one's own character and the opponent's character can be obtained based on the duration from the start of the battle to the death of one's own character, so as to make equipment recommendations for one's own character based on the situation information.
[0083] For example, if it is detected that the duration from the start of the battle to the death of the own character is less than the first duration threshold, such as the duration from the start of the battle to the death is only 1 second, a prompt for subsequent defensive equipment can be given, and physical defense equipment or spell defense equipment can be prompted according to the attribute information of the other character, whether it is a mage, a warrior or a shooter; if it is detected that the duration from the start of the battle to the death of the own character reaches the duration threshold, such as the duration from the start of the battle to the death is 20 seconds, a prompt for subsequent attack equipment can be given.
[0084] See also Figure 6 , Figure 6 This application shows Figure 3 The flowchart of step S230 of the game equipment recommendation method is shown in FIG. Figure 6 The process shown is described in detail, and the method may specifically include the following steps:
[0085] Step S231B: During the process of displaying the game battle interface, a battle interface image of the game battle interface is obtained by taking a screenshot and performing image recognition on the battle interface image to obtain the number of times the own character has been killed and the opponent character that caused the death of the own character each time.
[0086] In some embodiments, when displaying the game battle interface, the game battle interface can be screenshotted to obtain a battle interface image, and the battle interface image can be recognized to obtain the number of deaths of one's own character and the opponent character that caused the death of one's own character each time.
[0087] In the process of displaying the game battle interface, the game battle interface can be screenshotted and image recognized in real time or at preset time intervals, wherein the screenshot should be able to accurately capture all or key parts of the current game battle interface, including character information, battle logs, maps, etc. After the battle interface image is obtained by screenshot, the obtained battle interface image can be input into an image recognition system, which can be trained based on machine learning or deep learning technology and can recognize and understand elements in the battle interface image, such as character icons, health bars, battle logs, etc. After identifying the key elements in the battle interface image, the image recognition system can parse the text or symbols in the image to extract key information related to the death, so as to determine the number of deaths of one's own character, and in addition to determining the number of deaths, the image recognition system can also analyze detailed information in the battle log, such as the attacker's name, attack type, damage value, etc., to identify the opponent's character that caused the death of one's own character each time.
[0088] Step S232B: Based on the number of times the own character is killed and the opponent character that causes the own character to be killed each time, obtain the situation information between the own character and the opponent character.
[0089] In some embodiments, when the number of deaths of one's own character and the number of opponent characters that caused the death of one's own character each time are obtained, situation information between one's own character and the opponent character can be obtained based on the number of deaths of one's own character and the number of opponent characters that caused the death of one's own character each time, so as to make equipment recommendations for one's own character based on the situation information.
[0090] Among them, it can be understood that if it is determined based on the number of deaths of one's own character that the number of deaths of the own character is too many, and based on the opponent characters that cause the death of one's own character each time, it is determined that each time it is a certain type of opponent character (such as a mage) that causes the death of one's own character, then targeted defensive equipment can be recommended to one's own character for the opponent characters that cause the death of one's own character each time.
[0091] In some embodiments, when the number of deaths of the own character and the opposing character that caused the death of the own character each time are obtained, the opposing character that caused the most deaths of the own character can be determined based on the number of deaths of the own character and the opposing character that caused the death of the own character each time, and the fighting skills against the opposing character that caused the most deaths of the own character can be displayed. Optionally, the fighting skills against the opposing character may include: how to avoid the main attack of the opposing character; how to use the weakness of the opposing character to counterattack; how to coordinate teammates to fight against the opposing character in a team battle, etc., which are not limited here.
[0092] That is, it is understandable that if a player's character is killed too many times by an opposing character in a game, it indicates that in addition to having problems with the equipment of the player's character, the player may also have problems with not knowing how to fight against the opposing character. Therefore, when the player obtains the number of deaths of the player's character and the opposing character that caused the player's death each time, in addition to recommending to the player equipment for the player's character to fight against the opposing character, the player can also be shown the player's character's fighting skills against the opposing character, so as to improve the game winning rate from multiple aspects.
[0093] See also Figure 7 , Figure 7 FIG. 2 shows a second interface schematic diagram of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device can display equipment recommendation information and combat skills, for example, recommended equipment: XX, combat skills: XXX.
[0094] See also Figure 8 , Figure 8 This application shows Figure 3 The flowchart of step S230 of the game equipment recommendation method is shown in FIG. Figure 8 The process shown is described in detail, and the method may specifically include the following steps:
[0095] Step S231C: In the process of displaying the game comparison page, a screenshot is taken to obtain a battle interface image of the game battle interface and image recognition is performed on the battle interface image to obtain the equipment information of the own character and the equipment information of the opponent character.
[0096] In some embodiments, when displaying the game battle interface, the game battle interface can be screenshotted to obtain a battle interface image, and the battle interface image can be image recognized to obtain equipment information of one's own character and equipment information of the opponent's character.
[0097] Among them, in the process of displaying the game battle interface, the game battle interface can be screenshotted and image recognized in real time or at preset time intervals. After the battle interface image is obtained by screenshotting, the battle interface image obtained by screenshotting can be preprocessed, including denoising, contrast enhancement, graying and other steps to improve the accuracy of image recognition. Subsequently, according to the layout and element characteristics of the game interface, image segmentation is performed to extract the area where the outfit information of the character of the party and the area where the outfit information of the opponent's character is located. Image recognition technology (such as OCR, template matching, deep learning model, etc.) is used to extract the features of the outfit information area, and the key information such as the name, icon, and attributes of the equipment is identified based on the extracted features. The identified equipment information is matched with the equipment database in the game to confirm the specific name and attributes of the equipment. Based on the above method, the outfit information of the character of the party and the outfit information of the opponent's character can be obtained.
[0098] Step S232C: Based on the equipment information of the own character and the equipment information of the opponent character, obtain the situation information between the own character and the opponent character.
[0099] In some embodiments, when equipment information of one's own character and equipment information of the opponent's character are obtained, situation information between one's own character and the opponent's character can be obtained based on the equipment information of one's own character and the equipment information of the opponent's character, so as to make equipment recommendations for one's own character based on the situation information.
[0100] As an example, the amount of damage that the player can cause to the opponent's character can be calculated based on the player's character's attribute information, the opponent's character's attribute information, the player's character's equipment information, and the opponent's character's equipment information to determine whether the damage is excessive. If it is excessive, the player can be recommended to purchase defensive equipment or functional equipment to increase the probability of winning the game.
[0101] Step S240: Based on the attribute information of the own character, the attribute information of the opponent character and the situation information, display equipment recommendation information, wherein the equipment recommendation information is used to guide the own character in outfitting.
[0102] For the detailed description of step S240, please refer to step S130, which will not be repeated here.
[0103] An embodiment of the present application provides an equipment recommendation method for a game, which displays a game interface of a game application, wherein the game application includes a player's own character and an opponent's character. In the process of displaying the game loading interface, a screenshot is taken to obtain a loading interface image of the game loading interface and image recognition is performed on the loading interface image to obtain attribute information of the player's own character and attribute information of the opponent's character. In the process of displaying the game battle interface, a screenshot is taken to obtain a battle interface image of the game battle interface and image recognition is performed on the battle interface image to obtain situation information between the character in the computer room and the opponent's character. Based on the attribute information of the player's own character, the attribute information of the opponent's character and the situation information, equipment recommendation information is displayed, wherein the equipment recommendation information is used to guide the player's own character in outfitting. Compared to Figure 1 The equipment recommendation method for the game shown in the figure, this embodiment determines the attribute information of one's own character and the attribute information of the opponent's character by performing image recognition by taking a screenshot of the game loading interface, and determines the situation information by performing image recognition by taking a screenshot of the game battle interface, which can improve the convenience and accuracy of obtaining the attribute information and situation information.
[0104] See also Fig. 9 , Fig. 9 The following is a flow chart of a method for recommending equipment for a game provided in an embodiment of the present application. In this embodiment, the game interface includes an equipment purchase interface. Fig. 9 The process shown is described in detail, and the equipment recommendation method of the game may specifically include the following steps:
[0105] Step S310: Displaying a game interface of a game application, wherein the game application includes a character of the opponent and a character of the opponent.
[0106] Step S320: taking a screenshot to obtain an interface image of the game interface and performing image recognition on the interface image to obtain attribute information of the own character, attribute information of the opponent character, and situation information between the own character and the opponent character.
[0107] For the detailed description of step S310 to step S320, please refer to step S110 to step S120, which will not be repeated here.
[0108] Step S330: During the process of displaying the equipment purchase interface, a screenshot is taken to obtain a purchase interface image of the equipment purchase interface and image recognition is performed on the purchase interface image to obtain a stay time on the equipment purchase interface.
[0109] Optionally, the game interface may include an equipment purchasing interface.
[0110] In this embodiment, when the equipment purchase interface is displayed, a screenshot may be taken to obtain a purchase interface image of the equipment purchase interface, and image recognition may be performed on the purchase interface image to obtain the length of time the player stays on the equipment purchase interface.
[0111] Among them, in the process of displaying the equipment purchase interface, the equipment purchase interface can be screenshotted and image recognized in real time or at preset time intervals. If it is recognized that a frame of the purchase interface image in the screenshot represents the player entering the equipment purchase interface (such as entering the equipment purchase interface from the game battle interface), then the timing can be started and the equipment purchase interface can continue to be screenshotted and image recognized. If it is recognized that a frame of the purchase interface image in the screenshot represents the player exiting the equipment purchase interface (such as entering the game battle interface from the equipment purchase interface), or if it is recognized that a frame of the purchase interface image in the screenshot represents that the player has successfully purchased the equipment, then the timing can be stopped. Otherwise, the timing can be kept to obtain the length of time spent on the equipment purchase interface.
[0112] Step S340: If the stay time reaches the time threshold and the equipment is not successfully purchased, the equipment recommendation information is displayed based on the attribute information of the own character, the attribute information of the opponent character and the situation information.
[0113] In some implementations, the electronic device may pre-set and store a duration threshold, which is used as a basis for determining the player's stay time on the equipment purchase interface. Therefore, in this embodiment, when the player's stay time on the equipment purchase interface is obtained, the stay time may be compared with the duration threshold to determine whether the stay time reaches the duration threshold.
[0114] Among them, if it is determined that the stay time reaches the time threshold and no successful purchase is made within the stay time, it means that the player is uncertain or unclear about what equipment to buy. Therefore, equipment recommendation information can be displayed based on the attribute information of the player's own character, the attribute information of the opponent's character and the situation information to improve the player's gaming experience and game winning rate.
[0115] Among them, if it is determined that the stay time does not reach the time threshold, it means that the player may have determined what equipment to buy but is selecting equipment. Therefore, the equipment recommendation information may not be displayed. At this time, the default equipment list may be displayed.
[0116] Among them, if it is determined that the stay time reaches the time threshold and the equipment has been successfully purchased, it means that the player has determined what equipment should be purchased. Therefore, the equipment recommendation information may not be displayed. At this time, the default equipment list may be displayed.
[0117] An equipment recommendation method for a game provided in one embodiment of the present application displays a game interface of a game application, wherein the game application includes one's own character and an opponent's character, takes a screenshot to obtain an interface image of the game interface and performs image recognition on the interface image to obtain attribute information of one's own character, attribute information of the opponent's character, and situation information between one's own character and the opponent's character; in the process of displaying an equipment purchase interface, takes a screenshot to obtain a purchase interface image of the equipment purchase interface and performs image recognition on the purchase interface image to obtain the duration of stay on the equipment purchase interface; if the duration reaches a duration threshold and the equipment is not successfully purchased, then based on the attribute information of one's own character, attribute information of the opponent's character, and situation information, displays equipment recommendation information, wherein the equipment recommendation information is used to guide one's own character in outfitting. Compared to Figure 1 The equipment recommendation method for the game shown in the figure, this embodiment also makes equipment recommendations when the user stays on the equipment purchase interface for too long, so as to enhance the user's gaming experience.
[0118] See also Fig.10 , Fig.10 The module block diagram of the game equipment recommendation device provided by an embodiment of the present application is shown. Fig.10 The block diagram shown in FIG. 1 is used to illustrate that the equipment recommendation device 200 for a game includes: a game interface display module 210, an image recognition module 220, and an equipment recommendation module 230, wherein:
[0119] The game interface display module 210 is used to display the game interface of the game application, wherein the game application includes the opponent's own character and the opponent's character.
[0120] The image recognition module 220 is used to capture the interface image of the game interface and perform image recognition on the interface image to obtain the attribute information of the own character, the attribute information of the opponent character, and the situation information between the own character and the opponent character.
[0121] Furthermore, the game interface includes a game loading interface and a game battle interface, and the image recognition module 220 includes: an attribute information acquisition submodule and a situation information acquisition submodule, wherein:
[0122] The attribute information acquisition submodule is used to capture a loading interface image of the game loading interface and perform image recognition on the loading interface image during the display of the game loading interface, so as to obtain the attribute information of the own character and the attribute information of the opponent character.
[0123] Furthermore, the attribute information obtaining submodule includes: a role name obtaining unit and an attribute information obtaining unit, wherein:
[0124] The character name obtaining unit is used to capture a loading interface image of the game loading interface by screenshot and perform image recognition on the loading interface image during the display of the game loading interface, so as to obtain the character name of the own character and the character name of the opponent character.
[0125] The attribute information obtaining unit is used to obtain the attribute information of the own character based on the character name of the own character, and obtain the attribute information of the target character based on the character name of the opponent character.
[0126] The situation information acquisition submodule is used to capture a battle interface image of the game battle interface and perform image recognition on the battle interface image during the display of the game battle interface to obtain the situation information between the own character and the opponent character.
[0127] Furthermore, the situation information obtaining submodule includes: a duration obtaining unit and a first situation information obtaining unit, wherein:
[0128] The duration obtaining unit is used to capture a battle interface image of the game battle interface and perform image recognition on the battle interface image during the display of the game battle interface, so as to obtain the duration from the start of the battle to the death of the own character.
[0129] Furthermore, the duration obtaining unit includes: a blood volume change obtaining subunit and a duration obtaining subunit, wherein:
[0130] The blood volume change obtaining subunit is used to capture a battle interface image of the game battle interface and perform image recognition on the battle interface image during the display of the game battle interface, so as to obtain the blood volume change of the own character from the beginning of the battle.
[0131] The duration obtaining subunit is used to determine the duration from the start of the battle to the death of the own character based on the health change.
[0132] The first situation information obtaining unit is used to obtain the situation information between the own character and the opponent character based on the duration.
[0133] Furthermore, the situation information obtaining submodule includes: a death count obtaining unit and a second situation information obtaining unit, wherein:
[0134] The unit for obtaining the number of deaths is used to capture a battle interface image of the game battle interface and perform image recognition on the battle interface image during the display of the game battle interface, so as to obtain the number of deaths of the own character and the opponent character that caused the death of the own character each time.
[0135] The second situation information obtaining unit is used to obtain the situation information between the own character and the opponent character based on the number of deaths of the own character and the opponent character that caused the death of the own character each time.
[0136] Furthermore, the situation information acquisition submodule further includes: an opponent role determination unit and a battle skill display unit, wherein:
[0137] The opponent character determination unit is used to determine the opponent character that causes the most deaths of the own character based on the number of deaths of the own character and the opponent character that causes the death of the own character each time.
[0138] The battle skill display unit is used to display the battle skills of the opponent character that caused the most deaths of the own character.
[0139] Furthermore, the situation information obtaining submodule includes: an equipment information obtaining unit and a third situation information obtaining unit, wherein:
[0140] The equipment information obtaining unit is used to capture the battle interface image of the game battle interface and perform image recognition on the battle interface image during the display of the game comparison page, so as to obtain the equipment information of the own character and the equipment information of the opponent character.
[0141] The third situation information obtaining unit is used to obtain the situation information between the own character and the opponent character based on the equipment information of the own character and the equipment information of the opponent character.
[0142] The equipment recommendation module 230 is used to display equipment recommendation information based on the attribute information of the own character, the attribute information of the opponent character and the situation information, wherein the equipment recommendation information is used to guide the own character in equipment.
[0143] Furthermore, the equipment recommendation module 230 includes: a stay duration acquisition submodule and an equipment recommendation submodule, wherein:
[0144] The dwell time acquisition submodule is used to capture a purchase interface image of the equipment purchase interface and perform image recognition on the purchase interface image during the display of the equipment purchase interface to obtain the dwell time on the equipment purchase interface.
[0145] The equipment recommendation submodule is used to display the equipment recommendation information based on the attribute information of the own character, the attribute information of the opponent character and the situation information if the stay time reaches the time threshold and the equipment is not successfully purchased.
[0146] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0147] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0148] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0149] See also Fig.11 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0150] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0151] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0152] In some embodiments, the electronic device 100 may further include a touch screen, wherein the touch screen is used to display information input by a user, information provided to a user, and various graphical user interfaces of the electronic device 100, and these graphical user interfaces may be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.
[0153] In some embodiments, the electronic device 100 may further include a camera for collecting the user's motion data. Optionally, the camera may include a front camera, a rear camera, a telescopic camera, a rotating camera, etc., which are not limited here.
[0154] In some embodiments, the electronic device 100 may further include a sensor, wherein the sensor may include a light sensor, which may be used to turn off the display of the touch screen when an object approaches the touch screen, for example, when the main body of the electronic device moves to the ear. The sensor may include a pressure sensor, which may be used to detect the pressure generated by pressing on the electronic device, that is, the pressure sensor may detect the pressure generated by the contact or pressing between the user and the electronic device, such as the pressure generated by the contact or pressing between the user's ear or finger and the electronic device. The sensor may include a gravity sensor, which is used to detect the magnitude of acceleration in each direction (generally three axes), and the magnitude and direction of gravity can be detected when stationary, which can be used for applications that 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. In addition, the electronic device may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, etc., which are not limited here.
[0155] See also Fig.12 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0156] The computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in an appropriate form.
[0157] In some implementations, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the equipment recommendation method for the game in the embodiment of the present application is implemented.
[0158] In summary, the equipment recommendation method for the game provided in the embodiment of the present application displays the game interface of the game application, wherein the game application includes the player's own character and the opponent's character, takes a screenshot to obtain an interface image of the game interface and performs image recognition on the interface image, obtains attribute information of the player's own character, attribute information of the opponent's character, and situation information between the player's own character and the opponent's character, and displays equipment recommendation information based on the attribute information of the player's own character, the attribute information of the opponent's character, and the situation information, wherein the equipment recommendation information is used to guide the player's own character in outfitting, thereby improving the game player's game winning rate and enhancing the user's gaming experience by making different equipment recommendations according to different opponents and situation information.
[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for recommending equipment for a game, characterized in that: The method comprises: Displaying a game interface of a game application, wherein the game application includes a character of the opponent and a character of the opponent; Taking a screenshot to obtain an interface image of the game interface and performing image recognition on the interface image to obtain attribute information of the own character, attribute information of the opponent character, and situation information between the own character and the opponent character; Based on the attribute information of the own character, the attribute information of the opponent character and the situation information, equipment recommendation information is displayed, wherein the equipment recommendation information is used to guide the own character in outfitting.
2. The method according to claim 1, characterized in that The game interface includes a game loading interface and a game battle interface, and the screenshot acquires an interface image of the game interface and performs image recognition on the interface image to obtain attribute information of the own character, attribute information of the opponent character, and situation information between the own character and the opponent character, including: In the process of displaying the game loading interface, taking a screenshot to obtain a loading interface image of the game loading interface and performing image recognition on the loading interface image to obtain attribute information of the own character and attribute information of the opponent character; In the process of displaying the game battle interface, a battle interface image of the game battle interface is captured by screenshot and image recognition is performed on the battle interface image to obtain situation information between the own character and the opponent character.
3. The method according to claim 2, characterized in that In the process of displaying the game loading interface, taking a screenshot to obtain a loading interface image of the game loading interface and performing image recognition on the loading interface image to obtain attribute information of the own character and attribute information of the opponent character include: In the process of displaying the game loading interface, taking a screenshot to obtain a loading interface image of the game loading interface and performing image recognition on the loading interface image to obtain the character name of the own character and the character name of the opponent character; The attribute information of the own character is obtained based on the character name of the own character, and the attribute information of the target character is obtained based on the character name of the opponent character.
4. The method according to claim 2, characterized in that: In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain situation information between the own character and the opponent character, including: In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain the duration from the start of the battle to the death of the own character; Based on the duration, situation information between the own character and the opponent character is obtained.
5. The method according to claim 4, characterized in that In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain the duration from the start of the battle to the death of the own character, including: In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain the health change of the own character from the beginning of the battle; Based on the health change, the duration from the start of the battle to the death of the own character is determined.
6. The method according to claim 2, characterized in that In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain situation information between the own character and the opponent character, including: In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain the number of deaths of the own character and the opponent character that caused the death of the own character each time; Based on the number of times the own character is killed and the opponent character that causes the own character to be killed each time, the situation information between the own character and the opponent character is obtained.
7. The method according to claim 6, characterized in that The method further comprises: Based on the number of deaths of the own character and the opposing character that caused the death of the own character each time, determining the opposing character that caused the most deaths of the own character; Displays the combat skills against the enemy character that caused the most deaths of the enemy character.
8. The method according to claim 2, characterized in that: In the process of displaying the game battle interface, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain situation information between the own character and the opponent character, including: In the process of displaying the game comparison page, taking a screenshot to obtain a battle interface image of the game battle interface and performing image recognition on the battle interface image to obtain the equipment information of the own character and the equipment information of the opponent character; Based on the equipment information of the own character and the equipment information of the opponent character, the situation information between the own character and the opponent character is obtained.
9. The method according to any one of claims 1 to 8, characterized in that: The game interface includes an equipment purchase interface, and the equipment recommendation information is displayed based on the attribute information of the own character, the attribute information of the opponent character and the situation information, including: In the process of displaying the equipment purchase interface, taking a screenshot to obtain a purchase interface image of the equipment purchase interface and performing image recognition on the purchase interface image to obtain a stay time on the equipment purchase interface; If the stay time reaches the time threshold and the equipment is not successfully purchased, the equipment recommendation information is displayed based on the attribute information of the own character, the attribute information of the opponent character and the situation information.
10. A device for recommending equipment for a game, characterized in that: The device comprises: A game interface display module, used to display a game interface of a game application, wherein the game application includes a character of the opponent and a character of the opponent; An image recognition module, used to capture an interface image of the game interface and perform image recognition on the interface image to obtain attribute information of the own character, attribute information of the opponent character, and situation information between the own character and the opponent character; The equipment recommendation module is used to display equipment recommendation information based on the attribute information of the own character, the attribute information of the opponent character and the situation information, wherein the equipment recommendation information is used to guide the equipment of the own character.
11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.