A prompt method, device and equipment during code scanning

By obtaining the image in the scanning area of ​​the scanning device in the scanning code payment, determining the position information of the partial images of the bearing layer and generating a moving direction prompt, the problem of low scanning success rate of code images in scanning code payment is solved, and the efficiency and user experience of scanning code payment is improved.

CN114663646BActive Publication Date: 2025-03-25ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210272419.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-02
Publication Date
2025-03-25
Estimated Expiration
2040-06-02

AI Technical Summary

Technical Problem

In the prior art, the success rate of code image scanning during the scanning code payment process is low, especially when the code image of multiple payment platforms is close and the user's vision is limited.

Method used

By acquiring the image in the scanning area of ​​the code scanning device, the position information of a part of the image of the bearing layer carrying the code image in the scanning area is determined, and prompt information for indicating the movement direction is generated based on the position information, and the user is guided to move the code scanning device to improve the scanning success rate.

Benefits of technology

By providing clear direction of movement, users can more accurately align code images, thereby improving the success rate of code image scanning and enhancing the efficiency of code scanning payment and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114663646B_ABST
    Figure CN114663646B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose a prompt method, device and equipment during a code scanning process, the method comprising: acquiring a first image within a scanning area of ​​the code scanning device; determining position information of a first partial image of a bearing layer for carrying a code image contained in the first image within the scanning area; based on the position information, generating first prompt information for indicating a first direction; the first direction is used to indicate a direction from a center position of the scanning area to a position of the first partial image in the scanning area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a prompt method, device and equipment during a code scanning process. Background Art

[0002] Code graphics in specific formats, such as QR codes and bar codes, are increasingly being used in existing technologies.

[0003] However, in some scenarios, when a user's handheld terminal device scans an image containing a code graphic (hereinafter referred to as a code image), a scanning failure may occur. For example, when there are two code images belonging to different payment platforms and placed close together, the user may need to scan the first code image of payment platform A, but the terminal device actually scans the second code image of payment platform B. For another example, when the user's vision is limited and the specific location of the code image cannot be seen clearly, when the terminal device scans the code image, the entire code image is not completely in the scanning area, which can also lead to the problem of sending a scan failure.

[0004] In summary, how to improve the success rate of code image scanning has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The embodiments of this specification provide a prompt method, device and equipment during the code scanning process to solve the problem of low success rate of code image scanning during the existing code scanning payment method.

[0006] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0007] The embodiment of this specification provides a prompt method during a code scanning process, including:

[0008] Acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image;

[0009] Determine first position information of the first partial image within the scanning area;

[0010] Based on the first position information, first prompt information for indicating a first direction is generated; the first direction is used to indicate a direction from a center position of the scanning area to a first position of the first partial image in the scanning area.

[0011] The embodiment of this specification provides a prompt device during a code scanning process, including:

[0012] A first image acquisition module, used to acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image;

[0013] A first position information determining module, used to determine first position information of the first partial image within the scanning area;

[0014] A first prompt information generating module is used to generate first prompt information indicating a first direction based on the first position information; the first direction is used to indicate a direction from the center position of the scanning area to the first position of the first partial image in the scanning area.

[0015] The embodiment of this specification provides a prompt device during a code scanning process, including:

[0016] at least one processor; and,

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0019] Acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image;

[0020] Determine first position information of the first partial image within the scanning area;

[0021] Based on the first position information, first prompt information for indicating a first direction is generated; the first direction is used to indicate a direction from a center position of the scanning area to a first position of the first partial image in the scanning area.

[0022] An embodiment of the present specification provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement a prompt method during a code scanning process.

[0023] An embodiment of the present specification realizes the following beneficial effects: by acquiring a first image in a scanning area of ​​a code scanning device; determining the position information of a first partial image of a carrier layer for carrying a code image contained in the first image in the scanning area; based on the position information, generating first prompt information for indicating a first direction; the first direction is used to indicate the direction from the center position of the scanning area to the position of the first partial image in the scanning area. Through the above method, according to the position information of the partial image of the carrier layer in the scanning area, prompt information can be generated to prompt the user to move the code scanning device, guide the user to scan the code image, and improve the success rate of the user scanning the code image. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0025] Figure 1 This is a flowchart of a prompt method during a code scanning process provided by an embodiment of this specification;

[0026] Figure 2 is a schematic diagram of the characteristic information of the bearer layer provided in the embodiment of this specification;

[0027] Figure 3 This is a first schematic diagram for determining the moving direction of a code scanning device during a code scanning process provided by an embodiment of this specification;

[0028] Figure 4 This is a second schematic diagram for determining the moving direction of the code scanning device during the code scanning process provided by the embodiment of this specification;

[0029] Figure 5 This is a schematic diagram of the code scanning process provided in the embodiment of this specification;

[0030] Figure 6 This specification provides an embodiment corresponding to Figure 1 A schematic diagram of a prompt device during a code scanning process;

[0031] Figure 7 This specification provides an embodiment corresponding to Figure 1 A structural schematic diagram of a prompt device during a code scanning process. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.

[0033] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0034] In the prior art, when users scan code to pay, merchants often provide code images corresponding to multiple payment platforms for users to scan in order to meet the users' various payment needs. In addition, in order to facilitate user scanning, the code images of multiple platforms are placed close to each other. In this case, when scanning, the user may open the "scan" function of payment platform A, but scan the code image corresponding to payment platform B. In some cases, for users who have just used scan code payment or visually impaired people, the user may not be able to determine which code image corresponds to the opened payment application. In this case, the user needs to ask the merchant to determine the correct code image, and then move the code scanning device to align the code image for scanning, resulting in reduced efficiency and success rate of scanning code images.

[0035] In order to solve the defects in the prior art, this solution provides the following embodiments:

[0036] A code scanning prompt method provided in the embodiment of the specification is specifically described in conjunction with the accompanying drawings:

[0037] Figure 1 The flowchart of a code scanning prompt method provided by the embodiment of this specification is as follows. From the program perspective, the execution subject of the process can be a program installed on the application server or an application client.

[0038] like Figure 1 As shown, the process may include the following steps:

[0039] Step 102: Acquire a first image within a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing the code image.

[0040] The code scanning device may be a device with a code scanning function. For example, it may be a mobile terminal with a code scanning function, such as a mobile phone or a tablet computer. The code scanning device may also scan barcodes and QR codes. Therefore, the code scanning device may also be a barcode scanning gun, a QR code scanner, a code scanning machine, and the like.

[0041] The scanning area may represent the range of the image area that the code scanning device can scan. The image in the scanning area may include a partial code image of the payment code, and may also include a first partial image of the carrier layer for carrying the code image. Of course, the image in the scanning area may not include the code image, but only include the first partial image of the carrier layer.

[0042] The carrier layer here may refer to a carrier for carrying a code image, for example, if the printed payment code is attached to a paper or plastic carrier, the carrier layer may be the paper or plastic carrier. If the payment code is displayed on a display screen of an electronic screen, the carrier layer may be a layer used to display the payment code and related information in the software that displays the screen.

[0043] It should be noted that the bearing layer for bearing the code image includes information related to the code image, for example, the bearing layer may have a background color, and there may be text, images, logos, etc. on the bearing layer.

[0044] Step 104: Determine first position information of the first partial image within the scanning area.

[0045] In practical applications, the size of the scanning area is fixed, and the position information of the image in the scanning area is also fixed. The position information mentioned here may be the position coordinates of the image in the scanning area.

[0046] Step 106: Based on the first position information, generate first prompt information for indicating a first direction; the first direction is used to indicate a direction from the center position of the scanning area to the position of the first partial image in the scanning area.

[0047] In actual applications, when a code image is scanned by a code scanning device, the entire code image is not completely within the scanning area or the scanning area does not contain the code image. In this case, in order to ensure successful scanning, the code scanning device can be moved according to the position information of the partial image of the carrier layer in the scanning area so that the scanning device can scan the code image. Specifically, the position information of the partial image of the carrier layer in the current scanning area can be determined in the scanning area, and then the center position of the scanning area is pointed to the direction of the position of the partial image in the scanning area, which is determined as the direction of movement of the code scanning device.

[0048] In a specific implementation, the coordinates of the center position of the partial image of the carrier layer in the scanning area can be determined, and the moving direction of the scanning device can be determined based on the coordinates of the center position of the partial image in the scanning area and the center coordinates of the scanning area.

[0049] The first prompt information may specifically include one or more prompt information in text form, graphic form, animation form and voice form. When prompting the user, the prompting method of the prompt information may be freely selected / combined according to the actual situation, and this specification embodiment does not specifically limit this.

[0050] Figure 1The method in the embodiment of the present invention obtains a first image in a scanning area of ​​a code scanning device; determines the position information of a first partial image of a carrier layer for carrying a code image contained in the first image in the scanning area; generates first prompt information indicating a first direction based on the position information; the first direction indicates a direction from the center of the scanning area to the position of the first partial image in the scanning area. Through the above method, prompt information prompting a user to move the code scanning device can be generated according to the position information of a partial image of the carrier layer in the scanning area, so as to guide the user to scan the code image. This improves the success rate of the user scanning the code image.

[0051] based on Figure 1 The method, the examples of this specification also provide some specific implementation plans of the method, which are described below.

[0052] Optionally, before determining the first position information of the first partial image in the scanning area, the method may further include:

[0053] Based on the partial image, identifying characteristic information of the bearing layer;

[0054] Determine whether the characteristic information is consistent with the target characteristic information to obtain a first determination result; the target characteristic information is characteristic information of a bearing layer of a target payment platform including a bearing code image;

[0055] The determining of the first position information of the first partial image within the scanning area may specifically include:

[0056] When the first judgment result indicates that the feature information is consistent with the target feature information, first position information of the first partial image within the scanning area is determined.

[0057] The characteristic information of the bearing layer may include one or more of the background color information of the bearing layer, the displayed text information, and the specific identification information. Among them, the displayed text information in the bearing layer may be a promotional term, or the Chinese name, Chinese name abbreviation, English name, English name abbreviation of the payment platform corresponding to the code image, or other text information related to the code image. The specific identification information may be information that uses a specific symbol or pattern to represent the payment platform corresponding to the code image.

[0058] The target characteristic information may represent characteristic information of the target payment platform's carrier layer. For example, the background color of the first payment platform's carrier layer is blue, and the carrier layer contains the name text information of the first payment platform, which is used to specifically refer to the special identifier A of the first payment platform.

[0059] By judging whether the characteristic information of the bearing layer in the scanning area is consistent with the target characteristic information, if they are consistent, it can be determined that the bearing layer in the scanning area matches the target payment platform.

[0060] In order to explain the above method in more detail, Figure 2 To explain:

[0061] Figure 2 It is a schematic diagram of the bearing layer characteristic information provided in the embodiment of this specification.

[0062] like Figure 2 As shown, taking a payment method as an example, the background 2011 color in the bearer layer 201 of the A payment platform is blue, and the text information in the bearer layer 201 includes: "Please specify A payment for payment", "A payment", "APAY", "Pay with A scan code" and "Open 'Scan' on the A homepage". The bearer layer 201 also includes specific identification information 2012. According to the color of the background 2011 in the bearer layer 201, the text content of the text information and the specific identification information 2012, it can be determined that the code image carried in the bearer layer 201 corresponds to the A payment platform.

[0063] The code area in the bearer layer 201 contains a code image 202, which matches the A platform.

[0064] It should be noted that when judging whether the characteristic information of the bearing layer is consistent with the target characteristic information of the bearing layer of the target payment platform, the judgment can be made based on only one kind of characteristic information, or a combination of multiple characteristic information can be used for judgment. For example: when it can be judged that only the text information of the bearing layer in the first part of the image is the same as the text information of the bearing layer of the target payment platform, it is determined that the characteristic information of the bearing layer is consistent with the target characteristic information of the bearing layer of the target payment platform. Or only the background color and identification information are judged to be the same, and the characteristic information of the bearing layer is determined to be consistent with the target characteristic information of the bearing layer of the target payment platform. It should be noted that the same text information is not limited to the same text content. It is only necessary to ensure that the payment platform name in the text is the same.

[0065] Of course, multiple characteristic information can also be judged at the same time. For example, only when all the characteristic information of the bearing layer in the first part of the image is the same as all the characteristic information of the bearing layer of the target payment platform, can it be determined that the characteristic information of the bearing layer is consistent with the target characteristic information of the bearing layer of the target payment platform.

[0066] It is also possible to freely combine multiple feature information for judgment. For example, if all background color information and text information of the carrier layer in the first part of the image are the same as the background color information and text information of the carrier layer of the target payment platform, or if all background color information and specific identification information of the carrier layer in the first part of the image are the same as the background color information and specific identification information of the carrier layer of the target payment platform, then it is determined that the feature information of the carrier layer is consistent with the target feature information of the carrier layer of the target payment platform.

[0067] Through the above method, based on the background color information, displayed text information, and one or more characteristic information in the specific identification information in the bearer layer of the code image, it can be determined whether the bearer layer matches the target payment institution. It is even possible to determine the payment platform corresponding to the bearer layer based on the characteristic information in the bearer layer, and when the user scans a bearer layer that does not match the application that performs the code scanning operation, a prompt message is displayed to the user to guide the user to move the code scanning device to scan the matching code image.

[0068] In practical applications, if the characteristic information of the carrier layer in the scanning area is consistent with the target characteristic information, the position information of the partial image of the carrier layer in the scanning area can be determined in the scanning area.

[0069] In actual applications, when it is determined that the characteristic information of the bearing layer in the scanning area is consistent with the target characteristic information, it can be determined that the bearing layer in the scanning area is the bearing layer where the payment code corresponding to the target payment platform is located. If the code image carried by the bearing layer is not completely scanned within the first preset time length, a first prompt information can be generated to prompt the user to move the code scanning device.

[0070] Through the above method, the payment platform corresponding to the code image can be determined based on the partial image of the carrying layer that carries the code image. If the payment platform is the target payment platform, prompt information indicating the moving direction of the scanning device is generated based on the position information of the carrying image in the scanning area to guide the user to scan the code image.

[0071] When guiding the user to scan the code image, the user moves the code scanning device to the location of the code image according to the first prompt information. When the code scanning device is moved to the point where a portion of the code image can be scanned, the image in the code scanning area includes a portion of the code image and a portion of the carrier layer image. At this time, since the complete code image is still not included, the code image cannot be scanned. In this case, the following method can be used to guide the user to complete the scanning:

[0072] Optionally, the above method may further include:

[0073] After the code scanning device is moved, a second image within the scanning area of ​​the code scanning device is acquired; the second image includes a second partial image of the bearing layer bearing the code image;

[0074] Determining second position information of the code image in the second partial image;

[0075] Based on the second position information, second prompt information for indicating a second direction is generated; the second direction is used to indicate a direction from the center position of the scanning area to the second position of the code image in the second partial image.

[0076] The second image may represent an image in the scanning area after the code scanning device is moved. The second image includes a second partial image of the carrier layer that carries the code image, and further, the second image may include a partial image of the code image.

[0077] At this time, since the second image in the scanning area includes a partial image of the code image, the second position information of the code image in the second image in the scanning area can be determined. According to the position of the partial code image in the scanning area, the user is prompted to move the code scanning device in the second direction so that the code scanning device can scan the complete code image. The second direction can be used to indicate the direction from the center position of the scanning area to the second position of the code image in the scanning area.

[0078] Through the above method, prompt information for prompting the moving direction of the code scanning device is generated according to the position information of the code image in the scanning area, so as to improve the efficiency of the user scanning the complete code image.

[0079] In actual applications, after the code scanning device is moved, for the visually impaired or those who do not know how to use code scanning payment, there may be a situation where the image scanned by the code scanning device does not include the code image. The scanned image also does not include text, images or logo information related to the code image, and the scanned image only includes the background color information of the carrier layer. At this time, the center position of the code image cannot be determined. This situation is generally caused by the distance between the scanning device and the area to be scanned being less than the preset distance, or being too close; or because the image distance of the camera of the code scanning device is too small. At this time, the user can be prompted to move the code scanning device further away from the area to be scanned or to increase the image distance of the camera. Of course, during the scanning process, even if the image in the code scanning area contains part of the code image or other information related to the code image, if the distance between the scanning device and the area to be scanned is less than the preset distance, the center position of the code image cannot be determined. It is also necessary to prompt the user to move the code scanning device further away from the area to be scanned or to increase the image distance of the camera.

[0080] Specifically, the above method may include the following steps:

[0081] After the code scanning device is moved, an image within a scanning area of ​​the code scanning device is acquired;

[0082] When the position of the code image cannot be determined according to the image in the scanning area of ​​the code scanning device, a prompt message is generated; the prompt message is used to prompt to increase the distance between the code scanning device and the area to be scanned or to increase the image distance.

[0083] It should be noted that the image in the above step does not include a code image, nor does it include text information or identification information related to the code image. The image may only include background color information of a carrier layer for carrying the code image.

[0084] Through the above method, when the distance between the code scanning device and the area to be scanned is less than the preset distance or the image distance is small, corresponding prompt information can be generated to prompt the user to increase the distance between the code scanning device and the area to be scanned or adjust the image distance to speed up the user's scanning process of the code image.

[0085] In practical applications, after the first position information of the first partial image in the scanning area is obtained, the moving direction of the scanning device is determined based on the first position information, which can be implemented by the following method:

[0086] The first position information may specifically be the position coordinates of the first partial image in the scanning area, wherein the position coordinates of the first partial image in the scanning area may specifically be the position coordinates of the center of the set of the first partial images in the scanning area.

[0087] Therefore, when determining the position coordinates of the first partial image in the scanning area, the geometric center of gravity of the first partial image may be determined first; and then the position coordinates of the geometric center of gravity in the scanning area may be determined.

[0088] Optionally, the generating first prompt information for indicating the first direction may specifically include:

[0089] determining the first direction based on the first position information;

[0090] Based on the first direction, the first prompt information is generated.

[0091] It should be noted that the geometric centroid can be defined as: any line passing through the geometric centroid can bisect the area of ​​a figure.

[0092] In actual applications, the first direction may refer to the specific direction in which the scanning device moves, which may include up, down, left, right, upper left, lower left, upper right, lower right and other directions.

[0093] Optionally, the determining the first direction may specifically include:

[0094] Determine first position coordinates of the first partial image within the scanning area;

[0095] Determine a second position coordinate of a center position of the scanning area;

[0096] The first direction is determined according to the first position coordinates and the second position coordinates.

[0097] Specifically, when the first direction is determined according to the first position coordinates and the second position coordinates, the azimuth may be calculated according to the first position coordinates and the second position coordinates, and the first prompt information may be generated according to the calculated azimuth.

[0098] When calculating the azimuth angle, assuming that the first position coordinate is A (x1, y1) and the second position coordinate is B (x2, y2), the azimuth angle can be calculated using the following formula:

[0099]

[0100] in, is the quadrant angle, Δx AB Indicates the vertical coordinate increment from point A to point B, Δy AB It represents the horizontal coordinate increment from point A to point B. The coordinate increment has two cases, positive and negative. According to the positive and negative of the horizontal and vertical coordinate increments, the quadrant can be determined. According to the quadrant, the quadrant angle can be converted into azimuth.

[0101] After the azimuth is calculated, generating first prompt information according to the calculated azimuth may specifically include:

[0102] Determine the direction angle range corresponding to the azimuth angle, determine the first direction corresponding to the azimuth angle according to the angle range corresponding to the azimuth angle, and generate first prompt information according to the first direction.

[0103] It can be understood that the specific angle value of the calculated azimuth is classified into a preset angle direction, and the first prompt information is generated according to the angle direction.

[0104] To improve practicality, the following methods can be used:

[0105] When the prompt information is broadcasted in voice mode, the direction of the prompt can be determined according to the calculated azimuth angle in accordance with the aforementioned method.

[0106] When prompt information is displayed in the form of an image such as an arrow, the prompt image is generated according to the actual angle of the calculated azimuth.

[0107] Of course, in actual applications, the above two methods can be combined to prompt the user. Specifically, when the actual angle of the azimuth is calculated, the actual angle is classified into the preset angle direction, and the angle direction is announced by voice. At the same time, the direction arrow image corresponding to the actual angle is displayed to the user. For example: the generated azimuth is 52.5°. At this time, 52.5° can be classified as the upper right direction. When prompting, a 52.5° direction arrow can be directly generated, and the direction arrow can be displayed to the user as a prompt message, and the voice broadcast "Please move the scanning device to the upper right direction" can be announced.

[0108] Through the above method, when the user scans the code to pay, a variety of prompt methods are provided to the user, which is convenient for the user to understand the prompt information and quickly operate the scanning device according to the prompt information.

[0109] Figure 3 This is the first schematic diagram for determining the moving direction of the scanning device during the scanning process provided by the embodiment of this specification.

[0110] like Figure 3 As shown, the first direction may refer to the specific direction in which the code scanning device moves. The first direction is preset to the angle areas corresponding to the eight directions of up, down, left, right, upper left, lower left, upper right, and lower right: Down Left right Top left Lower left Top right Bottom right At this time, assuming that the calculated azimuth because Therefore, the azimuth angle belongs to the upper right direction. A first prompt information may be generated to prompt the code scanning device to move to the upper right direction.

[0111] Through the above method, the calculated azimuth angle is matched to the preset direction angle range, and easy-to-understand direction prompt information is displayed to the user, so as to improve the efficiency of the user scanning the complete code image.

[0112] Generating the first prompt information according to the calculated azimuth angle may also include:

[0113] After the azimuth is calculated, the quadrant where the azimuth is located is determined;

[0114] Determine the moving direction of the code scanning device based on the quadrant area where the azimuth is located.

[0115] Figure 4This is the second schematic diagram for determining the moving direction of the scanning device during the scanning process provided in the embodiment of this specification.

[0116] like Figure 4 As shown, when the quadrant area to which the angle for determining the direction angle belongs is the first quadrant, the moving direction of the code scanning device is decomposed into two directions, right and upward; when it is the second quadrant, the moving direction of the code scanning device is decomposed into two directions, left and upward; when it is the third quadrant, the moving direction of the code scanning device is decomposed into two directions, left and downward; when it is the fourth quadrant, the moving direction of the code scanning device is decomposed into two directions, right and upward.

[0117] The code scanning device is prompted to move in any one of the decomposed directions. When the code scanning device moves, the position information of part of the image in the scanning area is calculated in real time according to the image scanned by the code scanning device; the moving direction of the code scanning device is calculated according to the position information calculated in real time.

[0118] It should be noted that during the movement of the code scanning device, there will be errors in the direction and angle in which the user moves the code scanning device. For example, when the code scanning device is instructed to move to the right, it may not be guaranteed that the code scanning device can move parallel to the device without error. Based on this, in the embodiments of this specification, the moving direction of the code scanning device can be calculated in real time during the movement of the code scanning device. For example, when the prompt information instructs the user to move to the right, after the code scanning device moves a certain distance to the right, the moving direction of the code scanning device is calculated to be upward. At this time, a prompt information can be displayed to prompt the user to stop moving the code scanning device to the right and instruct the user to move the code scanning device upward.

[0119] For example: Calculate the azimuth At this time, if the prompt message displayed is "Please move the phone in the direction of 50°", the user's naked eyes cannot accurately identify the direction angle and cannot accurately move the code scanning device. Based on this, the quadrant where the azimuth is located can be determined first, and the moving route of the code scanning device can be decomposed into directions along the coordinate axis according to the quadrant, for example: azimuth hour, It belongs to the first quadrant. At this time, the user can be prompted to move to the right first, and when it moves to a certain distance, stop moving to the right and indicate to move upward, or the user can be prompted to move upward first, and when it moves to a certain distance, stop moving upward and indicate to move to the right.

[0120] Of course, in practical applications, the azimuth angles can be classified into the eight angle directions mentioned above: up, down, left, right, upper left, lower left, upper right, and lower right, and then these eight directions can be decomposed.

[0121] After decomposing the direction corresponding to the azimuth angle in the above manner, when prompting the user according to the decomposed moving direction, the above-mentioned method of improving practicality can be combined to prompt the user. Specifically, when prompting the user in the form of voice broadcast, the following steps can be included:

[0122] After the azimuth is calculated, the two basic moving directions corresponding to the azimuth can be decomposed according to the specific angle of the azimuth; the user is first prompted to move in the first basic direction, and after the user moves the code scanning device in the first basic direction for a period of time / distance, the user is prompted to move in the second basic direction. Specifically, the number of basic directions and the corresponding relationship between the direction angle and the basic direction can be limited according to the actual application scenario, and the embodiments of this specification do not make specific limitations on this.

[0123] In the above steps, it should be noted that when prompting the user to move the code scanning device in each basic direction, the user can be prompted in combination with the above method of improving practicality.

[0124] In actual applications, for the visually impaired, voice broadcasting can be preferred. When broadcasting, if the specific angle value is broadcast, it is difficult for the user to understand the moving direction. Therefore, when performing voice broadcasting, the specific angle of the direction angle is classified as a preset angle direction, and voice broadcasting is performed according to the angle direction, or the specific angle of the direction angle is decomposed into two basic moving directions, and the voice prompts the user to move in the two basic directions, which can improve the efficiency and success rate of the visually impaired scanning operation. In addition, the above method can also facilitate ordinary users to quickly understand the prompt information, thereby improving the efficiency of ordinary users in scanning codes.

[0125] Through the above method, in the process of instructing the scanning device to move, the moving direction of the scanning device is calculated in real time according to the image scanned during the movement of the scanning device, so as to ensure that the moving direction of the scanning device is adjusted in time during the movement of the scanning device, so that the scanning device can scan the complete code image faster.

[0126] A third prompt information for indicating the first direction is generated; the third prompt information is presented differently from the first prompt information.

[0127] It should be noted that the third prompt information in the above step can be presented at the same time as the first prompt information, or can be presented after the first prompt information is displayed for a certain period of time. Combining prompt information in various forms is conducive to better guiding the user to move the code scanning device according to the prompt information to complete the scanning of the code image.

[0128] In actual applications, after the first prompt information is generated, it is necessary to send the first prompt information to the code scanning device. At this time, the first prompt information can specifically be text information, image information, animation information or voice information, etc. In the specific implementation process, it can be set according to the actual application scenario. For example, the text prompt information can be displayed on the screen of the code scanning device while the voice prompt information is played. The text information can also be displayed on the screen of the code scanning device first. After a period of time, if the code scanning device still does not move, the voice prompt information is played. For the visually impaired, voice prompts can be selected. For the illiterate, voice, image or animation prompt information can be selected. In this regard, the embodiments of this specification do not specifically limit it.

[0129] For example, taking mobile phone code scanning payment as an example, when it is determined that the first direction of the mobile phone movement is the "upper right" direction, after the first prompt information is generated, the first prompt information can be a text message "Please move the phone to the upper right direction" displayed on the current screen of the mobile phone, or a graphic simulating the movement of the mobile phone to the upper right direction can be displayed on the current screen, or an animation guiding the user to move the mobile phone can be displayed. It also has a voice playback function, which directly plays the voice message "Please move the phone to the upper right direction".

[0130] Alternatively, the image in the scanning area of ​​the scanning device may not be the image corresponding to the target payment platform. For example, the image scanned by the scanning device is the image corresponding to payment platform A, but the application performing the scanning operation is the application corresponding to payment platform B. In this case, the following methods can be used to prompt the user:

[0131] When the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information, determining an original payment platform corresponding to the characteristic information;

[0132] Generate fourth prompt information, where the fourth prompt information is used to prompt that the code image in the scanning area is the code image corresponding to the original payment platform.

[0133] When the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information, and the scanning time is greater than or equal to the preset time, it jumps to the error page; the error page is used to prompt that the code image in the scanning area does not match the application performing the scanning operation.

[0134] In the above steps, when the characteristic information of the carrier layer in the scanned image is inconsistent with the target characteristic information of the carrier layer of the target payment platform, it can be determined that the image scanned by the code scanning device is not the image corresponding to the target payment platform. At this time, the original payment platform corresponding to the characteristic information of the carrier layer in the scanned image can be determined, and the name of the original payment platform corresponding to the scanned image can be generated. Of course, if the scanning time is greater than or equal to the preset time, it can also jump directly to the error reporting interface, and display the prompt information that the code image in the scanning area does not match the application performing the scanning operation on the error reporting interface. For example: when the characteristic information of the carrier layer in the scanned image is inconsistent with the target characteristic information of the carrier layer of the target payment platform, it is possible not to jump to the error reporting interface, and directly display "The current scanned image is the image of A payment, please align with the QR code of B payment" in the interface. When the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information, and the scanning time is greater than or equal to the preset time, it can also jump directly to the error reporting interface, and display "The current scanned image does not match B payment" in the error reporting interface. It should be noted that the fourth prompt information here can also be one or more prompt information in text form, graphic form, and voice form.

[0135] In order to explain the method in the above embodiments in detail, the following specific implementation examples can be used for illustration:

[0136] Figure 5 It is a schematic diagram of the scanning process provided in the embodiment of this specification.

[0137] like Figure 5 As shown, suppose user X goes to merchant Y to buy goods. After the purchase, he needs to scan the code to pay. At this time, the cashier counter of merchant Y is placed with a sign for users to scan the code to pay. The sign can be attached with the payment code of payment platform A and payment platform B. The background color of the first bearing layer 501 corresponding to payment platform A is blue. The first bearing layer 501 also has corresponding text information, special identification information, and a thumbnail of payment platform A or a thumbnail of the application corresponding to payment platform A. The payment code 502 in the first bearing layer 501 is the payment code corresponding to payment platform A. The background color of the second bearing layer 503 corresponding to payment platform B is blue. The second bearing layer 503 also has corresponding text information, special identification information, and a thumbnail of payment platform B or a thumbnail of the application corresponding to payment platform B. The payment code 504 in the second bearing layer 503 is the payment code corresponding to payment platform B.

[0138] User X wants to use payment method B to make a payment. The characteristic information of the bearer layer corresponding to payment platform B is: the background color is green, the text information carries the platform name or name abbreviation of payment platform B, and has an icon thumbnail of the application corresponding to payment platform B.

[0139] When user X uses a barcode scanning device to scan the payment code on the billboard, the scanned image is the first image 505. At this time, the first image 505 includes a partial image of the first bearing layer 501 and a partial image of the second bearing layer 503. At this time, the characteristic information of the partial image of the first bearing layer 501 is determined as follows: the background color is blue, and the characteristic information of the partial image of the second bearing layer 503 is determined as follows: the background color is green, and the text information includes the platform name of the B payment platform. At this time, it can be determined that the characteristic information of the second bearing layer is consistent with the characteristic information of the target payment platform (B payment platform). Next, the position information of the partial image of the second bearing layer in the scanning area is determined, and the scanning device is instructed to move to the "upper right" direction according to the position information. After the scanning device moves, the second image 506 is scanned. The second image includes the partial image of the second bearing layer 503 and the partial image of the payment code 504. At this time, the position information of the partial image of the payment code 504 in the scanning area can be determined. According to the position information of the partial image of the payment code 504 in the scanning area, the moving direction of the scanning device is determined to be "lower left", and the scanning device is instructed to move to the "lower left" direction until the complete code image of the payment code 504 is scanned.

[0140] Through the above method, when the code scanning device fails to scan the code image or fails to scan the complete code image, the moving direction of the code scanning device can be determined based on the position information of the partial image of the carrier layer or the partial image of the code image in the scanning area, and prompt information for instructing the movement of the code scanning device is generated according to the moving direction to guide the user to scan the code image, thereby improving the success rate of the user's scanning of the code image.

[0141] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 6 The embodiment of this specification provides the corresponding Figure 1 A schematic diagram of a prompt device during a code scanning process. Figure 6 As shown, a prompt device 60 during the code scanning process may include:

[0142] The first image acquisition module 602 is used to acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image;

[0143] A first position information determining module 604 is used to determine first position information of the first partial image within the scanning area;

[0144] The first prompt information generating module 606 is used to generate first prompt information indicating a first direction based on the first position information; the first direction is used to indicate a direction from the center position of the scanning area to the first position of the first partial image in the scanning area.

[0145] based on Figure 6 The present specification also provides some specific implementation schemes of the method, which are described below.

[0146] Optionally, the device may further include:

[0147] A bearing layer characteristic information identification module, used for identifying characteristic information of the bearing layer based on the first partial image;

[0148] A judgment module, used to judge whether the characteristic information is consistent with the target characteristic information, and obtain a first judgment result; the target characteristic information is the characteristic information of the bearing layer of the target payment platform including the bearing code image;

[0149] The first location information determination module may be specifically used for:

[0150] When the first judgment result indicates that the feature information is consistent with the target feature information, first position information of the first partial image within the scanning area is determined.

[0151] Optionally, the first prompt information generating module 606 may specifically include:

[0152] The first prompt information generating unit is used to generate first prompt information indicating a first direction when the first judgment result indicates that the characteristic information is consistent with the target characteristic information and the code image carried by the bearing layer has not been completely scanned within a first preset time length.

[0153] Optionally, the device may further include:

[0154] A second image acquisition module is used to acquire a second image in the scanning area of ​​the code scanning device after the code scanning device is moved; the second image includes a second partial image of the bearing layer bearing the code image;

[0155] A second position information determining module, used to determine second position information of the code image in the scanning area;

[0156] The second prompt information generating module is used to generate second prompt information indicating a second direction based on the second position information; the second direction is used to indicate a direction from the center position of the scanning area to the second position of the code image in the scanning area.

[0157] Optionally, the first prompt information generating module 606 may specifically include:

[0158] a first direction determining unit, configured to determine the first direction based on the first position information;

[0159] The first prompt information generating unit is configured to generate the first prompt information based on the first direction.

[0160] Optionally, the first direction determining unit may specifically include:

[0161] A first position coordinate determining subunit, used to determine a first position coordinate of the first partial image within the scanning area;

[0162] A second position coordinate determining subunit, used to determine a second position coordinate of a center position of the scanning area;

[0163] The first direction determining subunit is used to determine the first direction according to the first position coordinates and the second position coordinates.

[0164] Optionally, the bearer layer characteristic information identification module may be specifically used for:

[0165] One or more of the background color information, display text information and specific identification information of the bearing layer is identified.

[0166] Optionally, the first location information determining module 604 may be specifically configured to:

[0167] The position coordinates of the first partial image within the scanning area are determined.

[0168] Optionally, the first location information determining module 604 may be specifically configured to:

[0169] determining the geometric center of gravity of the first partial image;

[0170] The position coordinates of the geometric center of gravity within the scanning area are determined.

[0171] Optionally, the first prompt information may specifically include:

[0172] One or more prompt information in text form, graphic form, and voice form.

[0173] Optionally, the device may further include:

[0174] The third prompt information generating module is used to generate third prompt information for indicating the first direction; the third prompt information is presented differently from the first prompt information.

[0175] Optionally, the second prompt information may specifically include:

[0176] One or more prompt information in text form, graphic form, and voice form.

[0177] Optionally, the device may further include:

[0178] an original payment platform determination module, configured to determine an original payment platform corresponding to the characteristic information when the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information;

[0179] The fourth prompt information generating module is used to generate fourth prompt information, and the fourth prompt information is used to prompt that the code image in the scanning area is the code image corresponding to the original payment platform.

[0180] Optionally, the device may further include:

[0181] An error reporting module is used to jump to an error reporting page when the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information and the scanning time is greater than or equal to the preset time; the error reporting page is used to prompt that the code image in the scanning area does not match the application performing the scanning operation.

[0182] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

[0183] Figure 7 This specification provides an embodiment corresponding to Figure 1 A schematic diagram of the structure of a prompt device during the code scanning process. Figure 7 As shown, the device 700 may include:

[0184] at least one processor 710; and,

[0185] A memory 730 in communication with the at least one processor; wherein,

[0186] The memory 730 stores instructions 720 that can be executed by the at least one processor 710. The instructions are executed by the at least one processor 710 to enable the at least one processor 710 to:

[0187] Acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image;

[0188] Determine first position information of the first partial image within the scanning area;

[0189] Based on the first position information, first prompt information for indicating a first direction is generated; the first direction is used to indicate a direction from a center position of the scanning area to a first position of the first partial image in the scanning area.

[0190] Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the following method:

[0191] Acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image;

[0192] Determine first position information of the first partial image within the scanning area;

[0193] Based on the first position information, first prompt information for indicating a first direction is generated; the first direction is used to indicate a direction from a center position of the scanning area to a first position of the first partial image in the scanning area.

[0194] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, 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 should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0195] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, 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 also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0196] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with 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 smart phone, 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.

[0197] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0198] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, 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 disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0199] 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 flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, 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 flowchart and / or block diagram. 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.

[0200] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 A function specified in one or more boxes.

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

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

[0203] The 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. The memory is an example of a computer-readable medium.

[0204] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, 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 temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0205] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0206] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

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

[0208] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A prompt method during a code scanning process, comprising: Acquire a first image within a scanning area of ​​a barcode scanning device; The first image includes a first partial image of a bearing layer for bearing a code image; Determine first position information of the first partial image within the scanning area; Based on the first position information, generating first prompt information for indicating a first direction; The first direction is used to indicate a direction from the center position of the scanning area to the position of the first partial image in the scanning area; the first direction is determined based on the coordinates of the center position of the first partial image in the scanning area and the coordinates of the center position of the scanning area; The first prompt information is used to prompt the user to move the code scanning device to guide the user to scan the code image.

2. The method according to claim 1, before determining the first position information of the first partial image within the scanning area, further comprising: Based on the first partial image, identifying characteristic information of the bearing layer; Determine whether the characteristic information is consistent with the target characteristic information, and obtain a first determination result; The target characteristic information is characteristic information of the bearer layer of the target payment platform including the bearer code image; The determining the first position information of the first portion of the image within the scanning area specifically includes: When the first judgment result indicates that the feature information is consistent with the target feature information, first position information of the first partial image within the scanning area is determined.

3. According to the method of claim 2, the generating of the first prompt information for indicating the first direction specifically comprises: When the first judgment result indicates that the characteristic information is consistent with the target characteristic information, and the code image carried by the bearing layer has not been completely scanned within a first preset time length, first prompt information for indicating a first direction is generated.

4. The method according to claim 1, further comprising: After the code scanning device is moved, acquiring a second image within the scanning area of ​​the code scanning device; The second image includes a second partial image of a bearing layer bearing a code image; Determine second position information of the code image within the scanning area; Based on the second position information, generating second prompt information for indicating a second direction; The second direction is used to indicate the direction from the center position of the scanning area to the second position of the code image within the scanning area; the second direction is determined based on the coordinates of the center position of the code image located in the second partial image in the scanning area, and the coordinates of the center position of the scanning area.

5. According to the method of claim 2, the identifying characteristic information of the bearer layer specifically comprises: One or more of the background color information, display text information and specific identification information of the bearing layer is identified.

6. According to the method of claim 1, the generating of the first prompt information for indicating the first direction specifically comprises: determining the first direction based on the first position information; Based on the first direction, the first prompt information is generated.

7. The method according to claim 6, wherein determining the first direction comprises: Determine first position coordinates of the first partial image within the scanning area; the first position coordinates are position coordinates of the geometric center of gravity of the first partial image within the scanning area; Determine a second position coordinate of a center position of the scanning area; The first direction is determined according to the first position coordinates and the second position coordinates.

8. The method according to claim 7, wherein determining the first direction according to the first position coordinates and the second position coordinates comprises: Determine an azimuth angle according to the first position coordinates and the second position coordinates; Generate first prompt information according to the azimuth angle.

9. The method according to claim 8, wherein generating the first prompt information according to the azimuth angle specifically comprises: Determine the direction angle range corresponding to the azimuth; Determining a first direction corresponding to the azimuth angle according to an angle range corresponding to the azimuth angle; Generate first prompt information according to the first direction.

10. The method according to claim 8, wherein generating the first prompt information according to the azimuth angle specifically comprises: Determine the quadrant area where the azimuth angle is located; The moving direction of the code scanning device is determined according to the quadrant area where the azimuth angle is located.

11. The method according to claim 8, after determining the azimuth according to the first position coordinates and the second position coordinates, further comprising: According to the specific angle of the azimuth, determining the basic moving direction corresponding to the azimuth; According to the basic moving direction, fifth prompt information is determined, and the fifth prompt information is used to prompt the user to move the code scanning device according to the basic moving direction.

12. The method according to claim 11, when prompting the user by voice broadcast, specifically comprises: After the azimuth is calculated, two basic moving directions corresponding to the azimuth are decomposed according to the specific angle of the azimuth; The user is first prompted to move in a first basic direction. After the user moves the code scanning device in the first basic direction for a period of time or a distance, the user is prompted to move in a second basic direction.

13. The method according to claim 1, further comprising: generating third prompt information for indicating the first direction; The third prompt information is presented differently from the first prompt information.

14. According to the method of claim 4, the second prompt information specifically comprises: One or more prompt information in text form, graphic form, and voice form.

15. The method according to claim 2, further comprising: When the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information, determining an original payment platform corresponding to the characteristic information; Generate fourth prompt information, where the fourth prompt information is used to prompt that the code image in the scanning area is the code image corresponding to the original payment platform.

16. The method according to claim 2, further comprising: When the first judgment result indicates that the characteristic information is inconsistent with the target characteristic information, and the scanning time is greater than or equal to the preset time, jump to the error reporting page; The error page is used to prompt that the code image in the scanning area does not match the application performing the code scanning operation.

17. The method according to claim 1, further comprising: The first position information is used to indicate the position coordinates of the first partial image within the scanning area.

18. The method of claim 1, further comprising: The first direction is used to indicate a direction from the center position of the scanning area to a first position of the first partial image in the scanning area.

19. The method according to claim 1, wherein the first prompt information comprises one or more prompt information in text form, graphic form, animation form and voice form.

20. The method according to claim 1, wherein determining first position information of the first partial image within the scanning area comprises: determining the geometric center of gravity of the first partial image; The position coordinates of the geometric center of gravity within the scanning area are determined.

21. The method according to claim 1, further comprising: After the code scanning device is moved, an image within a scanning area of ​​the code scanning device is acquired; When the position of the code image cannot be determined according to the image in the scanning area of ​​the code scanning device, fifth prompt information is generated; the fifth prompt information is used to prompt to increase the distance between the code scanning device and the area to be scanned or to increase the image distance.

22. A prompt device during code scanning, comprising: A first image acquisition module, used to acquire a first image within a scanning area of ​​a code scanning device; The first image includes a first partial image of a bearing layer for bearing a code image; A first position information determining module, used to determine first position information of the first partial image within the scanning area; A first prompt information generating module, used for generating first prompt information indicating a first direction based on the first position information; The first direction is used to indicate a direction from the center position of the scanning area to the first position of the first partial image in the scanning area; the first direction is determined based on the coordinates of the center position of the first partial image in the scanning area and the coordinates of the center position of the scanning area; The first prompt information is used to prompt the user to move the code scanning device to guide the user to scan the code image.

23. A prompt device during code scanning, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Acquire a first image in a scanning area of ​​a code scanning device; the first image includes a first partial image of a bearing layer for bearing a code image; Determine first position information of the first partial image within the scanning area; Based on the first position information, first prompt information for indicating a first direction is generated; the first direction is used to indicate a direction from the center position of the scanning area to the position of the first partial image in the scanning area; the first direction is determined based on the coordinates of the center position of the first partial image in the scanning area, and the coordinates of the center position of the scanning area; the first prompt information is used to prompt the user to move the code scanning device to guide the user to scan the code image.

24. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement a prompt method in a code scanning process as described in any one of claims 1 to 21.

Citation Information

Patent Citations

  • Information processing method and mobile terminal

    CN108764001A

  • Object identification method and mobile terminal

    CN109151180A

  • A method, device, and equipment for providing prompts during the QR code scanning process.

    CN111709418B