WO2020221009A1 - Code scanning method and mobile terminal - Google Patents

Code scanning method and mobile terminal Download PDF

Info

Publication number
WO2020221009A1
WO2020221009A1 PCT/CN2020/084912 CN2020084912W WO2020221009A1 WO 2020221009 A1 WO2020221009 A1 WO 2020221009A1 CN 2020084912 W CN2020084912 W CN 2020084912W WO 2020221009 A1 WO2020221009 A1 WO 2020221009A1
Authority
WO
WIPO (PCT)
Prior art keywords
display screen
identification code
mobile terminal
code
area
Prior art date
Application number
PCT/CN2020/084912
Other languages
French (fr)
Chinese (zh)
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 WO2020221009A1 publication Critical patent/WO2020221009A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10554Moving beam scanning
    • G06K7/10594Beam path
    • G06K7/10603Basic scanning using moving elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Definitions

  • the present disclosure relates to the field of electronic technology, and in particular to a code scanning method and a mobile terminal.
  • the present disclosure provides a code scanning method and a mobile terminal to solve the problem of low code scanning operation efficiency in related technologies.
  • embodiments of the present disclosure provide a code scanning method applied to a mobile terminal, and the method includes:
  • the external code scanner is identified through the camera
  • the embodiments of the present disclosure also provide a mobile terminal, the mobile terminal including:
  • the identification module is used to identify the external code scanner through the camera when the identification code is displayed on the display screen of the mobile terminal;
  • the control module is configured to move the identification code or output a movement instruction based on the identification result, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
  • the embodiments of the present disclosure also provide a mobile terminal, including a processor, a memory, and a program stored on the memory and capable of running on the processor.
  • the program is executed when the processor is executed. The steps of the above scanning code method.
  • embodiments of the present disclosure also provide a computer-readable storage medium with a program stored on the computer-readable storage medium, and when the program is executed by a processor, the steps of the foregoing code scanning method are implemented.
  • the external code scanner is recognized by the camera, and based on the recognition result, the identification code is moved or the movement instruction is output, which can achieve rapid alignment between the identification code and the scanning area of the external code scanner, or assist the user to achieve The quick alignment between the identification code and the scanning area of the code scanner avoids repeated attempts by the user during the scanning process and improves the scanning efficiency.
  • FIG. 1 is a flowchart of a code scanning method provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a code scanning method provided by another embodiment of the present disclosure.
  • Figure 3 is a schematic diagram of a corner area provided by an embodiment of the present disclosure.
  • Fig. 4a is a schematic diagram of a code scanner scanning an identification code according to an embodiment of the present disclosure
  • FIG. 4b is a schematic diagram of a code scanner scanning an identification code according to an embodiment of the present disclosure
  • Figure 5 is a schematic diagram of a display screen provided by an embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a code scanning method provided by another embodiment of the present disclosure.
  • Fig. 7a is a schematic diagram of a code scanner scanning an identification code provided by another embodiment of the present disclosure.
  • Fig. 7b is a schematic diagram of a code scanner scanning an identification code according to another embodiment of the present disclosure.
  • Fig. 8a is a schematic diagram of a code scanner scanning an identification code provided by another embodiment of the present disclosure.
  • Fig. 8b is a schematic diagram of a code scanner scanning an identification code according to another embodiment of the present disclosure.
  • FIG. 9 is a structural diagram of a mobile terminal provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of the hardware structure of a mobile terminal according to various embodiments of the present disclosure.
  • FIG. 1 is a flowchart of a code scanning method provided by an embodiment of the present disclosure. As shown in FIG. 1, it includes the following steps 101 and 102.
  • Step 101 When the identification code is displayed on the display screen of the mobile terminal, the external code scanner is recognized through the camera.
  • recognizing the external code scanner through the camera may be recognizing whether the external code scanner exists through the camera, or recognizing the relative position relationship between the camera and the code scanner through the camera.
  • the aforementioned identification code can be a two-dimensional code or a barcode.
  • the above-mentioned relative positional relationship may be a relative position in space, a relative distance or other relative positional relationship.
  • the above-mentioned relative position relationship can be identified using TOF (Time of Flight) technology, etc.; specifically, TOF technology continuously sends light pulses to the scanner, and then uses the camera to receive the light pulses returned from the scanner Signal, the relative position information between the camera and the code scanner is obtained by detecting the flight time of the light pulse; TOF technology is relatively two-dimensional imaging, which can obtain a richer position relationship between objects.
  • TOF Time of Flight
  • the above-mentioned mobile terminal may be a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), a personal digital assistant (PDA for short), and a mobile Internet Device (MID). ) Or wearable devices (Wearable Device), etc.
  • Step 102 Based on the identification result, move the identification code or output a movement instruction.
  • the movement instruction may be used to indicate to move the position of the identification code in the display screen or to move the mobile terminal, that is, the output movement instruction may be to instruct the user to move the identification code, or it may be The user is instructed to move the mobile terminal, and by instructing the user to move the identification code or the mobile terminal, the user is assisted to achieve rapid alignment between the identification code and the scanning area of the code scanner.
  • the aforementioned movement instruction is output through the display screen of the mobile terminal or through the audio output of the mobile terminal.
  • moving the identification code may include moving the location of the identification code, and may also include enlarging the identification code to cause the location of the identification code to change.
  • the external code scanner is recognized through the camera, and the identification code is moved or the movement instruction is output based on the recognition result.
  • the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal. It can realize the rapid alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the rapid alignment between the identification code and the scanning area of the code scanner, and improve the scanning efficiency.
  • Figure 2 is a flowchart of a code scanning method provided by another embodiment of the present disclosure.
  • the difference between this embodiment of the present disclosure and the previous embodiment is mainly that the recognition result indicates the presence of an external code scanner.
  • moving the identification code based on the identification result includes: moving the identification code to the target area of the display screen of the mobile terminal when the identification result indicates that there is an external code scanner.
  • the code scanning method provided by the embodiment of the present disclosure includes the following steps 201 and 202.
  • Step 201 When the identification code is displayed on the display screen of the mobile terminal, the external code scanner is identified through the camera.
  • recognizing the external code scanner through the camera may be recognizing whether the external code scanner exists through the camera, and the identification code may be a two-dimensional code or a barcode.
  • the identification code is displayed on the display screen of the mobile terminal, the camera of the mobile terminal can be activated and images can be collected, and then the existence of an external code scanner can be identified based on the collected images.
  • Step 202 If the identification result indicates that there is an external code scanner, move the identification code to the target area of the display screen of the mobile terminal.
  • the target area is located in a first preset area of the display screen of the mobile terminal; at least one vertex of the first preset area coincides with a vertex of the display screen of the mobile terminal.
  • the aforementioned first preset area may be any corner area of the display screen of the mobile terminal, and the corner area is an included corner area formed by the edge of the display screen of the mobile terminal.
  • the areas G1 to G4 are the corner areas of the display screen of the mobile terminal.
  • the first preset area may also be an area that overlaps with three sides of the display screen of the mobile terminal.
  • the first preset area is the upper half or the lower half of the display screen. It is assumed that the range of the identification code displayed in the area is relatively large, and the user can accurately recognize the display area of the identification code on the mobile terminal, which facilitates the user to scan the code for alignment.
  • the method may further include:
  • the aforementioned first preset area is a preset area determined from at least two preset areas according to the touch area.
  • At least one vertex of each of the aforementioned at least two preset regions coincides with the vertex of the display screen.
  • the aforementioned at least two preset areas may include at least two corner areas of the display screen.
  • the display screen of the above-mentioned mobile terminal may be a touch display screen.
  • the touch area can be obtained by detecting the contact position of the user with the display screen of the mobile terminal when holding the mobile terminal.
  • the above-mentioned first preset area is a preset area determined from at least two preset areas according to the touch area, and may specifically include, after obtaining the touch area of the user on the display screen,
  • the identification code is moved to the first preset area opposite to the touch area, for example, a corner area away from the touch area may be used as the first preset area.
  • the identification code is moved to the first preset area opposite to the touch area.
  • the user has an accurate display position of the identification code on the display screen. Cognition, on the other hand, makes it unnecessary for the user to adjust the holding posture to avoid blocking the identification code when performing the scan code alignment operation.
  • the touch area T is at the lower right corner of the display screen.
  • the identification code is moved to the bottom right corner of the mobile terminal.
  • the target area of the display screen can be to move the identification code to the upper left corner of the display screen, that is, when the user is holding the lower right corner of the mobile terminal to scan the code, only the upper left corner of the display screen of the mobile terminal needs to be aligned with the scan code.
  • the scanning area of the encoder can quickly achieve alignment.
  • the identification code may be moved to the first preset area.
  • the identification code is moved to a preset first preset area, where the first preset area may be a display screen
  • the first preset area may be a display screen
  • the upper left corner, the upper right corner, the lower left corner, or the lower right corner and other corner areas conforming to the user's operating habits, the first preset area may be set by the system or customized by the user.
  • the display screen may include a first display screen and a second display screen.
  • the first display screen and the second display screen are in a state of being opposite to each other.
  • the identification code is displayed, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen.
  • the identification code on the first display screen A and the identification code on the second display screen B move to the target area synchronously, that is, the display position of the moved identification code on the first display screen A and the identification code
  • the user can know the display of the identification code on the first display screen A on the side facing the code scanner by watching the display position of the identification code on the second display screen B Location, convenient for users to scan code alignment.
  • the position correspondence can be understood as the display position of the first display screen A and the display position of the second display screen B that are opposite to each other.
  • the lower right corner of the first display screen A The corresponding position of the G1 area is the G1' area in the lower left corner of the second display screen B.
  • the corresponding position of G2 in the lower left corner of the first display screen A is the G2' area in the lower right corner of the second display screen B.
  • the first display The corresponding position of G3 in the upper left corner of screen A is the G3' area in the upper right corner of the second display screen B, and the corresponding position of G4 in the upper right corner of the first display screen A is the G4' area in the upper left corner of the second display screen B.
  • the external code scanner when the display screen of the mobile terminal displays the identification code, the external code scanner is recognized through the camera, and when the recognition result indicates the existence of the external code scanner, the The identification code to the target area of the display screen of the mobile terminal, and the target area is set as the first preset area, so that the user can accurately recognize the display area of the identification code on the mobile terminal, and set the first preset area It is set relative to the touch area, which is convenient for users to scan code alignment, and can assist users to achieve rapid alignment between the identification code and the scanning area of the code scanner, and improve the scanning efficiency.
  • FIG. 6 is a flowchart of a code scanning method provided by another embodiment of the present disclosure.
  • the difference between this embodiment of the present disclosure and the previous embodiment is mainly that the recognition result is defined as the camera and the scan
  • the relative position relationship of the encoder is shown in FIG. 6.
  • the scanning method provided by the embodiment of the present disclosure includes the following steps 301 and 302.
  • Step 301 When the identification code is displayed on the display screen of the mobile terminal, identify the external code scanner through the camera.
  • recognizing the external code scanner through the camera may be recognizing the relative position relationship between the camera and the code scanner through the camera.
  • the relative position relationship may be a relative position in space, a relative distance relationship or other relative position relationships.
  • TOF technology or the like can be used.
  • the identification code may be a two-dimensional code, a barcode or other types of identification codes.
  • Step 302 If the identification result is the relative position relationship between the camera and the code scanner, move the identification code or output a movement instruction according to the relative position relationship.
  • the movement instruction is used to instruct to move the position of the identification code in the display screen or to move the mobile terminal, that is, the output movement instruction may be instructing the user to move the identification code, or it may be an instruction
  • the user moves the mobile terminal, and by instructing the user to move the identification code or the mobile terminal, the user is assisted to achieve rapid alignment between the identification code and the scanning area of the code scanner.
  • the movement instruction is output through the display screen of the mobile terminal or through the audio output of the mobile terminal.
  • moving the identification code may include moving the location of the identification code, and also includes enlarging the identification code to cause the location of the identification code to change.
  • the moving the identification code according to the relative position relationship may include:
  • the relative positional relationship between the camera of the mobile terminal and the display screen of the mobile terminal is determined, when the relative positional relationship between the camera and the barcode scanner is known, the relationship between the barcode scanner and the display screen can be clarified. The relative position between the two can then determine the alignment area on the display screen corresponding to the scanning area of the code scanner.
  • the alignment area G corresponding to the scanning area of the code scanner is determined on the display screen; as shown in FIG. 7b, the identification code moves to the The alignment area G.
  • the alignment area is identified based on the relative position relationship, and the identification code is moved to the alignment area, which can quickly realize the scan code alignment, without the user repeatedly adjusting the position of the mobile terminal, and avoiding the user from multiple scan code alignment attempts , Improve scanning efficiency.
  • the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and both the first display screen and the second display screen display
  • the identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen;
  • step 302 that is, the moving the identification code according to the relative position relationship may include:
  • the identification code displayed on the second display screen is moved, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
  • the corresponding display area can be understood as the mirror position area of the alignment area on the second display screen and the first display screen; it should be noted that the explanation of the mirror position can refer to the previous embodiment , I won’t repeat it here.
  • the user can refer to the alignment area mark displayed on the second display screen and move the second display area.
  • the identification code displayed on the display screen until the identification code displayed on the second display screen moves to the area where the alignment area mark is located.
  • the identification code displayed on the first display screen can move with the identification code displayed on the second display screen to maintain the identification code on the first display screen.
  • always correspond to the position of the identification code on the second display screen for example, keep the identification code on the first display screen in a mirror position with the identification code on the second display screen.
  • the alignment area identifier on the display area corresponding to the alignment area on the second display screen, it is convenient for the user to visually view the alignment area, so that the identification code can be moved in a targeted manner. It can avoid the user from making multiple invalid scan code alignment attempts, realize fast alignment, and improve code scan efficiency.
  • the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and both the first display screen and the second display screen display
  • the identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen; wherein the first display screen faces the code scanner, The second display screen faces the code scanner;
  • step 302 that is, in the case where the recognition result is the relative position relationship between the camera and the code scanner, outputting a movement instruction according to the relative position relationship may include:
  • the movement instruction is displayed on the second display screen according to the relative position relationship.
  • the movement instruction can be used to instruct the user to move the identification code, or to instruct the user to move the mobile terminal.
  • the aforementioned movement instruction may be an arrow indicating a movement direction, so that the user can move the mobile terminal or the direction of the mobile identification code based on the movement direction indicated by the arrow.
  • the second display screen when the first display screen faces the code scanner, the second display screen usually faces the user. In this way, the movement instructions are displayed on the second display screen to facilitate the user to view, and then move based on the movement instructions.
  • the terminal or mobile identification code facilitates quick alignment between the identification code and the scanning area of the code scanner.
  • the identification code on the first display screen moves synchronously with the identification code on the second display screen to maintain the identification code on the first display screen. Always correspond to the identification code position on the second display screen.
  • this embodiment can also dynamically display the relative position relationship in real time on the second display screen, so that the user can intuitively feel the relative position relationship between the identification code and the code scanner, wherein the real-time dynamic display
  • the relative position relationship can be displayed in the form of a two-dimensional or three-dimensional image.
  • the relative position relationship includes the distance between the camera and the code scanner
  • step 302 that is, moving the identification code according to the relative position relationship, may include:
  • the identification code is enlarged.
  • the aforementioned preset threshold can be set reasonably according to actual needs, for example, 40 cm, 30 cm, etc.
  • the above-mentioned distance between the camera and the code scanner for example, can be detected by a distance sensor, or can be detected by TOF technology, which is not limited in this embodiment.
  • the identification code can be enlarged to facilitate scanning and recognition by the code scanner. Thereby improving the efficiency of scanning codes.
  • the method may further include: identifying an area where the identification code is located, and performing an amplifying operation on the identification code based on the area where the identification code is located. This can increase the scale of the identification code.
  • the display screen is a foldable display screen
  • amplifying the identification code may include:
  • the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding.
  • the aforementioned identification code when the foldable display screen is in a folded state, the aforementioned identification code may be displayed on at least one of the at least two display screens obtained by folding the foldable display screen.
  • the unfolding instruction is to instruct the user to unfold the folding display screen in the folded state, for example, it may output "please unfold the display screen” in the form of voice, or display the text "please unfold the display screen” on the display screen or display the folding screen Expand the animation to prompt the user to expand the display.
  • the foldable display screen includes a first display screen C and a second display screen D.
  • the identification code is displayed on the first display screen C, as shown in the appendix
  • the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding, that is, through the first display screen C and
  • the second display screen D collectively displays the enlarged identification code.
  • the output of the mobile terminal is expanded Instruct, the driver can expand the foldable display screen based on the unfolding instruction, so that the identification code is enlarged and displayed on the unfolded foldable display screen, which facilitates the alignment of the identification code of the mobile terminal on the vehicle side with the code scanner in the parking lot.
  • this embodiment may also upload the relative position relationship to the server. Therefore, the relative position relationship can be sent to the code scanner through the server, so that the code scanner can adjust its own position based on the relative position relationship, so as to realize the alignment of the code scanner and the identification code on the display screen of the mobile terminal.
  • the external code scanner is recognized through a camera, and the recognition result includes the relative position of the camera and the code scanner In the case of a relationship, moving the identification code or outputting the movement instruction according to the relative position relationship can achieve rapid alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the identification code and the code scanner Fast alignment between scanning areas improves scanning efficiency.
  • the mobile terminal 400 includes:
  • the identification module 401 is used to identify the external code scanner through the camera when the identification code is displayed on the display screen of the mobile terminal;
  • the control module 402 is configured to move the identification code or output a movement instruction based on the identification result, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
  • control module 402 includes:
  • the first control unit is configured to move the identification code to the target area of the display screen of the mobile terminal when the recognition result indicates that there is an external code scanner; wherein, the target area is located in the mobile terminal
  • the first preset area of the display screen at least one vertex of the first preset area coincides with the vertex of the display screen of the mobile terminal.
  • the mobile terminal 400 further includes:
  • the obtaining module is used to obtain the user’s presence in the mobile terminal after the external code scanner is recognized through the camera and before the recognition code is moved based on the recognition result when the identification code is displayed on the display screen of the mobile terminal.
  • the control module includes:
  • the second control unit is configured to move the identification code or output the movement instruction according to the relative position relationship when the recognition result includes the relative position relationship between the camera and the code scanner.
  • the second control unit is specifically configured to:
  • the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and both the first display screen and the second display screen display
  • the identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen; wherein the first display screen is relatively close to the code scanner Side, the second display screen is relatively far away from the scanner side;
  • the second control unit is specifically configured to: based on the relative position relationship, determine the alignment area on the first display screen corresponding to the scanning area of the code scanner; The alignment area identifier is displayed on the display area corresponding to the alignment area; the movement operation for the identification code displayed on the second display screen is received; in response to the movement operation, the identification displayed on the second display screen is moved Code, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
  • the second control unit is specifically configured to: between the camera and the code scanner If the distance of is greater than the preset threshold, the identification code is enlarged.
  • the display screen is a foldable display screen; the second control unit is specifically configured to: the distance between the camera and the code scanner is greater than a preset threshold, and the foldable display screen In the case of being in the folded state, an expansion instruction is output; in the case of receiving an expansion operation, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after expansion.
  • the mobile terminal 400 provided in the embodiment of the present disclosure can implement each process implemented by the mobile terminal in the method embodiment of FIG. 1 to FIG. 8. In order to avoid repetition, details are not described herein again.
  • the mobile terminal 400 of the embodiment of the present disclosure includes: an identification module, which is used to identify an external code scanner through a camera when the display screen of the mobile terminal displays an identification code; a control module, which is used to move the station based on the identification result
  • the identification code or output movement instruction wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal. It can realize the quick alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the quick alignment between the identification code and the scanning area of the code scanner, avoiding repeated attempts by the user in the scanning process, and improving the scanning efficiency .
  • FIG. 10 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present disclosure.
  • the mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processing 510, power supply 511 and other components.
  • radio frequency unit 501 includes radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processing 510, power supply 511 and other components.
  • the mobile terminal may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 510 is configured to identify an external code scanner through a camera when the identification code is displayed on the display screen of the mobile terminal; based on the identification result, move the identification code or output a movement instruction, wherein the movement The indication is used to indicate to move the position of the identification code in the display screen or to move the mobile terminal.
  • the embodiment of the present disclosure recognizes an external code scanner through a camera, and based on the recognition result, moves the identification code or outputs a movement instruction, which can achieve rapid alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the identification code
  • the quick alignment with the scanning area of the code scanner avoids repeated attempts by the user during the scanning process and improves the scanning efficiency.
  • processor 510 is further configured to:
  • the identification result indicates that there is an external code scanner
  • move the identification code to the target area of the display screen of the mobile terminal; wherein, the target area is located in the first preset area of the display screen of the mobile terminal.
  • processor 510 is further configured to:
  • the aforementioned first preset area is a preset area determined from at least two preset areas according to the touch area.
  • processor 510 is further configured to:
  • the recognition result is the relative position relationship between the camera and the code scanner
  • the identification code is moved or the movement instruction is output according to the relative position relationship.
  • processor 510 is further configured to:
  • the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and the identification code is displayed on both the first display screen and the second display screen , And the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen; optionally, the processor 510 is further configured to: The relative position relationship determines the alignment area on the first display screen corresponding to the scanning area of the code scanner;
  • the identification code displayed on the second display screen is moved, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
  • the relative positional relationship includes the distance between the camera and the code scanner.
  • the processor 510 is further configured to: the distance between the camera and the code scanner is greater than a preset In the case of a threshold value, the identification code is enlarged.
  • processor 510 is further configured to:
  • the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding.
  • the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 510; Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the mobile terminal 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device with the mobile terminal 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 500 or can be used to connect to the mobile terminal 500 and external Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the mobile terminal 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 500 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor 510, a memory 509, a program stored in the memory 509 and running on the processor 510, and the program is executed when the processor 510 is executed.
  • a mobile terminal including a processor 510, a memory 509, a program stored in the memory 509 and running on the processor 510, and the program is executed when the processor 510 is executed.
  • the identification code is displayed on the display screen of the mobile terminal, the external code scanner is identified through the camera; based on the identification result, the identification code is moved or a movement instruction is output, wherein the movement instruction is used to instruct to move the The position of the identification code in the display screen or the various processes of moving the mobile terminal can achieve the same technical effect. To avoid repetition, details are not described here.
  • the embodiment of the present disclosure also provides a computer-readable storage medium, and a program is stored on the computer-readable storage medium.
  • the program is executed by the processor, the above-mentioned identification code is displayed on the display screen of the mobile terminal through a camera. Identify the external code scanner; based on the identification result, move the identification code or output a movement instruction, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move each of the mobile terminal Process, and can achieve the same technical effect, in order to avoid repetition, I will not repeat it here.
  • the computer readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.

Abstract

Provided are a code scanning method and a mobile terminal. The method comprises: identifying an external code scanner through a camera in the case where a display screen of the mobile terminal displays an identification code (101); and moving the identification code or outputting a movement instruction based on the identification result(102), wherein the movement instruction is used for instructing to move the position of the identification code in the display screen or move the mobile terminal.

Description

扫码方法及移动终端Code scanning method and mobile terminal
相关申请的交叉引用Cross references to related applications
本申请主张在2019年4月28日在中国提交的中国专利申请No.201910349784.1的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910349784.1 filed in China on April 28, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及电子技术领域,尤其涉及一种扫码方法及移动终端。The present disclosure relates to the field of electronic technology, and in particular to a code scanning method and a mobile terminal.
背景技术Background technique
目前,许多扫描场景都是基于固定的扫码器,例如,自助超市、停车场、公交系统、自助取票等。然而,由于扫码器是固定的,在扫描移动终端的识别码(例如,二维码)时,通常需要用户将对应的识别码正对着机器,即,使移动终端的显示屏与扫描仪相对,这使得用户无法准确掌握移动终端的显示屏上的识别码和扫码器之间的相对位置,因此,在扫码过程中,需要用户反复移动所持握的移动终端,来尝试使得识别码与扫码器的扫描区对准,这导致扫码操作过程繁琐、效率低下,给用户带来不便。Currently, many scanning scenarios are based on fixed code scanners, such as self-service supermarkets, parking lots, public transportation systems, and self-service ticket collection. However, because the code scanner is fixed, when scanning the identification code of the mobile terminal (for example, a two-dimensional code), the user is usually required to face the corresponding identification code directly to the machine, that is, make the display screen of the mobile terminal and the scanner In contrast, this makes the user unable to accurately grasp the relative position between the identification code on the display screen of the mobile terminal and the barcode scanner. Therefore, during the scanning process, the user needs to repeatedly move the mobile terminal held to try to make the identification code It is aligned with the scanning area of the code scanner, which results in a cumbersome scanning operation process, low efficiency, and inconvenience to users.
发明内容Summary of the invention
本公开提供一种扫码方法及移动终端,以解决相关技术中扫码操作效率较低的问题。The present disclosure provides a code scanning method and a mobile terminal to solve the problem of low code scanning operation efficiency in related technologies.
第一方面,本公开实施例提供了一种扫码方法,应用于移动终端,所述方法包括:In the first aspect, embodiments of the present disclosure provide a code scanning method applied to a mobile terminal, and the method includes:
在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;When the identification code is displayed on the display screen of the mobile terminal, the external code scanner is identified through the camera;
基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。Based on the recognition result, move the identification code or output a movement instruction, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
第二方面,本公开实施例还提供一种移动终端,所述移动终端包括:In a second aspect, the embodiments of the present disclosure also provide a mobile terminal, the mobile terminal including:
识别模块,用于在所述移动终端的显示屏显示识别码的情况下,通过摄 像头识别外部扫码器;The identification module is used to identify the external code scanner through the camera when the identification code is displayed on the display screen of the mobile terminal;
控制模块,用于基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。The control module is configured to move the identification code or output a movement instruction based on the identification result, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
第三方面,本公开实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述的扫码方法的步骤。In a third aspect, the embodiments of the present disclosure also provide a mobile terminal, including a processor, a memory, and a program stored on the memory and capable of running on the processor. The program is executed when the processor is executed. The steps of the above scanning code method.
第四方面,本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现上述的扫码方法的步骤。In a fourth aspect, embodiments of the present disclosure also provide a computer-readable storage medium with a program stored on the computer-readable storage medium, and when the program is executed by a processor, the steps of the foregoing code scanning method are implemented.
本公开实施例中,通过摄像头识别外部扫码器,基于识别结果,移动所述识别码或输出移动指示,能够实现识别码与外部扫码器扫描区域之间的快速对准,或者辅助用户实现识别码与扫码器扫描区域之间的快速对准,避免用户在扫码过程中反复尝试,提高扫码效率。In the embodiment of the present disclosure, the external code scanner is recognized by the camera, and based on the recognition result, the identification code is moved or the movement instruction is output, which can achieve rapid alignment between the identification code and the scanning area of the external code scanner, or assist the user to achieve The quick alignment between the identification code and the scanning area of the code scanner avoids repeated attempts by the user during the scanning process and improves the scanning efficiency.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本公开实施例提供的扫码方法的流程图;FIG. 1 is a flowchart of a code scanning method provided by an embodiment of the present disclosure;
图2是本公开又一实施例提供的扫码方法的流程图;FIG. 2 is a flowchart of a code scanning method provided by another embodiment of the present disclosure;
图3是本公开实施例提供的边角区域的示意图;Figure 3 is a schematic diagram of a corner area provided by an embodiment of the present disclosure;
图4a是本公开实施例提供的扫码器扫描识别码的示意图;Fig. 4a is a schematic diagram of a code scanner scanning an identification code according to an embodiment of the present disclosure;
图4b是本公开实施例提供的扫码器扫描识别码的示意图;FIG. 4b is a schematic diagram of a code scanner scanning an identification code according to an embodiment of the present disclosure;
图5是本公开实施例提供的显示屏的示意图;Figure 5 is a schematic diagram of a display screen provided by an embodiment of the present disclosure;
图6是本公开又一实施例提供的扫码方法的流程图;FIG. 6 is a flowchart of a code scanning method provided by another embodiment of the present disclosure;
图7a是本公开又一实施例提供的扫码器扫描识别码的示意图;Fig. 7a is a schematic diagram of a code scanner scanning an identification code provided by another embodiment of the present disclosure;
图7b是本公开又一实施例提供的扫码器扫描识别码的示意图;Fig. 7b is a schematic diagram of a code scanner scanning an identification code according to another embodiment of the present disclosure;
图8a是本公开又一实施例提供的扫码器扫描识别码的示意图;Fig. 8a is a schematic diagram of a code scanner scanning an identification code provided by another embodiment of the present disclosure;
图8b是本公开又一实施例提供的扫码器扫描识别码的示意图;Fig. 8b is a schematic diagram of a code scanner scanning an identification code according to another embodiment of the present disclosure;
图9是本公开实施例提供的移动终端的结构图;FIG. 9 is a structural diagram of a mobile terminal provided by an embodiment of the present disclosure;
图10是本公开各个实施例的一种移动终端的硬件结构示意图。FIG. 10 is a schematic diagram of the hardware structure of a mobile terminal according to various embodiments of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本公开实施例提供一种扫码方法,应用于移动终端。参见图1,图1是本公开实施例提供的扫码方法的流程图,如图1所示,包括以下步骤101和102。The embodiment of the present disclosure provides a code scanning method, which is applied to a mobile terminal. Referring to FIG. 1, FIG. 1 is a flowchart of a code scanning method provided by an embodiment of the present disclosure. As shown in FIG. 1, it includes the following steps 101 and 102.
步骤101、在移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器。Step 101: When the identification code is displayed on the display screen of the mobile terminal, the external code scanner is recognized through the camera.
本实施例中,通过摄像头识别外部扫码器可以是通过摄像头识别外部扫码器是否存在,也可以是通过摄像头识别摄像头与扫码器之间的相对位置关系等。上述识别码可以是二维码或条形码等。上述相对位置关系可以是空间上的相对方位,也可以相是对距离或其他相对位置关系。其中,上述相对位置关系,例如,可以使用TOF(Time of Flight)技术等进行识别;具体而言,TOF技术通过向扫码器连续发送光脉冲,然后利用摄像头接收从扫码器返回的光脉冲信号,通过检测光脉冲的飞行时间来得到摄像头与扫码器之间的相对位置信息;TOF技术相对二维成像,可获取物体之间更加丰富的位置关系。In this embodiment, recognizing the external code scanner through the camera may be recognizing whether the external code scanner exists through the camera, or recognizing the relative position relationship between the camera and the code scanner through the camera. The aforementioned identification code can be a two-dimensional code or a barcode. The above-mentioned relative positional relationship may be a relative position in space, a relative distance or other relative positional relationship. Among them, the above-mentioned relative position relationship, for example, can be identified using TOF (Time of Flight) technology, etc.; specifically, TOF technology continuously sends light pulses to the scanner, and then uses the camera to receive the light pulses returned from the scanner Signal, the relative position information between the camera and the code scanner is obtained by detecting the flight time of the light pulse; TOF technology is relatively two-dimensional imaging, which can obtain a richer position relationship between objects.
本实施例中,上述移动终端可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In this embodiment, the above-mentioned mobile terminal may be a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), a personal digital assistant (PDA for short), and a mobile Internet Device (MID). ) Or wearable devices (Wearable Device), etc.
步骤102、基于识别结果,移动所述识别码或输出移动指示。Step 102: Based on the identification result, move the identification code or output a movement instruction.
本实施例中,通过移动所述识别码,能够实现识别码与扫码器扫描区域之间的快速对准。其中,所述移动指示可以用于指示移动所述识别码在所述 显示屏中的位置或移动所述移动终端,即所述输出移动指示,可以是指示用户对识别码进行移动,也可以是指示用户对移动终端进行移动,通过指示用户对所述识别码或是所述移动终端进行移动,辅助用户实现所述识别码与扫码器的扫描区域之间的快速对准。其中,上述移动指示通过移动终端的显示屏输出或者通过移动终端的音频输出。In this embodiment, by moving the identification code, rapid alignment between the identification code and the scanning area of the code scanner can be achieved. Wherein, the movement instruction may be used to indicate to move the position of the identification code in the display screen or to move the mobile terminal, that is, the output movement instruction may be to instruct the user to move the identification code, or it may be The user is instructed to move the mobile terminal, and by instructing the user to move the identification code or the mobile terminal, the user is assisted to achieve rapid alignment between the identification code and the scanning area of the code scanner. Wherein, the aforementioned movement instruction is output through the display screen of the mobile terminal or through the audio output of the mobile terminal.
其中,移动所述识别码可以包括对识别码的位置进行移动,还可以包括对识别码进行放大而致使所述识别码所在位置发生变化。Wherein, moving the identification code may include moving the location of the identification code, and may also include enlarging the identification code to cause the location of the identification code to change.
本公开实施例的扫码方法,在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器,基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。能够实现识别码与扫码器扫描区域之间的快速对准,或者辅助用户实现识别码与扫码器扫描区域之间的快速对准,提高扫码效率。In the code scanning method of the embodiment of the present disclosure, in the case that the display screen of the mobile terminal displays the identification code, the external code scanner is recognized through the camera, and the identification code is moved or the movement instruction is output based on the recognition result. The movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal. It can realize the rapid alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the rapid alignment between the identification code and the scanning area of the code scanner, and improve the scanning efficiency.
参见图2,图2是本公开又一实施例提供的扫码方法的流程图,本公开该实施例与上一实施例的区别主要在于进一步限定了识别结果指示存在外部扫码器,本公开实施例中,基于识别结果,移动所述识别码,包括:在所述识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域。Referring to Figure 2, Figure 2 is a flowchart of a code scanning method provided by another embodiment of the present disclosure. The difference between this embodiment of the present disclosure and the previous embodiment is mainly that the recognition result indicates the presence of an external code scanner. In an embodiment, moving the identification code based on the identification result includes: moving the identification code to the target area of the display screen of the mobile terminal when the identification result indicates that there is an external code scanner.
如图2所示,本公开实施例提供的扫码方法包括以下步骤201和202。As shown in FIG. 2, the code scanning method provided by the embodiment of the present disclosure includes the following steps 201 and 202.
步骤201、在移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器。Step 201: When the identification code is displayed on the display screen of the mobile terminal, the external code scanner is identified through the camera.
其中,通过摄像头识别外部扫码器可以是通过摄像头识别外部扫码器是否存在,所述识别码可以是二维码或条形码等。例如,可以在移动终端的显示屏显示识别码的情况下,可以启动移动终端的摄像头并采集图像,进而可以根据所采集的图像识别外部扫码器是否存在。Wherein, recognizing the external code scanner through the camera may be recognizing whether the external code scanner exists through the camera, and the identification code may be a two-dimensional code or a barcode. For example, when the identification code is displayed on the display screen of the mobile terminal, the camera of the mobile terminal can be activated and images can be collected, and then the existence of an external code scanner can be identified based on the collected images.
步骤202、在识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域。Step 202: If the identification result indicates that there is an external code scanner, move the identification code to the target area of the display screen of the mobile terminal.
其中,所述目标区域位于所述移动终端的显示屏的第一预设区域;所述第一预设区域的至少一个顶点与所述移动终端的显示屏的顶点重合。Wherein, the target area is located in a first preset area of the display screen of the mobile terminal; at least one vertex of the first preset area coincides with a vertex of the display screen of the mobile terminal.
本实施例中,上述第一预设区域可以是所述移动终端的显示屏的任一边 角区域,所述边角区域为移动终端的显示屏边缘形成的夹角区域。例如,如图3所示,其中G1区域至G4区域即移动终端的显示屏的边角区域。In this embodiment, the aforementioned first preset area may be any corner area of the display screen of the mobile terminal, and the corner area is an included corner area formed by the edge of the display screen of the mobile terminal. For example, as shown in FIG. 3, the areas G1 to G4 are the corner areas of the display screen of the mobile terminal.
可选地,上述第一预设区域还可以是与移动终端显示屏的三条边重合的区域,例如,上述第一预设区域为显示屏的上半部分或者下半部分,在该第一预设区域显示识别码的范围较大,且使得用户对于识别码在移动终端上的显示区域能够有准确认知,方便用户进行扫码对准。Optionally, the first preset area may also be an area that overlaps with three sides of the display screen of the mobile terminal. For example, the first preset area is the upper half or the lower half of the display screen. It is assumed that the range of the identification code displayed in the area is relatively large, and the user can accurately recognize the display area of the identification code on the mobile terminal, which facilitates the user to scan the code for alignment.
可选地,在上述步骤201之后,以及上述步骤202之前,也即在移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器之后,在识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域之前,所述方法还可以包括:Optionally, after the above step 201 and before the above step 202, that is, when the identification code is displayed on the display screen of the mobile terminal, after the external code scanner is recognized through the camera, the recognition result indicates that there is an external code scanner. In this case, before moving the identification code to the target area of the display screen of the mobile terminal, the method may further include:
获取用户在所述移动终端的显示屏上的触控区域;Acquiring the touch area of the user on the display screen of the mobile terminal;
其中,上述的第一预设区域为根据所述触控区域从至少两个预设区域中确定的预设区域。Wherein, the aforementioned first preset area is a preset area determined from at least two preset areas according to the touch area.
本实施例中,上述至少两个预设区域中的每个预设区域的至少一个顶点与显示屏的顶点重合。例如,上述至少两个预设区域可以包括显示屏的至少两个边角区域。In this embodiment, at least one vertex of each of the aforementioned at least two preset regions coincides with the vertex of the display screen. For example, the aforementioned at least two preset areas may include at least two corner areas of the display screen.
本实施例中,上述移动终端的显示屏可以为触控显示屏,这样可以通过检测用户持握移动终端时与移动终端的显示屏的接触位置,从而获取所述触控区域。In this embodiment, the display screen of the above-mentioned mobile terminal may be a touch display screen. In this way, the touch area can be obtained by detecting the contact position of the user with the display screen of the mobile terminal when holding the mobile terminal.
可选地,上述的第一预设区域为根据所述触控区域从至少两个预设区域中确定的预设区域,具体可以包括,在获取用户在显示屏上的触控区域之后,将识别码移动至与上述触控区域相对的第一预设区域,例如,可以是将远离所述触控区域的一个边角区域作为第一预设区域。相对于常规的将识别码放置在显示屏中央的位置,将识别码移动至与触控区域相对的第一预设区域,一方面,使得用户对于识别码在显示屏上的显示位置有准确的认知,另一方面,使得用户在进行扫码对准操作时,无需对持握姿势进行调整来避免遮挡识别码。Optionally, the above-mentioned first preset area is a preset area determined from at least two preset areas according to the touch area, and may specifically include, after obtaining the touch area of the user on the display screen, The identification code is moved to the first preset area opposite to the touch area, for example, a corner area away from the touch area may be used as the first preset area. Compared with the conventional position where the identification code is placed in the center of the display screen, the identification code is moved to the first preset area opposite to the touch area. On the one hand, the user has an accurate display position of the identification code on the display screen. Cognition, on the other hand, makes it unnecessary for the user to adjust the holding posture to avoid blocking the identification code when performing the scan code alignment operation.
例如,如图4a所示,当用户持握移动终端右下角时,所述触控区域T处于显示屏的右下角,如图4b所示,所述移动所述识别码至所述移动终端的显 示屏的目标区域可以是移动所述识别码移动至所述显示屏的左上角,即用户在持握移动终端右下角进行扫码时,只需要将移动终端的显示屏的左上角对准扫码器的扫描区域即可快速实现对准。For example, as shown in Figure 4a, when the user holds the lower right corner of the mobile terminal, the touch area T is at the lower right corner of the display screen. As shown in Figure 4b, the identification code is moved to the bottom right corner of the mobile terminal. The target area of the display screen can be to move the identification code to the upper left corner of the display screen, that is, when the user is holding the lower right corner of the mobile terminal to scan the code, only the upper left corner of the display screen of the mobile terminal needs to be aligned with the scan code. The scanning area of the encoder can quickly achieve alignment.
需要说明的是,在未获取到用户在所述移动终端的显示屏上的触控区域的情况下,可以将所述识别码移动至第一预设区域。例如,当用户持握移动终端边框,未与移动终端的显示屏接触的情况下进行扫码,则将识别码移动至预设的第一预设区域,其中第一预设区域可以是显示屏左上角、右上角、左下角或者右下角等符合用户操作习惯的边角区域,所述第一预设区域可以通过系统设定,也可以由用户自定义设置。It should be noted that if the user's touch area on the display screen of the mobile terminal is not obtained, the identification code may be moved to the first preset area. For example, when the user holds the frame of the mobile terminal and scans the code without touching the display screen of the mobile terminal, the identification code is moved to a preset first preset area, where the first preset area may be a display screen The upper left corner, the upper right corner, the lower left corner, or the lower right corner and other corner areas conforming to the user's operating habits, the first preset area may be set by the system or customized by the user.
可选地,所述显示屏可以包括第一显示屏和第二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应。Optionally, the display screen may include a first display screen and a second display screen. The first display screen and the second display screen are in a state of being opposite to each other. The identification code is displayed, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen.
例如,如图5所示,第一显示屏A相对靠近扫码器侧,第二显示屏B相对远离扫码器侧,移动所述识别码至所述移动终端的显示屏的目标区域时,第一显示屏A上的识别码与第二显示屏B上的识别码同步移动至目标区域,即移动后的所述识别码在所述第一显示屏A上的显示位置与所述识别码在所述第二显示屏B上的显示位置对应,用户可以通过观看第二显示屏B上识别码的显示位置,而知晓识别码在面向扫码器一侧的第一显示屏A上的显示位置,方便用户进行扫码对准。For example, as shown in FIG. 5, when the first display screen A is relatively close to the scanner side and the second display screen B is relatively far away from the scanner side, when the identification code is moved to the target area of the display screen of the mobile terminal, The identification code on the first display screen A and the identification code on the second display screen B move to the target area synchronously, that is, the display position of the moved identification code on the first display screen A and the identification code Corresponding to the display position on the second display screen B, the user can know the display of the identification code on the first display screen A on the side facing the code scanner by watching the display position of the identification code on the second display screen B Location, convenient for users to scan code alignment.
需要说明的是,所述位置对应可以理解为相背的第一显示屏A的显示位置和第二显示屏B的显示位置互为镜像位置,如图5所示,第一显示屏A右下角的G1区域的对应位置为第二显示屏B左下角的G1’区域,相应地,第一显示屏A左下角的G2的对应位置为第二显示屏B右下角的G2’区域,第一显示屏A左上角的G3的对应位置为第二显示屏B右上角的G3’区域,第一显示屏A右上角的G4的对应位置为第二显示屏B左上角的G4’区域。It should be noted that the position correspondence can be understood as the display position of the first display screen A and the display position of the second display screen B that are opposite to each other. As shown in FIG. 5, the lower right corner of the first display screen A The corresponding position of the G1 area is the G1' area in the lower left corner of the second display screen B. Accordingly, the corresponding position of G2 in the lower left corner of the first display screen A is the G2' area in the lower right corner of the second display screen B. The first display The corresponding position of G3 in the upper left corner of screen A is the G3' area in the upper right corner of the second display screen B, and the corresponding position of G4 in the upper right corner of the first display screen A is the G4' area in the upper left corner of the second display screen B.
本公开实施例的扫码方法,在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器,在所述识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域,将目标区域设 置为第一预设区域,使得用户对于识别码在移动终端上的显示区域能够有准确认知,且将第一预设区域与触控区域相对设置,方便用户进行扫码对准,能够辅助用户实现识别码与扫码器扫描区域之间的快速对准,提高扫码效率。In the code scanning method of the embodiment of the present disclosure, when the display screen of the mobile terminal displays the identification code, the external code scanner is recognized through the camera, and when the recognition result indicates the existence of the external code scanner, the The identification code to the target area of the display screen of the mobile terminal, and the target area is set as the first preset area, so that the user can accurately recognize the display area of the identification code on the mobile terminal, and set the first preset area It is set relative to the touch area, which is convenient for users to scan code alignment, and can assist users to achieve rapid alignment between the identification code and the scanning area of the code scanner, and improve the scanning efficiency.
参见图6,图6是本公开又一实施例提供的扫码方法的流程图,本公开该实施例与上一实施例的区别主要在限定了所述识别结果为所述摄像头与所述扫码器的相对位置关系,如图6所示,本公开实施例提供的扫描方法包括以下步骤301和302。Refer to FIG. 6, which is a flowchart of a code scanning method provided by another embodiment of the present disclosure. The difference between this embodiment of the present disclosure and the previous embodiment is mainly that the recognition result is defined as the camera and the scan The relative position relationship of the encoder is shown in FIG. 6. The scanning method provided by the embodiment of the present disclosure includes the following steps 301 and 302.
步骤301、在移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器。Step 301: When the identification code is displayed on the display screen of the mobile terminal, identify the external code scanner through the camera.
本实施例中,通过摄像头识别外部扫码器可以是通过摄像头识别摄像头与扫码器之间的相对位置关系。其中,所述相对位置关系可以是空间上的相对方位,也可以相对距离关系或其他相对位置关系。识别所述相对位置关系例如可以使用TOF技术等。所述识别码可以是二维码、条形码或其他类型的识别码。In this embodiment, recognizing the external code scanner through the camera may be recognizing the relative position relationship between the camera and the code scanner through the camera. Wherein, the relative position relationship may be a relative position in space, a relative distance relationship or other relative position relationships. To identify the relative position relationship, for example, TOF technology or the like can be used. The identification code may be a two-dimensional code, a barcode or other types of identification codes.
步骤302、在识别结果为所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系移动所述识别码或输出移动指示。Step 302: If the identification result is the relative position relationship between the camera and the code scanner, move the identification code or output a movement instruction according to the relative position relationship.
本实施例中,通过移动所述识别码,能够实现识别码与扫码器扫描区域之间的快速对准。其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端,即所述输出移动指示,可以是指示用户对识别码进行移动,也可以是指示用户对移动终端进行移动,通过指示用户对所述识别码或是所述移动终端进行移动,辅助用户实现所述识别码与扫码器的扫描区域之间的快速对准。其中,移动指示通过移动终端的显示屏输出或者通过移动终端的音频输出。In this embodiment, by moving the identification code, rapid alignment between the identification code and the scanning area of the code scanner can be achieved. Wherein, the movement instruction is used to instruct to move the position of the identification code in the display screen or to move the mobile terminal, that is, the output movement instruction may be instructing the user to move the identification code, or it may be an instruction The user moves the mobile terminal, and by instructing the user to move the identification code or the mobile terminal, the user is assisted to achieve rapid alignment between the identification code and the scanning area of the code scanner. Wherein, the movement instruction is output through the display screen of the mobile terminal or through the audio output of the mobile terminal.
需要说明的是,移动所述识别码可以包括对识别码的位置进行移动,还包括对识别码进行放大而致使所述识别码所在位置发生变化。It should be noted that moving the identification code may include moving the location of the identification code, and also includes enlarging the identification code to cause the location of the identification code to change.
可选地,上述步骤302中,也即所述根据所述相对位置关系移动所述识别码,可以包括:Optionally, in the above step 302, that is, the moving the identification code according to the relative position relationship may include:
基于所述相对位置关系,确定所述显示屏上与所述扫码器的扫描区域对应的对准区域;Determining an alignment area on the display screen corresponding to the scanning area of the code scanner based on the relative position relationship;
将所述识别码移动至所述对准区域。Move the identification code to the alignment area.
本实施例中,由于移动终端摄像头与移动终端的显示屏相对位置关系是确定的,在知晓所述摄像头与所述扫码器的相对位置关系的情况下,可以明确扫码器与显示屏之间的相对位置,进而可以确定所述显示屏上与所述扫码器的扫描区域对应的对准区域。In this embodiment, since the relative positional relationship between the camera of the mobile terminal and the display screen of the mobile terminal is determined, when the relative positional relationship between the camera and the barcode scanner is known, the relationship between the barcode scanner and the display screen can be clarified. The relative position between the two can then determine the alignment area on the display screen corresponding to the scanning area of the code scanner.
例如,如图7a所示,基于所述相对位置关系,确定所述显示屏上与所述扫码器的扫描区域对应的对准区域G;如图7b所示,所述识别码移动至所述对准区域G。For example, as shown in FIG. 7a, based on the relative position relationship, the alignment area G corresponding to the scanning area of the code scanner is determined on the display screen; as shown in FIG. 7b, the identification code moves to the The alignment area G.
本实施例基于所述相对位置关系识别对准区域,并将识别码移动至对准区域,能够快速实现扫码对准,无需用户反复调整移动终端位置,避免用户进行多次扫码对准尝试,提高扫码效率。In this embodiment, the alignment area is identified based on the relative position relationship, and the identification code is moved to the alignment area, which can quickly realize the scan code alignment, without the user repeatedly adjusting the position of the mobile terminal, and avoiding the user from multiple scan code alignment attempts , Improve scanning efficiency.
可选地,所述显示屏包括第一显示屏和第二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应;Optionally, the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and both the first display screen and the second display screen display The identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen;
上述步骤302中,也即所述根据所述相对位置关系移动所述识别码,可以包括:In the above step 302, that is, the moving the identification code according to the relative position relationship may include:
基于所述相对位置关系,确定所述第一显示屏上与所述扫码器的扫描区域对应的对准区域;Based on the relative position relationship, determining an alignment area on the first display screen corresponding to the scanning area of the code scanner;
在所述第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识;Displaying an alignment area identifier on the display area corresponding to the alignment area on the second display screen;
接收针对所述第二显示屏上显示的识别码的移动操作;Receiving a movement operation for the identification code displayed on the second display screen;
响应于所述移动操作,移动所述第二显示屏上显示的识别码,其中,所述第一显示屏上显示的识别码跟随所述第二显示屏上显示的识别码移动。In response to the moving operation, the identification code displayed on the second display screen is moved, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
本实施例中,所述对应的显示区域可以理解为第二显示屏上与第一显示屏上的对准区域的镜像位置区域;需要说明的是,关于镜像位置的解释可以参考上一实施例,在此不再赘述。In this embodiment, the corresponding display area can be understood as the mirror position area of the alignment area on the second display screen and the first display screen; it should be noted that the explanation of the mirror position can refer to the previous embodiment , I won’t repeat it here.
实际应用中,通过在第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识,从而用户可以参考第二显示屏上所显示的对准区域标识, 移动所述第二显示屏上显示的识别码,直至第二显示屏上显示的识别码移动至对准区域标识所在区域。其中,在移动第二显示屏上显示的识别码的过程中,第一显示屏显示的识别码可以跟随所述第二显示屏上显示的识别码移动,以保持第一显示屏上的识别码始终与第二显示屏上的识别码位置对应,例如,保持第一显示屏上的识别码始终与第二显示屏上的识别码处于镜像位置。In practical applications, by displaying the alignment area mark on the display area corresponding to the alignment area on the second display screen, the user can refer to the alignment area mark displayed on the second display screen and move the second display area. The identification code displayed on the display screen until the identification code displayed on the second display screen moves to the area where the alignment area mark is located. Wherein, in the process of moving the identification code displayed on the second display screen, the identification code displayed on the first display screen can move with the identification code displayed on the second display screen to maintain the identification code on the first display screen. Always correspond to the position of the identification code on the second display screen, for example, keep the identification code on the first display screen in a mirror position with the identification code on the second display screen.
本实施例通过在所述第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识,方便用户直观查看对准区域,从而可以有针对性地进行识别码的移动操作,能够避免用户进行多次无效的扫码对准尝试,实现快速对准,提高扫码效率。In this embodiment, by displaying the alignment area identifier on the display area corresponding to the alignment area on the second display screen, it is convenient for the user to visually view the alignment area, so that the identification code can be moved in a targeted manner. It can avoid the user from making multiple invalid scan code alignment attempts, realize fast alignment, and improve code scan efficiency.
可选地,所述显示屏包括第一显示屏和第二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应;其中,第一显示屏朝向扫码器,第二显示屏背对扫码器;Optionally, the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and both the first display screen and the second display screen display The identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen; wherein the first display screen faces the code scanner, The second display screen faces the code scanner;
上述步骤302,也即在识别结果为所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系输出移动指示可以包括:The foregoing step 302, that is, in the case where the recognition result is the relative position relationship between the camera and the code scanner, outputting a movement instruction according to the relative position relationship may include:
根据所述相对位置关系在第二显示屏上显示所述移动指示。The movement instruction is displayed on the second display screen according to the relative position relationship.
本实施例中,所述移动指示可以用于指示用户对识别码进行移动,也可以用于指示用户对移动终端进行移动。例如,上述移动指示可以是指示移动方向的箭头,从而用户可以基于该箭头所指示的移动方向,移动移动终端或是移动识别码的方向。In this embodiment, the movement instruction can be used to instruct the user to move the identification code, or to instruct the user to move the mobile terminal. For example, the aforementioned movement instruction may be an arrow indicating a movement direction, so that the user can move the mobile terminal or the direction of the mobile identification code based on the movement direction indicated by the arrow.
实际应用中,在第一显示屏朝向扫码器的情况下,第二显示屏通常是朝向用户,这样,在第二显示屏上显示所述移动指示,方便用户查看,进而基于移动指示移动移动终端或是移动识别码,方便实现识别码与扫码器扫描区域之间的快速对准。In practical applications, when the first display screen faces the code scanner, the second display screen usually faces the user. In this way, the movement instructions are displayed on the second display screen to facilitate the user to view, and then move based on the movement instructions. The terminal or mobile identification code facilitates quick alignment between the identification code and the scanning area of the code scanner.
需要说明的是,在用户移动第二显示屏上的识别码的过程中,第一显示屏上的识别码跟随第二显示屏上的识别码同步移动,以保持第一显示屏上的识别码始终与第二显示屏上的识别码位置对应。It should be noted that when the user moves the identification code on the second display screen, the identification code on the first display screen moves synchronously with the identification code on the second display screen to maintain the identification code on the first display screen. Always correspond to the identification code position on the second display screen.
可选地,本实施例还可以将所述相对位置关系实时动态显示在第二显示 屏上,方便用户直观感受识别码与扫码器之间的相对位置关系,其中所述实时动态显示所述相对位置关系可以是以二维或者三维图像的形式进行显示。Optionally, this embodiment can also dynamically display the relative position relationship in real time on the second display screen, so that the user can intuitively feel the relative position relationship between the identification code and the code scanner, wherein the real-time dynamic display The relative position relationship can be displayed in the form of a two-dimensional or three-dimensional image.
可选地,所述相对位置关系包括所述摄像头与所述扫码器之间的距离;Optionally, the relative position relationship includes the distance between the camera and the code scanner;
上述步骤302,也即所述根据所述相对位置关系移动所述识别码,可以包括:The above step 302, that is, moving the identification code according to the relative position relationship, may include:
在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码。If the distance between the camera and the code scanner is greater than a preset threshold, the identification code is enlarged.
本实施例中,上述预设阈值可以根据实际需求进行合理设置,例如,40cm、30cm等。上述摄像头与扫码器之间的距离,例如,可以通过距离传感器检测得到,也可以通过TOF技术检测得到,本实施例对此不做限定。In this embodiment, the aforementioned preset threshold can be set reasonably according to actual needs, for example, 40 cm, 30 cm, etc. The above-mentioned distance between the camera and the code scanner, for example, can be detected by a distance sensor, or can be detected by TOF technology, which is not limited in this embodiment.
实际应用中,可以在摄像头距离所述扫码器较远的情况下,也即移动终端上的识别码与扫码器之间的距离较远,放大识别码,便于被扫码器扫描识别,从而提高扫码的效率。In practical applications, when the camera is far away from the code scanner, that is, the distance between the identification code on the mobile terminal and the code scanner is relatively long, the identification code can be enlarged to facilitate scanning and recognition by the code scanner. Thereby improving the efficiency of scanning codes.
可选地,在放大所述识别码之前,所述方法还可以包括:识别所述识别码所在区域,基于所述识别码所在区域对识别码进行放大操作。这样可以增大识别码可缩放的尺度。Optionally, before amplifying the identification code, the method may further include: identifying an area where the identification code is located, and performing an amplifying operation on the identification code based on the area where the identification code is located. This can increase the scale of the identification code.
可选地,所述显示屏为可折叠显示屏;Optionally, the display screen is a foldable display screen;
所述在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码,可以包括:In the case where the distance between the camera and the code scanner is greater than a preset threshold, amplifying the identification code may include:
在所述摄像头与所述扫码器之间的距离大于预设阈值,且所述可折叠显示屏处于折叠状态的情况下,输出展开指示;Outputting an expansion instruction when the distance between the camera and the code scanner is greater than a preset threshold and the foldable display screen is in a folded state;
在接收到展开操作的情况下,放大所述识别码,并将所述放大后的识别码显示至展开后的所述可折叠显示屏。When the unfolding operation is received, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding.
本实施例中,在可折叠显示屏处于折叠状态的情况下,上述识别码可以显示在可折叠显示屏折叠得到的至少两个显示屏中的至少一个显示屏上。In this embodiment, when the foldable display screen is in a folded state, the aforementioned identification code may be displayed on at least one of the at least two display screens obtained by folding the foldable display screen.
其中,所述展开指示为指示用户将处于折叠状态的折叠显示屏展开,例如可以是以语音形式输出“请展开显示屏”,或者在显示屏上显示文字“请展开显示屏”或显示折叠屏展开动画,以提示用户进行显示屏展开。Wherein, the unfolding instruction is to instruct the user to unfold the folding display screen in the folded state, for example, it may output "please unfold the display screen" in the form of voice, or display the text "please unfold the display screen" on the display screen or display the folding screen Expand the animation to prompt the user to expand the display.
例如,可折叠显示屏包括第一显示屏C和第二显示屏D,如附图8a所 示,在可折叠显示屏处于折叠状态的情况下,识别码显示在第一显示屏C,如附图8b所示,在接收到展开操作的情况下,放大所述识别码,并将所述放大后的识别码显示至展开后的所述可折叠显示屏,也即通过第一显示屏C和第二显示屏D共同显示所述放大后的识别码。For example, the foldable display screen includes a first display screen C and a second display screen D. As shown in FIG. 8a, when the foldable display screen is in a folded state, the identification code is displayed on the first display screen C, as shown in the appendix As shown in Figure 8b, in the case of receiving the unfolding operation, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding, that is, through the first display screen C and The second display screen D collectively displays the enlarged identification code.
实际应用中,当时扫码器与识别码距离较远时,例如,停车场出场使用情景下,驾驶员手持的移动终端与停车场扫码器距离较远且不方便靠近时,移动终端输出展开指示,驾驶员可以基于展开指示展开可折叠显示屏,使得识别码放大显示在展开后的可折叠显示屏上,方便处于车辆侧的移动终端的识别码与停车场的扫码器对准。In practical applications, when the code scanner is far away from the identification code, for example, when the driver’s handheld mobile terminal is far away from the code scanner in the parking lot and is inconvenient to approach, the output of the mobile terminal is expanded Instruct, the driver can expand the foldable display screen based on the unfolding instruction, so that the identification code is enlarged and displayed on the unfolded foldable display screen, which facilitates the alignment of the identification code of the mobile terminal on the vehicle side with the code scanner in the parking lot.
可选地,本实施例还可以将所述相对位置关系上传至服务器。从而可以通过服务器将所述相对位置关系发送至扫码器,使得扫码器能够基于该相对位置关系调节自身位置,实现扫码器与移动终端的显示屏上的识别码的对准。Optionally, this embodiment may also upload the relative position relationship to the server. Therefore, the relative position relationship can be sent to the code scanner through the server, so that the code scanner can adjust its own position based on the relative position relationship, so as to realize the alignment of the code scanner and the identification code on the display screen of the mobile terminal.
本公开实施例的扫码方法,在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器,在所述识别结果包括所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系移动所述识别码或输出所述移动指示,能够实现识别码与扫码器扫描区域之间的快速对准,或者辅助用户实现识别码与扫码器扫描区域之间的快速对准,提高扫码效率。In the code scanning method of the embodiment of the present disclosure, when the display screen of the mobile terminal displays the identification code, the external code scanner is recognized through a camera, and the recognition result includes the relative position of the camera and the code scanner In the case of a relationship, moving the identification code or outputting the movement instruction according to the relative position relationship can achieve rapid alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the identification code and the code scanner Fast alignment between scanning areas improves scanning efficiency.
参见图9,图9是本公开实施例提供的移动终端的结构图。如图9所示,移动终端400包括:Refer to FIG. 9, which is a structural diagram of a mobile terminal provided by an embodiment of the present disclosure. As shown in FIG. 9, the mobile terminal 400 includes:
识别模块401,用于在移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;The identification module 401 is used to identify the external code scanner through the camera when the identification code is displayed on the display screen of the mobile terminal;
控制模块402,用于基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。The control module 402 is configured to move the identification code or output a movement instruction based on the identification result, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
可选地,所述控制模块402,包括:Optionally, the control module 402 includes:
第一控制单元,用于在所述识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域;其中,所述目标区域位于所述移动终端的显示屏的第一预设区域;所述第一预设区域的至少一个顶点与所述移动终端的显示屏的顶点重合。The first control unit is configured to move the identification code to the target area of the display screen of the mobile terminal when the recognition result indicates that there is an external code scanner; wherein, the target area is located in the mobile terminal The first preset area of the display screen; at least one vertex of the first preset area coincides with the vertex of the display screen of the mobile terminal.
可选地,所述移动终端400还包括:Optionally, the mobile terminal 400 further includes:
获取模块,用于在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器之后,以及所述基于识别结果,移动所述识别码之前,获取用户在所述移动终端的显示屏上的触控区域;其中,上述的第一预设区域为根据所述触控区域从至少两个预设区域中确定的预设区域。The obtaining module is used to obtain the user’s presence in the mobile terminal after the external code scanner is recognized through the camera and before the recognition code is moved based on the recognition result when the identification code is displayed on the display screen of the mobile terminal. The touch area on the display screen; wherein the above-mentioned first preset area is a preset area determined from at least two preset areas according to the touch area.
所述控制模块,包括:The control module includes:
第二控制单元,用于在所述识别结果包括所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系移动所述识别码或输出所述移动指示。The second control unit is configured to move the identification code or output the movement instruction according to the relative position relationship when the recognition result includes the relative position relationship between the camera and the code scanner.
所述第二控制单元,具体用于:The second control unit is specifically configured to:
基于所述相对位置关系,确定所述显示屏上与所述扫码器的扫描区域对应的对准区域;将所述识别码移动至所述对准区域。Based on the relative position relationship, determine an alignment area on the display screen corresponding to the scanning area of the code scanner; move the identification code to the alignment area.
可选地,所述显示屏包括第一显示屏和第二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应;其中,第一显示屏相对靠近扫码器侧,第二显示屏相对远离扫码器侧;Optionally, the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and both the first display screen and the second display screen display The identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen; wherein the first display screen is relatively close to the code scanner Side, the second display screen is relatively far away from the scanner side;
所述第二控制单元具体用于:基于所述相对位置关系,确定所述第一显示屏上与所述扫码器的扫描区域对应的对准区域;在所述第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识;接收针对所述第二显示屏上显示的识别码的移动操作;响应于所述移动操作,移动所述第二显示屏上显示的识别码,其中,所述第一显示屏上显示的识别码跟随所述第二显示屏上显示的识别码移动。The second control unit is specifically configured to: based on the relative position relationship, determine the alignment area on the first display screen corresponding to the scanning area of the code scanner; The alignment area identifier is displayed on the display area corresponding to the alignment area; the movement operation for the identification code displayed on the second display screen is received; in response to the movement operation, the identification displayed on the second display screen is moved Code, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
可选地,在所述相对位置关系包括所述摄像头与所述扫码器之间的距离的情况下;所述第二控制单元具体用于:在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码。Optionally, in the case where the relative position relationship includes the distance between the camera and the code scanner; the second control unit is specifically configured to: between the camera and the code scanner If the distance of is greater than the preset threshold, the identification code is enlarged.
可选地,所述显示屏为可折叠显示屏;所述第二控制单元具体用于:在所述摄像头与所述扫码器之间的距离大于预设阈值,且所述可折叠显示屏处于折叠状态的情况下,输出展开指示;在接收到展开操作的情况下,放大所 述识别码,并将所述放大后的识别码显示至展开后的所述可折叠显示屏。Optionally, the display screen is a foldable display screen; the second control unit is specifically configured to: the distance between the camera and the code scanner is greater than a preset threshold, and the foldable display screen In the case of being in the folded state, an expansion instruction is output; in the case of receiving an expansion operation, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after expansion.
本公开实施例提供的移动终端400能够实现图1图8方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 provided in the embodiment of the present disclosure can implement each process implemented by the mobile terminal in the method embodiment of FIG. 1 to FIG. 8. In order to avoid repetition, details are not described herein again.
本公开实施例的移动终端400,包括:识别模块,用于在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;控制模块,用于基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。能够实现识别码与扫码器扫描区域之间的快速对准,或者辅助用户实现识别码与扫码器扫描区域之间的快速对准,避免用户在扫码过程中反复尝试,提高扫码效率。The mobile terminal 400 of the embodiment of the present disclosure includes: an identification module, which is used to identify an external code scanner through a camera when the display screen of the mobile terminal displays an identification code; a control module, which is used to move the station based on the identification result The identification code or output movement instruction, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal. It can realize the quick alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the quick alignment between the identification code and the scanning area of the code scanner, avoiding repeated attempts by the user in the scanning process, and improving the scanning efficiency .
图10为实现本公开各个实施例的一种移动终端的硬件结构示意图。参见图10,该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图10中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 10 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present disclosure. 10, the mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processing 510, power supply 511 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 10 does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present disclosure, mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器510,用于在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。Wherein, the processor 510 is configured to identify an external code scanner through a camera when the identification code is displayed on the display screen of the mobile terminal; based on the identification result, move the identification code or output a movement instruction, wherein the movement The indication is used to indicate to move the position of the identification code in the display screen or to move the mobile terminal.
本公开实施例通过摄像头识别外部扫码器,并基于识别结果,移动所述识别码或输出移动指示,能够实现识别码与扫码器扫描区域之间的快速对准,或者辅助用户实现识别码与扫码器扫描区域之间的快速对准,避免用户在扫码过程中反复尝试,提高扫码效率。The embodiment of the present disclosure recognizes an external code scanner through a camera, and based on the recognition result, moves the identification code or outputs a movement instruction, which can achieve rapid alignment between the identification code and the scanning area of the code scanner, or assist the user to realize the identification code The quick alignment with the scanning area of the code scanner avoids repeated attempts by the user during the scanning process and improves the scanning efficiency.
可选地,所述处理器510还用于:Optionally, the processor 510 is further configured to:
在所述识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域;其中,所述目标区域位于所述移动终端的显 示屏的第一预设区域;所述第一预设区域的至少一个顶点与所述移动终端的显示屏的顶点重合。In the case where the identification result indicates that there is an external code scanner, move the identification code to the target area of the display screen of the mobile terminal; wherein, the target area is located in the first preset area of the display screen of the mobile terminal. Set area; at least one vertex of the first preset area coincides with the vertex of the display screen of the mobile terminal.
可选地,所述处理器510还用于:Optionally, the processor 510 is further configured to:
所述基于识别结果,在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器之后,以及移动所述识别码之前,获取用户在所述移动终端的显示屏上的触控区域;According to the recognition result, in the case that the display screen of the mobile terminal displays the identification code, after the external code scanner is recognized through the camera, and before the identification code is moved, obtain the user's information on the display screen of the mobile terminal Touch area
其中,上述的第一预设区域为根据所述触控区域从至少两个预设区域中确定的预设区域。Wherein, the aforementioned first preset area is a preset area determined from at least two preset areas according to the touch area.
可选地,所述处理器510还用于:Optionally, the processor 510 is further configured to:
在所述识别结果为所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系移动所述识别码或输出所述移动指示。In a case where the recognition result is the relative position relationship between the camera and the code scanner, the identification code is moved or the movement instruction is output according to the relative position relationship.
可选地,所述处理器510还用于:Optionally, the processor 510 is further configured to:
基于所述相对位置关系,确定所述显示屏上与所述扫码器的扫描区域对应的对准区域;将所述识别码移动至所述对准区域。Based on the relative position relationship, determine an alignment area on the display screen corresponding to the scanning area of the code scanner; move the identification code to the alignment area.
所述显示屏包括第一显示屏和第二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应;可选地,所述处理器510还用于:基于所述相对位置关系,确定所述第一显示屏上与所述扫码器的扫描区域对应的对准区域;The display screen includes a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and the identification code is displayed on both the first display screen and the second display screen , And the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen; optionally, the processor 510 is further configured to: The relative position relationship determines the alignment area on the first display screen corresponding to the scanning area of the code scanner;
在所述第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识;Displaying an alignment area identifier on the display area corresponding to the alignment area on the second display screen;
接收针对所述第二显示屏上显示的识别码的移动操作;Receiving a movement operation for the identification code displayed on the second display screen;
响应于所述移动操作,移动所述第二显示屏上显示的识别码,其中,所述第一显示屏上显示的识别码跟随所述第二显示屏上显示的识别码移动。In response to the moving operation, the identification code displayed on the second display screen is moved, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
所述相对位置关系包括所述摄像头与所述扫码器之间的距离,可选地,所述处理器510还用于:在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码。The relative positional relationship includes the distance between the camera and the code scanner. Optionally, the processor 510 is further configured to: the distance between the camera and the code scanner is greater than a preset In the case of a threshold value, the identification code is enlarged.
可选地,所述处理器510还用于:Optionally, the processor 510 is further configured to:
在所述摄像头与所述扫码器之间的距离大于预设阈值,且所述可折叠显 示屏处于折叠状态的情况下,输出展开指示;Outputting an expansion instruction when the distance between the camera and the code scanner is greater than a preset threshold and the foldable display screen is in a folded state;
在接收到展开操作的情况下,放大所述识别码,并将所述放大后的识别码显示至展开后的所述可折叠显示屏。When the unfolding operation is received, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding.
应理解的是,本公开实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 510; Uplink data is sent to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed. The processed image frame may be displayed on the display unit 506. The image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大 小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light. The proximity sensor can close the display panel 5061 and the display panel 5061 when the mobile terminal 500 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图10中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event. The type of event provides corresponding visual output on the display panel 5061. Although in FIG. 10, the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device with the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 500 or can be used to connect to the mobile terminal 500 and external Transfer data between devices.
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;可选地,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
移动终端500还可以包括给各个部件供电的电源511(比如电池),可选地,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 500 may also include a power source 511 (such as a battery) for supplying power to various components. Optionally, the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,移动终端500包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 500 includes some functional modules not shown, which will not be repeated here.
可选地,本公开实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的程序,该程序被处理器510执行时实现上述在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动 所述移动终端的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a mobile terminal, including a processor 510, a memory 509, a program stored in the memory 509 and running on the processor 510, and the program is executed when the processor 510 is executed. As described above, when the identification code is displayed on the display screen of the mobile terminal, the external code scanner is identified through the camera; based on the identification result, the identification code is moved or a movement instruction is output, wherein the movement instruction is used to instruct to move the The position of the identification code in the display screen or the various processes of moving the mobile terminal can achieve the same technical effect. To avoid repetition, details are not described here.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有程序,该程序被处理器执行时实现上述在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present disclosure also provides a computer-readable storage medium, and a program is stored on the computer-readable storage medium. When the program is executed by the processor, the above-mentioned identification code is displayed on the display screen of the mobile terminal through a camera. Identify the external code scanner; based on the identification result, move the identification code or output a movement instruction, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move each of the mobile terminal Process, and can achieve the same technical effect, in order to avoid repetition, I will not repeat it here. Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present disclosure, many forms can be made without departing from the purpose of the present disclosure and the scope of protection of the claims, all of which fall within the protection of the present disclosure.

Claims (18)

  1. 一种扫码方法,应用于移动终端,其中,所述方法包括:A code scanning method applied to a mobile terminal, wherein the method includes:
    在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;When the identification code is displayed on the display screen of the mobile terminal, the external code scanner is identified through the camera;
    基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。Based on the recognition result, move the identification code or output a movement instruction, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
  2. 根据权利要求1所述的方法,其中,所述基于识别结果,移动所述识别码,包括:The method according to claim 1, wherein the moving the identification code based on the identification result comprises:
    在所述识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域;If the identification result indicates that there is an external code scanner, move the identification code to the target area of the display screen of the mobile terminal;
    其中,所述目标区域位于所述移动终端的显示屏的第一预设区域;所述第一预设区域的至少一个顶点与所述移动终端的显示屏的顶点重合。Wherein, the target area is located in a first preset area of the display screen of the mobile terminal; at least one vertex of the first preset area coincides with a vertex of the display screen of the mobile terminal.
  3. 根据权利要求2所述的方法,其中,在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器之后,以及所述基于识别结果,移动所述识别码之前,所述方法还包括:The method according to claim 2, wherein, when the identification code is displayed on the display screen of the mobile terminal, after the external code scanner is identified through the camera, and before the identification code is moved based on the identification result, The method also includes:
    获取用户在所述移动终端的显示屏上的触控区域;Acquiring the touch area of the user on the display screen of the mobile terminal;
    其中,所述第一预设区域为根据所述触控区域从至少两个预设区域中确定的预设区域。Wherein, the first preset area is a preset area determined from at least two preset areas according to the touch area.
  4. 根据权利要求1所述的方法,其中,所述基于识别结果,移动所述识别码或输出移动指示,包括:The method according to claim 1, wherein the moving the identification code or outputting a movement indication based on the identification result comprises:
    在所述识别结果为所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系移动所述识别码或输出所述移动指示。In a case where the recognition result is the relative position relationship between the camera and the code scanner, the identification code is moved or the movement instruction is output according to the relative position relationship.
  5. 根据权利要求4所述的方法,其中,所述根据所述相对位置关系移动所述识别码,包括:The method according to claim 4, wherein said moving said identification code according to said relative position relationship comprises:
    基于所述相对位置关系,确定所述显示屏上与所述扫码器的扫描区域对应的对准区域;Determining an alignment area on the display screen corresponding to the scanning area of the code scanner based on the relative position relationship;
    将所述识别码移动至所述对准区域。Move the identification code to the alignment area.
  6. 根据权利要求4所述的方法,其中,所述显示屏包括第一显示屏和第 二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应;The method according to claim 4, wherein the display screen comprises a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and the first display screen and the second display screen The identification code is displayed on the second display screen, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen;
    所述根据所述相对位置关系移动所述识别码,包括:The moving the identification code according to the relative position relationship includes:
    基于所述相对位置关系,确定所述第一显示屏上与所述扫码器的扫描区域对应的对准区域;Based on the relative position relationship, determining an alignment area on the first display screen corresponding to the scanning area of the code scanner;
    在所述第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识;Displaying an alignment area identifier on the display area corresponding to the alignment area on the second display screen;
    接收针对所述第二显示屏上显示的识别码的移动操作;Receiving a movement operation for the identification code displayed on the second display screen;
    响应于所述移动操作,移动所述第二显示屏上显示的识别码,其中,所述第一显示屏上显示的识别码跟随所述第二显示屏上显示的识别码移动。In response to the moving operation, the identification code displayed on the second display screen is moved, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
  7. 根据权利要求4所述的方法,其中,所述相对位置关系包括所述摄像头与所述扫码器之间的距离;The method according to claim 4, wherein the relative position relationship includes the distance between the camera and the code scanner;
    所述根据所述相对位置关系移动所述识别码,包括:The moving the identification code according to the relative position relationship includes:
    在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码。If the distance between the camera and the code scanner is greater than a preset threshold, the identification code is enlarged.
  8. 根据权利要求7所述的方法,其中,所述显示屏为可折叠显示屏;The method according to claim 7, wherein the display screen is a foldable display screen;
    所述在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码,包括:The amplifying the identification code when the distance between the camera and the code scanner is greater than a preset threshold includes:
    在所述摄像头与所述扫码器之间的距离大于预设阈值,且所述可折叠显示屏处于折叠状态的情况下,输出展开指示;Outputting an expansion instruction when the distance between the camera and the code scanner is greater than a preset threshold and the foldable display screen is in a folded state;
    在接收到展开操作的情况下,放大所述识别码,并将所述放大后的识别码显示至展开后的所述可折叠显示屏。When the unfolding operation is received, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding.
  9. 一种移动终端,包括:A mobile terminal, including:
    识别模块,用于在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器;The identification module is used to identify the external code scanner through the camera when the identification code is displayed on the display screen of the mobile terminal;
    控制模块,用于基于识别结果,移动所述识别码或输出移动指示,其中,所述移动指示用于指示移动所述识别码在所述显示屏中的位置或移动所述移动终端。The control module is configured to move the identification code or output a movement instruction based on the identification result, wherein the movement instruction is used to instruct to move the position of the identification code in the display screen or move the mobile terminal.
  10. 根据权利要求9所述的移动终端,其中,所述控制模块,包括:The mobile terminal according to claim 9, wherein the control module comprises:
    第一控制单元,用于在所述识别结果指示存在外部扫码器的情况下,移动所述识别码至所述移动终端的显示屏的目标区域;The first control unit is configured to move the identification code to the target area of the display screen of the mobile terminal when the identification result indicates that there is an external code scanner;
    其中,所述目标区域位于所述移动终端的显示屏的第一预设区域;所述第一预设区域的至少一个顶点与所述移动终端的显示屏的顶点重合。Wherein, the target area is located in a first preset area of the display screen of the mobile terminal; at least one vertex of the first preset area coincides with a vertex of the display screen of the mobile terminal.
  11. 根据权利要求10所述的移动终端,还包括:The mobile terminal according to claim 10, further comprising:
    获取模块,用于在所述移动终端的显示屏显示识别码的情况下,通过摄像头识别外部扫码器之后,以及所述基于识别结果,移动所述识别码之前,获取用户在所述移动终端的显示屏上的触控区域;The obtaining module is used to obtain the user’s presence in the mobile terminal after the external code scanner is recognized through the camera and before the recognition code is moved based on the recognition result when the identification code is displayed on the display screen of the mobile terminal. Touch area on the display screen;
    其中,所述第一预设区域为根据所述触控区域从至少两个预设区域中确定的预设区域。Wherein, the first preset area is a preset area determined from at least two preset areas according to the touch area.
  12. 根据权利要求9所述的移动终端,其中,所述控制模块,包括:The mobile terminal according to claim 9, wherein the control module comprises:
    第二控制单元,用于在所述识别结果包括所述摄像头与所述扫码器的相对位置关系的情况下,根据所述相对位置关系移动所述识别码或输出所述移动指示。The second control unit is configured to move the identification code or output the movement instruction according to the relative position relationship when the recognition result includes the relative position relationship between the camera and the code scanner.
  13. 根据权利要求12所述的移动终端,其中,所述第二控制单元具体用于:The mobile terminal according to claim 12, wherein the second control unit is specifically configured to:
    基于所述相对位置关系,确定所述显示屏上与所述扫码器的扫描区域对应的对准区域;Determining an alignment area on the display screen corresponding to the scanning area of the code scanner based on the relative position relationship;
    将所述识别码移动至所述对准区域。Move the identification code to the alignment area.
  14. 根据权利要求12所述的移动终端,其中,所述显示屏包括第一显示屏和第二显示屏,所述第一显示屏和第二显示屏处于相背的状态,所述第一显示屏和第二显示屏上均显示所述识别码,且所述识别码在所述第一显示屏上的显示位置与所述识别码在所述第二显示屏上的显示位置对应;The mobile terminal according to claim 12, wherein the display screen comprises a first display screen and a second display screen, the first display screen and the second display screen are in a state of being opposite to each other, and the first display screen And the second display screen both display the identification code, and the display position of the identification code on the first display screen corresponds to the display position of the identification code on the second display screen;
    所述第二控制单元具体用于:The second control unit is specifically configured to:
    基于所述相对位置关系,确定所述第一显示屏上与所述扫码器的扫描区域对应的对准区域;Based on the relative position relationship, determining an alignment area on the first display screen corresponding to the scanning area of the code scanner;
    在所述第二显示屏上与所述对准区域对应的显示区域上显示对准区域标识;Displaying an alignment area identifier on the display area corresponding to the alignment area on the second display screen;
    接收针对所述第二显示屏上显示的识别码的移动操作;Receiving a movement operation for the identification code displayed on the second display screen;
    响应于所述移动操作,移动所述第二显示屏上显示的识别码,其中,所述第一显示屏上显示的识别码跟随所述第二显示屏上显示的识别码移动。In response to the moving operation, the identification code displayed on the second display screen is moved, wherein the identification code displayed on the first display screen moves following the identification code displayed on the second display screen.
  15. 根据权利要求12所述的移动终端,其中,所述相对位置关系包括所述摄像头与所述扫码器之间的距离;The mobile terminal according to claim 12, wherein the relative position relationship includes the distance between the camera and the code scanner;
    所述第二控制单元具体用于:The second control unit is specifically configured to:
    在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码。If the distance between the camera and the code scanner is greater than a preset threshold, the identification code is enlarged.
  16. 根据权利要求15所述的移动终端,其中,所述显示屏为可折叠显示屏;The mobile terminal according to claim 15, wherein the display screen is a foldable display screen;
    所述第二控制单元在所述摄像头与所述扫码器之间的距离大于预设阈值的情况下,放大所述识别码,包括:The second control unit amplifies the identification code when the distance between the camera and the code scanner is greater than a preset threshold, including:
    在所述摄像头与所述扫码器之间的距离大于预设阈值,且所述可折叠显示屏处于折叠状态的情况下,输出展开指示;Outputting an expansion instruction when the distance between the camera and the code scanner is greater than a preset threshold and the foldable display screen is in a folded state;
    在接收到展开操作的情况下,放大所述识别码,并将所述放大后的识别码显示至展开后的所述可折叠显示屏。When the unfolding operation is received, the identification code is enlarged, and the enlarged identification code is displayed on the foldable display screen after unfolding.
  17. 一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,其中,所述程序被所述处理器执行时实现如权利要求1至8中任一项所述的扫码方法的步骤。A mobile terminal, comprising a processor, a memory, and a program stored on the memory and capable of running on the processor, wherein the program is executed by the processor as in any of claims 1 to 8. One of the steps of the scanning method.
  18. 一种计算机可读存储介质,所述计算机可读存储介质上存储有程序,其中,所述程序被处理器执行时实现如权利要求1至8中任一项所述的扫码方法的步骤。A computer-readable storage medium having a program stored on the computer-readable storage medium, wherein the program is executed by a processor to implement the steps of the code scanning method according to any one of claims 1 to 8.
PCT/CN2020/084912 2019-04-28 2020-04-15 Code scanning method and mobile terminal WO2020221009A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910349784.1A CN110110571B (en) 2019-04-28 2019-04-28 Code scanning method and mobile terminal
CN201910349784.1 2019-04-28

Publications (1)

Publication Number Publication Date
WO2020221009A1 true WO2020221009A1 (en) 2020-11-05

Family

ID=67487203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/084912 WO2020221009A1 (en) 2019-04-28 2020-04-15 Code scanning method and mobile terminal

Country Status (2)

Country Link
CN (1) CN110110571B (en)
WO (1) WO2020221009A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110571B (en) * 2019-04-28 2023-03-14 维沃移动通信有限公司 Code scanning method and mobile terminal
CN111640239B (en) * 2020-06-08 2021-12-07 台州玖屹科技有限公司 Public transit device of punching a yard for electronic commerce data encryption based on silicon controlled rectifier principle
CN111813304A (en) * 2020-06-12 2020-10-23 维沃移动通信有限公司 Image display method and device
CN112134980A (en) * 2020-09-24 2020-12-25 维沃移动通信有限公司 Identification code display method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850835A (en) * 2015-05-13 2015-08-19 杭州朗和科技有限公司 Scanning method and scanning terminal
CN108763998A (en) * 2018-04-17 2018-11-06 维沃移动通信有限公司 Barcode recognition method and terminal device
CN109033913A (en) * 2018-07-25 2018-12-18 维沃移动通信有限公司 A kind of recognition methods of identification code and mobile terminal
CN109151180A (en) * 2018-07-27 2019-01-04 维沃移动通信有限公司 A kind of object identifying method and mobile terminal
CN109521981A (en) * 2018-10-31 2019-03-26 维沃移动通信有限公司 A kind of graphic code display methods and terminal
CN110110571A (en) * 2019-04-28 2019-08-09 维沃移动通信有限公司 A kind of barcode scanning method and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138942B (en) * 2015-08-26 2018-12-18 小米科技有限责任公司 The display methods and device of two dimensional code
CN108628568A (en) * 2018-05-14 2018-10-09 维沃移动通信有限公司 A kind of display methods of information, device and terminal device
CN109214810A (en) * 2018-07-25 2019-01-15 努比亚技术有限公司 A kind of two-dimensional code display method, mobile terminal and computer readable storage medium
CN109145676A (en) * 2018-07-27 2019-01-04 华勤通讯技术有限公司 The recognition methods of subway gate barcode scanning and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850835A (en) * 2015-05-13 2015-08-19 杭州朗和科技有限公司 Scanning method and scanning terminal
CN108763998A (en) * 2018-04-17 2018-11-06 维沃移动通信有限公司 Barcode recognition method and terminal device
CN109033913A (en) * 2018-07-25 2018-12-18 维沃移动通信有限公司 A kind of recognition methods of identification code and mobile terminal
CN109151180A (en) * 2018-07-27 2019-01-04 维沃移动通信有限公司 A kind of object identifying method and mobile terminal
CN109521981A (en) * 2018-10-31 2019-03-26 维沃移动通信有限公司 A kind of graphic code display methods and terminal
CN110110571A (en) * 2019-04-28 2019-08-09 维沃移动通信有限公司 A kind of barcode scanning method and mobile terminal

Also Published As

Publication number Publication date
CN110110571B (en) 2023-03-14
CN110110571A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
WO2020221009A1 (en) Code scanning method and mobile terminal
CN108536365B (en) Image sharing method and terminal
WO2020143663A1 (en) Display method and mobile terminal
WO2021104321A1 (en) Image display method and electronic device
WO2021098672A1 (en) Display method and electronic device
WO2020216129A1 (en) Parameter acquisition method and terminal device
WO2020220999A1 (en) Screenshot method and terminal device
WO2020238497A1 (en) Icon moving method and terminal device
WO2020259091A1 (en) Screen content display method and terminal
CN109558000B (en) Man-machine interaction method and electronic equipment
WO2019184947A1 (en) Image viewing method and mobile terminal
WO2021036623A1 (en) Display method and electronic device
CN109257505B (en) Screen control method and mobile terminal
WO2021115172A1 (en) Display method and electronic device
CN109523253B (en) Payment method and device
WO2019154360A1 (en) Interface switching method and mobile terminal
US20210200432A1 (en) Display method and mobile terminal
WO2021104232A1 (en) Display method and electronic device
WO2021147911A1 (en) Mobile terminal, method for detecting image capturing mode, and storage medium
WO2021082772A1 (en) Screenshot method and electronic device
CN109144393B (en) Image display method and mobile terminal
CN108108113B (en) Webpage switching method and device
WO2020220893A1 (en) Screenshot method and mobile terminal
WO2020211692A1 (en) Information interaction method and terminal device
WO2020156119A1 (en) Application program interface adjustment method and mobile terminal

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: 20799385

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: 20799385

Country of ref document: EP

Kind code of ref document: A1