WO2021244525A1 - 扫码过程中的提示方法、装置及设备 - Google Patents

扫码过程中的提示方法、装置及设备 Download PDF

Info

Publication number
WO2021244525A1
WO2021244525A1 PCT/CN2021/097666 CN2021097666W WO2021244525A1 WO 2021244525 A1 WO2021244525 A1 WO 2021244525A1 CN 2021097666 W CN2021097666 W CN 2021097666W WO 2021244525 A1 WO2021244525 A1 WO 2021244525A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
image
code
scanning area
prompt
Prior art date
Application number
PCT/CN2021/097666
Other languages
English (en)
French (fr)
Inventor
方视菁
李君�
邹启晨
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021244525A1 publication Critical patent/WO2021244525A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]

Definitions

  • This application relates to the field of computer technology, and in particular to a prompt method, device and equipment in the process of scanning codes.
  • Code graphics in specific formats such as two-dimensional codes and bar codes, are increasingly used in the prior art.
  • the problem of scanning failure may occur.
  • the user may need to scan the first code image of payment platform A, but what the terminal device actually scans is the payment The second code image of platform B.
  • the user's eyesight is limited and the specific location of the code image cannot be clearly seen, so that when the terminal device scans the code image, the entire code image is not completely in the scanning area, which may also cause the problem of failure to send and scan.
  • the embodiments of this specification provide a prompt method, device, and equipment during the code scanning process, so as to solve the problem of the low success rate of the code image scanning in the existing code scanning payment method.
  • the embodiment of this specification is implemented as follows: the prompt method during the scanning process provided by the embodiment of this specification includes: acquiring the first image in the scanning area of the scanning device; The image contains the first partial image of the carrier layer used to carry the code image; the first position information of the first partial image in the scanning area is determined; based on the first position information, the first direction information is generated First prompt information; the first direction is used to indicate the direction from the center position of the scanning area to the first position of the first partial image in the scanning area.
  • An embodiment of this specification provides a prompting device during a code scanning process, including: a first image acquisition module for acquiring a first image in the scanning area of the scanning device; the first image contains a code for carrying The first partial image of the bearing layer of the image; a first position information determination module, used to determine the first position information of the first partial image in the scanning area; a first prompt information generation module, used based on the first 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 first position of the first partial image in the scanning area .
  • An embodiment of this specification provides a prompt device during a code scanning process, including: at least one processor; and, a memory communicatively connected with the at least one processor; An instruction executed by the processor, the instruction being executed by the at least one processor, so that the at least one processor can: obtain a first image in the scanning area of the code scanning device; The first partial image of the bearing layer bearing the code image; determining the first position information of the first partial image in the scanning area; based on the first position information, generating first prompt information for indicating the first direction; 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 embodiment of this specification provides a computer-readable medium, on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement a prompt method during a code scanning process.
  • An embodiment of this specification achieves the following beneficial effects: by acquiring the first image in the scanning area of the code scanning device; determining that the first part of the image of the carrier layer for carrying the code image contained in the first image is in the scan Location information within the area; based on the location information, first prompt information for indicating a first direction is generated; the first direction is used to indicate that the center of the scan area points to the first partial image in the scan The direction of the location in the area.
  • FIG. 1 is a flowchart of a prompt method during a code scanning process provided by an embodiment of this specification
  • FIG. 2 is a schematic diagram of characteristic information of a bearer layer provided by an embodiment of this specification
  • FIG. 3 is a first schematic diagram of determining the moving direction of the code scanning device during the code scanning process provided by the embodiment of this specification;
  • FIG. 4 is a second schematic diagram of determining the moving direction of the code scanning device during the code scanning process provided in the embodiment of this specification;
  • Figure 5 is a schematic diagram of a code scanning process provided by an embodiment of this specification.
  • FIG. 6 is a schematic diagram of a prompt device during a code scanning process corresponding to FIG. 1 provided by an embodiment of this specification;
  • FIG. 7 is a schematic structural diagram of a prompt device in a code scanning process corresponding to FIG. 1 provided by an embodiment of this specification.
  • the merchant will often provide code images corresponding to multiple payment platforms for the user to scan, and in order to facilitate the user to scan, the code images of multiple platforms
  • the user may appear that the “scan” function of the A payment platform is turned on, but the code image corresponding to the B payment platform is scanned, or in some cases
  • the user may not be able to determine which code image is the code corresponding to the opened payment application.
  • the user needs to ask the merchant to determine the correct code image, and then move to scan the code.
  • the device aligns the code image for scanning, which reduces the efficiency and success rate of scanning the code image.
  • FIG. 1 is a schematic flowchart of a code scanning prompt method provided in an embodiment of the specification. From a program perspective, the execution subject of a process can be a program or an application client loaded on an application server.
  • Step 102 Obtain a first image in the scanning area of the code scanning device; the first image includes a first partial image of a bearing layer for bearing the code image.
  • the code scanning device may be a device with a code scanning function.
  • it can be a mobile terminal with a code scanning function, such as a mobile phone, a tablet computer.
  • the scanning device can also scan barcodes and QR codes. Therefore, the scanning device can also be a barcode scanner, a QR code scanner, a barcode scanner, and so on.
  • the scanning area can indicate the range of the image area that can be scanned by the code scanning device.
  • 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 a carrier layer for carrying the code image.
  • the image in the scanning area may not include the code image, and only include the first part of the image of the bearing layer.
  • the carrier layer here may refer to a carrier used to carry the code image, for example, the printed payment code is attached to a paper or plastic carrier.
  • the carrier layer may be the paper or plastic carrier.
  • the bearing layer may be a layer used to display the payment code and its related information in the software that displays the screen.
  • the carrier layer used to carry the code image contains information related to the code image.
  • the carrier layer can have a background color, and the carrier layer can have text, images, logos, and so on.
  • Step 104 Determine first position information of the first partial image in the scanning area.
  • the size of the scanning area is fixed.
  • the position information of the image in the scanning area in the scanning area is also fixed.
  • the position information mentioned here may be the position coordinates of the bearing image in the scanning area.
  • Step 106 Based on the first position information, generate first prompt information for indicating a first direction; the first direction is used to indicate that the center position of the scanning area points to the first partial image in the scanning The direction of the location in the area.
  • the entire code image is not in the scanning area or the scanning area does not contain the code image.
  • the position information of part of the image on the bearing layer moves the code scanning device so that the scanning device can scan the code image.
  • the position information of the partial image of the carrier layer in the current scanning area in the scanning area can be determined, 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, and it is determined that the scanning device moves Direction.
  • the moving direction of the code device can determine the coordinates of the center position of the partial image of the carrier layer in the scan code area in the scan code area, and determine the scan code based on the coordinates of the center position of the partial image in the scan code area and the center coordinates of the scan code area.
  • the first prompt information may specifically include: one or more prompt information in a text form, a graphic form, an animation form, and a voice form.
  • the prompt mode of the prompt information can be freely selected/combined according to the actual situation, which is not specifically limited in the embodiment of this specification.
  • the method may further include: identifying characteristic information of the carrier layer based on the partial image; determining that the characteristic information is consistent with Whether the target feature information is consistent or not, the first judgment result is obtained; the target feature information is the feature information of the carrier layer of the target payment platform that contains the carrier code image; the first part of the determination that the first partial image is in the scanning area
  • the location information may specifically include: when the first judgment result indicates that the feature information is consistent with the target feature information, determining the first location information of the first partial image in the scanning area.
  • the characteristic information of the bearing layer may include one or more of the background color information of the bearing layer, display text information, and specific identification information.
  • the displayed text information in the bearer layer can be publicity terms, 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, etc.
  • the specific identification information may be information that uses a specific symbol or pattern to indicate the payment platform corresponding to the code image.
  • FIG. 2 is a schematic diagram of the characteristic information of the bearer layer provided in an embodiment of the present specification.
  • the color of the background 2011 in the bearing layer 201 of the A payment platform is blue
  • the text information in the bearing layer 201 includes: “Payment, please specify A payment”, “A payment” ", “APAY”, “Pay with A Scan Code” and “Open “Scan Scan” on A Homepage”.
  • the bearer layer 201 also includes specific identification information 2012. According to the color of the background 2011 in the bearing 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 bearing layer 201 corresponds to the A payment platform.
  • code image 202 in the code area in the bearing layer 201, and the code image matches the A platform.
  • the judgment can be made based on only one type of characteristic information, or multiple types of characteristic information can be combined for judgment. For example: it can only be determined that the text information of the bearer layer in the first part of the image is the same as the text information of the bearer layer of the target payment platform, and it is determined that the characteristic information of the bearer layer is consistent with the target characteristic information of the bearer layer of the target payment platform. Or it is only judged that the background color and identification information are the same, and the characteristic information of the bearer layer is determined to be consistent with the target characteristic information of the bearer layer of the target payment platform.
  • the same text information is not limited to the same text content. It is only necessary to ensure that the name of the payment platform in the text is the same.
  • multiple types of feature information can also be judged at the same time, for example: only when all the feature information of the carrier layer in the first part of the image is the same as all the feature information of the carrier layer of the target payment platform, can the feature information of the carrier layer be determined It is consistent with the target feature information of the bearer layer of the target payment platform.
  • the display text information and the specific identification information in the carrier layer bearing the code image it can be determined whether the carrier layer matches the target payment institution. It is even possible to determine the payment platform corresponding to the bearer layer according to the characteristic information in the bearer layer.
  • a prompt message is displayed for the user to guide the user to move the scanning device to scan Matching code image.
  • the position information of the partial image of the bearing layer in the scanning area within the scanning area can be determined.
  • the bearer layer in the scanning area is the bearer layer where the payment code corresponding to the target payment platform is located. If the code image carried by the bearer layer is not completely scanned within the first preset time period, a first prompt message may be generated to prompt the user to move the code scanning device.
  • the payment platform corresponding to the code image can be determined according to the partial image of the bearer layer of the bearer code image. If the payment platform is the target payment platform, according to the location information of the bearer image in the scanning area, it is generated to indicate the scan code.
  • the prompt message of the moving direction of the device guides the user to scan the code image.
  • the user moves the scanning device to the location of the code image according to the first prompt message.
  • the scanning device is moved to a part of the code image, the image in the scanning area contains part of the code.
  • the image and part of the bearing layer image at this time, because the complete code image is still not included, the scanning of the code image cannot be completed.
  • the above method may also include: after the code scanning device is moved, acquiring a second image in the scanning area of the code scanning device
  • the second image contains the second partial image of the bearing layer bearing the code image; the second position information of the code image in the second partial image is determined; based on the second position information, the second partial image is generated for The second prompt information indicating the 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 in the second partial image.
  • the second image may represent the image in the scanning area after the scanning device is moved.
  • the second image includes a second partial image of the carrier layer that bears the code image.
  • the second image may also include 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.
  • 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 may 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.
  • prompt information for prompting the moving direction of the code scanning device is generated, so as to improve the efficiency of the user in scanning the complete code image.
  • the code scanning device after the code scanning device is moved, for the visually impaired or people who cannot use the code scanning to pay, there may be an image scanned by the code scanning device that does not include the code image.
  • the scanned image also does not include the text, image or identification information related to the code image, and the scanned image only includes the background color information of the carrier layer.
  • 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 is less than the preset distance, and the distance is too close; or the image distance of the camera of the scanning device is too small.
  • the user can be prompted to move the code scanning device farther away from the area to be scanned or to increase the image distance of the camera.
  • the code image cannot be determined.
  • the central location It is also necessary to prompt the user to keep the distance between the scanning device and the area to be scanned or to increase the image distance of the camera.
  • the above method may include the following steps: after the code scanning device is moved, acquiring an image in the scanning area of the code scanning device; according to the image in the scanning area of the code scanning device, it is impossible to determine When the position of the code image is described, prompt information is generated; the 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.
  • the image in the above steps 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 the background color information of the bearing layer for bearing the code image.
  • the following methods can be used to implement: Is the position coordinate of the first part of the image in the scanning area.
  • the position coordinates of the first partial image in the scanning area may specifically be the position coordinates of the collection center of the first partial image in the scanning area.
  • the geometric center of gravity of the first partial image may be determined first; then, the position coordinates of the geometric center of gravity in the scanning area may be determined.
  • the generating first prompt information for indicating the first direction may specifically include: determining the first direction based on the first position information; generating the first direction based on the first direction Prompt information.
  • geometric center of gravity can be defined as: any line passing through the geometric center of gravity can equally divide the area of a figure.
  • the first direction may refer to the specific direction in which the code scanning device moves, and may include directions such as up, down, left, right, upper left, lower left, upper right, and lower right.
  • the determining the first direction may specifically include: determining the first position coordinates of the first partial image in the scanning area; determining the second position coordinates of the center position of the scanning area; The first position coordinates and the second position coordinates determine the first direction.
  • the azimuth angle 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 angle .
  • the azimuth angle can be calculated using the following formula:
  • generating the first prompt information according to the calculated azimuth angle may specifically include: determining the direction angle range corresponding to the azimuth angle, and determining the first azimuth angle corresponding to the azimuth angle according to the angle range corresponding to the azimuth angle.
  • the first prompt message is generated according to the first direction.
  • the calculated specific angle value of the azimuth angle is classified into a preset angle direction, and the first prompt information is generated according to the angle direction.
  • the following method when the prompt information is broadcast by voice, the direction of the prompt can be determined according to the calculated azimuth according to the aforementioned method.
  • the prompt image is generated according to the actual angle of the calculated azimuth angle.
  • the above two methods can be combined to prompt the user.
  • the actual angle of the azimuth angle is calculated, the actual angle is classified into the preset angle direction, and the angle direction is broadcasted by voice, and At the same time, the direction arrow image corresponding to the actual angle is displayed for the user.
  • the generated azimuth is 52.5°
  • 52.5° can be classified as the upper right direction.
  • a 52.5° direction arrow can be directly generated, and the direction arrow can be displayed to the user as a prompt message.
  • the voice broadcast "Please move the scanning device to the upper right direction".
  • Fig. 3 is a first schematic diagram of determining the moving direction of the code scanning device during the code scanning process provided by the embodiment of this specification.
  • the first direction can refer to the specific direction of the scanning device moving.
  • the first direction is preset to the angle regions corresponding to the eight directions of up, down, left, right, upper left, lower left, upper right, and lower right. :superior Down Left right Upper left Lower left Upper right Lower right At this time, assuming that the calculated azimuth because Therefore, the azimuth angle belongs to the upper right direction.
  • the first prompt message can be generated to prompt the scanning device to move to the upper right direction.
  • the calculated azimuth angle is corresponding to the preset direction angle range, and easy-to-understand direction prompt information is displayed for the user, so as to improve the efficiency of the user in scanning the complete code image.
  • Generating the first prompt information according to the calculated azimuth angle may also include: after the azimuth angle is calculated, determining the quadrant area where the azimuth angle is located; and determining the moving direction of the code scanning device according to the quadrant area where the azimuth angle is located.
  • Fig. 4 is a second schematic diagram of determining the moving direction of the code scanning device during the code scanning process provided by the embodiment of this specification.
  • the movement direction of the scanning device is decomposed into two directions, right and upward; when it is the second quadrant, the movement of the scanning device is The direction is broken down into two directions, left and up; when it is in the third quadrant, the moving direction of the scanning device is broken down into two directions; when it is in the fourth quadrant, the moving direction of the scanning device is broken down into Two directions to the right and up.
  • Prompt to move the scanning device to any one of the decomposed directions When the 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 scanning device; according to the position calculated in real time Information, calculate the moving direction of the scanning device.
  • the moving direction of the code scanning device can be calculated in real time during the movement of the code scanning device.
  • the prompt message instructs the user to move to the right.
  • the moving direction of the scanning device is calculated to be up.
  • a prompt message can be displayed to remind the user to stop moving the scanning device to the right.
  • the azimuth can also be classified into the above-mentioned eight angle directions of up, down, left, right, top left, bottom left, top right, and bottom right, and then perform these eight directions. break down.
  • the user can be prompted in combination with the above-mentioned method to improve the practicability.
  • the following steps may be included: after the azimuth angle is calculated, the two basic moving directions corresponding to the azimuth angle can be decomposed according to the specific angle of the azimuth angle; prompt first The user moves in the first basic direction, and after the user moves the code scanning device in the first basic direction for a period of time/a certain distance, the user is then prompted to move in the second basic direction.
  • the number of basic directions and the corresponding relationship between the direction angles and the basic directions may be limited according to actual application scenarios, which are not specifically limited in the embodiment of this specification.
  • the prompt method of voice broadcast can be preferred. If the specific angle value is broadcast during the voice broadcast, it is more difficult for the user to understand the direction of movement. Therefore, when the voice broadcast is performed, the direction The specific angle of the angle is classified as a preset angle direction, and the voice broadcast is carried out according to the angle direction, or the specific angle of the direction angle is decomposed into two basic moving directions. The voice prompts the user to move in the two basic directions, which can improve the visually impaired The efficiency and success rate of scanning code operations. In addition, for ordinary users, the above method can also facilitate ordinary users to quickly understand the prompt information, thereby improving the efficiency of ordinary users in scanning codes.
  • the moving direction of the scanning device is calculated in real time to ensure that the scanning device is adjusted in time during the movement of the scanning device.
  • the moving direction of the code device so that the code scanning device can scan the complete code image faster.
  • the third prompt information in the foregoing steps may be presented simultaneously with the first prompt information, or may be presented after the first prompt information is displayed for a certain period of time. Combining multiple forms of prompt information helps to better guide users to move the code scanning device according to the prompt information to complete the scanning of the code image.
  • the first prompt information needs to be sent to the scanning device.
  • the first prompt information may specifically be text information, image information, animation information, or voice information.
  • it can be set according to actual application scenarios. For example: You can play voice prompts while displaying text prompts on the screen of the scanning device. You can also display text information on the screen of the scanning device first, and after a period of time, if the scanning device has not moved, a voice prompt message will be played. For the visually impaired, you can choose voice prompts. For the illiterate, you can choose voice, image or animation prompts. In this regard, the embodiments of this specification do not specifically limit.
  • the first prompt message can be displayed on the current screen of the mobile phone as the text message "Please The mobile phone moves to the upper right direction", it can also display graphics that simulate moving the mobile phone to the upper right direction on the current screen, and it can also display an animation that guides the user to move the mobile phone. It also has a voice playback function, which can directly play the voice message of "Please move the phone to the upper right direction”.
  • the image in the scanning area of the scanning device may not be the image corresponding to the target payment platform.
  • the image scanned by the scanning device is the image corresponding to the payment platform A, but the application that performs the scanning operation is payment B Application corresponding to the platform.
  • the user may be prompted in the following manner: when the first judgment result indicates that the feature information is inconsistent with the target feature information, determine the original payment platform corresponding to the feature information; generate fourth prompt information, the first The four prompt information is used to prompt that the code image in the scanning area is a code image corresponding to the original payment platform.
  • the characteristic information of the bearing layer in the scanned image is inconsistent with the target characteristic information of the bearing layer of the target payment platform, it can be determined that the image scanned by the scanning device is not an image corresponding to the target payment platform.
  • the original payment platform corresponding to the characteristic information of the bearing layer in the scanned image can be determined, and the name of the original payment platform corresponding to the scanned image can be generated.
  • the code scan duration is greater than or equal to the preset duration, you can also jump directly to the error reporting interface, and display a prompt message that the code image in the scanning area does not match the application performing the scan code operation on the error reporting interface.
  • the fourth prompt information may also be one or more prompt information in a text form, a graphic form, and a voice form.
  • FIG. 5 is a schematic diagram of the code scanning process provided by the embodiment of this specification.
  • the payment code 502 in the first bearer layer 501 is the payment code corresponding to the A payment platform.
  • the background color of the second bearer layer 503 corresponding to the B payment platform is blue, and the second bearer layer 503 also has corresponding text information, special identification information, and a thumbnail of the B payment platform or the thumbnail of the application corresponding to the B payment platform.
  • the payment code 504 in the second bearer layer 503 is the payment code corresponding to the B payment platform.
  • the characteristic information of the bearer layer corresponding to the B payment platform is: the background color is green, the text information carries the platform name or the abbreviation of the B payment platform, and the application corresponding to the B payment platform The icon thumbnail of the program.
  • the scanned image is the first image 505.
  • the first image 505 includes part of the image of the first carrier layer 501 and the second carrier layer 503. Part of the image.
  • the characteristic information of the part of the image of the first bearing layer 501 is: the background color is blue
  • the characteristic information of the part of the image of the second bearing layer 503 is: the background color is green
  • the text information includes B payment The platform name of the platform.
  • it can be determined that the characteristic information of the second bearer layer is consistent with the characteristic information of the target payment platform (B payment platform).
  • the scanning device determines the position information of the partial image of the second carrier layer in the scanning area, and instruct the scanning device to move to the "upper right” direction based on the position information.
  • the second image 506 is scanned, and the second The image includes a partial image of the second carrier layer 503 and a partial image of the payment code 504.
  • the position information of the partial image of the payment code 504 in the scanning area can be determined.
  • the location information determines that the moving direction of the code scanning device is "bottom left", and instructs the code scanning device to move to the "bottom left” direction until the complete code image of the payment code 504 is scanned.
  • the moving direction of the code scanning device can be determined according to the position information of the partial image of the carrier layer or the partial image of the code image in the scanning area , According to the moving direction, generate prompt information for indicating the movement of the code scanning device, and guide the user to scan the code image, so as to improve the success rate of the user in scanning the code image.
  • Fig. 6 is a schematic diagram of a prompting device corresponding to Fig. 1 during a code scanning process provided by an embodiment of the present specification. As shown in FIG.
  • a prompting device 60 in the scanning process may include: a first image acquisition module 602, configured to acquire a first image in the scanning area of the scanning device; the first image includes The first partial image of the carrier layer bearing the code image; the first position information determining module 604 is used to determine the first position information of the first partial image in the scanning area; the first prompt information generating module 606 is used to determine the first position information of the first partial image in the scanning area The first position information is used to generate first prompt information for indicating a first direction; the first direction is used to indicate that the center position of the scanning area points to the first partial image in the scanning area The direction of a location.
  • the device may further include: a bearer layer feature information recognition module, configured to recognize feature information of the bearer layer based on the first partial image; a judging module, configured to determine the feature information and the target feature If the information is consistent, the first judgment result is obtained; the target characteristic information is the characteristic information of the bearer layer of the target payment platform that contains the bearer code image; the first position information determining module can be specifically used for: when the first The judgment result indicates that the feature information is consistent with the target feature information, and the first position information of the first partial image in the scanning area is determined.
  • a bearer layer feature information recognition module configured to recognize feature information of the bearer layer based on the first partial image
  • a judging module configured to determine the feature information and the target feature If the information is consistent, the first judgment result is obtained
  • the target characteristic information is the characteristic information of the bearer layer of the target payment platform that contains the bearer code image
  • the first position information determining module can be specifically used for: when the first The judgment result indicates that the feature information is consistent with the target feature
  • the first prompt information generating module 606 may specifically include: a first prompt information generating unit, configured to: when the first judgment result indicates that the characteristic information is consistent with the target characteristic information, and the bearer layer The carried code image is not completely scanned within the first preset time period, and then first prompt information for indicating the first direction is generated.
  • a first prompt information generating unit configured to: when the first judgment result indicates that the characteristic information is consistent with the target characteristic information, and the bearer layer The carried code image is not completely scanned within the first preset time period, and then first prompt information for indicating the first direction is generated.
  • the apparatus may further include: a second image acquisition module, configured to acquire a second image in the scanning area of the scanning device after the scanning device is moved; the second image The second part of the image of the carrier layer that contains the code image; the second position information determination module is used to determine the second position information of the code image in the scanning area; the second prompt information generation module is used to The second position information is used to generate second prompt information for indicating a second direction; the second direction is used to indicate that the center position of the scanning area points to the second position of the code image in the scanning area. The direction of the location.
  • a second image acquisition module configured to acquire a second image in the scanning area of the scanning device after the scanning device is moved
  • the second image The second part of the image of the carrier layer that contains the code image
  • the second position information determination module is used to determine the second position information of the code image in the scanning area
  • the second prompt information generation module is used to The second position information is used to generate second prompt information for indicating a second direction
  • the second direction is used to indicate that the center
  • the first prompt information generating module 606 may specifically include: a first direction determining unit, configured to determine the first direction based on the first position information; and a first prompt information generating unit, configured to Based on the first direction, the first prompt information is generated.
  • the first direction determining unit may specifically include: a first position coordinate determining subunit, configured to determine the first position coordinates of the first partial image in the scanning area; and a second position coordinate determining subunit A unit for determining the second position coordinates of the center position of the scanning area;
  • the first direction determining subunit is configured to determine the first direction according to the first position coordinates and the second position coordinates.
  • the bearer layer characteristic information identification module may be specifically used to identify one or more of background color information, display text information, and specific identification information of the bearer layer.
  • the first position information determining module 604 may be specifically used to determine the position coordinates of the first partial image in the scanning area.
  • the first position information determining module 604 may be specifically used to: determine the geometric center of gravity of the first partial image; determine the position coordinates of the geometric center of gravity in the scanning area.
  • the first prompt information may specifically include: one or more prompt information in a text form, a graphic form, and a voice form.
  • the device may further include: a third prompt information generating module, configured to generate third prompt information for indicating the first direction; information presentation of the third prompt information and the first prompt information The way is different.
  • a third prompt information generating module configured to generate third prompt information for indicating the first direction
  • the second prompt information may specifically include: one or more prompt information in a text form, a graphic form, and a voice form.
  • the device may further include: an original payment platform determining module, configured to determine the 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;
  • the four prompt information generating module is configured to generate fourth prompt information, where the fourth prompt information is used to prompt that the code image in the scanning area is a code image corresponding to the original payment platform.
  • the device may further include: an error reporting module, configured to jump to when the first judgment result indicates that the feature information is inconsistent with the target feature information, and the code scan duration is greater than or equal to a preset duration Error report page; the error report page is used to prompt that the code image in the scanning area does not match the application performing the code scanning operation.
  • an error reporting module configured to jump to when the first judgment result indicates that the feature information is inconsistent with the target feature information, and the code scan duration is greater than or equal to a preset duration Error report page; the error report page is used to prompt that the code image in the scanning area does not match the application performing the code scanning operation.
  • the embodiment of this specification also provides a device corresponding to the above method.
  • FIG. 7 is a schematic structural diagram of a prompt device in a code scanning process corresponding to FIG. 1 provided by an embodiment of this specification.
  • the device 700 may include: at least one processor 710; 720, the instructions are executed by the at least one processor 710, so that the at least one processor 710 can: obtain a first image in the scanning area of the code scanning device; the first image includes The first partial image of the bearing layer bearing the code image; determining the first position information of the first partial image in the scanning area; based on the first position information, generating first prompt information for indicating the first direction; 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 embodiments of this specification also provide a computer-readable medium corresponding to the above method.
  • Computer-readable instructions are stored on the computer-readable medium, and the computer-readable instructions can be executed by the processor to realize the following method: obtain a first image in the scanning area of the code scanning device; The first partial image of the bearing layer bearing the code image; determining the first position information of the first partial image in the scanning area; based on the first position information, generating first prompt information for indicating the first direction; 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.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as 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 Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic.
  • controllers in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded logic.
  • the same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer can be, for example, a personal computer, a laptop computer, a cell 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, and a wearable device. Or any combination of these devices.
  • the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention 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.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • 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, CD-ROM, digital versatile disc (DVD) or other optical storage , Magnetic cassette tape, magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this 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.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • This application may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This application can also be practiced in distributed computing environments. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本说明书实施例公开了一种扫码过程中的提示方法、装置及设备,方法包括:获取扫码设备的扫描区域内的第一图像;确定第一图像中包含的用于承载码图像的承载层的第一部分图像在扫描区域内的位置信息;基于该位置信息,生成用于指示第一方向的第一提示信息;第一方向用于表示由扫描区域的中心位置指向第一部分图像在扫描区域中的位置的方向。

