WO2022188803A1 - 扫描方法、装置及电子设备 - Google Patents

扫描方法、装置及电子设备 Download PDF

Info

Publication number
WO2022188803A1
WO2022188803A1 PCT/CN2022/079926 CN2022079926W WO2022188803A1 WO 2022188803 A1 WO2022188803 A1 WO 2022188803A1 CN 2022079926 W CN2022079926 W CN 2022079926W WO 2022188803 A1 WO2022188803 A1 WO 2022188803A1
Authority
WO
WIPO (PCT)
Prior art keywords
scan
scanning
objects
image
electronic device
Prior art date
Application number
PCT/CN2022/079926
Other languages
English (en)
French (fr)
Inventor
王凯
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022188803A1 publication Critical patent/WO2022188803A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a scanning method, an apparatus and an electronic device.
  • QR codes With the development of communication technology, there are more and more QR codes with different functions, and there are more and more usage scenarios of QR codes. For example, users can use electronic devices to scan QR codes for payment, registration, network connection, login security verification, etc.
  • one QR code is recognized at a time when a user scans the QR code with an electronic device.
  • the scanning area of the camera includes multiple QR codes, one way the electronic device randomly scans one of them, the selected QR code is not the QR code expected by the user, and the user may need to scan it again. ; or the electronic device directly displays a scan error, prompting the user to rescan.
  • the user needs to scan multiple two-dimensional codes in the current scanning scene, the user needs to scan one of the two-dimensional codes successfully first, and then scan another two-dimensional code after the operation according to the two-dimensional code is completed. In this way, when multiple two-dimensional codes need to be used, the scanning process of the two-dimensional codes is relatively cumbersome.
  • the purpose of the embodiments of the present application is to provide a scanning method, device and electronic device, which can solve the problem that the scanning process of a two-dimensional code is cumbersome.
  • an embodiment of the present application provides a scanning method, the method includes: acquiring a first image in a scan preview frame, where the first image includes a plurality of scanning objects; identifying the first image, and obtaining M scans object; M is an integer greater than 1; receiving a first input from the user; in response to the first input, displaying a scan result page of at least two scan objects among the M scan objects.
  • an embodiment of the present application provides a scanning device, the scanning device includes: an acquisition module, an identification module, a receiving module, and a display module; the acquisition module is used to acquire a first image in a scan preview frame, the first image An image includes a plurality of scanned objects.
  • the identifying module is used for identifying the first image obtained by the obtaining module to obtain M scanning objects; M is an integer greater than 1.
  • the receiving module is used for receiving the first input of the user.
  • 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.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, 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, and implement the first aspect the method described.
  • the electronic device can first obtain a first image in the scan preview frame, where the first image includes multiple scanning objects, and then the electronic device can recognize the first image and obtain M The object is scanned, and the electronic device can then receive a first input from the user, and in response to the first input, the electronic device can display a page of scan results for at least two of the M scanned objects. That is, in the case that the scanning scene includes multiple scanning objects, the electronic device may scan the multiple scanning objects at one time, and then display the scanning result pages of the multiple scanning objects according to the user's selection.
  • the user does not need to scan one of the scan objects first, and then re-scan the next scan object after the use is completed, and the user only needs to scan once to obtain the scan result pages of the multiple scan objects , the user can operate on the multiple scan result pages respectively, which simplifies the user's scanning steps and makes the scanning method more flexible and convenient.
  • FIG. 1 is one of the schematic flowcharts of the scanning method provided by the embodiment of the present application.
  • FIG. 2 is a schematic diagram of a scanning scene provided by an embodiment of the present application.
  • FIG. 3 is one of the schematic diagrams of the scanning interface provided by the embodiment of the present application.
  • FIG. 4 is the second schematic diagram of the scanning interface provided by the embodiment of the present application.
  • FIG. 5 is the third schematic diagram of the scanning interface provided by the embodiment of the present application.
  • FIG. 6 is the fourth schematic diagram of the scanning interface provided by the embodiment of the present application.
  • FIG. 7 is the second schematic flowchart of the scanning method provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a possible scanning device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a possible electronic device provided by an embodiment of the present application.
  • FIG. 10 is a schematic hardware diagram of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a schematic flowchart of a scanning method provided by an embodiment of the present application. As shown in Figure 1, the method includes the following S101 to S104:
  • the electronic device acquires the first image in the scan preview frame.
  • the first image includes a plurality of scanning objects.
  • the scanning object may be an image carrying information such as a two-dimensional code or a barcode.
  • QR codes displayed in a relatively close area in the scene of scanning codes.
  • code, QR code connected to WiFi, etc. are placed together to meet the needs of different users.
  • FIG. 2 is a schematic diagram of a scanning scene provided by an embodiment of the present application.
  • the scanning scene includes 8 different QR codes.
  • the QR code for application 1 the QR code for application 2, the QR code for epidemic information reporting, the QR code for registered members, the QR code for application 3, the QR code for user 1’s business card, and the QR code for application 4.
  • QR code free WiFi QR code.
  • the electronic device recognizes the first image, and obtains M scanning objects.
  • M is an integer greater than 1.
  • the M scanning objects are valid scanning objects whose information can be identified by the electronic device.
  • the electronic device can recognize multiple QR codes through one scan of the user.
  • the electronic device receives the first input of the user.
  • the first input may be an input for the user to select to display at least two scan objects among the M scan objects.
  • the electronic device In response to the first input, displays a scan result page of at least two scan objects among the M scan objects.
  • the user can perform corresponding operations respectively on the scan result pages of the at least two scanned objects displayed by the electronic device.
  • the electronic device can recognize the two-dimensional code for connecting to free WiFi and the two-dimensional code for payment by application 4 .
  • the user can confirm the connection to WiFi on the scanning result page corresponding to the free WiFi QR code, and enter the payment amount on the scanning result page corresponding to the QR code for payment in App 4 to confirm the payment.
  • the electronic device can first obtain the first image in the scanning preview frame, and the first image includes a plurality of scanning objects, and then the electronic device can recognize the first image and obtain
  • the M scanned objects can then be received by the electronic device to receive a first input from the user, and in response to the first input, the electronic device can display a page of scan results for at least two of the M scanned objects. That is, in the case that the scanning scene includes multiple scanning objects, the electronic device may scan the multiple scanning objects at one time, and then display the scanning result pages of the multiple scanning objects according to the user's selection.
  • the user does not need to scan one of the scan objects first, and then re-scan the next scan object after the use is completed, and the user only needs to scan once to obtain the scan result pages of the multiple scan objects , the user can operate on the multiple scan result pages respectively, which simplifies the user's scanning steps and makes the scanning method more flexible and convenient.
  • the above-mentioned S102 may be specifically performed by the following S102a to S102d:
  • the electronic device recognizes the first image, and obtains J first scanning objects and K second scanning objects.
  • the first scan object is a complete scan object
  • the second scan object is an incomplete scan object
  • both J and K are positive integers.
  • the first scanning object may be a QR code whose information can be recognized by the electronic device according to the first part or all of the QR code
  • the second scanning object may be the electronic device that cannot recognize the information according to the first part of the QR code. QR code.
  • FIG. 3 is a schematic diagram of a scanning interface provided by an embodiment of the present application.
  • the scanning preview of the electronic device The frame includes four QR codes at the bottom left of Figure 2. If the user holds the electronic device at the bottom right of Figure 2, as shown in (b) in Figure 3, the scanning preview frame of the electronic device includes the 2 The 4 QR codes at the bottom right.
  • the electronic device adjusts the target shooting parameters of the camera, and reacquires the second image in the scan preview frame.
  • the electronic device may automatically adjust the target shooting parameters of the camera when it is determined that there is an incomplete scanned object.
  • the target shooting parameters may be the focal length, rotation angle, angle of view, shooting mode, etc. of the camera.
  • the electronic device can reduce the focal length, rotate the camera, and switch the normal shooting mode to the wide-angle mode.
  • the electronic device can adjust the target parameters of the camera so that the electronic device can automatically re-acquire the previously acquired incomplete scan object.
  • the electronic device recognizes the second image, and obtains N first scanning objects.
  • N is a positive integer.
  • the electronic device can first acquire J complete scanning objects, and then re-acquire other scanning objects that are not displayed in the first image by adjusting the target parameters of the camera.
  • the electronic device determines M different first scan objects according to the J first scan objects and the N first scan objects.
  • the electronic device can summarize the results of the two identifications, and in the case that the results obtained from the two identifications may contain duplicate scanning objects, one of the duplicate scanning objects can be retained, and Displays the complete scanned object after summarization.
  • the electronic device can automatically adjust the shooting parameters of the camera, and re-scan the scanning object in the first image.
  • the incomplete scanned object is displayed, so that the user can easily scan the scanned object without manually adjusting the orientation of the electronic device.
  • the above S102b may be specifically performed by the following S102b1:
  • the electronic device adjusts the target shooting parameters of the camera based on the K second scanning objects.
  • the electronic device may determine the target shooting parameters for adjusting the rotation of the camera according to the first side or the first relative position.
  • the first boundary is the boundary of the second scanning object
  • the first relative position is the position of the second scanning object relative to the first scanning object
  • the electronic device determines that the lower side of the two-dimensional code of the registered member is a display complete boundary, and the left side is and the right side is an incomplete boundary, the electronic device can adjust the camera upward according to the lower boundary of the QR code of the registered member.
  • the electronic device determines that the registered member is located on the right side of the QR code for payment in application 2 and above the QR code for payment in application 3, and the electronic device can also determine to adjust the camera upward.
  • FIG. 4 is a schematic diagram of a scanned page provided by this embodiment of the application, in conjunction with (a) or ( b)
  • the QR code of the registered member is not fully displayed.
  • the electronic device displays the lower part of the QR code of the registered member, and the electronic device adjusts the camera based on the QR code of the registered member. For example, by reducing the focal length of the camera of the electronic device, as shown in (b) of FIG. 4 , the QR code can be displayed in the scanning preview frame.
  • the electronic device determines that the scanned object includes an incompletely displayed scanned object, and the electronic device can accurately determine that the electronic device adjusts the camera rotation based on the incompletely displayed scanned object. Therefore, the electronic device can accurately adjust the camera and quickly locate the scanned object to be scanned.
  • the electronic device acquires the first information of each scan object in the M scan objects.
  • the first information may indicate the function of the scanned object.
  • QR code may be: collection, payment, ride, member management, account login, content reporting (check-in), adding friends, lottery, WiFi password, product traceability, etc.
  • the first information may also indicate an application corresponding to the scanned object.
  • the electronic device can obtain the function of a two-dimensional code, the application corresponding to the two-dimensional code, and the like by recognizing the two-dimensional code.
  • the electronic device can recognize that the four two-dimensional codes shown in (a) in FIG. 3 ,
  • the labels ie, the first information shown in Table 1 below were obtained.
  • the electronic device can recognize the four two-dimensional codes shown in (b) in FIG. 3 , and obtain the labels shown in Table 2 below.
  • the electronic device displays the first information of the M scanning objects.
  • the first input is an input for the user to select at least two scan objects from the M scan objects based on the displayed first information of the M objects.
  • the electronic device may display the first control and the second control.
  • the first control indicates that the user can select the two-dimensional code through the label
  • the second control indicates that the user can select the two-dimensional code through the page.
  • the electronic device can display the interface shown in FIG. 5 , the interface includes “select QR code through label” and “select QR code through page”, and the user can click "Select QR code by label", in combination with (a) in Figure 3, the electronic device can display the interface shown in (a) in Figure 6, the interface includes each two-dimensional code in (a) in Figure 3 The label corresponding to the code, the user can click one or more of them to choose to display the scanning result page of one or more QR codes.
  • the electronic device can display the interface shown in (b) in FIG. 6 , the interface includes the The label corresponding to each QR code in (b), the user can click one or more of them to choose to display the scanning result page of one or more QR codes.
  • the electronic device may first display M scan result pages of the two-dimensional code, and then the user may select which scan result page to use as required.
  • the electronic device can acquire the first information of each scanning object among the M scanning objects, and can display the first information of each scanning object obtained by scanning for the user, so that the user can select and use according to the first information. Scan result page for scanned objects.
  • the above-mentioned S104 may be specifically performed by the following S104a:
  • the electronic device displays scan result pages of at least two scan objects among the M scan objects according to the first rule.
  • the first rule is any one of the following:
  • a scan result page is updated and displayed every first preset time.
  • the electronic device displays one scan result page at a time, and then displays the next scan result page every time the first preset time elapses.
  • a scan results page is updated every 30 seconds.
  • a group of scan result pages includes P scan result pages, and P is an integer greater than or equal to 2.
  • the electronic device may display the two scanning interface pages in different regions respectively.
  • electronic equipment can also be displayed separately on different screens.
  • the electronic device displays one scan result page each time, and the user can swipe left and right or up and down on the interface to switch the scan result page.
  • the electronic device can keep displaying the scan result page, so that the user can perform operations on the scan result page.
  • the electronic device can display the scanning result interface of the identified multiple scanning objects in different ways, and the display ways are flexible and diverse.
  • FIG. 7 is a schematic flowchart of a possible scanning method provided by an embodiment of the present application. As shown in FIG. 7 , the following steps may be included.
  • the electronic device scans the direction in which the two-dimensional code is located.
  • a plurality of two-dimensional code plates are gathered together, some two-dimensional code plates are relatively large, and some two-dimensional code plates are relatively small.
  • the electronic device analyzes the image taken during scanning to obtain the scanning result.
  • the electronic device extracts the scanned complete two-dimensional code blocks and the number, and the incomplete two-dimensional code blocks and the number.
  • the electronic device determines whether an invalid two-dimensional code block occurs.
  • the electronic device adjusts the viewing angle and focal length of the camera, locates the incomplete two-dimensional code pattern, and re-shoots a complete version of the pattern.
  • the electronic device determines whether the number of valid two-dimensional code blocks is 1, and if only one complete two-dimensional code block is scanned in the scan list, execute S210, otherwise execute S206.
  • the electronic device traverses the two-dimensional code block, and parses the page pointed to by each two-dimensional code and the label to which it belongs.
  • the electronic device determines whether the user selects the two-dimensional code through the label.
  • the electronic device is displayed on the interface in the form of a label, and the user selects the desired two-dimensional code.
  • the electronic device displays the two-dimensional code information in the scan list to the user through a label, and the user can select multiple two-dimensional codes. After selection, S210 is performed.
  • the electronic device is displayed on the interface in the form of a two-dimensional code generating page, and the user selects a desired two-dimensional code.
  • the electronic device displays all the scanned pages, and the user manually selects the desired scanning result.
  • the electronic device can display the final QR code scanning result page to the user.
  • the scanning process ends.
  • the user can perform subsequent operations on the QR code scanning result page.
  • the execution subject may be a scanning device, or a control module in the scanning device for executing the scanning method.
  • a method for performing scanning by a scanning device is used as an example to describe the scanning device provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a scanning device provided by an embodiment of the present application.
  • the scanning device 800 includes: an acquisition module 801, an identification module 802, a receiving module 803, and a display module 804;
  • the acquisition module 801 is used for Acquire the first image in the scan preview frame, where the first image includes multiple scanning objects;
  • the identification module 802 is used to identify the first image acquired by the acquisition module 801, and obtain M scanning objects; M is an integer greater than 1;
  • receiving The module 803 is used for receiving the first input of the user;
  • the display module 804 is used for displaying the scanning result pages of at least two scanning objects among the M scanning objects in response to the first input received by the receiving module 803 .
  • the recognition module is specifically used for: recognizing the first image, obtaining J first scanning objects and K second scanning objects; adjusting the target shooting parameters of the camera, and re-acquiring the second image in the scanning preview frame; Two images, N first scanning objects are obtained; according to the J first scanning objects and the N first scanning objects, M different first scanning objects are determined; wherein, the first scanning objects are displayed complete scanning objects , the second scan object is an incomplete scan object, J, K and N are all integers, and J+N ⁇ M.
  • the identification module is specifically configured to: adjust target shooting parameters of the camera based on the K second scanning objects.
  • the acquisition module is further configured to acquire the first scan object of each of the M scan objects before the display module displays the scan result pages of at least two scan objects in the M scan objects in response to the first input.
  • the first information indicates the function of the scanning object; the display module is further configured to display the first information of the M scanning objects.
  • the display module is specifically configured to: display the scan result pages of at least two of the M scan objects according to the first rule; wherein, the first rule is any one of the following: every first preset time, update Display one scan result page; update and display a set of scan result pages every second preset time interval, a set of scan result pages includes P scan result pages, and P is an integer greater than or equal to 2; display one scan result page, and The scan results page is updated based on user input.
  • the first rule is any one of the following: every first preset time, update Display one scan result page; update and display a set of scan result pages every second preset time interval, a set of scan result pages includes P scan result pages, and P is an integer greater than or equal to 2; display one scan result page, and The scan results page is updated based on user input.
  • An embodiment of the present application provides a scanning device.
  • the scanning device can first acquire a first image in a scanning preview frame, where the first image includes a plurality of scanning objects, and then the scanning device can recognize the first image,
  • the scanning device may receive a first input from the user, and in response to the first input, the scanning device may display a scan result page of at least two scan objects among the M scan objects. That is to say, when the scanning scene includes multiple scanning objects, the scanning device may scan the multiple scanning objects at one time, and then display the scanning result pages of the multiple scanning objects according to the user's selection.
  • the user does not need to scan one of the scan objects first, and then re-scan the next scan object after the use is completed, and the user only needs to scan once to obtain the scan result pages of the multiple scan objects , the user can operate on the multiple scan result pages respectively, which simplifies the user's scanning steps and makes the scanning method more flexible and convenient.
  • the scanning device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the scanning device in this 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, which are not specifically limited in the embodiments of the present application.
  • the scanning device provided in this embodiment of the present application can implement each process implemented by the device described in the method embodiments of FIG. 1 to FIG. 7 . To avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, a program or instruction stored in the memory 902 and executable on the processor 901, the program Or when the instruction is executed by the processor 901, each process of the foregoing scanning method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • 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, etc. part.
  • the electronic device 1000 may also include a power source (such as 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 that the power management system can manage charging, discharging, and power functions. consumption management and other functions.
  • a power source such as a battery
  • the power management system can manage charging, discharging, and power functions. consumption management and other functions.
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the sensor 1005 is used for acquiring the first image in the scan preview frame, and the first image includes multiple scanning objects; the processor 1010 is used for recognizing the first image and obtaining M scanning objects; M is an integer greater than 1 ; the user input unit 1007 is used to receive the first input of the user; the display unit 1006 is used to display the scanning result pages of at least two scanning objects in the M scanning objects in response to the first input.
  • the processor 1010 is specifically configured to: identify the first image, 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 scanning preview frame; Recognize the second image, and obtain N first scanning objects; according to the J first scanning objects and the N first scanning objects, determine M different first scanning objects; wherein, the first scanning objects are displayed complete
  • the scanning object, the second scanning object is an incomplete scanning object, J, K and N are all integers, and J+N ⁇ M.
  • the processor 1010 is specifically configured to adjust the target shooting parameters of the camera based on the K second scanning objects.
  • the processor 1010 is further configured to acquire the first information of each scan object in the M scan objects before displaying the scan result page of at least two scan objects in the M scan objects in response to the first input , the first information indicates the function of the scanning object; the display unit 1006 is further configured to display the first information of the M scanning objects.
  • the display unit 1006 is specifically configured to display the scanning result pages of at least two scanning objects among the M scanning objects according to a first rule; wherein, the first rule is any one of the following: every first preset time, Update and display one scan result page; update and display a set of scan result pages every second preset time interval, a set of scan result pages includes P scan result pages, and P is an integer greater than or equal to 2; display one scan result page, And according to the user's input, the scan result page is updated and displayed.
  • the first rule is any one of the following: every first preset time, Update and display one scan result page; update and display a set of scan result pages every second preset time interval, a set of scan result pages includes P scan result pages, and P is an integer greater than or equal to 2; display one scan result page, And according to the user's input, the scan result page is updated and displayed.
  • An embodiment of the present application provides an electronic device.
  • the electronic device can first acquire a first image in a scan preview frame, where the first image includes a plurality of scanning objects, and then the electronic device can recognize the first image,
  • the electronic device may receive a first input from the user, and in response to the first input, the electronic device may display a scan result page of at least two scan objects among the M scan objects. That is, in the case that the scanning scene includes multiple scanning objects, the electronic device may scan the multiple scanning objects at one time, and then display the scanning result pages of the multiple scanning objects according to the user's selection.
  • the user does not need to scan one of the scan objects first, and then re-scan the next scan object after the use is completed, and the user only needs to scan once to obtain the scan result pages of the multiple scan objects , the user can operate on the multiple scan result pages respectively, which simplifies the user's scanning steps and makes the scanning method more flexible and convenient.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1006 may include a display panel 1061, which 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 called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1010.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing scanning method embodiment can be implemented, and the same can be achieved.
  • the technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, 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 of the foregoing scanning method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

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

本申请公开了一种扫描方法、装置及电子设备。该方法包括:获取扫描预览框中的第一图像,第一图像中包括多个扫描对象;识别第一图像,得到M个扫描对象;M为大于1的整数;接收用户的第一输入;响应于第一输入,显示该M个扫描对象中至少两个扫描对象的扫描结果页面。

Description

扫描方法、装置及电子设备
相关申请的交叉引用
本申请主张在2021年3月12日在中国提交的中国专利申请号202110271679.8的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种扫描方法、装置及电子设备。
背景技术
随着通信技术的发展,不同功能的二维码也越来越多,二维码的使用场景越来越多。例如,用户可以使用电子设备,通过扫描二维码进行支付、注册、连接网络、登录安全验证等。
通常,在用户使用电子设备扫描二维码时一次识别一个二维码。在用户使用电子设备扫描过程中,若摄像头的扫描区域内包括多个二维码,一种方式电子设备随机扫描其中一个,选择的二维码不是用户期望的二维码,可能需要用户重新扫描;要么电子设备直接显示扫描错误,提示用户重新扫描。
然而,若用户需要扫描当前扫描场景中的多个二维码,用户需要先成功扫描其中一个二维码,根据该二维码操作完成之后,再扫描另一个二维码。如此,使得在需要使用多个二维码时,二维码的扫描过程比较繁琐。
发明内容
本申请实施例的目的是提供一种扫描方法、装置及电子设备,能够解决二维码的扫描过程比较繁琐的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种扫描方法,该方法包括:获取扫描预览框中的第一图像,该第一图像中包括多个扫描对象;识别该第一图像,得到M个扫描对象; M为大于1的整数;接收用户的第一输入;响应于该第一输入,显示该M个扫描对象中至少两个扫描对象的扫描结果页面。
第二方面,本申请实施例提供了一种扫描装置,该扫描装置包括:获取模块、识别模块、接收模块和显示模块;该获取模块,用于获取扫描预览框中的第一图像,该第一图像中包括多个扫描对象。该识别模块,用于识别该获取模块获取的该第一图像,得到M个扫描对象;M为大于1的整数。该接收模块,用于接收用户的第一输入。该显示模块,用于响应于接收模块接收的该第一输入,显示该M个扫描对象中至少两个扫描对象的扫描结果页面。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,电子设备在扫描过程中,首先可以获取扫描预览框中的第一图像,该第一图像中包括了多个扫描对象,然后电子设备可以识别第一图像,得到M个扫描对象,然后电子可以接收用户的第一输入,响应于第一输入,电子设备可以显示该M个扫描对象中至少两个扫描对象的扫描结果页面。也就是说,在扫描场景中包括多个扫描对象的情况下,电子设备可以一次扫描多个扫描对象,然后根据用户的选择显示多个扫描对象的扫描结果页面。在用户需要扫描多个扫描对象的情况下,用户无需先扫描其中一个扫描对象,在使用完成之后,再重新扫描下一个扫描对象,仅需用户扫描一次即可获取多个扫描对象的扫描结果页面,用户可以分别在该多个扫描结果页面进行操作,简化了用户的扫描步骤,扫描方式更加灵活便捷。
附图说明
图1为本申请实施例提供的扫描方法的流程示意图之一;
图2为本申请实施例提供的扫描场景示意图;
图3为本申请实施例提供的扫描界面示意图之一;
图4为本申请实施例提供的扫描界面示意图之二;
图5为本申请实施例提供的扫描界面示意图之三;
图6为本申请实施例提供的扫描界面示意图之四;
图7为本申请实施例提供的扫描方法的流程示意图之二;
图8为本申请实施例提供的一种扫描装置可能的结构示意图;
图9为本申请实施例提供的一种电子设备可能的结构示意图;
图10为本申请实施例提供的一种电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的扫描方法进行详细地说明。
图1为本申请实施例提供的一种扫描方法的流程示意图。如图1中所示,该方法包括 下述的S101至S104:
S101、电子设备获取扫描预览框中的第一图像。
其中,第一图像中包括多个扫描对象。
需要说明的是,本申请实施例中,扫描对象可以为二维码、条形码等携带信息的图像。
可以理解,在实际应用中,用户经常遇到在扫码的场景中,距离较近的区域展示了多个二维码,例如在餐厅用餐的情况下,商家会将不同应用的收款二维码、连接WiFi的二维码等放置在一起,以满足不同用户的需求。
示例性地,图2为本申请实施例提供的一种扫描场景示意图。如图2中所示,该扫描场景中,包括8个不同的二维码。分别为应用1收款二维码、应用2收款二维码、疫情信息填报二维码、注册会员二维码、应用3收款二维码、用户1名片二维码、应用4收款二维码、免费WiFi二维码。
可以理解,用户可以根据自己的需要,手持电子设备打开扫描二维码工具或者扫描软件,对准需要扫描的二维码所在的方向,触发电子设备进行二维码的扫描和识别。
S102、电子设备识别第一图像,得到M个扫描对象。
其中,M为大于1的整数。
需要说明的是,该M个扫描对象为电子设备可以识别到信息的有效扫描对象。
也就是说,电子设备可以通过用户的一次扫描识别多个二维码。
S103、电子设备接收用户的第一输入。
示例性地,第一输入可以为用户选择显示M个扫描对象中的至少两个扫描对象的输入。
S104、响应于第一输入,电子设备显示M个扫描对象中至少两个扫描对象的扫描结果页面。
可以理解,用户可以在电子设备显示的至少两个扫描对象的扫描结果页面中分别执行相应的操作。
示例性地,电子设备可以识别到连接免费WiFi二维码和应用4收款二维码。用户可以在免费WiFi二维码对应的扫描结果页面确定连接WiFi,并在应用4收款二维码对应的扫描结果页面输入支付金额确认支付。
本申请实施例提供的扫描方法,电子设备在扫描过程中,首先可以获取扫描预览框中的第一图像,该第一图像中包括了多个扫描对象,然后电子设备可以识别第一图像,得到M个扫描对象,然后电子可以接收用户的第一输入,响应于第一输入,电子设备可以显示M个扫描对象中至少两个扫描对象的扫描结果页面。也就是说,在扫描场景中包括多个扫描对象的情况下,电子设备可以一次扫描多个扫描对象,然后根据用户的选择显示多个扫描对象的扫描结果页面。在用户需要扫描多个扫描对象的情况下,用户无需先扫描其中一个扫描对象,在使用完成之后,再重新扫描下一个扫描对象,仅需用户扫描一次即可获取多个扫描对象的扫描结果页面,用户可以分别在该多个扫描结果页面进行操作,简化了用户的扫描步骤,扫描方式更加灵活便捷。
可选地,本申请实施例提供的扫描方法中,上述的S102具体可以通过下述的S102a至S102d执行:
S102a、电子设备识别第一图像,得到J个第一扫描对象和K个第二扫描对象。
其中,第一扫描对象为显示完整的扫描对象,第二扫描对象为显示不完整的扫描对象,J和K均为正整数。
示例性地,第一扫描对象可以为电子设备根据二维码的第一部分或全部,可以识别到信息的二维码,第二扫描对象为电子设备根据获取二维码的第一部分无法识别到信息的二维码。
图3为本申请实施例提供的一种扫描界面示意图,结合图2,若用户手持电子设备对准的是图2的左下方,如图3中的(a)所示,电子设备的扫描预览框中包括图2左下方的4个二维码,若用户手持电子设备对准的是图2的右下方,则如图3中的(b)所示,电子设备的扫描预览框中包括图2右下方的4个二维码。
S102b、电子设备调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像。
示例性地,电子设备可以在判断存在不完整的扫描对象的情况下,自动调整摄像头的目标拍摄参数。
可选地,目标拍摄参数可以为摄像头的焦距、转动角度、视角、拍摄模式等。
例如,电子设备可以调小焦距、转动摄像头朝向、将普通拍摄模式切换为广角模式。
也就是说,在电子设备确定扫描预览框中包括显示不完整的扫描对象的情况下,电子 设备可以通过调整摄像头的目标参数,使得电子设备可以自动重新获取之前获取的不完整的扫描对象。
S102c、电子设备识别第二图像,得到N个第一扫描对象。
其中,N为正整数。
可以理解,电子设备在识别第一图像之后,可以先获取J个完整的扫描对象,然后通过调整摄像头的目标参数,重新获取第一图像中未显示完整的其他扫描对象。
S102d、电子设备根据该J个第一扫描对象和该N个第一扫描对象,确定M个不同的第一扫描对象。
其中,J+N≥M。
可以理解,电子设备在两次识别之后,可以将两次识别的结果进行汇总,在两次识别得到的结果可能存在重复的扫描对象的情况下,可以保留重复的扫描对象中的其中一个,并显示汇总后的完整的扫描对象。
基于该方案,电子设备在对扫描对象的扫描过程中,若确定第一图像中扫描到的扫描对象包括显示不完整的扫描对象,电子设备可以自动调整摄像头的拍摄参数,重新扫描第一图像中显示不完整的扫描对象,从而使得用户无需手动调整电子设备的方位,即可方便地扫描到扫描对象。
可选地,本申请实施例提供的扫描方法中,上述的S102b具体可以通过下述的S102b1执行:
S102b1、电子设备基于K个第二扫描对象,调整摄像头的目标拍摄参数。
具体地,电子设备可以根据第一侧边或第一相对位置,确定调整摄像头转动的目标拍摄参数。
其中,第一边界为第二扫描对象的边界,第一相对位置为第二扫描对象相对于第一扫描对象的位置。
示例性地,以图3中的(a)中的注册会员的二维码为第二扫描对象进行说明,电子设备确定注册会员的二维码的下侧边是显示完整的边界,左侧边和右侧边为显示不完整的边界,则电子设备可以根据注册会员的二维码的下边界确定可以将摄像头向上调整。或者,电子设备确定注册会员位于应用2收款二维码的右侧、位于应用3收款二维码的上方,电 子设备也可以确定将摄像头向上方调整。
上述示例以目标参数为摄像头的方向为例,电子设备也可以调整摄像头的焦距,示例性的,图4为本申请实施例提供的一种扫描页面示意图,结合图3中的(a)或(b)注册会员的二维码显示不全,如图4中的(a)所示,电子设备显示注册会员的二维码的下半部分,则电子设备基于该注册会员的二维码,调整摄像头的拍摄焦距,例如调小电子设备的摄像头的焦距,则图4中的(b)所示,使得该二维码可以全部显示在扫描预览框中。
基于该方案,电子设备在对扫描对象的扫描过程中,在确定扫描到的扫描对象包括显示不完整的扫描对象,则电子设备可以基于显示不完整的扫描对象,准确地确定电子设备调整摄像头转动的目标拍摄参数,从而使得电子设备可以精准调整摄像头,快速定位到需要扫描的扫描对象。
可选地,本申请实施例提供的扫描方法中,在上述的S104之前,还可以包括下述S105和S106:
S105、电子设备获取M个扫描对象中的每个扫描对象的第一信息。
其中,第一信息可以指示扫描对象的功能。
示例性地,一个二维码的功能可以为:收款、付款、乘车、会员管理、账号登录、内容填报(签到)、加好友、抽奖、WiFi密码、商品溯源等。
可选地,第一信息还可以指示扫描对象对应的应用。
需要说明的是,电子设备可以通过对二维码的识别,获取一个二维码的功能、二维码对应的应用等。
示例性地,以第一信息为二维码的标签为例进行说明,结合图3中的(a),电子设备可以识别,图3中的(a)中所示的4个二维码,得到下述表1中所示的标签(即第一信息)。
表1
编号 标签
1 应用2、收款
2 应用3、收款
3 疫情、填报信息
4 会员、注册
结合图3中的(b),电子设备可以识别图3中的(b)中所示的4个二维码,得到下述表2中所示的标签。
表2
编号 标签
1 会员、注册
2 应用3、收款
3 应用4、收款
4 WiFi
S106、电子设备显示M个扫描对象的第一信息。
其中,第一输入为用户基于显示的M个对象的第一信息,从M个扫描对象中选择至少两个扫描对象的输入。
可选地,电子设备可以在获取第一信息之后,可以显示第一控件和第二控件。其中,第一控件指示用户可以通过标签选择二维码,第二控件指示用户可以通过页面选择二维码。
示例性地,电子设备在获取第一信息(标签)之后,可以显示图5所示的界面,该界面中包括“通过标签选择二维码”、“通过页面选择二维码”,用户可以点击“通过标签选择二维码”,结合图3中的(a),电子设备可以显示图6中的(a)所示的界面,界面中包括图3中的(a)中的每个二维码对应的标签,用户可以点击其中的一个或多个选择显示一个或多个二维码的扫描结果页面。同样地,结合图3中的(b),在用户可以点击“通过标签选择二维码”之后,在电子设备可以显示图6中的(b)所示的界面,界面中包括图3中的(b)中的每个二维码对应的标签,用户可以点击其中的一个或多个选择显示一个或多个二维码的扫描结果页面。
若用户对第二控件操作,则电子设备可以先显示M个二维码的扫描结果页面,然后用户可以根据需要选择使用哪一个扫描结果页面。
基于该方案,电子设备可以获取M个扫描对象中的每个扫描对象的第一信息,可以为用户显示扫描得到的每个扫描对象的第一信息,以供用户可以根据第一信息选择使用的扫描对象的扫描结果页面。
可选地,本申请实施例提供的扫描方法中,上述的S104具体可以通过下述的S104a执行:
S104a、电子设备按照第一规则显示M个扫描对象中至少两个扫描对象的扫描结果页面。
其中,第一规则为以下任意一项:
(1)每间隔第一预设时间,更新显示一个扫描结果页面。
可以理解,电子设备每次显示一个扫描结果页面,然后每过第一预设时间,显示下一个扫描结果页面。
示例性地,每30秒更新一个扫描结果页面。
(2)每间隔第二预设时间,更新显示一组扫描结果界面。
其中,一组扫描结果页面包括P个扫描结果页面,P为大于或等于2的整数。
示例性地,以每次显示两个扫描结果界面为例,电子设备可以在不同区域分别显示该两个扫描界面页面,例如,电子设备可以分屏显示该两个扫描页面,电子设备(多面屏电子设备)也可以在不同的屏幕上分别显示。
(3)显示一个扫描结果页面,并根据用户的输入更新显示扫描结果页面。
示例性地,电子设备每次显示一个扫描结果页面,用户可以在界面上左右滑动或者上下滑动,切换扫描结果页面。
需要说明的是,在用户选中一个扫描结果页面之后,电子设备可以保持显示该扫描结果页面,以使得用户在该扫描结果页面上进行操作。
基于该方案,电子设备可以采用不同的方式显示识别到的多个扫描对象的扫描结果界面,显示方式灵活多样。
示例:
图7为本申请实施例提供的一种可能的扫描方法流程示意图,如图7所示,可以包括下述的步骤。
S201、电子设备对准二维码所在的方向进行扫描。
示例性地,二维码所在的方向有多个二维码牌聚集在一起,有的二维码牌比较大,有的二维码牌比较小。
电子设备将扫描时拍摄的图进行分析,得到扫描结果。
S202、电子设备根据扫描结果,提取出扫描到的完整的二维码块和个数、不完整的二维码块和个数。
S203、电子设备判断是否出现无效二维码块。
若此次扫描过程中扫描到的二维码块中包括不完整二维码图案,则执行S204,反之执行S205。
S204、电子设备调节摄像头的视角和焦距,对不完整的二维码图案进行定位并重新拍摄该图案的完整版本。
S205、电子设备判断有效二维码块数是否为1,若扫描列表中只扫描到一个完整的二维码块,则执行S210,反之执行S206。
S206、电子设备遍历二维码块,解析每个二维码指向的页面和所属的标签。
S207、电子设备确定用户是否通过标签选择二维码。
即,由用户选择期望的展示方式,如果选择“通过标签选择二维码”,则执行S208;如果选择“通过页面选择二维码”,则执行S209。
S208、电子设备以标签的方式展示在界面,由用户选择期望的二维码。
可以理解,电子设备将扫描列表中的二维码信息通过标签展示给用户,由用户进行选择,用户可以选择多个二维码,选择完后执行S210。
S209、电子设备以二维码生成页面的方式展示在界面,由用户选择期望的二维码。
可以理解,电子设备将扫描到的所有页面进行展示,由用户手动选择期望的扫描结果。
S210、电子设备展示最终界面。
电子设备可以将最终的二维码扫描结果页面显示给用户。扫描过程结束。
可以理解,用户可以在二维码扫描结果页面上进行后续的操作。
需要说明的是,本申请实施例提供的扫描方法,执行主体可以为扫描装置,或者该扫描装置中的用于执行扫描的方法的控制模块。本申请实施例中以扫描装置执行扫描的方法为例,说明本申请实施例提供的扫描的装置。
图8为本申请实施例提供的一种扫描装置的结构示意图,如图8所示,扫描装置800包括:获取模块801、识别模块802、接收模块803和显示模块804;获取模块801,用于 获取扫描预览框中的第一图像,第一图像中包括多个扫描对象;识别模块802,用于识别获取模块801获取的第一图像,得到M个扫描对象;M为大于1的整数;接收模块803,用于接收用户的第一输入;显示模块804,用于响应于接收模块803接收的第一输入,显示M个扫描对象中至少两个扫描对象的扫描结果页面。
可选地,识别模块具体用于:识别第一图像,得到J个第一扫描对象和K个第二扫描对象;调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像;识别第二图像,得到N个第一扫描对象;根据该J个第一扫描对象和该N个第一扫描对象,确定M个不同的第一扫描对象;其中,第一扫描对象为显示完整的扫描对象,第二扫描对象为显示不完整的扫描对象,J、K和N均为整数,J+N≥M。
可选地,识别模块具体用于:基于K个第二扫描对象,调整摄像头的目标拍摄参数。
可选地,获取模块,还用于在显示模块响应于第一输入,显示M个扫描对象中至少两个扫描对象的扫描结果页面之前,获取M个扫描对象中的每个扫描对象的第一信息,第一信息指示扫描对象的功能;显示模块,还用于显示M个扫描对象的第一信息。
可选地,显示模块具体用于:按照第一规则显示M个扫描对象中至少两个扫描对象的扫描结果页面;其中,第一规则为以下任意一项:每间隔第一预设时间,更新显示一个扫描结果页面;每间隔第二预设时间,更新显示一组扫描结果页面,一组扫描结果页面包括P个扫描结果页面,P为大于或等于2的整数;显示一个扫描结果页面,并根据用户的输入更新显示扫描结果页面。
本申请实施例提供一种扫描装置,扫描装置在扫描过程中,首先可以获取扫描预览框中的第一图像,该第一图像中包括了多个扫描对象,然后扫描装置可以识别第一图像,得到M个扫描对象,然后扫描装置可以接收用户的第一输入,响应于第一输入,扫描装置可以显示M个扫描对象中的至少两个扫描对象的扫描结果页面。也就是说,在扫描场景中包括多个扫描对象的情况下,扫描装置可以一次扫描多个扫描对象,然后根据用户的选择显示多个扫描对象的扫描结果页面。在用户需要扫描多个扫描对象的情况下,用户无需先扫描其中一个扫描对象,在使用完成之后,再重新扫描下一个扫描对象,仅需用户扫描一次即可获取多个扫描对象的扫描结果页面,用户可以分别在该多个扫描结果页面进行操作,简化了用户的扫描步骤,扫描方式更加灵活便捷。
本申请实施例中的扫描装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的扫描装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的扫描装置能够实现图1至图7的方法实施例中说明装置实现的各个过程,为避免重复,这里不再赘述。
可选地,如图9所示,本申请实施例还提供一种电子设备900,包括处理器901,存储器902,存储在存储器902上并可在处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述扫描方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图10为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,传感器1005,用于获取扫描预览框中的第一图像,第一图像中包括多个扫描对象;处理器1010,用于识别第一图像,得到M个扫描对象;M为大于1的整数;用户输入单元1007,用于接收用户的第一输入;显示单元1006,用于响应于第一输入,显示M扫描对象中至少两个扫描对象的扫描结果页面。
可选地,处理器1010,具体用于:识别第一图像,得到J个第一扫描对象和K个第二扫描对象;调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像;识别第二图像,得到N个第一扫描对象;根据该J个第一扫描对象和该N个第一扫描对象,确定M个不同的第一扫描对象;其中,第一扫描对象为显示完整的扫描对象,第二扫描对象为显示不完整的扫描对象,J、K和N均为整数,J+N≥M。
可选地,处理器1010,具体用于基于K个第二扫描对象,调整摄像头的目标拍摄参数。
可选地,处理器1010,还用于在响应于第一输入,显示M个扫描对象中至少两个扫描对象的扫描结果页面之前,获取M个扫描对象中的每个扫描对象的第一信息,第一信息指示扫描对象的功能;显示单元1006,还用于显示M个扫描对象的第一信息。
可选地,显示单元1006,具体用于按照第一规则显示M个扫描对象中至少两个扫描对象的扫描结果页面;其中,第一规则为以下任意一项:每间隔第一预设时间,更新显示一个扫描结果页面;每间隔第二预设时间,更新显示一组扫描结果页面,一组扫描结果页面包括P个扫描结果页面,P为大于或等于2的整数;显示一个扫描结果页面,并根据用户的输入更新显示扫描结果页面。
本申请实施例提供一种电子设备,电子设备在扫描过程中,首先可以获取扫描预览框中的第一图像,该第一图像中包括了多个扫描对象,然后电子设备可以识别第一图像,得到M个扫描对象,然后电子设备可以接收用户的第一输入,响应于第一输入,电子设备可以显示M个扫描对象中至少两个扫描对象的扫描结果页面。也就是说,在扫描场景中包括多个扫描对象的情况下,电子设备可以一次扫描多个扫描对象,然后根据用户的选择显示多个扫描对象的扫描结果页面。在用户需要扫描多个扫描对象的情况下,用户无需先扫描其中一个扫描对象,在使用完成之后,再重新扫描下一个扫描对象,仅需用户扫描一次即可获取多个扫描对象的扫描结果页面,用户可以分别在该多个扫描结果页面进行操作,简化了用户的扫描步骤,扫描方式更加灵活便捷。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元1007包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述扫描方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述扫描方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是, 本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (12)

  1. 一种扫描方法,所述方法包括:
    获取扫描预览框中的第一图像,所述第一图像中包括多个扫描对象;
    识别所述第一图像,得到M个扫描对象;M为大于1的整数;
    接收用户的第一输入;
    响应于所述第一输入,显示所述M个扫描对象中至少两个扫描对象的扫描结果页面。
  2. 根据权利要求1所述的方法,其中,所述识别所述第一图像,得到M个扫描对象,包括:
    识别所述第一图像,得到J个第一扫描对象和K个第二扫描对象;
    调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像;
    识别所述第二图像,得到N个第一扫描对象;
    根据所述J个第一扫描对象和所述N个第一扫描对象,确定M个不同的第一扫描对象;
    其中,所述第一扫描对象为显示完整的扫描对象,所述第二扫描对象为显示不完整的扫描对象,J、K和N均为整数,J+N≥M。
  3. 根据权利要求2所述的方法,其中,所述调整摄像头的目标拍摄参数,包括:
    基于所述K个第二扫描对象,调整摄像头的目标拍摄参数。
  4. 根据权利要求1所述的方法,其中,响应于所述第一输入,显示所述M个扫描对象中至少两个扫描对象的扫描结果页面之前,所述方法还包括:
    获取所述M个扫描对象中的每个扫描对象的第一信息,所述第一信息指示扫描对象的功能;
    显示所述M个扫描对象的第一信息。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述显示所述M个扫描对象中至少两个扫描对象的扫描结果页面,包括:
    按照第一规则显示所述M个扫描对象中至少两个扫描对象的扫描结果页面;
    其中,所述第一规则为以下任意一项:
    每间隔第一预设时间,更新显示一个扫描结果页面;
    每间隔第二预设时间,更新显示一组扫描结果页面,一组扫描结果页面包括P个扫描结果页面,P为大于或等于2的整数;
    显示一个扫描结果页面,并根据用户的输入更新显示扫描结果页面。
  6. 一种扫描装置,所述扫描装置包括:获取模块、识别模块、接收模块和显示模块;
    所述获取模块,用于获取扫描预览框中的第一图像,所述第一图像中包括多个扫描对象;
    所述识别模块,用于识别所述获取模块获取的所述第一图像,得到M个扫描对象;M为大于1的整数;
    所述接收模块,用于接收用户的第一输入;
    所述显示模块,用于响应于接收模块接收的所述第一输入,显示所述M个扫描对象中至少两个扫描对象的扫描结果页面。
  7. 根据权利要求6所述的扫描装置,其中,所述识别模块具体用于:
    识别所述第一图像,得到J个第一扫描对象和K个第二扫描对象;
    调整摄像头的目标拍摄参数,重新获取扫描预览框中的第二图像;
    识别所述第二图像,得到N个第一扫描对象;
    根据所述J个第一扫描对象和所述N个第一扫描对象,确定M个不同的第一扫描对象;
    其中,所述第一扫描对象为显示完整的扫描对象,所述第二扫描对象为显示不完整的扫描对象,J、K和N均为整数,J+N≥M。
  8. 根据权利要求7所述的扫描装置,其中,所述识别模块具体用于:
    基于所述K个第二扫描对象,调整摄像头的目标拍摄参数。
  9. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5任一项所述的扫描方法的步骤。
  10. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令 被处理器执行时实现如权利要求1至5任一项所述的扫描方法的步骤。
  11. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至5任一项所述的扫描方法。
  12. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5任一项所述的扫描方法。
PCT/CN2022/079926 2021-03-12 2022-03-09 扫描方法、装置及电子设备 WO2022188803A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110271679.8A CN113128244A (zh) 2021-03-12 2021-03-12 扫描方法、装置及电子设备
CN202110271679.8 2021-03-12

Publications (1)

Publication Number Publication Date
WO2022188803A1 true WO2022188803A1 (zh) 2022-09-15

Family

ID=76773084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079926 WO2022188803A1 (zh) 2021-03-12 2022-03-09 扫描方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113128244A (zh)
WO (1) WO2022188803A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128244A (zh) * 2021-03-12 2021-07-16 维沃移动通信有限公司 扫描方法、装置及电子设备
CN113988236A (zh) * 2021-10-28 2022-01-28 芜湖雄狮汽车科技有限公司 信息识别码的显示方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609452A (zh) * 2017-09-29 2018-01-19 联想(北京)有限公司 处理方法及装置
WO2018083560A1 (en) * 2016-11-04 2018-05-11 Origami Lab Srl Method to access a multimedia content
CN110674662A (zh) * 2019-09-17 2020-01-10 维沃移动通信有限公司 一种扫描方法及终端设备
CN111553673A (zh) * 2020-05-07 2020-08-18 支付宝(杭州)信息技术有限公司 一种基于图形码识别的信息展示方法及装置
CN113128244A (zh) * 2021-03-12 2021-07-16 维沃移动通信有限公司 扫描方法、装置及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018083560A1 (en) * 2016-11-04 2018-05-11 Origami Lab Srl Method to access a multimedia content
CN107609452A (zh) * 2017-09-29 2018-01-19 联想(北京)有限公司 处理方法及装置
CN110674662A (zh) * 2019-09-17 2020-01-10 维沃移动通信有限公司 一种扫描方法及终端设备
CN111553673A (zh) * 2020-05-07 2020-08-18 支付宝(杭州)信息技术有限公司 一种基于图形码识别的信息展示方法及装置
CN113128244A (zh) * 2021-03-12 2021-07-16 维沃移动通信有限公司 扫描方法、装置及电子设备

Also Published As

Publication number Publication date
CN113128244A (zh) 2021-07-16

Similar Documents

Publication Publication Date Title
WO2022188803A1 (zh) 扫描方法、装置及电子设备
CN111612009B (zh) 文本识别方法、装置、设备和存储介质
US20160028741A1 (en) Methods and devices for verification using verification code
WO2022007926A1 (zh) 显示方法、装置、电子设备和可读存储介质
WO2022111394A1 (zh) 信息处理方法、装置和电子设备
CN104363400A (zh) 一种扫描本地二维码的方法及装置
WO2022057791A1 (zh) 消息回复方法、装置和电子设备
EP4228242A1 (en) Image processing method and apparatus
CN112099704A (zh) 信息显示方法、装置、电子设备和可读存储介质
US10104091B2 (en) Authenticating apparatus, authenticating system and storage medium
CN113486785A (zh) 基于深度学习的视频换脸方法、装置、设备及存储介质
CN112269522A (zh) 图像处理方法、装置、电子设备和可读存储介质
CN109359582A (zh) 信息搜索方法、信息搜索装置及移动终端
CN112699363A (zh) 图形码识别方法、装置及电子设备
US8702001B2 (en) Apparatus and method for acquiring code image in a portable terminal
CN105279466B (zh) 图形码识别方法及装置、图形码生成方法及装置
CN112287713A (zh) 二维码识别方法及装置
CN112734661A (zh) 图像处理方法及装置
WO2023103901A1 (zh) 应用管理方法、装置和电子设备
WO2022156817A1 (zh) 内容提取方法、装置
CN112333389B (zh) 图像显示控制方法、装置及电子设备
CN112183149B (zh) 图形码处理方法及装置
CN111813304A (zh) 图像显示方法及装置
CN112561809A (zh) 图像处理方法、装置及设备
CN112785312A (zh) 信息共享方法、装置、电子设备和可读存储介质

Legal Events

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

Ref document number: 22766325

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22766325

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 22766325

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 04.03.2024)