A game processing method and device, electronic equipment and storage medium
By detecting and processing sensitive content formed by target game items in the game screen, the loopholes in the detection mechanism of the existing technology are solved, and more efficient sensitive information screening is achieved, thus improving the game experience.
Patent Information
- Application Number
- CN202410012689.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-03
AI Technical Summary
Existing technologies cannot effectively detect and block sensitive content in game screens, especially sensitive information formed through game items, resulting in vulnerabilities in the detection mechanism and affecting the player's gaming experience.
By acquiring target game items in the game screen, detecting whether there is sensitive content in the image area formed by them, and processing it when sensitive content is found, including verification at the review end and clustering algorithm to identify sensitive images, combined with hierarchical processing in the game scene.
It improves the accuracy and efficiency of sensitive content detection, reduces the probability of missed detections, and enhances the ability to handle sensitive content in game visuals.
Smart Images

Figure CN117899484B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to a game processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of internet technology, more and more games are appearing in people's lives. In games, players can communicate with other players by posting comments on the game's pages. However, some people post inappropriate comments, such as advertisements and profanities, which affect the player experience.
[0003] In related technologies, only text characters or voice messages posted by players are typically detected, and inappropriate messages are filtered or blocked. However, this technology cannot completely filter or block negative information in the game scene, which means that the existing detection mechanism cannot detect inappropriate information formed in certain specific situations, and thus the existing detection mechanism has certain loopholes. Summary of the Invention
[0004] This disclosure provides a game processing method, apparatus, electronic device, and storage medium.
[0005] According to a first aspect of this disclosure, a game processing method is provided, the method comprising: acquiring a target game screen, the target game screen including target game items; detecting whether there is sensitive content in the image area formed by the target game items in the target game screen; and processing the sensitive content if it exists.
[0006] According to a second aspect of this disclosure, a game processing apparatus is provided, comprising: an acquisition module for acquiring a target game screen, the target game screen including target game items; a detection module for detecting whether sensitive content exists in the image area formed by the target game items in the target game screen; and a processing module for processing the sensitive content if it exists.
[0007] According to a third aspect of this disclosure, an electronic device is provided, comprising: a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the program to implement the method described above.
[0008] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the methods described above.
[0009] The game processing method, apparatus, electronic device, and storage medium provided in this disclosure acquire a target game screen during gameplay, the target game screen including multiple target game items; detect whether sensitive content exists in the image area formed by the target game items; and process the sensitive content in the target game screen if sensitive content is present in the image area. Therefore, the solution involved in this disclosure can supplement existing technologies in detecting whether game items in the game screen form sensitive content and in processing sensitive content, thereby enabling more comprehensive detection of sensitive content in the game screen, reducing the probability of missed detection of sensitive content in the game screen, and improving the accuracy of sensitive content detection. Attached Figure Description
[0010] Further details, features, and advantages of this disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0011] Figure 1 A schematic diagram of a game processing method provided as an exemplary embodiment of this disclosure;
[0012] Figure 2 A schematic diagram of a game verification code provided as an exemplary embodiment of this disclosure;
[0013] Figure 3 A schematic diagram of a game screen provided for an exemplary embodiment of this disclosure;
[0014] Figure 4 A schematic diagram of a game screen provided as yet another exemplary embodiment of this disclosure;
[0015] Figure 5 A schematic diagram of a game screen provided as yet another exemplary embodiment of this disclosure;
[0016] Figure 6 A schematic block diagram of the functional modules of a game processing apparatus provided as an exemplary embodiment of this disclosure;
[0017] Figure 7 A structural block diagram of an electronic device provided as an exemplary embodiment of this disclosure;
[0018] Figure 8 A block diagram of a computer system provided for an exemplary embodiment of this disclosure. Detailed Implementation
[0019] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0020] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0021] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc., used in this disclosure are only used to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0022] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0023] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0024] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0025] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0026] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device. It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation of this disclosure; other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0027] With the development of internet technology, more and more games are appearing in people's lives. To relieve fatigue, many people choose to play games in their spare time. In games, they can communicate with other players by posting comments on the game's provided pages. However, some people post inappropriate comments, such as advertisements and profanities, which affect the player experience.
[0028] Related technologies detect player comments displayed on game screens and filter or block inappropriate content. However, these technologies cannot detect sensitive content displayed by players through other means on the game screen, indicating a vulnerability in the detection mechanism.
[0029] Based on this, this disclosure provides a game processing method that obtains and detects the screen of the player placing game items during the game to determine whether there is sensitive content in the current game screen, and further processes it if sensitive content is found.
[0030] like Figure 1 As shown, the method may include the following steps:
[0031] In step S100, the target game screen is acquired, and the target game screen includes the target game items.
[0032] The target game screen can be any game screen, or a game screen containing more than a preset threshold number of items.
[0033] Target game items are game items that can be moved and controlled by the player. For example, in board games, the target game item could be a game piece; in shooting games, the target game item could be bullets.
[0034] Optionally, there may be multiple target game items. Multiple target game items in the same target game screen may be of the same type, such as all being chess pieces. In other implementations, multiple target game items in the same target game screen may be of different types. For example, in shooting games, multiple target game items may involve at least two types of items such as first aid kits, bullets, and medicines in the game.
[0035] In step S200, it is detected whether there is sensitive content in the image area formed by the target game props in the target game screen.
[0036] Sensitive content includes sensitive text and / or sensitive images. Sensitive text includes profanity, advertisements, and politically sensitive text. Sensitive images include images of human body parts or terrifying images.
[0037] In step S300, if sensitive content exists, the sensitive content is processed.
[0038] The above method can detect whether game items in the game screen constitute sensitive content, enabling a more comprehensive detection of sensitive content in the game screen, reducing the probability of missing sensitive content in the game screen, and improving the accuracy of sensitive content detection.
[0039] Based on the above embodiments, in order to more clearly illustrate this disclosure, in some embodiments, step S200 may include:
[0040] S210: Send verification information to the first review end. The verification information is the target game screen or a verification code converted from the target game screen.
[0041] S220: In response to the confirmation result from the first review terminal that the verification information contains characters, the target game screen is sent to the second review terminal.
[0042] S230: In response to the confirmation result from the second review end that the characters belong to sensitive content, it is determined that the image area formed by the target game prop contains sensitive content.
[0043] In step S210, verification information is sent to the first review terminal. The verification information is the target game screen or a verification code converted from the target game screen.
[0044] In one possible implementation where the verification information includes a verification code, the system can extract the image composed of game props from the target game screen to obtain a verification code image containing the image composed of game props. Then, it can generate a text query prompt on the verification code image to indicate whether the current verification code image contains text, such as "Does it contain text?". The system can then combine the verification code image and the text query prompt to obtain the verification information.
[0045] Of course, in some implementations, the image composed of game props can be further blurred before generating the verification code image.
[0046] If the verification information includes the target game screen, the system can generate a text query prompt based on the target game screen, asking whether the target game item on the current target game screen forms text, such as "Does the game item form text?", and then combine the target game screen and the text query prompt to obtain the verification information.
[0047] like Figure 2 As shown, the system provides both "Yes" and "No" selection controls and sends the verification information to the user client that needs anti-AFK verification, i.e., the first verification client. The first verification client is the user client that needs anti-AFK verification. In the game, some users may repeatedly perform a certain operation for a long time or not perform any operation for a long time. In order to prevent players from going AFK, the system can perform anti-AFK verification on users who have not performed any operation for a long time or who have been performing a certain preset operation for a long time.
[0048] In step S220, in response to the confirmation result from the first review terminal that the verification information contains characters, the target game screen is sent to the second review terminal.
[0049] The second review terminal is the user terminal corresponding to the pre-set game reviewers.
[0050] In one possible implementation, after sending the verification information to the user client performing the anti-AFK verification, the user client provides feedback on the verification code. When the user client reports that there is text in the verification code image, the screen composed of game items is further sent to the second review terminal corresponding to the game reviewer.
[0051] In some embodiments, the number of first review terminals can be multiple.
[0052] In this scenario, the confirmation of whether the verification information contains characters can be obtained by combining feedback from multiple first-level reviewers. For example, feedback from each first-level reviewer can be obtained separately. If a certain option receives more than half of the feedback, it is considered the correct answer. The semantics of this correct answer are then used to determine the first-level reviewer's feedback. For instance, if there are five first-level reviewers, and three of them indicate that the verification information contains characters, while the other two indicate that it does not, then the option containing characters is considered the correct answer, and the corresponding confirmation result is obtained.
[0053] In step S230, in response to the confirmation result from the second review end that the characters belong to sensitive content, it is determined that the image area formed by the target game prop contains sensitive content.
[0054] After receiving the screen composed of game props, the reviewers will determine whether the screen contains sensitive text, thereby confirming whether there is sensitive content in the target game screen.
[0055] For example, such as Figure 3 If the arrangement of game items in the shown game screen forms profanity, then it is determined that there is sensitive content in the current game screen.
[0056] In one possible implementation, the confirmation result of the presence of characters in the verification information can be determined by the first review end, which can directly determine that the target game screen contains sensitive content.
[0057] The above implementation method can send game footage to the anti-AFK verification user terminal and the game personnel review terminal. Players and game review personnel can then review the footage to determine whether there is sensitive content, thus improving the efficiency and accuracy of sensitive content detection.
[0058] Based on the above embodiments, in order to more clearly illustrate this disclosure, in some other embodiments, step S200 above includes:
[0059] S240: Locate each target game item in the target game screen and obtain a game image composed of multiple target game items.
[0060] S250: Extract the image features composed of target game props in the game image.
[0061] S260: Cluster the image features to obtain the target image category to which the image features belong.
[0062] S270: When the target image category belongs to the sensitive image category, it is determined that there is sensitive content in the target game screen.
[0063] In step S240, each target game item in the target game screen is located to obtain a game image composed of multiple target game items.
[0064] In one possible implementation, the coordinates of each target game item can be represented to locate the target game item.
[0065] In one possible implementation, when the game screen is in 3D, the current game 3D video data is acquired, and the target game item is located from different game perspectives, thereby detecting sensitive game images caused by multiple item operations.
[0066] Specifically, during positioning, based on the saved original game data, keyframes of the original video generated by in-game items are captured from nine perspectives: left, top left, top, top right, right, bottom right, bottom, bottom left, and vertical, forming a game image set. The game server receives the user client's item operation data stream corresponding to the game image set, along with the item quantity N. The server parses the operation position of the game item operation data stream, maps it to a coordinate system (e.g., Cartesian coordinates), and marks the game items within the game images. Based on the quantity of items in the game images, a pixel length of [missing information] is generated. The bounding boxes, where θ≥N, form the set of sensitive images to be identified. express The maximum value in.
[0067] In step S250, the image features composed of target game props in the game image are extracted.
[0068] In some implementations, the visual features of the game image can be extracted directly.
[0069] In other implementations, the game image can be preprocessed in a series of ways before its image features are extracted, thereby improving the accuracy of the extraction results.
[0070] For example, in one possible implementation, the game image is preprocessed as follows: the game image is denoised using a neural network and the background color is removed; the image is converted into a grayscale image and compressed into a two-dimensional matrix; based on the markings of the game props in the image in step S240, the region composed of multiple props is extracted, and the region composed of props in the image is cropped to obtain a game prop image composed of the target game props; then, the image features composed of props in the game prop image are extracted.
[0071] Optionally, the image features may include, but are not limited to, at least one of the following: spatial features, boundary features, contour features, nonlinear features, etc.
[0072] As for the method of extracting image features, the Scale Invariant Feature Transform (SIFT), Speeded Up Robust Features (SURF), or Histogram of Oriented Gradients (HOG) can be used for extraction. This disclosure does not limit the method of extracting image features.
[0073] In step S260, the image features are clustered to obtain the target image category to which the image features belong.
[0074] The target image categories include sensitive images and non-sensitive images.
[0075] In one possible implementation, a sensitive image classification model can be obtained through a clustering algorithm. Image features are input into the sensitive image classification model, which then clusters the image features and outputs the target image category for each feature. The sensitive image classification model includes multiple cluster centers, each corresponding to a different label. Cluster center m is labeled as a sensitive image, and cluster center n is labeled as a non-sensitive image. The similarity between the image feature and each cluster center is compared to determine the classification label to which the image feature belongs. Based on the classification label, the category of the image feature is obtained.
[0076] In this embodiment of the disclosure, the clustering algorithm is used to reduce the classification error of sensitive images through multiple iterations, thereby alleviating the problem of slow training speed of traditional artificial intelligence algorithms.
[0077] The steps for obtaining the sensitive image classification model using clustering algorithms are as follows:
[0078] The processed set of game item images is used as a sample, with a sample size of M. Feature labels corresponding to the game item image set are obtained and dimensionless, and converted into feature values. Clustering algorithm is used to divide the game item image data into C clusters to obtain classification labels. For example, the game item image data is divided into 2 clusters, and the corresponding classification labels are set as sensitive images and non-sensitive images.
[0079] The clustering algorithm execution process is as follows:
[0080] 1. Set the total number of game item images to A, the total number of clusters to B, B≥1, and the total number of cluster centers to Q. Randomly select Q samples from the sample set to initialize as cluster centers, where A=M, B=C.
[0081] 2. Randomly generate the initial membership matrix U 0 U 0 The dimension is A*B, where, a represents the number of samples, a = 1, 2, 3, ..., A.
[0082] 3. Calculate the membership matrix and each cluster center Q b ; Q b The calculation formula is as follows:
[0083]
[0084]
[0085] Where b represents the number of clusters, b = 1, 2, 3, ..., Q; z represents the number of cluster centers, z = 1, 2, 3, ..., Q, A a Let a represent the a-th sample; t represent the iteration number, t≥1; ||A a -Q b The value || represents the similarity between sample a and cluster center b. The smaller the value, the higher the similarity between sample a and cluster center b, and vice versa. It is calculated as the arithmetic sum of the squares of the feature label scalars of sample a and cluster center b.
[0086] 4. Calculate the error based on the termination condition. If the error is greater than the error threshold ε, let t = t + 1 and execute step 3 above; otherwise, output the membership matrix.
[0087] 5. According to Select column label b corresponding to its maximum value as the final result, and classify the image as b, which is the category label of the image data.
[0088] In step S270, if the target image category belongs to the sensitive image category, it is determined that there is sensitive content in the target game screen.
[0089] The target image categories include sensitive image categories and non-sensitive image categories. Image tags for sensitive image categories may include uncivilized text, politically sensitive text, or images of human body parts, while image tags for non-sensitive image categories may include normal text and normal images.
[0090] In some embodiments, the game prop image samples are clustered using the above-mentioned sensitive content classification model, and cluster labels are set. The cluster labels can be divided into two main categories: sensitive image category labels and non-sensitive image category labels.
[0091] In some embodiments, it can be determined whether a target image category belongs to a sensitive image category by the label of the target image category. For example, if the label of the target image category is a normal text label, then the target image category does not belong to a sensitive image category. If the label of the target image category is uncivilized text, then the target image category belongs to a sensitive image category.
[0092] Based on the above embodiments, in order to more clearly illustrate this disclosure, in some implementations, step S300 may include:
[0093] S310: Get the number of users on the same screen corresponding to the target game screen.
[0094] S320: When the number of users on screen is greater than the threshold, reset the position of the game item; and / or, when the number of users on screen is not greater than the threshold, generate a prompt message to remind the player to reset the target game item.
[0095] In step S310, the number of users on the same screen corresponding to the target game screen is obtained.
[0096] Among them, users on the same screen are those who can view the target game screen, including players playing with the current player and / or other users spectating the current player.
[0097] In step S320, if the number of users on the same screen is greater than the threshold for the number of users on the same screen, the position of the game item is reset; and / or, if the number of users on the same screen is not greater than the threshold for the number of users on the same screen, a prompt message is generated to prompt the player to reset the target game item.
[0098] For example, when the number of users on screen is greater than 20, the position of game items can be reset, or a reminder message can be generated stating, "Your current game screen contains sensitive content. Please play the game appropriately and reset the game item screen." Figure 4 As shown.
[0099] The above implementation method enables tiered processing based on the number of players who can view sensitive game scenes in the current game scenario, meeting the processing needs of sensitive scenes formed by multiple items in the game under different scenarios and improving the efficiency of sensitive scene processing.
[0100] In some implementations, acquiring the target game screen in step S100 may include:
[0101] S110: Get the number of target game items in the game screen.
[0102] S120: When the number of target game items exceeds a preset threshold, acquire the game screen, which is the target game screen.
[0103] In step S110, the quantity of the target game item in the game screen is obtained.
[0104] In some embodiments, the target game items in the game screen can be processed into coordinates; the number of coordinates of the target game items in the game screen can be obtained, and the number of target game items can be obtained based on the number of coordinates.
[0105] Specifically, the target game item is mapped to coordinates, generating a set of game item coordinates [(x1,y1),(x2,y2)...(x...y1)...(x... ...2)... n,y n When it is detected that an item in player A's game instance has been displaced, for example (x k ,y k ) Displace to (x j, y j ),like Figure 5 As shown, the current game item coordinates (x) j, y j The system monitors data within a rectangle centered at L1, with L1 as the major axis and L2 as the minor axis, counting the coordinates of game items within this rectangle. L1 and L2 can be adjusted according to the game's screen size. For example, when the game screen size is 1000*800, L1 can be 500 and L2 can be 400; when the game screen size is 3600*2400, L1 can be 1800 and L2 can be 1200.
[0106] In some embodiments, the quantity of items may be detected by other components, and then the execution entity of the game processing method in this case may actively or passively obtain the quantity and make subsequent judgments.
[0107] In step S120, if the number of target game items exceeds a preset threshold, the game screen is acquired, and the game screen is the target game screen.
[0108] The calculation rules for the preset threshold θ are as follows:
[0109]
[0110] Where i represents the game identifier in the game collection, w i h represents the vertical resolution of game i. i This indicates the horizontal resolution of game i. Let τ represent the number of pixels occupied by item k in game i in the vertical and horizontal directions, respectively; K represents the total number of items in game i; and τ represents the coverage of game items on the game image. This represents the floor function.
[0111] By implementing the above method, the target game screen is only acquired when the number of items in the game screen exceeds the threshold, which reduces the performance loss caused by real-time monitoring of the entire game server and reduces the user experience problems caused by the game server frequently acquiring client game screen data.
[0112] To provide a more detailed explanation of this disclosure, the methods provided in this disclosure will be illustrated through several application scenarios below.
[0113] Application Scenario 1:
[0114] Step 1: Monitor the game screen.
[0115] In the game scene, all movable game items are mapped to coordinates. Taking a 2D game as an example, a set of game item coordinates is generated: [(x1,y1),(x2,y2)...(x...y1)...(x... ... n ,y n When it is detected that player A's game instance has an item that has been displaced, for example (x) k ,y k ) Displace to (x j, y j ), enter monitoring mode.
[0116] Step 2: Obtain the number of game items in the game screen.
[0117] like Figure 1 As shown, with the current (x) j, y j Data is monitored within a rectangle centered at L1, with L1 as the major axis and L2 as the minor axis. The number of game item coordinates within this rectangle is counted. L1 and L2 can be adjusted according to the size of the game screen.
[0118] For example, when the game screen size is 1000*800, L1 can be 500 and L2 can be 400. When the game screen size is 3600*2400, L1 can be 1800 and L2 can be 1200.
[0119] Step 3: When the number of steps in step 2 reaches the preset threshold, capture player A's current perspective and obtain a picture of player A's game screen.
[0120] For example, when the number of game items in the rectangular area of player A's game instance reaches 20, the current game screen of player A is obtained.
[0121] Step 4: Based on the game's built-in anti-AFK CAPTCHA mechanism, the server sends a CAPTCHA request to the user currently requiring anti-AFK protection. The CAPTCHA image is obtained by extracting the image composed of game items from Step 3, such as... Figure 2 As shown.
[0122] Step 5: Obtain user feedback on the verification code. If the answer to the verification code contains text, send the image in the verification code to the human reviewer. If the human reviewer confirms that the image contains sensitive content, proceed to the following tiered control mode.
[0123] Get the players currently on the same screen in the game.
[0124] If there are no players on the same screen, no control measures will be implemented; if there are players on the same screen and the number is less than the safety threshold, the player will be prompted to play the game reasonably; if there are players on the same screen and the number is greater than the safety threshold, the player will be forced offline and their game items will be reset.
[0125] Application Scenario 2:
[0126] Step 1: The game server monitors the game items that players can interact with and obtains game footage containing these items.
[0127] In one possible implementation, when a player uses a controllable in-game item, their in-game behavior is reported to the game server via an internet interface. The game server then sets a threshold θ for the amount of in-game items used based on the current game screen resolution and simultaneously activates its game screen monitoring module to monitor the player's gameplay. The calculation rules for the in-game item usage threshold θ are as follows:
[0128]
[0129] Where i represents the game identifier in the game collection, w i h represents the vertical resolution of game i. i This indicates the horizontal resolution of game i. Let τ represent the number of pixels occupied by item k in game i in the vertical and horizontal directions, respectively; K represents the total number of items in game i; and τ represents the coverage of game items on the game image. This represents the floor function.
[0130] If the game server detects that multiple items appear consecutively in a small area and reach the game item usage threshold θ, the game screen monitoring module performs feature processing, encoding, and compression on the game screen to form the original game data.
[0131] Step 2: Based on the acquired images, locate the game props, then mark the game props that players can operate in the game, generate a set of sensitive images to be identified, and upload them to the sensitive image processing unit.
[0132] In one possible implementation, when the game screen includes 3D game screen, sensitive game images caused by multiple item operations are detected from different game perspectives.
[0133] Specifically, during positioning, based on the saved original game data, keyframes of the original video generated by in-game items are captured from nine perspectives: left, top left, top, top right, right, bottom right, bottom, bottom left, and vertical, forming a game image set. The game server receives the user client's item operation data stream corresponding to the game image set, along with the item quantity N. The operation positions of the item operation data stream are parsed, mapped into a Cartesian coordinate system, and the items within the game images are marked. Based on the quantity of items in the game images, a pixel length of N is generated. The bounding boxes, where θ≥N, form the set of sensitive images to be identified. express The maximum value in.
[0134] Step 3: The sensitive image processing unit obtains the set of sensitive images to be identified from the game server, performs image feature processing on each image, and extracts key feature regions from the images.
[0135] Step 3 may specifically include the following sub-steps:
[0136] Step 3.1: Process the sensitive images in the sensitive image set. The processing procedure is as follows: Denoise the sensitive images using a neural network and remove the background color; convert the images to grayscale images and compress the processed images into a two-dimensional matrix; mark the positions of game props in the images according to the game prop positioning method mentioned above to determine the regions composed of multiple props in the sensitive images, and crop the prop regions in the sensitive images to obtain the game prop images corresponding to the key feature regions. Then, extract the image features composed of props in the game prop images, such as the spatial features, boundary features, contour features, and nonlinear features of the game props, to obtain the corresponding feature labels.
[0137] Step 3.2: Classify the game prop images using a sensitive image classification model. For example, use a clustering algorithm to iteratively calculate the feature values converted from the feature labels of the game prop images to obtain the classification label results. Based on the classification label results, determine the sensitive image recognition results of the image to be identified.
[0138] The sensitive image classification model is a model formed by clustering algorithms, which can effectively improve the classification accuracy of sensitive images. By iterating the clustering algorithm multiple times, the classification error of sensitive images is reduced, which alleviates the problem of slow training speed of traditional artificial intelligence algorithms.
[0139] The sensitive image classification model obtains a processed set of game item images as samples, with a sample set size of M. It then acquires the feature labels corresponding to the game item image set and performs dimensionless processing to convert them into feature values. Finally, it uses a clustering algorithm to divide the game item image data into C clusters based on the feature values, thus obtaining the classification labels. The clustering algorithm execution process is as follows:
[0140] 3.2.1: Set the total number of game item images to A, the total number of clusters to B, B≥1, and the total number of cluster centers to Q. Randomly select Q samples from the sample set to initialize as cluster centers, where A=M, B=C;
[0141] 3.2.2: Randomly generate the initial membership matrix U 0 U 0 The dimension is A*B, where, 'a' represents the number of samples, where a = 1, 2, 3, ..., A;
[0142] 3.2.3: Calculate the membership matrix and each cluster center Q b ; Q b The calculation formula is as follows:
[0143]
[0144]
[0145] Where b represents the number of clusters, b = 1, 2, 3, ..., B; z represents the number of cluster centers, z = 1, 2, 3, ..., Q, A a Let a represent the a-th sample; t represent the iteration number, t≥1; ||A a -Q b The value || represents the similarity between sample a and cluster center b. The smaller the value, the higher the similarity between sample a and cluster center b, and vice versa. It is calculated as the arithmetic sum of the squares of the feature label scalars of sample a and cluster center b.
[0146] 3.2.4: Calculate the error based on the termination condition. If the error is greater than the error threshold ε, let t = t + 1 and go back to 3.2.3; otherwise, output the membership matrix.
[0147] 3.2.5: According to Select column label b corresponding to its maximum value as the final result, and classify the image as b, which is the category label of the image data.
[0148] Step 4: Determine the image recognition result based on the image's classification label: If the entire dataset of images to be detected has normal classification results, such as no features, normal text, or normal images, then the image recognition result is a non-sensitive image; otherwise, the image is a sensitive image.
[0149] Step 5: If the recognition result is a sensitive image, classify it according to the number of players who can see the scene.
[0150] For example, if the number of players on the same screen exceeds the player threshold, the multiple game items are reset; if the number does not exceed the player threshold, a warning message is issued.
[0151] Among these features, classifying players based on the number of players in the current game scenario can improve the safety of public gaming environments, ensure the gaming experience for players, and identify and preprocess sensitive images in the game.
[0152] Based on the inventive concept of type, and by dividing each functional module according to its corresponding function, the present disclosure provides a game processing device, which can be a server or a chip applied to a server. Figure 6 This is a schematic block diagram of the functional modules of a game processing apparatus provided as an exemplary embodiment of the present disclosure. Figure 6 As shown, the game processing device may include:
[0153] The acquisition module 201 is used to acquire the target game screen, which includes the target game items;
[0154] Detection module 202 is used to detect whether there is sensitive content in the image area formed by the target game props in the target game screen;
[0155] The processing module 203 is used to process sensitive content when it exists.
[0156] In one possible implementation, the above-mentioned device further includes: a sending module, configured to send verification information to a first review terminal, wherein the verification information is a target game screen or a verification code converted from the target game screen; and in response to the confirmation result of the first review terminal determining that the verification information contains characters, to send the target game screen to a second review terminal; the above-mentioned device further includes: a determining module, configured to determine that the image area formed by the target game prop contains sensitive content in response to the confirmation result of the second review terminal determining that the characters belong to sensitive content.
[0157] In one possible implementation, the acquisition module 201 is further configured to locate each target game item in the target game screen and acquire a game image composed of multiple target game items; extract the image features composed of target game items in the game image; the processing module 203 is further configured to perform clustering processing on the image features to obtain the target image category to which the image features belong; the determination module is further configured to determine that there is sensitive content in the image area formed by the target game items when the target image category belongs to a sensitive image category.
[0158] In one possible implementation, the above-mentioned apparatus further includes: a preprocessing module for preprocessing the game image, the preprocessing including at least one of the following: noise reduction processing and grayscale processing; and an extraction module for extracting the image features composed of target game props in the preprocessed game image.
[0159] In one possible implementation, the acquisition module 201 is further configured to acquire the number of users on the same screen corresponding to the target game screen, including the number of players and / or the number of viewers; the processing module 203 is further configured to reset the position of the game item when the number of users on the same screen is greater than the threshold, or to generate a prompt message when the number of users on the same screen is not greater than the threshold, the prompt message being used to prompt the player to reset the target game item.
[0160] In one possible implementation, the acquisition module 201 is further used to acquire the number of target game items in the game screen; and when the number of target game items exceeds a preset threshold, to acquire the game screen, where the game screen is the target game screen.
[0161] In one possible implementation, the above-mentioned device further includes: a coordinate processing module for performing coordinate processing on the target game item in the game screen; the above-mentioned acquisition module 201 is further used to acquire the number of coordinates of the target game item in the game screen, and obtain the number of the target game item based on the number of coordinates.
[0162] This disclosure also provides an electronic device, including: at least one processor; a memory for storing processor-executable instructions; wherein the at least one processor is configured to execute the instructions to implement the methods disclosed in this disclosure.
[0163] Figure 7 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this disclosure. For example... Figure 7 As shown, the electronic device 1800 includes at least one processor 1801 and a memory 1802 coupled to the processor 1801. The processor 1801 can perform the corresponding steps in the methods disclosed in the embodiments of this disclosure.
[0164] The processor 1801 described above can also be called a central processing unit (CPU), which can be an integrated circuit chip with signal processing capabilities. Each step in the method disclosed in this embodiment can be implemented by the integrated logic circuitry in the processor 1801 or by software instructions. The processor 1801 can be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this embodiment can be directly implemented by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules can be located in the memory 1802, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The processor 1801 reads information from the memory 1802 and, in conjunction with its hardware, completes the steps of the method described above.
[0165] Furthermore, various operations / processes according to this disclosure, implemented via software and / or firmware, can be transmitted from a storage medium or network to a computer system with a dedicated hardware architecture, such as... Figure 8 The computer system 1900 shown is equipped with the programs that constitute the software. When various programs are installed, the computer system is able to perform various functions, including those described above. Figure 8 A block diagram of a computer system provided for an exemplary embodiment of this disclosure.
[0166] Computer System 1900 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0167] like Figure 8As shown, the computer system 1900 includes a computing unit 1901, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 1902 or a computer program loaded from a storage unit 1908 into a random access memory (RAM) 1903. The RAM 1903 may also store various programs and data required for the operation of the computer system 1900. The computing unit 1901, ROM 1902, and RAM 1903 are interconnected via a bus 1904. An input / output (I / O) interface 1905 is also connected to the bus 1904.
[0168] Multiple components in computer system 1900 are connected to I / O interface 1905, including: input unit 1906, output unit 1907, storage unit 1908, and communication unit 1909. Input unit 1906 can be any type of device capable of inputting information into computer system 1900. Input unit 1906 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of the electronic device. Output unit 1907 can be any type of device capable of presenting information and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 1908 may include, but is not limited to, hard disks and optical disks. Communication unit 1909 allows computer system 1900 to exchange information / data with other devices via a network such as the Internet, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth™ devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.
[0169] The computing unit 1901 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1901 performs the various methods and processes described above. For example, in some embodiments, the methods disclosed in this disclosure can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1908. In some embodiments, part or all of the computer program can be loaded and / or installed on an electronic device via ROM 1902 and / or communication unit 1909. In some embodiments, the computing unit 1901 can be configured to perform the methods disclosed in this disclosure by any other suitable means (e.g., by means of firmware).
[0170] This disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform the methods disclosed in this disclosure.
[0171] The computer-readable storage medium in this disclosure can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The aforementioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specifically, the aforementioned computer-readable storage medium may include electrical connections based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0172] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0173] This disclosure also provides a computer program product, including a computer program, wherein the computer program, when executed by a processor, implements the methods disclosed in the embodiments of this disclosure.
[0174] In embodiments of this disclosure, computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer.
[0175] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0176] The modules, components, or units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules, components, or units do not necessarily constitute a limitation on the module, component, or unit itself.
[0177] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that can be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0178] The above description is merely an embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0179] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.
Claims
1. A game processing method, characterized in that, The method includes: Acquire the target game screen, which includes the target game items; Detect whether there is sensitive content in the image area formed by the target game item in the target game screen; If the sensitive content exists, the sensitive content shall be processed; The step of detecting whether there is sensitive content in the image area formed by the target game item in the target game screen includes: Locate each of the target game items in the target game screen to obtain a game image composed of the target game items; Extract the image features composed of the target game props from the game image; Clustering is performed on the image features to obtain the target image category to which the image features belong; If the target image category belongs to the sensitive image category, it is determined that the sensitive content exists in the image area formed by the target game prop.
2. The method according to claim 1, characterized in that, The detection of whether the image area formed by the target game item in the target game screen contains sensitive content includes: Send verification information to the first review end, wherein the verification information is the target game screen or a verification code converted from the target game screen; In response to the confirmation result from the first review terminal that the verification information contains characters, the target game screen is sent to the second review terminal; In response to the confirmation result from the second review end that the character belongs to sensitive content, it is determined that the sensitive content exists in the image area formed by the target game prop.
3. The method according to claim 1, characterized in that, Before performing clustering processing on the image features, the method further includes: The game image is preprocessed, and the preprocessing includes at least one of the following: noise reduction processing and grayscale processing; Extract the image features composed of the target game props from the preprocessed game image.
4. The method according to claim 1, characterized in that, The processing of the sensitive content includes: Obtain the number of users on the same screen corresponding to the target game screen, where the number of users on the same screen includes the number of players and / or the number of viewers; If the number of users on the same screen exceeds the threshold, the position of the game item will be reset. Alternatively, if the number of users on the same screen is not greater than the threshold for the number of users on the same screen, a prompt message is generated to prompt the player to reset the target game item.
5. The method according to any one of claims 1 to 4, characterized in that, The acquisition of the target game screen includes: Obtain the quantity of the target game item shown in the game screen; If the number of the target game items exceeds a preset threshold, the game screen is acquired, and the game screen is the target game screen.
6. The method according to claim 5, characterized in that, The acquisition of the quantity of the target game item in the game screen includes: The target game items in the game screen are processed into coordinates; Obtain the coordinates of the target game item in the game screen, and based on the coordinates, determine the quantity of the target game item.
7. A game processing device, characterized in that, The device includes: The acquisition module is used to acquire the target game screen, which includes the target game items; The detection module is used to detect whether there is sensitive content in the image area formed by the target game props in the target game screen, including: locating each of the target game props in the target game screen to obtain a game image composed of the target game props; extracting image features composed of the target game props in the game image; performing clustering processing on the image features to obtain the target image category to which the image features belong; and determining that the sensitive content exists in the image area formed by the target game props if the target image category belongs to a sensitive image category. The processing module is used to process the sensitive content when it exists.
8. An electronic device, characterized in that, include: At least one processor; Memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Virtual object control method and device in game, equipment and storage medium
CN110215685A
Game picture anomaly detection method and device, electronic equipment and storage medium
CN110942031A
