Game testing method, device and equipment based on image recognition, medium and product

By realizing the transmission of image acquisition messages between the application layer and the system layer of the electronic device, and using pre-stored clearance pictures and image recognition technology to automatically test game levels, the high labor cost problems caused by manual participation in the prior art are solved, and testing efficiency and accuracy are improved.

CN119625350APending Publication Date: 2025-03-14BEIJING XUEDIRUANJIAN DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411660619.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

Existing game testing methods based on image recognition require manual participation in the game process in real time, resulting in high labor costs.

Method used

By realizing the transmission of image acquisition messages between the application layer of the electronic device and the system layer, the system layer pre-stores the game level's clearance pictures, and uses image recognition technology to generate the clearance test results to realize the automated testing of the game level.

Benefits of technology

It realizes automated testing of game levels, reduces labor costs, and improves testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119625350A_ABST
    Figure CN119625350A_ABST
Patent Text Reader

Abstract

The invention provides a game testing method and device based on image recognition, equipment, a medium and a product. According to one example of the invention, the method is applied to the electronic equipment, the electronic equipment comprises an application layer and a system layer, a customs clearance picture of a game level is stored in the system layer, and the method can comprise the following steps: under the condition of determining to enter the game level, the application layer sends a picture acquisition message to the system layer, the picture acquisition message carries the identification information of the game level; the system layer acquires a customs clearance picture corresponding to the identification information according to the received picture acquisition message; and generating a customs clearance test result corresponding to the customs clearance picture by using an image recognition technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game testing technology, and in particular to game testing methods, devices, equipment, media and products based on image recognition. Background Art

[0002] With the continuous advancement of game technology, the iteration speed of game versions is getting faster and faster, and the richness and complexity of game content is also increasing. This directly leads to a significant increase in the number of game levels and the amount of regression testing is also increasing.

[0003] At present, the game testing method based on image recognition uses a camera to collect pictures in real time, and verifies whether the game level passing conditions are met based on the collected pictures. However, this game testing method still requires real-time human participation in the game process, which requires high labor costs. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides a game testing method, device, equipment, medium and product based on image recognition.

[0005] According to a first aspect of any embodiment of the present application, a game testing method based on image recognition is provided, the method is applied to an electronic device, the electronic device includes: an application layer and a system layer; the game level clearance pictures are stored in the system layer; the method includes:

[0006] When it is determined that the game level has been entered, the application layer sends a picture acquisition message to the system layer, wherein the picture acquisition message carries identification information of the game level;

[0007] The system layer obtains the clearance picture corresponding to the identification information according to the received picture acquisition message;

[0008] The image recognition technology is used to generate a clearance test result corresponding to the clearance picture.

[0009] According to a second aspect of any embodiment of the present application, a game testing device based on image recognition is provided, the device is applied to an electronic device, the electronic device includes: an application layer and a system layer; the clearance pictures of the game level are stored in the system layer; the device includes:

[0010] a message sending module, configured to cause the application layer to send a picture acquisition message to the system layer when it is determined that the game level has been entered, wherein the picture acquisition message carries identification information of the game level;

[0011] A picture acquisition module, used for the system layer to acquire the customs clearance picture corresponding to the identification information according to the received picture acquisition message;

[0012] The result generation module is used to generate the clearance test result corresponding to the clearance picture by using image recognition technology.

[0013] According to a third aspect of any embodiment of the present application, there is provided an electronic device, including:

[0014] processor;

[0015] a memory for storing processor-executable instructions;

[0016] The processor implements the method described in any embodiment of the present application by running the executable instructions.

[0017] According to a fourth aspect of any embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the method described in any embodiment of the present application is implemented.

[0018] According to a fifth aspect of any embodiment of the present application, a computer program product is provided, on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the method described in any embodiment of the present application is implemented.

[0019] The technical solution provided by this application may have the following beneficial effects:

[0020] According to the above embodiments, when it is determined that the game level has been entered, the application layer sends a picture acquisition message to the system layer. The system layer obtains the clearance picture corresponding to the identification information based on the received picture acquisition message, and uses image recognition technology to generate a clearance test result corresponding to the clearance picture. It only needs to use the clearance picture pre-stored by the system layer to perform the clearance test of image recognition, avoiding reliance on cameras to collect pictures of manual clearance, thereby realizing automated testing of game levels and improving the efficiency and accuracy of level testing.

[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0023] Figure 1 is a flowchart of a game testing method based on image recognition according to an exemplary embodiment of the present application;

