Game data processing method and device, signal processing terminal and electronic equipment

By monitoring the changes in the number of props in the shooting game interface image and driving the motor vibration, the problem of leakage or error in mobile games is solved, and higher vibration control accuracy and user experience are achieved.

CN115382200BActive Publication Date: 2025-08-22SHANGHAI AWINIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110566853.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-24
Publication Date
2025-08-22
Estimated Expiration
2041-05-24

AI Technical Summary

Technical Problem

In existing shooting mobile games, there are leakage or incorrect vibration control in mobile phone vibration control, resulting in poor user experience.

Method used

By obtaining the number of props in the game interface image, comparing the two adjacent frame images and determining whether the number of props has changed, driving the motor vibration to achieve precise control.

Benefits of technology

Avoid vibration leakage or misalignment, improves the control accuracy of motor vibration and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115382200B_ABST
    Figure CN115382200B_ABST
Patent Text Reader

Abstract

The present application provides a game data processing method and device, a signal processing terminal, and an electronic device. The game data processing method includes: obtaining two adjacent frames of interface images of a currently running game, wherein the information corresponding to the interface images includes a prop quantity identifier; comparing the prop quantity identifiers in the two adjacent frames of the interface images to determine whether the number of props in the prop quantity identifiers has decreased; and if the number of props has decreased, driving the motor to vibrate. In other words, the present invention monitors the changes in the prop quantity identifiers in the game and controls the motor vibration according to the changes in the prop quantity identifiers. Since the prop quantity identifiers represent the number of props on the user's side, controlling the motor vibration as the prop quantity identifiers change can avoid missed vibrations or false vibrations, thereby improving the control accuracy of the motor vibration and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a game data processing method and device, a signal processing terminal, and electronic equipment. Background Art

[0002] Mobile games have gradually become a daily leisure and entertainment activity for people. In shooting mobile games, players compete with other players by controlling the movement and shooting of characters. In order to provide users with a better experience in this process, game designers have designed a system that triggers the phone to vibrate according to the sound of gunfire, allowing users to experience the game effect that combines visuals and dynamics during the shooting process.

[0003] However, in the prior art, mobile phone vibration control for shooting mobile phone games may suffer from missed vibrations or false vibrations, resulting in low vibration accuracy and poor user experience. Summary of the Invention

[0004] In view of this, the present invention provides a game data processing method and device, a signal processing terminal and an electronic device to solve the problem of low mobile phone vibration control accuracy during shooting in mobile phone games, resulting in a poor user experience.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A game data processing method is applied to an electronic device with a motor, the game data processing method comprising:

[0007] Obtain two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes an identifier of the number of props;

[0008] Comparing the item quantity identifiers in two adjacent frames of the interface image to determine whether the item quantity identifiers have changed;

[0009] If the prop quantity indicator changes, the motor is driven to vibrate.

[0010] Preferably, in the above-mentioned game data processing method, the determining whether the prop quantity identifier has changed specifically includes:

[0011] Identify the number representing the number of props in the area where the prop quantity mark is located;

[0012] Determine whether the number representing the number of props has changed.

[0013] Preferably, in the above-mentioned game data processing method, the step of identifying the number representing the number of props in the area where the prop quantity identifier is located specifically includes:

[0014] Locating the area where the quantity mark of the props is located;

[0015] Segmenting the region to extract multiple connected regions;

[0016] extracting contours of a plurality of the connected regions;

[0017] The corresponding number is identified according to the outline.

[0018] Preferably, in the above-mentioned game data processing method, segmenting the region to extract multiple connected regions specifically includes:

[0019] gray-scaling the regional image of the region;

[0020] Improve the image contrast of the grayscaled area image;

[0021] Binarize the image after improving the image contrast;

[0022] Extract multiple connected components from a binary image.

[0023] Preferably, in the above-mentioned game data processing method, extracting the contours of the plurality of connected areas specifically includes:

[0024] The contour of the connected region is extracted by calculating the gradient of the image where the connected region is located.

[0025] Preferably, in the above-mentioned game data processing method, identifying the corresponding number according to the outline specifically includes:

[0026] Set different label values ​​for each contour;

[0027] The number represented by the contour is determined according to the label value.

[0028] A game data processing device, comprising:

[0029] An image acquisition module is used to obtain two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes an identifier of the number of props;

[0030] The prop quantity recognition module is used to compare the prop quantity identifiers in two adjacent frames of interface images, determine whether the prop quantity identifiers have changed, and send a control instruction when the prop quantity identifiers have changed;

[0031] The motor driving chip is used to receive the control instruction and drive the motor to vibrate.

[0032] Preferably, in the above-mentioned game data processing device, the prop quantity identification module includes:

[0033] A digital recognition unit, used to recognize the number representing the number of props in the area where the prop quantity mark is located;

[0034] The digital judgment unit is used to judge whether the number representing the number of props has changed.

[0035] Preferably, in the above-mentioned game data processing device, the digital recognition unit specifically includes:

[0036] A positioning subunit, used to locate the area where the prop quantity mark is located;

[0037] A connected region extraction subunit, configured to segment the region and extract multiple connected regions;

[0038] A contour extraction subunit, configured to extract contours of a plurality of connected regions;

[0039] The number recognition subunit is used to recognize the corresponding number according to the outline.

[0040] Preferably, in the above-mentioned game data processing device, the connected region extraction subunit is specifically used to:

[0041] gray-scaling the regional image of the region;

[0042] Improve the image contrast of the grayscaled area image;

[0043] Binarize the image after improving the image contrast;

[0044] Extract multiple connected components from a binary image.

[0045] Preferably, in the above-mentioned game data processing device, the outline extraction subunit is specifically used to:

[0046] The contour of the connected region is extracted by calculating the gradient of the image where the connected region is located.

[0047] Preferably, in the above-mentioned game data processing device, the digital recognition subunit is specifically used to:

[0048] Set different label values ​​for each contour;

[0049] The number represented by the contour is determined according to the label value.

[0050] A signal processing terminal, comprising: a processor and a memory;

[0051] The memory is used to store pre-set control instructions and data generated during the operation of the processor;

[0052] The processor is used to read the control instructions stored in the memory and execute any one of the above-mentioned game data processing methods.

[0053] An electronic device comprising any one of the above-mentioned game data processing devices;

[0054] or,

[0055] The electronic device includes the signal processing terminal mentioned above.

[0056] Through the above technical solution, it can be seen that the game data processing method provided by the present invention includes: obtaining two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes a prop quantity identifier; comparing the prop quantity identifiers in the two adjacent frames of the interface images to determine whether the number of props in the prop quantity identifiers has decreased; if the number of props has decreased, driving the motor to vibrate. In other words, the present invention monitors the changes in the prop quantity identifiers in the game and controls the motor vibration according to the changes in the prop quantity identifiers. Since the prop quantity identifier represents the number of props on the user's side, controlling the motor vibration as the prop quantity identifier changes can avoid missed vibrations or false vibrations, thereby improving the control accuracy of the motor vibration and enhancing the user experience.

[0057] The present invention also provides a game data processing device for implementing the above-mentioned game data processing method, so that the motor can vibrate as the number of props changes, making the control of motor vibration more precise, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0059] Figure 1 A flowchart of a method for processing game data according to an embodiment of the present invention;

[0060] Figure 2 A schematic diagram of an interface image of a currently running game provided by an embodiment of the present invention;

[0061] Figure 3 A flow chart of a method for identifying numbers in a prop quantity identifier provided by an embodiment of the present invention;

[0062] Figure 4 A flow chart of a method for extracting multiple connected regions provided by an embodiment of the present invention;

[0063] Figure 5 A schematic diagram of the outline of the connected region of digits 0 to 9 extracted according to an embodiment of the present invention;

[0064] Figure 6 A tree diagram of a digital recognition algorithm provided by an embodiment of the present invention;

[0065] Figure 7 A schematic diagram of a game data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] As described in the background technology section, in the prior art, when shooting in shooting mobile phone games, the vibration control accuracy of the mobile phone is low, resulting in a poor user experience.

[0067] The inventors discovered that the reason for this phenomenon is that the existing technology uses sound thresholds for different gun types to detect gunshots and simultaneously control the phone's motor vibration. However, because the sound thresholds vary for different gun types, it's difficult to accurately determine whether the gunshot is your own or someone else's. This can lead to missed or false vibrations in the phone, resulting in a poor user experience.

[0068] Based on this, the present invention provides a game data processing method, which is applied to an electronic device with a motor. The game data processing method includes:

[0069] Obtain two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes an identifier of the number of props; optionally, the props include but are not limited to bullets;

[0070] Comparing the item quantity identifiers in two adjacent frames of the interface image to determine whether the number of items in the item quantity identifiers has decreased;

[0071] If the amount of the props decreases, the motor is driven to vibrate.

[0072] The game data processing method provided by the present invention includes: obtaining two adjacent frames of interface images of a currently running game, wherein the information corresponding to the interface images includes a prop quantity identifier; comparing the prop quantity identifiers in the two adjacent frames of the interface images to determine whether the prop quantity identifier has decreased; and if the number of props in the prop quantity identifier has decreased, driving a motor to vibrate. In other words, the present invention monitors changes in the prop quantity identifier in the game and controls the motor vibration accordingly. Since the prop quantity identifier represents the number of props owned by the user, controlling the motor vibration as the prop quantity identifier changes can avoid missed or false vibrations, thereby improving the control accuracy of the motor vibration and enhancing the user experience.

[0073] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0074] See Figure 1 , Figure 1 This is a flow chart of a method for processing game data according to an embodiment of the present invention. The method is applied to an electronic device with a motor. The method includes:

[0075] S101: Acquire two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes an identifier of the number of props;

[0076] Optionally, the props include but are not limited to bullets.

[0077] It should be noted that this embodiment does not limit the type of specific game. As long as it involves a game that needs to be linked with the motor vibration of an electronic device, the game process can be interacted with the vibration control of the motor to improve the user experience. Optionally, the game can be a shooting game, such as a gun battle game, where the interface image of the currently running game includes the number of bullets, and each shot results in one less bullet. Thus, by changing the number of bullets and coordinating the motor vibration, the motor vibration and the shooting are synchronized, thereby improving the user experience. The shooting game can also be a similar gun battle game, such as a slingshot game, where the corresponding props are marbles, that is, the interface image of the currently running game includes the number of marbles. By changing the number of marbles, the motor vibration is controlled, and the motor vibration can also be synchronized with the slingshot ejection, thereby improving the user experience of the slingshot game.

[0078] In addition, the game can also be a sword-cutting game, and the number of props corresponds to the number of swords. Therefore, as long as the number of props changes and motor vibration is required for human-computer interaction, the data processing method described in the present invention can be applied, and this will not be elaborated in this embodiment.

[0079] The following embodiments of the present invention are mainly described using a shooting game, and other games can be replaced according to the content described in the embodiments of the present invention.

[0080] In this embodiment, two adjacent frames of the currently running interface image are obtained by obtaining an image signal of a shooting game from the system end. The image signal can be image data output after decoding an image file in various formats. The image data is then processed into an 8-bit unsigned integer. Here, the electronic product is a mobile phone, and a shooting game is used as an example to illustrate. A frame of RGB three-color 24-bit depth image data is obtained from the mobile phone system end every 85ms.

[0081] See Figure 2 , Figure 2 This is a schematic diagram of an interface image of a currently running game provided by an embodiment of the present invention; wherein the interface image includes the number of props - bullets, such as Figure 2 As shown in area 10, the number of bullets can be expressed as 35 / 173. The number before the slash represents the number of bullets remaining, while the number after the slash represents the total number of bullets in a particular gun. After firing a shot, the number before the slash decreases by 1, indicating that one bullet has been removed.

[0082] In this embodiment, by obtaining two adjacent frames of interface images of the currently running game, it is determined whether the number of bullets has changed. When the number of bullets has changed, the motor vibration is controlled to achieve precise control of the motor vibration.

[0083] S102: Compare the item quantity identifiers in two adjacent frames of interface images to determine whether the item quantity identifiers have changed;

[0084] It should be noted that to determine whether the item quantity indicator has changed, it is first necessary to identify the number representing the item quantity within the area where the item quantity indicator is located. Based on whether the number representing the item quantity has changed, the change in the item quantity indicator can be determined. While static bullet count recognition is relatively easy, in shooting games, when bullets are fired continuously, the number of bullets changes very quickly and gradually. The number representing the number of bullets can become smaller and grayer, larger and brighter, or even blurred. Furthermore, when other scenes are superimposed, the background of the bullet count will also change accordingly. Therefore, using conventional methods, it is difficult to accurately and real-timely identify changes in the bullet count. Therefore, a new method is needed to determine changes in item quantity indicators and improve the recognition results of item quantity indicators in interface images.

[0085] After research, the inventor provides a method that can accurately identify the number of props. Figure 3 As shown, Figure 3 A flowchart of a method for identifying numbers in a prop quantity identifier provided by an embodiment of the present invention specifically includes:

[0086] S201: Locate the area where the item quantity mark is located;

[0087] See Figure 2 As you can see, the interface image of the currently running game includes the area where the item quantity indicator is displayed, which is shown as 10. Therefore, first locate the gun frame, and then intercept the fixed area in the lower left corner of the gun frame, which is the area of ​​the bullet quantity. This area needs to be scaled accordingly as the gun frame scales. The lower left corner of the bullet quantity area coincides with the lower left corner of the gun frame, and the width is 5 / 6 of the gun frame height, and the height is 2 / 5 of the gun frame height.

[0088] It should be noted that this embodiment uses shooting games as an example for explanation. Usually, the number of bullets in shooting games is bound to the corresponding gun type, and the gun is bound to the gun frame. Therefore, by detecting the gun frame, the area where the number of bullets is located can be located.

[0089] If it is other game interfaces, we can also find this pattern and see if the number of bullets has a relative position relationship with some easily identifiable features. By identifying the position of these features, we can locate the area where the number of bullets is located. If the area where the number of bullets is located has no correlation with other areas, we can start from some features of the area where the number of bullets is located, such as Figure 2 As shown in the interface image, you can also locate the numeric area by identifying the slash.

[0090] That is to say, in other embodiments of the present invention, the area where the prop quantity mark is located may have other properties, so positioning can be performed based on the properties of the area where the prop quantity mark is located. This will not be described in detail in this embodiment.

[0091] S202: Segment the region to extract multiple connected regions;

[0092] See Figure 4 , Figure 4 This is a flow chart of a method for extracting multiple connected regions provided by an embodiment of the present invention. In this embodiment, the region is segmented and multiple connected regions are extracted, specifically including:

[0093] S2021: grayscale the regional image of the region;

[0094] In this embodiment, the image of the area where the prop quantity mark extracted in the previous step is located is grayscaled.

[0095] S2022: improving the image contrast of the grayscaled regional image;

[0096] The image contrast is improved by performing histogram equalization on the grayscale image.

[0097] S2023: binarizing the image after improving the image contrast;

[0098] By setting a fixed threshold, the equalized image is binarized. The specific value of the fixed threshold is not limited in this embodiment. For example, the color of the static number of bullets in the interface image is whitish, and the number of gray bullets in the changing process is also whitish after histogram equalization. Through a large amount of analysis, it can be known that the pixels of the number of bullets that are whitish are basically between 230 and 255, and other background pixels are basically below 200. In order to be able to separate the number of bullets that are whitish, a threshold of 220 is set. All pixels above 220 are changed to 255 white, and all pixels below 220 are changed to black, thereby separating the number of bullets. Here, 210, 215, 225, etc. can also be set, as long as the number of bullets can be well separated from the background. The optional fixed threshold in this embodiment is 220.

[0099] S2024: Extract multiple connected regions from the binary image.

[0100] Finally, multiple connected regions can be extracted from the binary image.

[0101] It should be noted that in order to remove connected areas that do not meet the characteristics of numbers and slashes, optionally, a step of screening connected areas is also included, specifically including: limiting by features such as area and aspect ratio, removing connected areas whose area, aspect ratio, etc. obviously do not meet the characteristics of numbers and slashes, so that all numbers and slashes can be separated, and numbers and slashes can be distinguished by angle limitation, and the slash angle is about 66°.

[0102] S203: extracting contours of a plurality of connected regions;

[0103] Since the connected area after binarization has the largest jump in image pixels from black to white or from white to black, the contour of the connected area is extracted by calculating the gradient of the image where the connected area is located.

