CN113962239A - Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium - Google Patents

Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN113962239A
CN113962239A CN202111076780.4A CN202111076780A CN113962239A CN 113962239 A CN113962239 A CN 113962239A CN 202111076780 A CN202111076780 A CN 202111076780A CN 113962239 A CN113962239 A CN 113962239A
Authority
CN
China
Prior art keywords
dimensional code
information
determining
camera module
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111076780.4A
Other languages
Chinese (zh)
Inventor
彭聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111076780.4A priority Critical patent/CN113962239A/en
Publication of CN113962239A publication Critical patent/CN113962239A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a two-dimensional code scanning method, a two-dimensional code scanning device, a mobile terminal and a storage medium, wherein the two-dimensional code scanning method comprises the following steps: determining offset information of the two-dimensional code relative to a camera module of the mobile terminal; adjusting image information of a two-dimensional code image according to the offset information, wherein the two-dimensional code image is an image formed by the two-dimensional code acquired by the camera module; and scanning the adjusted two-dimensional code image. Therefore, the two-dimension code scanning speed and the scanning success rate of the mobile terminal are improved, the scanning performance of the mobile terminal for the two-dimension code is further improved, and the user experience is improved.

Description

Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a two-dimensional code scanning method and apparatus, a mobile terminal, and a computer-readable storage medium.
Background
With the development of the mobile terminal, the mobile terminal bears more and more functions, more and more transactions can be handled through the mobile terminal, and for example, daily trips, quick payments, conditions of a shared bicycle or friends and the like can be handled in a two-dimensional code scanning mode through the mobile terminal. However, in the related art, when the mobile terminal scans the two-dimensional code, the two-dimensional code is often inaccurate in imaging, which leads to the problems of slow scanning and identification speed, low identification success rate, and the like.
Disclosure of Invention
According to a first aspect of the embodiments of the present disclosure, there is provided a two-dimensional code scanning method applied to a mobile terminal, including:
determining offset information of the two-dimensional code relative to a camera module of the mobile terminal;
adjusting image information of a two-dimensional code image according to the offset information, wherein the two-dimensional code image is an image formed by the two-dimensional code acquired by the camera module;
and scanning the adjusted two-dimensional code image.
In the foregoing solution, the determining offset information of the two-dimensional code with respect to the camera module of the mobile terminal includes:
transmitting a ranging wave and detecting an echo of the ranging wave;
and determining the offset information of the two-dimensional code relative to the camera module according to the transmitting parameters of the ranging waves and the echo parameters of the echoes.
In the above solution, the transmitting a ranging wave and detecting an echo of the ranging wave includes:
and when the two-dimensional code image is collected, transmitting the ranging wave and detecting the echo of the ranging wave.
In the foregoing solution, the determining offset information of the two-dimensional code with respect to the camera module of the mobile terminal includes:
determining first offset sub-information of the two-dimensional code in a first direction relative to the camera module, wherein the first direction is a direction parallel to the camera module;
and/or
And determining second deviation sub-information of the two-dimensional code relative to the camera module in a second direction, wherein the second direction is a direction perpendicular to the camera module.
In the foregoing solution, the determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module includes:
and determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module according to the identifier of the mobile terminal.
In the foregoing solution, the determining second offset sub-information of the two-dimensional code in a second direction with respect to the camera module includes:
and determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to the image information of the two-dimensional code image.
In the foregoing solution, the adjusting image information of a two-dimensional code image according to the offset information includes:
determining an adjusting parameter of the two-dimensional code image according to the offset information;
and adjusting the image information of the two-dimensional code image according to the adjusting parameter.
According to a second aspect of the present disclosure, there is provided a two-dimensional code scanning device applied in a mobile terminal, including:
the determining module is used for determining the offset information of the two-dimensional code relative to the camera module of the mobile terminal;
the adjusting module is used for adjusting image information of a two-dimensional code image according to the offset information, wherein the two-dimensional code image is an image formed by the two-dimensional code acquired by the camera module;
and the scanning module is used for scanning the adjusted two-dimensional code image.
In the foregoing solution, the determining module includes:
the transmitting and collecting submodule is used for transmitting the ranging wave and detecting the echo of the ranging wave;
and the first determining submodule is used for determining the offset information of the two-dimensional code relative to the camera module according to the transmitting parameter of the ranging wave and the echo parameter of the echo.
In the above scheme, the transmitting and collecting submodule is further configured to:
and when the two-dimensional code image is collected, transmitting the ranging wave and detecting the echo of the ranging wave.
In the foregoing solution, the determining module includes:
the second determining submodule is used for determining first offset sub-information of the two-dimensional code relative to the camera module in a first direction, wherein the first direction is parallel to the camera module;
and/or
And the third determining submodule is used for determining second offset sub-information of the two-dimensional code relative to the camera module in a second direction, wherein the second direction is a direction perpendicular to the camera module.
In the foregoing solution, the second determining submodule is further configured to:
and determining the first offset sub-information of the two-dimensional code on the first defense line relative to the camera module according to the identification of the mobile terminal.
In the foregoing solution, the third determining sub-module is further configured to:
and determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to the image information of the two-dimensional code image.
In the foregoing solution, the adjusting module is further configured to:
determining an adjusting parameter of the two-dimensional code image according to the offset information;
and adjusting the image information of the two-dimensional code image according to the adjusting parameter.
According to a third aspect of the present disclosure, there is provided a mobile terminal comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instruction is run, the two-dimension code scanning method is realized.
According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, where the computer-readable storage medium has an executable program, where the executable program, when executed by a processor, implements the two-dimensional code scanning method according to the embodiment.
In the embodiment of the disclosure, the offset information of the two-dimensional code relative to the camera module of the mobile terminal is determined; and according to the offset information, adjusting the image information of the two-dimensional code image, wherein the two-dimensional code image is an image formed by the camera module collecting the two-dimensional code, and then scanning the adjusted two-dimensional code image.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a two-dimensional code scanning method according to an exemplary embodiment;
FIG. 2 is a rear view of a mobile terminal shown in accordance with an exemplary embodiment;
FIG. 3 is another flow chart illustrating a two-dimensional code scanning method according to an exemplary embodiment;
fig. 4 is a scene schematic diagram illustrating a two-dimensional code scanning method according to an exemplary embodiment;
fig. 5 is another scene schematic diagram illustrating a two-dimensional code scanning method according to an exemplary embodiment;
fig. 6 is a block diagram illustrating a two-dimensional code scanning apparatus according to an exemplary embodiment;
fig. 7 is a block diagram illustrating a mobile terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that, the mobile terminal may generally scan the two-dimensional code by turning on a camera module of the mobile terminal, and then scanning the two-dimensional code by using the camera module of the mobile terminal. However, this scanning method requires the user to manually align the two-dimensional code, which is obviously troublesome for the first time and causes poor alignment accuracy due to visual deviation. So, because the accuracy that the two-dimensional code aimed at is not high can make the recognition rate that mobile terminal discerned the two-dimensional code slow, makes the discernment failure even, consequently speed and success rate when scanning the two-dimensional code through above-mentioned mode and can make the two-dimensional code discernment all receive the influence, and then has influenced mobile terminal's two-dimensional code scanning performance.
The embodiment of the disclosure aims to improve the two-dimension code scanning speed and the scanning success rate of the mobile terminal, so that the scanning performance of the mobile terminal for the two-dimension code is improved, and the user experience is improved.
Fig. 1 is a flowchart illustrating a two-dimensional code scanning method according to an exemplary embodiment, where the method is applied to a mobile terminal, as shown in fig. 1, and the method includes the following steps:
step 101: determining offset information of the two-dimensional code relative to a camera module of the mobile terminal;
step 102: adjusting image information of a two-dimensional code image according to the offset information, wherein the two-dimensional code image is an image formed by the camera module collecting the two-dimensional code image;
step 103: and scanning the adjusted two-dimensional code image.
Here, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or a wearable device; wherein, wearable equipment can be intelligent wrist-watch or intelligent bracelet etc.. It is to be understood that the mobile terminal may include all mobile terminals having a scanning function.
In a first scenario, for example, a camera module of a typical mobile terminal, such as a camera of a mobile phone, is mounted on the back of a housing of the mobile terminal, and is located in a region outside a central region of the back of the housing. Referring to fig. 2 for an exemplary purpose, fig. 2 is a rear view of a mobile terminal according to an exemplary embodiment, and as shown in fig. 2, a first camera module 210 of a first mobile terminal 21 is disposed in a central region of a back of a housing of the first mobile terminal 21, and a second camera module 220 of a second mobile terminal 22 is disposed in a region outside the central region of the back of the housing of the second mobile terminal 22, where the second camera module 220 is disposed in a left region of the back of the housing of the second mobile terminal 22, but in other embodiments, the second camera module 220 may be disposed in a right region of the back of the housing of the second mobile terminal 22, which is not limited herein.
It is understood that in order to reduce the influence on the chip in the central area of the mobile terminal, for example, in order to make the chip in the central area of the mobile terminal have better heat dissipation performance, or in order to make the external design more beautiful, the accessories of the mobile terminal are often disposed at the side of the housing of the mobile terminal or in the area outside the central area of the back of the housing of the mobile terminal. However, when people use a mobile terminal to shoot, people usually shoot by aligning the center area of the mobile terminal with the shooting object. However, when scanning the two-dimensional code, since people use the two-dimensional code aligned with the center area of the mobile terminal, actually, it is not the center of the lens that aligns with the two-dimensional code for the camera module, so that the image of the two-dimensional code in the mobile terminal is offset on the preview interface of the display screen. The preview interface is an interface which is displayed on the display screen after the camera module is opened and is used for previewing the shot object. At this time, the position of the mobile terminal may need to be translated manually, or the mobile terminal may need to perform self-calibration during scanning, so that the mobile terminal may slow down the speed of recognizing the two-dimensional code based on the recognition of the offset two-dimensional code, and the success rate is reduced.
In addition, in the second scenario, since the two-dimensional code is not located directly below the camera module of the mobile terminal, the two-dimensional code may be shifted on the vertical plane of the preview interface. In this case, it may also be necessary for the user to manually adjust the angle of the mobile terminal, or perform self-calibration during the scanning process of the mobile terminal, so that the mobile terminal may also slow down the speed of recognizing the two-dimensional code by the mobile terminal based on the recognition of the offset two-dimensional code, and the success rate is reduced.
Here, the two-dimensional code image is an image which is collected by the mobile terminal camera module and displayed on a preview interface of the mobile terminal. Here, adjusting the image information of the two-dimensional code image according to the offset information includes: and intelligently adjusting the display position and/or the display angle of the two-dimensional code image on the preview interface according to the offset information of the mobile terminal, so that the two-dimensional code image with the adjusted image information can be presented in the central area of the preview interface.
Therefore, according to the embodiment of the disclosure, through scanning the adjusted two-dimensional code image, the position of the mobile terminal does not need to be adjusted manually by a user, and self calibration of the scanning process does not need to be waited for.
In some exemplary embodiments, referring to fig. 3, fig. 3 is another flowchart of a two-dimensional code scanning method according to an exemplary embodiment, and as shown in fig. 3, the step 101, that is, determining offset information of the two-dimensional code relative to a camera module of the mobile terminal, may include:
step 1011: transmitting a ranging wave and detecting an echo of the ranging wave;
step 1012: and determining the offset information of the two-dimensional code relative to the camera module according to the transmitting parameters of the ranging waves and the echo parameters of the echoes.
Here, the ranging wave may be a radar wave emitted by a radar sensor. In other exemplary embodiments, the ranging wave may also be a light pulse wave emitted by a TOF (Time of flight) sensor. Of course, in other exemplary embodiments, the distance measuring wave may also be a wave emitted by other sensors, and in any case, any wave capable of measuring the profile of the target object, the distance of the target object, and the like through the distance measuring wave belongs to the distance measuring wave described in this embodiment.
Here, a sensor for transmitting a ranging wave may be mounted on the camera module.
It should be added that the distance measurement principle of the radar sensor is to convert the distance from the radar sensor to the target object by the time difference between the transmitted pulse and the echo pulse emitted by the radar, since the electromagnetic wave propagates at the speed of light. The principle of TOF sensors is to obtain the distance of a target object by continuously sending light pulse waves to the target object and then receiving the light waves returning from the object with the TOF sensor by detecting the time of flight in the light pulses.
For example, referring to fig. 4, fig. 4 is a schematic view of a scene of a two-dimensional code scanning method according to an exemplary embodiment, as shown in fig. 4, a mobile terminal 41 transmits a ranging wave 411 and detects an echo 511 of an object 51 where the two-dimensional code is located;
and determining the offset information of the object 51 where the two-dimensional code is located relative to the camera module of the mobile terminal according to the transmitting parameter of the ranging wave 411 and the echo parameter of the echo 511, thereby determining the offset information of the two-dimensional code relative to the camera module of the mobile terminal.
For example, the determining offset information of the two-dimensional code relative to the camera module according to the emission parameter of the ranging wave and the echo parameter of the echo may include:
determining distance information of acquisition points in an acquisition range relative to the camera module according to the transmitting parameters of the ranging waves and the echo parameters of the echoes; and determining the offset information of the two-dimensional code relative to the camera module according to the distance information of each acquisition point relative to the camera module.
Here, the acquisition range refers to a range that the camera module can scan.
The transmission parameters herein may include: the time of transmission; the echo parameter may include a reception time.
Exemplarily, determining distance information of an acquisition point in an acquisition range relative to the camera module according to a transmitting parameter of the ranging wave and an echo parameter of the echo, and may include:
and determining the distance information of the acquisition point in the acquisition range relative to the camera module according to the transmitting time of the ranging wave and the receiving time of the echo.
It will be appreciated that the range finding wave, after transmission, will reflect an echo if it encounters a target object, such as an object on which the two-dimensional code is located. The closer the target object is, the shorter the time to receive the echo, and the farther the target object is, the longer the time to receive the echo. So, each gather the point on the target object and is different from the degree of making a video recording far and near of module, and the echo receiving time that obtains is also just also different, so, can determine each gather the distance information of point for making a video recording the module of target object, can be in order to obtain the distance information that two-dimensional code place object is from the module of making a video recording.
When scanning the two-dimensional code, the mobile terminal usually scans the two-dimensional code and also scans the ground or the wall behind the two-dimensional code.
In some exemplary embodiments, determining offset information of an object where the two-dimensional code is located relative to a camera module of the mobile terminal according to a transmitting parameter of the ranging wave and an echo parameter of the echo, includes:
according to the transmitting parameters of the ranging waves and the echo parameters of the echoes, if two target objects with different positions are determined, wherein the outline area of the first target object is smaller than that of the second target object, and the first target object is closer to the camera module than the second target object, the first target object is determined to be an object where the two-dimensional code is located, and the second target object is the ground or the wall; and determining the offset information of the object where the two-dimensional code is located according to the transmitting parameters of the ranging waves for the first target object and the echo parameters of the echo of the first target object.
In another exemplary embodiment, the method further comprises:
if a target object is determined, indicating that the object where the two-dimensional code is located is on the same plane with the ground or the wall surface, and determining the offset information of the object where the two-dimensional code is located relative to the mobile terminal according to the attitude information of the mobile terminal.
The attitude information of the mobile terminal can be detected by an acceleration sensor or a gyroscope of the mobile terminal, and can be used for determining the inclination angle of the mobile terminal relative to the ground. Therefore, in the embodiment, the inclination angle of the object where the two-dimensional code is located relative to the ground or the wall surface can be quickly determined by means of the attitude information of the mobile terminal, so that the processing of the transmitting parameters of the ranging waves and the echo parameters of the echoes can be reduced, the calculation resources are saved, and the processing efficiency is improved.
In the above embodiment, through the echo of launching the range finding ripples and detecting the range finding ripples, can conveniently and determine the skew information of two-dimensional code relative to the module of making a video recording fast.
Please refer to fig. 4, for example, the sharing bicycle attaches the two-dimensional code to the middle of the steering wheel of the sharing bicycle, where the object 51 of the two-dimensional code may be a middle protrusion of the steering wheel of the sharing bicycle. For another example, the merchant would attach the two-dimensional code to a card, where the object 51 of the two-dimensional code is the card of the two-dimensional code. In this way, by detecting the offset information of the object 51 in which the two-dimensional code is located, the offset information of the two-dimensional code with respect to the camera module can be directly specified.
Just like above-mentioned scene one, because the module of making a video recording does not set up the region outside the central zone at the casing back of mobile terminal, when the user aims at the two-dimensional code with the mobile terminal, can cause the skew of two-dimensional code relative to the direction that is on a parallel with the module of making a video recording. In some exemplary embodiments, the determining offset information of the two-dimensional code relative to the camera module of the mobile terminal may include:
and determining first offset sub-information of the two-dimensional code relative to the camera module in a first direction, wherein the first direction is parallel to the direction of the camera module.
Therefore, in the embodiment, the position of the two-dimensional code relative to the direction parallel to the camera module is corrected by determining the first offset sub-information of the two-dimensional code relative to the camera module in the first direction, that is, based on at least the first offset sub-information, so that the two-dimensional code image formed by the two-dimensional code is at least in the central area in the direction parallel to the camera module, that is, the two-dimensional code image is at least in the central area of the preview interface, thereby reducing the calibration operation of the movement of a user in the direction parallel to the camera module, and the like, and improving the scanning speed and the scanning success rate of the two-dimensional code.
It should be noted that the direction parallel to the camera module can be understood as the direction parallel to the preview interface.
It can be understood that, under the condition that the object that the two-dimensional code is located has the skew in the direction of the parallel of the module of making a video recording, through the detection of range finding wave to the object that the two-dimensional code is located, can confirm that there is the distance difference between the two endpoints of the edge profile of the object that the two-dimensional code is located and make a video recording the distance of the module of making a video recording of the object that is on a parallel with the direction of the module of making a video recording, so, through the distance difference that the distance that the two endpoints of the edge profile of the object that the two-dimensional code is on a parallel with the direction of the module of making a video recording exists, can calculate the first skew sub information of the two-dimensional code relative to the module of making a video recording in the first direction.
For example, determining first offset sub-information of the two-dimensional code in the first direction relative to the camera module may include:
determining distance information of two end points of an object where the two-dimensional code is located in the first direction relative to the camera module respectively according to the transmitting parameters of the ranging waves and the echo parameters of the echo waves, and calculating distance differences of the two end points in the first direction relative to the camera module respectively in the acquisition range; according to the distance difference, first offset information of the acquisition range, namely the object where the two-dimensional code is located in the first direction relative to the camera module is calculated, and therefore the first offset information of the two-dimensional code in the first direction relative to the camera module is determined.
In order to be able to quickly determine the first offset sub-information, in other exemplary embodiments, the determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module may include:
and determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module according to the identifier of the mobile terminal.
It should be noted that, different mobile terminals have different identifiers, and at least the model of the mobile terminal can be determined by the identifier of the mobile terminal. For example, determining, according to the identifier of the mobile terminal, first offset sub-information of the two-dimensional code in the first direction relative to the camera module group may include: determining the model of the mobile terminal according to the identifier of the mobile terminal, and determining the distance information of the camera module from the central area of the shell of the mobile terminal according to the model of the mobile terminal; according to the distance information of the camera module from the central area of the shell of the mobile terminal, determining first offset sub-information of the two-dimensional code relative to the camera module in the first direction.
It is necessary to supplement that, the identifier of the mobile terminal and the corresponding relationship between the two-dimensional code and the first offset sub-information of the camera module in the first direction may be stored in the cloud or locally. In some exemplary embodiments, according to the identifier of the mobile terminal and according to the corresponding relationship, first offset sub-information of the two-dimensional code in the first direction relative to the camera module is directly acquired from the cloud or locally.
Therefore, in the embodiment, the first offset sub-information of the two-dimensional code relative to the camera module in the first direction can be obtained through the mobile terminal identification, the mobile terminal is not required to be provided with a sensor related to ranging, the implementation is simple and convenient, the universality of the mobile terminal is higher, and the accuracy of the obtained first offset sub-information is higher.
As described in the second scenario, since the two-dimensional code is not located directly below the camera module of the mobile terminal, the two-dimensional code may be shifted on the vertical plane of the preview interface. In some exemplary embodiments, the determining offset information of the two-dimensional code relative to the camera module of the mobile terminal may include:
and determining second offset sub-information of the two-dimensional code in a second direction relative to the camera module, wherein the second direction is a direction perpendicular to the camera module.
Here, the direction perpendicular to the camera module can be understood as a direction perpendicular to the preview interface.
So, in this embodiment, through confirming the sub-information of the second skew of two-dimensional code relative to the module of making a video recording in the second direction, promptly through can be based on this sub-information of second skew at least, correct the position of two-dimensional code relative to the direction of the module of making a video recording of perpendicular to, thereby can make the two-dimensional code image that the two-dimensional code becomes correct at the direction of the module of making a video recording of perpendicular to at least, make the two-dimensional code image can be located mobile terminal's preview interface in a flat way promptly, thereby can reduce the user and make the calibration operation etc. of shooting the angle in the direction of the module of making a video recording of perpendicular to, improve the scanning speed and the scanning success rate of two-dimensional code.
It can be understood that, under the condition that an object where the two-dimensional code is located is offset in the vertical direction of the camera module, if two target objects are determined by the ranging wave, the distance difference between two end points of the edge profile of the object where the two-dimensional code is located in the direction perpendicular to the camera module and the distance from the camera module can be determined by detecting the object where the two-dimensional code is located by the ranging wave, so that the second offset sub-information of the two-dimensional code in the second direction relative to the camera module can be calculated by the distance difference between the two end points of the edge profile of the object where the two-dimensional code is located in the direction perpendicular to the camera module and the distance from the camera module; if only one target object is determined through the ranging waves, second offset sub-information of the object where the two-dimensional code is located in the second direction can be determined directly through the attitude information of the mobile terminal.
For example, referring to fig. 5, fig. 5 is another schematic view of a two-dimensional code scanning method according to an exemplary embodiment, and as shown in fig. 5, an offset angle of an object 51 where a two-dimensional code is located with respect to a camera module is determined as a according to a distance measurement wave 411. In this way, the two-dimensional code image before adjustment displayed in the preview interface of the mobile terminal is the first image 610, and the two-dimensional code image actually presented in the object where the two-dimensional code is located is the second image 510. According to the embodiment of the disclosure, the two-dimensional code image before adjustment displayed in the preview interface of the mobile terminal can be adjusted to the third image 620 which is consistent with the two-dimensional code image presented in the object where the two-dimensional code is located through the calculated offset angle and the operation of the trigonometric function on the first image.
For example, according to the offset angle a and the length L of the first image, the length K of the second image is calculated to be L/cos (a), that is, the length L of the first image is stretched by 1/cos (a), so that the first image can be restored to a third image consistent with the two-dimensional code image displayed in the object where the two-dimensional code is located.
Additionally, in order to reduce the hardware cost of the mobile terminal, that is, in a case that the mobile terminal is not equipped with a ranging-related sensor, in other exemplary embodiments, the determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module may include:
and determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to the image information of the two-dimensional code image.
It can be understood that the system determines second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to a neural network algorithm by identifying the image information of the two-dimensional code image before adjustment.
Illustratively, the image information is uploaded to a server according to the image information of the two-dimensional code image, and second offset sub-information calculated by the server based on a neural network algorithm and the image information is received. Of course, in other examples, the second offset sub-information may also be calculated by running a local neural network algorithm program according to the image information of the two-dimensional code image.
Thus, according to the embodiment, a sensor related to ranging, such as a radar sensor or a TOF sensor, is not required to be relied on, so that the hardware cost of the mobile terminal is saved, and the universality of the mobile terminal is higher.
In further exemplary embodiments, the transmitting a ranging wave and detecting an echo of the ranging wave may include:
and when the two-dimensional code image is acquired, transmitting the ranging wave and detecting the echo of the ranging wave.
In this embodiment, through the opportunity of injecing the transmission range finding ripples and detecting the echo of range finding ripples, just carried out the measurement of skew information when carrying out the collection of two-dimensional code image promptly, so, can make the definite efficiency of the skew information of two-dimensional code higher to can calibrate the two-dimensional code image more fast, thereby can further improve the recognition rate and the discernment success rate to the two-dimensional code.
In other embodiments, the adjusting the image information of the two-dimensional code image according to the offset information may include:
determining an adjusting parameter of the two-dimensional code image according to the offset information;
and adjusting the image information of the two-dimensional code image according to the adjusting parameter.
Here, the offset information and the adjustment parameter are mutually compensated, for example, if the offset information is a left displacement 10 in the first direction, then the adjustment parameter may be a right displacement 10 in the horizontal direction. For another example, if the offset information is the displacement angle 10 forward in the second direction, the adjustment parameter may be the compensation image information based on the displacement angle 10 backward in the second direction, for example, the compensation image information based on the displacement angle 10 backward in the second direction may be: the corresponding pull-up ratio of the image.
In some embodiments, the corresponding relationship between the offset information and the adjustment parameter may be pre-stored in the cloud or locally, so that when the offset information is determined, the adjustment parameter may be directly obtained through the corresponding relationship between the offset information and the adjustment parameter without calculation, and the image information of the two-dimensional code image is adjusted.
Further, the present disclosure also provides a specific embodiment to further understand the scanning method of the two-dimensional code provided by the embodiment of the present disclosure.
Here, a mobile terminal is taken as an example of a mobile phone. Due to the limitation of attractive hardware or appearance design of the mobile phone, the camera of the mobile phone is not designed in the center area of the back of the mobile phone, and the user can scan the two-dimensional code by using the center area of the mobile phone according to a first reaction during shooting, so that the two-dimensional code is deviated or distorted, the time for identifying the two-dimensional code is prolonged, the identification success rate is lowered, and even the two-dimensional code cannot be correctly identified for a long time.
The embodiment of the disclosure aims to solve the problem that the two-dimensional code recognition rate is low due to the fact that a camera on the back of a mobile phone is not located in the center area of the mobile phone.
Here, first, the first offset sub-information described in the above embodiment is determined by the identifier of the mobile phone; then, determining second offset sub-information through relevant data of a TOF sensor or a radar sensor of the mobile phone; or determining the second offset sub-information through the attitude information of the mobile phone and the related data of the TOF sensor or the radar sensor. And then finish the image correction to the two-dimensional code image according to the first migration sub information and the second migration sub information, and then obtain more accurate two-dimensional code image to the recognition rate and the discernment success rate of two-dimensional code have been improved.
According to the embodiment of the disclosure, the two-dimensional code image is adjusted in advance through the auxiliary or default first offset sub-information of the radar sensor or the TOF sensor, and the adjusted two-dimensional code image is scanned, so that the recognition rate of the two-dimensional code is improved.
Fig. 6 is a view illustrating a two-dimensional code scanning apparatus according to an exemplary embodiment, and referring to fig. 6, the apparatus includes:
the determining module 61 is used for determining offset information of the two-dimensional code relative to a camera module of the mobile terminal;
the adjusting module 62 is configured to adjust image information of a two-dimensional code image according to the offset information, where the two-dimensional code image is an image acquired by the camera module and formed by the two-dimensional code;
and the scanning module 63 is configured to scan the adjusted two-dimensional code image.
In some optional embodiments, the determining module 61 includes:
the transmitting and collecting submodule is used for transmitting the ranging wave and detecting the echo of the ranging wave;
and the first determining submodule is used for determining the offset information of the two-dimensional code relative to the camera module according to the transmitting parameter of the ranging wave and the echo parameter of the echo.
In some optional embodiments, the transmission and acquisition sub-module is further configured to:
and when the two-dimensional code image is collected, transmitting the ranging wave and detecting the echo of the ranging wave.
In some optional embodiments, the determining module 61 includes:
the second determining submodule is used for determining first offset sub-information of the two-dimensional code relative to the camera module in a first direction, wherein the first direction is parallel to the camera module;
and/or
And the third determining submodule is used for determining second offset sub-information of the two-dimensional code relative to the camera module in a second direction, wherein the second direction is a direction perpendicular to the camera module.
In some optional embodiments, the second determining sub-module is further configured to:
and determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module according to the identifier of the mobile terminal.
In some optional embodiments, the third determining sub-module is further configured to:
and determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to the image information of the two-dimensional code image.
In some optional embodiments, the adjusting module 62 is further configured to:
determining an adjusting parameter of the two-dimensional code image according to the offset information;
and adjusting the image information of the two-dimensional code image according to the adjusting parameter.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a mobile terminal 700 according to an example embodiment. For example, the mobile terminal 700 may be a mobile phone, a computer, a digital broadcast mobile terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, mobile terminal 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
Processing component 702 generally controls overall operation of mobile terminal 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the mobile terminal 700. Examples of such data include instructions for any application or method operating on mobile terminal 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 706 provides power to various components of mobile terminal 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the mobile terminal 700.
The multimedia component 708 includes a screen that provides an output interface between the mobile terminal 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the mobile terminal 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 may include a Microphone (MIC) configured to receive external audio signals when the mobile terminal 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 714 includes one or more sensors for providing various aspects of state assessment for the mobile terminal 700. For example, sensor assembly 714 may detect an open/closed state of mobile terminal 700, the relative positioning of components, such as a display and keypad of mobile terminal 700, sensor assembly 714 may also detect a change in position of mobile terminal 700 or a component of mobile terminal 700, the presence or absence of user contact with mobile terminal 700, orientation or acceleration/deceleration of mobile terminal 700, and a change in temperature of mobile terminal 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communications between the mobile terminal 700 and other devices in a wired or wireless manner. The mobile terminal 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile terminal 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as the memory 704 including instructions, executable by the processor 720 of the mobile terminal 700 to perform the above-described method is also provided. For example, 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, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the scanning method of a two-dimensional code according to the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A two-dimensional code scanning method is applied to a mobile terminal and comprises the following steps:
determining offset information of the two-dimensional code relative to a camera module of the mobile terminal;
adjusting image information of a two-dimensional code image according to the offset information, wherein the two-dimensional code image is an image formed by the two-dimensional code acquired by the camera module;
and scanning the adjusted two-dimensional code image.
2. The method according to claim 1, wherein the determining offset information of the two-dimensional code relative to a camera module of the mobile terminal comprises:
transmitting a ranging wave and detecting an echo of the ranging wave;
and determining the offset information of the two-dimensional code relative to the camera module according to the transmitting parameters of the ranging waves and the echo parameters of the echoes.
3. The method of claim 2, wherein said transmitting a ranging wave and detecting an echo of said ranging wave comprises:
and when the two-dimensional code image is collected, transmitting the ranging wave and detecting the echo of the ranging wave.
4. The method according to any one of claims 1 to 3, wherein the determining offset information of the two-dimensional code relative to a camera module of the mobile terminal comprises:
determining first offset sub-information of the two-dimensional code in a first direction relative to the camera module, wherein the first direction is a direction parallel to the camera module;
and/or
And determining second offset sub-information of the two-dimensional code in a second direction relative to the camera module, wherein the second direction is a direction perpendicular to the camera module.
5. The method of claim 4, wherein the determining first offset sub-information of the two-dimensional code in a first direction relative to the camera module comprises:
and determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module according to the identifier of the mobile terminal.
6. The method of claim 4, wherein the determining second offset sub-information of the two-dimensional code in a second direction relative to the camera module comprises:
and determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to the image information of the two-dimensional code image.
7. The method of claim 6, wherein the adjusting the image information of the two-dimensional code image according to the offset information comprises:
determining an adjusting parameter of the two-dimensional code image according to the offset information;
and adjusting the image information of the two-dimensional code image according to the adjusting parameter.
8. The utility model provides a two-dimensional code scanning device which characterized in that, is applied to mobile terminal, includes:
the determining module is used for determining the offset information of the two-dimensional code relative to the camera module of the mobile terminal;
the adjusting module is used for adjusting image information of a two-dimensional code image according to the offset information, wherein the two-dimensional code image is an image formed by the two-dimensional code acquired by the camera module;
and the scanning module is used for scanning the adjusted two-dimensional code image.
9. The apparatus of claim 8, wherein the determining module comprises:
the transmitting and collecting submodule is used for transmitting the ranging wave and detecting the echo of the ranging wave;
and the first determining submodule is used for determining the offset information of the two-dimensional code relative to the camera module according to the transmitting parameter of the ranging wave and the echo parameter of the echo.
10. The apparatus of claim 9, wherein the transmit and acquisition sub-module is further configured to:
and when the two-dimensional code image is collected, transmitting the ranging wave and detecting the echo of the ranging wave.
11. The apparatus of any one of claims 8 to 10, wherein the determining module comprises:
the second determining submodule is used for determining first offset sub-information of the two-dimensional code relative to the camera module in a first direction, wherein the first direction is parallel to the camera module;
and/or
And the third determining submodule is used for determining second offset sub-information of the two-dimensional code relative to the camera module in a second direction, wherein the second direction is a direction perpendicular to the camera module.
12. The apparatus of claim 11, wherein the second determining submodule is further configured to:
and determining the first offset sub-information of the two-dimensional code in the first direction relative to the camera module according to the identifier of the mobile terminal.
13. The apparatus of claim 11, wherein the third determining submodule is further configured to:
and determining the second offset sub-information of the two-dimensional code in the second direction relative to the camera module according to the image information of the two-dimensional code image.
14. The apparatus of claim 8, wherein the adjustment module is further configured to:
determining an adjusting parameter of the two-dimensional code image according to the offset information;
and adjusting the image information of the two-dimensional code image according to the adjusting parameter.
15. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the two-dimensional code scanning method of any one of claims 1 to 7 is realized.
16. A computer-readable storage medium having an executable program, wherein the executable program when executed by a processor implements the two-dimensional code scanning method of any one of claims 1 to 7.
CN202111076780.4A 2021-09-14 2021-09-14 Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium Pending CN113962239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111076780.4A CN113962239A (en) 2021-09-14 2021-09-14 Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111076780.4A CN113962239A (en) 2021-09-14 2021-09-14 Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113962239A true CN113962239A (en) 2022-01-21

Family

ID=79461405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111076780.4A Pending CN113962239A (en) 2021-09-14 2021-09-14 Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113962239A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5559574A (en) * 1991-06-21 1996-09-24 Nikon Corporation Image movement correcting device effecting image movement correction depending on position of center of rotation of angular fluctuation
WO2004066186A2 (en) * 2003-01-23 2004-08-05 Siemens Aktiengesellschaft Method and device for identifying and compensating a perspectivistic deformation
CN105389779A (en) * 2015-10-15 2016-03-09 广东欧珀移动通信有限公司 Image correction method, image correction device and mobile terminal
CN105404841A (en) * 2015-11-04 2016-03-16 成都汇智远景科技有限公司 Mobile equipment data calculation method based on internet of things
US20170004605A1 (en) * 2015-06-30 2017-01-05 Beijing Zhigu Rui Tuo Tech Co., Ltd Display control methods and apparatuses
CN107886020A (en) * 2017-10-17 2018-04-06 北京三快在线科技有限公司 A kind of method and apparatus of barcode scanning
CN107944321A (en) * 2017-11-28 2018-04-20 努比亚技术有限公司 A kind of image-recognizing method, terminal and computer-readable recording medium
CN108846663A (en) * 2018-06-21 2018-11-20 维沃移动通信有限公司 A kind of two dimensional code method of adjustment, device and mobile terminal
CN109214810A (en) * 2018-07-25 2019-01-15 努比亚技术有限公司 A kind of two-dimensional code display method, mobile terminal and computer readable storage medium
CN109711226A (en) * 2018-12-25 2019-05-03 努比亚技术有限公司 Two-dimensional code identification method, device, mobile terminal and readable storage medium storing program for executing
CN109753838A (en) * 2018-12-12 2019-05-14 深圳市三宝创新智能有限公司 Two-dimensional code identification method, device, computer equipment and storage medium
CN109918957A (en) * 2019-03-05 2019-06-21 大连民族大学 A kind of terminal, the system and method for the remote two-dimensional code scanning of double vision
CN110463177A (en) * 2017-04-06 2019-11-15 华为技术有限公司 The bearing calibration of file and picture and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5559574A (en) * 1991-06-21 1996-09-24 Nikon Corporation Image movement correcting device effecting image movement correction depending on position of center of rotation of angular fluctuation
WO2004066186A2 (en) * 2003-01-23 2004-08-05 Siemens Aktiengesellschaft Method and device for identifying and compensating a perspectivistic deformation
US20170004605A1 (en) * 2015-06-30 2017-01-05 Beijing Zhigu Rui Tuo Tech Co., Ltd Display control methods and apparatuses
CN105389779A (en) * 2015-10-15 2016-03-09 广东欧珀移动通信有限公司 Image correction method, image correction device and mobile terminal
CN105404841A (en) * 2015-11-04 2016-03-16 成都汇智远景科技有限公司 Mobile equipment data calculation method based on internet of things
CN110463177A (en) * 2017-04-06 2019-11-15 华为技术有限公司 The bearing calibration of file and picture and device
CN107886020A (en) * 2017-10-17 2018-04-06 北京三快在线科技有限公司 A kind of method and apparatus of barcode scanning
CN107944321A (en) * 2017-11-28 2018-04-20 努比亚技术有限公司 A kind of image-recognizing method, terminal and computer-readable recording medium
CN108846663A (en) * 2018-06-21 2018-11-20 维沃移动通信有限公司 A kind of two dimensional code method of adjustment, device and mobile terminal
CN109214810A (en) * 2018-07-25 2019-01-15 努比亚技术有限公司 A kind of two-dimensional code display method, mobile terminal and computer readable storage medium
CN109753838A (en) * 2018-12-12 2019-05-14 深圳市三宝创新智能有限公司 Two-dimensional code identification method, device, computer equipment and storage medium
CN109711226A (en) * 2018-12-25 2019-05-03 努比亚技术有限公司 Two-dimensional code identification method, device, mobile terminal and readable storage medium storing program for executing
CN109918957A (en) * 2019-03-05 2019-06-21 大连民族大学 A kind of terminal, the system and method for the remote two-dimensional code scanning of double vision

