Information identification system, method and device

By judging the image brightness and adjusting the acquisition device parameters in electronic payment, the problems of high power consumption and poor user experience caused by automatic screen brightness adjustment are solved, achieving power savings and improving the success rate of code scanning.

CN112163436BActive Publication Date: 2025-09-23BEIJING SANKUAI ONLINE TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010918806.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-04
Publication Date
2025-09-23
Estimated Expiration
2040-09-04

AI Technical Summary

Technical Problem

In the prior art, the brightness of the user terminal screen is automatically adjusted during electronic payment, resulting in high power consumption and a poor user experience.

Method used

After displaying the payment QR code on the user terminal, the image brightness is judged and the acquisition device parameters are adjusted to recapture the image with normal brightness, avoiding directly increasing the screen brightness. The screen brightness is adjusted within a preset time period in conjunction with the user terminal to improve the scanning success rate.

Benefits of technology

It reduces the power consumption of user terminals, improves user experience and increases the success rate of code scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163436B_ABST
    Figure CN112163436B_ABST
Patent Text Reader

Abstract

This specification discloses an information identification system, method and device, in which the second terminal in the system can display a unique identifier of a digital object and adjust the screen brightness when the resource allocation result is not received within the display duration. The first terminal in the system can first capture an image containing the unique identifier of the digital object. When the brightness of the image is abnormal, the parameters of the capture device can be adjusted, and the image can be recaptured until the brightness is normal. After that, the recognition result and resource allocation information are sent to the server in the system, so that the server can perform resource allocation. Finally, when the second terminal receives the resource allocation result sent by the server, the brightness of its own screen is restored. By combining the adjustment of the parameters of the capture device of the first terminal and the adjustment of the screen brightness of the second terminal itself when the resource allocation success information is not received within the preset display duration, the power consumption of the second terminal is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to an information identification system, method and device. Background Art

[0002] Electronic payments are becoming an increasingly common method of payment. When shopping at a merchant, users can typically pay by scanning a QR code. To improve payment efficiency, merchants often scan the user's payment QR code to receive payment.

[0003] In the existing technology, in order to further improve the success rate of code scanning, the payment platform usually automatically adjusts the screen brightness when the user opens the payment QR code, so that the payment QR code is displayed more clearly and is easier to scan and identify. Summary of the Invention

[0004] The embodiments of this specification provide an information recognition system, method, and device for partially solving the problem in the prior art of automatically adjusting the screen brightness after opening a payment QR code, resulting in high power consumption.

[0005] The embodiments of this specification adopt the following technical solutions:

[0006] This specification provides an information identification system, which includes: a first terminal, a second terminal, and a server, wherein:

[0007] The second terminal is configured to display the unique identifier of the digital object according to the user's operation, and adjust the brightness of its own screen if the resource allocation result sent by the server is not received within a preset display time;

[0008] The first terminal is configured to capture an image including a unique identifier of a digital object displayed on the second terminal, and determine whether the brightness of the image is normal based on a pixel value of each pixel in the captured image and a preset standard pixel value;

[0009] The first terminal is configured to, when determining that the brightness of the image is abnormal, adjust parameters of its own acquisition device, re-acquire an image containing the unique identifier of the digital object displayed by the second terminal, until determining that the brightness of the acquired image is normal, identify the unique identifier of the digital object in the image with normal brightness, and send the identification result and pre-configured resource allocation information to the server;

[0010] The server is configured to execute a resource allocation task according to the received identification result and resource allocation information, and send the resource allocation result to the second terminal;

[0011] The second terminal is configured to restore the brightness of its own screen according to the received resource allocation result.

[0012] Optionally, the first terminal is configured to determine an average pixel value of each pixel point based on the pixel value of each pixel point in the collected image;

[0013] Whether the brightness of the image is normal is determined based on the determined average pixel value of each pixel point and a preset standard pixel value.

[0014] Optionally, the first terminal is configured to determine that the brightness of the image is normal when the difference between the average pixel value and the standard pixel value is within a preset range;

[0015] When the difference between the average pixel value and the standard pixel value is not within a preset range, and the average pixel value is greater than the standard pixel value, determining that the brightness of the image is bright;

[0016] When the difference between the average pixel value and the standard pixel value is not within a preset range, and the average pixel value is less than the standard pixel value, it is determined that the brightness of the image is dark.

[0017] Optionally, the first terminal is configured to determine an average pixel value of each pixel point based on the pixel value of each pixel point in the image;

[0018] Determine a difference between the average pixel value and the standard pixel value as a pixel value difference;

[0019] Determining the variance between the pixel value of each pixel and the preset standard pixel value based on the pixel value of each pixel in the image and the preset standard pixel value;

[0020] Whether the brightness of the image is normal is determined based on the determined pixel value difference and the determined variance between the pixel values.

[0021] Optionally, the first terminal is configured to determine, based on the determined pixel value difference and the determined pixel value variance, a ratio between the pixel value difference and the pixel value variance;

[0022] When the ratio is less than a preset weight threshold, determining that the brightness of the image is normal;

[0023] When the ratio is greater than a preset weight threshold, and if the average pixel value is greater than a preset standard pixel value, it is determined that the brightness of the image is bright;

[0024] When the ratio is greater than a preset weight threshold, if the average pixel value is less than a preset standard pixel value, it is determined that the brightness of the image is dark.

[0025] This manual provides an information identification method, including:

[0026] The first terminal captures an image containing a unique identifier of a digital object, wherein the unique identifier of the digital object is displayed by the second terminal in response to a user operation;

[0027] Determining whether the brightness of the image is normal based on the pixel value of each pixel in the collected image and a preset standard pixel value;

[0028] If yes, identifying the unique identifier of the digital object in the image, and sending the identification result and pre-configured resource allocation information to the server, so that the server performs the resource allocation task;

[0029] If not, adjust the parameters of the acquisition device itself and re-capture the image containing the unique identifier of the digital object until it is determined that the brightness of the image is normal, and identify the unique identifier of the digital object in the image with normal brightness, and send the identification result and the pre-configured resource allocation information to the server so that the server performs the resource allocation task.

[0030] Optionally, judging whether the brightness of the image is normal based on the pixel value of each pixel point in the collected image and a preset standard pixel value specifically includes:

[0031] Determine the average pixel value of each pixel point according to the pixel value of each pixel point in the collected image;

[0032] Determine a difference between the average pixel value and a preset standard pixel value as a pixel value difference;

[0033] Determining the variance between the pixel value of each pixel and the preset standard pixel value based on the pixel value of each pixel in the image and the preset standard pixel value;

[0034] Whether the brightness of the image is normal is determined based on the determined pixel value difference and the determined variance between the pixel values.

[0035] Optionally, judging whether the brightness of the two-dimensional code image is normal according to the determined pixel value difference and the determined pixel value variance specifically includes:

[0036] determining a ratio of the pixel value difference to the variance between the pixel values ​​based on the determined pixel value difference and the determined variance between the pixel values;

[0037] When the ratio is less than a preset weight threshold, determining that the brightness of the image is normal;

[0038] When the ratio is greater than a preset weight threshold, and if the average pixel value is greater than a preset standard pixel value, it is determined that the brightness of the image is bright;

[0039] When the ratio is greater than a preset weight threshold, if the average pixel value is less than a preset standard pixel value, it is determined that the brightness of the image is dark.

[0040] This manual provides an information identification method, including:

[0041] The second terminal displays the unique identifier of the digital object according to the user's operation;

[0042] When the resource allocation result sent by the server is not received within the preset display time, the brightness of the own screen is adjusted;

[0043] When the resource allocation result is received, the brightness of the own screen is restored according to the resource allocation result.

[0044] This specification provides an information identification device, including:

[0045] A collection module, configured for the first terminal to collect an image containing a unique identifier of a digital object, wherein the unique identifier of the digital object is displayed by the second terminal according to a user operation;

[0046] The judgment module judges whether the brightness of the collected image is normal based on the pixel value of each pixel point in the collected image and the preset standard pixel value. If so, the judgment module identifies the unique identifier of the digital object in the image and sends the recognition result and the pre-configured resource allocation information to the server. If not, the judgment module adjusts the parameters of the collection device itself and re-collects the image containing the unique identifier of the digital object until it is determined that the brightness of the image is normal. The judgment module also identifies the QR code in the QR code image with normal brightness and sends the recognition result and the pre-configured resource allocation information to the server so that the server performs the resource allocation task.

[0047] This specification provides an information identification device, including:

[0048] A display module, configured to display the unique identifier of the digital object on the second terminal according to a user operation;

[0049] An adjustment module, which adjusts the brightness of its own screen when no resource allocation result sent by the server is received within a preset display duration;

[0050] The recovery module, when receiving the resource allocation result, restores the brightness of its own screen according to the resource allocation result.

[0051] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0052] In this specification, a second terminal in an information identification system can display a unique digital object identifier and adjust its screen brightness if it does not receive a resource allocation result within the display duration. A first terminal in this system can first capture an image containing the unique digital object identifier displayed by the second terminal and determine the image's brightness. If the image's brightness is abnormal, the first terminal can adjust the parameters of its capture device and recapture the image until the image's brightness is normal. It can then identify the unique digital object identifier in the image with normal brightness. The recognition result and pre-set resource allocation information are then sent to a server in the system. The server executes the resource allocation task based on the received information and sends the resource allocation result to the second terminal. Finally, upon receiving the resource allocation result, the second terminal restores its screen brightness. By combining the adjustment of the first terminal's capture device parameters and the adjustment of the second terminal's screen brightness if it does not receive a successful resource allocation result within the preset display duration, the second terminal's power consumption is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0054] Figure 1 A schematic diagram of an information identification system provided in an embodiment of this specification;

[0055] Figure 2 A schematic diagram of the interactions within the system provided in the embodiments of this specification;

[0056] Figure 3 A schematic diagram of an information identification method provided in an embodiment of this specification;

[0057] Figure 4 A schematic diagram of an information identification method provided in an embodiment of this specification;

[0058] Figure 5 A schematic diagram of the structure of an information identification device provided in an embodiment of this specification;

[0059] Figure 6 This is a schematic diagram of the structure of an information identification device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0060] To make the purpose, technical solutions, and advantages of this specification more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this specification and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0061] Currently, to improve the success rate of scanning a QR code for payment, the brightness of the payment QR code displayed on the user's terminal is often increased to make the QR code clearer and easier to identify. However, suddenly brightening the screen from a dark color often irritates the user's eyes, resulting in a poor user experience. Furthermore, increasing the screen brightness also consumes power on the user's terminal. In summary, to improve the user experience and reduce power consumption on the user's terminal, this specification provides an information recognition system that can address the above-mentioned problems of the prior art.

[0062] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.

[0063] Figure 1 This is a schematic diagram of an information identification system provided in this specification. As used herein, the information identification system includes a first terminal 100, a second terminal 102, and a server 104, and can be used to identify information during resource allocation. Information identification can include identifying digital object identifiers (DOIs), which include information identifiers such as barcodes, QR codes, and character codes. The DOI contained in the second terminal 102 is exemplarily represented by a QR code.

[0064] Currently, in the process of resource allocation, the resource provider usually displays the DOI, and the resource recipient collects an image containing the DOI and identifies the DOI in the image. After that, the identification result and pre-configured resource allocation information are sent to the server. The server performs resource allocation based on the received identification result and resource allocation information, and sends the resource allocation results to the resource provider and resource recipient respectively.

[0065] For ease of description, the resource allocation scenario will be described below as a payment scenario. The corresponding digital object unique identifier can be a payment QR code. When the information identification system is applied to a payment scenario, the first terminal 100 in the information identification system corresponds to the merchant terminal 100 receiving payment, the second terminal 102 corresponds to the user terminal making the payment, and the server 104 corresponds to the payment application server. The pre-configured resource allocation information includes the merchant account information and the pre-entered user consumption amount.

[0066] The information recognition system provided in this specification differs from existing technologies in that it eliminates the need to adjust the screen brightness of the user terminal. Instead, after capturing an image containing a payment QR code, the merchant terminal 100 first determines whether the image's brightness is normal. If so, the payment QR code in the image is directly recognized. If not, the merchant terminal 100 adjusts the parameters of the capture device to recapture the image containing the payment QR code until the image's brightness is determined to be normal. By adjusting the parameters of the capture device in the merchant terminal 100 to capture an image with normal brightness, the system avoids increasing the screen brightness on the user terminal 102, which can lead to a poor user experience and power consumption.

[0067] Specifically, such as Figure 1 As shown, the information identification system of this manual includes:

[0068] The first terminal 100, i.e., the merchant terminal 100, is used to capture the image containing the payment QR code displayed in the second terminal 102, and perform brightness analysis on the captured image. When the brightness of the image is normal, the payment QR code in the image is identified. When the brightness of the image is abnormal, the parameters of its own acquisition device are adjusted, and the image containing the payment QR code is re-acquired until the brightness of the image is determined to be normal, and the payment QR code in the image with normal brightness is identified. Among them, the first terminal 100 can be a mobile phone, a tablet, etc., or a computer including an acquisition device for acquiring images, an unmanned self-service cash register, etc. The acquisition device can be a camera, a barcode scanner, etc. This manual does not limit this, and it can be set as needed.

[0069] The second terminal 102, i.e., the user terminal 102, is configured to display the payment QR code based on user operations. If the resource allocation result sent by the server is not received within a preset display duration, the second terminal adjusts its screen brightness. Upon receiving the resource allocation result sent by the server, the second terminal restores its screen brightness. The second terminal is typically a user's handheld device, such as a mobile phone or tablet. This specification does not limit this, and configuration can be performed as needed.

[0070] The server is the backend server corresponding to the payment application, which is used to receive the recognition result, merchant account information and consumption amount sent by the first terminal 100, and determine the corresponding user account information based on the received recognition result, and then make payment based on the determined user account information and the received merchant account information and consumption amount, and send the payment result to the first terminal 100 and the second terminal 102 respectively. Among them, the recognition result may include the user's identity information, bank account information, etc. For security reasons, this information can be transmitted in an encrypted manner. Of course, the server can be a single server or a system composed of multiple servers, such as a distributed server. This manual does not limit this and can be set as needed.

[0071] Among them, the server can also be composed of a first sub-server corresponding to the first terminal 100 and a second sub-server corresponding to the second terminal 102. When performing scan code payment, the first sub-server can first receive the recognition result, merchant account information and pre-entered consumption amount sent by the first terminal 100, and forward the received information to the second sub-server. Afterwards, the second sub-server makes payment based on the received recognition result, merchant account information and consumption amount. Finally, the payment result is sent to the first sub-server and the second terminal 102 respectively, and the first sub-server forwards the transfer result to the first terminal 100.

[0072] Furthermore, in this specification, a process in which the first terminal 100 captures an image containing a payment QR code from the second terminal 102 and performs payment through the same server is taken as an example for detailed description.

[0073] First, when the user needs to scan the code to pay, the user terminal 102 can display a page containing the payment QR code according to the user's operation. At this time, the brightness of the screen in the user terminal 102 can be kept unchanged, and there is no need to increase the brightness of the screen in the user terminal 102.

[0074] Since the low scanning success rate is mostly due to the unclear display of the payment QR code and the dim screen brightness, in order to improve the scanning success rate and reduce the power consumption of the user terminal 102, the user terminal 102 can increase the screen display brightness to make the payment QR code display clearer if it does not receive the payment result within a certain period of time. After receiving the payment result, the screen brightness is restored.

[0075] The user terminal 102 may start timing when displaying the payment QR code, and when the timing reaches the preset display duration, if the payment result sent by the server has not been received, the user terminal 102 may increase the brightness of its own screen, and when the payment result is received, restore the brightness of its own screen display according to the payment result. The screen brightness is set to the default value when the user displays the payment QR code. If the payment result is not received within the display duration, the brightness is increased for easy identification. When the payment result is received, the screen brightness can be restored to the default value. The preset display duration can be set as needed, and this manual does not impose any restrictions on this.

[0076] Furthermore, due to the fact that the merchant terminal 100 may not collect the payment QR code in a timely manner after displaying it according to the user's operation, in this specification, the surrounding environment can be detected by the sensor set on the user terminal 102, and when it is detected that the distance to the merchant terminal 100 is less than the preset distance, indicating that it is in the collection state, the timing will start. The user terminal 102 can detect environmental objects in the surrounding environment through its own sensors (distance sensor, infrared sensor, etc.), and can start timing when it detects that the distance from the merchant terminal 100 to itself is less than the preset distance. Among them, the preset distance can be set as needed, as long as it is within the reasonable range of collection, and this specification does not impose any restrictions on this.

[0077] Secondly, when the payment QR code is displayed on the user terminal 102, the merchant terminal 100 can collect the image containing the payment QR code from the user terminal 102 through a collection method.

[0078] In order to improve the success rate of payment QR code recognition, the merchant terminal 100 can first perform a brightness analysis on the collected image. When it is determined that the brightness is normal, the payment QR code in the image with normal brightness is directly recognized. When it is determined that the brightness is abnormal, the parameters of the collection device in the merchant terminal 100 are adjusted so that an image with normal brightness can be collected again for recognition.

[0079] Therefore, after the merchant terminal 100 captures the image containing the payment QR code from the user terminal 102, the merchant terminal 100 can first determine the pixel value of each pixel contained in the captured image, and determine the average pixel value of each pixel based on the pixel value of each pixel, and then determine whether the brightness of the image is normal based on the determined average pixel value and the preset standard pixel value.

[0080] When the difference between the average pixel value and the standard pixel value is within a preset range, the image brightness can be determined to be normal. When the difference between the average pixel value and the standard pixel value is not within the preset range, and the average pixel value is greater than the standard pixel value, the image brightness can be determined to be bright. When the difference between the average pixel value and the standard pixel value is not within the preset range, and the average pixel value is less than the standard pixel value, the image brightness can be determined to be dark. The preset range can be set as needed and is not limited in this manual.

[0081] Afterwards, if the image brightness is determined to be normal, the payment QR code in the image with normal brightness can be directly recognized. If the image brightness is determined to be abnormal, if the image brightness is too bright, the parameters of the acquisition device in the merchant terminal 100 are adjusted to make the brightness of the re-captured image normal. If the image brightness is too dark, the parameters of the acquisition device in the merchant terminal 100 are adjusted to make the brightness of the re-captured image normal.

[0082] In particular, when the acquisition device is an image sensor, if the brightness of the image is too bright, at least one of the exposure time and sensitivity of the image sensor can be adjusted, that is, the exposure time can be reduced, or the sensitivity can be reduced, so that the brightness of the re-captured image becomes normal. If the brightness of the image is too dark, at least one of the exposure time and sensitivity of the image sensor can be adjusted, that is, the exposure time can be increased, or the sensitivity can be increased, so that the brightness of the re-captured image becomes normal. Of course, if the image sensor in the first terminal 100 can adjust the aperture size, the brightness of the re-captured image can also be adjusted by adjusting the aperture size of the image sensor.

[0083] Then, when it is determined that the brightness of the image is abnormal and the parameters of the acquisition device are adjusted, the image containing the payment QR code displayed in the user terminal 102 can be re-captured and the brightness judgment can be re-performed until it is determined that the brightness of the image is normal, and the payment QR code in the image with normal brightness is identified.

[0084] Once the merchant terminal 100 recognizes the QR code information in the image with normal brightness, it can send the recognition result, along with the pre-set merchant account information and the payment amount pre-entered by the merchant, to the server. The server can determine the corresponding user account information based on the received recognition result and execute the payment task based on the determined user account information, the received merchant account information, and the payment amount. The payment result is then sent to the merchant terminal 100 and the user terminal 102 respectively.

[0085] It should be noted that the aforementioned operations of user terminal 102 timing and adjusting its own screen brightness can be performed in parallel with the merchant terminal 100 determining the brightness of the captured image and adjusting the parameters of the capture device. That is, while user terminal 102 is performing these operations, merchant terminal 100 is also performing these operations. By combining increasing the brightness of the user terminal 102 screen and adjusting the parameters of the merchant terminal 100's capture device, the clarity of the payment QR code is improved on both the user terminal 102 and the merchant terminal 100, further improving the success rate of code scanning.

[0086] In summary, the information recognition system provided in this manual performs information recognition as follows: Figure 2 As shown, in this information recognition system, a first terminal 100 captures an image containing a unique identifier of a digital object displayed by a second terminal 102. Subsequently, the second terminal 102 may time the start of displaying the unique identifier of the digital object and adjust the brightness of its own screen if it does not receive a resource allocation result from the server within a preset time period. Simultaneously, the first terminal 100 may determine whether the brightness of the captured image is normal. If the image brightness is abnormal, the first terminal 100 may adjust the parameters of the capture device and recapture the image containing the unique identifier of the digital object displayed by the second terminal 102 until the image brightness is determined to be normal. Finally, the first terminal 100 may transmit the recognition result and pre-set resource allocation information to the server. Based on the received recognition result and resource allocation information, the server 104 executes the resource allocation task, determines the resource allocation result, and transmits the resource allocation result to the first terminal 100 and the second terminal 102, respectively.

[0087] based on Figure 1In the illustrated QR code recognition system, the second terminal 102 in the system can display a unique identifier for a digital object based on user operations and adjust its screen brightness if it does not receive a resource allocation result from the server 104 within a preset display duration. In the system, the first terminal 100 can first capture an image containing the unique identifier for the digital object displayed by the second terminal 102 and determine whether the image's brightness is normal. If the image's brightness is abnormal, the first terminal 100 can adjust the parameters of its capture device and recapture the image until the image's brightness is normal. It then identifies the unique identifier for the digital object in the image with normal brightness. The recognition result and pre-set resource allocation information are then sent to the server in the system, which executes the resource allocation task based on the received information and sends the resource allocation result to the second terminal 102. Finally, upon receiving the resource allocation result, the second terminal 102 restores its screen brightness. By adjusting the parameters of the first terminal 100's capture device and adjusting the screen brightness of the second terminal 102 if it does not receive a successful resource allocation message within the preset display duration, the power consumption of the second terminal 102 is reduced.

[0088] And since the first terminal is usually fixed at the merchant side, the consumed power can be replenished in real time, while the second terminal is usually a mobile device held by the user, such as a mobile phone, and the power cannot be replenished in time, the information identification method provided in this manual can reduce the power consumption of the second terminal when making payments.

[0089] In this specification, when determining whether the brightness of a captured image is normal, the merchant terminal 100 may first determine the average pixel value of each pixel in the image based on the pixel value of each pixel. Thereafter, the difference between the average pixel value and a preset standard pixel value is determined as a pixel value difference. Furthermore, based on the pixel value of each pixel and the preset standard pixel value, the variance between the pixel value of each pixel and the preset standard pixel value is determined. Finally, based on the determined pixel value difference and the variance between the determined pixel values, the brightness of the image is determined to be normal.

[0090] Among them, when judging whether the brightness of the image is normal based on the determined pixel value difference and the determined pixel value variance, the ratio of the absolute value of the pixel value difference to the variance between the pixel values ​​can be first determined. When the ratio is less than the preset weight threshold, it can be determined that the brightness of the image is normal. When the ratio is greater than the preset weight threshold, if the average pixel value is greater than the preset standard pixel value, it is determined that the brightness of the image is bright; if the average pixel value is less than the preset standard pixel value, it is determined that the brightness of the image is dark. The preset weight threshold can be set as needed, and this manual does not impose any restrictions on this.

[0091] Assuming that the preset weight threshold is 1, the pixel values ​​of each pixel are 120, 125, and 130 respectively, and the preset standard pixel value is 128, then the average pixel value of each pixel is determined to be 125, the pixel value difference between the average pixel value and the standard pixel value is 3, and the variance between the pixel value of each pixel and the standard pixel value is It can be determined that the ratio of the absolute value of the pixel value difference to the variance between the pixel values ​​is 0.12, which is less than the preset weight threshold 1. Therefore, it can be determined that the brightness of the image is normal.

[0092] Of course, in this specification, in addition to adjusting the parameters of the acquisition device in the merchant terminal 100 to adjust the brightness of the acquired image, the merchant terminal 100 can also directly adjust the brightness of the acquired image.

[0093] Specifically, when the merchant terminal 100 determines that the brightness of the image is abnormal through the above method, the merchant terminal 100 can also adjust the brightness of the image by adjusting the pixel distribution histogram of the image, and the merchant terminal 100 can recognize the payment QR code in the adjusted image.

[0094] In this specification, another QR code recognition system is provided, comprising a first terminal 100, a second terminal 102, and a server 104. During code scanning and recognition, the second terminal 102 can display a unique identifier for a digital object based on a user's operation. The first terminal 100 can capture an image containing the unique identifier for the digital object displayed on the second terminal 102 and determine whether the image's brightness is normal based on the pixel values ​​of each pixel in the image. If the image's brightness is determined to be abnormal, the first terminal 100 can adjust the parameters of its own capture device. Subsequently, based on a preset display duration, if the second terminal 102 determines that it has not received a resource allocation result from the server within the duration, it can adjust the brightness of its own screen display. The first terminal 100 can then recapture the image containing the unique identifier for the digital object displayed on the second terminal 102, recognize the adjusted image, and transmit the recognition result and pre-set resource allocation information to the server. The server then executes a resource allocation task based on the received recognition result and resource allocation information and transmits the resource allocation result to the second terminal 102. Finally, the second terminal 102 may restore the brightness of its own screen according to the received resource allocation result.

[0095] In addition, the information identification system provided in this specification can also be applied to scenarios where resource allocation is book allocation. For example, when a user borrows a book from a library, the corresponding second terminal 102 is the user terminal 102 used by the user, the first terminal 100 is the library terminal, and the DOI can correspond to a QR code for user authentication.

[0096] When borrowing books from the library, the user terminal 102 can display the authenticated QR code based on user operations and adjust the brightness of its own screen if it does not receive the book allocation result sent by the server within the preset display duration. The library terminal can capture an image containing the user's authenticated QR code and determine whether the image brightness is normal. If the image brightness is abnormal, the library terminal 100 can adjust the parameters of the acquisition device and re-capture the image containing the user's authenticated QR code until the image brightness is determined to be normal. The recognition result and preset resource allocation information (such as the borrowed book code) are then sent to the server, instructing the server 104 to perform book allocation and send the book allocation result to the library terminal 100 and the user terminal 102 respectively. When the user terminal 102 receives the book allocation result, it can restore the brightness of its own screen.

[0097] In this specification, to further reduce the power consumption of the second terminal, that is, to reduce the probability and duration of the second terminal 102 increasing the screen brightness, the first terminal 100 may first send adjustment information to the server before adjusting the parameters of its own acquisition device to adjust the brightness of the re-captured image. This adjustment information indicates that the first terminal 100 is in the adjustment state. The server then forwards the adjustment information to the second terminal 102, notifying the second terminal 102 that the first terminal 100 is in the adjustment state. The second terminal 102 may then not increase the brightness of its own screen. After a certain delay, if it still does not receive the resource allocation result, it may increase the brightness of its own screen.

[0098] based on Figure 1 The information identification system shown in this manual also provides Figure 3 The information identification method shown may specifically include the following steps:

[0099] S100: The first terminal collects an image containing a unique identifier of a digital object.

[0100] In this specification, we will continue to use the payment scenario as an example. The first terminal corresponds to the merchant terminal, and the unique digital object identifier corresponds to the payment QR code. When a user scans the code to pay, the merchant terminal may first capture an image containing the payment QR code displayed on the user terminal, and then identify the payment QR code in the image in subsequent steps. The payment QR code is displayed on the user terminal and is displayed based on the user's operation when scanning the code to pay.

[0101] S102: judging whether the brightness of the image is normal based on the pixel value of each pixel point in the collected image and the preset standard pixel value; if so, executing step S104; if not, executing step S106.

[0102] After the merchant terminal captures the image, it can determine whether the brightness of the image is normal. If the brightness is normal, the QR code information in the image is directly recognized. If the brightness is abnormal, the parameters of the capture device are adjusted and the image with normal brightness is recaptured.

[0103] When determining whether the brightness of the image is normal, the merchant terminal may determine the average pixel value of each pixel in the image based on the pixel value of each pixel, and determine whether the brightness of the image is normal based on the determined average pixel value and a preset standard pixel value. The specific process is described in detail in the above-mentioned information recognition system and is not further described in this manual.

[0104] In addition, when determining whether the brightness of the image is normal, the merchant terminal may first determine the difference between the average pixel value of each pixel and a preset standard pixel value as a pixel value difference, and then determine the variance between the pixel value of each pixel and the preset standard pixel value based on the pixel value of each pixel in the image and the preset standard pixel value. Finally, based on the determined pixel value difference and the determined variance between the pixel values, it is determined whether the brightness of the image is normal.

[0105] When determining whether the brightness of the image is normal based on the pixel value difference and the variance between the pixel values, the ratio of the absolute value of the pixel value difference to the variance between the pixel values ​​can be determined. When the ratio is less than a preset weighting threshold, the brightness of the payment QR code image can be determined to be normal. When the ratio is greater than the preset weighting threshold, if the average pixel value is greater than a preset standard pixel value, the brightness of the payment QR code image can be determined to be too bright. If the average pixel value is less than the preset standard pixel value, the brightness of the payment QR code image can be determined to be too dark.

[0106] S104: Identify the unique identifier of the digital object in the image, and send the identification result and pre-configured resource allocation information to the server, so that the server performs the resource allocation task.

[0107] In this specification, when it is determined in step S102 that the brightness of the captured image is normal, the merchant terminal can directly recognize the payment QR code in the image to complete the payment.

[0108] Specifically, the merchant terminal can identify the payment QR code in the image with normal brightness and determine the recognition result. It then sends the recognition result and pre-configured resource allocation information to the server. This resource allocation information includes the merchant's account information and the payment amount entered by the merchant. Based on the recognition result, the server determines the corresponding user account information and executes the payment task based on the user account information, the merchant account information, and the payment amount.

[0109] S106: Adjust the parameters of the acquisition device itself, re-acquire the image containing the unique identifier of the digital object, until it is determined that the brightness of the image is normal, and identify the QR code in the QR code image with normal brightness, and send the recognition result and pre-configured resource allocation information to the server, so that the server performs the resource allocation task.

[0110] In this specification, when a merchant terminal determines that the brightness of an image is abnormal, the merchant terminal can adjust parameters such as the sensitivity and exposure of the image sensor (acquisition device) in the merchant terminal based on the abnormal brightness result. The specific process of adjusting parameters is described in detail in the above-mentioned information recognition system and is not further described in this specification.

[0111] After adjusting the parameters of the acquisition device, the merchant terminal can recapture the image containing the payment QR code displayed by the user terminal and reanalyze the brightness of the image until the brightness returns to normal. The merchant terminal then recognizes the payment QR code in the image with normal brightness and sends the recognition result, along with the pre-set merchant account information and the purchase amount, to the server. The server then determines the corresponding user account information based on the received recognition result and executes the payment task based on the determined user account information, the received merchant account information, and the purchase amount.

[0112] based on Figure 3 In the QR code recognition method shown, the first terminal can first capture an image containing a unique identifier for a digital object and determine whether the image's brightness is normal based on the pixel values ​​of each pixel in the image and a preset standard pixel value. When the image's brightness is normal, the first terminal can identify the unique identifier for the digital object in the image and send the recognition result and pre-configured resource allocation information to a server, causing the server to perform a resource allocation task. When the image's brightness is abnormal, the first terminal can adjust the parameters of its own acquisition device and re-acquire the image containing the unique identifier for the digital object until it determines that the image's brightness is normal. It can then identify the unique identifier for the digital object in the image with normal brightness. Finally, the recognition result and pre-set resource allocation information are sent to the server, causing the server to perform resource allocation. By adjusting the parameters of the acquisition device in the first terminal, there is no need to increase the screen brightness of the second terminal, thereby reducing the power consumption of the second terminal.

[0113] based on Figure 1 The information identification system shown in this manual also provides Figure 4 The information identification method shown may specifically include the following steps:

[0114] S200: The second terminal displays the unique identifier of the digital object according to the user's operation.

[0115] Continuing with the example of applying the information recognition method to a payment scenario, the corresponding second terminal corresponds to the user terminal, and the digital object unique identifier is the user's payment QR code. When scanning the code to pay, the user terminal can display the payment QR code based on the user's operation, allowing the merchant terminal to recognize it and complete the payment.

[0116] S202: When the resource allocation result sent by the server is not received within the preset display time, the brightness of the own screen is adjusted.

[0117] In this specification, in order to improve user experience and reduce power consumption of the user terminal, the user terminal can maintain the brightness unchanged when displaying the payment QR code. When the payment QR code has not been successfully recognized within a period of time, so that the payment is unsuccessful, the user terminal can adjust the brightness of its own screen display to assist in brightening the payment QR code, making the payment QR code display clearer and easier to identify.

[0118] Specifically, the user terminal may begin displaying the payment QR code and start a timer. When the timer reaches a preset display duration, if the user terminal has not yet received the payment result from the server, the screen brightness may be increased. If the user terminal has already received the payment result from the server, indicating successful recognition of the payment QR code, the screen brightness does not need to be increased. The preset display duration can be set as desired and is not limited in this specification.

[0119] S204: When the resource allocation result is received, the brightness of the own screen is restored according to the resource allocation result.

[0120] In this specification, in order to further reduce the power consumption of the user terminal, the user terminal can restore the brightness of its own screen according to the payment result after receiving the payment result sent by the server, that is, indicating that the payment QR code has been successfully recognized.

[0121] based on Figure 4 In the QR code recognition method shown, the second terminal can display the digital object's unique identifier (UID) QR code based on user input. If the resource allocation result sent by the server is not received within a preset display duration, the second terminal adjusts the brightness of its own screen. Upon receiving the resource allocation result, the second terminal restores its own screen brightness. By extending the preset display duration and then adjusting the screen brightness if the resource allocation success message is still not received, the second terminal reduces power consumption.

[0122] based on Figure 3 The information identification method shown in the embodiment of this specification also provides a structural diagram of an information identification device, such as Figure 5 shown.

[0123] Figure 5 This is a schematic diagram of the structure of an information identification device provided in an embodiment of this specification, the device comprising:

[0124] The acquisition module 300 is used for the first terminal to acquire an image containing a unique identifier of a digital object, where the unique identifier of the digital object is displayed by the second terminal according to a user operation;

[0125] The judgment module 302 judges whether the brightness of the image is normal based on the pixel value of each pixel point in the collected image and the preset standard pixel value. If so, it identifies the unique identifier of the digital object in the image and sends the identification result and the pre-configured resource allocation information to the server. If not, it adjusts the parameters of the collection device itself and re-collects the image containing the unique identifier of the digital object until it is determined that the brightness of the image is normal. It also identifies the QR code in the QR code image with normal brightness and sends the identification result and the pre-configured resource allocation information to the server so that the server performs the resource allocation task.

[0126] Optionally, the judgment module 302 is specifically used to determine the average pixel value of each pixel point based on the pixel value of each pixel point in the collected image, determine the difference between the average pixel value and a preset standard pixel value as a pixel value difference, determine the variance between the pixel value of each pixel point and the preset standard pixel value based on the pixel value of each pixel point in the image and the preset standard pixel value, and judge whether the brightness of the image is normal based on the determined pixel value difference and the variance between the determined pixel values.

[0127] Optionally, the judgment module 302 is specifically used to determine the ratio of the pixel value difference to the variance between the pixel values ​​based on the determined pixel value difference and the determined variance between the pixel values; when the ratio is less than a preset weight threshold, it is determined that the brightness of the image is normal; when the ratio is greater than the preset weight threshold, if the average pixel value is greater than the preset standard pixel value, it is determined that the brightness of the image is bright; when the ratio is greater than the preset weight threshold, if the average pixel value is less than the preset standard pixel value, it is determined that the brightness of the image is dark.

[0128] based on Figure 4 The information identification method shown in the embodiment of this specification also provides a structural diagram of an information identification device, such as Figure 6 shown.

[0129] Figure 6 This is a schematic diagram of the structure of an information identification device provided in an embodiment of this specification, the device comprising:

[0130] Display module 400, configured for the second terminal to display the unique identifier of the digital object according to the user's operation;

[0131] Adjustment module 402, when no resource allocation result sent by the server is received within a preset display duration, adjusts the brightness of its own screen;

[0132] The restoration module 404 restores the brightness of its own screen according to the resource allocation result when receiving the resource allocation result.

[0133] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0134] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0135] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.

[0136] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0137] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0138] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0139] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0140] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0142] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0143] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0144] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0145] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0146] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] This specification may be described in the general context of computer-executable instructions, such as program modules, executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.

[0148] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0149] The foregoing is merely an example of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.

Claims

1. An information recognition system, characterized in that: The system includes: a first terminal, a second terminal, and a server, wherein: The second terminal is configured to display the unique identifier of the digital object according to the user's operation, maintain the brightness unchanged, and adjust the brightness of its own screen when the resource allocation result sent by the server is not received within a preset display time; The first terminal is configured to capture an image including a unique identifier of a digital object displayed on the second terminal, and determine whether the brightness of the image is normal based on a pixel value of each pixel in the captured image and a preset standard pixel value; The first terminal is configured to, when determining that the brightness of the image is abnormal, adjust parameters of its own acquisition device, re-acquire an image containing the unique identifier of the digital object displayed by the second terminal, until determining that the brightness of the acquired image is normal, identify the unique identifier of the digital object in the image with normal brightness, and send the identification result and pre-configured resource allocation information to the server; When the first terminal begins adjusting the parameters of its own acquisition device to adjust the brightness of the re-acquired image, it first sends adjustment information to the server, where the adjustment information indicates that the first terminal is in an adjustment state. The server forwards the adjustment information to the second terminal, notifying the second terminal that the first terminal is in an adjustment state. The second terminal then does not adjust the brightness of its own screen. After a certain delay, if it still does not receive a resource allocation result from the server, it adjusts the brightness of its own screen. The server is configured to execute a resource allocation task according to the received identification result and resource allocation information, and send the resource allocation result to the second terminal; The second terminal is configured to restore the brightness of its own screen according to the received resource allocation result.

2. The system according to claim 1, wherein The first terminal is configured to determine an average pixel value of each pixel point based on the pixel value of each pixel point in the collected image; Whether the brightness of the image is normal is determined based on the determined average pixel value of each pixel point and a preset standard pixel value.

3. The system according to claim 2, wherein: The first terminal is configured to determine that the brightness of the image is normal when the difference between the average pixel value and the standard pixel value is within a preset range; When the difference between the average pixel value and the standard pixel value is not within a preset range, and the average pixel value is greater than the standard pixel value, determining that the brightness of the image is bright; When the difference between the average pixel value and the standard pixel value is not within a preset range, and the average pixel value is less than the standard pixel value, it is determined that the brightness of the image is dark.

4. The system according to claim 1, wherein: The first terminal is configured to determine an average pixel value of each pixel point based on the pixel value of each pixel point in the image; Determine a difference between the average pixel value and the standard pixel value as a pixel value difference; Determining the variance between the pixel value of each pixel and the preset standard pixel value based on the pixel value of each pixel in the image and the preset standard pixel value; Whether the brightness of the image is normal is determined based on the determined pixel value difference and the determined variance between the pixel values.

5. The system according to claim 4, wherein: The first terminal is configured to determine, based on the determined pixel value difference and the determined pixel value variance, a ratio between the pixel value difference and the pixel value variance; When the ratio is less than a preset weight threshold, determining that the brightness of the image is normal; When the ratio is greater than a preset weight threshold, and if the average pixel value is greater than a preset standard pixel value, it is determined that the brightness of the image is bright; When the ratio is greater than a preset weight threshold, if the average pixel value is less than a preset standard pixel value, it is determined that the brightness of the image is dark.

Citation Information

Patent Citations

  • Method and device for displaying code scanning page

    CN106855934A

  • Barcode decoding method and system

    CN106951813A

  • System and method for judging image brightness

    CN107071397A