CN113128244A - Scanning method and device and electronic equipment - Google Patents
Scanning method and device and electronic equipment Download PDFInfo
- Publication number
- CN113128244A CN113128244A CN202110271679.8A CN202110271679A CN113128244A CN 113128244 A CN113128244 A CN 113128244A CN 202110271679 A CN202110271679 A CN 202110271679A CN 113128244 A CN113128244 A CN 113128244A
- Authority
- CN
- China
- Prior art keywords
- scanning
- objects
- scan
- image
- user
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004044 response Effects 0.000 claims abstract description 14
- 230000006870 function Effects 0.000 claims description 12
- 238000004891 communication Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a scanning method, a scanning device and electronic equipment, and belongs to the technical field of communication. The problem that the scanning process of the two-dimensional code is complex is solved. The method comprises the following steps: acquiring a first image in a scanning preview frame, wherein the first image comprises a plurality of scanning objects; identifying a first image to obtain M scanning objects; m is an integer greater than 1; receiving a first input of a user; in response to a first input, a scan results page of at least two of the M scan objects is displayed.
Description
Technical Field
The application belongs to the technical field of communication, and particularly relates to a scanning method, a scanning device and electronic equipment.
Background
With the development of communication technology, two-dimensional codes with different functions are more and more, and the use scenes of the two-dimensional codes are more and more. For example, the user may use the electronic device to pay, register, connect to a network, log in security verification, and the like by scanning the two-dimensional code.
Generally, a two-dimensional code is recognized one at a time when a user scans the two-dimensional code using an electronic device. In the scanning process of using the electronic equipment by a user, if a scanning area of the camera comprises a plurality of two-dimensional codes, the electronic equipment randomly scans one of the two-dimensional codes in a mode, and the selected two-dimensional code is not the two-dimensional code expected by the user and can be required to be re-scanned by the user; or the electronic equipment directly displays the scanning error and prompts the user to scan again.
However, if the user needs to scan a plurality of two-dimensional codes in the current scanning scene, the user needs to scan one of the two-dimensional codes first and then scan the other two-dimensional code after the operation according to the two-dimensional code is completed. Therefore, when a plurality of two-dimensional codes are needed, the scanning process of the two-dimensional codes is relatively complicated.
Disclosure of Invention
The embodiment of the application aims to provide a scanning method, a scanning device and electronic equipment, and the problem that the scanning process of a two-dimensional code is complex can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a scanning method, where the method includes: acquiring a first image in a scanning preview frame, wherein the first image comprises a plurality of scanning objects; identifying the first image to obtain M scanning objects; m is an integer greater than 1; receiving a first input of a user; in response to the first input, a scan results page of at least two of the M scan objects is displayed.
In a second aspect, an embodiment of the present application provides a scanning apparatus, including: the device comprises an acquisition module, an identification module, a receiving module and a display module; the acquisition module is used for acquiring a first image in the scanning preview frame, wherein the first image comprises a plurality of scanning objects; the identification module is used for identifying the first image acquired by the acquisition module to obtain M scanning objects; m is an integer greater than 1; the receiving module is used for receiving a first input of a user; the display module is configured to display a scan result page of at least two of the M scan objects in response to the first input received by the receiving module.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this embodiment of the application, during a scanning process, the electronic device may first acquire a first image in a scanning preview frame, where the first image includes a plurality of scanning objects, then the electronic device may recognize the first image to obtain M scanning objects, then the electronic device may receive a first input from a user, and in response to the first input, the electronic device may display a scanning result page of at least two scanning objects in the M scanning objects. That is, in the case where a plurality of scan objects are included in a scan scene, the electronic device may scan the plurality of scan objects at a time and then display a scan result page of the plurality of scan objects according to a user's selection. Under the condition that a user needs to scan a plurality of scanning objects, the user does not need to scan one scanning object firstly, and then scans the next scanning object after the scanning object is used, the scanning result pages of the plurality of scanning objects can be obtained only by scanning once by the user, the user can operate on the plurality of scanning result pages respectively, the scanning steps of the user are simplified, and the scanning mode is more flexible and convenient.
Drawings
Fig. 1 is a schematic flow chart of a scanning method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a scanning scene provided in an embodiment of the present application;
FIG. 3 is a schematic view of a scanning interface provided in an embodiment of the present application;
fig. 4 is a second schematic view of a scanning interface provided in the embodiment of the present application;
fig. 5 is a third schematic view of a scanning interface provided in the present embodiment;
fig. 6 is a fourth schematic view of a scanning interface provided in the embodiment of the present application;
fig. 7 is a second flowchart of a scanning method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a scanning apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The scanning method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a scanning method according to an embodiment of the present disclosure. As shown in fig. 1, the method includes the following S101 to S104:
s101, the electronic equipment acquires a first image in a scanning preview frame.
Wherein, the first image comprises a plurality of scanning objects.
In this embodiment, the scanning target may be an image carrying information, such as a two-dimensional code or a barcode.
It can be understood that in practical application, a user often encounters a code scanning scene, and a plurality of two-dimensional codes are displayed in a region with a short distance, for example, in the case of dining in a restaurant, a merchant places collection two-dimensional codes of different applications, two-dimensional codes connected with WiFi, and the like together to meet the requirements of different users.
Exemplarily, fig. 2 is a schematic view of a scanning scene provided in an embodiment of the present application. As shown in fig. 2, the scanning scene includes 8 different two-dimensional codes. The two-dimensional code is an application 1 payment two-dimensional code, an application 2 payment two-dimensional code, an epidemic situation information filling two-dimensional code, a registered member two-dimensional code, an application 3 payment two-dimensional code, a user 1 business card two-dimensional code, an application 4 payment two-dimensional code and a free WiFi two-dimensional code.
It can be understood that, according to the needs of the user, the handheld electronic device can open the two-dimensional code scanning tool or the scanning software, align the direction of the two-dimensional code to be scanned, and trigger the electronic device to scan and identify the two-dimensional code.
S102, the electronic equipment identifies the first image to obtain M scanning objects.
Wherein M is an integer greater than 1.
It should be noted that the M scan objects are effective scan objects for which the electronic device can recognize information.
That is, the electronic device may recognize a plurality of two-dimensional codes through one scan of the user.
S103, the electronic equipment receives a first input of a user.
Illustratively, the first input may be an input for a user to select to display at least two scan objects of the M scan objects.
And S104, responding to the first input, and displaying a scanning result page of at least two scanning objects in the M scanning objects by the electronic equipment.
It is understood that the user may perform corresponding operations in the scan result pages of at least two scan objects displayed by the electronic device, respectively.
Illustratively, the electronic device may recognize that a free WiFi two-dimensional code is connected and an application 4 payee two-dimensional code. The user can determine to connect WiFi on the scanning result page corresponding to the free WiFi two-dimensional code, and input payment amount on the scanning result page corresponding to the application 4 payment receiving two-dimensional code to confirm payment.
According to the scanning method provided by the embodiment of the application, in the scanning process of the electronic device, the first image in the scanning preview frame can be obtained firstly, the first image comprises a plurality of scanning objects, then the electronic device can identify the first image to obtain M scanning objects, then the electronic device can receive a first input of a user, and in response to the first input, the electronic device can display a scanning result page of at least two scanning objects in the M scanning objects. That is, in the case where a plurality of scan objects are included in a scan scene, the electronic device may scan the plurality of scan objects at a time and then display a scan result page of the plurality of scan objects according to a user's selection. Under the condition that a user needs to scan a plurality of scanning objects, the user does not need to scan one scanning object firstly, and then scans the next scanning object after the scanning object is used, the scanning result pages of the plurality of scanning objects can be obtained only by scanning once by the user, the user can operate on the plurality of scanning result pages respectively, the scanning steps of the user are simplified, and the scanning mode is more flexible and convenient.
Optionally, in the scanning method provided in the embodiment of the present application, the step S102 may be specifically executed through the following steps S102a to S102 d:
s102a, the electronic device identifies the first image, and obtains J first scan objects and K second scan objects.
The first scanning object is a scanning object with complete display, the second scanning object is a scanning object with incomplete display, and J and K are positive integers.
For example, the first scanning object may be a two-dimensional code in which the electronic device can recognize information according to a first part or all of the two-dimensional code, and the second scanning object may be a two-dimensional code in which the electronic device cannot recognize information according to the first part of the two-dimensional code.
Fig. 3 is a schematic view of a scanning interface provided in an embodiment of the present application, and with reference to fig. 2, if a user holds an electronic device and aims at the lower left of fig. 2, as shown in (a) of fig. 3, a scanning preview frame of the electronic device includes 4 two-dimensional codes at the lower left of fig. 2, and if the user holds the electronic device and aims at the lower right of fig. 2, as shown in (b) of fig. 3, the scanning preview frame of the electronic device includes 4 two-dimensional codes at the lower right of fig. 2.
S102b, the electronic equipment adjusts the target shooting parameters of the camera and acquires the second image in the scanning preview frame again.
For example, the electronic device may automatically adjust the target shooting parameters of the camera if it is determined that there is an incomplete scanned object.
Alternatively, the target photographing parameter may be a focal length, a rotation angle, a view angle, a photographing mode, and the like of the camera.
For example, the electronic device can adjust the focal length to be small, turn the camera toward, and switch the normal shooting mode to the wide-angle mode.
That is, in a case that the electronic device determines that the incomplete scanned object is displayed in the scan preview frame, the electronic device may adjust the target parameter of the camera, so that the electronic device may automatically reacquire the incomplete scanned object acquired before.
S102c, the electronic device identifies the second image to obtain N first scanning objects.
Wherein N is a positive integer.
It can be understood that after the electronic device identifies the first image, J complete scan objects may be acquired first, and then other scan objects not shown in the first image may be acquired again by adjusting the target parameters of the camera.
S102d, the electronic device determines M different first scan objects according to the J first scan objects and the N first scan objects.
Wherein J + N is more than or equal to M.
It can be understood that the electronic device may aggregate the results of the two identifications after the two identifications, and in a case that there may be a duplicate scanned object in the results of the two identifications, may retain one of the duplicate scanned objects and display the aggregated complete scanned object.
Based on the scheme, in the scanning process of the scanning object, if the scanning object scanned in the first image is determined to include the scanning object with incomplete display, the electronic device can automatically adjust the shooting parameters of the camera and rescan the scanning object with incomplete display in the first image, so that a user can conveniently scan the scanning object without manually adjusting the orientation of the electronic device.
Optionally, in the scanning method provided in the embodiment of the present application, the step S102b may be specifically executed by the following step S102b 1:
s102b1, the electronic equipment adjusts the target shooting parameters of the camera based on the K second scanning objects.
Specifically, the electronic device may determine to adjust the target shooting parameter of the rotation of the camera according to the first side edge or the first relative position.
The first boundary is a boundary of the second scanning object, and the first relative position is a position of the second scanning object relative to the first scanning object.
For example, taking the two-dimensional code of the registered member in (a) in fig. 3 as a second scan object, the electronic device determines that the lower side of the two-dimensional code of the registered member is a complete display boundary, and the left side and the right side are incomplete display boundaries, and then the electronic device may determine that the camera may be adjusted upward according to the lower boundary of the two-dimensional code of the registered member. Alternatively, the electronic device may determine that the registered member is located on the right side of the two-dimensional code received by the application 2 and above the two-dimensional code received by the application 3, and the electronic device may determine that the camera is adjusted upward.
In the above example, the target parameter is taken as an example of a direction of the camera, the electronic device may also adjust a focal length of the camera, for example, fig. 4 is a schematic view of a scanned page provided in the embodiment of the present application, and in combination with (a) or (b) of fig. 3, the two-dimensional code of the registered member is not fully displayed, as shown in (a) of fig. 4, the electronic device displays a lower half portion of the two-dimensional code of the registered member, and then the electronic device adjusts a shooting focal length of the camera based on the two-dimensional code of the registered member, for example, adjusts the focal length of the camera of the electronic device, and then as shown in (b) of fig. 4, so that the two-dimensional code may be fully displayed in the scan preview frame.
Based on the scheme, in the scanning process of the scanning object, the electronic equipment determines that the scanned scanning object comprises the scanning object with incomplete display, and then the electronic equipment can accurately determine the target shooting parameters of the electronic equipment for adjusting the rotation of the camera based on the scanning object with incomplete display, so that the electronic equipment can accurately adjust the camera and quickly position the scanning object to be scanned.
Optionally, in the scanning method provided in this embodiment of the present application, before the foregoing S104, the following S105 and S106 may also be included:
s105, the electronic equipment acquires first information of each of the M scanning objects.
Wherein the first information may indicate a function of scanning the object.
Illustratively, the functions of a two-dimensional code may be: collection, payment, riding, member management, account login, content filling (sign-in), friend adding, lottery drawing, WiFi password, commodity tracing and the like.
Optionally, the first information may further indicate an application to which the scan object corresponds.
It should be noted that the electronic device can acquire a function of the two-dimensional code, an application corresponding to the two-dimensional code, and the like by identifying the two-dimensional code.
For example, taking the tag in which the first information is a two-dimensional code as an example, the electronic device can recognize, in conjunction with (a) in fig. 3, the 4 two-dimensional codes shown in (a) in fig. 3, and obtain the tags (i.e., the first information) shown in table 1 below.
TABLE 1
Numbering | Label (R) |
1 | Application 2, collecting money |
2 | Application 3, collecting money |
3 | Epidemic situation, filling information |
4 | Member and registration |
In conjunction with (b) in fig. 3, the electronic device can recognize the 4 two-dimensional codes shown in (b) in fig. 3, resulting in the tags shown in table 2 below.
TABLE 2
Numbering | Label (R) |
1 | Member and registration |
2 | Application 3, collecting money |
3 | Application 4, collecting money |
4 | WiFi |
S106, the electronic equipment displays first information of the M scanning objects.
Wherein the first input is an input that the user selects at least two scan objects from the M scan objects based on the displayed first information of the M objects.
Optionally, the electronic device may display the first control and the second control after acquiring the first information. The first control indicates that the user can select the two-dimensional code through the label, and the second control indicates that the user can select the two-dimensional code through the page.
Illustratively, after acquiring the first information (tag), the electronic device may display an interface shown in fig. 5, where the interface includes "two-dimensional code selected by tag" and "two-dimensional code selected by page", and the user may click "two-dimensional code selected by tag", and in conjunction with (a) in fig. 3, the electronic device may display an interface shown in (a) in fig. 6, where the interface includes a tag corresponding to each two-dimensional code in (a) in fig. 3, and the user may click one or more scan result pages in which one or more two-dimensional codes are selected to be displayed. Similarly, in connection with (b) in fig. 3, after the user may click "select two-dimensional codes by tag", an interface shown in (b) in fig. 6 may be displayed on the electronic device, where the interface includes tags corresponding to each two-dimensional code in (b) in fig. 3, and the user may click one or more scan result pages that select one or more two-dimensional codes to be displayed.
If the user operates the second control, the electronic device may display the scanning result pages of the M two-dimensional codes first, and then the user may select which scanning result page to use as needed.
Based on the scheme, the electronic device can acquire the first information of each of the M scanned objects, and can display the scanned first information of each scanned object for the user, so that the user can select the scanning result page of the scanned object according to the first information.
Optionally, in the scanning method provided in the embodiment of the present application, the step S104 may be specifically executed by the following step S104 a:
s104a, the electronic equipment displays a scanning result page of at least two scanning objects in the M scanning objects according to a first rule.
Wherein the first rule is any one of the following:
(1) and updating and displaying a scanning result page every first preset time.
It can be understood that the electronic device displays one scan result page at a time, and then displays the next scan result page at a first preset time.
Illustratively, one scan results page is updated every 30 seconds.
(2) And updating and displaying a group of scanning result interfaces every second preset time.
The group of scanning result pages comprises P scanning result pages, and P is an integer greater than or equal to 2.
For example, taking the example of displaying two scan result interfaces at a time, the electronic device may display the two scan interface pages in different areas, for example, the electronic device may display the two scan interface pages in a split screen manner, and the electronic device (multi-screen electronic device) may also display the two scan interface pages in different screens.
(3) And displaying a scanning result page, and updating and displaying the scanning result page according to the input of the user.
Illustratively, the electronic device displays one scanning result page at a time, and the user can slide left and right or up and down on the interface to switch the scanning result page.
It should be noted that, after the user selects one scan result page, the electronic device may keep displaying the scan result page, so that the user performs an operation on the scan result page.
Based on the scheme, the electronic equipment can display the scanning result interfaces of the plurality of identified scanning objects in different modes, and the display modes are flexible and diverse.
Example (c):
fig. 7 is a schematic flowchart of a possible scanning method provided by an embodiment of the present application, and as shown in fig. 7, the following steps may be included.
S201, the electronic equipment scans in the direction where the two-dimensional code is located.
Illustratively, a plurality of two-dimensional code cards are gathered together in the direction of the two-dimensional code, and some two-dimensional code cards are larger and some two-dimensional code cards are smaller.
And the electronic equipment analyzes the image shot during scanning to obtain a scanning result.
S202, the electronic equipment extracts the scanned complete two-dimensional code blocks and the number of the scanned incomplete two-dimensional code blocks according to the scanning result.
S203, the electronic equipment judges whether invalid two-dimensional code blocks appear.
If the two-dimensional code block scanned in the scanning process includes an incomplete two-dimensional code pattern, S204 is executed, otherwise S205 is executed.
S204, the electronic equipment adjusts the visual angle and the focal length of the camera, positions the incomplete two-dimensional code pattern and shoots the complete version of the pattern again.
S205, the electronic device determines whether the number of valid two-dimensional code blocks is 1, if only one complete two-dimensional code block is scanned in the scan list, then S210 is executed, otherwise S206 is executed.
S206, the electronic equipment traverses the two-dimensional code blocks and analyzes the page pointed by each two-dimensional code and the label to which the two-dimensional code belongs.
S207, the electronic equipment determines whether the user selects the two-dimensional code through the label.
That is, the user selects a desired presentation manner, and if "two-dimensional code is selected by tag", S208 is performed; if "two-dimensional code is selected by page", S209 is performed.
S208, the electronic equipment is displayed on an interface in a label mode, and a user selects a desired two-dimensional code.
It can be understood that the electronic device displays the two-dimensional code information in the scan list to the user through the tag, the user selects the two-dimensional code information, and the user can select a plurality of two-dimensional codes and execute S210 after the selection is completed.
S209, the electronic equipment is displayed on an interface in a two-dimensional code generation page mode, and a user selects a desired two-dimensional code.
It is understood that the electronic device presents all the scanned pages, and the user manually selects a desired scanning result.
And S210, displaying the final interface by the electronic equipment.
The electronic device can display the final two-dimensional code scanning result page to the user. The scanning process ends.
It can be understood that the user can perform subsequent operations on the two-dimensional code scanning result page.
It should be noted that, in the scanning method provided in the embodiment of the present application, the execution main body may be a scanning apparatus, or a control module of the scanning apparatus for executing the scanning method. In the embodiment of the present application, a method for performing scanning by a scanning device is taken as an example to describe the scanning device provided in the embodiment of the present application.
Fig. 8 is a schematic structural diagram of a scanning apparatus according to an embodiment of the present application, and as shown in fig. 8, a scanning apparatus 800 includes: an acquisition module 801, an identification module 802, a receiving module 803 and a display module 804; an obtaining module 801, configured to obtain a first image in a scanning preview frame, where the first image includes a plurality of scanning objects; an identifying module 802, configured to identify the first image acquired by the acquiring module 801 to obtain M scanning objects; m is an integer greater than 1; a receiving module 803, configured to receive a first input of a user; a display module 804, configured to display a scan result page of at least two scan objects of the M scan objects in response to the first input received by the receiving module 803.
Optionally, the identification module is specifically configured to: identifying a first image to obtain J first scanning objects and K second scanning objects; adjusting target shooting parameters of the camera, and re-acquiring a second image in the scanning preview frame; identifying a second image to obtain N first scanning objects; determining M different first scan objects from the J first scan objects and the N first scan objects; the first scanning object is a scanning object with complete display, the second scanning object is a scanning object with incomplete display, J, K and N are integers, and J + N is larger than or equal to M.
Optionally, the identification module is specifically configured to: and adjusting the target shooting parameters of the camera based on the K second scanning objects.
Optionally, the obtaining module is further configured to obtain first information of each of the M scan objects before the displaying module displays a scan result page of at least two of the M scan objects in response to the first input, where the first information indicates a function of the scan object; the display module is further used for displaying first information of the M scanning objects.
Optionally, the display module is specifically configured to: displaying a scanning result page of at least two scanning objects in the M scanning objects according to a first rule; wherein the first rule is any one of the following: updating and displaying a scanning result page every first preset time interval; updating and displaying a group of scanning result pages every second preset time interval, wherein the group of scanning result pages comprises P scanning result pages, and P is an integer greater than or equal to 2; and displaying a scanning result page, and updating and displaying the scanning result page according to the input of the user.
The embodiment of the application provides a scanning device, which may first acquire a first image in a scanning preview frame during a scanning process, where the first image includes a plurality of scanning objects, then the scanning device may identify the first image to obtain M scanning objects, then the scanning device may receive a first input from a user, and in response to the first input, the scanning device may display a scanning result page of at least two scanning objects in the M scanning objects. That is, in the case where a plurality of scan subjects are included in a scan scene, the scanning apparatus may scan the plurality of scan subjects at a time and then display a scan result page of the plurality of scan subjects according to a user's selection. Under the condition that a user needs to scan a plurality of scanning objects, the user does not need to scan one scanning object firstly, and then scans the next scanning object after the scanning object is used, the scanning result pages of the plurality of scanning objects can be obtained only by scanning once by the user, the user can operate on the plurality of scanning result pages respectively, the scanning steps of the user are simplified, and the scanning mode is more flexible and convenient.
The scanning device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The scanning device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The scanning device provided in the embodiment of the present application can implement each process implemented by the device described in the method embodiments of fig. 1 to fig. 7, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing scanning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The sensor 1005 is used for acquiring a first image in the scanning preview frame, wherein the first image comprises a plurality of scanning objects; a processor 1010, configured to identify the first image, and obtain M scanning objects; m is an integer greater than 1; a user input unit 1007 for receiving a first input by a user; a display unit 1006, configured to display a scan result page of at least two scan objects of the M scan objects in response to the first input.
Optionally, the processor 1010 is specifically configured to: identifying a first image to obtain J first scanning objects and K second scanning objects; adjusting target shooting parameters of the camera, and re-acquiring a second image in the scanning preview frame; identifying a second image to obtain N first scanning objects; determining M different first scan objects from the J first scan objects and the N first scan objects; the first scanning object is a scanning object with complete display, the second scanning object is a scanning object with incomplete display, J, K and N are integers, and J + N is larger than or equal to M.
Optionally, the processor 1010 is specifically configured to adjust target shooting parameters of the camera based on the K second scan objects.
Optionally, the processor 1010 is further configured to obtain first information of each of the M scan objects before displaying a scan result page of at least two of the M scan objects in response to the first input, the first information indicating a function of the scan object; the display unit 1006 is further configured to display first information of the M scan targets.
Optionally, the display unit 1006 is specifically configured to display a scan result page of at least two scan objects in the M scan objects according to a first rule; wherein the first rule is any one of the following: updating and displaying a scanning result page every first preset time interval; updating and displaying a group of scanning result pages every second preset time interval, wherein the group of scanning result pages comprises P scanning result pages, and P is an integer greater than or equal to 2; and displaying a scanning result page, and updating and displaying the scanning result page according to the input of the user.
The embodiment of the application provides an electronic device, which may first acquire a first image in a scanning preview frame during a scanning process, where the first image includes a plurality of scanning objects, then the electronic device may recognize the first image to obtain M scanning objects, then the electronic device may receive a first input from a user, and in response to the first input, the electronic device may display a scanning result page of at least two scanning objects in the M scanning objects. That is, in the case where a plurality of scan objects are included in a scan scene, the electronic device may scan the plurality of scan objects at a time and then display a scan result page of the plurality of scan objects according to a user's selection. Under the condition that a user needs to scan a plurality of scanning objects, the user does not need to scan one scanning object firstly, and then scans the next scanning object after the scanning object is used, the scanning result pages of the plurality of scanning objects can be obtained only by scanning once by the user, the user can operate on the plurality of scanning result pages respectively, the scanning steps of the user are simplified, and the scanning mode is more flexible and convenient.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the scanning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the scanning method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method of scanning, the method comprising:
acquiring a first image in a scanning preview frame, wherein the first image comprises a plurality of scanning objects;
identifying the first image to obtain M scanning objects; m is an integer greater than 1;
receiving a first input of a user;
in response to the first input, displaying a scan results page of at least two of the M scan objects.
2. The method of claim 1, wherein the identifying the first image results in M scan objects, comprising:
identifying the first image to obtain J first scanning objects and K second scanning objects;
adjusting target shooting parameters of the camera, and re-acquiring a second image in the scanning preview frame;
identifying the second image to obtain N first scanning objects;
determining M different first scan objects from the J first scan objects and the N first scan objects;
the first scanning object is a scanning object with complete display, the second scanning object is a scanning object with incomplete display, J, K and N are integers, and J + N is larger than or equal to M.
3. The method of claim 2, wherein the adjusting the target shooting parameters of the camera comprises:
and adjusting the target shooting parameters of the camera based on the K second scanning objects.
4. The method of claim 1, wherein prior to displaying a scan results page for at least two of the M scan objects in response to the first input, the method further comprises:
acquiring first information of each of the M scan objects, the first information indicating a function of the scan object;
and displaying first information of the M scanning objects.
5. The method according to any one of claims 1 to 4, wherein the displaying the scan result page of at least two of the M scan objects comprises:
displaying a scanning result page of at least two scanning objects in the M scanning objects according to a first rule;
wherein the first rule is any one of:
updating and displaying a scanning result page every first preset time interval;
updating and displaying a group of scanning result pages every second preset time interval, wherein the group of scanning result pages comprises P scanning result pages, and P is an integer greater than or equal to 2;
and displaying a scanning result page, and updating and displaying the scanning result page according to the input of the user.
6. A scanning device, characterized in that the scanning device comprises: the device comprises an acquisition module, an identification module, a receiving module and a display module;
the acquisition module is used for acquiring a first image in a scanning preview frame, wherein the first image comprises a plurality of scanning objects;
the identification module is used for identifying the first image acquired by the acquisition module to obtain M scanning objects; m is an integer greater than 1;
the receiving module is used for receiving a first input of a user;
the display module is configured to display a scan result page of at least two of the M scan objects in response to the first input received by the receiving module.
7. The scanning device of claim 6, wherein the identification module is specifically configured to:
identifying the first image to obtain J first scanning objects and K second scanning objects;
adjusting target shooting parameters of the camera, and re-acquiring a second image in the scanning preview frame;
identifying the second image to obtain N first scanning objects;
determining M different first scan objects from the J first scan objects and the N first scan objects;
the first scanning object is a scanning object with complete display, the second scanning object is a scanning object with incomplete display, J, K and N are integers, and J + N is larger than or equal to M.
8. The scanning device of claim 7, wherein the identification module is specifically configured to:
and adjusting the target shooting parameters of the camera based on the K second scanning objects.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the scanning method according to any one of claims 1 to 5.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the scanning method according to any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110271679.8A CN113128244A (en) | 2021-03-12 | 2021-03-12 | Scanning method and device and electronic equipment |
PCT/CN2022/079926 WO2022188803A1 (en) | 2021-03-12 | 2022-03-09 | Scanning method and apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110271679.8A CN113128244A (en) | 2021-03-12 | 2021-03-12 | Scanning method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113128244A true CN113128244A (en) | 2021-07-16 |
Family
ID=76773084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110271679.8A Pending CN113128244A (en) | 2021-03-12 | 2021-03-12 | Scanning method and device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113128244A (en) |
WO (1) | WO2022188803A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113988236A (en) * | 2021-10-28 | 2022-01-28 | 芜湖雄狮汽车科技有限公司 | Information identification code display method and device, electronic equipment and storage medium |
WO2022188803A1 (en) * | 2021-03-12 | 2022-09-15 | 维沃移动通信有限公司 | Scanning method and apparatus, and electronic device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609452A (en) * | 2017-09-29 | 2018-01-19 | 联想(北京)有限公司 | Processing method and processing device |
CN110674662A (en) * | 2019-09-17 | 2020-01-10 | 维沃移动通信有限公司 | Scanning method and terminal equipment |
CN111553673A (en) * | 2020-05-07 | 2020-08-18 | 支付宝(杭州)信息技术有限公司 | Information display method and device based on graphic code identification |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
IT201600111398A1 (en) * | 2016-11-04 | 2018-05-04 | Origami Lab Srl | METHOD TO ACCESS A MULTIMEDIA CONTENT |
CN113128244A (en) * | 2021-03-12 | 2021-07-16 | 维沃移动通信有限公司 | Scanning method and device and electronic equipment |
-
2021
- 2021-03-12 CN CN202110271679.8A patent/CN113128244A/en active Pending
-
2022
- 2022-03-09 WO PCT/CN2022/079926 patent/WO2022188803A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609452A (en) * | 2017-09-29 | 2018-01-19 | 联想(北京)有限公司 | Processing method and processing device |
CN110674662A (en) * | 2019-09-17 | 2020-01-10 | 维沃移动通信有限公司 | Scanning method and terminal equipment |
CN111553673A (en) * | 2020-05-07 | 2020-08-18 | 支付宝(杭州)信息技术有限公司 | Information display method and device based on graphic code identification |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022188803A1 (en) * | 2021-03-12 | 2022-09-15 | 维沃移动通信有限公司 | Scanning method and apparatus, and electronic device |
CN113988236A (en) * | 2021-10-28 | 2022-01-28 | 芜湖雄狮汽车科技有限公司 | Information identification code display method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2022188803A1 (en) | 2022-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106327185B (en) | Starting method of payment application and mobile terminal | |
CN103488528A (en) | QR code processing method and device based on mobile terminals | |
CN111813309A (en) | Display method, display device, electronic equipment and readable storage medium | |
WO2022188803A1 (en) | Scanning method and apparatus, and electronic device | |
CN112492201B (en) | Photographing method and device and electronic equipment | |
CN109359582B (en) | Information searching method, information searching device and mobile terminal | |
CN112699363A (en) | Graphic code identification method and device and electronic equipment | |
CN112486444A (en) | Screen projection method, device, equipment and readable storage medium | |
CN112532885A (en) | Anti-shake method and device and electronic equipment | |
US20140019378A1 (en) | Evaluation system, method, and computer-readable recording medium | |
CN112287713A (en) | Two-dimensional code identification method and device | |
CN112532884A (en) | Identification method and device and electronic equipment | |
CN112465497A (en) | Payment method, payment device, electronic equipment and medium | |
CN111859322A (en) | Identity verification method and device and electronic equipment | |
CN112749769A (en) | Graphic code detection method and device, computer equipment and storage medium | |
CN112183149B (en) | Graphic code processing method and device | |
CN111694498B (en) | Interface display method and device and electronic equipment | |
CN112765946B (en) | Chart display method and device and electronic equipment | |
CN112333389B (en) | Image display control method and device and electronic equipment | |
CN114491218A (en) | Information updating method, information updating device, electronic device, and medium | |
CN111325656B (en) | Image processing method, image processing device and terminal equipment | |
CN114170419A (en) | Equipment region image extraction method and device under natural scene | |
CN114090883A (en) | Service account processing method and device, electronic equipment and storage medium | |
CN111813304A (en) | Image display method and device | |
CN113868269A (en) | Screenshot method and device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210716 |
|
RJ01 | Rejection of invention patent application after publication |