Similar Documents

Publication Publication Date Title
CN111314597B (en) Terminal, focusing method and device
CN105554389B (en) Shooting method and device
CN111669208B (en) Antenna selection method, first electronic device and storage medium
CN110059547B (en) Target detection method and device
CN111007462A (en) Positioning method, positioning device, positioning equipment and electronic equipment
CN108964800B (en) Antenna performance detection method and system for mobile terminal
CN111896961A (en) Position determination method and device, electronic equipment and computer readable storage medium
CN112188089A (en) Distance acquisition method and device, focal length adjustment method and device, and distance measurement assembly
US20240125917A1 (en) Ranging method and apparatus, and user equipment and storage medium
CN109194808B (en) Volume adjusting method and device
CN113962239A (en) Two-dimensional code scanning method and device, mobile terminal and computer readable storage medium
CN112702514B (en) Image acquisition method, device, equipment and storage medium
CN115407272A (en) Ultrasonic signal positioning method and device, terminal and computer readable storage medium
CN111751786B (en) Acoustic wave measurement method, acoustic wave measurement device, acoustic wave measurement equipment and storage medium
CN107122356B (en) Method and device for displaying face value and electronic equipment
CN108769513B (en) Camera photographing method and device
CN113141458A (en) Image acquisition method and device and storage medium
CN110996047A (en) Pet tracking shooting method, device and system and computer readable storage medium
CN112804462B (en) Multi-point focusing imaging method and device, mobile terminal and storage medium
CN113671512B (en) Proximity sensor angle adjustment method, device and storage medium
CN113438462B (en) Multi-device interconnection shooting method and device, electronic device and storage medium
CN110632600B (en) Environment identification method and device
CN116705047B (en) Audio acquisition method, device and storage medium
CN113141482B (en) Video generation method, device and storage medium
CN109257192B (en) Group information sharing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination