WO2023216830A1 - 扫码方法、电子设备及可读存储介质 - Google Patents
扫码方法、电子设备及可读存储介质 Download PDFInfo
- Publication number
- WO2023216830A1 WO2023216830A1 PCT/CN2023/089446 CN2023089446W WO2023216830A1 WO 2023216830 A1 WO2023216830 A1 WO 2023216830A1 CN 2023089446 W CN2023089446 W CN 2023089446W WO 2023216830 A1 WO2023216830 A1 WO 2023216830A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- display
- camera
- code
- image
- interface
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/245—Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning
Definitions
- This application relates to the field of data processing technology, and in particular to a code scanning method, electronic equipment and computer-readable storage media.
- buttons such as QR codes, barcodes, etc.
- the screen of the electronic device is off and the user needs to scan a QR code to complete the payment.
- the user needs to light up and unlock the screen of the electronic device, find the application corresponding to the QR code, run the application and turn on its scanning function to scan the QR code.
- an electronic device runs an application, such as playing a video, and the user needs to scan a QR code to complete payment. To do this, the user needs to exit the running application, find the application corresponding to the QR code, run the application and turn on its scanning function to scan the QR code.
- This application provides a code scanning method, electronic equipment, program products and computer-readable storage media.
- the purpose is to realize that there is no need for the user to perform many operations on the electronic equipment.
- the electronic equipment recognizes the type of graphic identification code and calls the corresponding graphic identification code. Scan the QR code interface of the application to complete the QR code scanning and improve the QR code scanning efficiency.
- this application provides a code scanning method applied to an electronic device.
- the electronic device includes a first camera, a second camera and a display screen.
- the first camera is in a normally open state; wherein the code scanning method includes: obtaining The first image collected by the first camera; determine that the first image includes a graphic identification code; call the second camera to run to collect the image; obtain the second image collected by the second camera, the resolution of the second image is higher than the resolution of the first image rate; determine the display interface of the application program corresponding to the graphic identification code in the second image; control the display screen to display the display interface of the application program corresponding to the graphic identification code.
- the first camera is in a normally open state and starts running to collect the first image after the electronic device is turned on.
- the electronic device calls the second camera to run to collect images, and after determining the display interface of the application program corresponding to the graphic identification code in the second image, controls the display screen to display the display interface of the application program corresponding to the graphic identification code.
- determining the display interface of the application program corresponding to the graphic identification code in the second image includes: parsing the graphic identification code in the second image to obtain graphic identification code information; identifying the graphic identification code information to obtain The display interface of the application corresponding to the graphic identification code.
- the method further includes: determining that the first image includes multiple graphic identification codes; locating each graphic identification code included in the second image; and targeting the located second Each graphic identification code in the image determines the display interface of the application program corresponding to the graphic identification code; the display screen is controlled to simultaneously display the display interface of the application program corresponding to each graphic identification code.
- the display interface of the application program corresponding to the multiple QR codes in the first image can be displayed on the display screen, further improving the Improve scanning efficiency.
- calling the second camera to collect images includes: calling the second camera to collect consecutive multiple frames of images.
- the electronic device calls the second camera to collect consecutive multiple frames of images, and can obtain the display interface of the application program corresponding to multiple QR codes in the multiple frame images, which can be displayed on the display screen. Further, Improved code scanning efficiency.
- controlling the display screen to display the display interface of the application program corresponding to the graphic identification code includes: controlling the display screen to simultaneously display the display interface of the application program corresponding to the graphic identification code in each frame of image collected by the second camera. interface.
- the first camera and the second camera are both front cameras or rear cameras of the electronic device.
- the senor corresponding to the first camera is a low-power sensor
- the first camera and the second camera are the same camera, or they are different cameras.
- obtaining the first image collected by the first camera includes: obtaining the first image collected by the first camera when the electronic device is in any interface with the screen on, the screen off, or the screen off.
- controlling the display screen to display the display interface of the application program corresponding to the graphic identification code includes: controlling the display screen to be lit and displaying the desktop unlocking interface; in response to the first operation, controlling the display screen to display the graphic identification code The display interface of the application corresponding to the code, the first operation is used to unlock the desktop unlock interface.
- controlling the display screen to display the display interface of the application program corresponding to the graphic identification code includes: controlling the display screen to display the desktop unlocking interface; in response to the first operation, controlling the display screen to display the application program corresponding to the graphic identification code. display interface, the first operation is to unlock the desktop unlock interface.
- controlling the display screen to display the display interface of the application program corresponding to the graphic identification code includes: controlling the display screen to hide the interface of the first application program and display the display interface of the application program corresponding to the graphic identification code;
- An application program is an application program in a running state of the electronic device.
- the image signal processor ISP or the application processor AP obtains the second image collected by the second camera; determines the display interface of the application program corresponding to the graphic identification code in the second image; and controls the display screen to display the graphic identification code corresponding The display interface of the application.
- the method further includes: controlling the display screen to display a code scanning preview interface.
- the code scanning preview interface is used to display the second image collected by the second camera.
- this application provides an electronic device, which is characterized in that it includes: one or more processors, a memory, a first camera, a second camera and a display screen; the first camera is in a normally open state; the memory, the third A camera, a second camera and a display screen are coupled to one or more processors.
- the memory is used to store computer program codes.
- the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes: Scan the QR code for any item in the first aspect.
- this application provides a computer-readable storage medium for storing a computer program.
- the computer program When executed, it is specifically used to implement any of the code scanning methods in the first aspect.
- the present application provides a computer program product.
- the computer program product When the computer program product is run on a computer, it causes the computer to execute any of the code scanning methods in the first aspect.
- Figure 1 is an application scenario diagram of the code scanning method provided by the embodiment of the present application.
- Figure 2 is another application scenario diagram of the code scanning method provided by the embodiment of the present application.
- Figure 3 is another application scenario diagram of the code scanning method provided by the embodiment of the present application.
- Figure 4 is another application scenario diagram of the code scanning method provided by the embodiment of the present application.
- FIG. 5 is a hardware structure diagram of an electronic device provided by an embodiment of the present application.
- Figure 6 is a signaling diagram of the code scanning method provided by the embodiment of the present application.
- Figure 7 is another application scenario diagram of the code scanning method provided by the embodiment of the present application.
- Figure 8 is another signaling diagram of the code scanning method provided by the embodiment of the present application.
- Figure 9 is another application scenario diagram of the code scanning method provided by the embodiment of the present application.
- Figure 10 is another signaling diagram of the code scanning method provided by the embodiment of the present application.
- one or more refers to one, two or more than two; "and/or” describes the association relationship of associated objects, indicating that three relationships can exist; for example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural.
- the character "/" generally indicates that the related objects are in an "or” relationship.
- buttons such as QR codes, barcodes, etc.
- the screen of the electronic device is off and the user needs to scan a QR code to complete the payment.
- the user needs to light up and unlock the display of the electronic device, find the application corresponding to the QR code, run the application and turn on its scanning function to scan the QR code.
- an electronic device runs an application, such as playing a video, and the user needs to scan a QR code to complete payment. To do this, the user needs to exit the running application, find the application corresponding to the QR code, run the application and turn on its scanning function to scan the QR code.
- an embodiment of the present application provides a code scanning method.
- the electronic device can realize any interface of the electronic device in the screen-on state, the screen-off display state or the screen-off state, and aim the front camera or rear camera at graphic identification codes such as QR codes without the need for
- the user performs an operation on the electronic device to open the application corresponding to the graphic identification code.
- the electronic device can recognize the type of graphic identification code and call the scanning interface of the application corresponding to the graphic identification code to complete the code scanning.
- Figure 1 shows an application scenario in which the electronic device runs the code scanning method provided by the embodiment of the present application.
- the electronic device is a mobile phone as an example, and the graphic identification code is Xiao Ming's WeChat QR code business card.
- the phone's display is off. The user controls the phone to face the QR code, and the phone can automatically call the rear camera to capture the image and identify the QR code in the image.
- the screen of the mobile phone can display the interface for adding Xiao Ming in the WeChat application.
- FIG 2 shows another application scenario in which an electronic device runs the code scanning method provided by the embodiment of the present application.
- the electronic device is also a mobile phone as an example, and the graphic identification code is also Xiao Ming's WeChat QR code business card.
- the mobile phone plays the video, and the display shows 11 seconds of the video.
- the user also controls the phone to face the QR code, and the phone can also automatically call the rear camera to collect images and identify the QR code in the image.
- the screen of the mobile phone can display the interface for adding Xiao Ming in the WeChat application.
- FIG 3 shows another application scenario in which an electronic device runs the code scanning method provided by the embodiment of the present application.
- the electronic device is also a mobile phone as an example, and the graphic identification code is also Xiao Ming's WeChat QR code business card.
- the phone's display is off.
- the user controls the mobile phone to face the QR code, and the mobile phone can automatically call the front camera to collect the image and identify the QR code in the image.
- the screen of the mobile phone can display the interface for adding Xiao Ming in the WeChat application.
- FIG 4 shows another application scenario in which an electronic device runs the code scanning method provided by the embodiment of the present application.
- the electronic device is also a mobile phone as an example, and the graphic identification code is also Xiao Ming's WeChat QR code business card.
- the mobile phone plays the video, and the display shows 11 seconds of the video.
- the user controls the mobile phone to face the QR code, and the mobile phone can automatically call the front camera to collect the image and identify the QR code in the image.
- the screen of the mobile phone can display the interface for adding Xiao Ming in the WeChat application.
- the graphic identification code can also be a payment code for WeChat, Alipay and other applications; it can also be a health code, a scan code for shared bicycles, an order code, a courier cabinet code, a WIFI QR code, and an invoice code. QR code, hospital social security barcode, etc.; it can also be application download code, website access code, etc.
- the code scanning method provided by the embodiment of this application can be applied to mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), handheld computers, netbooks, and personal digital assistants. (Personal Digital Assistant, PDA), wearable electronic devices and smart watches and other electronic devices with shooting functions.
- the following uses a mobile phone as an example to introduce the hardware structure of the electronic device according to the embodiment of the present application.
- Figure 5 is a composition example of an electronic device provided by an embodiment of the present application.
- the electronic device 100 may include a processor 110, an internal memory 120, a camera 130, a display screen 140, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180 and Button 190 etc.
- the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently.
- the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, smart sensor hub (sensor hub) and/or neural network processor (neural- network processing unit, NPU), etc.
- application processor application processor
- AP application processor
- modem processor e.g., GPU
- GPU graphics processing unit
- image signal processor image signal processor
- controller image signal processor
- video codec digital signal processor
- DSP digital signal processor
- baseband processor a digital signal processor
- smart sensor hub sensor hub
- neural network processing unit neural- network processing unit
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- Internal memory 120 may be used to store computer executable program code, which includes instructions.
- the processor 110 executes instructions stored in the internal memory 120 to execute various functional applications and data processing of the electronic device 100 .
- the internal memory 120 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
- the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
- the internal memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, a flash memory device, universal flash storage (UFS), and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 120 and/or instructions stored in a memory provided in the processor.
- the internal memory 120 stores instructions for executing the code scanning method.
- the processor 110 can control the electronic device to scan the graphic identification code in various operating states by executing instructions stored in the internal memory 120 .
- the electronic device 100 can implement the shooting function through an ISP, a camera 130, a video codec, a GPU, a display screen 140, an application processor, and the like.
- the ISP is used to process the data fed back by the camera 130 .
- the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP can also be used to identify whether there are graphic identification codes such as QR codes and barcodes in the images captured by the camera 130 .
- the ISP recognizes that there is a graphic identification code in the image, and the camera 130 can collect images in standard RGB, YUV and other formats.
- ISP is also used to identify graphic identification codes in images in standard RGB, YUV and other formats, and control the display screen to display the interface after the image identification code is scanned.
- the ISP recognizes that there is a graphic identification code in the image, and the camera 130 collects images in standard RGB, YUV and other formats.
- AP is used to identify graphic identification codes in images in standard RGB, YUV and other formats, and control the display screen to display the interface after the image identification code is scanned.
- Camera 130 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element (also called a sensor).
- the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other format image signals.
- the electronic device 100 may include 1 or N cameras 130, where N is a positive integer greater than 1.
- one camera is a camera with an AON sensor.
- a camera with an AON sensor can be understood as a camera with lower power consumption and is always on. After the phone is turned on, the camera with the AON sensor runs to collect images. Moreover, the images collected by cameras with AON sensors have lower resolution and are usually black and white images.
- the electronic device 100 may also include one or N cameras 130 , where N is a positive integer greater than 1.
- a camera 130 is configured with two sensors.
- the first sensor is a common sensor, which is used to provide the camera with images in standard RGB, YUV and other formats.
- the second sensor, the AON sensor is in a normally-on working state and is used to provide the camera with lower-resolution images.
- the images are usually black and white.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- Video codecs are used to compress or decompress digital video.
- Electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (moving picture experts group, MPEG) 4, MPEG2, MPEG3, MPEG4, etc.
- the electronic device implements display functions through the GPU, the display screen 140 and the application processor.
- the GPU is an image processing microprocessor and is connected to the display screen 140 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- the display screen 140 is used to display images, videos, etc.
- Display 140 includes a display panel.
- the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- AMOLED organic light-emitting diode
- FLED flexible light-emitting diode
- Miniled MicroLed, Micro-oled, quantum dot light emitting diode (quantum dot light emitting diode, QLED), etc.
- the electronic device may include 1 or N display screens 140, where N is a positive integer greater than 1.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
- the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
- WLAN wireless local area networks
- System global navigation satellite system, GNSS
- frequency modulation frequency modulation, FM
- near field communication technology near field communication, NFC
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
- Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device can listen to music through speaker 170A, or listen to hands-free calls.
- the speaker 170A converts the audio electrical signal of the slow-motion video into a sound signal and plays it externally.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the electronic device answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
- Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
- the electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
- the headphone interface 170D is used to connect wired headphones.
- the headphone interface 170D can be a USB interface, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA Cellular Telecommunications Industry Association of the USA
- the pressure sensor 180A is used to sense pressure signals and convert the pressure signals into electrical signals.
- the pressure sensor 180A may be disposed on the display screen 140 .
- pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
- a capacitive pressure sensor may include at least two parallel plates of conductive material.
- the electronic device detects the strength of the touch operation according to the pressure sensor 180A.
- the electronic device may also calculate the touched position based on the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions.
- Touch sensor 180B is also called a "touch device”.
- the touch sensor 180B can be disposed on the display screen 140.
- the touch sensor 180B and the display screen 140 form a touch screen, which is also called a "touch screen”.
- the touch sensor 180B is used to detect a touch operation on or near the touch sensor 180B.
- the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
- Visual output related to the touch operation may be provided through the display screen 140 .
- the touch sensor 180B may also be disposed on the surface of the electronic device at a location different from that of the display screen 140 .
- the pressure sensor 180A and the touch sensor 180B may be used to detect a user's touch operation on controls, images, icons, videos, etc. displayed on the display screen 140 .
- the electronic device can respond to the touch operation detected by the pressure sensor 180A and the touch sensor 180B and execute a corresponding process.
- the buttons 190 include a power button, a volume button, etc.
- the button 190 may be a mechanical button or a touch button.
- the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
- the following embodiments of this application will take the electronic device as a mobile phone, and two rear cameras, camera 1 and camera 2, are installed in the mobile phone.
- the sensor in camera 1 is an AON sensor
- the sensor in camera 2 is an ordinary sensor. This article will be introduced in detail. Apply for the scan code provided.
- the code scanning method of a mobile phone includes the following steps:
- camera 1 collects low-resolution images.
- the sensor of camera 1 is an AON sensor, which is a low-power sensor.
- Camera 1 is always on.
- the camera is in a normally-on state, which can be understood as: after the mobile phone is turned on, camera 1 automatically runs to collect images without starting it through an application.
- the images collected by camera 1 are low-resolution images.
- low-resolution images can be understood as black and white images.
- the camera 1 can collect low-resolution images periodically, that is, the camera 1 collects low-resolution images at certain time intervals. Of course, time intervals can be set.
- camera 1 is a rear camera of a mobile phone. Therefore, if the rear camera or back cover of the mobile phone faces the QR code at a certain distance, it can of course be understood that the QR code is within the shooting range of camera 1.
- the low-resolution image collected by camera 1 will include the QR code.
- the working status of the mobile phone is not restricted.
- the mobile phone may be in a screen-off state as shown in the application scenario shown in Figure 1 .
- the mobile phone can also play videos as shown in the application scenario shown in Figure 2.
- the phone can also be in other working states.
- the display screen is in the screen-off display interface (or called the screen-off display state)
- the display screen is in the screen-on and lock-screen state
- the display screen is in the screen-on and unlocked state
- the mobile phone runs any application
- the screen shows that it is being run.
- the screen-off display interface is a low-power display interface.
- This interface generally displays some messages to prompt the user, such as time, date, mobile phone battery, etc.
- the interface can also display animation effects and display messages simultaneously with prompts to users.
- Camera 1 sends low-resolution images to the ISP.
- the ISP is the processing unit.
- Camera 1 collects images and can send them to the ISP.
- the camera 1 collects low-resolution images at certain time intervals, and each frame of low-resolution images collected by the camera 1 is sent to the ISP.
- the ISP identifies whether the low-resolution image includes a QR code.
- the ISP receives the low-resolution image sent by the camera 1 and identifies whether the low-resolution image includes a QR code.
- the QR code includes a positioning box similar to the shape of "hui", usually located in the upper left corner, upper right corner and lower left corner. ISP can identify the upper left corner, upper right corner and lower left corner of low-resolution images, whether including the positioning box. If the ISP recognizes at least one of the upper left corner, upper right corner, and lower left corner, including the positioning box, it means that the low-resolution image includes a QR code.
- the embodiments of this application are introduced by taking a QR code as an example.
- the ISP can also identify whether the low-resolution image includes a barcode.
- a barcode is obtained by arranging multiple black bars and blanks of varying widths according to certain coding rules. Therefore, the ISP can identify whether the low-resolution image includes multiple black bars to determine whether the low-resolution image includes a barcode.
- the ISP can identify whether the low-resolution image includes a QR code or a barcode, which can be understood as the ISP identifying whether the low-resolution image includes a graphic identification code.
- the ISP may identify whether the low-resolution image includes the graphic identification code through the characteristics of the graphic identification code.
- QR codes the feature refers to the positioning box; for barcodes, the feature refers to the black bar.
- steps S104 to S110 may be executed. If the ISP recognizes that the low-resolution image does not include a QR code, it returns to step S103 to identify whether the next low-resolution image collected by the camera 1 includes a QR code.
- QR codes are an exemplary introduction.
- the ISP may perform steps S104 to S110. If the ISP recognizes that the low-resolution image does not include the graphic identification code, it returns to step S103 to identify whether the next frame of low-resolution image collected by the camera 1 includes the graphic identification code.
- ISP controls the operation of camera 2.
- the ISP recognizes that the low-resolution image includes graphic identification codes such as QR codes, and then controls the operation of the camera 2. Because the sensor in camera 2 is an ordinary sensor. Therefore, when the camera 2 is running, it can be understood that it is running in the normal mode to capture ordinary images, and the format of the image is standard RGB, YUV and other formats.
- the ISP controls the operation of camera 2, and camera 1 can be stopped. Of course, camera 1 can also continue to operate.
- the rear camera includes at least camera 1 and camera 2 as an example for introduction.
- the hardware structure of the mobile phone is as follows.
- the mobile phone can be set up with a camera, which includes two sensors, one is the AON sensor (normally on) and the other is an ordinary sensor.
- step S101 can be understood as: the camera operates in a low power consumption mode to control the operation of the AON sensor to collect images.
- Step S104 can be understood as: the camera operates in normal mode to control the operation of ordinary sensors to collect ordinary images in standard RGB, YUV and other formats. Also, when the camera is running in normal mode, the AON sensor can be turned off.
- Camera 2 collects images.
- the position of the mobile phone is consistent with that of camera 1. That is, when camera 1 and camera 2 collect images, the position of the mobile phone basically remains unchanged. Therefore, the image data collected by the camera 2 is basically the same as the image data of the low-resolution image collected by the camera 1 . The only difference is that the image collected by camera 1 is a low-resolution image, and the image collected by camera 2 is an ordinary image with a higher resolution than the image collected by camera 1.
- the camera 2 can collect one frame of images. In other embodiments, the camera 2 can also collect multiple frames of images.
- the mobile phone can be in any interface with the screen on, the screen off, or the screen off display state.
- the ISP controls the operation of the camera 2
- the camera 2 can run in the background, and the display screen does not display the code scanning preview interface of the camera 2.
- the camera 2 is running to collect images to scan the code without interrupting the running application of the mobile phone.
- the mobile phone plays a video, and while the ISP controls the camera 2 to run and collect images, the display screen of the mobile phone continues to play the video.
- the mobile phone if the mobile phone is in a screen-off state or displays a screen-off display interface while the mobile phone is executing steps S101 to S103.
- Camera 2 operates to collect images, and the mobile phone can simultaneously light up the display screen and display it on the display screen.
- Desktop unlock interface After the user completes unlocking, the display screen can be controlled to display the code scanning preview interface.
- the code scanning preview interface is the code scanning interface that comes with the mobile phone system, and is used to display the QR code image scanned by the camera 2.
- the mobile phone if the mobile phone is in a screen-on and locked state while the mobile phone is executing steps S101 to S103.
- the camera 2 is running to collect images, and the mobile phone can display the desktop unlocking interface on the display screen. After the user completes unlocking, the display screen can be controlled to display the code scanning preview interface.
- the mobile phone if the mobile phone performs the process from step S101 to step S103, the mobile phone is in the unlocked state with the screen on.
- Camera 2 runs to collect images, and the mobile phone can control the display screen to display the code scanning preview interface.
- the mobile phone if the mobile phone is executing the process from step S101 to step S103, the mobile phone is running the application program and displays the interface state of the application program.
- Camera 2 is running to collect images, and the mobile phone can control the display screen to adjust from an interface showing the application to displaying a code scanning preview interface.
- Camera 2 sends the image to the ISP.
- the images collected by camera 2 can be sent to the ISP.
- camera 1 and camera 2 are the same camera, after the camera operates in normal mode to collect images, the image will also be sent to the ISP by the camera.
- the camera 1 collects multiple frames of images, and each frame of images is sent to the ISP.
- the ISP analyzes the QR code in the image and obtains the QR code information.
- the ISP receives the image sent by camera 2. Because in step S103, the ISP recognizes that the low-resolution image includes a QR code, and the image data collected by the camera 2 and the low-resolution image are the same. Therefore, the image collected by the camera 2 also includes the QR code.
- Step S107 before the ISP performs step S107, it may also identify again whether the image includes a QR code. Step S107 is executed after the QR code is recognized.
- the QR code includes a positioning box and geometric figures, in which the QR code information is displayed in the form of geometric figures. Therefore, ISP can locate the geometric figure and analyze it to obtain the QR code information reflected by it.
- the QR code information of a QR code will include the Intent event of the application to which the QR code belongs.
- the Intent event of the application to which the QR code belongs is used to indicate that after the QR code is scanned, the application The display interface of the program.
- the Intent event of the application to which the QR code belongs can be associated with the display interface of the application.
- the low-resolution image and the image in this step may also include other forms of graphic identification codes such as barcodes. Therefore, this step can be understood as the ISP parsing the pattern identification code in the image and obtaining the identification code information of the pattern identification code.
- multiple black bars and blank spaces of the barcode are arranged according to certain encoding rules to express a set of information, and the information is identification code information.
- the identification code information will also include the Intent event of the application corresponding to the graphic identification code (or the application to which the graphic identification code belongs).
- the Intent event of the application to which the graphic identification code belongs is used to indicate that the graphic identification code is used. After scanning, the application display interface. Moreover, the Intent event of the application to which the graphic identification code belongs can be associated with the display interface of the application.
- the ISP recognizes the QR code information and obtains the display interface of the application corresponding to the QR code.
- the QR code information includes the Intent event of the application to which the QR code belongs, and the Intent event of the application to which the QR code belongs is associated with the display interface of the application. Therefore, after identifying the QR code information, the ISP can determine the display interface of the application corresponding to the QR code.
- the WeChat application displayed on the display screen of the mobile phone adds Xiao Ming's interface, which is a display interface for the application corresponding to the QR code.
- the ISP when the ISP recognizes the identification code information of the graphic identification code, it can also determine the display interface of the application program corresponding to the graphic identification code.
- the ISP controls the display screen to display the display interface of the application corresponding to the QR code.
- the ISP After the ISP determines the display interface of the application corresponding to the QR code, it can control the display screen to display the display interface by sending a control instruction.
- steps S107 to S109 can also be executed by the AP. Based on this, in step S107, the camera 2 sends the collected image to the AP.
- Steps S107 to S109 are executed by the ISP, which requires low power consumption and fast processing speed, but has certain requirements on the computing space of the ISP chip.
- Steps S107 to S109 are executed by the AP, which can avoid the requirement for the computing space of the ISP chip, but the power consumption is higher than that of ISP processing, and the processing speed is slower than that of ISP processing.
- the display screen displays the display interface of the application corresponding to the QR code.
- the display screen can respond to the control instructions sent by the ISP and display the display interface of the application program corresponding to the QR code.
- the mobile phone can also remind the user by vibrating or emitting a prompt sound.
- the user can input operations on the display interface on the display screen. For example, in the application scenarios shown in Figures 1 to 4, after the display screen of the mobile phone displays the interface for adding Xiao Ming to the WeChat application, the user can enter the operation of clicking "Add to Address Book". Correspondingly, the mobile phone can respond to the user's input operation of clicking "add to address book” and regard Xiao Ming as a contact in the WeChat application.
- the aforementioned steps S108 to S110 are all introduced using the QR code as an example.
- the QR code can be replaced by a graphic identification code including a QR code and a barcode.
- the mobile phone may be in any interface with the screen on, the screen off, or the screen off display state. Based on this, the mobile phone can control the display screen to switch from other states based on its own state to the display interface for displaying the application program corresponding to the QR code proposed in step S110.
- the mobile phone when the mobile phone performs steps S101 to S109, the mobile phone is in a screen-off state or displays a screen-off display interface. Before the display screen performs step S110, the display screen is first lit, and the desktop unlocking interface is displayed on the display screen. After the user completes unlocking, the display interface of the application corresponding to the QR code is displayed.
- the mobile phone when the mobile phone performs steps S101 to S109, the mobile phone is in a screen-on and locked state, and the desktop unlock interface is first displayed on the display screen before performing step S110. After the user completes unlocking, the display interface of the application corresponding to the QR code is displayed.
- the mobile phone while the mobile phone is performing steps S101 to S109, the mobile phone is in the unlocked state with the screen on, and the display screen can directly perform step S110 to display the display interface of the application program corresponding to the QR code.
- the mobile phone when the mobile phone performs steps S101 to S109, the mobile phone is running the application program and displays the interface of the application program.
- the display screen performs step S110 and adjusts the displayed application program interface to display the QR code.
- the display interface of the corresponding application is the mobile phone running the application program and displays the interface of the application program.
- step S105 if the mobile phone collects images with the camera 2, the display screen displays the code scanning preview interface. After that, the display screen performs step S110 to display the display interface of the application program corresponding to the QR code.
- this embodiment is introduced by taking two rear cameras, camera 1 and camera 2, as an example.
- the front camera of the mobile phone may also be equipped with an AON sensor and a common sensor. Based on this, the mobile phone can also use the front camera to collect low-resolution images and ordinary images, and execute the code scanning method provided in this embodiment.
- the camera 1 is in a normally open state and starts running to collect low-resolution images after the mobile phone is turned on.
- the ISP recognizes that the low-resolution image includes a QR code
- the ISP controls the camera 2 to run. Collect images and provide them to the ISP.
- the ISP parses the QR code in the image, obtains the QR code information, identifies the QR code information, obtains the display interface of the application corresponding to the QR code, and then controls the display screen to display the display interface of the application corresponding to the QR code.
- the low-resolution image collected by camera 1 may include multiple QR codes.
- the electronic device is a mobile phone
- the graphic identification code includes Xiao Ming's WeChat QR code business card and Xiao Ming's payment code.
- the phone's display is off. The user controls the phone to face the QR code, and the phone can automatically call the rear camera to capture the image and identify the two QR codes in the image.
- the mobile phone's display can be split-screen to display the WeChat application's interface for adding Xiao Ming and Xiao Ming's payment interface.
- Figure 8 shows the code scanning method provided by this embodiment.
- the code scanning method provided in this embodiment can scan multiple graphic identification codes at the same time, and simultaneously display the display interface of the application program corresponding to each graphic identification code on the display screen.
- the code scanning method provided by this embodiment includes the steps:
- step S101 for the specific implementation of this step, please refer to the content of step S101 in the aforementioned embodiment 1, and will not be described here.
- Camera 1 sends low-resolution images to the ISP.
- step S102 For the specific implementation of this step, please refer to the content of step S102 in the aforementioned embodiment 1, and will not be described here.
- the ISP identifies whether the low-resolution image includes a QR code.
- step S103 For the specific implementation of this step, please refer to the content of step S103 in the aforementioned embodiment 1, and will not be described here.
- steps S204 to S216 may be executed. If the ISP recognizes that the low-resolution image does not include a QR code, it returns to step S203 to identify whether the next low-resolution image collected by the camera 1 includes a QR code.
- ISP controls the operation of camera 2.
- step S104 For the specific implementation of this step, please refer to the content of step S104 in the aforementioned embodiment 1, and will not be described here.
- the ISP determines whether multiple QR codes are recognized in the low-resolution image.
- the way in which the ISP recognizes the QR code can be as described in step S103 in the previous embodiment. After the ISP recognizes a QR code, it can record it once. When it recognizes another QR code, it can accumulate the recorded values. After the ISP recognizes the QR code, it can be determined whether the ISP has recognized multiple QR codes by identifying the recorded values.
- steps S208 to S210 are executed. If the ISP determines that multiple QR codes are recognized in the low-resolution image, steps S212 to S216 are executed.
- FIG. 8 shows an execution sequence of steps S204 and S205, but the execution sequence of steps S204 and S205 is not limited to that shown in FIG. 8 .
- the ISP may also perform step S205 first and then perform step S204.
- step S204 and step S205 may also be executed in parallel.
- the ISP can also complete the two functions of identifying whether the low-resolution image includes a QR code and identifying whether the low-resolution image includes multiple QR codes by executing step S205. Specifically, after receiving the low-resolution image sent by the camera 1, the ISP executes step S205. The ISP determines that multiple QR codes can be recognized in the low-resolution image, and then executes step S204, and steps 212 to S216. The ISP determines that multiple QR codes have not been recognized in the low-resolution image, but has recognized the QR code, and then executes step S204, and steps 208 to S210. The ISP determines that the QR code has not been recognized in the low-resolution image, and can return to step S205 for the next low-resolution image received.
- the two-dimensional code is used as the graphic identification code as an example for explanation.
- the ISP can also identify whether the low-resolution image includes multiple graphic identification codes, and the graphic identification codes include two-dimensional codes and barcodes.
- the multiple graphic identification codes may include: a mixture of QR codes and barcodes, or multiple QR codes, or multiple barcodes.
- the ISP recognizes that the low-resolution image does not include multiple graphic identification codes, and then executes steps S208 to step S210. If the ISP recognizes that the low-resolution image includes multiple graphic identification codes, then executes steps S212 to step S216.
- Camera 2 collects images.
- step S105 For the specific implementation of this step, please refer to the content of step S105 in the aforementioned embodiment 1, and will not be described here.
- step S106 For the specific implementation of this step, please refer to the content of the aforementioned step S106, which will not be described here.
- the ISP analyzes the QR code in the image and obtains the QR code information.
- step S107 For the specific implementation of this step, please refer to the content of step S107 in the aforementioned embodiment 1, and will not be described here.
- the ISP recognizes the QR code information and obtains the display interface of the application program corresponding to the QR code.
- step S108 For the specific implementation of this step, please refer to the content of step S108 in the aforementioned embodiment 1, and will not be described here.
- ISP controls the display screen to display the display interface of the application corresponding to the QR code.
- step S109 For the specific implementation of this step, please refer to the content of step S109 in the aforementioned embodiment 1, and will not be described here.
- the display screen displays the display interface of the application program corresponding to the QR code.
- step S110 For the specific implementation of this step, please refer to the content of the aforementioned step S110, which will not be described here.
- the ISP locates each QR code in the image.
- ISP can identify the positioning box of each QR code in the image to locate the QR code.
- the ISP locates a QR code and can obtain the display interface of the application program corresponding to the QR code by executing steps S213 and 214.
- the mobile phone performs steps S215 and S216 to simultaneously display the display interfaces of the application programs corresponding to all the QR codes in the image on the display screen.
- the ISP recognized that the low-resolution image included multiple barcodes, or a mixture of barcodes and QR codes.
- ISP can locate each barcode based on the black bar of the barcode.
- the ISP analyzes each QR code in the image and obtains the QR code information of each QR code.
- the ISP can use the content of step S107 in the first embodiment to parse the QR code and obtain the QR code information of the QR code.
- the ISP identifies the QR code information of each QR code and obtains the display interface of the application program corresponding to each QR code.
- the ISP can use the content of step S108 in the first embodiment to identify the QR code information and obtain the display interface of the application program corresponding to the QR code.
- S215 and ISP control the display screen to simultaneously display the display interface of the application program corresponding to each QR code.
- the ISP can send instructions to the display screen to control the display screen to simultaneously display the display interface of the application corresponding to each QR code.
- the display screen simultaneously displays the display interface of the application program corresponding to each QR code.
- the display screen simultaneously displays the display interface of the application program corresponding to each QR code, which can be understood as: the display interface of the application program corresponding to each QR code is synchronously displayed on the display screen.
- Figure 7 shows that the WeChat application's interface for adding Xiao Ming and Xiao Ming's payment interface are simultaneously displayed on the display screen.
- the WeChat application's interface for adding Xiao Ming and Xiao Ming's payment interface respectively belong to the display interface of the application corresponding to a QR code.
- the two are displayed on the display screen by being arranged up and down.
- the display interface of the application program corresponding to each QR code may not be limited to the display method shown in Figure 7, and may be displayed left and right on the display screen. Or, display the display interface of the application corresponding to each QR code at a unique arbitrary position on the display screen. Or, the display interfaces of the applications corresponding to multiple QR codes can be overlaid and displayed.
- the user can manage the display interface of the application program corresponding to multiple QR codes by inputting operations on the display screen.
- the user can close the display interface of the application corresponding to the QR code by inputting on the display screen.
- the closing control of the application display interface corresponding to the QR code can be displayed on the display screen, such as " ⁇ " shown in Figure 7, and the user can click to close the control.
- the mobile phone hides the display interface of the application corresponding to the QR code performed by the closing operation input by the user (it can be understood that the display screen does not display ).
- the display interface of the application corresponding to the QR code If the user enters the closing operation of the display interface of the application corresponding to the QR code, there will only be one display interface of the application corresponding to the QR code left on the display screen.
- the display interface of the application corresponding to the remaining QR code on the display screen can be displayed in full screen.
- the user can also click on the display interface of the application program corresponding to a QR code displayed on the display screen.
- the mobile phone can display the display interface of the application program corresponding to the QR code clicked by the user. Make full screen display.
- steps S208 to S210 and steps S212 to S215 can also be executed by the AP. Based on this, in step S207, the camera 2 sends the collected image to the AP.
- Steps S208 to S210 and steps S212 to S215 are executed by the ISP, which requires low power consumption and fast processing speed, but has certain requirements on the computing space of the ISP chip.
- Steps S208 to S210 and steps S212 to S215 are executed by the AP, which can avoid the requirement for the computing space of the ISP chip, but the power consumption is higher than that of ISP processing, and the processing speed is slower than ISP processing.
- the mobile phone when the mobile phone performs steps S212 to S215, the mobile phone can be in any interface with the screen on, the screen off, or the screen off. Based on this, the mobile phone can control the display screen to switch from other states based on its own state to the display interface that simultaneously displays the application programs corresponding to each QR code as proposed in step S216.
- the mobile phone when the mobile phone performs steps S212 to S215, the mobile phone is in a screen-off state or displays a screen-off display interface. Before the display screen performs step S216, the display screen is first lit, and the desktop unlocking interface is displayed on the display screen. After the user completes unlocking, the display interface of the application corresponding to each QR code is displayed at the same time.
- the mobile phone when the mobile phone performs steps S212 to S215, the mobile phone is in a screen-on and locked state, and the desktop unlock interface is first displayed on the display screen before performing step S216. After the user completes unlocking, the display interface of the application corresponding to each QR code is displayed at the same time.
- the mobile phone when the mobile phone performs steps S212 to S215, the mobile phone is in the unlocked state with the screen on, and the display screen can directly perform step S216, and at the same time display the display interface of the application program corresponding to each QR code.
- the mobile phone when the mobile phone performs steps S212 to S215, the mobile phone is running the application program and displays the interface of the application program.
- the display screen performs step S216, and the displayed application program interface is adjusted to display each application program at the same time.
- the display interface of the application corresponding to the QR code.
- step S206 if the mobile phone collects images by the camera 2, the display screen displays a code scanning preview interface. After that, the display screen executes step S216 to simultaneously display the display interface of the application program corresponding to each QR code, that is, the code scanning preview interface is switched to the display interface of the application program corresponding to each QR code.
- this embodiment also takes two rear cameras, camera 1 and camera 2, as an example for introduction.
- the front camera of the mobile phone may also be equipped with an AON sensor and a common sensor. Based on this, the mobile phone can also use the front camera to collect low-resolution images and ordinary images, and execute the code scanning method provided in this embodiment.
- steps S212 to S216 are all introduced using the QR code as an example.
- the QR code can be replaced by a graphic identification code including a QR code and a barcode.
- the camera 1 is in a normally open state and starts running to collect low-resolution images after the mobile phone is turned on.
- the ISP controls the camera 2 Run to capture images and provide them to the ISP.
- the ISP parses the QR code in the image, obtains the QR code information of each QR code, identifies the QR code information, obtains the display interface of the application corresponding to each QR code, and then controls the display screen to display each QR code simultaneously.
- the display interface of the application corresponding to the QR code In this way, when users need to scan graphic identification codes such as QR codes, they do not need to perform manual operations, and the mobile phone automatically completes it, improving the efficiency of scanning codes.
- the display interface of the application program corresponding to the multiple QR codes in the image can be displayed on the display screen, further improving the code scanning efficiency.
- the mobile phone can continuously collect multiple images including QR codes within a certain time interval. Also, the QR code in each image is different.
- the electronic device is a mobile phone
- the graphic identification code includes Xiao Ming's WeChat QR code business card and Xiao Ming's payment code.
- the phone's display is off. The user controls the phone with its back facing the QR code and moves the phone along the dotted line. As the phone moves, the phone can automatically call the rear camera to collect images and identify the QR code in each image.
- the mobile phone controls the WeChat code scanning function to start, and scans two QR codes in sequence. After successfully scanning two QR codes, the mobile phone's display can be split-screen to display the WeChat application's interface for adding Xiao Ming and Xiao Ming's payment interface.
- Figure 10 shows the code scanning method provided by this embodiment.
- the code scanning method provided in this embodiment can scan the graphic identification codes included in multiple images sequentially collected by the mobile phone, and simultaneously display the display interface of the application program corresponding to each graphic identification code on the display screen.
- the code scanning method provided by this embodiment includes the following steps:
- step S101 for the specific implementation of this step, please refer to the content of step S101 in the aforementioned embodiment 1, and will not be described here.
- Camera 1 sends low-resolution images to the ISP.
- step S102 For the specific implementation of this step, please refer to the content of step S102 in the aforementioned embodiment 1, and will not be described here.
- the ISP identifies whether the low-resolution image includes a QR code.
- step S103 For the specific implementation of this step, please refer to the content of step S103 in the aforementioned embodiment 1, and will not be described here.
- steps S304 to S311 may be executed. If the ISP recognizes that the low-resolution image does not include a QR code, it returns to step S303 to identify whether the next low-resolution image collected by the camera 1 includes a QR code.
- ISP controls the operation of camera 2.
- step S104 For the specific implementation of this step, please refer to the content of step S104 in the aforementioned embodiment 1, and will not be described here.
- camera 1 can exit the running state.
- the mobile phone In order to prevent the user from continuously sliding the mobile phone in front of multiple QR codes, the mobile phone only drives the camera 2 to capture one image, resulting in only one QR code being recognized, and other QR codes being lost.
- the camera 2 When the camera 2 is running, it can continuously collect multiple images (or multi-frame images).
- the camera 2 can collect multiple images within a certain period of time according to the collection frequency set by itself.
- this time can also be set according to actual conditions.
- the certain time may be 3S, 5S, etc.
- camera 1 can also continue to be in operation. Moreover, Camera 1 and Camera 2 can run in parallel. Based on this, the camera 2 can also continuously collect multiple images, and the behavior of each image collection is triggered by the low-resolution recognition of the QR code collected by the camera 1.
- the mobile phone can be in any interface with the screen on, the screen off, or the screen off.
- the ISP controls the operation of the camera 2
- the camera 2 can run in the background, and the display screen does not display the code scanning preview interface of the camera 2. In this way, it can be ensured that the camera 2 is running to collect images to scan the code without interrupting the running application of the mobile phone.
- the mobile phone if the mobile phone is in a screen-off state or displays a screen-off display interface while the mobile phone is executing steps S301 to S303.
- the camera 2 operates to collect images
- the mobile phone can simultaneously light up the display screen, and the display screen displays the desktop unlocking interface.
- the display screen can be controlled to display the code scanning preview interface.
- the code scanning preview interface is the code scanning interface that comes with the mobile phone system, and is used to display the QR code image scanned by the camera 2.
- the mobile phone if the mobile phone is in the screen-on-lock state while performing steps S301 to S303.
- the camera 2 is running to collect images, and the mobile phone can display the desktop unlocking interface on the display screen. After the user completes unlocking, the display screen can be controlled to display the code scanning preview interface.
- the mobile phone if the mobile phone performs the process from step S301 to step S303, the mobile phone is in the screen-on unlock state.
- Camera 2 runs to collect images, and the mobile phone can control the display screen to display the code scanning preview interface.
- the mobile phone if the mobile phone is executing the process from step S301 to step S303, the mobile phone is running the application program and displays the interface state of the application program.
- Camera 2 is running to collect images, and the mobile phone can control the display screen to adjust from an interface showing the application to displaying a code scanning preview interface.
- Camera 2 sends each collected image to the ISP.
- step S106 For the specific implementation of this step, please refer to the content of the aforementioned step S106, which will not be described here.
- the camera 2 usually collects images first and sends them to the ISP first, and sends each image collected to the ISP. That is, the camera 2 sends each image collected to the ISP according to the order of image collection.
- ISP identifies whether each image contains a QR code.
- the ISP can use the method proposed in step S103 in the first embodiment to identify whether each image includes a QR code. Moreover, for an image, the ISP recognizes that the image includes a QR code, and then executes steps S308 to S310. If the ISP recognizes that the image does not include a QR code, it can return to identify the next image until all images collected by the camera 2 are all recognized.
- ISP analyzes the QR code in the image for the image in which the QR code is recognized, and obtains the QR code information.
- the ISP can use the method proposed in step S107 in the first embodiment to analyze the QR code in the image to obtain the QR code information.
- the ISP recognizes the QR code information and obtains the display interface of the application program corresponding to the QR code.
- the ISP can use the method proposed in step S108 in the first embodiment to identify the QR code information and obtain the display interface of the application program corresponding to the QR code.
- S310 and ISP control the display screen to simultaneously display the display interface of the application corresponding to each QR code.
- the ISP can use the method proposed in step S215 in the second embodiment to control the display screen to simultaneously display the display interface of the application program corresponding to each QR code.
- the display screen simultaneously displays the display interface of the application program corresponding to each QR code.
- the display screen can use the method proposed in step S216 in the second embodiment to simultaneously display the display interface of the application program corresponding to each QR code.
- the mobile phone when the mobile phone performs steps S307 to S310, the mobile phone can be in any interface with the screen on, the screen off, or the screen off. Based on this, the mobile phone can control the display screen to switch from other states based on its own state to the display interface proposed in step S311 that simultaneously displays the application program corresponding to each QR code.
- the mobile phone when the mobile phone performs steps S307 to S310, the mobile phone is in a screen-off state or displays a screen-off display interface. Before the display screen performs step S311, the display screen is first lit, and the desktop unlocking interface is displayed on the display screen. After the user completes unlocking, the display interface of the application corresponding to each QR code is displayed at the same time.
- the mobile phone when the mobile phone performs steps S307 to S310, the mobile phone is in a screen-on and locked state, and the desktop unlock interface is first displayed on the display screen before performing step S311. After the user completes unlocking, the display interface of the application corresponding to each QR code is displayed at the same time.
- the mobile phone when the mobile phone performs steps S307 to S310, the mobile phone is in the unlocked state with the screen on, and the display screen can directly perform step S311 while displaying the display interface of the application program corresponding to each QR code.
- the mobile phone when the mobile phone performs steps S307 to S310, the mobile phone is running the application program and displays the interface of the application program.
- the display screen performs step S311, and the displayed application program interface is adjusted to display each application program at the same time.
- the display interface of the application corresponding to the QR code.
- step S305 if the mobile phone collects images by the camera 2, the display screen displays a code scanning preview interface. After that, the display screen executes step S311 to simultaneously display the display interface of the application program corresponding to each QR code, that is, the code scanning preview interface is switched to the display interface of the application program corresponding to each QR code.
- this embodiment also takes two rear cameras, camera 1 and camera 2, as an example for introduction.
- the front camera of the mobile phone may also be equipped with an AON sensor and a common sensor. Based on this, the mobile phone can also use the front camera to collect low-resolution images and ordinary images, and execute the code scanning method provided in this embodiment.
- steps S301 to S311 are all introduced using the QR code as an example.
- the QR code can be replaced by a graphic identification code including a QR code and a barcode.
- the camera 1 is in a normally open state and starts running to collect low-resolution images after the mobile phone is turned on.
- the ISP recognizes that the low-resolution image includes a QR code
- the ISP controls the camera 2 to run and Continuously collect multiple images and provide the collected images to the ISP.
- the ISP parses the QR code in the image, obtains the QR code information of each QR code, identifies the QR code information, obtains the display interface of the application corresponding to each QR code, and then controls the display screen to display each QR code simultaneously.
- the display interface of the application corresponding to the QR code is a normally open state and starts running to collect low-resolution images after the mobile phone is turned on.
- code scanning method provided in Embodiment 2 of the present application and the code scanning method provided in Embodiment 3 of the present application can be combined to realize the ability to identify multiple graphic identification codes in an image, and to be able to identify multiple continuously collected images.
- the function of the QR code in the image can be combined to realize the ability to identify multiple graphic identification codes in an image, and to be able to identify multiple continuously collected images.
- a way to combine the code scanning method provided in Embodiment 2 and the code scanning method provided in Embodiment 3 is: in the code scanning method shown in Figure 8, steps S206 to step S211 are adjusted to steps S305 to step S305 to step S211. Step S310.
- Another embodiment of the present application also provides a computer-readable storage medium.
- the computer-readable storage medium stores instructions, which when run on a computer or processor, cause the computer or processor to perform any one of the above methods. one or more steps.
- the computer-readable storage medium may be a non-transitory computer-readable storage medium.
- the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
- Another embodiment of the present application also provides a computer program product containing instructions.
- the computer program product is run on a computer or processor, the computer or processor is caused to perform one or more steps in any of the above methods.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供一种扫码方法、电子设备及可读存储介质,电子设备包括第一摄像头、第二摄像头和显示屏,第一摄像头为常开状态;扫码方法包括:获取第一摄像头采集的第一图像;确定第一图像包括图形识别码;调用第二摄像头采集图像;获取第二摄像头采集的第二图像;确定第二图像的图形识别码对应的应用程序的展示界面;控制显示屏显示图形识别码对应的应用程序的展示界面。第一摄像头处于常开状态,电子设备开机后采集第一图像,在确定第一图像包括图形识别码时,电子设备调用第二摄像头运行以采集图像,并在确定第二图像中的图形识别码对应的应用程序的展示界面之后,显示展示界面,如此实现了用户无需执行手动操作,电子设备自动完成,提升扫码效率。
Description
本申请要求于2022年05月11日提交中国国家知识产权局、申请号为202210509440.4、发明名称为“扫码方法、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据处理技术领域,尤其涉及一种扫码方法、电子设备及计算机可读存储介质。
目前,人们经常利用电子设备扫描图形识别码(如二维码,条形码等)来实现在线支付、下载应用程序或访问网站等功能。一个示例中,电子设备处于灭屏状态,用户需要扫描二维码以完成支付。为此,用户需要点亮并解锁电子设备的屏幕,查找该二维码对应的应用程序,运行该应用程序并打开其扫码功能以对二维码进行扫码。另一个示例中,电子设备运行一个应用程序,如在播放视频,用户需要扫描二维码以完成支付。为此,用户需要退出处于运行状态的应用程序,查找该二维码对应的应用程序,运行该应用程序并打开其扫码功能以对二维码进行扫码。
可以看出:目前电子设备扫码的方式,用户需要执行较多的手动操作,导致扫码效率低。
发明内容
本申请提供了一种扫码方法、电子设备、程序产品及计算机可读存储介质,目的在于实现无需用户在电子设备上执行较多操作,电子设备识别图形识别码类型,并调用图形识别码对应的应用程序的扫码界面,完成扫码,提升扫码效率。
为了实现上述目的,本申请提供了以下技术方案:
第一方面,本申请提供了一种应用于电子设备的扫码方法,该电子设备包括第一摄像头、第二摄像头和显示屏,第一摄像头为常开状态;其中,扫码方法包括:获取第一摄像头采集的第一图像;确定第一图像包括图形识别码;调用第二摄像头运行以采集图像;获取第二摄像头采集的第二图像,第二图像的分辨率高于第一图像的分辨率;确定第二图像中的图形识别码对应的应用程序的展示界面;控制显示屏显示图形识别码对应的应用程序的展示界面。
由上述内容可以看出:本申请提供的扫码方法中,第一摄像头处于常开状态,在电子设备开机后则开始运行以采集第一图像,在确定第一图像包括图形识别码时,电子设备调用第二摄像头运行以采集图像,并在确定第二图像中的图形识别码对应的应用程序的展示界面之后,控制显示屏显示图形识别码对应的应用程序的展示界面。如此实现了用户需要扫描图形识别码时,无需执行手动操作,电子设备自动完成,提升扫码效率。
在一个可能的实施方式中,确定第二图像中的图形识别码对应的应用程序的展示界面,包括:解析第二图像中的图形识别码,得到图形识别码信息;识别图形识别码信息,得到图形识别码对应的应用程序的展示界面。
在一个可能的实施方式中,确定第一图像包括图形识别码之后,还包括:确定第一图像包括多个图形识别码;定位第二图像包括的每一个图形识别码;针对定位到的第二图像中的每一个图形识别码,确定图形识别码对应的应用程序的展示界面;控制显示屏同时显示每一个图形识别码对应的应用程序的展示界面。
本可能的实施方式中,通过电子设备的第一摄像头采集的第一图像,得到第一图像中的多个二维码对应的应用程序的展示界面,均可以在显示屏上进行显示,进一步提升了扫码效率。
在一个可能的实施方式中,调用第二摄像头采集图像,包括:调用第二摄像头采集连续的多帧图像。
本可能的实施方式中,电子设备调用第二摄像头采集连续的多帧图像,可得到多帧图像中的多个二维码对应的应用程序的展示界面,均可以在显示屏上进行显示,进一步提升了扫码效率。
在一个可能的实施方式中,控制显示屏显示图形识别码对应的应用程序的展示界面,包括:控制显示屏同时显示第二摄像头采集的每一帧图像中的图形识别码对应的应用程序的展示界面。
在一个可能的实施方式中,第一摄像头和第二摄像头,同为电子设备的前置摄像头或后置摄像头。
在一个可能的实施方式中,第一摄像头对应的传感器为低功耗传感器,第一摄像头和第二摄像头为同一个摄像头,或者为不同摄像头。
在一个可能的实施方式中,获取第一摄像头采集的第一图像,包括:电子设备处于亮屏状态的任意界面、灭屏状态或熄屏显示状态,获取第一摄像头采集的第一图像。
在一个可能的实施方式中,控制显示屏显示图形识别码对应的应用程序的展示界面,包括:控制显示屏被点亮,且显示桌面解锁界面;响应于第一操作,控制显示屏显示图形识别码对应的应用程序的展示界面,第一操作用于解锁桌面解锁界面。
在一个可能的实施方式中,控制显示屏显示图形识别码对应的应用程序的展示界面,包括:控制显示屏显示桌面解锁界面;响应于第一操作,控制显示屏显示图形识别码对应的应用程序的展示界面,第一操作用于解锁桌面解锁界面。
在一个可能的实施方式中,控制显示屏显示图形识别码对应的应用程序的展示界面,包括:控制显示屏隐藏第一应用程序的界面,并显示图形识别码对应的应用程序的展示界面,第一应用程序为电子设备处于运行状态的应用程序。
在一个可能的实施方式中,获取第二摄像头采集的第二图像;确定第二图像中的图形识别码对应的应用程序的展示界面;以及控制显示屏显示图形识别码对应的应用程序的展示界面,包括:图像信号处理器ISP或应用处理器AP获取第二摄像头采集的第二图像;确定第二图像中的图形识别码对应的应用程序的展示界面;以及控制显示屏显示图形识别码对应的应用程序的展示界面。
在一个可能的实施方式中,调用第二摄像头运行以采集图像之后,还包括:控制显示屏显示扫码预览界面。其中,扫码预览界面用于展示第二摄像头采集的第二图像。
第二方面,本申请提供了一种电子设备,其特征在于,包括:一个或多个处理器、存储器、第一摄像头、第二摄像头和显示屏;第一摄像头为常开状态;存储器、第一摄像头、第二摄像头和显示屏,与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,电子设备执行如第一方面中任意一项的扫码方法。
第三方面,本申请提供了一种计算机可读存储介质,用于存储计算机程序,计算机程序被执行时,具体用于实现如第一方面中任意一项的扫码方法。
第四方面,本申请提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面中任意一项的扫码方法。
图1为本申请实施例提供的扫码方法的应用场景图;
图2为本申请实施例提供的扫码方法的另一应用场景图;
图3为本申请实施例提供的扫码方法的另一应用场景图;
图4为本申请实施例提供的扫码方法的另一应用场景图;
图5为本申请实施例提供的电子设备的硬件结构图;
图6为本申请实施例提供的扫码方法的信令图;
图7为本申请实施例提供的扫码方法的另一应用场景图;
图8为本申请实施例提供的扫码方法的另一信令图;
图9为本申请实施例提供的扫码方法的另一应用场景图;
图10为本申请实施例提供的扫码方法的另一信令图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
本申请实施例涉及的多个,是指大于或等于两个。需要说明的是,在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
目前,人们经常利用电子设备扫描图形识别码(如二维码,条形码等)来实现在线支付、下载应用程序或访问网站等功能。一个示例中,电子设备处于灭屏状态,用户需要扫描二维码以完成支付。为此,用户需要点亮并解锁电子设备的显示屏,查找该二维码对应的应用程序,运行该应用程序并打开其扫码功能以对二维码进行扫码。另一个示例中,电子设备运行一个应用程序,如在播放视频,用户需要扫描二维码以完成支付。为此,用户需要退出处于运行状态的应用程序,查找该二维码对应的应用程序,运行该应用程序并打开其扫码功能以对二维码进行扫码。
可以看出:目前电子设备扫码的方式,用户需要执行较多的手动操作,导致扫码效率低。
基于此,本申请实施例提供一种扫码方法。电子设备通过执行该扫码方法,可实现电子设备处于亮屏状态的任意界面,熄屏显示状态或灭屏状态,将前置摄像头或后置摄像头,对准二维码等图形识别码,无需用户在电子设备上执行操作打开图形识别码对应的应用程序,电子设备可识别出图形识别码类型,并调用图形识别码对应的应用程序的扫码界面,完成扫码。
图1展示的电子设备运行本申请实施例提供的扫码方法的一种应用场景。图1展示的应用场景中,电子设备以手机为例,图形识别码为小明的微信二维码名片。手机的显示屏处于灭屏状态。用户控制手机背对二维码,手机可自动调用后置摄像头采集图像,并识别图像中的二维码。在成功识别二维码之后,手机的显示屏则可显示微信应用添加小明的界面。
图2展示了电子设备运行本申请实施例提供的扫码方法的另一种应用场景。图2展示的应用场景中,电子设备也以手机为例,图形识别码也为小明的微信二维码名片。手机播放视频,显示屏显示该视频中11秒的画面。用户同样控制手机背对二维码,手机也可自动调用后置摄像头采集图像,并识别图像中的二维码。在成功识别二维码之后,手机的显示屏则可显示微信应用添加小明的界面。
图3展示了电子设备运行本申请实施例提供的扫码方法的另一种应用场景。图3展示的应用场景中,电子设备也以手机为例,图形识别码也为小明的微信二维码名片。手机的显示屏处于灭屏状态。用户控制手机面对二维码,手机可自动调用前置摄像头采集图像,并识别图像中的二维码。在成功识别二维码之后,手机的显示屏则可显示微信应用添加小明的界面。
图4展示了电子设备运行本申请实施例提供的扫码方法的另一种应用场景。图4展示的应用场景中,电子设备也以手机为例,图形识别码也为小明的微信二维码名片。手机播放视频,显示屏显示该视频中11秒的画面。用户控制手机面对二维码,手机可自动调用前置摄像头采集图像,并识别图像中的二维码。在成功识别二维码之后,手机的显示屏则可显示微信应用添加小明的界面。
需要说明的是,图1至图4展示的应用场景中,图形识别码是以小明的微信二维码名片为例进行介绍。当然,这并不构成对本申请实施例提供的扫码方法的限定。
在一些其他应用场景中,图形识别码也可以为微信、支付宝等应用程序的付款码;也可以是健康码、共享单车的扫描码、点餐码、快递柜码、WIFI二维码、发票二维码、医院社保条码等;还可以是应用程序的下载码,网站的访问码等。
本申请实施例提供的扫码方法,可以适用于手机,平板电脑,桌面型、膝上型、笔记本电脑,超级移动个人计算机(Ultra-mobile Personal Computer,UMPC),手持计算机,上网本,个人数字助理(Personal Digital Assistant,PDA),可穿戴电子设备和智能手表等带有拍摄功能的电子设备。
以下以手机为例,对本申请实施例的电子设备的硬件结构进行介绍。
图5为本申请实施例提供的一种电子设备的组成示例。如图5所示,电子设备100可以包括处理器110,内部存储器120,摄像头130,显示屏140,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180以及按键190等。
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,智能传感集线器(sensor hub)和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
内部存储器120可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器120的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器120的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
一些实施例中,内部存储器120存储的是用于执行扫码方法的指令。处理器110可以通过执行存储在内部存储器120中的指令,实现控制电子设备在多种运行状态下扫描图形识别码。
电子设备100可以通过ISP,摄像头130,视频编解码器,GPU,显示屏140以及应用处理器等实现拍摄功能。
ISP用于处理摄像头130反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。
在一些实施例中,ISP还可用于识别摄像头130拍摄的图像中是否有二维码、条形码等图形识别码。ISP识别到图像中有图形识别码,摄像头130可采集标准的RGB,YUV等格式的图像。ISP还用于识别标准的RGB,YUV等格式的图像中的图形识别码,并控制显示屏显示图像识别码被扫码之后的界面。
在另一些实施例中,ISP识别到图像中有图形识别码,摄像头130采集标准的RGB,YUV等格式的图像。AP用于识别标准的RGB,YUV等格式的图像中的图形识别码,并控制显示屏显示图像识别码被扫码之后的界面。
摄像头130用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件(也称传感器)。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。
在一些实施例中,电子设备100可以包括1个或N个摄像头130,N为大于1的正整数。其中,电子设备100设置的多个摄像头130中,一个摄像头为带有AON传感器的摄像头。带有AON传感器的摄像头,可以理解成是功耗较低的摄像头,且处于常开工作状态。手机开机之后,带有AON传感器的摄像头则运行以采集图像。并且,带有AON传感器的摄像头采集的图像的分辨率较低,通常为黑白图像。
在另一些实施例中,电子设备100也可以包括1个或N个摄像头130,N为大于1的正整数。并且,一个摄像头130被配置有两种传感器,第一种传感器为普通传感器,用于提供摄像头得到标准的RGB,YUV等格式的图像。第二种传感器AON传感器,处于常开工作状态,用于提供摄像头得到较低分辨率的图像,图像也通常为黑白图像。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)4,MPEG2,MPEG3,MPEG4等。
电子设备通过GPU,显示屏140以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏140和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏140用于显示图像,视频等。显示屏140包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏140,N为大于1的正整数。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器170A收听音乐,或收听免提通话。一些实施例中,手机播放慢动作视频时,扬声器170A则转换慢动作视频的音频电信号为声音信号并对外播放。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备可以设置至少一个麦克风170C。在另一些实施例中,电子设备可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
传感器模块180中,压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏140。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备根据电容的变化确定压力的强度。当有触摸操作作用于显示屏140,电子设备根据压力传感器180A检测触摸操作强度。电子设备也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。
触摸传感器180B,也称“触控器件”。触摸传感器180B可以设置于显示屏140,由触摸传感器180B与显示屏140组成触摸屏,也称“触控屏”。触摸传感器180B用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏140提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180B也可以设置于电子设备的表面,与显示屏140所处的位置不同。
一些实施例中,压力传感器180A和触摸传感器180B可用于检测用户对显示屏140展示的控件、图像、图标、视频等的触控操作。电子设备可响应压力传感器180A和触摸传感器180B检测的触控操作,执行对应流程。
按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。
为了便于理解,本申请以下实施例将以具有图5所示结构的电子设备为例,对本申请实施例提供的扫码方法进行具体阐述。
本申请以下实施例将以电子设备为手机,手机中安装摄像头1和摄像头2两个后置摄像头,且摄像头1中的传感器为AON传感器,摄像头2中的传感器为普通传感器为例,详细介绍本申请提供的扫码方法。
实施例一
参见图6,本实施例提供的手机的扫码方法,包括下述步骤:
S101、摄像头1采集低分辨率图像。
如前述内容,摄像头1的传感器为AON传感器,属于低功耗传感器。摄像头1处于常开状态。其中,摄像头处于常开状态,可以理解成:手机开机后,摄像头1自动运行以采集图像,无需通过应用程序启动。
因摄像头1的传感器为AON传感器,因此,摄像头1采集的图像为低分辨率图像。一些实施例中,低分辨率图像可以理解成是黑白图。
需要说明的是,摄像头1可周期性的采集低分辨率图像,即摄像头1以一定的时间间隔采集低分辨率图像。当然,时间间隔可被设定。
本实施例中,摄像头1为手机的后置摄像头。因此,手机以后置摄像头或后盖对着二维码一定的距离,当然还可以理解成二维码处于摄像头1的拍摄范围内。摄像头1采集的低分辨率图像中则会包括二维码。
进一步的,摄像头1采集低分辨率图像过程中,手机的工作状态不受限制。一些实施例中,手机可为图1展示的应用场景所示,处于灭屏状态。另一些实施例中,手机还可以为图2展示的应用场景所示,播放视频。
当然,手机还可以为其他工作状态。示例性的,显示屏处于熄屏显示界面(或称为熄屏显示状态),显示屏处于亮屏锁屏状态,显示屏处于亮屏解锁状态,手机运行任意一个应用程序,显示屏显示被运行的应用程序的界面等。其中,熄屏显示界面属于一种低功耗的展示界面,该界面一般展示一些提示用户的消息,如时间,日期,手机电量等。另外,该界面还可展示动画效果,与提示用户的消息进行同步显示。
S102、摄像头1向ISP发送低分辨率图像。
如前述手机的硬件结构的内容,ISP为处理单元。摄像头1采集图像,可向ISP发送。一些实施例中,摄像头1以一定的时间间隔采集低分辨图像,摄像头1采集的每一帧低分辨率图像,均向ISP发送。
S103、ISP识别低分辨率图像是否包括二维码。
ISP接收到摄像头1发送的低分辨率图像,识别该低分辨率图像中是否包括二维码。其中,二维码包括类似“回”字形的定位框,通常位于左上角、右上角和左下角。ISP可识别低分辨率图像的左上角、右上角和左下角,是否包括定位框。若ISP识别到左上角、右上角和左下角中的至少一个位置,包括定位框,则说明低分辨率图像包括二维码。
需要说明的是,本申请实施例是以二维码为例进行介绍。本申请的一些实施例中,ISP也可识别低分辨率图像中是否包括条形码。当然,条形码是将宽度不等的多个黑条和空白,按照一定的编码规则排列得到。因此,ISP可以识别低分辨率图像中是否包括有多个黑条,以此来确定低分辨率图像是否包括条形码。
如前述内容,条形码和二维码,均属于图形识别码。因此,本申请实施例中,ISP可识别低分辨率图像是否包括二维码或条形码,可以理解成是ISP识别低分辨率图像是否包括图形识别码。一些实施例中,ISP可通过图形识别码的特征,来识别低分辨率图像是否包括图形识别码。针对二维码,特征指代定位框;针对条形码,特征指代黑条。
其中,ISP识别到低分辨率图像包括二维码,则可执行步骤S104至步骤S110。若ISP识别到低分辨率图像不包括二维码,则返回执行步骤S103,以识别摄像头1采集的下一帧低分辨率图像是否包括二维码。
当然,如前所述,二维码是示例性介绍。一些实施例中,ISP识别到低分辨率图像包括图形识别码,则可执行步骤S104至步骤S110。若ISP识别到低分辨率图像不包括图形识别码,则返回执行步骤S103,以识别摄像头1采集的下一帧低分辨率图像是否包括图形识别码。
S104、ISP控制摄像头2运行。
其中,ISP识别到低分辨率图像包括二维码等图形识别码,则控制摄像头2运行。因摄像头2中的传感器为普通传感器。因此,摄像头2运行,可以理解成是以正常模式运行以拍摄普通图像,该图像的格式为标准的RGB,YUV等格式。
一些实施例中,ISP控制摄像头2运行,摄像头1则可被停止运行。当然,摄像头1也可以继续运行。
需要说明的是,本实施例中是以后置摄像头至少包括摄像头1和摄像头2为例进行介绍。如前述手机的硬件结构内容。手机可设置一个摄像头,该摄像头包括两种传感器,一种是AON传感器(处于常开状态),另一种是普通传感器。
基于此,前述步骤S101可以理解成:摄像头以低功耗模式运行,以控制AON传感器运行采集图像。步骤S104可以理解成:摄像头以正常模式运行,以控制普通传感器运行采集标准的RGB,YUV等格式的普通图像。并且,摄像头以正常模式运行时,AON传感器可被关闭运行。
S105、摄像头2采集图像。
其中,摄像头2采集的图像时,手机的位置与摄像头1采集的图像时一致,即手机在摄像头1和摄像头2采集图像时,手机的位置基本不变。因此,摄像头2采集的图像,与摄像头1采集的低分辨率图像的图像数据基本等同。唯一的区别在于,摄像头1采集的图像为低分辨率图像,摄像头2采集的图像为普通图像,分辨率高于摄像头1采集的图像。
可以理解成:为了避免摄像头1采集的图像,因分辨率过低,导致ISP识别图像信息出现误差甚至错误,因此,在摄像头1采集的图像包括二维码等图形识别码时,再调用摄像头2采集分辨率比摄像头1采集的图像高的图像。
一些实施例中,摄像头2可采集一帧图像。另一些实施例中,摄像头2也可采集多帧图像。
需要说明的是,如前述步骤S101的内容,手机可处于亮屏状态的任意界面、灭屏状态或熄屏显示状态。基于此,一些实施例中,ISP控制摄像头2运行,摄像头2可以后台运行,显示屏不显示摄像头2的扫码预览界面。如此,可以保证摄像头2运行采集图像以实现扫码,不中断手机处于运行的应用程序。示例性的,图2展示的应用场景中,手机播放视频,ISP控制摄像头2运行采集图像的过程中,手机的显示屏继续播放视频。
另一些实施例中,若手机执行步骤S101至步骤S103的过程中,手机处于灭屏状态或显示熄屏显示界面。摄像头2运行以采集图像,手机可同步点亮显示屏,并由显示屏显示
桌面解锁界面。在用户解锁完成后,可控制显示屏显示扫码预览界面。其中,扫码预览界面为手机系统自带的扫码界面,用于展示摄像头2扫描的二维码图像。
另一些实施例中,若手机执行步骤S101至步骤S103的过程中,手机处于亮屏锁屏状态。摄像头2运行以采集图像,手机可由显示屏显示桌面解锁界面。在用户解锁完成后,可控制显示屏显示扫码预览界面。
另一些实施例中,若手机执行步骤S101至步骤S103的过程中,手机处于亮屏解锁状态。摄像头2运行以采集图像,手机可控制显示屏显示扫码预览界面。
另一些实施例中,若手机执行步骤S101至步骤S103的过程中,手机处于运行应用程序,并展示应用程序的界面状态。摄像头2运行以采集图像,手机可控制显示屏从展示应用程序的界面,调整为显示扫码预览界面。
S106、摄像头2向ISP发送图像。
摄像头2采集的图像可向ISP发送。
需要说明的是,若摄像头1和摄像头2为同一个摄像头,摄像头以正常模式运行采集图像之后,该图像也被摄像头向ISP发送。
一些实施例中,摄像头1采集多帧图像,则每一帧图像均向ISP发送。
S107、ISP解析图像中的二维码,得到二维码信息。
ISP接收到摄像头2发送的图像。因步骤S103中,ISP识别到低分辨率图像包括二维码,并且,摄像头2采集的图像和低分辨率图像的图像数据相同。因此,摄像头2采集的图像,也包括二维码。
一些实施例中,ISP执行步骤S107之前,也可以再一次识别图像是否包括二维码。在识别到二维码之后再执行步骤S107。
二维码包括定位框和几何图形,其中二维码信息是以几何图形形式进行展示。因此,ISP可定位到几何图形,并对其进行解析,得到其反映的二维码信息。
一些实施例中,一个二维码的二维码信息,会包括二维码所属应用程序的Intent事件,该二维码所属应用程序的Intent事件,用于说明该二维码被扫描之后,应用程序的展示界面。并且,该二维码所属应用程序的Intent事件,可以与应用程序的展示界面进行关联。
还需要说明的是,如前述步骤S103,低分辨率图像和本步骤中的图像,还可包括条形码等其他形式的图形识别码。因此,本步骤,可以理解成ISP解析图像中的图形识别码,得到图形识别码的识别码信息。
一些实施例中,条形码的多个黑条和空白,按照一定的编码规则排列,用以表达一组信息,该信息则为识别码信息。并且,识别码信息也会包括图形识别码对应的应用程序(或者称为图形识别码所属的应用程序)的Intent事件,该图形识别码所属应用程序的Intent事件,用于说明该图形识别码被扫描之后,应用程序的展示界面。并且,该图形识别码所属应用程序的Intent事件,可以与应用程序的展示界面进行关联。
S108、ISP识别二维码信息,得到二维码对应的应用程序的展示界面。
基于前述步骤S107,二维码信息,包括二维码所属应用程序的Intent事件,且该二维码所属应用程序的Intent事件,与应用程序的展示界面进行关联。因此,ISP识别二维码信息之后,可确定二维码对应的应用程序的展示界面。
示例性的,图1至图4展示的应用场景中,手机的显示屏显示的微信应用添加小明的界面,即为一种二维码对应的应用程序的展示界面。
需要说明的是,ISP识别图形识别码的识别码信息,则也可确定该图形识别码对应的应用程序的展示界面。
S109、ISP控制显示屏显示二维码对应的应用程序的展示界面。
ISP确定二维码对应的应用程序的展示界面之后,可通过发送控制指令以控制显示屏将该展示界面进行显示。
需要说明的是,步骤S107至步骤S109也可由AP执行,基于此,步骤S107中,摄像头2向AP发送采集的图像。
步骤S107至步骤S109由ISP执行,具有功耗低和处理速度快的要求,但对ISP芯片的运算空间有一定的要求。步骤S107至步骤S109由AP执行,可以避免对ISP芯片的运算空间的要求,但功耗比ISP处理要高,且处理速度比ISP处理要慢。
S110、显示屏显示二维码对应的应用程序的展示界面。
其中,显示屏可响应于ISP发送的控制指令,显示二维码对应的应用程序的展示界面。一些实施例中,显示屏显示二维码对应的应用程序的展示界面的同时,手机还可通过震动或者发出提示音的方式提醒用户。
显示屏显示二维码对应的应用程序的展示界面之后,用户可在显示屏上输入对该展示界面的操作。示例性的,图1至图4展示的应用场景中,手机的显示屏显示微信应用添加小明的界面之后,用户可输入点击“添加到通信录”的操作。对应的,手机可响应于用户输入的点击“添加到通信录”的操作,将小明作为微信应用的一个联系人。
当然,用户对显示屏显示的二维码对应的应用程序的展示界面输入的操作,以及手机响应于用户输入的操作而执行的流程,受限于二维码对应的应用程序的设定。目前常见的应用程序,其附带的多种类型的二维码被扫描之后的展示界面可被输入的操作,以及输入操作后的处理流程,均在本实施例的保护范围内。
本实施例中前述步骤S108至步骤S110,均是以二维码为例进行介绍。实质上,本实施例的前述步骤S108至步骤S110,二维码可被包括二维码和条形码的图形识别码代替。
需要说明的是,手机执行步骤S101至步骤S109过程中,手机可处于亮屏状态的任意界面、灭屏状态或熄屏显示状态。基于此,手机可基于自身的所处状态控制显示屏从其他状态,切换到步骤S110中提出的显示二维码对应的应用程序的展示界面。
一些实施例中,手机执行步骤S101至步骤S109过程中,手机处于灭屏状态或显示熄屏显示界面,显示屏执行步骤S110之前,先点亮显示屏,并由显示屏显示桌面解锁界面。在用户解锁完成后,再显示二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S101至步骤S109过程中,手机处于亮屏锁屏状态,显示屏执行步骤S110之前,先显示桌面解锁界面。在用户解锁完成后,再显示二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S101至步骤S109过程中,手机处于亮屏解锁状态,显示屏则可直接执行步骤S110,显示二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S101至步骤S109过程中,手机处于运行应用程序,并展示应用程序的界面状态,显示屏执行步骤S110,由展示的应用程序的界面,调整为显示二维码对应的应用程序的展示界面。
进一步结合前述步骤S105的内容,若手机在摄像头2采集图像时,显示屏显示扫码预览界面,之后,显示屏再执行步骤S110,显示二维码对应的应用程序的展示界面。
需要说明的是,本实施例是以摄像头1和摄像头2两个后置摄像头为例进行介绍。一些实施例中,手机的前置摄像头也可设置AON传感器和普通传感器。基于此,手机也可利用前置摄像头采集低分辨率图像和普通图像,并执行本实施例提供的扫码方法。
本实施例提供的扫码方法中,摄像头1处于常开状态,在手机开机后则开始运行以采集低分辨率图像,在ISP识别低分辨率图像包括二维码时,ISP控制摄像头2运行以采集图像,并提供给ISP。ISP解析图像中的二维码,得到二维码信息,并识别二维码信息,得到二维码对应的应用程序的展示界面,再控制显示屏显示二维码对应的应用程序的展示界面。如此实现了用户需要扫描二维码等图形识别码时,无需执行手动操作,手机自动完成,提升扫码效率。
实施例二
摄像头1采集的低分辨率图像,可能包括多个二维码。示例性的,图7展示的应用场景中,电子设备以手机为例,图形识别码包括小明的微信二维码名片和小明的付款码。手机的显示屏处于灭屏状态。用户控制手机背对二维码,手机可自动调用后置摄像头采集图像,并识别图像中的两个二维码。手机成功扫描两个二维码之后,手机的显示屏可以分屏的方式,显示微信应用添加小明的界面以及小明的付款界面。
当然,显示屏显示微信应用添加小明的界面以及小明的付款界面的方式,并不限于图7,图7为示例性的展示。
图8展示了本实施例提供的扫码方法。本实施例提供的扫码方法,可同时对多个图形识别码进行扫码,并在显示屏同时显示每个图形识别码对应的应用程序的展示界面。
参见图8,本实施例提供的扫码方法,包括步骤:
S201、摄像头1采集低分辨率图像。
本步骤的具体实现方式,可参见前述实施例一中步骤S101的内容,此处不展开说明。
S202、摄像头1向ISP发送低分辨率图像。
本步骤的具体实现方式,可参见前述实施例一中步骤S102的内容,此处不展开说明。
S203、ISP识别低分辨率图像是否包括二维码。
本步骤的具体实现方式,可参见前述实施例一中步骤S103的内容,此处不展开说明。
其中,ISP识别到低分辨率图像包括二维码,则可执行步骤S204至步骤S216。若ISP识别到低分辨率图像不包括二维码,则返回执行步骤S203,以识别摄像头1采集的下一帧低分辨率图像是否包括二维码。
S204、ISP控制摄像头2运行。
本步骤的具体实现方式,可参见前述实施例一中步骤S104的内容,此处不展开说明。
S205、ISP判断低分辨率图像是否识别到多个二维码。
ISP识别二维码的方式,可如前述实施例中步骤S103的内容。ISP识别到一个二维码之后,可记录一次,识别到另一个二维码,则可累加记录的数值。在ISP识别二维码结束之后,可通过识别记录的数值,来确定ISP是否识别到多个二维码。
其中,若ISP判断低分辨率图像未识别到多个二维码,则执行步骤S208至步骤S210,若ISP判断低分辨率图像识别到多个二维码,则执行步骤S212至步骤S216。
需要说明的是,图8展示了步骤S204和步骤S205的一种执行顺序,但步骤S204和步骤S205的执行顺序并不限于图8所示。一些实施例中,ISP也可先执行步骤S205再执行步骤S204。一些实施例中,步骤S204和步骤S205也可并行执行。
还需要说明的是,ISP也可通过执行步骤S205,来完成识别低分辨率图像是否包括二维码,以及识别低分辨率图像是否包括多个二维码两个功能。具体的,ISP接收到摄像头1发送的低分辨率图像之后,执行步骤S205。ISP判断低分辨率图像可被识别出多个二维码,则执行步骤S204,以及步骤212至步骤S216。ISP判断低分辨率图像未被识别出多个二维码,但识别到二维码,则执行步骤S204,以及步骤208至步骤S210。ISP判断低分辨率图像未被识别到二维码,可返回继续针对接收的下一帧低分辨率图像,执行步骤S205。
还需要说明的是,本实施例中是以二维码作为图形识别码为例进行说明。一些实施例中,ISP也可以识别低分辨率图像是否包括多个图形识别码,该图形识别码包括二维码和条码。其中,多个图形识别码可包括:二维码和条码的混合,或者多个二维码,或者多个条码。ISP识别低分辨率图像未包括多个图形识别码,则执行步骤S208至步骤S210,若ISP识别低分辨率图像包括多个图形识别码,则执行步骤S212至步骤S216。
S206、摄像头2采集图像。
本步骤的具体实现方式,可参见前述实施例一中步骤S105的内容,此处不展开说明。
S207、摄像头2向ISP发送图像。
本步骤的具体实现方式,可参见前述步骤S106的内容,此处不展开说明。
S208、ISP解析图像中的二维码,得到二维码信息。
本步骤的具体实现方式,可参见前述实施例一中步骤S107的内容,此处不展开说明。
S209、ISP识别二维码信息,得到二维码对应的应用程序的展示界面。
本步骤的具体实现方式,可参见前述实施例一中步骤S108的内容,此处不展开说明。
S210、ISP控制显示屏显示二维码对应的应用程序的展示界面。
本步骤的具体实现方式,可参见前述实施例一中步骤S109的内容,此处不展开说明。
S211、显示屏显示二维码对应的应用程序的展示界面。
本步骤的具体实现方式,可参见前述步骤S110的内容,此处不展开说明。
S212、ISP定位图像中的每一个二维码。
其中,ISP可识别图像中每一个二维码的定位框,来对二维码进行定位。ISP定位到一个二维码,可通过执行步骤S213和步骤214,得到该二维码对应的应用程序的展示界面。在ISP得到图像中所有二维码对应的应用程序的展示界面之后,手机再通过执行步骤S215和步骤S216,在显示屏上同时显示图像中所有二维码对应的应用程序的展示界面。
需要说明的是,ISP识别到低分辨率图像包括多个条形码,或者条形码和二维码的混合。针对条形码,ISP可根据条形码的黑条进行定位,以得到每一个条形码。
S213、ISP解析图像中的每一个二维码,得到每一个二维码的二维码信息。
其中,针对ISP定位到的图像中的每一个二维码,ISP可采用前述实施例一中步骤S107的内容,解析二维码,得到二维码的二维码信息。
S214、ISP识别每一个二维码的二维码信息,得到每一个二维码对应的应用程序的展示界面。
其中,针对ISP定位到的图像中的每一个二维码,ISP可采用前述实施例一中步骤S108的内容,识别二维码信息,得到二维码对应的应用程序的展示界面。
S215、ISP控制显示屏同时显示每一个二维码对应的应用程序的展示界面。
其中,ISP可通过向显示屏发送指令,以控制显示屏同时显示每一个二维码对应的应用程序的展示界面。
S216、显示屏同时显示每一个二维码对应的应用程序的展示界面。
其中,显示屏同时显示每一个二维码对应的应用程序的展示界面,可以理解成:每一个二维码对应的应用程序的展示界面在显示屏上进行同步显示。示例性的,图7中展示了微信应用添加小明的界面以及小明的付款界面在显示屏上同步显示。图7中,微信应用添加小明的界面和小明的付款界面,分别属于一个二维码对应的应用程序的展示界面。并且,两者通过上下排列的方式,在显示屏上进行显示。
当然,每一个二维码对应的应用程序的展示界面可以不限于图7展示的显示方式,可以在显示屏上左右排列显示。或者,在显示屏的一个唯一的任意位置显示每一个二维码对应的应用程序的展示界面。或者,多个二维码对应的应用程序的展示界面进行叠交显示等。
显示屏显示了每一个二维码对应的应用程序的展示界面之后,用户可通过在显示屏上输入操作,以实现对多个二维码对应的应用程序的展示界面的管理。
一些实施例中,用户可通过在显示屏上输入对二维码对应的应用程序的展示界面的关闭操作。示例性的,显示屏上可显示二维码对应的应用程序的展示界面的关闭控件,如图7中展示的“×”,用户可点击关闭控件。手机响应于用户输入的对二维码对应的应用程序的展示界面的关闭操作,将用户输入的关闭操作所执行的二维码对应的应用程序的展示界面进行隐藏(可以理解成显示屏不显示)。
若用户输入对二维码对应的应用程序的展示界面的关闭操作之后,显示屏仅剩余一个二维码对应的应用程序的展示界面。显示屏剩余的二维码对应的应用程序的展示界面,可进行全屏显示。
另一些实施例中,用户也可点击显示屏显示的一个二维码对应的应用程序的展示界面,手机响应于用户的点击操作,可将被用户点击的二维码对应的应用程序的展示界面进行全屏显示。
需要说明的是,本实施例中,步骤S208至步骤S210,以及步骤S212至步骤S215也可由AP执行,基于此,步骤S207中,摄像头2向AP发送采集的图像。
步骤S208至步骤S210,以及步骤S212至步骤S215由ISP执行,具有功耗低和处理速度快的要求,但对ISP芯片的运算空间有一定的要求。步骤S208至步骤S210,以及步骤S212至步骤S215由AP执行,可以避免对ISP芯片的运算空间的要求,但功耗比ISP处理要高,且处理速度比ISP处理要慢。
还需要说明的是,手机执行步骤S212至步骤S215过程中,手机可处于亮屏状态的任意界面,熄屏显示状态或灭屏状态。基于此,手机可基于自身的所处状态控制显示屏从其他状态,切换到步骤S216中提出的同时显示每一个二维码对应的应用程序的展示界面。
一些实施例中,手机执行步骤S212至步骤S215过程中,手机处于灭屏状态或显示熄屏显示界面,显示屏执行步骤S216之前,先点亮显示屏,并由显示屏显示桌面解锁界面。在用户解锁完成后,再同时显示每一个二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S212至步骤S215过程中,手机处于亮屏锁屏状态,显示屏执行步骤S216之前,先显示桌面解锁界面。在用户解锁完成后,再同时显示每一个二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S212至步骤S215过程中,手机处于亮屏解锁状态,显示屏则可直接执行步骤S216,同时显示每一个二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S212至步骤S215过程中,手机处于运行应用程序,并展示应用程序的界面状态,显示屏执行步骤S216,由展示的应用程序的界面,调整为同时显示每一个二维码对应的应用程序的展示界面。
进一步结合前述步骤S206的内容,若手机在摄像头2采集图像时,显示屏显示扫码预览界面。之后,显示屏再执行步骤S216,同时显示每一个二维码对应的应用程序的展示界面,也就是将显示扫码预览界面,切换为显示每一个二维码对应的应用程序的展示界面。
需要说明的是,本实施例也是以摄像头1和摄像头2两个后置摄像头为例进行介绍。一些实施例中,手机的前置摄像头也可设置AON传感器和普通传感器。基于此,手机也可利用前置摄像头采集低分辨率图像和普通图像,并执行本实施例提供的扫码方法。
本实施例中步骤S212至步骤S216,均是以二维码为例进行介绍。实质上,本实施例的前述步骤S212至步骤S216,二维码可被包括二维码和条形码的图形识别码代替。
本实施例提供的扫码方法中,摄像头1处于常开状态,在手机开机后则开始运行以采集低分辨率图像,在ISP识别低分辨率图像包括多个二维码时,ISP控制摄像头2运行以采集图像,并提供给ISP。ISP解析图像中的二维码,得到每一个二维码的二维码信息,并识别二维码信息,得到每一个二维码对应的应用程序的展示界面,再控制显示屏同时显示每一个二维码对应的应用程序的展示界面。如此实现了用户需要扫描二维码等图形识别码时,无需执行手动操作,手机自动完成,提升扫码效率。并且,通过手机的摄像头1采集的图像,得到图像中的多个二维码对应的应用程序的展示界面,均可以在显示屏上进行显示,进一步提升了扫码效率。
实施例三
手机可在一定的时间间隔内,连续采集多个包括二维码的图像。并且,每个图像中的二维码不相同。示例性的,图9展示的应用场景中,电子设备以手机为例,图形识别码包括小明的微信二维码名片和小明的付款码。手机的显示屏处于灭屏状态。用户控制手机背对二维码,并沿虚线移动手机。在手机移动过程中,手机可自动调用后置摄像头采集图像,并识别每个图像中的二维码。手机控制微信的扫码功能运行启动,并依次扫描两个二维码。在成功扫描两个二维码之后,手机的显示屏可以分屏的方式,显示微信应用添加小明的界面以及小明的付款界面。
当然,显示屏显示微信应用添加小明的界面以及小明的付款界面的方式,并不限于图9,图9为示例性的展示。
图10展示了本实施例提供的扫码方法。本实施例提供的扫码方法,可对手机依次采集的多个图像中包括的图形识别码进行扫码,并在显示屏同时显示每个图形识别码对应的应用程序的展示界面。
参见图10,本实施例提供的扫码方法,包括下述步骤:
S301、摄像头1采集低分辨率图像。
本步骤的具体实现方式,可参见前述实施例一中步骤S101的内容,此处不展开说明。
S302、摄像头1向ISP发送低分辨率图像。
本步骤的具体实现方式,可参见前述实施例一中步骤S102的内容,此处不展开说明。
S303、ISP识别低分辨率图像是否包括二维码。
本步骤的具体实现方式,可参见前述实施例一中步骤S103的内容,此处不展开说明。
其中,ISP识别到低分辨率图像包括二维码,则可执行步骤S304至步骤S311。若ISP识别到低分辨率图像不包括二维码,则返回执行步骤S303,以识别摄像头1采集的下一帧低分辨率图像是否包括二维码。
S304、ISP控制摄像头2运行。
本步骤的具体实现方式,可参见前述实施例一中步骤S104的内容,此处不展开说明。
S305、摄像头2连续采集多张图像。
ISP控制摄像头2运行之后,摄像头1可退出运行状态。为避免用户移动手机连续在多个二维码前滑过,而手机仅驱动摄像头2拍摄一张图像造成的只能识别出一个二维码,而丢失识别其他二维码。摄像头2运行时,可连续采集多张图像(或称为多帧图像)。
其中,摄像头2可按照自身设定的采集频率,在一定时间内采集多张图像。当然该时间也可根据实际情况进行设定。示例性的,一定时间可为3S,5S等。
需要说明的是,ISP控制摄像头2运行之后,摄像头1也可继续处于运行状态。并且,摄像头1和摄像头2可并行运行。基于此,摄像头2也可连续采集多张图像,且每采集一次图像的行为,受摄像头1采集的低分辨率识别到二维码的触发。
还需要说明的是,如前述实施例一中的步骤S101的内容,手机可处于亮屏状态的任意界面,熄屏显示状态或灭屏状态。基于此,一些实施例中,ISP控制摄像头2运行,摄像头2可以后台运行,显示屏不显示摄像头2的扫码预览界面。如此,可以保证摄像头2运行采集图像以实现扫码,不中断手机处于运行的应用程序。
另一些实施例中,若手机执行步骤S301至步骤S303的过程中,手机处于灭屏状态或显示熄屏显示界面。摄像头2运行以采集图像,手机可同步点亮显示屏,并由显示屏显示桌面解锁界面。在用户解锁完成后,可控制显示屏显示扫码预览界面。其中,扫码预览界面为手机系统自带的扫码界面,用于展示摄像头2扫描的二维码图像。
另一些实施例中,若手机执行步骤S301至步骤S303的过程中,手机处于亮屏锁屏状态。摄像头2运行以采集图像,手机可由显示屏显示桌面解锁界面。在用户解锁完成后,可控制显示屏显示扫码预览界面。
另一些实施例中,若手机执行步骤S301至步骤S303的过程中,手机处于亮屏解锁状态。摄像头2运行以采集图像,手机可控制显示屏显示扫码预览界面。
另一些实施例中,若手机执行步骤S301至步骤S303的过程中,手机处于运行应用程序,并展示应用程序的界面状态。摄像头2运行以采集图像,手机可控制显示屏从展示应用程序的界面,调整为显示扫码预览界面。
S306、摄像头2向ISP发送采集到的每一张图像。
本步骤的具体实现方式,可参见前述步骤S106的内容,此处不展开说明。
并且,摄像头2通常采用先采集的图像,先向ISP发送的方式,向ISP发送采集到的每一张图像。即摄像头2按照图像的采集顺序,向ISP发送采集到的每一张图像。
S307、ISP识别每一张图像是否包含二维码。
其中,ISP可采用前述实施例一中的步骤S103提出的方式,识别每一张图像是否包括二维码。并且,针对一张图像,ISP识别到图像包括二维码,则执行步骤S308至步骤S310,若ISP识别到图像未包括二维码,可返回识别下一张图像,直至摄像头2采集的所有图像均被识别完成。
S308、ISP针对识别到二维码的图像,解析图像中的二维码,得到二维码信息。
其中,ISP可采用前述实施例一中的步骤S107提出的方式,解析图像中的二维码,得到二维码信息。
S309、ISP识别二维码信息,得到二维码对应的应用程序的展示界面。
其中,ISP可采用前述实施例一中的步骤S108提出的方式,识别二维码信息,得到二维码对应的应用程序的展示界面。
S310、ISP控制显示屏同时显示每一个二维码对应的应用程序的展示界面。
其中,ISP可采用前述实施例二中的步骤S215提出的方式,控制显示屏同时显示每一个二维码对应的应用程序的展示界面。
S311、显示屏同时显示每一个二维码对应的应用程序的展示界面。
其中,显示屏可采用前述实施例二中的步骤S216提出的方式,同时显示每一个二维码对应的应用程序的展示界面。
需要说明的是,手机执行步骤S307至步骤S310过程中,手机可处于亮屏状态的任意界面,熄屏显示状态或灭屏状态。基于此,手机可基于自身的所处状态控制显示屏从其他状态,切换到步骤S311中提出的同时显示每一个二维码对应的应用程序的展示界面。
一些实施例中,手机执行步骤S307至步骤S310过程中,手机处于灭屏状态或显示熄屏显示界面,显示屏执行步骤S311之前,先点亮显示屏,并由显示屏显示桌面解锁界面。在用户解锁完成后,再同时显示每一个二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S307至步骤S310过程中,手机处于亮屏锁屏状态,显示屏执行步骤S311之前,先显示桌面解锁界面。在用户解锁完成后,再同时显示每一个二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S307至步骤S310过程中,手机处于亮屏解锁状态,显示屏则可直接执行步骤S311,同时显示每一个二维码对应的应用程序的展示界面。
另一些实施例中,手机执行步骤S307至步骤S310过程中,手机处于运行应用程序,并展示应用程序的界面状态,显示屏执行步骤S311,由展示的应用程序的界面,调整为同时显示每一个二维码对应的应用程序的展示界面。
进一步结合前述步骤S305的内容,若手机在摄像头2采集图像时,显示屏显示扫码预览界面。之后,显示屏再执行步骤S311,同时显示每一个二维码对应的应用程序的展示界面,也就是将显示扫码预览界面,切换为显示每一个二维码对应的应用程序的展示界面。
还需要说明的是,本实施例也是以摄像头1和摄像头2两个后置摄像头为例进行介绍。一些实施例中,手机的前置摄像头也可设置AON传感器和普通传感器。基于此,手机也可利用前置摄像头采集低分辨率图像和普通图像,并执行本实施例提供的扫码方法。
本实施例中步骤S301至步骤S311,均是以二维码为例进行介绍。实质上,本实施例的前述步骤S301至步骤S311,二维码可被包括二维码和条形码的图形识别码代替。
本实施例提供的扫码方法中,摄像头1处于常开状态,在手机开机后则开始运行以采集低分辨率图像,在ISP识别低分辨率图像包括二维码时,ISP控制摄像头2运行并连续采集多张图像,并将采集的图像提供给ISP。ISP解析图像中的二维码,得到每一个二维码的二维码信息,并识别二维码信息,得到每一个二维码对应的应用程序的展示界面,再控制显示屏同时显示每一个二维码对应的应用程序的展示界面。如此实现了用户需要扫描二维码等图形识别码时,无需执行手动操作,手机自动完成,提升扫码效率。并且,通过手机的摄像头2连续采集的图像,得到多张图像中的多个二维码对应的应用程序的展示界面,均可以在显示屏上进行显示,进一步提升了扫码效率。
还需要说明的是,本申请实施例二提供的扫码方法和实施例三提供的扫码方法可结合,以实现能够识别一张图像中的多个图形识别码,以及能够识别连续采集的多张图像中的二维码的功能。
一些实施例中,实施例二提供的扫码方法和实施例三提供的扫码方法的一种结合方式为:在图8展示的扫码方法中,步骤S206至步骤S211,调整为步骤S305至步骤S310。
本申请另一实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机或处理器上运行时,使得计算机或处理器执行上述任一个方法中的一个或多个步骤。
计算机可读存储介质可以是非临时性计算机可读存储介质,例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本申请另一实施例还提供了一种包含指令的计算机程序产品。当该计算机程序产品在计算机或处理器上运行时,使得计算机或处理器执行上述任一个方法中的一个或多个步骤。
Claims (16)
- 一种扫码方法,其特征在于,应用于电子设备,所述电子设备包括第一摄像头、第二摄像头和显示屏,所述第一摄像头为常开状态;其中,所述扫码方法,包括:获取所述第一摄像头采集的第一图像;确定所述第一图像包括图形识别码;调用所述第二摄像头运行以采集图像;获取所述第二摄像头采集的第二图像,所述第二图像的分辨率高于所述第一图像的分辨率;确定所述第二图像中的图形识别码对应的应用程序的展示界面;控制所述显示屏显示所述图形识别码对应的应用程序的展示界面。
- 根据权利要求1所述的扫码方法,其特征在于,所述确定所述第二图像中的图形识别码对应的应用程序的展示界面,包括:解析所述第二图像中的图形识别码,得到图形识别码信息;识别所述图形识别码信息,得到所述图形识别码对应的应用程序的展示界面。
- 根据权利要求1所述的扫码方法,其特征在于,所述确定所述第一图像包括图形识别码之后,还包括:确定所述第一图像包括多个图形识别码;定位所述第二图像包括的每一个图形识别码;针对定位到的所述第二图像中的每一个图形识别码,确定所述图形识别码对应的应用程序的展示界面;控制显示屏同时显示每一个所述图形识别码对应的应用程序的展示界面。
- 根据权利要求1至3中任意一项所述的扫码方法,其特征在于,所述调用所述第二摄像头采集图像,包括:调用所述第二摄像头采集连续的多帧图像。
- 根据权利要求4所述的扫码方法,其特征在于,所述控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,包括:控制所述显示屏同时显示所述第二摄像头采集的每一帧图像中的图形识别码对应的应用程序的展示界面。
- 根据权利要求1至5中任意一项所述的扫码方法,其特征在于,所述第一摄像头和所述第二摄像头,同为所述电子设备的前置摄像头或后置摄像头。
- 根据权利要求1至6中任意一项所述的扫码方法,其特征在于,所述第一摄像头对应的传感器为低功耗传感器,所述第一摄像头和所述第二摄像头为同一个摄像头,或者为不同摄像头。
- 根据权利要求1至7中任意一项所述的扫码方法,其特征在于,所述获取所述第一摄像头采集的第一图像,包括:所述电子设备处于亮屏状态的任意界面、灭屏状态或熄屏显示状态,获取所述第一摄像头采集的第一图像。
- 根据权利要求1至8中任意一项所述的扫码方法,其特征在于,所述控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,包括:控制所述显示屏被点亮,且显示桌面解锁界面;响应于第一操作,控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,所述第一操作用于解锁所述桌面解锁界面。
- 根据权利要求1至8中任意一项所述的扫码方法,其特征在于,所述控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,包括:控制所述显示屏显示桌面解锁界面;响应于第一操作,控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,所述第一操作用于解锁所述桌面解锁界面。
- 根据权利要求1至8中任意一项所述的扫码方法,其特征在于,所述控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,包括:控制所述显示屏隐藏第一应用程序的界面,并显示所述图形识别码对应的应用程序的展示界面,所述第一应用程序为所述电子设备处于运行状态的应用程序。
- 根据权利要求1至11中任意一项所述的扫码方法,其特征在于,所述获取所述第二摄像头采集的第二图像;确定所述第二图像中的图形识别码对应的应用程序的展示界面;以及控制所述显示屏显示所述图形识别码对应的应用程序的展示界面,包括:图像信号处理器ISP或应用处理器AP获取所述第二摄像头采集的第二图像;确定所述第二图像中的图形识别码对应的应用程序的展示界面;以及控制所述显示屏显示所述图形识别码对应的应用程序的展示界面。
- 根据权利要求1至12中任意一项所述的扫码方法,其特征在于,所述调用所述第二摄像头运行以采集图像之后,还包括:控制所述显示屏显示扫码预览界面;其中,所述扫码预览界面用于展示所述第二摄像头采集的第二图像。
- 一种电子设备,其特征在于,包括:一个或多个处理器、存储器、第一摄像头、第二摄像头和显示屏;所述第一摄像头为常开状态;所述存储器、所述第一摄像头、所述第二摄像头和所述显示屏,与所述一个或多个所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述电子设备执行如权利要求1至13任意一项所述的扫码方法。
- 一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序被执行时,具体用于实现如权利要求1至13任意一项所述的扫码方法。
- 一种计算机程序产品,其特征在于,当计算机程序产品在计算机上运行时,使得计算机执行现如权利要求1至13任意一项所述的扫码方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210509440.4A CN117094341B (zh) | 2022-05-11 | 2022-05-11 | 扫码方法、电子设备及可读存储介质 |
| CN202210509440.4 | 2022-05-11 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023216830A1 true WO2023216830A1 (zh) | 2023-11-16 |
Family
ID=88729676
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/089446 Ceased WO2023216830A1 (zh) | 2022-05-11 | 2023-04-20 | 扫码方法、电子设备及可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117094341B (zh) |
| WO (1) | WO2023216830A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107944325A (zh) * | 2017-11-23 | 2018-04-20 | 维沃移动通信有限公司 | 一种扫码方法、扫码装置及移动终端 |
| CN109151180A (zh) * | 2018-07-27 | 2019-01-04 | 维沃移动通信有限公司 | 一种对象识别方法及移动终端 |
| CN110516488A (zh) * | 2018-05-22 | 2019-11-29 | 维沃移动通信有限公司 | 一种扫码方法及移动终端 |
| US20210307088A1 (en) * | 2020-03-31 | 2021-09-30 | Canon Kabushiki Kaisha | Control method, storage medium, and information processing apparatus |
| CN113887264A (zh) * | 2021-06-07 | 2022-01-04 | 荣耀终端有限公司 | 扫码方法、系统及相关装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105631378A (zh) * | 2014-10-29 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | 一种二维码扫描方法、装置及终端 |
| CN104864909A (zh) * | 2015-05-08 | 2015-08-26 | 苏州科技学院 | 一种基于车载双目视觉的路面坑槽检测装置 |
| CN106874817A (zh) * | 2016-07-27 | 2017-06-20 | 阿里巴巴集团控股有限公司 | 二维码识别方法、设备和移动终端 |
| CN110517034A (zh) * | 2018-05-22 | 2019-11-29 | 维沃移动通信有限公司 | 一种对象识别方法及移动终端 |
-
2022
- 2022-05-11 CN CN202210509440.4A patent/CN117094341B/zh active Active
-
2023
- 2023-04-20 WO PCT/CN2023/089446 patent/WO2023216830A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107944325A (zh) * | 2017-11-23 | 2018-04-20 | 维沃移动通信有限公司 | 一种扫码方法、扫码装置及移动终端 |
| CN110516488A (zh) * | 2018-05-22 | 2019-11-29 | 维沃移动通信有限公司 | 一种扫码方法及移动终端 |
| CN109151180A (zh) * | 2018-07-27 | 2019-01-04 | 维沃移动通信有限公司 | 一种对象识别方法及移动终端 |
| US20210307088A1 (en) * | 2020-03-31 | 2021-09-30 | Canon Kabushiki Kaisha | Control method, storage medium, and information processing apparatus |
| CN113887264A (zh) * | 2021-06-07 | 2022-01-04 | 荣耀终端有限公司 | 扫码方法、系统及相关装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117094341A (zh) | 2023-11-21 |
| CN117094341B (zh) | 2025-11-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11922005B2 (en) | Screen capture method and related device | |
| US11722449B2 (en) | Notification message preview method and electronic device | |
| CN109766066B (zh) | 一种消息处理的方法、相关装置及系统 | |
| US20240179237A1 (en) | Screenshot Generating Method, Control Method, and Electronic Device | |
| US20250140143A1 (en) | Full-Screen Display Method and Apparatus, and Electronic Device | |
| US12293069B2 (en) | Screen capturing method and electronic device | |
| CN112446255A (zh) | 一种视频图像处理方法及装置 | |
| US20220342516A1 (en) | Display Method for Electronic Device, Electronic Device, and Computer-Readable Storage Medium | |
| US20230244507A1 (en) | Method and Apparatus for Processing Interaction Event | |
| US12236022B2 (en) | Stylus pen input method, electronic device, and system | |
| US20220261205A1 (en) | Content Transmission Method and Terminal Device | |
| JP7687765B2 (ja) | キャプション表示方法及び関連装置 | |
| CN113946302B (zh) | 一种打开文件的方法及设备 | |
| US20240340370A1 (en) | Red packet receiving and sending method and electronic device | |
| CN117094341B (zh) | 扫码方法、电子设备及可读存储介质 | |
| CN121511446A (zh) | 一种图像送显方法、电子设备、存储介质及芯片 | |
| WO2022252812A1 (zh) | 信息保护方法及电子设备 | |
| CN115344168B (zh) | 消息展示方法、终端及计算机可读存储介质 | |
| CN120315619A (zh) | 分屏显示方法、装置和终端设备 | |
| WO2025195182A1 (zh) | 传输数据的方法、电子设备和系统 | |
| CN120762557A (zh) | 业务处理方法、电子设备及存储介质 | |
| CN113672187A (zh) | 一种数据双面显示方法、装置、电子设备及存储介质 | |
| HK40068138B (zh) | 索引显示方法、电子设备及计算机可读存储介质 | |
| CN119025062A (zh) | 远程桌面连接的建立方法、电子设备及可读介质 | |
| CN120821553A (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: 23802605 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: 23802605 Country of ref document: EP Kind code of ref document: A1 |