[0024] Figure 2is a structural schematic diagram of an electronic device according to an exemplary embodiment of the present application;

[0025] Figure 3 is a flowchart of another game testing method based on image recognition according to an exemplary embodiment of the present application;

[0026] Figure 4 is a schematic structural diagram of another electronic device according to an exemplary embodiment of the present application;

[0027] Figure 5 It is a block diagram of a game testing device based on image recognition according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0029] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0030] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0031] At present, the game testing method based on image recognition needs to rely on real-time human participation in the game process. Taking the tangram puzzle game as an example, testers are required to manually arrange the board elements and use the camera to collect pictures in real time. The collected pictures are used to verify whether the conditions for passing the game level are met, which still requires high labor costs.

[0032] In order to solve the above problems, the present application proposes a game testing method based on image recognition. To further illustrate the present application, the following embodiments are provided:

[0033] See also Figure 1 , Figure 1 This is a flowchart of a game testing method based on image recognition according to an exemplary embodiment of the present application. The game testing method can be applied to electronic devices, which can be terminal devices such as learning machines, mobile phones, computers, digital broadcast terminals, game consoles, tablet devices, personal digital assistants, etc.

[0034] like Figure 1 As shown, the game testing method may include the following steps:

[0035] Step 102: When it is determined that the game level has been entered, the application layer sends a picture acquisition message to the system layer, and the picture acquisition message carries identification information of the game level.

[0036] In this step, when the game level of the application layer needs to be tested, the user triggers the instruction information of reading the clearance picture stored locally by clicking a button in the application layer, executing a configuration file, etc.

[0037] During the testing of each game level, the application layer detects the page for entering the game level and determines that the game level has been entered. After determining that the game level has been entered, the application layer turns off the camera according to the instruction information. There is no need to capture the image of the game interface of the application layer in real time. The application layer generates a picture acquisition message of the game level, and the picture acquisition message can carry the identification information of the game level.

[0038] The application layer sends a picture acquisition message to the system layer in the electronic device through communication mechanisms such as inter-process communication and API calls, and notifies the system layer to read the clearance pictures stored locally.

[0039] The picture acquisition message is used to instruct to read the clearing picture of the game level, and may be a message identifier, etc. The clearing picture is a picture that meets the clearing condition of the game level, and is used to reflect the clearing status of the game level.

[0040] The identification information is used to uniquely identify a game level, ensuring that the system layer can accurately find and read the corresponding clearance image, and can be the level ID, level name, and other information of the game level.

[0041] See also Figure 2 , Figure 21 is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. The electronic device may include: an application layer 20 and a system layer 21. The application layer 20 is a game application developed based on game engines such as Unity, Unreal Engine (UE) and Cocos. The system layer 21 is an operating system of the electronic device, such as an Android operating system. The clearance pictures of each game level are pre-stored in the system layer 21.

[0042] The game types involved in the embodiments of the present application include but are not limited to jigsaw puzzles, decryption games, and role-playing games. Such games have the characteristic of using image recognition technology to determine whether the clearance conditions are met. For example, for jigsaw puzzles, image recognition technology is used to determine whether the elements assembled by the user are in the correct position or form a preset shape, thereby determining the clearance result of the game level.

[0043] For another example, in puzzle games, image recognition technology is used to determine whether the user has found the correct clues or solved the puzzle, thereby determining the outcome. For another example, in role-playing games, image recognition technology is used to analyze the user's combat performance (such as whether the enemy is defeated, whether the mission items are obtained, etc.) to determine the outcome.

[0044] Step 104: The system layer obtains the clearance picture corresponding to the identification information according to the received picture acquisition message.

[0045] In this step, the system layer parses the image acquisition message according to the received image acquisition message to obtain the identification information carried in the image acquisition message. The system layer determines the game level to be tested based on the identification information, and obtains the game level clearance image corresponding to the identification information from the clearance images of each game level pre-stored in the system layer.

[0046] Step 106: Generate a clearance test result corresponding to the clearance image using image recognition technology.

[0047] In this step, the electronic device uses image recognition models, open source computer vision library (OpenCV), TensorFlow and other image recognition technologies to perform image recognition on the clearance pictures of the game levels, identify the elements in the clearance pictures, compare them with the preset clearance conditions, determine whether the clearance conditions are met, and generate a clearance test result corresponding to the clearance picture.

[0048] Exemplarily, the electronic device may input a customs clearance picture into an image recognition model, and the image recognition model outputs a customs clearance test result of whether the customs clearance picture meets the customs clearance conditions.

[0049] If the clearance condition determination process of the clearance picture is normal, the clearance test result is normal, and the electronic device can update the UI interface of the application layer to display the message of successful clearance, score, reward and other information.

[0050] If the clearance condition determination process of the clearance image is abnormal, the clearance test result is abnormal, and the electronic device can display the corresponding clearance failure information at the application layer, or provide a retry option.

[0051] The electronic device may also store the customs clearance pictures, identification information and customs clearance test results locally or report them to the server for subsequent data analysis or statistics.

[0052] The clearance test result is obtained by performing image recognition on the clearance picture based on image recognition technology, and is used to reflect whether the clearance condition determination process for the clearance picture is normal. The clearance test result may include normal clearance or abnormal clearance, and the clearance condition may include conditions such as the completion time, score, and achievement achievement.

[0053] The image recognition model is a model obtained by training and optimizing the initial model, and is used to obtain the game clearance results based on the clearance pictures. The initial model can be a convolutional neural network (CNN), a recurrent neural network (RNN), etc.

[0054] The module for generating the clearance test result by using the image recognition technology may be an algorithm module integrated in the electronic device.

[0055] Taking the tangram puzzle game as an example, a large number of labeled tangram puzzle pictures are used as training sets in advance to train the initial model and obtain a trained image recognition model. The training set includes correct puzzles and incorrect puzzles.

[0056] The electronic device inputs the clearance picture into the image recognition model, and the image recognition model performs block recognition on the clearance picture, identifies the type and number of tangram blocks contained in the clearance picture, and verifies whether all blocks are used and there are no extra blocks that are not used.

[0057] Compare the pass picture with the preset target graphic, compare the contours of the pass picture and the target graphic, calculate the shape descriptor and other information. When the similarity between the pass picture and the target graphic reaches a certain threshold, the pass test result of successful pass can be output.

[0058] In one embodiment, when the electronic device determines that the clearance test result is a positive result, the application layer uses an automated test script to automatically enter the next game level. For example, a Python script written based on the Airtest framework is used to realize automatic jumping between the map in the application layer and each game level.

[0059] After determining to enter the next game level, the application layer sends a picture acquisition message of the next game level to the system layer. The picture acquisition message of the next game level carries the identification information of the next game level.

[0060] The system layer obtains the identification information of the next level carried in the next level image acquisition message according to the next level image acquisition message received from the application layer. Based on the identification information of the next level, the clearance image of the next level of the game is obtained, and the clearance test result of the next level of the game is generated by using image recognition technology.

[0061] When the electronic device determines that the clearance test result is a negative result, it can record an error message, try to retest the current level, or stop the test process.

[0062] Among them, the positive result is used to reflect that the clearance image meets the clearance conditions, which can be a conclusion of successful clearance, a clearance time within a preset range, etc. The negative result is used to reflect that the clearance image does not meet the clearance conditions, which can be a conclusion of failed clearance, a clearance time outside the preset range, etc.

[0063] For each game level in the game, the electronic device uses the clearance pictures in turn to traverse the clearance condition determination process of each game level until all game level tests are completed or the clearance test results are negative.

[0064] The electronic device can generate a detailed test report based on the clearance test results of each game level. The test report is displayed in the form of charts, tables, etc., which makes it convenient for developers and testers to quickly understand the test results and abnormal problems. The test report can include: clearance topology, clearance test results of game levels, performance indicators, and error and abnormal information.

[0065] As described above, by determining that the clearance test result is a positive result, obtaining the clearance picture of the next game level, generating the clearance test result of the next game level, and automatically traversing and testing each game level, thereby achieving full automated regression testing of the entire game application, it can not only improve the testing efficiency, but also help to discover potential problems that may be hidden in infrequently tested levels, thereby ensuring the stability and consistency of game quality.

[0066] The game testing method based on image recognition in this embodiment is that when it is determined that a game level has been entered, the application layer sends a picture acquisition message to the system layer. The system layer obtains the clearance picture corresponding to the identification information based on the received picture acquisition message, and uses image recognition technology to generate a clearance test result corresponding to the clearance picture. It only needs to use the clearance picture pre-stored by the system layer to perform the clearance test of image recognition, avoiding reliance on cameras to collect pictures of manual clearance, thereby realizing automated testing of game levels and improving the efficiency and accuracy of level testing.

[0067] In the above-mentioned embodiment, it is introduced that the clearance process of the game level is tested by using the clearance pictures pre-stored in the system layer in the system layer, so as to realize the automatic testing of the game level. In the following embodiment, the storage process of the clearance pictures will be described in more detail, and can be applied to any of the above embodiments.

[0068] In one embodiment, the electronic device can retrieve the real clearance pictures of the online user through the server to obtain the real pictures of the user passing the game level. The real pictures are used as clearance pictures and the clearance pictures are stored in the system layer. The electronic device can also update the clearance pictures stored in the system layer regularly or periodically.

[0069] As described above, by obtaining real pictures of users completing game levels and using the real pictures as completion pictures to test the game levels, it is possible to quickly respond to the needs of version iterations and ensure the continuity and stability of the game.

[0070] In one embodiment, the electronic device can set the image name of the clearance picture based on the identification information such as the level ID of the game level. For example, the image name of the clearance picture of the first game level is "1.png", and the image name of the clearance picture of the second game level is "2.png".

[0071] The electronic device concatenates the preset storage directory and the image name to generate the storage path of the clearance image. Taking the storage directory as " / sdcard / GameData / Levels / " as an example, the storage path of the clearance image of the first level is " / sdcard / GameData / Levels / 1.png", and the storage path of the clearance image of the second level is " / sdcard / GameData / Levels / 2.png".

[0072] According to the generated storage path, the clearance pictures of each game level are stored in the storage directory in the system layer.

[0073] When the system layer obtains the clearance image based on the identification information, the system layer retrieves the image name matching the identification information in the storage directory, and reads the clearance image from the storage path corresponding to the image name based on the matching image name.

[0074] The storage directory is used to store the clearance images of all game levels, and the storage path is the path for storing the clearance images of each game level.

[0075] As described above, by setting the picture name of the clear picture based on the identification information, concatenating the preset storage directory and picture name to generate a storage path for the clear picture, storing the clear picture in the storage directory according to the storage path, retrieving the picture name that matches the identification information in the storage directory, reading the clear picture based on the matching picture name, and setting the picture name and storage path based on the identification information, the management of the clear picture can be simplified, and the addition, deletion or replacement of the clear picture can be more conveniently implemented, thereby enhancing the scalability of game testing.

[0076] In one embodiment, before storing the clearance image, the electronic device may scale the clearance image to create multiple resolution versions of the clearance image in order to adapt to electronic devices with different screen resolutions. These clearance images have the same content but different resolutions (number of pixels).

[0077] The electronic device stores each resolution version of the clearance picture in the system layer. When storing, a corresponding resolution identifier can be set for each resolution version of the clearance picture, and different resolution versions can also be distinguished by picture name or storage path.

[0078] When obtaining the clearance image, the system layer can obtain the screen resolution of the electronic device, and determine the clearance image corresponding to the resolution version matching the screen resolution based on the identification information carried in the image acquisition message and the obtained screen resolution.

[0079] As described above, by performing image scaling on the clearance pictures, storing multiple resolution versions of the clearance pictures, obtaining the screen resolution of the electronic device, determining the clearance pictures that match the screen resolution based on the identification information and the screen resolution, and selecting the most suitable clearance pictures for the screen resolution of the electronic device, the resolution is avoided from affecting the image recognition process of the clearance test, thereby improving the reliability of the game test.

[0080] In one embodiment, the picture acquisition message may also carry the current game version of the game level. When it is determined to enter the game level, the application layer generates a picture acquisition message based on the current game version and the identification information of the current game level, and sends the picture acquisition message to the system layer.

[0081] The electronic device may store clearance pictures corresponding to different game versions in the system layer in advance. When storing, a corresponding version identifier may be set for the clearance pictures of each game version, or different game versions may be distinguished by picture name or storage path.

[0082] The system layer determines the clearance picture that matches the current game version based on the identification information carried in the picture acquisition message and the current game version.

[0083] As described above, by storing the clearance pictures corresponding to different game versions, determining the clearance pictures that match the current game version based on the identification information and the current game version, and ensuring that the read clearance pictures match the current game version, it is possible to avoid incorrect clearance test results due to version inconsistencies, which helps to improve the accuracy and reliability of game testing; and, by using the clearance pictures corresponding to different game versions, it is possible to support multi-version game regression testing, further improving testing efficiency.

[0084] See also Figure 3 , Figure 3 This is a flowchart of another game testing method based on image recognition according to an exemplary embodiment of the present application. Taking the application layer as a game application developed based on the Unity engine as an example, the game testing method may include the following steps:

[0085] Step 302: Store the real image as a clearance image in the system layer.

[0086] In this step, the electronic device periodically or regularly obtains a real picture of the user clearing a game level, and uses the real picture as the clearing picture. Based on the identification information of the game level, the picture name of the clearing picture is set, and the preset storage directory and picture name are spliced ​​to generate a storage path for the clearing picture.

[0087] The clearance pictures corresponding to different game versions or different resolution versions are stored in the system layer according to the storage path.

[0088] Step 304: The system layer creates a message receiving method.

[0089] In this step, the system layer pre-creates a message receiving method in the UnityPlayerActivity class of the system layer, and the message receiving method is used to receive the picture acquisition message.

[0090] Step 306: The application layer uses the SRDebugger plug-in to create an indication receiving method.

[0091] In this step, the application layer uses the SRDebugger plug-in integrated in the application layer to create an indication receiving method. The indication receiving method is used to receive indication information of whether to read the local customs clearance picture.

[0092] Step 308: The application layer sends a picture acquisition message to the system layer.

[0093] In this step, when the game level needs to be tested, the user triggers the instruction receiving method through buttons, configuration files, etc. in the application layer to receive instruction information for reading the local clearance pictures. During the testing of each game level, when it is determined that the game level has been entered, the application layer turns off the camera according to the instruction information and sends a picture acquisition message to the system layer.

[0094] When the game level is normally cleared, the user triggers the instruction receiving method through a button, configuration file, etc. in the application layer to receive instruction information for not reading the local clearing picture. In the process of clearing each game level, the application layer collects the clearing picture through the camera.

[0095] Step 310: The system layer obtains a message based on the received picture and obtains identification information.

[0096] In this step, the system layer receives the picture acquisition message sent by the application layer through the message receiving method, parses the picture acquisition message, and obtains the identification information carried in the picture acquisition message.

[0097] Step 312: Determine whether there is a clearance picture in the system layer.

[0098] In this step, the system layer retrieves the picture name matching the identification information in the storage directory.

[0099] If a matching picture name is retrieved, then there is a clearance picture in the system layer, and step 314 is continued;

[0100] If no matching picture name is retrieved, then there is no clearance picture in the system layer, and step 318 is executed.

[0101] Step 314: The system layer reads the clearance image in the storage directory based on the matching image name.

[0102] In this step, the system layer reads the clearance image from the storage path corresponding to the image name based on the matching image name.

[0103] Step 316: Generate a clearance test result corresponding to the clearance image using image recognition technology.

[0104] In this step, the electronic device uses image recognition technology to perform image recognition on the clearance picture of the game level, determines whether it meets the clearance conditions of the game level, and generates a clearance test result corresponding to the clearance picture.

[0105] Step 318: Print the log.

[0106] In this step, the electronic device prints log information of the storage path of the clearance image corresponding to the identification information, so that the developer or tester can check the reason why the clearance image cannot be retrieved.

[0107] Figure 4 1 is a schematic diagram of another electronic device according to an exemplary embodiment of the present application. The electronic device may be, for example, a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a personal digital assistant, a server, a smart home appliance, a car computer, etc. Figure 4 At the hardware level, the electronic device includes a processor 402, an internal bus 404, a network interface 406, a memory 408, and a non-volatile memory 410, and may also include hardware required for other services. The processor 402 reads the corresponding computer program from the non-volatile memory 410 into the memory 408 and then runs it, forming a game testing device based on image recognition at the logical level. Of course, in addition to the software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0108] Figure 5 is a block diagram of a game testing device based on image recognition according to an exemplary embodiment of the present application. Figure 5 , the device may include: a message sending module 502, a picture acquisition module 504 and a result generation module 506, wherein:

[0109] The message sending module 502 is configured to, when it is determined that the game level has been entered, cause the application layer to send a picture acquisition message to the system layer, wherein the picture acquisition message carries identification information of the game level;

[0110] The picture acquisition module 504 is used for the system layer to acquire the clearance picture corresponding to the identification information according to the received picture acquisition message;

[0111] The result generation module 506 is used to generate the clearance test result corresponding to the clearance picture by using image recognition technology.

[0112] In one example, the message sending module 502, when used to determine that the game level has been entered, before the application layer sends a picture acquisition message to the system layer, also includes: based on the identification information, setting the picture name of the clearance picture; splicing the preset storage directory and the picture name to generate a storage path for the clearance picture; according to the storage path, storing the clearance picture in the storage directory; the picture acquisition module 504, when used by the system layer to obtain the clearance picture corresponding to the identification information according to the received picture acquisition message, includes: in the storage directory, retrieving the picture name that matches the identification information; based on the matching picture name, reading the clearance picture.

[0113] In one example, the result generation module 506 is further configured to obtain a clearance image of a next game level and generate a clearance test result of the next game level when it is determined that the clearance test result is a positive result.

[0114] In one example, the message sending module 502, when used to determine that the game level has been entered, before the application layer sends a picture acquisition message to the system layer, also includes: performing image scaling on the clearance picture and storing clearance pictures of different resolution versions; the picture acquisition module 504, when used by the system layer to obtain the clearance picture corresponding to the identification information according to the received picture acquisition message, includes: obtaining the screen resolution of the electronic device; and determining a clearance picture that matches the screen resolution according to the identification information and the screen resolution.

[0115] In one example, the picture acquisition message also carries the current game version of the game level; the clearance pictures include clearance pictures corresponding to different game versions; the picture acquisition module 504, when used by the system layer to obtain the clearance picture corresponding to the identification information according to the received picture acquisition message, includes: determining the clearance picture matching the current game version according to the identification information and the current game version.

[0116] In one example, the message sending module 502, when determining that the game level has been entered, before the application layer sends a picture acquisition message to the system layer, further includes: obtaining a real picture of the user passing the game level; and using the real picture as the passing picture.

[0117] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0118] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0119] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of a game testing device based on image recognition to implement any method as described in the above embodiments.

[0120] The non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc., and the present application does not limit this.

[0121] In an exemplary embodiment, a computer program product including a computer program / instruction is also provided. The computer program / instruction can be executed by a processor of a game testing device based on image recognition to implement any of the methods described in the above embodiments.

[0122] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0123] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. The present application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0124] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A game testing method based on image recognition, characterized in that: The method is applied to an electronic device, wherein the electronic device includes: an application layer and a system layer; a clearance picture of a game level is stored in the system layer; the method includes: When it is determined that the game level has been entered, the application layer sends a picture acquisition message to the system layer, wherein the picture acquisition message carries identification information of the game level; The system layer obtains the clearance picture corresponding to the identification information according to the received picture acquisition message; The image recognition technology is used to generate a clearance test result corresponding to the clearance picture.

2. The method according to claim 1, characterized in that In the case where it is determined that the game level has been entered, before the application layer sends a picture acquisition message to the system layer, the method further includes: Based on the identification information, setting a picture name of the clearance picture; Concatenate the preset storage directory and the picture name to generate a storage path for the clearance picture; According to the storage path, storing the clearance picture in the storage directory; The system layer obtains the clearance picture corresponding to the identification information according to the received picture acquisition message, including: In the storage directory, searching for a picture name matching the identification information; Based on the matched picture name, the clearance picture is read.

3. The method according to claim 1, characterized in that The method further comprises: When it is determined that the clearance test result is a positive result, a clearance picture of a next game level is obtained, and a clearance test result of the next game level is generated.

4. The method according to claim 1, characterized in that: In the case where it is determined that the game level has been entered, before the application layer sends a picture acquisition message to the system layer, the method further includes: Performing image scaling on the clearance image, and storing clearance images in different resolution versions; The system layer obtains the clearance picture corresponding to the identification information according to the received picture acquisition message, including: Obtaining the screen resolution of the electronic device; According to the identification information and the screen resolution, a clearance picture matching the screen resolution is determined.

5. The method according to claim 1, characterized in that The picture acquisition message also carries the current game version of the game level; the level-clearing pictures include level-clearing pictures corresponding to different game versions; The system layer obtains the clearance picture corresponding to the identification information according to the received picture acquisition message, including: According to the identification information and the current game version, a clearance picture matching the current game version is determined.

6. The method according to claim 1, characterized in that In the case where it is determined that the game level has been entered, before the application layer sends a picture acquisition message to the system layer, the method further includes: Obtaining real pictures of the user completing the game level; The real picture is used as the clearance picture.

7. A game testing device based on image recognition, characterized in that: The device is applied to an electronic device, wherein the electronic device comprises: an application layer and a system layer; a clearance picture of a game level is stored in the system layer; the device comprises: a message sending module, configured to cause the application layer to send a picture acquisition message to the system layer when it is determined that the game level has been entered, wherein the picture acquisition message carries identification information of the game level; A picture acquisition module, used for the system layer to acquire the customs clearance picture corresponding to the identification information according to the received picture acquisition message; The result generation module is used to generate the clearance test result corresponding to the clearance picture by using image recognition technology.

8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 6 by running the executable instructions.

9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product having a computer program / instructions stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.