Description

扫码过程中的提示方法、装置及设备 技术领域
本申请涉及计算机技术领域,尤其涉及一种扫码过程中的提示方法、装置及设备。
背景技术
二维码、条形码等特定格式的码图形,被越来越多的应用在现有技术中。
但是,在有些场景中,用户手持终端设备对包含码图形的图像(下文简称码图像)进行扫描时,会发生扫描失败的问题。例如,当有两个分别归属不同的支付平台的码图像,距离较近的摆放在一起,用户有可能需要扫描的是支付平台A的第一码图像,但终端设备实际扫描到的是支付平台B的第二码图像。又例如,当用户的视力受限,无法看清码图像的具体位置,使得终端设备对码图像进行扫描时,码图像的整体未全部处于扫描区域中,也会导致发送扫描失败的问题。
综上,如何提高对于码图像扫描的成功率,成为亟待解决的技术问题。
发明内容
本说明书实施例提供一种扫码过程中的提示方法、装置及设备,以解决现有的扫码支付方法过程中对于码图像扫描的成功率低的问题。
为解决上述技术问题,本说明书实施例是这样实现的:本说明书实施例提供的一种扫码过程中的提示方法,包括:获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;确定所述第一部分图像在所述扫描区域内的第一位置信息;基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
本说明书实施例提供的一种扫码过程中的提示装置,包括:第一图像获取模块,用于获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;第一位置信息确定模块,用于确定所述第一部分图像在所述扫描区域内的第一位置信息;第一提示信息生成模块,用于基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
本说明书实施例提供的一种扫码过程中的提示设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处 理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;确定所述第一部分图像在所述扫描区域内的第一位置信息;基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
本说明书实施例提供的一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现一种扫码过程中的提示方法。
本说明书一个实施例实现了能够达到以下有益效果:通过获取扫码设备的扫描区域内的第一图像;确定第一图像中包含的用于承载码图像的承载层的第一部分图像在所述扫描区域内的位置信息;基于该位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的位置的方向。通过上述方法,根据扫描区域中承载层的部分图像在扫描区域中的位置信息,就可以生成提示用户移动扫码设备的提示信息,引导用户扫描码图像,以提高用户对于码图像进行扫描的成功率。
附图说明
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本说明书实施例提供的一种扫码过程中的提示方法流程图;
图2是本说明书实施例提供的承载层特征信息示意图;
图3是本说明书实施例提供的扫码过程中确定扫码设备移动方向的第一示意图;
图4是本说明书实施例提供的扫码过程中确定扫码设备移动方向的第二示意图;
图5是本说明书实施例提供的扫码过程示意图;
图6是本说明书实施例提供的对应于图1的一种扫码过程中的提示装置示意图;
图7是本说明书实施例提供的对应于图1的一种扫码过程中的提示设备的结构示意图。
具体实施方式
为使本说明书一个或多个实施例的目的、技术方案和优点更加清楚,下面将结合本说明书具体实施例及相应的附图对本说明书一个或多个实施例的技术方案进行清楚、完整地 描述。显然,所描述的实施例仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本说明书一个或多个实施例保护的范围。
以下结合附图,详细说明本说明书各实施例提供的技术方案。
现有技术中,用户在进行扫码付款时,商家为了满足用户的多种支付需求,往往会提供多个支付平台对应的码图像供用户扫描,且为了方便用户扫描,多个平台的码图像的放置位置距离较近,在这种情况下,用户在扫描时,可能会出现,打开A支付平台的“扫一扫”功能,却扫描到B支付平台对应的码图像,或者在一些情况下,对于刚使用扫码支付的用户或者视障人士来说,用户可能无法判断哪个码图像是打开的支付应用对应的码,此时,用户需要询问商家,确定正确的码图像,再移动扫码设备对准码图像进行扫描,导致扫描码图像的效率以及成功率降低。
为了解决现有技术中的缺陷,本方案给出了以下实施例:
针对说明书实施例提供的一种扫码提示方法结合附图进行具体说明:图1为本说明书实施例提供的一种扫码提示方法的流程示意图。从程序角度而言,流程的执行主体可以为搭载于应用服务器的程序或应用客户端。
如图1所示,该流程可以包括以下步骤:
步骤102:获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像。
扫码设备可以为具有扫码功能的设备。例如:可以是具有扫码功能的移动终端,比如:手机、平板电脑。扫码设备还可以扫描条形码和二维码,因此,扫码设备还可以是条形码扫码枪、二维码扫描器、扫码机等等。
扫描区域可以表示扫码设备能够扫描到的图像区域范围。扫描区域内的图像可以包括付款码的部分码图像,还可以包括用于承载码图像的承载层的第一部分图像。当然,扫描区域内的图像中也可以不包含码图像,仅包括承载层的第一部分图像。
其中,这里的承载层可以表示用于承载码图像的载体,例如:将打印出来的付款码贴附在纸张或塑料载体上,此时,承载层可以是该纸张或塑料载体。如果将付款码显示在电子屏的显示画面中,那么承载层可以是显示该画面的软件中用于显示付款码及其相关信息的图层。
需要说明的是,用于承载码图像的承载层中,包含有与码图像相关的信息,比如:承载层可以具有背景颜色,承载层上可以有文字、图像、标识等等。
步骤104:确定所述第一部分图像在所述扫描区域内的第一位置信息。
在实际应用中,扫描区域的大小是固定的。扫描区域内的图像在扫描区域中的位置信息也是固定的。其中,这里提到的位置信息可以是承载图像在扫描区域内的位置坐标。
步骤106:基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的位置的方向。
在实际应用中,采用扫码设备扫描码图像时,码图像的整体未能全部处于扫描区域中或者扫描区域中并不包含码图像,此时,为了保证扫码成功,可以先根据扫描区域中承载层的部分图像的位置信息移动扫码设备,使扫描设备能够扫描到码图像。具体地,可以确定当前扫描区域中的承载层的部分图像在扫码区域中的位置信息,然后,将扫描区域的中心位置指向部分图像在扫描区域中的位置的方向,确定为扫码设备移动的方向。
在具体实现时,可以确定扫码区域中承载层的部分图像的中心位置在扫码区域中的坐标,根据部分图像的中心位置在扫码区域中的坐标与扫码区域的中心坐标,确定扫码设备的移动方向。
所述第一提示信息,具体可以包括:文字形式、图形形式、动画形式以及语音形式的一种或多种提示信息。在对用户进行提示时,可以根据实际情况自由选择/组合提示信息的提示方式,本说明书实施例对此不进行具体限定。
图1中的方法,通过获取扫码设备的扫描区域内的第一图像;确定第一图像中包含的用于承载码图像的承载层的第一部分图像在所述扫描区域内的位置信息;基于该位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的位置的方向。通过上述方法,根据扫描区域中承载层的部分图像在扫描区域中的位置信息,就可以生成提示用户移动扫码设备的提示信息,引导用户扫描码图像。以提高用户对于码图像进行扫描的成功率。
基于图1的方法,本说明书实施例还提供了该方法的一些具体实施方案,下面进行说明。
可选的,所述确定所述第一部分图像在所述扫描区域内的第一位置信息之前,还可以包括:基于所述部分图像,识别所述承载层的特征信息;判断所述特征信息与目标特征信息是否一致,得到第一判断结果;所述目标特征信息为目标支付平台的包含承载码图像的承载层的特征信息;所述确定所述第一部分图像在所述扫描区域内的第一位置信息,具体可以包括:当所述第一判断结果表示所述特征信息与目标特征信息一致,确定所述第一部分图像在所述扫描区域内的第一位置信息。
承载层的特征信息可以包括承载层的背景颜色信息、显示文本信息以及特定标识信息中的一种或多种。其中,承载层中的显示文本信息可以是宣传用语,也可以是码图像对应 的支付平台的中文名称、中文名称简写、英文名称、英文名称简写,还可以是与码图像相关的其他文本信息等。特定标识信息可以是采用特定的符号或图案表示码图像对应的支付平台的信息。
目标特征信息可以表示目标支付平台的承载层的特征信息。比如:第一支付平台的承载层的背景颜色为蓝色,承载层中包含第一支付平台的名称文本信息,用于特指第一支付平台的特殊标识A。
通过判断扫描区域中的承载层的特征信息与目标特征信息是否一致,如果一致,可以确定扫描区域中的承载层与目标支付平台匹配。
为了能够更详细地说明上述方法,可以结合附图2进行说明:图2是本说明书实施例提供的承载层特征信息示意图。
如图2所示,以一种支付方式为例,A支付平台的承载层201中的背景2011颜色为蓝色,承载层201中的文本信息有:“付款请说明A支付”、“A支付”、“APAY”、“用A扫码付款”以及“在A首页打开‘扫一扫’”。承载层201中还包括特定标识信息2012。根据承载层201中的背景2011的颜色、文本信息的文本内容以及特定标识信息2012可以确定承载层201中承载的码图像对应的是A支付平台。
承载层201中的码区域中有码图像202,该码图像与A平台匹配。
需要说明的是,在判断承载层的特征信息与目标支付平台的承载层的目标特征信息是否一致时,可以仅根据一种特征信息进行判断,也可以组合多种特征信息进行判断。例如:可以仅判断第一部分图像中的承载层的文本信息与目标支付平台的承载层的文本信息相同时,确定承载层的特征信息与目标支付平台的承载层的目标特征信息一致。或者仅判断背景颜色、标识信息相同,确定承载层的特征信息与目标支付平台的承载层的目标特征信息一致。需要说明的是,文本信息相同,并不限定于文字内容全部相同。只需要保证文本中的支付平台名称相同即可。
当然,也可以同时对多种特征信息进行判断,比如:只有当第一部分图像中的承载层的所有特征信息与目标支付平台的承载层的所有特征信息均相同时,才能确定承载层的特征信息与目标支付平台的承载层的目标特征信息一致。
还可以自由组合多种特征信息进行判断。例如:第一部分图像中的承载层的所有背景颜色信息和文本信息与目标支付平台的承载层的背景颜色信息和文本信息相同,或者第一部分图像中的承载层的所有背景颜色信息和特定标识信息与目标支付平台的承载层的背景颜色信息和特定标识信息相同,则确定承载层的特征信息与目标支付平台的承载层的目标特征信息一致。
通过上述方法,根据承载码图像的承载层中的背景颜色信息、显示文本信息以及特定 标识信息中的一种或多种特征信息,可以确定承载层是否与目标支付机构匹配。甚至可以根据承载层中的特征信息确定该承载层所对应的支付平台,在用户扫描到与执行扫码操作的应用不匹配的承载层时,为用户显示提示信息,引导用户移动扫码设备扫描匹配的码图像。
在实际应用中,如果扫描区域中的承载层的特征信息与目标特征信息一致,可以确定扫描区域中的承载层的部分图像在扫描区域内的位置信息。
在实际应用中,当确定扫描区域中的承载层的特征信息与目标特征信息一致时,可以确定扫描区域中的承载层为目标支付平台对应的付款码所在的承载层。若该承载层承载的码图像在第一预设时长内未被完整扫描,可以生成第一提示信息,提示用户移动扫码设备。
通过上述方法,可以根据承载码图像的承载层的部分图像确定码图像对应的支付平台,如果该支付平台为目标支付平台时,根据承载图像在扫描区域中的位置信息,生成用于指示扫码设备移动方向的提示信息,引导用户对码图像进行扫描。
在引导用户对码图像进行扫描时,用户根据第一提示信息向码图像所在位置移动扫码设备,当扫码设备被移动到可以扫描到部分码图像时,扫码区域中的图像包含部分码图像以及部分承载层图像,此时,由于仍未包含完整的码图像,从而无法完成码图像的扫描。在该种情况下,可以采用以下方法引导用户完成扫描:可选的,上述方法,还可以包括:在所述扫码设备被移动后,获取所述扫码设备的扫描区域内的第二图像;所述第二图像中包含承载码图像的承载层的第二部分图像;确定所述码图像在所述第二部分图像内的第二位置信息;基于所述第二位置信息,生成用于指示第二方向的第二提示信息;所述第二方向用于表示由所述扫描区域的中心位置指向所述码图像在所述第二部分图像内的第二位置的方向。
第二图像可以表示的是扫码设备被移动之后,扫描区域中的图像。第二图像中包含承载码图像的承载层的第二部分图像,另外,第二图像中还可以包含码图像的部分图像。
此时,由于扫描区域中的第二图像中包含码图像的部分图像,此时,可以确定第二图像中的码图像在扫描区域中的第二位置信息。根据部分码图像在扫描区域中的位置,提示用户按照第二方向移动扫码设备,以使扫码设备能够扫描到完整的码图像。其中,第二方向可以用于表示由扫描区域的中心位置指向码图像在扫描区域内的第二位置的方向。
通过上述方法,根据扫描区域中的码图像的位置信息,生成用于提示扫码设备移动方向的提示信息,以提升用户扫描到完整码图像的效率。
在实际应用中,扫码设备被移动之后,对于视障人士或者不会使用扫码支付的人群来说,可能会存在扫码设备扫描到的图像中不包括码图像。扫描到的图像中也不包括与码图像相关的文本、图像或者标识信息,扫描到的图像中仅包括承载层背景颜色信息。此时, 无法确定码图像的中心位置。这种情况,一般是由于扫描设备与待扫描区域距离小于预设距离,相隔太近导致;或者由于扫码设备的摄像头的像距太小导致。此时,可以提示用户示将扫码设备与待扫描区域的距离离远一些或者将摄像头的像距调大。当然,在扫描过程中,即使扫码区域内的图像中包含码图像的部分图像或者其他与码图像相关的信息,如果扫描设备与待扫描区域距离小于预设距离,也会导致无法确定码图像的中心位置。同样需要提示用户示将扫码设备与待扫描区域的距离离远一些或者将摄像头的像距调大。
具体地,上述方法,可以包括以下步骤:在所述扫码设备被移动后,获取所述扫码设备的扫描区域内的图像;根据所述扫码设备的扫描区域内的图像,无法确定所述码图像的位置时,生成提示信息;所述提示信息用于提示增大所述扫码设备与待扫描区域之间的距离或调大像距。
需要说明的是,上述步骤中的图像中未包含码图像,也未包含与所述码图像相关的文字信息或标识信息。所述图像中可以仅包含用于承载所述码图像的承载层的背景颜色信息。
通过上述方法,可以在扫码设备与待扫描区域之间的距离小于预设距离或像距较小时,可以生成相应的提示信息,用于提示增大扫码设备与待扫描区域之间的距离或调大像距,以加快用户对码图像的扫描进程。
在实际应用中,在根据第一部分图像在扫描区域中的第一位置信息之后,基于第一位置信息,确定扫描设备的移动方向时,具体可以采用以下方法进行实现:第一位置信息,具体可以是第一部分图像在扫描区域内的位置坐标。其中,第一部分图像在扫描区域内的位置坐标具体可以是第一部分图像的集合中心在扫描区域内的位置坐标。
因此,在确定第一部分图像在扫描区域内的位置坐标时,具体可以先确定所述第一部分图像的几何重心;然后确定该几何重心在扫描区域内的位置坐标。
可选的,所述生成用于指示第一方向的第一提示信息,具体可以包括:基于所述第一位置信息,确定所述第一方向;基于所述第一方向,生成所述第一提示信息。
需要说明的是,几何重心可以被定义为:过该几何重心的任意线都可平分一个图形的面积。
在实际应用中,第一方向可以指扫码设备移动的具体方位,可以包括上、下、左、右、左上、左下、右上、右下等方向。
可选的,所述确定所述第一方向,具体可以包括:确定所述第一部分图像在所述扫描区域内的第一位置坐标;确定所述扫描区域的中心位置的第二位置坐标;根据所述第一位置坐标与所述第二位置坐标,确定所述第一方向。
具体地,在根据第一位置坐标与所述第二位置坐标,确定第一方向时,可以根据第一 位置坐标和第二位置坐标,计算方位角,根据计算得到的方位角生成第一提示信息。
在计算方位角时,假设第一位置坐标为A(x 1,y 1),第二位置坐标为B(x 2,y 2),方位角可以采用以下公式进行计算:
Figure PCTCN2021097666-appb-000001
其中,
Figure PCTCN2021097666-appb-000002
为象限角,Δx AB表示由点A到点B的纵坐标增量,Δy AB表示由点A到点B的横坐标增量,坐标增量由正负两种情况,根据上述横坐标增量和纵坐标增量的正负,可以确定所在象限,根据所在象限,将象限角换算为方位角。
在计算得到方位角之后,根据计算得到的方位角生成第一提示信息,具体可以包括:确定所述方位角对应的方向角度范围,根据方位角对应的角度范围确定所述方位角对应的第一方向,根据第一方向生成第一提示信息。
可以理解为,将计算得到的方位角的具体角度值归类于预设的角度方向,根据角度方向生成第一提示信息。
为了提高实用性,可以采用以下方式:当采用语音方式播报提示信息时,可以按照前述的方法根据计算得到的方位角确定提示的方向。
当采用箭头等图像方式显示提示信息时,按照计算得到的方位角的实际角度生成提示的图像。
当然,在实际应用中,可以结合上述两种方式对用户进行提示,具体地,在计算得到方位角的实际角度时,将实际角度归类于预设的角度方向,语音播报该角度方向,与此同时,为用户显示实际角度对应的方向箭头图像。例如:生成的方位角为52.5°,此时,可以将52.5°归为右上方向。在提示时,可以直接生成一个52.5°的方向箭头,将该方向箭头作为提示信息显示给用户,同时语音播报“请将扫码设备向右上方向移动”。
通过上述方法,在用户进行扫码支付时,为用户提供多种提示方法,便于用户理解提示信息,并快速根据提示信息对扫码设备进行操作。
图3是本说明书实施例提供的扫码过程中确定扫码设备移动方向的第一示意图。
如图3所示,第一方向可以是指扫码设备移动的具体方位,将第一方向预先设置上、下、左、右、左上、左下、右上、右下这八个方向对应的角度区域:上
Figure PCTCN2021097666-appb-000003
Figure PCTCN2021097666-appb-000004
Figure PCTCN2021097666-appb-000005
Figure PCTCN2021097666-appb-000006
左上
Figure PCTCN2021097666-appb-000007
Figure PCTCN2021097666-appb-000008
左下
Figure PCTCN2021097666-appb-000009
右上
Figure PCTCN2021097666-appb-000010
右下
Figure PCTCN2021097666-appb-000011
Figure PCTCN2021097666-appb-000012
此时,假设计算得到的方位角
Figure PCTCN2021097666-appb-000013
由于
Figure PCTCN2021097666-appb-000014
因此,该方位角属于右上方向。可以生成第一提示信息,用于提示将扫码设备向右上方向移动。
通过上述方法,将计算得到的方位角对应到预设的方向角度范围内,为用户显示易于理解的方向提示信息,以提高用户扫描到完整码图像的效率。
根据计算得到的方位角生成第一提示信息,还可以包括:在计算得到方位角之后,确 定方位角所在象限区域;根据方位角所在的象限区域,确定扫码设备的移动方向。
图4是本说明书实施例提供的扫码过程中确定扫码设备移动方向的第二示意图。
如图4所示,确定方向角的角度所属的象限区域为第一象限时,将扫码设备的移动方向分解为向右和向上两个方向;为第二象限时,将扫码设备的移动方向分解为向左和向上两个方向;为第三象限时,将扫码设备的移动方向分解为向左和向下两个方向;为第四象限时,将扫码设备的移动方向分解为向右和向上两个方向。
提示将扫码设备向分解后的方向中的任意一个方向移动,在扫码设备移动时,根据扫码设备扫描到的图像实时计算扫码区域中的部分图像的位置信息;根据实时计算的位置信息,计算扫码设备的移动方向。
需要说明的是,在扫码设备移动过程中,用户移动扫码设备的方向角度会存在误差,比如:指示向右移动时,可能无法保证扫码设备能够毫无误差地平行移动。基于此,本说明书实施例中,可以在扫码设备移动过程中实时计算扫码设备的移动方向。例如:提示信息指示用户向右移动,此时,扫码设备再向右移动一段距离之后,计算得到扫码设备的移动方向为上,此时,可以显示提示信息,提示用户停止向右移动扫码设备,指示向上移动扫码设备。
如:计算得到方位角
Figure PCTCN2021097666-appb-000015
此时,如果显示的提示信息是“请将手机向50°方向移动”,此时,用户肉眼无法准确识别出方向角度,无法对扫码设备进行准确移动,基于此,可以先将确定方位角所在的象限,根据所述象限,将扫码设备的移动路线分解成沿坐标轴的方向,例如:方位角
Figure PCTCN2021097666-appb-000016
时,
Figure PCTCN2021097666-appb-000017
属于第一象限,此时,可以提示用户先向右移动,移动到一定距离时,停止向右移动,指示向上移动,或者提示用户先向上移动,移动到一定距离时,停止向上移动,指示向右移动。
当然,在实际应用中,也可以将方位角先归类到前面提到的上、下、左、右、左上、左下、右上、右下这八个角度方向,然后再对这八个方向进行分解。
在采用上述方式对方位角对应的方向进行分解后,根据分解后的移动方向对用户进行提示时,可以结合前面提到的提高实用性的方式来对用户进行提示。具体地,在采用语音播报的方式对用户进行提示时,可以包括以下步骤:在计算得到方位角之后,可以根据方位角的具体角度,分解得到该方位角对应的两个基础移动方向;先提示用户按照第一基础方向移动,在用户将扫码设备按照第一基础方向移动一段时间/一段距离之后,再提示用户按照第二基础方向移动。具体地,基础方向的数量以及方向角与基础方向的对应关系可以根据实际应用场景进行限定,本说明书实施例对此不作具体限定。
上述步骤中,需要说明的是,在提示用户将扫码设备按照每个基础方向进行移动时,可以结合前面的提高实用性的方式,对用户进行提示。
在实际应用中,对于视障人士,可以优先选用语音播报的提示方式,语音播报时,如果播报具体的角度值,对于用户理解移动方向具有较大难度,因此,在进行语音播报时, 将方向角的具体角度归类为预设角度方向,按照该角度方向进行语音播报,或者将方向角的具体角度分解为两个基础移动方向,语音提示用户按照两个基础方向移动,能够提高视障人士进行扫码操作的效率和成功率。并且,上述方式对于普通用户来说,也能便于普通用户快速理解提示信息,从而提高普通用户扫码的效率。
通过上述方法,在指示扫码设备移动的过程中,根据扫码设备移动过程中扫描的到的图像,实时计算扫码设备的移动方向,以保证在扫码设备的移动过程中,及时调整扫码设备的移动方向,以使扫码设备能够更快地扫描到完整的码图像。
生成用于指示第一方向的第三提示信息;所述第三提示信息与所述第一提示信息的信息呈现方式不同。
需要说明的是,上述步骤中的第三提示信息可以与第一提示信息同时呈现,也可以是在第一提示信息显示一定时间之后,再进行呈现。结合多种形式的提示信息,有利于更好地引导用户按照提示信息移动扫码设备,以完成对码图像的扫描。
在实际应用中,生成第一提示信息之后,需要将第一提示信息发送到扫码设备上,此时,第一提示信息具体可以是文字信息、图像信息、动画信息或语音信息等。具体实现过程中,可以根据实际应用场景进行设定。例如:可以在扫码设备的屏幕上显示文字提示信息的同时,播放语音提示信息。也可以先在扫码设备的屏幕上显示文字信息,一段时间后,若扫码设备仍未移动,则播放语音提示信息。对于视障人士,可以选择语音提示,对于文盲,可以选择语音、图像或动画的提示信息。对此,本说明书实施例不进行具体限定。
例如:以手机扫码支付为例,当确定手机移动的第一方向为“右上”方向时,生成第一提示信息之后,第一提示信息可以是在手机的当前屏幕中显示文字信息“请将手机向右上方向移动”,也可以在当前屏幕中显示模拟将手机向右上方向移动的图形,还可以显示引导用户移动手机的动画。还具有语音播放功能,直接播放“请将手机向右上方向移动”的语音信息。
进一步可选地,扫描设备扫码区域内的图像也可能不是目标支付平台对应的图像,例如:扫码设备扫描得到的图像是A支付平台对应的图像,但是执行扫码操作的应用是B支付平台对应的应用。此时,可以采用以下方式对用户进行提示:当所述第一判断结果表示所述特征信息与目标特征信息不一致,确定所述特征信息对应的原始支付平台;生成第四提示信息,所述第四提示信息用于提示所述扫描区域内的码图像为与所述原始支付平台对应的码图像。
当所述第一判断结果表示所述特征信息与目标特征信息不一致,且扫码时长大于或等于预设时长,则跳转至报错页面;所述报错页面用于提示所述扫描区域内的码图像与执行扫码操作的应用不匹配。
上述步骤中,当扫描到的图像中承载层的特征信息与目标支付平台的承载层的目标特征信息不一致时,可以确定扫码设备扫描到的图像不是目标支付平台对应的图像。此时, 可以确定扫描到的图像中承载层的特征信息对应的原始支付平台,并生成用于提示扫描到的图像对应的原始支付平台的名称。当然,如果扫码时长大于或等于预设时长,也可以直接跳转至报错界面,并在报错界面上显示扫描区域内的码图像与执行扫码操作的应用不匹配的提示信息。例如:扫描到的图像中承载层的特征信息与目标支付平台的承载层的目标特征信息不一致时,可以不跳转报错界面,直接在界面中显示“当前扫描图像为A支付的图像,请对准B支付的二维码”。当第一判断结果表示所述特征信息与目标特征信息不一致,且扫码时长大于或等于预设时长时,也可以直接跳转至报错界面,并在报错界面中显示“当前扫描图像与B支付不匹配”。需要说明的是,这里的第四提示信息也可以是文字形式、图形形式、以及语音形式的一种或多种提示信息。
为了详细说明本说明书中上述实施例中的方法,可以采用以下具体的实现例子进行说明:图5是本说明书实施例提供的扫码过程示意图。
如图5所示,假设用户X到商家Y购买商品,购买商品结束后,需要进行扫码支付,此时,商家Y的收银台摆放有供用户扫码支付的台牌,该台牌上能够供A支付平台和B支付平台的付款码贴附。A支付平台对应的第一承载层501的背景颜色为蓝色,第一承载层501上还有对应的文字信息、特殊标识信息以及A支付平台的缩略图或A支付平台对应的应用程序的缩略图,第一承载层501中的付款码502为A支付平台对应的付款码。B支付平台对应的第二承载层503的背景颜色为蓝色,第二承载层503上还有对应的文字信息、特殊标识信息以及B支付平台的缩略图或B支付平台对应的应用程序的缩略图,第二承载层503中的付款码504为B支付平台对应的付款码。
用户X想要使用B支付方式进行付款,B支付平台对应的承载层的特征信息为:背景颜色为绿色、文字信息中携带有B支付平台的平台名称或名称缩写,具有B支付平台对应的应用程序的图标缩略图。
用户X在使用扫码设备扫描台牌上的付款码时,扫描到的图像为第一图像505,此时,第一图像505中包括第一承载层501的部分图像和第二承载层503的部分图像,此时,确定第一承载层501的部分图像的特征信息为:背景颜色为蓝色,第二承载层503的部分图像的特征信息为:背景颜色为绿色,文字信息中包括B支付平台的平台名称。此时,可以确定第二承载层的特征信息与目标支付平台(B支付平台)的特征信息一致。接下来,确定第二承载层的部分图像在扫描区域中的位置信息,根据该位置信息指示扫码设备向“右上”方向移动,当扫码设备移动之后,扫描到第二图像506,第二图像中包括第二承载层503的部分图像和付款码504的部分图像,此时,可以确定付款码504的部分图像在扫描区域中的位置信息,根据付款码504的部分图像在扫描区域中的位置信息确定扫码设备的移动方向为“左下”,指示扫码设备向“左下”方向移动,只至扫描到付款码504完整码图像。
通过上述方法,在扫码设备未扫描到码图像或者未扫描到完整的码图像时,可以根据承载层的部分图像或者码图像的部分图像在扫描区域中的位置信息确定扫码设备的移动 方向,根据移动方向生成用于指示扫码设备移动的提示信息,引导用户扫描码图像,以提高用户对于码图像进行扫描的成功率。
基于同样的思路,本说明书实施例还提供了上述方法对应的装置。图6是本说明书实施例提供的对应于图1的一种扫码过程中的提示装置示意图。如图6所示,一种扫码过程中的提示装置60可以包括:第一图像获取模块602,用于获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;第一位置信息确定模块604,用于确定所述第一部分图像在所述扫描区域内的第一位置信息;第一提示信息生成模块606,用于基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
基于图6的装置,本说明书实施例还提供了该方法的一些具体实施方案,下面进行说明。
可选的,所述装置,还可以包括:承载层特征信息识别模块,用于基于所述第一部分图像,识别所述承载层的特征信息;判断模块,用于判断所述特征信息与目标特征信息是否一致,得到第一判断结果;所述目标特征信息为目标支付平台的包含承载码图像的承载层的特征信息;所述第一位置信息确定模块,具体可以用于:当所述第一判断结果表示所述特征信息与目标特征信息一致,确定所述第一部分图像在所述扫描区域内的第一位置信息。
可选的,所述第一提示信息生成模块606,具体可以包括:第一提示信息生成单元,用于当所述第一判断结果表示所述特征信息与目标特征信息一致,且所述承载层承载的码图像在第一预设时长内未被完整扫描,则生成用于指示第一方向的第一提示信息。
可选的,所述装置,还可以包括:第二图像获取模块,用于在所述扫码设备被移动后,获取所述扫码设备的扫描区域内的第二图像;所述第二图像中包含承载码图像的承载层的第二部分图像;第二位置信息确定模块,用于确定所述码图像在所述扫描区域内的第二位置信息;第二提示信息生成模块,用于基于所述第二位置信息,生成用于指示第二方向的第二提示信息;所述第二方向用于表示由所述扫描区域的中心位置指向所述码图像在所述扫描区域内的第二位置的方向。
可选的,所述第一提示信息生成模块606,具体可以包括:第一方向确定单元,用于基于所述第一位置信息,确定所述第一方向;第一提示信息生成单元,用于基于所述第一方向,生成所述第一提示信息。
可选的,所述第一方向确定单元,具体可以包括:第一位置坐标确定子单元,用于确定所述第一部分图像在所述扫描区域内的第一位置坐标;第二位置坐标确定子单元,用于确定所述扫描区域的中心位置的第二位置坐标;
第一方向确定子单元,用于根据所述第一位置坐标与所述第二位置坐标,确定所述第 一方向。
可选的,所述承载层特征信息识别模块,具体可以用于:识别所述承载层的背景颜色信息、显示文本信息以及特定标识信息中的一种或多种。
可选的,所述第一位置信息确定模块604,具体可以用于:确定所述第一部分图像在所述扫描区域内的位置坐标。
可选的,所述第一位置信息确定模块604,具体可以用于:确定所述第一部分图像的几何重心;确定所述几何重心在所述扫描区域内的位置坐标。
可选的,所述第一提示信息,具体可以包括:文字形式、图形形式、以及语音形式的一种或多种提示信息。
可选的,所述装置,还可以包括:第三提示信息生成模块,用于生成用于指示第一方向的第三提示信息;所述第三提示信息与所述第一提示信息的信息呈现方式不同。
可选的,所述第二提示信息,具体可以包括:文字形式、图形形式、以及语音形式的一种或多种提示信息。
可选的,所述装置,还可以包括:原始支付平台确定模块,用于当所述第一判断结果表示所述特征信息与目标特征信息不一致,确定所述特征信息对应的原始支付平台;第四提示信息生成模块,用于生成第四提示信息,所述第四提示信息用于提示所述扫描区域内的码图像为与所述原始支付平台对应的码图像。
可选的,所述装置,还可以包括:报错模块,用于当所述第一判断结果表示所述特征信息与目标特征信息不一致,且扫码时长大于或等于预设时长,则跳转至报错页面;所述报错页面用于提示所述扫描区域内的码图像与执行扫码操作的应用不匹配。
基于同样的思路,本说明书实施例还提供了上述方法对应的设备。
图7是本说明书实施例提供的对应于图1的一种扫码过程中的提示设备的结构示意图。如图7所示,设备700可以包括:至少一个处理器710;以及,与所述至少一个处理器通信连接的存储器730;其中,所述存储器730存储有可被所述至少一个处理器710执行的指令720,所述指令被所述至少一个处理器710执行,以使所述至少一个处理器710能够:获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;确定所述第一部分图像在所述扫描区域内的第一位置信息;基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
基于同样的思路,本说明书实施例还提供了上述方法对应的计算机可读介质。计算机可读介质上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现以下方法:获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;确定所述第一部分图像在所述扫描区域内的第一位置信息;基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区 域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字符系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如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)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字符助理、媒 体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储 器(CD-ROM)、数字符多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (22)

  1. 一种扫码过程中的提示方法,包括:
    获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;
    确定所述第一部分图像在所述扫描区域内的第一位置信息;
    基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
  2. 根据权利要求1所述的方法,所述确定所述第一部分图像在所述扫描区域内的第一位置信息之前,还包括:
    基于所述第一部分图像,识别所述承载层的特征信息;
    判断所述特征信息与目标特征信息是否一致,得到第一判断结果;所述目标特征信息为目标支付平台的包含承载码图像的承载层的特征信息;
    所述确定所述第一部分图像在所述扫描区域内的第一位置信息,具体包括:
    当所述第一判断结果表示所述特征信息与目标特征信息一致,确定所述第一部分图像在所述扫描区域内的第一位置信息。
  3. 根据权利要求2所述的方法,所述生成用于指示第一方向的第一提示信息,具体包括:
    当所述第一判断结果表示所述特征信息与目标特征信息一致,且所述承载层承载的码图像在第一预设时长内未被完整扫描,则生成用于指示第一方向的第一提示信息。
  4. 根据权利要求1所述的方法,还包括:
    在所述扫码设备被移动后,获取所述扫码设备的扫描区域内的第二图像;所述第二图像中包含承载码图像的承载层的第二部分图像;
    确定所述码图像在所述扫描区域内的第二位置信息;
    基于所述第二位置信息,生成用于指示第二方向的第二提示信息;所述第二方向用于表示由所述扫描区域的中心位置指向所述码图像在所述扫描区域内的第二位置的方向。
  5. 根据权利要求2所述的方法,所述识别所述承载层的特征信息,具体包括:
    识别所述承载层的背景颜色信息、显示文本信息以及特定标识信息中的一种或多种。
  6. 根据权利要求1所述的方法,所述确定所述第一部分图像在所述扫描区域内的第一位置信息,具体包括:
    确定所述第一部分图像在所述扫描区域内的位置坐标。
  7. 根据权利要求6所述的方法,所述确定所述第一部分图像在所述扫描区域内的位置坐标,具体包括:
    确定所述第一部分图像的几何重心;
    确定所述几何重心在所述扫描区域内的位置坐标。
  8. 根据权利要求1所述的方法,所述生成用于指示第一方向的第一提示信息,具体包括:
    基于所述第一位置信息,确定所述第一方向;
    基于所述第一方向,生成所述第一提示信息。
  9. 根据权利要求8所述的方法,所述确定所述第一方向,具体包括:
    确定所述第一部分图像在所述扫描区域内的第一位置坐标;
    确定所述扫描区域的中心位置的第二位置坐标;
    根据所述第一位置坐标与所述第二位置坐标,确定所述第一方向。
  10. 根据权利要求1所述的方法,所述第一提示信息,具体包括:
    文字形式、图形形式、以及语音形式的一种或多种提示信息。
  11. 根据权利要求10所述的方法,还包括:
    生成用于指示第一方向的第三提示信息;所述第三提示信息与所述第一提示信息的信息呈现方式不同。
  12. 根据权利要求11所述的方法,所述第二提示信息,具体包括:
    文字形式、图形形式、以及语音形式的一种或多种提示信息。
  13. 根据权利要求2所述的方法,还包括:
    当所述第一判断结果表示所述特征信息与目标特征信息不一致,确定所述特征信息对应的原始支付平台;
    生成第四提示信息,所述第四提示信息用于提示所述扫描区域内的码图像为与所述原始支付平台对应的码图像。
  14. 根据权利要求2所述的方法,还包括:
    当所述第一判断结果表示所述特征信息与目标特征信息不一致,且扫码时长大于或等于预设时长,则跳转至报错页面;所述报错页面用于提示所述扫描区域内的码图像与执行扫码操作的应用不匹配。
  15. 一种扫码过程中的提示装置,包括:
    第一图像获取模块,用于获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;
    第一位置信息确定模块,用于确定所述第一部分图像在所述扫描区域内的第一位置信息;
    第一提示信息生成模块,用于基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位置的方向。
  16. 根据权利要求15所述的装置,所述装置,还包括:
    承载层特征信息识别模块,用于基于所述第一部分图像,识别所述承载层的特征 信息;
    判断模块,用于判断所述特征信息与目标特征信息是否一致,得到第一判断结果;所述目标特征信息为目标支付平台的包含承载码图像的承载层的特征信息;
    所述第一位置信息确定模块,具体用于:
    当所述第一判断结果表示所述特征信息与目标特征信息一致,确定所述第一部分图像在所述扫描区域内的第一位置信息。
  17. 根据权利要求16所述的装置,所述第一提示信息生成模块,具体包括:
    第一提示信息生成单元,用于当所述第一判断结果表示所述特征信息与目标特征信息一致,且所述承载层承载的码图像在第一预设时长内未被完整扫描,则生成用于指示第一方向的第一提示信息。
  18. 根据权利要求15所述的装置,还包括:
    第二图像获取模块,用于在所述扫码设备被移动后,获取所述扫码设备的扫描区域内的第二图像;所述第二图像中包含承载码图像的承载层的第二部分图像;
    第二位置信息确定模块,用于确定所述码图像在所述扫描区域内的第二位置信息;
    第二提示信息生成模块,用于基于所述第二位置信息,生成用于指示第二方向的第二提示信息;所述第二方向用于表示由所述扫描区域的中心位置指向所述码图像在所述扫描区域内的第二位置的方向。
  19. 根据权利要求15所述的装置,所述第一提示信息生成模块,具体包括:
    第一方向确定单元,用于基于所述第一位置信息,确定所述第一方向;
    第一提示信息生成单元,用于基于所述第一方向,生成所述第一提示信息。
  20. 根据权利要求19所述的装置,所述第一方向确定单元,具体包括:
    第一位置坐标确定子单元,用于确定所述第一部分图像在所述扫描区域内的第一位置坐标;
    第二位置坐标确定子单元,用于确定所述扫描区域的中心位置的第二位置坐标;
    第一方向确定子单元,用于根据所述第一位置坐标与所述第二位置坐标,确定所述第一方向。
  21. 一种扫码过程中的提示设备,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
    获取扫码设备的扫描区域内的第一图像;所述第一图像中包含用于承载码图像的承载层的第一部分图像;
    确定所述第一部分图像在所述扫描区域内的第一位置信息;
    基于所述第一位置信息,生成用于指示第一方向的第一提示信息;所述第一方向用于表示由所述扫描区域的中心位置指向所述第一部分图像在所述扫描区域中的第一位 置的方向。
  22. 一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现权利要求1至14中任一项所述的一种扫码过程中的提示方法。
