Game identification method, device, equipment and storage medium

By detecting changes in terminal display windows and collecting and matching feature information, the problem of the existing technology being difficult to distinguish whether students are playing games is solved, and rapid supervision of students' terminal usage behavior is achieved.

CN113807352BActive Publication Date: 2025-03-14BEIJING ANYUNSHIJI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111104176.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2025-03-14
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

The existing technology is difficult to distinguish whether students are using terminals to play games, which makes it impossible for parents to supervise students' behavior in real time.

Method used

By detecting the changes in the current display window, collecting window pictures, extracting feature information, and matching it with the preset game feature library, to determine whether the current display window is a game interface.

Benefits of technology

It realizes the rapid identification of whether students switch to the game window when the terminal focus window changes, helping parents supervise students' terminal usage behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113807352B_ABST
    Figure CN113807352B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of computer technology, and discloses a game identification method, device, equipment and storage medium. The present invention acquires a window image by collecting images of the current display window when detecting a change in the current display window; extracts features of the window image to acquire window feature information; matches the window feature information with each game feature information in a preset game feature library to acquire a feature matching result; and determines whether the current display window displays a game interface according to the feature matching result. Since the window image of the current display window is collected when the current display interface changes, the window feature information corresponding to the window image is matched with the game feature information in the preset game feature library, and determines whether the current display window displays a game interface according to the feature matching result, detection can be performed when the focus window of the terminal changes, so that it can be quickly identified when the student switches to the game window to play the game.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a game recognition method, device, equipment and storage medium. Background Art

[0002] Nowadays, it has become an unstoppable trend for students to use terminals such as smartphones, tablets or computers. However, parents hope that their children can spend most of their time on studying when using smartphones, tablets or computers, and play games to relax when they are tired of studying. However, students' self-control is generally poor, and their usage habits need to be managed. Parents are busy with work and cannot supervise students' behavior in real time, making it difficult to distinguish whether students are using terminals to play games.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a game identification method, device, equipment and storage medium, aiming to solve the technical problem that it is difficult to distinguish whether students are using terminals to play games in the prior art.

[0005] To achieve the above object, the present invention provides a game identification method, which comprises the following steps:

[0006] When a change in the current display window is detected, a picture is collected for the current display window to obtain a window picture;

[0007] Extracting features from the window image to obtain window feature information;

[0008] Matching the window feature information with each game feature information in a preset game feature library to obtain a feature matching result;

[0009] Determine whether the current display window displays a game interface based on the feature matching result.

[0010] Optionally, when detecting that the current display window has changed, the step of collecting an image of the current display window to obtain a window image includes:

[0011] When a change in the current display window is detected, obtaining process object information corresponding to the current display window;

[0012] Determine the window display area corresponding to the current display window according to the process object information;

[0013] Image collection is performed according to the window display area to obtain a window image.

[0014] Optionally, before the step of capturing an image of the current display window and obtaining the window image when a change in the current display window is detected, the step further includes:

[0015] Obtaining a preset game classification table, and determining a number of game categories according to the preset game classification table;

[0016] Obtain sample images corresponding to each game category, and perform feature extraction on the sample images to obtain game feature information corresponding to each game category;

[0017] The preset game feature library is constructed according to the game feature information.

[0018] Optionally, the step of matching the window feature information with each game feature information in a preset game feature library to obtain a feature matching result includes:

[0019] Determine the feature similarity between the window feature information and each game feature information in a preset game feature library by using a preset similarity algorithm;

[0020] A feature matching result is constructed according to the feature similarity and each game feature information in the preset game feature library.

[0021] Optionally, the step of determining whether the current display window displays a game interface according to the feature matching result includes:

[0022] Determine, according to the feature matching result, the feature similarity between the window feature information and each piece of game feature information in a preset game feature library;

[0023] Comparing the feature similarity with a preset similarity threshold;

[0024] When there is a feature similarity greater than a preset similarity threshold, it is determined that the current display window displays a game interface.

[0025] Optionally, when detecting that the current display window has changed, the step of collecting an image of the current display window to obtain a window image includes:

[0026] When a change in the current display window is detected, a preset collection interval is obtained;

[0027] Collecting pictures of the current display window according to the preset collection interval to obtain multiple window pictures;

[0028] Correspondingly, the step of extracting features from the window image to obtain window feature information includes:

[0029] When the number of the plurality of window images is greater than a preset detection threshold, feature extraction is performed on the plurality of window images to obtain window feature information.

[0030] Optionally, when the number of the plurality of window images is greater than a preset detection threshold, before the step of extracting features from the window images to obtain window feature information, the step further includes:

[0031] Obtaining a preset detection start time, and determining the amount collected per second according to the preset collection interval;

[0032] The preset detection threshold is determined according to the preset detection start time and the collection amount per second.

[0033] Optionally, the step of extracting features from the plurality of window images to obtain window feature information includes:

[0034] Perform feature extraction on the window images through a preset feature extraction model to obtain image features corresponding to each window image;

[0035] The image features of each window image are fused to obtain window feature information.

[0036] Optionally, after the step of determining whether the current display window displays a game interface according to the feature matching result, the step further includes:

[0037] When the current display window displays a game interface, obtaining a preset game available time period;

[0038] If the current time is not within the preset game available time period, obtain a time period prompt message;

[0039] The process corresponding to the current display window is blocked, and the time period prompt message is displayed.

[0040] Optionally, when the current display window displays a game interface, after the step of obtaining a preset game available time period, the step further includes:

[0041] If the current time is within the preset game available time period, the accumulated time of historical games is obtained;

[0042] Compare the accumulated duration of the historical games with the preset total available duration;

[0043] When the accumulated duration of the historical game is greater than or equal to the preset total available duration, obtaining a duration prompt message;

[0044] The process corresponding to the current display window is blocked, and the duration prompt message is displayed.

[0045] Optionally, when the current display window displays a game interface, the step of obtaining a preset game available time period includes:

[0046] When the current display window is a game interface, obtaining a game usage strategy and obtaining a date type of the day;

[0047] The preset game available time period is determined according to the date type of the day and the game use strategy.

[0048] Optionally, after the step of comparing the accumulated duration of the historical games with the preset total available duration, the method further includes:

[0049] When the accumulated duration of the historical games is less than the preset total available duration, the accumulated duration of the historical games is updated, and the process returns to the step of comparing the accumulated duration of the historical games with the preset total available duration.

[0050] In addition, to achieve the above object, the present invention also proposes a game recognition device, which includes the following modules:

[0051] A picture acquisition module is used to acquire a picture of the current display window when a change in the current display window is detected, to obtain a window picture;

[0052] A feature extraction module is used to extract features from the window image to obtain window feature information;

[0053] A feature matching module, used to match the window feature information with each game feature information in a preset game feature library to obtain a feature matching result;

[0054] A result determination module is used to determine whether the current display window displays a game interface according to the feature matching result.

[0055] Optionally, the image acquisition module is also used to obtain process object information corresponding to the current display window when a change in the current display window is detected; determine a window display area corresponding to the current display window according to the process object information; and perform image acquisition according to the window display area to obtain a window image.

[0056] Optionally, the image acquisition module is also used to obtain a preset game classification table, determine a number of game categories based on the preset game classification table; obtain sample images corresponding to each game category, and perform feature extraction on the sample images to obtain game feature information corresponding to each game category; and construct a preset game feature library based on the game feature information.

[0057] Optionally, the feature matching module is further used to determine the feature similarity between the window feature information and each game feature information in a preset game feature library through a preset similarity algorithm; and construct a feature matching result based on the feature similarity and each game feature information in the preset game feature library.

[0058] Optionally, the result determination module is further used to determine the feature similarity between the window feature information and each game feature information in a preset game feature library according to the feature matching result; compare the feature similarity with a preset similarity threshold; and when there is a feature similarity greater than the preset similarity threshold, determine that the current display window displays a game interface.

[0059] Optionally, the picture acquisition module is further used to obtain a preset acquisition interval when a change in the current display window is detected; and to acquire pictures of the current display window according to the preset acquisition interval to obtain multiple window pictures;

[0060] The feature extraction module is further used to perform feature extraction on the multiple window images to obtain window feature information when the number of the multiple window images is greater than a preset detection threshold.

[0061] In addition, to achieve the above-mentioned purpose, the present invention also proposes a game identification device, which includes: a processor, a memory, and a game identification program stored in the memory and executable on the processor, and the game identification program implements the steps of the game identification method described above when executed by the processor.

[0062] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a game recognition program is stored, and when the game recognition program is executed, the steps of the game recognition method described above are implemented.

[0063] The present invention acquires a window image by collecting images of the current display window when detecting a change in the current display window; extracts features from the window image to acquire window feature information; matches the window feature information with each game feature information in a preset game feature library to acquire a feature matching result; and determines whether the current display window displays a game interface based on the feature matching result. Since the window image of the current display window is collected when the current display interface changes, the window feature information corresponding to the window image is matched with the game feature information in the preset game feature library, and whether the current display window displays a game interface is determined based on the feature matching result, detection can be performed when the focus window of the terminal changes, so that it can be quickly identified when the student switches to the game window to play the game. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;

[0065] Figure 2 This is a flowchart of a first embodiment of a game identification method of the present invention;

[0066] Figure 3 It is a flowchart of a second embodiment of the game identification method of the present invention;

[0067] Figure 4 A schematic diagram of a flow chart of a third embodiment of a game identification method of the present invention;

[0068] Figure 5 It is a structural block diagram of the first embodiment of the game recognition device of the present invention.

