CN111821693A - Perspective plug-in detection method, device, equipment and storage medium for game - Google Patents

Perspective plug-in detection method, device, equipment and storage medium for game Download PDF

Info

Publication number
CN111821693A
CN111821693A CN202010727849.4A CN202010727849A CN111821693A CN 111821693 A CN111821693 A CN 111821693A CN 202010727849 A CN202010727849 A CN 202010727849A CN 111821693 A CN111821693 A CN 111821693A
Authority
CN
China
Prior art keywords
game
image
preset
perspective
plug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010727849.4A
Other languages
Chinese (zh)
Inventor
戚家恒
沈乔治
冯潞潞
张世泽
王剑宇
严晗
林建实
陶建容
范长杰
胡志鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010727849.4A priority Critical patent/CN111821693A/en
Publication of CN111821693A publication Critical patent/CN111821693A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/75Enforcing rules, e.g. detecting foul play or generating lists of cheating players

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Image Analysis (AREA)

Abstract

The application provides a perspective plug-in detection method, a perspective plug-in detection device, perspective plug-in detection equipment and a storage medium for games, and relates to the technical field of games. The method comprises the following steps: acquiring a game image of a game client, wherein the game image is a client screenshot of a game role corresponding to the game client when a killing operation is executed; and performing perspective plug-in detection according to the game image to determine whether the game client uses the perspective plug-in. Compared with the prior art, the problem that the game experience of other players is influenced due to external missing judgment is avoided.

Description

Perspective plug-in detection method, device, equipment and storage medium for game
Technical Field
The application relates to the technical field of games, in particular to a perspective plug-in detection method, device, equipment and storage medium for games.
Background
With the development of games, more and more types of games are launched into the lives of people, people generally select interesting games and leisure and entertainment in spare time, wherein a First-person shooter game (FPS) is widely loved by people in recent years.
Since FPS games are very sensitive to computation latency, game developers usually transfer most of the data to the client, which completes the computation and informs the server of the result. However, the plug-in development is very easy, and even if only one plug-in player appears in a game, the game experience of all people is greatly influenced. Therefore, plug-in detection of such games becomes important, and in the prior art, process detection is generally performed, that is, a client records various features of a plug-in process and feature codes generated by memory code segments, and is prohibited when processes with the same features are found in the game running process.
However, the plug-in process of the detection method changes along with the update of the plug-in, and the detection method for the plug-in which is not known is often omitted, so that the possibility of plug-in missing judgment is caused, and the game experience of other players is still influenced.
Disclosure of Invention
The present application aims to provide a perspective plug-in detection method, apparatus, device and storage medium for a game, so as to solve the problem that the plug-in missing in the prior art causes the influence on the game experience of other players.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a perspective cheating-in detection method for a game, where the method includes:
acquiring a game image of a game client, wherein the game image is a client screenshot of a game role corresponding to the game client when a killing operation is executed;
and performing perspective plug-in detection according to the game image to determine whether the game client uses the perspective plug-in.
Optionally, the obtaining the game image of the game client includes:
acquiring information of at least one game role to be detected;
and acquiring the game image of the game role from a preset first storage position according to the information of the game role.
Optionally, the acquiring, according to the information of the game character, the game image of the game character from a preset first storage location includes:
acquiring an image storage address of the game role from a preset second storage position according to the information of the game role; the second storage position stores information of the game role and an image storage address of the game role;
and acquiring the game image from the first storage position according to the image storage address of the game character.
Optionally, the information of the game character includes: the identification information of the game role and the identification information of the scene map of the game role in the game scene.
Optionally, the game image is a client screenshot of the game character when a killing operation is performed for the first time in each game in the scene map.
Optionally, the performing perspective plug-in detection on the game character according to the game image to determine whether the game client uses a perspective plug-in includes:
determining the similarity between the game image and a preset perspective plug-in panel image;
if the similarity is greater than or equal to the preset similarity, determining that the game role is hung externally by using perspective;
and if the similarity is smaller than the preset similarity, determining that the game role does not use the perspective plug-in.
Optionally, the determining the similarity between the game image and a preset perspective plug-in panel image includes:
zooming the game image into a scene image with a preset size, and determining a hash value of the scene image with the preset size;
comparing the hash value of the scene image with the preset size with the Hamming distance between the preset hash value and the hash value; the preset hash value is calculated by adopting the preset perspective plug-in panel image;
if the Hamming distance is smaller than or equal to a first preset distance threshold, determining that the similarity is larger than or equal to the preset similarity;
and if the Hamming distance is greater than the first preset distance threshold, determining that the similarity is less than the preset similarity.
Optionally, before comparing the hash value of the scene image with the preset size and the hamming distance between the preset hash value and the hash value, the method further includes:
determining a fixed detection area in the preset perspective plug-in panel image;
calculating a first hash value of the fixed detection area and second hash values of a plurality of areas to be detected in the preset perspective panel image;
and determining the preset hash value according to the first hash value and the second hash values of the plurality of areas to be detected.
Optionally, the determining the preset hash value according to the first hash value and the second hash values of the multiple regions to be detected includes:
calculating the Hamming distance between the first Hash value and a second Hash value of the area to be detected;
determining the number of hash values of which the Hamming distances are smaller than or equal to a preset third distance threshold in the areas to be detected, of which the Hamming distances to the first hash values are smaller than or equal to the preset second distance threshold, in the areas to be detected;
and determining the hash value with the largest number as the preset hash value.
Optionally, the performing perspective plug-in detection on the game character according to the game image to determine whether the game client uses a perspective plug-in includes:
carrying out binarization processing on the image of each color channel in the game image;
searching a rectangular frame meeting a preset condition from the image of the color channel after the binarization processing;
if the rectangular frame meeting the preset condition is searched, determining that the game role is hung externally by using perspective;
and if the rectangular frame meeting the preset condition is not searched, determining that the game role does not use the perspective plug-in.
Optionally, the rectangular frame of the preset condition is: the height is larger than the width, the mean value of the pixel points in the rectangular frame is smaller than or equal to a first pixel threshold value, the mean value of the pixel points on the rectangular frame is larger than or equal to a second pixel threshold value, and the mean value of the pixel points on the rectangular frame is smaller than or equal to the first pixel threshold value after the preset pixel range is expanded outwards.
Optionally, the performing perspective plug-in detection on the game character according to the game image to determine whether the game client uses a perspective plug-in includes:
detecting the game image by adopting a preset network model, and determining whether the game image comprises a perspective plug-in element;
and determining whether the game client uses the perspective plug-in according to the detection result.
Optionally, the detecting the game image by using a preset network model, and determining whether the game image includes a perspective plug-in element includes:
cutting the game image to obtain a plurality of sub-images;
detecting the subimages according to the preset network model, and determining whether the subimages contain perspective plug-in elements;
if at least two sub-images in the game image contain perspective plug-in elements, determining that the game image contains the perspective plug-in elements;
and if the game image has less than or equal to one sub-image containing the perspective plug-in element, determining that the game image does not contain the perspective plug-in element.
Optionally, the detecting the sub-image according to the preset network model to determine whether the sub-image includes a perspective plug-in element includes:
coding the subimages according to a coder in the preset network model to obtain real characteristic vectors corresponding to the subimages;
decoding the real feature vector according to a decoder in the preset network model to obtain a pseudo image corresponding to the sub-image;
and determining whether the sub-image contains a perspective plug-in element or not according to the pixel difference value between the sub-image and the corresponding pseudo-image.
Optionally, the determining whether the sub-image includes a perspective plug-in element according to a pixel difference between the sub-image and the corresponding pseudo-image includes:
generating a difference image according to the pixel difference between the sub-image and the corresponding pseudo-image;
and determining whether the sub-image contains a perspective plug-in element or not according to the difference map.
Optionally, the determining whether the sub-image includes a perspective plug-in element according to a pixel difference between the sub-image and the corresponding pseudo-image includes:
comparing the pixel difference between the sub-image and the corresponding pseudo-image with a preset threshold;
if the pixel difference value is larger than or equal to the preset threshold value, determining that the sub-image contains a perspective plug-in element;
and if the pixel difference value is smaller than the preset threshold value, determining that the sub-image does not contain a perspective plug-in element.
Optionally, the detecting the game image by using a preset network model, and determining whether the game image includes a perspective plug-in element includes:
inputting the game image into the preset network model to obtain probability information of whether the game image comprises the perspective plug-in element;
and determining whether the game image comprises a perspective plug-in element according to the probability information.
Optionally, the method further comprises:
information of a game character determined to use the perspective plug-in and a game image on which the determination to use the perspective plug-in is based are stored.
In a second aspect, another embodiment of the present application provides a perspective hang-up detection apparatus for a game, the apparatus including: an acquisition module and a detection module, wherein:
the acquisition module is used for acquiring a game image of a game client, wherein the game image is a client screenshot of a game role corresponding to the game client when a killing operation is executed;
the detection module is used for carrying out perspective plug-in detection according to the game image so as to determine whether the game client uses the perspective plug-in.
Optionally, the obtaining module is specifically configured to obtain information of at least one game character to be detected; and acquiring the game image of the game role from a preset first storage position according to the information of the game role.
Optionally, the obtaining module is specifically configured to obtain, according to the information of the game character, an image storage address of the game character from a preset second storage location; the second storage position stores information of the game role and an image storage address of the game role;
the obtaining module is specifically configured to obtain the game image from the first storage location according to the image storage address of the game character.
Optionally, the apparatus further comprises: the determining module is used for determining the similarity between the game image and a preset perspective plug-in panel image;
the determining module is specifically configured to determine that the game role uses the perspective plug-in if the similarity is greater than or equal to a preset similarity;
the determining module is specifically configured to determine that the game character does not use the perspective plug-in if the similarity is smaller than the preset similarity.
Optionally, the apparatus further comprises: a comparison module, wherein:
the determining module is specifically configured to scale the game image into a scene image of a preset size, and determine a hash value of the scene image of the preset size;
the comparison module is used for comparing the hash value of the scene image with the preset size with the Hamming distance between the preset hash value and the hash value; the preset hash value is calculated by adopting the preset perspective plug-in panel image;
the determining module is specifically configured to determine that the similarity is greater than or equal to a preset similarity if the hamming distance is less than or equal to a first preset distance threshold;
the determining module is specifically configured to determine that the similarity is smaller than the preset similarity if the hamming distance is greater than the first preset distance threshold.
Optionally, the apparatus further comprises: a computing module, wherein:
the determining module is specifically used for determining a fixed detection area in the preset perspective plug-in panel image;
the calculation module is used for calculating a first hash value of the fixed detection area and second hash values of a plurality of areas to be detected in the preset perspective panel image;
the determining module is specifically configured to determine the preset hash value according to the first hash value and the second hash values of the multiple regions to be detected.
Optionally, the calculating module is specifically configured to calculate a hamming distance between the first hash value and a second hash value of the area to be detected;
the determining module is specifically configured to determine the number of hash values of which hamming distances are smaller than or equal to a preset third distance threshold in the to-be-detected area in which hamming distances from the to-be-detected area to the first hash values are smaller than or equal to the preset second distance threshold;
the determining module is specifically configured to determine the hash value with the largest number as the preset hash value.
Optionally, the apparatus further comprises: a processing module and a search module, wherein:
the processing module is used for carrying out binarization processing on the image of each color channel in the game image;
the searching module is used for searching a rectangular frame meeting a preset condition from the image of the color channel after the binarization processing;
the determining module is specifically used for determining that the game role uses the perspective plug-in if the rectangular frame meeting the preset condition is searched;
the determining module is specifically configured to determine that the game character does not use the perspective plug-in if the rectangular frame meeting the preset condition is not searched.
Optionally, the determining module is specifically configured to detect the game image by using a preset network model, and determine whether the game image includes a perspective plug-in element;
the determining module is specifically configured to determine whether the game client uses a perspective plug-in according to a detection result.
Optionally, the apparatus further comprises: a cropping module, wherein:
the cutting module is used for cutting the game image to obtain a plurality of sub-images;
the determining module is specifically configured to detect the sub-image according to the preset network model, and determine whether the sub-image includes a perspective plug-in element;
the determining module is specifically configured to determine that the game image includes a perspective plug-in element if at least two sub-images include the perspective plug-in element in the game image;
the determining module is specifically configured to determine that the game image does not include a perspective plug-in element if less than or equal to one of the sub-images includes the perspective plug-in element.
Optionally, the apparatus further comprises: an encoding module and a decoding module, wherein:
the encoding module is used for encoding the subimages according to an encoder in the preset network model to obtain real characteristic vectors corresponding to the subimages;
the decoding module is used for decoding the real feature vector according to a decoder in the preset network model to obtain a pseudo image corresponding to the sub-image;
the determining module is specifically configured to determine whether the sub-image includes a perspective plug-in element according to a pixel difference between the sub-image and the corresponding pseudo-image.
Optionally, the apparatus further comprises: the generating module is used for generating a difference value graph according to the pixel difference value between the sub-image and the corresponding pseudo-image;
the determining module is specifically configured to determine whether the sub-image includes a perspective plug-in element according to the difference map.
Optionally, the comparing module is specifically configured to compare a pixel difference between the sub-image and the corresponding pseudo-image with a preset threshold;
the determining module is specifically configured to determine that the sub-image includes a perspective plug-in element if the pixel difference value is greater than or equal to the preset threshold;
the determining module is specifically configured to determine that the sub-image does not include a perspective plug-in element if the pixel difference is smaller than the preset threshold.
Optionally, the determining module is specifically configured to input the game image into the preset network model, so as to obtain probability information of whether the game image includes a perspective plug-in element;
the determining module is specifically configured to determine whether the game image includes a perspective plug-in element according to the probability information.
Optionally, the apparatus further comprises: and the storage module is used for storing the information of the game role determined to use the perspective plug-in and the game image based on the determined use of the perspective plug-in.
In a third aspect, another embodiment of the present application provides a perspective cheating-detecting device for a game, including: the system comprises a processor, a storage medium and a bus, wherein the storage medium stores machine readable instructions executable by the processor, when a perspective plug-in detection device of a game runs, the processor and the storage medium communicate through the bus, and the processor executes the machine readable instructions to execute the steps of the method according to any one of the first aspect.
In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the method according to any one of the above first aspects.
The beneficial effect of this application is: by adopting the perspective plug-in detection method for the game, whether the game client uses the perspective plug-in is determined by acquiring the game image of the game client and detecting whether the game client uses the perspective plug-in according to the acquired game image, the mode of directly determining whether the game client uses the perspective plug-in through the game image is wider in coverage of plug-in detection, higher in recall rate and capable of avoiding the problem that the game experience of other players is influenced due to the fact that the plug-in is missed to be judged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flow chart illustrating a perspective plug-in detection method for a game according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 4 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 5 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 6 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 7 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 8 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 9 is a schematic flowchart illustrating a perspective cheating-in detection method for a game according to another embodiment of the present application;
FIG. 10 is a schematic structural diagram of a perspective plug-in detection device for a game according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a perspective plug-in detection device for a game according to another embodiment of the present application;
fig. 12 is a schematic structural diagram of a perspective plug-in detection device of a game according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Additionally, the flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In order to enable the technical personnel in the field to use the content of the application, the method can be applied to the perspective plug-in detection in various game scenes, namely, the current game image is firstly acquired, and then the detection result is acquired by combining the detection method provided by the application. Optionally, a specific application scenario is incorporated as follows: the following embodiments are given by taking a game perspective plug-in detection scene as an example. The game to which the present application relates may be: the Game server of the First-person shooter Game (FPS), the Third-person shooter Game (TPS), or the Massively Multiplayer Online Role Playing Game (MMORPG), may also be other types of games. It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
The perspective hanging is a plug-in capable of reading a game memory and marking information such as characters, props, carriers and the like outside all views of the current game character on a screen.
It is to be noted that, before the present application is proposed, an existing perspective plug-in detection method for a game is generally based on a process for checking, a game client records various features of a plug-in process and features generated by memory code segments, and in a game running process, if a game role with the same features is found, a blocking process is performed.
In order to solve the problems in the prior art, the application provides a perspective plug-in detection method for a game, which can detect and judge whether each game client uses the perspective plug-in according to a game image by a game image corresponding to a game role after information of the game role to be detected is acquired, so that automatic detection of the perspective plug-in is realized.
The perspective plug-in detection method for the game provided by the embodiment of the present application is explained below with reference to a plurality of specific application examples. Fig. 1 is a schematic flow diagram of a perspective plug-in detection method for a game according to an embodiment of the present application, where an execution subject of the method is a service server, and as shown in fig. 1, the method includes:
s101: and acquiring a game image of the game client.
The game image is a client screenshot of a game role corresponding to the game client when the killing operation is executed.
For example, in an embodiment of the present application, when a game character starts each game, by mounting a script on a game character client, the game character immediately performs a screenshot operation when performing a killing operation on other game characters in a game scene, where the screenshot operation is a game image, and the killing operation may be, for example, a game killing operation.
S102: and performing perspective plug-in detection according to the game image to determine whether the game client uses the perspective plug-in.
Because the perspective plug-in can read the game memory and directly mark the information of the characters, props, carriers and the like outside the view of all the current game characters on the game scene displayed by the client, the method provided by the application can determine whether the game client corresponding to the game characters uses the perspective plug-in or not by directly detecting whether the marks are included in the current game scene or not after the game image corresponding to each game character is obtained.
By adopting the perspective plug-in detection method for the game, whether the game client uses the perspective plug-in is determined by acquiring the game image of the game client and detecting whether the game client uses the perspective plug-in according to the acquired game image, the mode of directly determining whether the game client uses the perspective plug-in through the game image is wider in coverage of plug-in detection, higher in recall rate and capable of avoiding the problem that the game experience of other players is influenced due to the fact that the plug-in is missed to be judged.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a perspective plug-in detection method for a game, and an implementation process of how to obtain a game image of a game client in the foregoing method is described with reference to the accompanying drawings as follows. Fig. 2 is a schematic flow chart of a perspective plug-in detection method for a game according to another embodiment of the present application, and as shown in fig. 2, S101 may include:
s103: and acquiring information of at least one game character to be detected.
In an embodiment of the application, first, a to-be-detected list corresponding to a current detection scheme may be determined according to a preset detection scheme, and then, according to the to-be-detected list, information of at least one game character is acquired from a preset storage location, such as a database, a memory, a storage device, or a server, where the information of the game character may include, for example, one or more of the following: the embodiment is only an exemplary description, and the content included in the information of the specific game character may be flexibly adjusted according to the user requirement, and is not limited to the content provided by the embodiment.
S104: and acquiring the game image of the game character from a preset first storage position according to the information of the game character.
The game image is a client screenshot of the game role in killing operation.
For example, in an embodiment of the present application, when a game character starts each game, by mounting a script on a game character client, the game character immediately performs a screenshot operation when performing a killing operation on other game characters in a game scene, and stores the acquired client screenshot in a preset first storage location. The killing operation may be, for example, a game killing operation.
The first storage location stores at least one game image of a game character and information of the game character, so that the game image of the game character can be acquired from the preset first storage location based on the information of the game character, and the first storage location can be, for example, a preset picture storage server, such as a picture storage server supporting a preset network operating system.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a method for detecting a perspective plug-in of a game, where an implementation process of determining whether a game client uses the perspective plug-in the foregoing method is described below with reference to the accompanying drawings. Fig. 3 is a schematic flow chart of a perspective plug-in detection method for a game according to another embodiment of the present application, and as shown in fig. 3, S104 may include:
s105: and acquiring the image storage address of the game role from a preset second storage position according to the information of the game role.
Optionally, the first storage location and the second storage location may be the same location or different locations, in an embodiment of the application, the first storage location may be a picture storage server, and the second storage location may be a relational database MySQL database, but specific forms of the first storage location and the second storage location may be designed according to user needs, and are not limited to the embodiments described above.
The second storage position can store information of at least one game character and an image storage address of the game character. Therefore, based on the information of the game character, the image storage address of the game character can be obtained from the preset second storage location, and the second storage location can be, for example, a preset file storage server such as a File Transfer Protocol (FTP) server, or a preset database such as a MySQL database.
The image storage address may be used to indicate a storage address of the game image of the game character in the first storage location.
Optionally, in an embodiment of the present application, the information of the game character may include: identification information of the game role, and identification information of a scene map of the game role in the game scene.
In one embodiment of the present application, the name of the game image may be a file name formed by splicing ID information of the game character, ID information of a server where the game character is currently located, and an MD5 value of the game image; the second storage location stores information of the game character and an image storage address of the game character, wherein the information of the game character may include: ID information of a game character, ID information of a server where the game character is currently located, ID information of a scene map where the game character is currently located, current system time information of the game character, and the like.
S106: and acquiring the game image from the first storage position according to the image storage address of the game character.
In an embodiment of the present application, the obtained game images may be stored in a memory file, and since the obtained game images are all binary strings, the binary strings need to be converted into a three-dimensional array in an unsigned integer int8 format, and then a subsequent detection step on the processed game images is performed.
Optionally, in an embodiment of the present application, because when the game character performs the first killing operation, theoretically, there are more game characters that survive in the game scene at this time, so there are more annotation elements that are externally hung in the game scene in a perspective manner, so that it is easier to detect the perspective externally hung portion of the game image at this time, and in an embodiment of the present application, the game image may be selected as the client screenshot of the game character when the first killing operation is performed in each game in the scene map.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a method for detecting a perspective plug-in of a game, where an implementation process of determining whether a game client uses the perspective plug-in the foregoing method is described below with reference to the accompanying drawings. Fig. 3 is a schematic flow chart of a perspective plug-in detection method for a game according to another embodiment of the present application, and as shown in fig. 3, S104 may include:
s107: and determining the similarity between the game image and a preset perspective plug-in panel image.
The preset perspective plug-in panel image is an image containing the perspective plug-in, whether the game image is similar to the image containing the perspective plug-in can be determined by comparing the similarity between the game image and the preset perspective plug-in panel image, the higher the similarity is, the higher the probability that the current game image contains the perspective plug-in is, and otherwise, the lower the similarity is, the lower the probability that the current game scene contains the perspective plug-in is.
If the similarity is greater than or equal to the predetermined similarity, S108a is executed.
S108 a: determining that the game client uses the perspective plug-in.
If the similarity is smaller than the predetermined similarity, S108b is executed.
S108 b: determining that the game client does not use the perspective plug-in.
The mode of detecting and judging through the images has controllable results, can adjust the preset similarity according to the screening precision, has low consumption of computing resources, and is accurate to identify the external hanging panel with a fixed position.
In a possible implementation manner, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a perspective plug-in detection method for a game, and an implementation process of determining a similarity between a game image and a preset perspective plug-in panel image in the foregoing method is described as follows with reference to the accompanying drawings. Fig. 4 is a schematic flow chart of a perspective plug-in detection method for a game according to another embodiment of the present application, and as shown in fig. 4, S107 may include:
s109: the game image is scaled to a scene image of a preset size, and a hash value of the scene image of the preset size is determined.
In one embodiment of the present application, the preset size may be 8 × 8, i.e. for each game image, the image needs to be scaled to a 8 × 8 small graph before detection, and the hash value of the small graph is calculated.
For example, the hash value may be calculated by: and converting the small image which is scaled according to the proportion of 8-by-8 into a gray image, and calculating the average value of pixel values of all pixel points in the gray image, wherein for each pixel point of the gray image, if the pixel value of the pixel point is greater than or equal to the average value, the point is marked as 1, if the pixel value of the pixel point is less than the average value, the point is marked as 0, and finally, a hash value which has the length of 64 and only comprises 0 or 1 is obtained.
S110: and comparing the hash value of the scene image with the preset size with the Hamming distance between the preset hash value and the hash value.
The preset hash value is calculated by adopting a preset perspective plug-in panel image.
Optionally, in an embodiment of the present application, a fixed detection area in a preset perspective plug-in panel image is determined; calculating a first hash value of the fixed detection area, recording the first hash value as hash0 and second hash values of a plurality of areas to be detected in a preset perspective panel image, and recording the first hash values as hashi(ii) a According to the first hash value and a plurality of detection areas to be detectedAnd determining a preset hash value according to the second hash value of the domain. The fixed detection area is an area where the content does not change in a preset perspective plug-in panel image, and the fixed detection area may be, for example: a line of character self-aiming switches is arranged on a preset perspective external hanging panel image: on, wherein the self-aiming switch belongs to the area which does not change and can be used for detection, and the on can be changed into the off, so the detection efficiency of the detection is not high, and the on does not belong to the area which does not change.
In some possible embodiments, the predetermined hash value may be determined by, for example: calculating the Hamming distance between the first Hash value and the second Hash value of the area to be detected; determining the number of hash values of which the Hamming distances are smaller than or equal to a preset third distance threshold in the to-be-detected areas of which the Hamming distances from the first hash values are smaller than or equal to the preset second distance threshold; and determining the hash value with the largest number as a preset hash value.
For example, the following steps are carried out: taking the preset second distance threshold as 10 and the preset third distance threshold as 6 as an example, the method for determining the preset hash value may be, for example: calculating the Hamming distance between the first Hash value and the second Hash value of the area to be detected; if the Hamming distance between a certain second Hash value and the first Hash value exceeds 10, ignoring the area to be detected corresponding to the current second Hash value, and only counting the second Hash value of which the Hamming distance between the current second Hash value and the first Hash value is less than 10; determining the number of hash values with Hamming distance less than or equal to 6 in a plurality of regions to be detected after screening statistics, and selecting the hash value with the largest number as the finally determined preset hash value.
If the hamming distance is less than or equal to the first preset distance threshold, S111a is executed.
S111 a: and determining that the similarity is greater than or equal to a preset similarity.
That is, the current game image is illustrated as a scene image including a perspective plug-in.
If the hamming distance is greater than the first preset distance threshold, S111b is performed.
S111 b: and determining that the similarity is smaller than the preset similarity.
I.e. to illustrate that no perspective plug-in is included in the current game image.
For example, the following steps are carried out: taking the first preset distance threshold as 3 as an example for explanation, if the hash value of a scene image of a certain preset size in the current game scene is the following 64-bit hash value only including 1 or 0:
0100111010001101000000001010011110101111000010001110111111000100;
the preset hash value is a hash value of the following 64 bits including only 1 or 0:
0110111010001101000000001010011110101111000010001110111111000100, if the hamming distance between the two is 1 and less than 3, it is determined that the similarity between the hash value of the scene image with the preset size and the preset hash value is greater than the preset similarity, that is, the detection scheme considers that the game image contains the perspective plug-in element.
In another possible implementation manner, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a perspective plug-in detection method for a game, where an implementation process of determining whether a game client uses a perspective plug-in the foregoing method is described below with reference to the accompanying drawings. Fig. 6 is a schematic flow chart of a perspective plug-in detection method for a game according to another embodiment of the present application, and as shown in fig. 6, S102 may include:
s201: and carrying out binarization processing on the image of each color channel in the game image.
Optionally, in an embodiment of the present application, since two colors, red or green, are generally used in a game scene to represent friend or foe, and the human eye is more sensitive to the two colors, the cheater usually marks the position of the game character in the current game scene with the two colors. Therefore, the data of the actual game image has the most red, the slight green, the less blue and the very few other colors, so that the image of each color channel is binarized by three times according to the three colors of red, green and blue.
For example, in some possible embodiments, the color channels in the game image may be processed according to a setting mode that the pixel value of the current channel to be detected is greater than 127, and the pixel values of other channels are all less than 100, so as to obtain a processed image with a height × 1(height × width × 1).
S202: and searching a rectangular frame meeting a preset condition from the image of the color channel after the binarization processing.
Since the background in the game image is generally complex, there will be color portions of non-plug-in elements, and these noises will cause the flow efficiency when detecting plug-ins subsequently to be too low, so that the noise reduction processing needs to be performed on the game image, for example, the processing may be: if the number of pixel points with the area value of 1 of 5 multiplied by 5 nearby a certain pixel point in the game image does not exceed the threshold value T1 to be 3 (isolated point), setting the current pixel point to be 0; if the number of pixels with the area value of 1 near the current pixel 11 × 11 exceeds the threshold T2, setting the current pixel as 1, and recording the current pixel; the pixel points between the threshold T1 and the threshold T2 do not need to be processed, but the specific noise reduction method may be flexibly adjusted according to the user's needs, and is not limited to the above embodiment.
Alternatively, the rectangular frame of the preset condition may be: the height is larger than the width, the mean value of the pixel points in the rectangular frame is smaller than or equal to a first pixel threshold value, the mean value of the pixel points on the rectangular frame is larger than or equal to a second pixel threshold value, and the mean value of the pixel points on the rectangular frame is smaller than or equal to the first pixel threshold value after the preset pixel range is expanded outwards; in an embodiment of the present application, the rectangular frame of the preset condition may be, for example: the height is greater than the width, the average value of the pixels inside the rectangular frame is less than or equal to the first pixel threshold T3-0.15, the average value of the pixels on the rectangular frame is greater than or equal to the second pixel threshold T4-0.8, and after the range of 2 pixels is expanded outwards, the average value of the pixels on the rectangular frame is less than or equal to the first pixel threshold T3-0.15, and the image containing the rectangular frame satisfying all the above conditions is the image using the perspective plug-in.
If the rectangular frame satisfying the preset condition is searched, S203a is executed.
S203 a: determining that the game client uses the perspective plug-in.
If the rectangular frame satisfying the preset condition is not searched, S203b is executed.
S203 b: determining that the game client does not use the perspective plug-in.
The method is used for detecting the perspective plug-in, and is based on an image recognition mode, the result is controllable, the consumption of computing resources is low, and the method is accurate in recognition of the square frame type perspective plug-in.
Optionally, for the detection of the perspective plug-in, the game image may be detected by using the two methods of S106-S110a or S10b, and S201-S203a or S203b, respectively, and if at least one method exists to determine that the game client corresponding to the game character in the current game scene uses the perspective plug-in, the game client corresponding to the game character is determined to be the game client using the perspective plug-in; and may be used separately, and the application is not limited thereto.
In yet another possible implementation manner, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a perspective plug-in detection method for a game, and an implementation process of determining whether a game client uses a perspective plug-in the foregoing method is described below with reference to the accompanying drawings. Fig. 7 is a schematic flow chart of a perspective plug-in detection method for a game according to another embodiment of the present application, and as shown in fig. 7, S104 may include:
s301: and detecting the game image by adopting a preset network model, and determining whether the game image comprises the perspective plug-in element.
S302: and determining whether the game client uses the perspective plug-in according to the detection result.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a method for detecting a perspective plug-in of a game, where an implementation process of determining whether a game client uses the perspective plug-in the foregoing method is described below with reference to the accompanying drawings. Fig. 8 is a schematic flowchart of a perspective cheating-detecting method for a game according to another embodiment of the present application, in the following embodiments, a preset network model is taken as an example for explanation, and as shown in fig. 8, S302 may include:
s303: and cutting the game image to obtain a plurality of sub-images.
Optionally, in an embodiment of the present application, the rule of clipping may be, for example: the game image is cropped to 32 x 32 sub-images.
S304: and detecting the sub-image according to a preset network model, and determining whether the sub-image contains the perspective plug-in element.
The preset network model is a network model obtained by adopting a large number of normal sample game images in advance for training and is used for constructing a pseudo image corresponding to the sub-image according to the sub-image, the trained preset network model has better reconstruction capability on the normal game image, but the reconstruction capability on the abnormal game image which is not seen in the training process is poorer; therefore, by comparing the noise distribution between each sub-image and the corresponding pseudo-image, it can be determined whether the current sub-image includes the perspective plug-in. For example, it may be: because the sub-image containing the perspective plug-in is an image which is not contacted in the training process of the preset network model, the reconstruction capability of the preset network model on the sub-image is poor, so that elements added by the perspective plug-in leave relatively obvious traces in the pseudo-image, and compared with the sub-image, the reconstructed pseudo-image possibly has larger noise distribution, and the difference can be judged through Gaussian low-pass filtering and simple rules, so that the sub-image with the larger noise distribution between the sub-image and the corresponding pseudo-image can be determined as the image using the perspective plug-in; for normal sub-images, the preset network model has better reconstruction capability for the sub-images, so that the distribution of the pseudo-images and the sub-images is more uniform.
In one implementation of the present application, the sub-image may be encoded according to an encoder in a preset network model, so as to obtain a true feature vector corresponding to the sub-image; decoding the real feature vector according to a decoder in a preset network model to obtain a pseudo image corresponding to the subimage; and determining whether the sub-image contains the perspective plug-in element or not according to the pixel difference value between the sub-image and the corresponding pseudo-image.
Optionally, the pixel difference may be determined according to the euclidean distance, if the euclidean distance between the sub-image and the pseudo-image is greater than the preset distance, it is determined that the sub-image includes the perspective plug-in element, and if the euclidean distance between the sub-image and the pseudo-image is less than the preset distance, it is determined that the sub-image is the normal image and does not include the perspective plug-in element.
In one embodiment of the present application, the preset network model may be a generative model, including an encoder encorder 1, an encoder encorder 2, and a decoder1, wherein:
the encoder1 is used to encode the 32 × 32 cropped sub-images pic _ real into a vector feature _ real of length 200, i.e. a high-dimensional abstract feature representation of each sub-image. The decoder1 is used to decode the feature vector feature _ real into a 32 × 32 picture pic _ fake, which is a pseudo picture generated by the model. The encoder2 is used to encode the dummy picture pic _ fake into a vector feature _ fake of length 200. Whether the sub-image contains the perspective plug-in element can be determined by comparing the pixel difference between the pic _ real and pic _ fake two pictures.
In the training process of the generated model, the generated model can be obtained by training according to a judgment model, wherein the judgment model comprises an encoder encorder 3 and a classifier clf, and the working flow of the judgment model is as follows: the encoder3 encodes each 32 × 32 cropped sub-picture pic _ input into a vector feature _ input of length 200. The classifier clf determines whether the input sub-image is a real image or a generated image from the feature vector feature _ input.
In one example, a difference map may be generated from pixel differences between the sub-images and the corresponding pseudo-images; and determining whether the sub-image contains the perspective plug-in element or not according to the difference map.
Still taking the determination method provided in the above embodiment as an example, in another example, whether the sub-image includes the perspective plug-in element may be determined by comparing the pixel difference between the sub-image and the corresponding pseudo-image with a preset threshold, without generating a difference map, and the specific determination method may be, for example: if the pixel difference value is larger than or equal to a preset threshold value, determining that the sub-image contains the perspective plug-in element; and if the pixel difference value is smaller than the preset threshold value, determining that the sub-image does not contain the perspective plug-in element.
In one embodiment of the present application, if there are at least two sub-images in the game image containing the perspective plug-in element, S305a is executed.
S305 a: and determining that the perspective plug-in element is contained in the game image.
If there is less than or equal to one sub-image in the game image containing the perspective plug-in element, S305b is executed.
S305 b: and determining that the perspective plug-in element is not contained in the game image.
By adopting the method provided by the embodiment, for the perspective plug-in of the non-square frame class, for example: the detection efficiency of the ray perspective plug-in is high, and the method does not need to use a plug-in sample, but determines whether the current game image is a normal image by learning a normal sample.
In other possible implementation manners, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a perspective plug-in detection method for a game, and an implementation process of determining whether a game client uses a perspective plug-in the foregoing method is described below with reference to the accompanying drawings. Fig. 9 is a schematic flow diagram of a perspective plug-in detection method for a game according to another embodiment of the present application, in which a preset network model is taken as an example of a supervised network model based on deep learning in the following embodiments, and in the embodiments of the present application, a model structure of the adopted supervised network model may be: using the pre-trained ResNet50 as a base model, adapting input pictures of different sizes using a 1 × 1 convolutional layer instead of a fully-connected layer, and finally using the output result of the average pooling (average _ po _ ling) + logistic regression layer (softmax) as a model output, as shown in fig. 9, S302 may include:
s306: and inputting the game image into a preset network model to obtain probability information of whether the game image comprises the perspective plug-in element.
Optionally, in an embodiment of the present application, the training process of the preset network model may be: preprocessing each sample game image in the sample data set, zooming each sample game image into 1080 × 1920 resolution, and taking 800 × 1200 partial image in the middle to avoid the influence of a game interface. The 800 x 1200 images were then cut into 3 x 5 images with a resolution of 224 x 224, and these 15 images along with their respective labels were added to the sample data set training. During the first training, the marks of all the images are from manual marks, and during the subsequent iteration, the marks of all the images are from the detection results of other models.
Still taking the above embodiment as an example, by using the trained preset network model, the 800 × 1200 picture obtained by preprocessing the image to be detected can be directly input to the preset network model to obtain a 19 × 32 × 2 probability matrix, which is the obtained probability information, but the specific form and content of the probability information can be flexibly adjusted according to the user's needs, and the embodiment is not limited to the above embodiment.
S307: and determining whether the game image comprises the perspective plug-in element according to the probability information.
Optionally, the determining manner may be, for example: and if the probability information is greater than or equal to a preset probability threshold value, determining that the game image comprises the perspective plug-in element, and if the probability information is less than the preset probability threshold value, determining that the game image does not comprise the perspective plug-in element.
The supervision scheme improves the identification capability of the known perspective plug-in, and can improve the identification capability of the emerging perspective plug-in by periodically updating the form of the iteration sample data set.
In an embodiment of the present application, the sample with higher confidence coefficient selected from the above-mentioned hash-based, binarization-based or unsupervised schemes may be added to the original sample data set of the supervised scheme, the sample data set of the supervised scheme is updated and iterated, and the supervised model is trained according to the updated sample data set.
Optionally, in an embodiment of the present application, all game images are respectively subjected to detection based on a hash value, based on binarization processing, based on an unsupervised scheme, and based on a supervised scheme, and a detection result of any detection scheme considers that the game image is a perspective hanging image, it is determined that the game image includes a plug-in element, and only when each detection scheme considers that the game image does not include a perspective hanging element, it is determined that the game scene graph is a scheme that does not include a perspective hanging, so that accuracy of the detection result is greatly improved, and a misjudgment situation is avoided.
For example, the following steps are carried out: if at least 5 game images of one game role are detected as containing the perspective plug-in element, adding all the game images detected as the perspective plug-in of the game role into a sample data set, and automatically marking the area in which the perspective plug-in element is detected as a perspective plug-in area; and if one game character corresponds to at least 50 game images and the detection results of all the game images are normal, adding all the game images of the game character into the sample data set and automatically marking the sample data set as a normal image.
In one embodiment of the application, information for determining a game character using a perspective plug-in is stored, as well as game images on which the determination is based using the perspective plug-in. The storage location may be stored in a local disk or a database, etc., and the specific storage location may be flexibly adjusted according to the user's needs, which is not limited herein.
Optionally, in another embodiment of the present application, an inquiry interface may be further configured, after the game party receives the positive report of the other game character, the game party automatically verifies whether the reported player uses the perspective cheating program according to the report information, that is, a detection result in a corresponding period is returned through the character ID of the reported player and the time period of inquiry, where the detection result may include at least one of the following: whether the perspective plug-in is used, the number of images used for the perspective plug-in, the specific images used for the perspective plug-in, and the like are used, and the content included in the specific detection result is not limited in any way in the present application.
In another embodiment of the present application, all the detection results of the previous day can be: and (3) forming a compressed package by using the perspective plug-in game image, uploading the compressed package to the FTP server, and providing a file with all detection results so as to facilitate game operation verification results and batch prohibition.
For example, the detection results can also be presented in real time to an interactive visualization tool, such as: on the terminal equipment or the server, the game party can observe the recent game environment change in time through visual observation and built-in statistical indexes, the visualization tool can also provide a quick verification function for detecting reported complaints, and meanwhile, if the operation finds the conditions of misjudgment or missed judgment, the feedback can also be carried out in a manual marking mode.
By adopting the method provided by the application, all detection methods are based on the image for detection, so that the strain capacity is strong, and based on the detection modes of the four methods, most perspective plug-ins can be detected, the conditions of missed judgment or misjudgment are reduced, and the game experience of game roles in the game process is improved. And the mode of updating and iterating the sample data set further strengthens the detection of the external hanging and improves the detection precision.
The following explains the perspective plug-in detection device for a game provided by the present application with reference to the accompanying drawings, where the perspective plug-in detection device for a game can execute the perspective plug-in detection method for any one of the games shown in fig. 1 to 9, and specific implementation and beneficial effects thereof are referred to above and will not be described again below.
Fig. 10 is a schematic structural view of a perspective plug-in detection device for a game according to an embodiment of the present application, as shown in fig. 10, the device includes: an acquisition module 401 and a detection module 402, wherein:
an obtaining module 401, configured to obtain information of at least one game character to be detected;
the obtaining module 401 is specifically configured to obtain, according to information of a game character, a game image of the game character from a preset first storage location, where the game image is a client screenshot of the game character when a killing operation is performed;
the detection module 402 is configured to perform perspective plug-in detection on the game role according to the game image, so as to determine whether the game client uses the perspective plug-in.
Optionally, the obtaining module 401 is specifically configured to obtain, according to the information of the game character, an image storage address of the game character from a preset second storage location; the second storage position stores information of game roles and image storage addresses of the game roles;
the obtaining module 401 is specifically configured to obtain a game image from the first storage location according to the image storage address of the game character.
Fig. 11 is a schematic structural view of a perspective plug-in detection device for a game according to an embodiment of the present application, and as shown in fig. 11, the device further includes: a determining module 403, configured to determine similarity between the game image and a preset perspective plug-in panel image;
the determining module 403 is specifically configured to determine that the game client uses the perspective plug-in if the similarity is greater than or equal to the preset similarity;
the determining module 403 is specifically configured to determine that the game client does not use the perspective plug-in if the similarity is smaller than the preset similarity.
As shown in fig. 11, the apparatus further includes: a comparison module 404, wherein:
a determining module 403, specifically configured to scale the game image into a scene image with a preset size, and determine a hash value of the scene image with the preset size;
a comparing module 404, configured to compare the hash value of the scene image with a preset size and a hamming distance between the preset hash value and the hash value; the preset hash value is calculated by adopting a preset perspective plug-in panel image;
the determining module 403 is specifically configured to determine that the similarity is greater than or equal to a preset similarity if the hamming distance is less than or equal to a first preset distance threshold;
the determining module 403 is specifically configured to determine that the similarity is smaller than the preset similarity if the hamming distance is greater than the first preset distance threshold.
As shown in fig. 11, the apparatus further includes: a calculation module 405, wherein:
a determining module 403, specifically configured to determine a fixed detection area in a preset perspective plug-in panel image;
a calculating module 405, configured to calculate a first hash value of a fixed detection area and second hash values of a plurality of areas to be detected in a preset perspective panel image;
the determining module 403 is specifically configured to determine a preset hash value according to the first hash value and the second hash values of the multiple regions to be detected.
Optionally, the calculating module 405 is specifically configured to calculate a hamming distance between the first hash value and the second hash value of the to-be-detected region;
the determining module 403 is specifically configured to determine the number of hash values, of which hamming distances are smaller than or equal to a preset third distance threshold, in the to-be-detected area, of the multiple to-be-detected areas where hamming distances from the first hash values are smaller than or equal to the preset second distance threshold;
the determining module 403 is specifically configured to determine that the hash value with the largest number is a preset hash value.
As shown in fig. 11, the apparatus further includes: a processing module 406 and a search module 407, wherein:
a processing module 406, configured to perform binarization processing on the image of each color channel in the game image;
a searching module 407, configured to search a rectangular frame meeting a preset condition from the image of the color channel after the binarization processing;
the determining module 403 is specifically configured to determine that the game client uses the perspective plug-in if a rectangular frame meeting a preset condition is searched;
the determining module 403 is specifically configured to determine that the game client does not use the perspective plug-in if a rectangular frame meeting a preset condition is not searched.
Optionally, the determining module 403 is specifically configured to detect the game image by using a preset network model, and determine whether the game image includes the perspective plug-in element;
the determining module 403 is specifically configured to determine whether the game client uses the perspective plug-in according to the detection result.
As shown in fig. 11, the apparatus further includes: a cropping module 408, wherein:
a cropping module 408, configured to crop the game image to obtain a plurality of sub-images;
the determining module 403 is specifically configured to detect the sub-image according to a preset network model, and determine whether the sub-image includes a perspective plug-in element;
the determining module 403 is specifically configured to determine that the game image includes the perspective plug-in element if at least two sub-images in the game image include the perspective plug-in element;
the determining module 403 is specifically configured to determine that the game image does not include the perspective plug-in element if the game image has the perspective plug-in element included in less than or equal to one sub-image.
As shown in fig. 11, the apparatus further includes: an encoding module 409 and a decoding module 410, wherein:
the encoding module 409 is configured to encode the sub-image according to an encoder in the preset network model to obtain a true feature vector corresponding to the sub-image;
the decoding module 410 is configured to decode the real feature vector according to a decoder in the preset network model to obtain a pseudo image corresponding to the sub-image;
the determining module 403 is specifically configured to determine whether the sub-image includes a perspective plug-in element according to a pixel difference between the sub-image and the corresponding pseudo-image.
As shown in fig. 11, the apparatus further includes: a generating module 411, configured to generate a difference map according to a pixel difference between the sub-image and the corresponding pseudo-image;
the determining module 403 is specifically configured to determine whether the sub-image includes the perspective plug-in element according to the difference map.
Optionally, the comparing module 404 is specifically configured to compare a pixel difference between the sub-image and the corresponding pseudo-image with a preset threshold;
the determining module 403 is specifically configured to determine that the sub-image includes the perspective plug-in element if the pixel difference is greater than or equal to the preset threshold;
the determining module 403 is specifically configured to determine that the sub-image does not include the perspective plug-in element if the pixel difference is smaller than the preset threshold.
Optionally, the determining module 403 is specifically configured to input the game image into a preset network model, and obtain probability information of whether the game image includes the perspective plug-in element;
the determining module 403 is specifically configured to determine whether the game image includes the perspective plug-in element according to the probability information.
As shown in fig. 11, the apparatus further includes: the storage module 412 is used for storing the information of the game role determined to use the perspective plug-in and the game image based on which the perspective plug-in is determined to be used.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 12 is a schematic structural diagram of a perspective plug-in detection device for a game according to an embodiment of the present application, where the perspective plug-in detection device for a game may be integrated in a terminal device or a chip of the terminal device.
This perspective plug-in detection device of game includes: a processor 501, a storage medium 502, and a bus 503.
The processor 501 is used for storing a program, and the processor 501 calls the program stored in the storage medium 502 to execute the method embodiment corresponding to fig. 1-9. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program, which, when executed by a processor, performs embodiments corresponding to the above-described method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (21)

1. A perspective cheating-in detection method for a game, the method comprising:
acquiring a game image of a game client, wherein the game image is a client screenshot of a game role corresponding to the game client when a killing operation is executed;
and performing perspective plug-in detection according to the game image to determine whether the game client uses the perspective plug-in.
2. The method of claim 1, wherein said obtaining a game image of a game client comprises:
acquiring information of at least one game role to be detected;
and acquiring the game image of the game role from a preset first storage position according to the information of the game role.
3. The method of claim 2, wherein the obtaining the game image of the game character from a preset first storage location according to the information of the game character comprises:
acquiring an image storage address of the game role from a preset second storage position according to the information of the game role; the second storage position stores information of the game role and an image storage address of the game role;
and acquiring the game image from the first storage position according to the image storage address of the game character.
4. The method of claim 3, wherein the information of the game character comprises: the identification information of the game role and the identification information of the scene map of the game role in the game scene.
5. The method of claim 4, wherein the game image is a client-side screenshot of the game character when a killing operation is first performed in each game in the scene map.
6. The method of claim 1, wherein the performing perspective plug-in detection on the game character according to the game image to determine whether the game client uses perspective plug-in comprises:
determining the similarity between the game image and a preset perspective plug-in panel image;
if the similarity is greater than or equal to the preset similarity, determining that the game role is hung externally by using perspective;
and if the similarity is smaller than the preset similarity, determining that the game role does not use the perspective plug-in.
7. The method of claim 6, wherein determining the similarity between the game image and a preset perspective add-on panel image comprises:
zooming the game image into a scene image with a preset size, and determining a hash value of the scene image with the preset size;
comparing the hash value of the scene image with the preset size with the Hamming distance between the preset hash value and the hash value; the preset hash value is calculated by adopting the preset perspective plug-in panel image;
if the Hamming distance is smaller than or equal to a first preset distance threshold, determining that the similarity is larger than or equal to the preset similarity;
and if the Hamming distance is greater than the first preset distance threshold, determining that the similarity is less than the preset similarity.
8. The method according to claim 7, wherein before comparing the hash value of the scene image with the preset size to the hamming distance between the preset hash value, the method further comprises:
determining a fixed detection area in the preset perspective plug-in panel image;
calculating a first hash value of the fixed detection area and second hash values of a plurality of areas to be detected in the preset perspective panel image;
and determining the preset hash value according to the first hash value and the second hash values of the plurality of areas to be detected.
9. The method according to claim 8, wherein the determining the preset hash value according to the first hash value and the second hash values of the plurality of regions to be detected comprises:
calculating the Hamming distance between the first Hash value and a second Hash value of the area to be detected;
determining the number of hash values of which the Hamming distances are smaller than or equal to a preset third distance threshold in the areas to be detected, of which the Hamming distances to the first hash values are smaller than or equal to the preset second distance threshold, in the areas to be detected;
and determining the hash value with the largest number as the preset hash value.
10. The method of claim 1, wherein the performing perspective plug-in detection on the game character according to the game image to determine whether the game client uses perspective plug-in comprises:
carrying out binarization processing on the image of each color channel in the game image;
searching a rectangular frame meeting a preset condition from the image of the color channel after the binarization processing;
if the rectangular frame meeting the preset condition is searched, determining that the game role is hung externally by using perspective;
and if the rectangular frame meeting the preset condition is not searched, determining that the game role does not use the perspective plug-in.
11. The method according to claim 10, wherein the rectangle of the preset condition is: the height is larger than the width, the mean value of the pixel points in the rectangular frame is smaller than or equal to a first pixel threshold value, the mean value of the pixel points on the rectangular frame is larger than or equal to a second pixel threshold value, and the mean value of the pixel points on the rectangular frame is smaller than or equal to the first pixel threshold value after the preset pixel range is expanded outwards.
12. The method of claim 1, wherein the performing perspective plug-in detection on the game character according to the game image to determine whether the game client uses perspective plug-in comprises:
detecting the game image by adopting a preset network model, and determining whether the game image comprises a perspective plug-in element;
and determining whether the game client uses the perspective plug-in according to the detection result.
13. The method of claim 12, wherein the detecting the game image using the preset network model to determine whether the game image includes a perspective plug-in element comprises:
cutting the game image to obtain a plurality of sub-images;
detecting the subimages according to the preset network model, and determining whether the subimages contain perspective plug-in elements;
if at least two sub-images in the game image contain perspective plug-in elements, determining that the game image contains the perspective plug-in elements;
and if the game image has less than or equal to one sub-image containing the perspective plug-in element, determining that the game image does not contain the perspective plug-in element.
14. The method according to claim 13, wherein the detecting the sub-image according to the preset network model to determine whether the sub-image includes a perspective plug-in element comprises:
coding the subimages according to a coder in the preset network model to obtain real characteristic vectors corresponding to the subimages;
decoding the real feature vector according to a decoder in the preset network model to obtain a pseudo image corresponding to the sub-image;
and determining whether the sub-image contains a perspective plug-in element or not according to the pixel difference value between the sub-image and the corresponding pseudo-image.
15. The method of claim 14, wherein determining whether the sub-image contains a perspective plug-in element according to a pixel difference between the sub-image and a corresponding pseudo-image comprises:
generating a difference image according to the pixel difference between the sub-image and the corresponding pseudo-image;
and determining whether the sub-image contains a perspective plug-in element or not according to the difference map.
16. The method of claim 13, wherein determining whether the sub-image contains a perspective plug-in element according to a pixel difference between the sub-image and a corresponding pseudo-image comprises:
comparing the pixel difference between the sub-image and the corresponding pseudo-image with a preset threshold;
if the pixel difference value is larger than or equal to the preset threshold value, determining that the sub-image contains a perspective plug-in element;
and if the pixel difference value is smaller than the preset threshold value, determining that the sub-image does not contain a perspective plug-in element.
17. The method of claim 12, wherein the detecting the game image using the preset network model to determine whether the game image includes a perspective plug-in element comprises:
inputting the game image into the preset network model to obtain probability information of whether the game image comprises the perspective plug-in element;
and determining whether the game image comprises a perspective plug-in element according to the probability information.
18. The method according to any one of claims 1-17, further comprising:
information of a game character determined to use the perspective plug-in and a game image on which the determination to use the perspective plug-in is based are stored.
19. A perspective hang-up detection apparatus for a game, the apparatus comprising: an acquisition module and a detection module, wherein:
the acquisition module is used for acquiring a game image of a game client, wherein the game image is a client screenshot of a game role corresponding to the game client when a killing operation is executed;
the detection module is used for carrying out perspective plug-in detection according to the game image so as to determine whether the game client uses the perspective plug-in.
20. A perspective store-on detection device for a game, the device comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when a perspective plug-in detection device of a game is operated, the processor executing the machine-readable instructions to perform the method of any one of claims 1-18.
21. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, performs the method of any of the preceding claims 1-18.
CN202010727849.4A 2020-07-24 2020-07-24 Perspective plug-in detection method, device, equipment and storage medium for game Pending CN111821693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010727849.4A CN111821693A (en) 2020-07-24 2020-07-24 Perspective plug-in detection method, device, equipment and storage medium for game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010727849.4A CN111821693A (en) 2020-07-24 2020-07-24 Perspective plug-in detection method, device, equipment and storage medium for game

Publications (1)

Publication Number Publication Date
CN111821693A true CN111821693A (en) 2020-10-27

Family

ID=72926270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010727849.4A Pending CN111821693A (en) 2020-07-24 2020-07-24 Perspective plug-in detection method, device, equipment and storage medium for game

Country Status (1)

Country Link
CN (1) CN111821693A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112957741A (en) * 2021-03-03 2021-06-15 网易(杭州)网络有限公司 Game report processing method and device and electronic equipment
CN113559506A (en) * 2021-09-24 2021-10-29 深圳易帆互动科技有限公司 Automatic testing method and device for frame synchronization and readable storage medium
CN113827984A (en) * 2021-09-27 2021-12-24 �田�浩 Anti-cheating method and system for action game

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006109530A1 (en) * 2005-03-31 2006-10-19 Sega Corporation Game device, and fraud detecting method for the game device
CN107308645A (en) * 2017-06-07 2017-11-03 浙江无端科技股份有限公司 A kind of method and game client of the plug-in detection of perspective of playing
CN109453522A (en) * 2018-11-09 2019-03-12 火烈鸟网络(广州)股份有限公司 Game running safety detection method and device, storage medium, electronic equipment
CN110102051A (en) * 2019-05-06 2019-08-09 网易(杭州)网络有限公司 The plug-in detection method and device of game
CN111054080A (en) * 2019-12-06 2020-04-24 腾讯科技(深圳)有限公司 Method, device and equipment for intelligently detecting perspective plug-in and storage medium thereof
CN111068335A (en) * 2019-12-25 2020-04-28 成都吉胜科技有限责任公司 Anti-plug-in method and system for electronic competition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006109530A1 (en) * 2005-03-31 2006-10-19 Sega Corporation Game device, and fraud detecting method for the game device
CN107308645A (en) * 2017-06-07 2017-11-03 浙江无端科技股份有限公司 A kind of method and game client of the plug-in detection of perspective of playing
CN109453522A (en) * 2018-11-09 2019-03-12 火烈鸟网络(广州)股份有限公司 Game running safety detection method and device, storage medium, electronic equipment
CN110102051A (en) * 2019-05-06 2019-08-09 网易(杭州)网络有限公司 The plug-in detection method and device of game
CN111054080A (en) * 2019-12-06 2020-04-24 腾讯科技(深圳)有限公司 Method, device and equipment for intelligently detecting perspective plug-in and storage medium thereof
CN111068335A (en) * 2019-12-25 2020-04-28 成都吉胜科技有限责任公司 Anti-plug-in method and system for electronic competition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112957741A (en) * 2021-03-03 2021-06-15 网易(杭州)网络有限公司 Game report processing method and device and electronic equipment
CN112957741B (en) * 2021-03-03 2024-02-02 网易(杭州)网络有限公司 Game report processing method and device and electronic equipment
CN113559506A (en) * 2021-09-24 2021-10-29 深圳易帆互动科技有限公司 Automatic testing method and device for frame synchronization and readable storage medium
CN113827984A (en) * 2021-09-27 2021-12-24 �田�浩 Anti-cheating method and system for action game
CN113827984B (en) * 2021-09-27 2023-12-12 �田�浩 Action game anti-plug-in method and system

Similar Documents

Publication Publication Date Title
CN111821693A (en) Perspective plug-in detection method, device, equipment and storage medium for game
CN111898581B (en) Animal detection method, apparatus, electronic device, and readable storage medium
CN108171663B (en) Image filling system of convolutional neural network based on feature map nearest neighbor replacement
CN110149553B (en) Image processing method and device, storage medium and electronic device
Kim et al. Multiple level feature-based universal blind image quality assessment model
CN109308456B (en) Target object information determination method, device, equipment and storage medium
CN114005012A (en) Training method, device, equipment and storage medium of multi-mode pre-training model
CN115171199B (en) Image processing method, image processing device, computer equipment and storage medium
CN113723317B (en) Reconstruction method and device of 3D face, electronic equipment and storage medium
CN112836625A (en) Face living body detection method and device and electronic equipment
CN111626303B (en) Sex and age identification method, sex and age identification device, storage medium and server
CN112802081A (en) Depth detection method and device, electronic equipment and storage medium
CN110991298B (en) Image processing method and device, storage medium and electronic device
CN112837350A (en) Target moving object identification method and device, electronic equipment and storage medium
CN112150464A (en) Image detection method and device, electronic equipment and storage medium
CN109919164B (en) User interface object identification method and device
CN115294162B (en) Target identification method, device, equipment and storage medium
CN110719415A (en) Video image processing method and device, electronic equipment and computer readable medium
CN113490009B (en) Content information implantation method, device, server and storage medium
CN113569824B (en) Model processing method, related device, storage medium and computer program product
CN110751163A (en) Target positioning method and device, computer readable storage medium and electronic equipment
CN112084874B (en) Object detection method and device and terminal equipment
CN114007134B (en) Video processing method, device, electronic equipment and storage medium
CN111291692B (en) Video scene recognition method and device, electronic equipment and storage medium
CN110866532B (en) Object matching method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination