CN106651968B - Game abnormity detection method and device - Google Patents

Game abnormity detection method and device Download PDF

Info

Publication number
CN106651968B
CN106651968B CN201611207822.2A CN201611207822A CN106651968B CN 106651968 B CN106651968 B CN 106651968B CN 201611207822 A CN201611207822 A CN 201611207822A CN 106651968 B CN106651968 B CN 106651968B
Authority
CN
China
Prior art keywords
color
target color
ratio
current
initial
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.)
Active
Application number
CN201611207822.2A
Other languages
Chinese (zh)
Other versions
CN106651968A (en
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201611207822.2A priority Critical patent/CN106651968B/en
Publication of CN106651968A publication Critical patent/CN106651968A/en
Application granted granted Critical
Publication of CN106651968B publication Critical patent/CN106651968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A game anomaly detection method, the method comprising: acquiring an initial picture and acquiring a target color; calculating an initial ratio value of the target color in the initial picture; monitoring the current ratio of the target color in the current picture; and determining the game state according to the current ratio and the initial ratio of the target color. The invention also provides a game abnormity detection device. The invention can prompt the user of abnormal on-hook in time, avoid influencing game process and wasting on-hook time, and save electric quantity.

Description

Game abnormity detection method and device
Technical Field
The invention relates to the technical field of image processing, in particular to a game abnormity detection method and device.
Background
With the development of smart terminals, many games can be applied to electronic devices (such as smart phones and tablet computers). Many games have an automatic on-hook function, and when the games are in an on-hook state, the games can automatically run. During the on-hook process, if an unexpected event occurs, such as a character in the game being killed, or an application program being automatically updated or a system being updated by the electronic device, the on-hook state of the game is terminated. However, the user does not know that the on-hook state of the game is terminated, so that the game progress is influenced, and the on-hook time and the electric quantity are wasted.
Disclosure of Invention
In view of the above, it is desirable to provide a method and a device for detecting abnormal game situations, which can prompt a user to hang up abnormally, avoid influencing game progress and wasting hang up time, and save electric power.
A game abnormity detection method is applied to electronic equipment and comprises the following steps:
acquiring an initial picture and acquiring a target color;
calculating an initial ratio value of the target color in the initial picture;
monitoring the current ratio of the target color in the current picture; and
and determining the game state according to the current ratio and the initial ratio of the target color.
According to a preferred embodiment of the present invention, the acquiring the target color comprises:
classifying all colors in the RGB color pattern into a plurality of color groups;
selecting at least one color group from the plurality of color groups as a target color.
According to a preferred embodiment of the present invention, the selecting at least one color group from the plurality of color groups as the target color comprises:
calculating a ratio of each color group in the plurality of color groups in the initial picture;
sorting the occupation ratio value of each color group from large to small;
and determining the color group corresponding to the ratio of the prior preset digits as the target color.
According to a preferred embodiment of the present invention, the monitoring the current duty ratio of the target color in the current picture includes:
selecting sampling points from the current picture, and calculating the current ratio of the target color in the current picture according to the color values of the sampling points.
According to a preferred embodiment of the present invention, the determining the game state according to the current ratio and the initial ratio of the target color comprises:
calculating the change rate of the target color according to the current ratio and the initial ratio of the target color;
acquiring a preset threshold range corresponding to the target color;
when the change rate of at least one target color is not within a preset threshold range, determining that the game state is abnormal on-hook;
and prompting the user that the abnormal condition occurs when the mobile phone is hung up.
A game abnormality detection apparatus, the apparatus comprising:
the acquisition module is used for acquiring an initial picture and acquiring a target color;
the calculation module is used for calculating the initial ratio of the target color in the initial picture;
the monitoring module is used for monitoring the current ratio of the target color in the current picture; and
and the determining module is used for determining the game state according to the current ratio and the initial ratio of the target color.
According to a preferred embodiment of the present invention, the acquiring module is configured to acquire the target color, and includes:
classifying all colors in the RGB color pattern into a plurality of color groups;
selecting at least one color group from the plurality of color groups as a target color.
According to a preferred embodiment of the present invention, the selecting at least one color group from the plurality of color groups as the target color comprises:
calculating a ratio of each color group in the plurality of color groups in the initial picture;
sorting the occupation ratio value of each color group from large to small;
and determining the color group corresponding to the ratio of the prior preset digits as the target color.
According to a preferred embodiment of the present invention, the monitoring module for monitoring the current duty ratio of the target color in the current picture includes:
selecting sampling points from the current picture, and calculating the current ratio of the target color in the current picture according to the color values of the sampling points.
According to a preferred embodiment of the present invention, the determining module for determining the game state according to the current ratio and the initial ratio of the target color comprises:
calculating the change rate of the target color according to the current ratio and the initial ratio of the target color;
acquiring a preset threshold range corresponding to the target color;
when the change rate of at least one target color is not within a preset threshold range, determining that the game state is abnormal on-hook;
and prompting the user that the abnormal condition occurs when the mobile phone is hung up.
According to the technical scheme, when the game is in an on-hook state, the target color is obtained, the initial ratio of the target color in the initial picture is calculated, the current ratio of the target color in the current picture is monitored, the game state is determined according to the current ratio of the target color and the initial ratio, and when the game state is abnormal on-hook, the electronic equipment prompts a user that the on-hook state is abnormal. The invention can prompt the user that the on-hook is abnormal in time, thereby avoiding influencing the game process and wasting the on-hook time, and further saving the electric quantity.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a game anomaly detection method according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a game abnormality detection apparatus according to a preferred embodiment of the present invention.
FIG. 3 is a schematic structural diagram of an electronic device implementing a game anomaly detection method according to a preferred embodiment of the present invention.
Description of the main elements
Figure BDA0001190355990000051
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
FIG. 1 is a flow chart of a game anomaly detection method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
Preferably, the game abnormality detection method of the present invention can be applied to a plurality of electronic devices. The electronic device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may also be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), a smart wearable device, and the like.
The Network where the electronic device is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
S10, the electronic device 1 obtains an initial frame and a target color.
In at least one embodiment, the electronic device, prior to obtaining the target color, further comprises:
and acquiring a starting instruction of the game on-hook.
Specifically, the action of clicking the icon of the game on-hook by the user triggers the starting instruction of the game on-hook, and the electronic device receives the starting instruction of the game on-hook.
In at least one embodiment, after the electronic device obtains a start instruction of a game on-hook, the electronic device determines a picture displayed on the display as an initial picture.
In at least one embodiment, the display of the electronic device displays a picture using an RGB color mode. In the RGB color mode, a color value of one pixel is represented by RGB components. For example, a pure red R value of 255, a G value of 0, and a B value of 0; the white R, G, B are all 255; the black R, G, B are all 0. Therefore, there may be 16777216 colors in the display screen.
The electronic device classifies all colors in the RGB color pattern into a plurality of color groups, such as into 256 color groups, or 128 color groups (e.g., red group, yellow group, purple group, black group, purple group, etc.), e.g., divides a color value of (255,1,0), a color value of (255,1,1), a color value of (255,0,0), etc., into a red group, and so on. The electronic device may dynamically adjust the number of color groups based on operating parameters (e.g., processor load, battery level adjustment).
The electronic equipment selects at least one color group from the plurality of color groups as a target color. This can reduce the amount of calculation and increase the calculation speed.
In at least one embodiment, the electronic device calculates a ratio of each color group in the plurality of color groups in the initial picture, sorts the ratios of the color groups from large to small, and determines the color group corresponding to the ratio of the top preset digit as the target color. In other embodiments, the target color may also be set by the user.
In at least one embodiment, the number of target colors may be one or more.
S11, the electronic equipment calculates the initial ratio of the target color in the initial picture.
In at least one embodiment, the electronic device selects sampling points from the initial picture, and calculates an initial ratio of the target color in the initial picture according to color values of the sampling points. The manner of selecting the sampling point from the initial picture by the electronic device includes, but is not limited to, random sampling, and sampling at intervals of a preset number of rows and columns.
In other embodiments, the electronic device divides the initial frame into a plurality of blocks, and calculates a color similarity of each block of the initial frame. In the initial picture, the electronic device performs dense sampling on a block with the color similarity smaller than or equal to a preset similarity, performs sparse sampling on a block with the color similarity larger than the preset similarity, and the like. This can reduce the amount of calculation and increase the calculation speed.
For example, the electronic device selects 10 sampling points from the initial picture, where 4 red, 2 blue, and 4 green, the initial percentage value of red is 25%, the initial percentage value of blue is 20%, and the initial percentage value of green is 25%.
S12, the electronic equipment monitors the current proportion value of the target color in the current picture.
In at least one embodiment, the electronic device monitors a current ratio of the target color in a current frame at preset time intervals. And the electronic equipment selects sampling points from the current picture and calculates the current initial ratio value of the target color in the current picture according to the color values of the sampling points.
The manner of selecting the sampling point from the current picture by the electronic device includes, but is not limited to, random sampling, and sampling at intervals of a preset number of rows and columns.
In other embodiments, the electronic device divides the current frame into a plurality of blocks, and calculates a color similarity of each block of the current frame. In the current picture, the electronic equipment performs dense sampling on a block with the color similarity smaller than or equal to the preset similarity, performs sparse sampling on a block with the color similarity larger than the preset similarity, and the like.
And S13, the electronic equipment determines the game state according to the current ratio and the initial ratio of the target color.
In at least one embodiment, the electronic device calculates a rate of change of the target color according to a current fraction value and an initial fraction value of the target color. The electronic device may calculate the change rate in a variety of ways, for example, the change rate of the target color is equal to the initial ratio of the target color minus the current ratio of the target color, or the change rate of the target color is calculated after weighting the current ratio of the target color and the initial ratio, or the change rate of the target color is calculated through a preset calculation model.
And the electronic equipment acquires a preset threshold range corresponding to the target color. The preset threshold range corresponding to each target color may be the same or different. The preset threshold range can be set by a user in a self-defined mode.
When the change rate of at least one target color is not within a preset threshold range, the electronic equipment determines that the game state is abnormal on-hook. And the electronic equipment prompts the user that the on-hook state is abnormal. The electronic device prompts the user in a variety of ways, such as vibrating, texting, placing a phone call, and so forth. The present invention does not set any limit to the prompting mode.
And when the change rates of the target colors are all within a preset threshold range, the electronic equipment determines that the game state is a normal on-hook state.
The application scenario of the invention is as follows:
the user plays the game using the electronic device and starts the on-hook state, the first target color is green, the proportion in the initial picture is 40%, the second target color is gray, and the proportion is 10%. The electronic device detects the current ratio of the first target color and the current ratio of the second target color every preset time length (for example, 60S). After 5 minutes, the electronic equipment detects that the current proportion of the green color is 5%, the change rate of the green color is-35%, and the change rate of the green color exceeds the corresponding preset threshold range of the green color by-10% and 10%. The current percentage of gray is 12%, the rate of change of gray is 2%, and the rate of change of gray does not exceed the preset threshold range [ -5%, 5% ] corresponding to gray. And because the change rate of the green color exceeds the range of the corresponding preset threshold value of the green color, the electronic equipment vibrates and gives out warning sound to prompt the user.
When the game is in an on-hook state, the method acquires a target color, calculates an initial ratio of the target color in the initial picture, monitors the current ratio of the target color in the current picture, determines a game state according to the current ratio and the initial ratio of the target color, and prompts a user that the on-hook state is abnormal when the game state is abnormal on-hook. The invention can prompt the user that the on-hook is abnormal in time, thereby avoiding influencing the game process and wasting the on-hook time and saving the electric quantity.
As shown in fig. 2, a functional block diagram of an embodiment of the game abnormality detection apparatus of the present invention. The game abnormality detection device 11 includes an acquisition module 100, a calculation module 101, a monitoring module 102, and a determination module 103. The module referred to in the present invention refers to a series of computer program segments capable of being executed by the processor 13 and performing a fixed function, which are stored in the memory 12. In the present embodiment, the functions of the modules will be described in detail in the following third and fourth embodiments.
The obtaining module 100 is configured to obtain an initial frame and a target color.
In at least one embodiment, the obtaining module 100 further comprises, before obtaining the target color:
and acquiring a starting instruction of the game on-hook.
Specifically, the action of clicking the icon of the game on-hook by the user triggers the starting instruction of the game on-hook, and the electronic device receives the starting instruction of the game on-hook.
In at least one embodiment, after the obtaining module 100 obtains a start instruction of a game on-hook, the obtaining module 100 determines a picture displayed on the display as an initial picture.
In at least one embodiment, the display of the electronic device displays a picture using an RGB color mode. In the RGB color mode, a color value of one pixel is represented by RGB components. For example, a pure red R value of 255, a G value of 0, and a B value of 0; the white R, G, B are all 255; the black R, G, B are all 0. Therefore, there may be 16777216 colors in the display screen.
The obtaining module 100 classifies all colors in the RGB color pattern into a plurality of color groups, such as 256 color groups, or 128 color groups (such as red group, yellow group, purple group, black group, purple group, etc.), for example, a color value of (255,1,0), a color value of (255,1,1), a color value of (255,0,0), etc. are classified into red groups, and so on. The obtaining module 100 may dynamically adjust the number of color groups according to the operating parameters (e.g., processor load, battery level adjustment).
The obtaining module 100 selects at least one color group from the plurality of color groups as a target color. This can reduce the amount of calculation and increase the calculation speed.
In at least one embodiment, the obtaining module 100 calculates a ratio of each color group in the plurality of color groups in the initial image, sorts the ratios of the color groups from large to small, and determines the color group corresponding to the ratio of the first preset digit as the target color. In other embodiments, the target color may also be set by the user.
In at least one embodiment, the number of target colors may be one or more.
The calculating module 101 is configured to calculate an initial ratio of the target color in the initial frame.
In at least one embodiment, the calculation module 101 selects sample points from the initial picture, and calculates an initial ratio of the target color in the initial picture according to color values of the sample points. The manner of selecting the sampling point from the initial frame by the computing module 101 includes, but is not limited to, random sampling, and sampling with a preset number of rows and columns at intervals.
In other embodiments, the calculating module 101 divides the initial picture into a plurality of blocks, and calculates the color similarity of each block of the initial picture. In the initial picture, the calculation module 101 performs dense sampling on a block with a color similarity smaller than or equal to a preset similarity, performs sparse sampling on a block with a color similarity larger than the preset similarity, and the like. This can reduce the amount of calculation and increase the calculation speed.
For example, the electronic device selects 10 sampling points from the initial picture, where 4 red, 2 blue, and 4 green, the initial percentage value of red is 25%, the initial percentage value of blue is 20%, and the initial percentage value of green is 25%.
The monitoring module 102 monitors a current ratio of the target color in a current frame.
In at least one embodiment, the monitoring module 102 monitors a current ratio of the target color in a current frame according to a preset time interval. The monitoring module 102 selects a sampling point from the current picture, and calculates a current initial ratio value of the target color in the current picture according to a color value of the sampling point.
The manner of selecting the sampling point from the current frame by the monitoring module 102 includes, but is not limited to, random sampling, and sampling with a preset number of rows and columns at intervals.
In other embodiments, the monitoring module 102 divides the current frame into a plurality of blocks, and calculates a color similarity of each block of the current frame. In the current frame, the monitoring module 102 performs dense sampling on a block with a color similarity smaller than or equal to a preset similarity, performs sparse sampling on a block with a color similarity larger than the preset similarity, and the like.
The determining module 103 is configured to determine a game state according to the current ratio and the initial ratio of the target color.
In at least one embodiment, the determination module 103 calculates the change rate of the target color according to the current and initial fraction values of the target color. The determining module 103 may calculate the change rate in a variety of ways, for example, the change rate of the target color is equal to the initial ratio of the target color minus the current ratio of the target color, or the change rate of the target color is calculated after weighting the current ratio of the target color and the initial ratio, or the change rate of the target color is calculated through a preset calculation model.
The determining module 103 obtains a preset threshold range corresponding to the target color. The preset threshold range corresponding to each target color may be the same or different. The preset threshold range can be set by a user in a self-defined mode.
When the change rate of at least one target color is not within the preset threshold range, the determining module 103 determines that the game state is abnormal on-hook. The determining module 103 prompts the user that an abnormality occurs on-hook. The determination module 103 prompts the user in a variety of ways, such as vibrating, texting, placing a phone call, and so forth. The present invention does not set any limit to the prompting mode.
When the change rates of the target colors are all within the preset threshold range, the determining module 103 determines that the game state is a normal on-hook state.
The application scenario of the invention is as follows:
the user plays the game using the electronic device and starts the on-hook state, the first target color is green, the proportion in the initial picture is 40%, the second target color is gray, and the proportion is 10%. The electronic device detects the current ratio of the first target color and the current ratio of the second target color every preset time length (for example, 60S). After 5 minutes, the electronic equipment detects that the current proportion of the green color is 5%, the change rate of the green color is-35%, and the change rate of the green color exceeds the corresponding preset threshold range of the green color by-10% and 10%. The current percentage of gray is 12%, the rate of change of gray is 2%, and the rate of change of gray does not exceed the preset threshold range [ -5%, 5% ] corresponding to gray. And because the change rate of the green color exceeds the range of the corresponding preset threshold value of the green color, the electronic equipment vibrates and gives out warning sound to prompt the user.
When the game is in an on-hook state, the method acquires a target color, calculates an initial ratio of the target color in the initial picture, monitors the current ratio of the target color in the current picture, determines a game state according to the current ratio and the initial ratio of the target color, and prompts a user that the on-hook state is abnormal when the game state is abnormal on-hook. The invention can prompt the user that the on-hook is abnormal in time, thereby avoiding influencing the game process and wasting the on-hook time and saving the electric quantity.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention.
As shown in fig. 3, fig. 3 is a schematic structural diagram of an electronic device for implementing a game abnormality detection method according to a preferred embodiment of the present invention. The electronic device 1 comprises a memory 12, a processor 13 and a display 14.
The electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and its hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like. The electronic device 1 includes, but is not limited to: any electronic product can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
Examples of the smart wearable device include a Personal computer, a tablet pc, a smart phone, a Personal Digital Assistant (PDA), a game machine, an Internet Protocol Television (IPTV), and a smart wearable device.
The Network where the electronic device 1 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The memory 12 is used for storing a program and various data of a game abnormality detection method and realizing high-speed and automatic access of the program or the data in the operation process of the electronic device 1. The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the Memory 12 may be a circuit having a Memory function without any physical form in the integrated circuit, such as a RAM (Random-Access Memory), a FIFO (First in First Out), and the like. Alternatively, the memory 12 may be a memory in a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The processor 13 is also called a Central Processing Unit (CPU), and is an ultra-large scale integrated circuit, which is an operation Core (Core) and a Control Core (Control Unit) of the electronic device 1. The processor 13 may execute an operating system of the electronic device 1 and various installed application programs, program codes, etc., such as the game abnormality detecting apparatus 11.
The display 14 may be a display screen or the like having a display function.
With reference to fig. 1, the memory 12 of the electronic device 1 stores a plurality of instructions to implement a game anomaly detection method, and the processor 13 can execute the plurality of instructions to implement: acquiring an initial picture and acquiring a target color; calculating an initial ratio value of the target color in the initial picture; monitoring the current ratio of the target color in the current picture; and determining the game state according to the current ratio and the initial ratio of the target color.
According to a preferred embodiment of the present invention, the plurality of instructions executed by the processor 13 further includes:
classifying all colors in the RGB color pattern into a plurality of color groups;
selecting at least one color group from the plurality of color groups as a target color.
According to a preferred embodiment of the present invention, the plurality of instructions executed by the processor 13 further includes:
calculating a ratio of each color group in the plurality of color groups in the initial picture;
sorting the occupation ratio value of each color group from large to small;
and determining the color group corresponding to the ratio of the prior preset digits as the target color.
According to a preferred embodiment of the present invention, the plurality of instructions executed by the processor 13 further includes:
selecting sampling points from the current picture, and calculating the current ratio of the target color in the current picture according to the color values of the sampling points.
According to a preferred embodiment of the present invention, the plurality of instructions executed by the processor 13 further includes:
calculating the change rate of the target color according to the current ratio and the initial ratio of the target color;
acquiring a preset threshold range corresponding to the target color;
when the change rate of at least one target color is not within a preset threshold range, determining that the game state is abnormal on-hook;
and prompting the user that the abnormal condition occurs when the mobile phone is hung up.
Specifically, the specific implementation method of the processor 13 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, and specifically, the specific implementation method of the processor 13 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 3, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, 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 modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention 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 module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (8)

1. A game abnormity detection method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring an initial picture and acquiring a target color;
calculating an initial ratio value of the target color in the initial picture;
monitoring the current ratio of the target color in the current picture; and
determining a game state according to the current ratio and the initial ratio of the target color, including: calculating the change rate of the target color according to the current ratio and the initial ratio of the target color; acquiring a preset threshold range corresponding to the target color; when the change rate of at least one target color is not within a preset threshold range, determining that the game state is abnormal on-hook; and prompting the user that the abnormal condition occurs when the mobile phone is hung up.
2. The game abnormality detection method according to claim 1, wherein said acquiring a target color includes:
classifying all colors in the RGB color pattern into a plurality of color groups;
selecting at least one color group from the plurality of color groups as a target color.
3. The game abnormality detection method according to claim 2, wherein said selecting at least one color group from the plurality of color groups as a target color comprises:
calculating a ratio of each color group in the plurality of color groups in the initial picture;
sorting the occupation ratio value of each color group from large to small;
and determining the color group corresponding to the ratio of the prior preset digits as the target color.
4. The game abnormality detection method according to claim 1, wherein said monitoring a current duty value of said target color in a current frame includes:
selecting sampling points from the current picture, and calculating the current ratio of the target color in the current picture according to the color values of the sampling points.
5. A game abnormality detection apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring an initial picture and acquiring a target color;
the calculation module is used for calculating the initial ratio of the target color in the initial picture;
the monitoring module is used for monitoring the current ratio of the target color in the current picture; and
the determining module is used for determining the game state according to the current ratio and the initial ratio of the target color, and comprises: calculating the change rate of the target color according to the current ratio and the initial ratio of the target color; acquiring a preset threshold range corresponding to the target color; when the change rate of at least one target color is not within a preset threshold range, determining that the game state is abnormal on-hook; and prompting the user that the abnormal condition occurs when the mobile phone is hung up.
6. The game abnormality detection apparatus according to claim 5, wherein said acquisition module for acquiring a target color includes:
classifying all colors in the RGB color pattern into a plurality of color groups;
selecting at least one color group from the plurality of color groups as a target color.
7. The game abnormality detection apparatus according to claim 6, wherein said selecting at least one color group from the plurality of color groups as a target color comprises:
calculating a ratio of each color group in the plurality of color groups in the initial picture;
sorting the occupation ratio value of each color group from large to small;
and determining the color group corresponding to the ratio of the prior preset digits as the target color.
8. The game abnormality detection apparatus according to claim 5, wherein the monitoring module for monitoring a current duty value of the target color in a current screen includes:
selecting sampling points from the current picture, and calculating the current ratio of the target color in the current picture according to the color values of the sampling points.
CN201611207822.2A 2016-12-23 2016-12-23 Game abnormity detection method and device Active CN106651968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611207822.2A CN106651968B (en) 2016-12-23 2016-12-23 Game abnormity detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611207822.2A CN106651968B (en) 2016-12-23 2016-12-23 Game abnormity detection method and device

Publications (2)

Publication Number Publication Date
CN106651968A CN106651968A (en) 2017-05-10
CN106651968B true CN106651968B (en) 2020-01-10

Family

ID=58826972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611207822.2A Active CN106651968B (en) 2016-12-23 2016-12-23 Game abnormity detection method and device

Country Status (1)

Country Link
CN (1) CN106651968B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376781B (en) * 2018-10-24 2022-05-06 深圳市腾讯网络信息技术有限公司 Training method of image recognition model, image recognition method and related device
CN111277724B (en) * 2020-02-10 2022-03-15 Oppo(重庆)智能科技有限公司 Detection method and device for abnormal operation application, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714257A (en) * 2009-12-23 2010-05-26 公安部第三研究所 Method for main color feature extraction and structuring description of images
CN103678841A (en) * 2012-09-03 2014-03-26 人人游戏网络科技发展(上海)有限公司 Monitoring alarm method and device for game
JP2015036078A (en) * 2013-08-14 2015-02-23 株式会社北電子 Game parlor system, device for game parlor, and method for detecting suspicious person
CN104537664A (en) * 2014-12-25 2015-04-22 合肥寰景信息技术有限公司 Method for distinguishing abnormal conditions of monitoring camera on basis of background comparison
CN105653407A (en) * 2015-12-08 2016-06-08 网易(杭州)网络有限公司 Terminal, jam measuring method, device, game jam measuring method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714257A (en) * 2009-12-23 2010-05-26 公安部第三研究所 Method for main color feature extraction and structuring description of images
CN103678841A (en) * 2012-09-03 2014-03-26 人人游戏网络科技发展(上海)有限公司 Monitoring alarm method and device for game
JP2015036078A (en) * 2013-08-14 2015-02-23 株式会社北電子 Game parlor system, device for game parlor, and method for detecting suspicious person
CN104537664A (en) * 2014-12-25 2015-04-22 合肥寰景信息技术有限公司 Method for distinguishing abnormal conditions of monitoring camera on basis of background comparison
CN105653407A (en) * 2015-12-08 2016-06-08 网易(杭州)网络有限公司 Terminal, jam measuring method, device, game jam measuring method and apparatus

Also Published As

Publication number Publication date
CN106651968A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN108153503B (en) Display control method and related product
CN109375983B (en) Method for automatically adjusting input method window in terminal
CN109726885A (en) Electricity consumption anomaly assessment method, apparatus, equipment and computer storage medium
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN110825458A (en) Background application cleaning method and device and computer readable storage medium
CN106651968B (en) Game abnormity detection method and device
CN108512989B (en) Message prompting method and device
CN106445715B (en) The report method and device of pedometer message
CN108875502A (en) Face identification method and device
CN112067211B (en) Method and device for judging SF6 gas leakage in GIS sleeve, electronic equipment and storage medium
CN111277724B (en) Detection method and device for abnormal operation application, electronic equipment and storage medium
CN106445698B (en) Method and device for acquiring step counting data
CN104598139B (en) A kind of information processing method and electronic equipment
CN109815082B (en) KAFKA theme monitoring method and device, electronic equipment and storage medium
CN108681531B (en) Document input control method and device
CN111143631B (en) Data processing method and device, storage medium and electronic equipment
CN112347902A (en) Method for performing touch interaction by using camera, electronic equipment and storage medium
CN112527539B (en) Interface detection method and related device
CN108307060B (en) Electronic equipment, fall protection method and related product
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN113031812A (en) Touch event reporting method and device, terminal and storage medium
CN107895563B (en) Display control method and device, terminal and computer readable storage medium
CN112770014A (en) Static frame detection method and device and readable storage medium
CN112084092A (en) Method, device, equipment and storage medium for determining diagnosis rule
CN109739598A (en) A kind of bright screen method and device of terminal, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant