Movatterモバイル変換


[0]ホーム

URL:


CN113128244A - Scanning method and device and electronic equipment - Google Patents

Scanning method and device and electronic equipment
Download PDF

Info

Publication number
CN113128244A
CN113128244ACN202110271679.8ACN202110271679ACN113128244ACN 113128244 ACN113128244 ACN 113128244ACN 202110271679 ACN202110271679 ACN 202110271679ACN 113128244 ACN113128244 ACN 113128244A
Authority
CN
China
Prior art keywords
scanning
scan
objects
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
Application number
CN202110271679.8A
Other languages
Chinese (zh)
Inventor
王凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202110271679.8ApriorityCriticalpatent/CN113128244A/en
Publication of CN113128244ApublicationCriticalpatent/CN113128244A/en
Priority to PCT/CN2022/079926prioritypatent/WO2022188803A1/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种扫描方法、装置及电子设备,属于通信技术领域。以解决二维码的扫描过程比较繁琐的问题。该方法包括:获取扫描预览框中的第一图像,第一图像中包括多个扫描对象;识别第一图像,得到M个扫描对象;M为大于1的整数;接收用户的第一输入;响应于第一输入,显示该M个扫描对象中至少两个扫描对象的扫描结果页面。

Figure 202110271679

The present application discloses a scanning method, device and electronic device, which belong to the technical field of communication. In order to solve the problem that the scanning process of the QR code is relatively cumbersome. The method includes: acquiring a first image in a scanning preview frame, where the first image includes multiple scanning objects; identifying the first image to obtain M scanning objects; M is an integer greater than 1; receiving a first input from a user; responding In the first input, scan result pages of at least two scan objects in the M scan objects are displayed.

Figure 202110271679

Description

Scanning method and device and electronic equipment
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
NumberingLabel (R)
1Application 2, collecting money
2Application 3, collecting money
3Epidemic situation, filling information
4Member 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
NumberingLabel (R)
1Member and registration
2Application 3, collecting money
3Application 4, collecting money
4WiFi
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, ascanning apparatus 800 includes: anacquisition module 801, anidentification module 802, a receivingmodule 803 and adisplay module 804; an obtainingmodule 801, configured to obtain a first image in a scanning preview frame, where the first image includes a plurality of scanning objects; an identifyingmodule 802, configured to identify the first image acquired by the acquiringmodule 801 to obtain M scanning objects; m is an integer greater than 1; areceiving module 803, configured to receive a first input of a user; adisplay 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 receivingmodule 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, anelectronic device 900 is further provided in this embodiment of the present application, and includes aprocessor 901, amemory 902, and a program or an instruction stored in thememory 902 and executable on theprocessor 901, where the program or the instruction is executed by theprocessor 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.
Theelectronic device 1000 includes, but is not limited to: aradio frequency unit 1001, anetwork module 1002, anaudio output unit 1003, aninput unit 1004, asensor 1005, adisplay unit 1006, auser input unit 1007, aninterface unit 1008, amemory 1009, and aprocessor 1010.
Those skilled in the art will appreciate that theelectronic 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 theprocessor 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.
Thesensor 1005 is used for acquiring a first image in the scanning preview frame, wherein the first image comprises a plurality of scanning objects; aprocessor 1010, configured to identify the first image, and obtain M scanning objects; m is an integer greater than 1; auser input unit 1007 for receiving a first input by a user; adisplay 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, theprocessor 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, theprocessor 1010 is specifically configured to adjust target shooting parameters of the camera based on the K second scan objects.
Optionally, theprocessor 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; thedisplay unit 1006 is further configured to display first information of the M scan targets.
Optionally, thedisplay 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, theinput Unit 1004 may include a Graphics Processing Unit (GPU) 1041 and amicrophone 1042, and theGraphics 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. Thedisplay unit 1006 may include adisplay panel 1061, and thedisplay panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. Theuser input unit 1007 includes atouch panel 1071 and other input devices 1072. Thetouch panel 1071 is also referred to as a touch screen. Thetouch 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. Thememory 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 intoprocessor 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)

Translated fromChinese
1.一种扫描方法,其特征在于,所述方法包括:1. a scanning method, is characterized in that, described method comprises:获取扫描预览框中的第一图像,所述第一图像中包括多个扫描对象;acquiring a first image in the scan preview frame, where the first image includes a plurality of scanning objects;识别所述第一图像,得到M个扫描对象;M为大于1的整数;Identify the first image, and obtain M scanning objects; M is an integer greater than 1;接收用户的第一输入;receiving the first input from the user;响应于所述第一输入,显示所述M个扫描对象中至少两个扫描对象的扫描结果页面。In response to the first input, a scan result page for at least two of the M scan objects is displayed.2.根据权利要求1所述的方法,其特征在于,所述识别所述第一图像,得到M个扫描对象,包括:2. The method according to claim 1, wherein the identifying the first image to obtain M scanning objects, comprising:识别所述第一图像,得到J个第一扫描对象和K个第二扫描对象;Identifying the first image to obtain J first scanning objects and K second scanning objects;调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像;Adjust the target shooting parameters of the camera, and reacquire the second image in the scan preview frame;识别所述第二图像,得到N个第一扫描对象;Identifying the second image to obtain N first scanning objects;根据所述J个第一扫描对象和所述N个第一扫描对象,确定M个不同的第一扫描对象;According to the J first scanning objects and the N first scanning objects, determine M different first scanning objects;其中,所述第一扫描对象为显示完整的扫描对象,所述第二扫描对象为显示不完整的扫描对象,J、K和N均为整数,J+N≥M。The first scan object is a complete scan object, the second scan object is an incomplete scan object, and J, K, and N are all integers, and J+N≧M.3.根据权利要求2所述的方法,其特征在于,所述调整摄像头的目标拍摄参数,包括:3. The method according to claim 2, wherein the adjusting the target shooting parameters of the camera comprises:基于所述K个第二扫描对象,调整摄像头的目标拍摄参数。Based on the K second scanning objects, the target shooting parameters of the camera are adjusted.4.根据权利要求1所述的方法,其特征在于,响应于所述第一输入,显示所述M个扫描对象中至少两个扫描对象的扫描结果页面之前,所述方法还包括:4. The method of claim 1, wherein, in response to the first input, before displaying the scan result pages of at least two of the M scan objects, the method further comprises:获取所述M个扫描对象中的每个扫描对象的第一信息,所述第一信息指示扫描对象的功能;acquiring first information of each scan object in the M scan objects, the first information indicating the function of the scan object;显示所述M个扫描对象的第一信息。The first information of the M scanning objects is displayed.5.根据权利要求1至4中任一项所述的方法,其特征在于,所述显示所述M个扫描对象中至少两个扫描对象的扫描结果页面,包括:5. The method according to any one of claims 1 to 4, wherein the displaying the scan result pages of at least two scan objects in the M scan objects comprises:按照第一规则显示所述M个扫描对象中至少两个扫描对象的扫描结果页面;Display scan result pages of at least two scan objects in the M scan objects according to the first rule;其中,所述第一规则为以下任意一项:Wherein, the first rule is any of the following:每间隔第一预设时间,更新显示一个扫描结果页面;Every first preset time, update and display a scan result page;每间隔第二预设时间,更新显示一组扫描结果页面,一组扫描结果页面包括P个扫描结果页面,P为大于或等于2的整数;Every second preset time interval, update and display a group of scan result pages, a group of scan result pages includes P scan result pages, and P is an integer greater than or equal to 2;显示一个扫描结果页面,并根据用户的输入更新显示扫描结果页面。Displays a scan results page and updates the scan results page based on user input.6.一种扫描装置,其特征在于,所述扫描装置包括:获取模块、识别模块、接收模块和显示模块;6. A scanning device, characterized in that the scanning device comprises: an acquisition module, an identification module, a receiving module and a display module;所述获取模块,用于获取扫描预览框中的第一图像,所述第一图像中包括多个扫描对象;the acquisition module, configured to acquire a first image in the scan preview frame, where the first image includes a plurality of scanning objects;所述识别模块,用于识别所述获取模块获取的所述第一图像,得到M个扫描对象;M为大于1的整数;The identifying module is configured to identify the first image obtained by the obtaining module, and obtain M scanning objects; M is an integer greater than 1;所述接收模块,用于接收用户的第一输入;the receiving module, configured to receive the first input of the user;所述显示模块,用于响应于接收模块接收的所述第一输入,显示所述M个扫描对象中至少两个扫描对象的扫描结果页面。The display module is configured to display scan result pages of at least two scan objects in the M scan objects in response to the first input received by the receiving module.7.根据权利要求6所述的扫描装置,其特征在于,所述识别模块具体用于:7. The scanning device according to claim 6, wherein the identification module is specifically used for:识别所述第一图像,得到J个第一扫描对象和K个第二扫描对象;Identifying the first image to obtain J first scanning objects and K second scanning objects;调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像;Adjust the target shooting parameters of the camera, and reacquire the second image in the scan preview frame;识别所述第二图像,得到N个第一扫描对象;Identifying the second image to obtain N first scanning objects;根据所述J个第一扫描对象和所述N个第一扫描对象,确定M个不同的第一扫描对象;According to the J first scanning objects and the N first scanning objects, determine M different first scanning objects;其中,所述第一扫描对象为显示完整的扫描对象,所述第二扫描对象为显示不完整的扫描对象,J、K和N均为整数,J+N≥M。The first scan object is a complete scan object, the second scan object is an incomplete scan object, and J, K, and N are all integers, and J+N≧M.8.根据权利要求7所述的扫描装置,其特征在于,所述识别模块具体用于:8. The scanning device according to claim 7, wherein the identification module is specifically used for:基于所述K个第二扫描对象,调整摄像头的目标拍摄参数。Based on the K second scanning objects, the target shooting parameters of the camera are adjusted.9.一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5任一项所述的扫描方法的步骤。9. An electronic device, characterized in that it comprises a processor, a memory, and a program or instruction that is stored on the memory and can be run on the processor, and the program or instruction is implemented when the processor is executed. The steps of the scanning method according to any one of claims 1 to 5.10.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5任一项所述的扫描方法的步骤。10. A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the scanning method according to any one of claims 1 to 5 is implemented A step of.
CN202110271679.8A2021-03-122021-03-12Scanning method and device and electronic equipmentPendingCN113128244A (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202110271679.8ACN113128244A (en)2021-03-122021-03-12Scanning method and device and electronic equipment
PCT/CN2022/079926WO2022188803A1 (en)2021-03-122022-03-09Scanning method and apparatus, and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110271679.8ACN113128244A (en)2021-03-122021-03-12Scanning method and device and electronic equipment

Publications (1)

Publication NumberPublication Date
CN113128244Atrue CN113128244A (en)2021-07-16

Family

ID=76773084

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110271679.8APendingCN113128244A (en)2021-03-122021-03-12Scanning method and device and electronic equipment

Country Status (2)

CountryLink
CN (1)CN113128244A (en)
WO (1)WO2022188803A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113988236A (en)*2021-10-282022-01-28芜湖雄狮汽车科技有限公司 Display method, device, electronic device and storage medium for information identification code
CN114445068A (en)*2022-01-282022-05-06中国建设银行股份有限公司Numerical resource processing method, system, computer device, and storage medium
WO2022188803A1 (en)*2021-03-122022-09-15维沃移动通信有限公司Scanning method and apparatus, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107609452A (en)*2017-09-292018-01-19联想(北京)有限公司Processing method and processing device
CN110674662A (en)*2019-09-172020-01-10维沃移动通信有限公司 A scanning method and terminal device
CN111553673A (en)*2020-05-072020-08-18支付宝(杭州)信息技术有限公司Information display method and device based on graphic code identification

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
IT201600111398A1 (en)*2016-11-042018-05-04Origami Lab Srl METHOD TO ACCESS A MULTIMEDIA CONTENT
CN113128244A (en)*2021-03-122021-07-16维沃移动通信有限公司Scanning method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107609452A (en)*2017-09-292018-01-19联想(北京)有限公司Processing method and processing device
CN110674662A (en)*2019-09-172020-01-10维沃移动通信有限公司 A scanning method and terminal device
CN111553673A (en)*2020-05-072020-08-18支付宝(杭州)信息技术有限公司Information display method and device based on graphic code identification

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2022188803A1 (en)*2021-03-122022-09-15维沃移动通信有限公司Scanning method and apparatus, and electronic device
CN113988236A (en)*2021-10-282022-01-28芜湖雄狮汽车科技有限公司 Display method, device, electronic device and storage medium for information identification code
CN114445068A (en)*2022-01-282022-05-06中国建设银行股份有限公司Numerical resource processing method, system, computer device, and storage medium

Also Published As

Publication numberPublication date
WO2022188803A1 (en)2022-09-15

Similar Documents

PublicationPublication DateTitle
US9412017B1 (en)Methods systems and computer program products for motion initiated document capture
CN113128244A (en)Scanning method and device and electronic equipment
CN109040960A (en)A kind of method and apparatus for realizing location-based service
CN111813309B (en)Display method, display device, electronic equipment and readable storage medium
CN103488528A (en)QR code processing method and device based on mobile terminals
CN112417420B (en) Information processing method, device and electronic device
CN111901896A (en) Information sharing method, information sharing device, electronic device and storage medium
CN109359582A (en) Information search method, information search device and mobile terminal
US9817849B2 (en)Image recognition method for offline and online synchronous operation
CN112163654B (en)Graphic code processing method and device, electronic equipment and readable storage medium
CN112287713A (en) Two-dimensional code identification method and device
CN113807831A (en)Payment method and device
CN112287850A (en)Article information identification method and device, electronic equipment and readable storage medium
CN112749769A (en)Graphic code detection method and device, computer equipment and storage medium
CN111796736A (en)Application sharing method and device and electronic equipment
CN112183149B (en)Graphic code processing method and device
CN111694498B (en)Interface display method and device and electronic equipment
CN114881060A (en)Code scanning method and device, electronic equipment and readable storage medium
CN112765946B (en)Chart display method and device and electronic equipment
CN113873081B (en)Method and device for sending associated image and electronic equipment
CN112333389B (en)Image display control method and device and electronic equipment
JP2012226085A (en)Electronic apparatus, control method and control program
JP5998952B2 (en) Sign image placement support apparatus and program
CN113473012A (en)Virtualization processing method and device and electronic equipment
CN113783580A (en) Device control method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20210716


[8]ページ先頭

©2009-2025 Movatter.jp