[0069] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0071] Reference Figure 1 , Figure 1 A schematic diagram of the structure of a game recognition device in a hardware operating environment according to an embodiment of the present invention.

[0072] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0073] Those skilled in the art will understand that Figure 1The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0074] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a game recognition program.

[0075] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the game recognition device, and the electronic device calls the game recognition program stored in the memory 1005 through the processor 1001, and executes the game recognition method provided by the embodiment of the present invention.

[0076] The embodiment of the present invention provides a game identification method, referring to Figure 2 , Figure 2 The figure is a flowchart of a first embodiment of a game identification method of the present invention.

[0077] In this embodiment, the game identification method includes the following steps:

[0078] Step S10: When a change in the current display window is detected, a picture is collected for the current display window to obtain a window picture.

[0079] It should be noted that the executor of this embodiment can be the game recognition device, and the game recognition device can be a smart phone, a tablet computer, a personal computer or other devices, or other devices with the same or similar functions. This embodiment is not limited to this. In this embodiment and the following embodiments, the game recognition method of the present invention is described by taking the game recognition device as an example.

[0080] It should be noted that the current display window may be a focus window in the terminal that the student is using, that is, the window that the student is focusing on. Detecting a change in the current display window may be detecting a change in the focus window in the terminal, for example: the focus window switches from the window of program A to the window of program B, or the focus window becomes larger or smaller, or the focus window switches from a horizontal screen to a vertical screen, etc. Capturing a picture of the current display window to obtain a window picture may be capturing a picture of the current display window to obtain a window picture.

[0081] Furthermore, since the areas and sizes of interfaces corresponding to different programs may be different, in order to accurately capture the image of the current display window, step S10 in this embodiment may include:

[0082] When a change in the current display window is detected, the process object information corresponding to the current display window is obtained; the window display area corresponding to the current display window is determined according to the process object information; and a picture is collected according to the window display area to obtain a window picture.

[0083] It should be noted that a display window generally corresponds to a program, and when the program is running, a corresponding program process will exist in the system. For the convenience of management, a corresponding process object will exist for the program process to store various information of the program process, such as program name, program number, program location, window display area and other information. Therefore, when a change in the current display window is detected, the program process corresponding to the current display window can be obtained, the process object corresponding to the program process can be found, and the information in the process object can be read to obtain the process object information. Then, the window display area of ​​the current display window is determined according to the read process object information, and a picture of the window display area is captured to obtain a window picture, so that the picture of the current display window can be accurately captured.

[0084] Step S20: extracting features from the window image to obtain window feature information.

[0085] It should be noted that extracting features from the window image to obtain the window feature information may be performed by extracting features from the window image using a preset feature extraction model, and using the extracted image features as the window feature information. The preset feature extraction model may be a pre-trained neural network model for extracting image features.

[0086] Step S30: Match the window feature information with each game feature information in a preset game feature library to obtain a feature matching result.

[0087] It should be noted that the preset game feature library may be a database storing game feature information of a large number of different games, and the preset game feature library may be pre-set by the administrator of the game recognition device. Matching the window feature information with the game feature information of each game in the preset game feature library to obtain the feature matching result may be matching the window feature information with the game feature information of each different game in the preset game feature library to obtain the similarity between the window feature information and each game, and then constructing the feature matching result based on the obtained similarity.

[0088] Furthermore, in order to quickly obtain feature matching results, step S30 in this embodiment may include:

[0089] The feature similarity between the window feature information and each game feature information in the preset game feature library is determined by a preset similarity algorithm; and a feature matching result is constructed according to the feature similarity and each game feature information in the preset game feature library.

[0090] It should be noted that the preset similarity algorithm can be a mean hash algorithm, which has a fast calculation speed and is not affected by the size of the image. Using the mean hash algorithm for feature similarity calculations can greatly improve the calculation speed. Of course, other algorithms with similar functions can also be used for feature similarity calculations as needed, such as: perceptual hash algorithm or difference hash algorithm. Determining the feature similarity between the window feature information and each game feature information in the preset game feature library through the feature similarity algorithm can be inputting the window feature information and the game feature information into the preset similarity algorithm for calculation, thereby obtaining the feature similarity. Constructing a feature matching result based on the feature similarity and each game feature information in the preset game feature library can be to establish a mapping relationship between the feature similarity and each game feature information, and then aggregate the feature similarity after the mapping relationship is established with each game feature information, thereby obtaining a feature matching result.

[0091] Step S40: Determine whether the current display window displays a game interface based on the feature matching result.

[0092] It is understandable that, based on the similarity between the window feature information corresponding to the current display window and each game included in the feature matching result, it can be determined whether the current display window displays a game interface based on the similarity.

[0093] Further, in order to quickly determine whether the current display window displays a game interface, step S40 described in this embodiment may include:

[0094] Determine the feature similarity between the window feature information and each game feature information in a preset game feature library according to the feature matching result; compare the feature similarity with a preset similarity threshold; and when there is a feature similarity greater than the preset similarity threshold, determine that the current display window displays a game interface.

[0095] It should be noted that in order to facilitate whether the current display window is a game interface, the similarity between the window feature information and the game feature information of different games can be quantified using feature similarity when constructing feature matching results. Then, after the matching is completed, only the feature matching results need to be analyzed to determine the feature similarity between the window feature information and the feature information corresponding to each game feature in the preset game feature library. The preset similarity threshold can be set by the administrator of the game recognition device according to actual needs.

[0096] In actual use, if the feature similarity between the window feature information and the game feature information of a certain game is greater than a preset similarity threshold, it can be determined that the interface displayed in the current display window is the game interface of the game. Therefore, the feature similarities obtained by analyzing the feature matching results can be compared with the preset similarity threshold. If any feature similarity is greater than the preset similarity threshold, it can be determined that the interface displayed in the current display window is a game interface.

[0097] Furthermore, there are a large number of games on the market. If the game feature information of all games is collected to build a preset game feature library, a large amount of game feature information will be stored in the preset game feature library. When performing feature matching, it will be necessary to match a large amount of game feature information, which will consume a large amount of computing resources and the matching efficiency will be extremely low. In order to improve the feature matching efficiency and quickly obtain the feature matching results, before step S10 in this embodiment, the following may also be included:

[0098] Obtain a preset game classification table, and determine a number of game categories according to the preset game classification table; obtain sample images corresponding to each game category, and perform feature extraction on the sample images to obtain game feature information corresponding to each game category; and construct the preset game feature library according to the game feature information.

[0099] It should be noted that the preset game classification table can be a database table constructed by multiple game classifications. The administrator of the game recognition device can classify the games on the market, obtain multiple game classifications, and add the game classifications to the preset game classification table. For example: the administrator of the game recognition device classifies the games into multiple game classifications such as chess and card games, fighting games, shooting games, business strategy games, etc., and adds the obtained game classifications to the preset game classification table.

[0100] In actual use, determining a number of game categories according to a preset game classification table may be to read data stored in the preset game classification table, thereby determining a number of game categories. Obtaining sample images corresponding to each game classification may be to search for sample images corresponding to each game classification in a game sample library, wherein the game sample library may be a database composed of a large number of sample images with game classifications set, and the sample images in the game sample library may be pre-set by the administrator of the game recognition device. Constructing a preset game feature library according to game feature information may be to create a database, store the game feature information in the database, and use the database as a preset game feature library after the storage is completed. Feature extraction of sample images to obtain game feature information corresponding to each game classification may be to extract features of sample images through a preset feature extraction model to obtain game feature information corresponding to each game classification.

[0101] It is understandable that when games are classified, only game feature information corresponding to each game category will exist in the preset game feature library. When performing feature matching, it is only necessary to match the game feature information of each game category, which can save a lot of matching time and improve feature matching efficiency.

[0102] This embodiment acquires a window image by collecting images of the current display window when a change in the current display window is detected; extracts features from the window image to acquire window feature information; matches the window feature information with each game feature information in a preset game feature library to acquire a feature matching result; and determines whether the current display window displays a game interface based on the feature matching result. Since the window image of the current display window is collected when the current display interface changes, the window feature information corresponding to the window image is matched with the game feature information in the preset game feature library, and whether the current display window displays a game interface is determined based on the feature matching result, detection can be performed when the focus window of the terminal changes, so that students can quickly identify when they switch to the game window to play games.

[0103] refer to Figure 3 , Figure 3 FIG. 4 is a flow chart of a second embodiment of a game identification method according to the present invention.

[0104] Based on the first embodiment, step S10 of the game identification method of this embodiment includes:

[0105] Step S101: when a change in the current display window is detected, a preset collection interval is obtained.

[0106] It should be noted that the preset collection time interval may be preset by the administrator of the game recognition device. Obtaining the preset collection time interval may be searching for the preset collection time interval in the memory of the game recognition device or searching for the preset collection time interval in the remote management server.

[0107] Step S102: collecting pictures of the current display window according to the preset collection interval to obtain multiple window pictures.

[0108] It should be noted that, collecting pictures of the current display window according to the preset collection interval to obtain multiple window pictures may be performed by periodically collecting pictures of the current display window with the preset collection interval as a period, thereby obtaining multiple window pictures.

[0109] Correspondingly, the step of extracting features from the window image to obtain window feature information includes:

[0110] Step S20': when the number of the plurality of window images is greater than a preset detection threshold, feature extraction is performed on the plurality of window images to obtain window feature information.

[0111] It should be noted that there are many advertisements nowadays, and when students use the terminal, it is inevitable that the current display window will change due to pop-up advertisements. If only one picture is used to judge whether the current display window is a game window, misjudgment may occur. Therefore, the current display window can be periodically captured at a preset capture interval, and then the number of continuously captured pictures can be judged. When the number of continuously captured window pictures is greater than the preset detection threshold, it can be determined that the current display window has been running for a long enough time after the change. At this time, feature extraction is performed on the captured multiple window pictures to obtain window feature information, and then the current display window is judged based on the window feature information to see whether the game interface is displayed. This can avoid misjudgment and misdetection caused by pop-up advertisements and other phenomena, and can improve the accuracy of game recognition. The preset detection threshold can be set in advance by the administrator of the game recognition device.

[0112] In actual use, since there are multiple window images collected, if feature extraction is performed directly, multiple image features are also obtained. In order to facilitate matching, the step of extracting features from the multiple window images and obtaining window feature information in this embodiment may include:

[0113] The window images are subjected to feature extraction through a preset feature extraction model to obtain image features corresponding to each window image; the image features of each window image are fused to obtain window feature information.

[0114] In actual use, the image features of each window image are fused to obtain the window feature information. The image features of each window image can be fused by weighted averaging to obtain the window feature information, or other similar methods can be used for fusion, which is not limited in this embodiment.

[0115] Furthermore, since the preset time interval may be adjusted by the administrator of the game recognition device, if the preset detection threshold is set to a fixed value, after the preset time interval is modified, in order to ensure the use effect, the preset detection threshold needs to be modified as well, which is very inconvenient. In order to overcome the above defects, before step S20' in this embodiment, the following may also be included:

[0116] The preset detection startup duration is obtained, and the collection amount per second is determined according to the preset collection interval; and the preset detection threshold is determined according to the preset detection startup duration and the collection amount per second.

[0117] It should be noted that the preset detection start time can be the time preset by the administrator of the game recognition device to determine whether game recognition is required. If the duration of the current display window being continuously displayed exceeds the preset detection start time, it means that it can be determined that the current display window has been running for a long enough time after the change, and it can be determined that the change of the current display window is not caused by an advertisement pop-up window, and game recognition can be performed. The acquisition amount per second can be the number of images that can be acquired per second.

[0118] In actual use, determining the amount collected per second according to the preset collection interval may be done by dividing 1 by the preset collection interval, and using the obtained value as the amount collected per second. Determining the preset detection threshold according to the preset detection start duration and the amount collected per second may be done by multiplying the preset detection start duration and the amount collected per second, and using the product as the preset detection threshold.

[0119] It is understandable that the preset detection threshold is determined based on the amount of data collected per second and the preset detection start time. When the administrator modifies the preset time interval, the preset detection threshold will change accordingly without the need for synchronous modification.

[0120] This embodiment obtains a preset collection interval when detecting a change in the current display window; collects pictures of the current display window according to the preset collection interval to obtain multiple window pictures; and extracts features of the multiple window pictures when the number of the multiple window pictures is greater than the preset detection threshold to obtain window feature information. Since feature extraction is performed only when the number of continuously collected window pictures is greater than the preset detection threshold, window feature information is obtained and subsequent recognition steps are performed, false alarms and false detections caused by pop-up advertisements and the like can be avoided, thereby improving the accuracy of game recognition.

[0121] refer to Figure 4 , Figure 4 FIG. 4 is a flow chart of a third embodiment of a game identification method according to the present invention.

[0122] Based on the first embodiment above, after step S40, the game identification method of this embodiment further includes:

[0123] Step S50: When the current display window displays a game interface, obtain a preset game available time period.

[0124] It should be noted that the preset game-available time period may be a time period during which games are allowed to be played, and the preset game-available time period may be pre-set by an administrator of the game recognition device or a parent of a student.

[0125] Furthermore, in actual scenarios, parents may have different restrictions on students on weekdays, weekends, and holidays. In order to meet the actual needs of parents, step S50 in this embodiment may include:

[0126] When the current display window is a game interface, a game use strategy is obtained, and a date type of the day is obtained; and a preset game available time period is determined according to the date type of the day and the game use strategy.

[0127] It should be noted that the date type can be divided into three types according to actual conditions: working days, rest days and holidays. The date type of the day can be the date type of today. The game use policy can include the game available time periods corresponding to various date types. The game use policy can be pre-set by the student's parents, for example: playing games is allowed from 16:00 to 18:00 on working days, from 12:00 to 18:00 on rest days, and from 10:00 to 18:00 on holidays.

[0128] It is understandable that determining the preset game available time period according to the date type of the day and the game use policy may be to search the game use policy for the time period during which games are allowed to be played on the day according to the date type of the day, thereby obtaining the preset game available time period.

[0129] Step S60: If the current time is not within the preset game available time period, obtain a time period prompt message.

[0130] It is understandable that if the current moment is no longer within the preset game available time period, it means that the game is prohibited at the current moment, and a time period prompt message can be obtained at this time. Obtaining the time period prompt message can be to search for the time period prompt message in a preset message table, and the preset message table can include multiple different types of prompt messages, which can be pre-set by the administrator of the game recognition device.

[0131] Step S70: blocking the process corresponding to the current display window and displaying the time period prompt message.

[0132] It should be noted that blocking the process corresponding to the current display window may be to search for the program process corresponding to the current display window and terminate the program process. Displaying the time period prompt message may be to display the time period prompt message on a display screen of a game recognition device, or to send the time period prompt message to a terminal used by a student for display.

[0133] Furthermore, even during the game use period, parents generally do not want their students to play games all the time. In order to meet the actual needs of parents, after step S50 in this embodiment, the following steps may be further included:

[0134] If the current moment is within the preset game available time period, obtain the cumulative duration of historical games; compare the cumulative duration of historical games with the preset available total duration; when the cumulative duration of historical games is greater than or equal to the preset available total duration, obtain a duration prompt message; block the process corresponding to the current display window, and display the duration prompt message.

[0135] It should be noted that the historical game cumulative time can be the recorded time that the student has played the game today. The preset total available time can be the time that the parent pre-sets that the student is allowed to play the game today.

[0136] It is understandable that if the cumulative duration of historical games is greater than or equal to the preset total available time, it means that the student's game time today has reached or exceeded the time allowed by the parents, and the student should be prohibited from playing games at this time. Therefore, the time period prompt message can be found in the preset message table, the process corresponding to the current display window can be blocked, and the time prompt message can be displayed.

[0137] In actual use, if the cumulative duration of historical games is less than the preset total available duration, it means that the student's game time today has not reached or exceeded the duration allowed by the parents. At this time, the timing can be started, and the cumulative duration of historical games can be updated according to the timing, and then the step of comparing the cumulative duration of historical games with the preset total available duration is returned until the cumulative duration of historical games is greater than or equal to the preset total available duration.

[0138] In a specific implementation, if the cumulative duration of historical games is continuously updated, it may affect the performance of the terminal. To avoid this situation, when the cumulative duration of historical games is less than the preset total available duration, the preset total available duration can be used to subtract the cumulative duration of historical games to obtain the remaining available duration, and then the timing can be started. When the timing reaches the remaining available duration, the cumulative duration of historical games is updated according to the timing value, and the step of comparing the cumulative duration of historical games with the preset total available duration is returned.

[0139] It is understandable that if the current display interface changes during the timing process, the accumulated duration of the historical game can be directly updated according to the timing value.

[0140] This embodiment obtains the preset game available time period when the current display window displays a game interface; obtains a time period prompt message if the current moment is not within the preset game available time period; blocks the process corresponding to the current display window, and displays the time period prompt message. Since the preset game available time period is obtained when it is identified that the current display window displays a game interface, and it is determined whether the current moment is within the preset game available time period, if the current moment is not within the preset game available time period, that is, when playing games is prohibited at the current moment, the process corresponding to the current display window is automatically blocked, and the corresponding time period prompt message is displayed, thereby realizing whether to allow students to play games according to the settings of parents, and meeting the monitoring needs of parents for game software.

[0141] In addition, an embodiment of the present invention further proposes a storage medium, on which a game identification program is stored. When the game identification program is executed by a processor, the steps of the game identification method described above are implemented.

[0142] Reference Figure 5 , Figure 5 It is a structural block diagram of the first embodiment of the game recognition device of the present invention.

[0143] like Figure 5 As shown, the game recognition device proposed in the embodiment of the present invention includes:

[0144] The picture acquisition module 10 is used to acquire a picture of the current display window when a change in the current display window is detected, so as to obtain a window picture;

[0145] A feature extraction module 20 is used to extract features from the window image to obtain window feature information;

[0146] A feature matching module 30 is used to match the window feature information with each game feature information in a preset game feature library to obtain a feature matching result;

[0147] The result determination module 40 is used to determine whether the current display window displays a game interface according to the feature matching result.

[0148] This embodiment acquires a window image by collecting images of the current display window when a change in the current display window is detected; extracts features from the window image to acquire window feature information; matches the window feature information with each game feature information in a preset game feature library to acquire a feature matching result; and determines whether the current display window displays a game interface based on the feature matching result. Since the window image of the current display window is collected when the current display interface changes, the window feature information corresponding to the window image is matched with the game feature information in the preset game feature library, and whether the current display window displays a game interface is determined based on the feature matching result, detection can be performed when the focus window of the terminal changes, so that students can quickly identify when they switch to the game window to play games.

[0149] Furthermore, the image acquisition module 10 is also used to obtain process object information corresponding to the current display window when a change in the current display window is detected; determine the window display area corresponding to the current display window according to the process object information; and perform image acquisition according to the window display area to obtain a window image.

[0150] Furthermore, the image acquisition module 10 is also used to obtain a preset game classification table, determine a number of game categories according to the preset game classification table; obtain sample images corresponding to each game category, and perform feature extraction on the sample images to obtain game feature information corresponding to each game category; and construct the preset game feature library according to the game feature information.

[0151] Furthermore, the feature matching module 30 is also used to determine the feature similarity between the window feature information and each game feature information in the preset game feature library through a preset similarity algorithm; and construct a feature matching result based on the feature similarity and each game feature information in the preset game feature library.

[0152] Furthermore, the result determination module 40 is also used to determine the feature similarity between the window feature information and each game feature information in a preset game feature library according to the feature matching result; compare the feature similarity with a preset similarity threshold; and when there is a feature similarity greater than the preset similarity threshold, determine that the current display window displays a game interface.

[0153] Furthermore, the picture acquisition module 10 is also used to obtain a preset acquisition interval when a change in the current display window is detected; and to acquire pictures of the current display window according to the preset acquisition interval to obtain multiple window pictures;

[0154] The feature extraction module 20 is further configured to perform feature extraction on the multiple window images to obtain window feature information when the number of the multiple window images is greater than a preset detection threshold.

[0155] Furthermore, the feature extraction module 20 is also used to obtain a preset detection start-up duration, and determine the collection amount per second according to the preset collection interval; and determine the preset detection threshold according to the preset detection start-up duration and the collection amount per second.

[0156] Furthermore, the feature extraction module 20 is also used to extract features of the window images through a preset feature extraction model to obtain image features corresponding to each window image; and fuse the image features of each window image to obtain window feature information.

[0157] Furthermore, the result determination module 40 is also used to obtain a preset game available time period when the current display window displays a game interface; if the current time is not within the preset game available time period, obtain a time period prompt message; block the process corresponding to the current display window, and display the time period prompt message.

[0158] Furthermore, the result determination module 40 is also used to obtain the cumulative duration of historical games if the current moment is within the preset game available time period; compare the cumulative duration of historical games with the preset available total duration; obtain a duration prompt message when the cumulative duration of historical games is greater than or equal to the preset available total duration; block the process corresponding to the current display window, and display the duration prompt message.

[0159] Furthermore, the result determination module 40 is also used to obtain a game use strategy and a date type of the day when the current display window is a game interface; and determine a preset game available time period according to the date type of the day and the game use strategy.

[0160] Furthermore, the result determination module 40 is also used to update the cumulative duration of the historical games when the cumulative duration of the historical games is less than the preset total available duration, and return to the step of comparing the cumulative duration of the historical games with the preset total available duration.

[0161] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0162] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0163] In addition, for technical details not fully described in this embodiment, reference can be made to the game identification method provided in any embodiment of the present invention, and will not be repeated here.

[0164] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0165] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0167] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A game identification method, characterized in that: The game identification method comprises the following steps: When a change in the current display window is detected, a picture is collected for the current display window to obtain a window picture, wherein the current display window is a focus window in the terminal; Extracting features from the window image to obtain window feature information; Matching the window feature information with each game feature information in a preset game feature library to obtain a feature matching result; Determine whether the current display window displays a game interface according to the feature matching result; Wherein, when detecting that the current display window changes, the step of collecting pictures of the current display window to obtain the window picture includes: When a change in the current display window is detected, obtaining the program process corresponding to the current display window; Find the process object corresponding to the program process, and read the process object information from the process object; Determine the window display area corresponding to the current display window according to the process object information; Capturing pictures of the window display area to obtain window pictures; The step of matching the window feature information with each game feature information in a preset game feature library to obtain a feature matching result includes: Determine the feature similarity between the window feature information and each game feature information in a preset game feature library by using a preset similarity algorithm, wherein the preset similarity algorithm is a mean hash algorithm, a perceptual hash algorithm or a difference hash algorithm; A feature matching result is constructed according to the feature similarity and each game feature information in the preset game feature library.

2. The game identification method according to claim 1, characterized in that: Before the step of collecting pictures of the current display window and obtaining the window pictures when the current display window is detected to have changed, the step further includes: Obtaining a preset game classification table, and determining a number of game categories according to the preset game classification table; Obtain sample images corresponding to each game category, and perform feature extraction on the sample images to obtain game feature information corresponding to each game category; The preset game feature library is constructed according to the game feature information.

3. The game identification method according to claim 1, characterized in that: The step of determining whether the current display window displays a game interface according to the feature matching result includes: Determine, according to the feature matching result, the feature similarity between the window feature information and each piece of game feature information in a preset game feature library; Comparing the feature similarity with a preset similarity threshold; When there is a feature similarity greater than a preset similarity threshold, it is determined that the current display window displays a game interface.