[0104] Specifically, the embodiment of the present invention provides a specific code as follows: wherein m, n represent the height and width of the image respectively, I x Represents the horizontal gradient, I y Represents the vertical gradient, I is the binary image, I g is the final image gradient, that is, the image contour.

[0105] I x =zeros(m,n);

[0106] I y =zeros(m,n);

[0107] I x =|I(j+1)–I(j)|;

[0108] Iy =|I(i+1)–I(i)|;

[0109] if(I x =I y ){

[0110] I g =I x ;

[0111] }else{

[0112] I g =I x +Iy;

[0113] }

[0114] Where x represents the row, y represents the column, |I(j+1)–I(j)| represents the absolute value of the next column minus the previous column, and |I(i+1)–I(i)| represents the absolute value of the next row minus the previous row. If the binary image I has m rows and n columns, then the range of j is (1, n-1) and the range of i is (1, m-1).

[0115] S204: Identify corresponding numbers according to the outline.

[0116] like Figure 5 As shown, Figure 5 The following is a schematic diagram of the contours of the connected regions of the digits 0 to 9. By setting different label values ​​for each contour, the digit represented by the contour is determined based on the label value.

[0117] The label values ​​include the number of closed contours, the aspect ratio of the connected area, the number of contours in the upper half, the number of contours in the lower half, the ratio of the width of the connected area in the first and second rows to the total width of the digit, the ratio of the width of the connected area in the first and second rows to the total width of the digit, the maximum value of the last two pixels in the first quarter row of the contour, and other labels. As long as the label values ​​can distinguish multiple digits, this is not limited in this embodiment.

[0118] For example, see Figure 5 , the number of contours of each connected region is counted as CNT. It can be seen that the number 8 has three contours, two inner contours and one outer contour; the numbers 0, 6, and 9 have two contours, one inner contour and one outer contour; the numbers 1, 2, 3, 4, 5, and 7 each have only one outer contour. The number 8 can be identified by the label value - the number of contours. The tree diagram of the number recognition algorithm provided in this embodiment is as follows Figure 6 As shown, the algorithm idea is described as follows:

[0119] S2041: Calculate the aspect ratio DIV of the connected area. If DIV>4, the value is 1. Otherwise, the next step is to proceed to S2042 for determination.

[0120] S2042: If CNT=3, it is the number 8. If CNT=2, the next step is to proceed to S2043 for determination. If CNT=1, the next step is to proceed to S2045 for determination.

[0121] S2043: Count the number of contours in the upper half of the connected area CNT_UP. If CNT_UP=1, it is 6. Otherwise, the next step is to proceed to S2044 for determination.

[0122] S2044: Count the number of contours in the lower half of the connected region CNT_DOWN. If CNT_DOWN=1, the number is 9, otherwise the number is 0.

[0123] S2045: Calculate the ratio DIV_FIRST of the maximum number of white pixels in the first and second rows of the contour to the width of the connected area. If DIV_FIRST < 0.5, the value is 4. Otherwise, the next step is to proceed to S2046 for determination.

[0124] S2046: Calculate the ratio DIV_LAST of the maximum number of white pixels in the last two rows of the contour to the width of the connected area. If DIV_LAST < 0.5, the value is 7. Otherwise, the next step is to proceed to S2047 for determination.

[0125] S2047: Calculate the maximum value MAX1 of the last two coordinate points of the contour quarter row. If MAX1 = 0, it is the number 5. Otherwise, the next step goes to S2048 for determination.

[0126] S2048: Calculate the maximum value MAX2 of the last two coordinate points of the three-quarters line of the contour. If MAX2 = 0, it is the number 2, otherwise it is the number 3;

[0127] Traverse from left to right from the middle of the area where the number of bullets is located. The first connected area is the first number to be recognized, the second connected area is the second number to be recognized, and so on, until a slash is encountered.

[0128] The code is as follows: slant represents a slash, region represents a connected region, bullet_recognize is a digital recognition algorithm, index is the recognition result corresponding to each digital connected region, and result is the final recognized number of bullets.

[0129] result = 0;

[0130] while(!slant){

[0131] index=bullet_recognize(region);

[0132] result = result * 10 + index;

[0133] }

[0134] It can be seen that the number representing the number of bullets can be identified through the number recognition method provided by the present invention.

[0135] It should be noted that, in this embodiment, Figure 5 The numbers in the font shown are identified. When the numbers are in other font types, different corresponding label values ​​can be set according to the characteristics of the font type to identify the numbers and obtain the result of the number of bullets.

[0136] S103: If the prop quantity indicator changes, the motor is driven to vibrate.

[0137] When it is determined that the number of bullets has changed, the motor is driven to vibrate through control instructions, so that the motor vibrates according to the change in the number of bullets, avoiding the situation of missed vibration or false vibration caused by using gunshot to control the vibration of the motor, and improving the user experience.

[0138] Based on the same inventive concept, the present invention also provides a game data processing device, such as Figure 7 As shown, Figure 7 A schematic diagram of a game data processing device provided in an embodiment of the present invention, wherein the game data processing device includes:

[0139] An image acquisition module 21 is used to obtain two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes a prop quantity identifier; optionally, the props include but are not limited to bullets;

[0140] The prop quantity identification module 22 is used to compare the prop quantity identifiers in two adjacent frames of the interface image, determine whether the prop quantity identifier has changed, and send a control instruction when the prop quantity identifier has changed;

[0141] The motor driving chip 23 is used to receive the control instruction and drive the motor 24 to vibrate.

[0142] In this embodiment, to determine whether the item quantity indicator has changed, it is first necessary to identify the number representing the item quantity within the area where the item quantity indicator is located. Based on whether the number representing the item quantity has changed, the change in the item quantity indicator is determined. To this end, the item quantity identification module 22 includes a number identification unit for identifying the number representing the item quantity within the area where the item quantity indicator is located, and a number determination unit for determining whether the number representing the item quantity has changed.

[0143] It is relatively easy to identify the static number of bullets, but in shooting games, when bullets are fired continuously, the number of bullets changes very quickly, and the change is gradual. That is, the number representing the number of bullets will become smaller and grayer, larger and brighter, or even blurred. Moreover, when other scenes are superimposed, the background of the bullet number will also change accordingly. Therefore, it is difficult to accurately identify the changes in the number of bullets in real time using conventional methods.

[0144] In this embodiment, the digital recognition unit specifically includes: a positioning subunit, used to locate the area where the prop quantity mark is located; a connected area extraction subunit, used to segment the area and extract multiple connected areas; a contour extraction subunit, used to extract the contours of multiple connected areas; and a digital recognition subunit, used to identify the corresponding number based on the contour.

[0145] By using the digital recognition algorithm provided in the above embodiment, a digital result is finally obtained. Specifically, the connected region extraction subunit is specifically used to: grayscale the regional image of the region; improve the image contrast of the grayscaled regional image; binarize the image after improving the image contrast; and extract multiple connected regions from the binarized image. The contour extraction subunit is specifically used to: extract the contour of the connected region based on the gradient of the image where the connected region is located. The digital recognition subunit is specifically used to: set a different label value for each contour; and determine the number represented by the contour based on the label value.

[0146] In this embodiment, the above-mentioned game data processing device is used to transmit the image data obtained from the system end to the algorithm for processing. The algorithm outputs the recognition result, and drives the motor to vibrate by calculating the change in the number of bullets between the previous frame and the current frame, thereby achieving precise vibration of the motor as the number of bullets changes.

[0147] Similarly, based on the same inventive concept, the present invention also provides a signal processing terminal, the signal processing terminal comprising: a processor and a memory;

[0148] The memory is used to store pre-set control instructions and data generated during the operation of the processor;

[0149] The processor is used to read the control instructions stored in the memory and execute the game data processing method according to any one of claims 1 to 6.

[0150] Similarly, based on the same inventive concept, the present invention also provides an electronic device, which includes the game data processing device described above;

[0151] or,

[0152] The electronic device includes the signal processing terminal described above.

[0153] The electronic device may be an electronic device that can run games and is in contact with the user's body, so that when the motor vibrates, it can provide the user with a vibration experience, allowing the user to be more immersed in the game and improve the user experience.

[0154] Optionally, the electronic device can be a handheld electronic device, such as a mobile phone, tablet computer or game controller, or a foot-controlled game, such as a dance mat, dance machine or other similar electronic device, which is not limited in this embodiment.

[0155] In the present invention, the changes in the prop quantity identifier in the game are monitored and the motor vibration is controlled according to the changes in the prop quantity identifier. Since the prop quantity identifier represents the number of props on the user's side, the motor vibration is controlled as the prop quantity identifier changes, which can avoid missed vibration or false vibration, thereby improving the control accuracy of the motor vibration and enhancing the user experience.

[0156] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other.

[0157] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such article or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the article or device comprising the aforementioned elements.

[0158] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for processing game data, characterized in that: Applied to an electronic device with a motor, the game data processing method includes: Obtain two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes an identifier of the number of props; Comparing the item quantity identifiers in two adjacent frames of the interface image to determine whether the item quantity identifiers have changed; If the prop quantity indicator changes, the motor is driven to vibrate; The determining whether the prop quantity indicator has changed specifically includes: Identify the number representing the number of props in the area where the prop quantity mark is located; Determine whether the number representing the number of props has changed.

2. The game data processing method according to claim 1, wherein: The identification of the number representing the number of props in the area where the prop quantity mark is located specifically includes: Locating the area where the quantity mark of the props is located; Segmenting the region to extract multiple connected regions; extracting contours of a plurality of the connected regions; The corresponding number is identified according to the outline.

3. The game data processing method according to claim 2, wherein: The segmenting of the region to extract multiple connected regions specifically includes: gray-scaling the regional image of the region; Improve the image contrast of the grayscaled area image; Binarize the image after improving the image contrast; Extract multiple connected components from a binary image.

4. The game data processing method according to claim 2, wherein: The extracting contours of the plurality of connected regions specifically includes: The contour of the connected region is extracted by calculating the gradient of the image where the connected region is located.

5. The game data processing method according to claim 2, wherein: The identifying the corresponding number according to the outline specifically includes: Set different label values ​​for each contour; The number represented by the contour is determined according to the label value.

6. A game data processing device, characterized in that: include: An image acquisition module is used to obtain two adjacent frames of interface images of the currently running game, wherein the information corresponding to the interface images includes an identifier of the number of props; The prop quantity recognition module is used to compare the prop quantity identifiers in two adjacent frames of interface images, determine whether the prop quantity identifiers have changed, and send a control instruction when the prop quantity identifiers have changed; A motor driving chip, configured to receive the control instruction and drive the motor to vibrate; The prop quantity identification module includes: A digital recognition unit, used to recognize the number representing the number of props in the area where the prop quantity mark is located; The digital judgment unit is used to judge whether the number representing the number of props has changed.

7. The game data processing device according to claim 6, wherein: The digital recognition unit specifically includes: A positioning subunit, used to locate the area where the prop quantity mark is located; A connected region extraction subunit, configured to segment the region and extract multiple connected regions; A contour extraction subunit, configured to extract contours of a plurality of connected regions; The number recognition subunit is used to recognize the corresponding number according to the outline.

8. The game data processing device according to claim 7, wherein: The connected region extraction subunit is specifically used for: gray-scaling the regional image of the region; Improve the image contrast of the grayscaled area image; Binarize the image after improving the image contrast; Extract multiple connected components from a binary image.

9. The game data processing device according to claim 7, wherein: The contour extraction subunit is specifically used for: The contour of the connected region is extracted by calculating the gradient of the image where the connected region is located.

10. The game data processing device according to claim 7, wherein: The digital recognition subunit is specifically used to: Set different label values ​​for each contour; The number represented by the contour is determined according to the label value.

11. A signal processing terminal, characterized in that: The signal processing terminal includes: a processor and a memory; The memory is used to store pre-set control instructions and data generated during the operation of the processor; The processor is used to read the control instructions stored in the memory and execute the game data processing method according to any one of claims 1 to 5.

12. An electronic device, characterized in that: A game data processing device comprising any one of claims 6 to 10; or, The electronic device includes the signal processing terminal according to claim 11.

Citation Information

Patent Citations

  • Bank card number recognition method based on OpenCV

    CN109034145A

  • Pachinko game machine

    JP2017094159A

  • System and method for automated table game activity recognition

    US20200034629A1