PCT/CN2021/097666 2020-06-02 2021-06-01 扫码过程中的提示方法、装置及设备 WO2021244525A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010490422.7 2020-06-02
CN202010490422.7A CN111709418B (zh) 2020-06-02 2020-06-02 一种扫码过程中的提示方法、装置及设备

Publications (1)

Publication Number Publication Date
WO2021244525A1 true WO2021244525A1 (zh) 2021-12-09

Family

ID=72538962

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097666 WO2021244525A1 (zh) 2020-06-02 2021-06-01 扫码过程中的提示方法、装置及设备

Country Status (2)

Country Link
CN (2) CN111709418B (zh)
WO (1) WO2021244525A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709418B (zh) * 2020-06-02 2022-03-04 支付宝(杭州)信息技术有限公司 一种扫码过程中的提示方法、装置及设备
CN112733566B (zh) * 2021-01-14 2024-04-05 广东星云开物科技股份有限公司 基于位置引导的二维码识读方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345812A (zh) * 2017-12-25 2018-07-31 阿里巴巴集团控股有限公司 一种扫描定位方法、装置、设备及系统
CN108764001A (zh) * 2018-05-29 2018-11-06 维沃移动通信(深圳)有限公司 一种信息处理方法及移动终端
CN108846663A (zh) * 2018-06-21 2018-11-20 维沃移动通信有限公司 一种二维码调整方法、装置及移动终端
CN109521978A (zh) * 2018-09-28 2019-03-26 维沃移动通信有限公司 一种内容显示方法及终端设备
CN111709418A (zh) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 一种扫码过程中的提示方法、装置及设备

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327185B (zh) * 2016-08-26 2020-05-12 维沃移动通信有限公司 一种支付应用的启动方法及移动终端
CN106875181A (zh) * 2017-02-28 2017-06-20 努比亚技术有限公司 一种扫码支付处理方法及移动终端
US11645644B2 (en) * 2017-03-09 2023-05-09 Lg Electronics Inc. Mobile terminal
WO2018170695A1 (zh) * 2017-03-20 2018-09-27 华为技术有限公司 一种表观特征的描述属性识别方法及装置
CN108198024B (zh) * 2017-12-28 2021-05-18 纳恩博(北京)科技有限公司 信息处理方法及装置、电子设备及存储介质
CN108304744B (zh) * 2018-01-18 2020-08-28 维沃移动通信有限公司 一种扫描框位置确定方法及移动终端
US11727384B2 (en) * 2018-03-08 2023-08-15 Mastercard International Incorporated Code-enabled and push request payment transaction methods
CN108629220A (zh) * 2018-03-23 2018-10-09 阿里巴巴集团控股有限公司 一种二维码识读方法、装置及设备
CN108763987A (zh) * 2018-05-07 2018-11-06 深圳市民德电子科技股份有限公司 一种智能扫描识别装置、方法及系统
CN109151180B (zh) * 2018-07-27 2020-09-01 维沃移动通信有限公司 一种对象识别方法及移动终端
KR20200022300A (ko) * 2018-08-22 2020-03-03 종 진 임 홈쇼핑 결제 방법 및 장치
CN109242474A (zh) * 2018-09-05 2019-01-18 深圳市百宝廊珠宝首饰有限公司 扫码支付方法、装置、终端及存储介质
CN110059511A (zh) * 2019-03-08 2019-07-26 阿里巴巴集团控股有限公司 一种扫码系统及扫码方法
CN110543799A (zh) * 2019-09-05 2019-12-06 北京京东振世信息技术有限公司 二维码处理方法、装置、存储介质与移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345812A (zh) * 2017-12-25 2018-07-31 阿里巴巴集团控股有限公司 一种扫描定位方法、装置、设备及系统
CN108764001A (zh) * 2018-05-29 2018-11-06 维沃移动通信(深圳)有限公司 一种信息处理方法及移动终端
CN108846663A (zh) * 2018-06-21 2018-11-20 维沃移动通信有限公司 一种二维码调整方法、装置及移动终端
CN109521978A (zh) * 2018-09-28 2019-03-26 维沃移动通信有限公司 一种内容显示方法及终端设备
CN111709418A (zh) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 一种扫码过程中的提示方法、装置及设备

Also Published As

Publication number Publication date
CN111709418B (zh) 2022-03-04
CN114663646A (zh) 2022-06-24
CN111709418A (zh) 2020-09-25

Similar Documents

Publication Publication Date Title
TWI740087B (zh) 二維碼識讀方法、裝置及設備
US9846536B2 (en) Composition of handwritten messages on mobile computing devices
WO2021057138A1 (zh) 一种证件识别方法及装置
WO2021244525A1 (zh) 扫码过程中的提示方法、装置及设备
EP2529292B1 (en) Device, method, and graphical user interface for resizing objects
US7343552B2 (en) Systems and methods for freeform annotations
CN110362242B (zh) 一种地图展示方法及终端设备
US11295495B2 (en) Automatic positioning of textual content within digital images
US20070130529A1 (en) Automatic generation of user interface descriptions through sketching
CN109766879A (zh) 字符检测模型的生成、字符检测方法、装置、设备及介质
TWI729675B (zh) 互動界面的顯示方法、裝置及設備
WO2021223675A1 (zh) 风险检测
TW202004638A (zh) 票據拍攝互動方法、裝置、處理設備及客戶端
JPH10240220A (ja) 注釈表示機能を持つ情報処理機器
TWI710989B (zh) 應用於客戶端、服務端的業務執行方法、裝置以及設備
US20150212713A1 (en) Information processing apparatus, information processing method, and computer-readable recording medium
CN107025480A (zh) 图像生成方法及其设备
WO2021169529A1 (zh) 识别码图像中的风险的方法、装置以及设备
CN111291661A (zh) 一种屏幕中图标的文本内容的识别方法及设备
US20130039535A1 (en) Method and apparatus for reducing complexity of a computer vision system and applying related computer vision applications
US10296802B2 (en) Image processing device, image processing method, and computer program product
US7280693B2 (en) Document information input apparatus, document information input method, document information input program and recording medium
CN112348025A (zh) 字符检测方法及装置、电子设备和存储介质
US20230082420A1 (en) Display of digital media content on physical surface
JP2001202475A (ja) 文字認識装置及び文字認識装置の制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21818921

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21818921

Country of ref document: EP

Kind code of ref document: A1