4. The game identification method according to claim 1, characterized in that: The step of collecting pictures of the current display window to obtain the window picture when a change in the current display window is detected includes: When a change in the current display window is detected, a preset collection interval is obtained; Collecting pictures of the current display window according to the preset collection interval to obtain multiple window pictures; Correspondingly, the step of extracting features from the window image to obtain window feature information includes: When the number of the plurality of window images is greater than a preset detection threshold, feature extraction is performed on the plurality of window images to obtain window feature information.

5. The game identification method according to claim 4, characterized in that: Before the step of extracting features from the window images to obtain window feature information when the number of the plurality of window images is greater than a preset detection threshold, the step further includes: Obtaining a preset detection start time, and determining the amount collected per second according to the preset collection interval; The preset detection threshold is determined according to the preset detection start time and the collection amount per second.

6. The game identification method according to claim 4, characterized in that: The step of extracting features from the plurality of window images to obtain window feature information comprises: Perform feature extraction on the window images through a preset feature extraction model to obtain image features corresponding to each window image; The image features of each window image are fused to obtain window feature information.

7. The game identification method according to any one of claims 1 to 6, characterized in that: After the step of determining whether the current display window displays a game interface according to the feature matching result, the method further includes: When the current display window displays a game interface, obtaining a preset game available time period; If the current time is not within the preset game available time period, obtain a time period prompt message; The process corresponding to the current display window is blocked, and the time period prompt message is displayed.

8. The game identification method according to claim 7, characterized in that: When the current display window displays a game interface, after the step of obtaining a preset game available time period, the method further includes: If the current time is within the preset game available time period, the accumulated time of historical games is obtained; Compare the accumulated duration of the historical games with the preset total available duration; When the accumulated duration of the historical game is greater than or equal to the preset total available duration, obtaining a duration prompt message; The process corresponding to the current display window is blocked, and the duration prompt message is displayed.

9. The game identification method according to claim 8, characterized in that: When the current display window displays a game interface, the step of obtaining a preset game available time period includes: When the current display window is a game interface, obtaining a game usage strategy and obtaining a date type of the day; The preset game available time period is determined according to the date type of the day and the game use strategy.

10. The game identification method according to claim 8, characterized in that: After the step of comparing the accumulated duration of the historical games with the preset total available duration, the method further includes: When the accumulated duration of the historical games is less than the preset total available duration, the accumulated duration of the historical games is updated, and the process returns to the step of comparing the accumulated duration of the historical games with the preset total available duration.

11. A game recognition device, characterized in that: The game recognition device includes the following modules: A picture acquisition module is used to acquire a picture of the current display window when a change is detected in the current display window, and obtain a window picture. The current display window is a focus window in the terminal; A feature extraction module is used to extract features from the window image to obtain window feature information; A feature matching module, used to match the window feature information with each game feature information in a preset game feature library to obtain a feature matching result; A result determination module, used to determine whether the current display window displays a game interface according to the feature matching result; The image acquisition module is further used to obtain the program process corresponding to the current display window when detecting that the current display window changes; Find the process object corresponding to the program process, and read the process object information from the process object; determine the window display area corresponding to the current display window according to the process object information; collect pictures of the window display area to obtain a window picture; The feature matching module is also used to determine the feature similarity between the window feature information and each game feature information in the preset game feature library through a preset similarity algorithm, and the preset similarity algorithm is a mean hash algorithm, a perceptual hash algorithm or a difference hash algorithm; and construct a feature matching result based on the feature similarity and each game feature information in the preset game feature library.

12. The game recognition device according to claim 11, characterized in that: The image acquisition module is also used to obtain a preset game classification table, determine a number of game categories according to the preset game classification table; obtain sample images corresponding to each game category, and perform feature extraction on the sample images to obtain game feature information corresponding to each game category; and construct a preset game feature library according to the game feature information.

13. The game recognition device according to claim 11, characterized in that: The result determination module is further used to determine the feature similarity corresponding to the window feature information and each game feature information in a preset game feature library according to the feature matching result; compare the feature similarity with a preset similarity threshold; and when there is a feature similarity greater than the preset similarity threshold, determine that the current display window displays a game interface.

14. The game recognition device according to claim 11, characterized in that: The picture acquisition module is further used to obtain a preset acquisition interval when a change in the current display window is detected; and to acquire pictures of the current display window according to the preset acquisition interval to obtain multiple window pictures; The feature extraction module is further used to perform feature extraction on the multiple window images to obtain window feature information when the number of the multiple window images is greater than a preset detection threshold.

15. A game recognition device, characterized in that: The game identification device comprises: a processor, a memory, and a game identification program stored in the memory and executable on the processor. When the game identification program is executed by the processor, the steps of the game identification method as described in any one of claims 1 to 10 are implemented.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a game identification program, which, when executed, implements the steps of the game identification method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Game monitoring method and device

    CN109189648A

  • Game-based duration control method, device and equipment

    CN111773734A