CN110519503B - Method for acquiring scanned image and mobile terminal - Google Patents

Method for acquiring scanned image and mobile terminal Download PDF

Info

Publication number
CN110519503B
CN110519503B CN201810494371.8A CN201810494371A CN110519503B CN 110519503 B CN110519503 B CN 110519503B CN 201810494371 A CN201810494371 A CN 201810494371A CN 110519503 B CN110519503 B CN 110519503B
Authority
CN
China
Prior art keywords
camera
photographing mode
mobile terminal
target
distance
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.)
Active
Application number
CN201810494371.8A
Other languages
Chinese (zh)
Other versions
CN110519503A (en
Inventor
杨卓坚
王丹妹
肖强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810494371.8A priority Critical patent/CN110519503B/en
Publication of CN110519503A publication Critical patent/CN110519503A/en
Application granted granted Critical
Publication of CN110519503B publication Critical patent/CN110519503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H04N23/611
    • H04N23/65
    • H04N23/667
    • H04N23/67

Abstract

The invention provides a scanned image acquisition method and a mobile terminal, and relates to the technical field of communication. The method for acquiring the scanned image comprises the following steps: under the condition that a camera module in a first working state detects a target object, acquiring the distance between the target object and a mobile terminal; determining a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance; switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; and the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state. The scheme of the invention is used for solving the problem that the image of the scanned object obtained when the existing mobile terminal realizes the image scanning cannot be successfully identified due to low identification rate.

Description

Method for acquiring scanned image and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for acquiring a scanned image and a mobile terminal.
Background
With the rapid development of communication technology, the functions of the mobile terminal are more and more diversified, and great convenience is brought to the life of people. Especially, people have higher and higher requirements on photographing, and the use of the photographed image is wider and wider, for example, a name card is photographed to automatically recognize characters and reduce manual input; such as scanning two-dimensional code for payment or adding friends.
Taking a two-dimensional code as an example, the two-dimensional code records data symbol information by using black and white figures which are distributed on a plane (two-dimensional direction) according to a certain rule by using a certain specific geometric figure; the concept of bit stream of '0' and '1' forming the internal logic base of computer is used skillfully in coding, and a plurality of geometric shapes corresponding to binary system are used for representing literal numerical value information. However, in the conventional method, when a user wants to scan, the camera is started and then shooting and scanning are performed in a fixed mode, and the obtained image of the scanning object is easy to be identified successfully due to low identification rate.
Disclosure of Invention
The embodiment of the invention provides a method for acquiring a scanned image and a mobile terminal, which aim to solve the problem that an image of a scanned object obtained by the conventional mobile terminal when the image is scanned cannot be successfully identified due to low identification rate.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for acquiring a scanned image, including:
under the condition that a camera module in a first working state detects a target object, acquiring the distance between the target object and a mobile terminal;
determining a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance;
switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; wherein the content of the first and second substances,
the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring the distance between a target object and the mobile terminal under the condition that the camera module in the first working state detects the target object;
the determining module is used for determining a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance;
the first processing module is used for switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; wherein the content of the first and second substances,
the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for acquiring a scanned image as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for acquiring a scanned image as described above.
In this way, in the embodiment of the present invention, the camera module of the mobile terminal initially always performs target object detection on the acquired image in the first working state, and after the camera module detects the target image, the distance between the target object and the mobile terminal is obtained; then, determining a target photographing mode suitable for the target object by combining the photographing mode selection condition and the acquired distance; and then switching the camera module to a second working state with higher power consumption according to the target photographing mode to carry out photographing so as to obtain a target image of the target object. This target image chooses for use the suitable mode of shooing to the distance between target object and the mobile terminal, shoots the clear image that obtains under the operating condition of higher consumption, has promoted and has carried out the success rate of scanning to this target image, because of the user need not the manual mode of shooing of selection, has increased mobile terminal's intellectuality simultaneously for mobile terminal uses more conveniently.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic flowchart of a scanned image acquiring method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application of a scanned image acquiring method according to an embodiment of the present invention;
FIG. 3 is a second schematic view illustrating an application of the method for obtaining a scanned image according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a second schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the method for acquiring a scanned image according to an embodiment of the present invention includes:
step 101, when the camera module in the first working state detects a target object, acquiring a distance between the target object and the mobile terminal.
The camera module always works in a first working state with low power consumption, and the acquired image is detected based on preset graphic features through a graphic database established in the mobile terminal in advance so as to determine whether a target object exists in the image, wherein the target object comprises but is not limited to a two-dimensional code, a human face and the like. Therefore, the user does not need to input triggering, when the camera module in the first working state detects the target object, the distance between the target object and the mobile terminal can be further obtained, and a foundation is laid for subsequently shooting a clear image.
Step 102, determining a target photographing mode according to the photographing mode selection condition and the distance; wherein the photographing mode selection condition includes a distance and a photographing mode corresponding to the distance.
In this step, the distance between the target object and the mobile terminal acquired in step 101 and the photographing mode selection condition including the distance and the photographing mode corresponding to the distance are combined to determine the mode suitable for photographing the target object, so as to obtain a clear image to be scanned.
103, switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; wherein the content of the first and second substances,
the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state.
In this step, the mobile terminal switches the camera module to the second working state with high power consumption for shooting according to the determined target shooting mode in step 102, so as to obtain a clearer target image of the target object, thereby ensuring successful subsequent scanning.
Thus, in the method for acquiring a scanned image according to the embodiment of the present invention, through steps 101 to 103, the camera module of the mobile terminal is initially in the first working state all the time, and performs target object detection on the acquired image, and after the camera module detects a target image, performs distance acquisition between the target object and the mobile terminal; then, determining a target photographing mode suitable for the target object by combining the photographing mode selection condition and the acquired distance; and then switching the camera module to a second working state with higher power consumption according to the target photographing mode to carry out photographing so as to obtain a target image of the target object. This target image chooses for use the suitable mode of shooing to the distance between target object and the mobile terminal, shoots the clear image that obtains under the operating condition of higher consumption, has promoted and has carried out the success rate of scanning to this target image, because of the user need not the manual mode of shooing of selection, has increased mobile terminal's intellectuality simultaneously for mobile terminal uses more conveniently.
It should be noted that, in this embodiment, the camera module that initially operates all the time is in the first operating state with low power consumption, which is to reduce power consumption and ensure normal use of the mobile terminal. In order to realize the first working state of the camera module with low power consumption, at least one camera in the camera module can reduce the pixels of the camera module by clipping, for example, clipping 500 ten thousand pixels to 10 ten thousand pixels. Specifically, the clipping manner may be to arrange and intercept the pixels according to a predetermined array, or to intercept pixels with a predetermined ratio in the middle, and so on, which are not listed one by one. And then, after the target photographing mode is determined, the camera module is switched to a second working state with high power consumption to finish clearer photographing. Correspondingly, in order to realize switching to the second working state, the clipped pixels are restored, for example, 10 ten thousand pixels are restored to 500 ten thousand pixels.
When the camera module in the first working state detects the target object, according to the above steps, the distance between the target object and the mobile terminal needs to be acquired, so that the photographing mode for clearly photographing the target image is determined according to the distance. Optionally, in this embodiment of the present invention, in step 101, the step of obtaining the distance between the target object and the mobile terminal includes:
and detecting the distance between the target object and the mobile terminal through phase detection automatic focusing.
The phase Detection autofocus (pdaf) reserves some shading pixel points on a photosensitive element (CMOS), and is specially used for phase Detection, and the distance between a target object (object to be photographed) and the mobile terminal can be detected at one time through the distance between pixels, the change of the distance between pixels, and the like, so that the speed is higher, and the calculation load of a processor is reduced.
In addition, it should be further understood that the photographing mode selection condition is a photographing mode that has been set in the mobile terminal and is used for selecting target objects with different applicable distances, the photographing mode selection condition includes a distance and a photographing mode corresponding to the distance, and the applicable target photographing mode is determined by matching the acquired distance with the distance of the photographing mode in the photographing mode selection condition.
Optionally, in this embodiment, the camera module includes: a first camera; the photographing mode comprises a long-range photographing mode of the first camera and a close-range photographing mode of the first camera.
Here, the camera module includes a first camera, preferably the first camera is a rear camera, and the photographing mode includes a long-range photographing mode of the first camera and a short-range photographing mode of the first camera. Correspondingly, the distance included by the photographing mode selection condition can be a distance range of the distant view photographing mode and a distance range of the close view photographing mode, and when the acquired distance belongs to the distance range of the distant view photographing mode, the distant view photographing mode is used as the target photographing mode; and when the acquired distance belongs to the distance range of the close-range photographing mode, taking the close-range photographing mode as the target photographing mode. In addition, the distance corresponding to the photographing mode in the photographing mode selection condition may also be a specific numerical value, and if the acquired distance is less than or equal to the specific numerical value, the close-range photographing mode is taken as the target photographing mode; and if the acquired distance is greater than the specific numerical value, taking the distant view photographing mode as a target photographing mode.
Optionally, the long-range shooting mode includes a first motor control parameter, where the first motor control parameter is used to control a focusing motor to stop operating in a focusing process of the first camera; the close-range photographing mode comprises second motor control parameters, and the second motor control parameters are used for controlling the focusing motor to operate in the focusing process of the first camera.
Therefore, in a long-range shooting mode, the focusing motor can be controlled to stop running in the focusing process of the first camera through the first motor control parameter, and unnecessary electric quantity consumption is reduced; under the close shot mode, the focusing motor can be controlled to operate in the focusing process of the first camera through the control parameters of the second motor, a clearer target image is shot, and the scanning success rate is improved.
Taking a mobile terminal with a camera a as a camera module as an example, a graphic database (recording graphic features as a scanning target object) and a shooting mode selection condition (a distance range of a long-shot shooting mode and a distance range of a short-shot shooting mode) of the camera a are pre-established in the mobile terminal. As shown in fig. 2, S201, controlling the camera a to be in a low power consumption working state initially, and detecting a target object based on the graph database; s202, under the condition that the camera A detects the target object, the distance between the target object and the mobile terminal is obtained through the PDAF; and S203, matching the acquired distance with the distance range of the long-range photographing mode and the distance range of the short-range photographing mode respectively. If the acquired distance belongs to the distance range of the distant view photographing mode according to the matching result, if the distance belongs to the distance range of the distant view photographing mode, determining that the target photographing mode is the distant view photographing mode, executing S205, switching the camera A to a high-power-consumption working state, controlling the focusing motor to stop running in the focusing process by using the first motor control parameter, and photographing the target object; if the acquired distance belongs to the distance corresponding to the close-range photographing mode according to the matching result, in step S206, the target photographing mode is determined to be the close-range photographing mode, in step S207, the camera a is switched to the high-power-consumption working state, the focusing motor is controlled to operate in the focusing process by using the second motor control parameter, and the target object is photographed.
In addition, optionally, on the basis of the above embodiment, the camera module further includes: a second camera having a resolution less than or equal to a resolution of the first camera;
the photographing mode further comprises a second camera photographing mode, and the focal length of the second camera is fixed in the second camera photographing mode.
Here, the camera module of the mobile terminal will include at least two cameras, a first camera and a second camera, the resolution of the second camera is less than or equal to the resolution of the first camera, and the second camera is often used as an auxiliary shooting camera of the first camera. At this time, the photographing mode is provided with a second camera photographing mode corresponding to the second camera. Therefore, the photographing mode selection condition includes a distance range of the second camera photographing mode in addition to the distance range of the distant view photographing mode and the distance range of the close view photographing mode. Or the distance included in the photographing mode selection condition is two specific numerical values (the first numerical value is less than the second numerical value), and if the acquired distance is less than or equal to the first numerical value, the second camera photographing mode is used as the target photographing mode; if the obtained distance is greater than or equal to the second numerical value, taking the distant view photographing mode as a target photographing mode; and if the acquired distance is greater than the first numerical value and less than the second numerical value, taking the close-up photographing mode as the target photographing mode.
Taking a mobile terminal with a rear camera B (main camera) and a rear camera C (sub camera) as a camera module as an example, a graphic database (recording graphic features as a scanning target object) and shooting mode selection conditions of the camera B and the camera C (a distance range of a long-shot shooting mode of the camera B, a distance range of a short-shot shooting mode of the camera C, and a distance range of a shooting mode of the camera C) are pre-established in the mobile terminal. As shown in fig. 3, S301, controlling the camera C to be in a low power consumption operating state (at this time, the camera B does not operate), and detecting the target object based on the graph database; s302, under the condition that the camera C detects the target object, the distance between the target object and the mobile terminal is obtained through PDAF; and S303, comparing the acquired distance with the distance range of the long-range shooting mode of the camera B, the distance range of the short-range shooting mode of the camera B and the distance range of the shooting mode of the camera C respectively. If the acquired distance belongs to the distance range of the long-range photographing mode according to the comparison result, if the distance belongs to the distance range of the long-range photographing mode, determining that the target photographing mode is the long-range photographing mode of the camera B, executing S305, starting the camera B, controlling a focusing motor of the camera B to stop running in the focusing process by using a first motor control parameter, and photographing a target object; if the acquired distance belongs to the distance range of the close-range photographing mode of the camera B according to the comparison result, if the distance is S306, determining that the target photographing mode is the close-range photographing mode of the camera B, executing S307, starting the camera B, controlling the focusing motor to operate by the camera B in the focusing process by using the second motor control parameter, and photographing the target object; if the acquired distance belongs to the distance range of the camera C photographing mode according to the comparison result, in step S308, the target photographing mode is determined to be the camera C photographing mode, in step S309, the camera C is switched to a high-power-consumption working state, and the target object is photographed by using a preset fixed focal length of the camera C.
Of course, in the above embodiment, the camera module may be switched to the second operating state after the target object is detected, where the second operating state is only that the camera with the clipped pixels is restored to the original pixels.
In the embodiment of the present invention, it can be known that the camera module is initially in the low power consumption operating state all the time, and performs detection on the target object based on the graphic database, so that even if the display screen of the mobile terminal is in the screen-off state, the user does not need to turn on the screen, and the image of the target object can be acquired according to the above contents for scanning. However, after scanning, subsequent processing is performed according to user requirements, so optionally, the display screen of the mobile terminal is in a screen-off state;
after the step of obtaining the target image of the target object, the method further includes:
identifying the target image;
and after the identification is successful, lightening the display screen and jumping to a target interface.
Here, the target interface may be a system setting or a user-customized interface, such as a payment interface, a friend-adding interface, and the like. Like this, be in the state of turning off the screen at mobile terminal's display screen, after camera module automatic acquisition target object clear image, will discern this image, then after the discernment succeeds, light the display screen automatically to jump to the target interface, in order to supply the user to carry out follow-up operation, further promoted mobile terminal's intellectuality, the convenience is higher. Of course, a clear image of the target object is acquired in the bright screen state of the display screen, and the image is successfully identified, or the target interface can be directly jumped to.
In summary, in the method for acquiring a scanned image according to the embodiment of the present invention, the camera module of the mobile terminal is initially in the first working state all the time, and performs target object detection on the acquired image, and after the camera module detects the target image, performs distance acquisition between the target object and the mobile terminal; then, determining a target photographing mode suitable for the target object by combining the photographing mode selection condition and the acquired distance; and then switching the camera module to a second working state with higher power consumption according to the target photographing mode to carry out photographing so as to obtain a target image of the target object. This target image chooses for use the suitable mode of shooing to the distance between target object and the mobile terminal, shoots the clear image that obtains under the operating condition of higher consumption, has promoted and has carried out the success rate of scanning to this target image, because of the user need not the manual mode of shooing of selection, has increased mobile terminal's intellectuality simultaneously for mobile terminal uses more conveniently.
Fig. 4 is a block diagram of a mobile terminal of one embodiment of the present invention. The mobile terminal 400 shown in fig. 4 comprises an obtaining module 401, a determining module 402 and a first processing module 403.
An obtaining module 401, configured to obtain, when a target object is detected by a camera module in a first working state, a distance between the target object and a mobile terminal;
a determining module 402, configured to determine a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance;
the first processing module 403 is configured to switch the camera module to a second working state for shooting according to the target shooting mode, so as to obtain a target image of the target object; wherein the content of the first and second substances,
the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state.
Optionally, the camera module includes: a first camera; the photographing mode comprises a long-range photographing mode of the first camera and a close-range photographing mode of the first camera.
Optionally, the long-range shooting mode includes a first motor control parameter, where the first motor control parameter is used to control a focusing motor to stop operating in a focusing process of the first camera; the close-range photographing mode comprises second motor control parameters, and the second motor control parameters are used for controlling the focusing motor to operate in the focusing process of the first camera.
Optionally, the camera module further includes: a second camera having a resolution less than or equal to a resolution of the first camera;
the photographing mode further comprises a second camera photographing mode, and the focal length of the second camera is fixed in the second camera photographing mode.
Optionally, the display screen of the mobile terminal is in a screen-off state;
on the basis of fig. 4, as shown in fig. 5, the mobile terminal 400 further includes:
an identification module 404 for identifying the target image;
and a second processing module 405, configured to light the display screen after the identification is successful, and jump to a target interface.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition. According to the mobile terminal provided by the embodiment of the invention, the camera module is initially in the first working state all the time, the target object detection is carried out on the collected image, and after the camera module detects the target image, the distance between the target object and the mobile terminal is obtained; then, determining a target photographing mode suitable for the target object by combining the photographing mode selection condition and the acquired distance; and then switching the camera module to a second working state with higher power consumption according to the target photographing mode to carry out photographing so as to obtain a target image of the target object. This target image chooses for use the suitable mode of shooing to the distance between target object and the mobile terminal, shoots the clear image that obtains under the operating condition of higher consumption, has promoted and has carried out the success rate of scanning to this target image, because of the user need not the manual mode of shooing of selection, has increased mobile terminal's intellectuality simultaneously for mobile terminal uses more conveniently.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to, when the camera module in the first working state detects a target object, obtain a distance between the target object and the mobile terminal; determining a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance; switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; and the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state.
Therefore, the camera module of the mobile terminal is initially in a first working state all the time, and performs target object detection on the acquired image, and after the camera module detects the target image, performs distance acquisition between the target object and the mobile terminal; then, determining a target photographing mode suitable for the target object by combining the photographing mode selection condition and the acquired distance; and then switching the camera module to a second working state with higher power consumption according to the target photographing mode to carry out photographing so as to obtain a target image of the target object. This target image chooses for use the suitable mode of shooing to the distance between target object and the mobile terminal, shoots the clear image that obtains under the operating condition of higher consumption, has promoted and has carried out the success rate of scanning to this target image, because of the user need not the manual mode of shooing of selection, has increased mobile terminal's intellectuality simultaneously for mobile terminal uses more conveniently.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the above-mentioned method for acquiring a scanned image, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for acquiring a scanned image, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A method for acquiring a scan image, comprising:
under the condition that a camera module in a first working state detects a target object, acquiring the distance between the target object and a mobile terminal;
determining a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance;
switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; wherein the content of the first and second substances,
the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state;
the mobile terminal is internally pre-established with a graphic database, and in the first working state, the camera module detects the acquired image based on preset graphic features so as to determine whether the target object exists in the image;
and under the first working state, the terminal is in a screen-off state.
2. The method for acquiring the scanned image according to claim 1, wherein the camera module comprises: a first camera; the photographing mode comprises a long-range photographing mode of the first camera and a close-range photographing mode of the first camera.
3. The method for acquiring the scanned image according to claim 2, wherein the long-range photographing mode includes a first motor control parameter, and the first motor control parameter is used for controlling a focusing motor to stop operating in a focusing process of the first camera; the close-range photographing mode comprises second motor control parameters, and the second motor control parameters are used for controlling the focusing motor to operate in the focusing process of the first camera.
4. The method for acquiring the scanned image according to claim 2, wherein the camera module further comprises: a second camera having a resolution less than or equal to a resolution of the first camera;
the photographing mode further comprises a second camera photographing mode, and the focal length of the second camera is fixed in the second camera photographing mode.
5. The method for acquiring the scanned image according to claim 1, wherein a display screen of the mobile terminal is in a screen-off state;
after the step of obtaining the target image of the target object, the method further includes:
identifying the target image;
and after the identification is successful, lightening the display screen and jumping to a target interface.
6. A mobile terminal, comprising:
the acquisition module is used for acquiring the distance between a target object and the mobile terminal under the condition that the camera module in the first working state detects the target object;
the determining module is used for determining a target photographing mode according to the photographing mode selection condition and the distance; the photographing mode selection condition comprises a distance and a photographing mode corresponding to the distance;
the first processing module is used for switching the camera module to a second working state for shooting according to the target shooting mode to obtain a target image of the target object; wherein the content of the first and second substances,
the first power consumption of the camera module in the first working state is lower than the second power consumption in the second working state;
the mobile terminal is internally pre-established with a graphic database, and in the first working state, the camera module detects the acquired image based on preset graphic features so as to determine whether the target object exists in the image;
and under the first working state, the terminal is in a screen-off state.
7. The mobile terminal of claim 6, wherein the camera module comprises: a first camera; the photographing mode comprises a long-range photographing mode of the first camera and a close-range photographing mode of the first camera.
8. The mobile terminal of claim 7, wherein the long-range photographing mode comprises a first motor control parameter, and the first motor control parameter is used for controlling a focusing motor to stop operating in a focusing process of the first camera; the close-range photographing mode comprises second motor control parameters, and the second motor control parameters are used for controlling the focusing motor to operate in the focusing process of the first camera.
9. The mobile terminal of claim 7, wherein the camera module further comprises: a second camera having a resolution less than or equal to a resolution of the first camera;
the photographing mode further comprises a second camera photographing mode, and the focal length of the second camera is fixed in the second camera photographing mode.
10. The mobile terminal according to claim 6, wherein the display screen of the mobile terminal is in a screen-off state;
the mobile terminal further includes:
the identification module is used for identifying the target image;
and the second processing module is used for lightening the display screen and jumping to a target interface after the identification is successful.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method for acquisition of a scanned image as claimed in any one of claims 1 to 5.
CN201810494371.8A 2018-05-22 2018-05-22 Method for acquiring scanned image and mobile terminal Active CN110519503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810494371.8A CN110519503B (en) 2018-05-22 2018-05-22 Method for acquiring scanned image and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810494371.8A CN110519503B (en) 2018-05-22 2018-05-22 Method for acquiring scanned image and mobile terminal

Publications (2)

Publication Number Publication Date
CN110519503A CN110519503A (en) 2019-11-29
CN110519503B true CN110519503B (en) 2021-06-22

Family

ID=68622159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810494371.8A Active CN110519503B (en) 2018-05-22 2018-05-22 Method for acquiring scanned image and mobile terminal

Country Status (1)

Country Link
CN (1) CN110519503B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468723A (en) * 2020-11-24 2021-03-09 东莞埃科思科技有限公司 Focusing method and payment equipment
CN112637503A (en) * 2020-12-22 2021-04-09 深圳市九洲电器有限公司 Photographing apparatus, photographing method, and computer-readable storage medium
WO2022140897A1 (en) * 2020-12-28 2022-07-07 深圳元戎启行科技有限公司 Image generation method and apparatus, and computer device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202033765U (en) * 2011-04-02 2011-11-09 北方国通(北京)光电科技有限公司 Large-field-depth bar code scanner
KR101289858B1 (en) * 2012-07-24 2013-07-24 서울과학기술대학교 산학협력단 The apparatus and method of cognition of quick response code with dot led lighting
JP2015088817A (en) * 2013-10-29 2015-05-07 セコム株式会社 Monitoring camera and image monitoring device
CN105205463A (en) * 2015-09-18 2015-12-30 联想(北京)有限公司 Control method, device and system
CN105205662A (en) * 2015-11-09 2015-12-30 联想(北京)有限公司 Electronic equipment and payment method
CN105430251A (en) * 2014-09-16 2016-03-23 株式会社东芝 Information processing device and image input device
CN105763798A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9805239B2 (en) * 2015-08-31 2017-10-31 Pixart Imagine Inc. QR code detecting device and operation method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202033765U (en) * 2011-04-02 2011-11-09 北方国通(北京)光电科技有限公司 Large-field-depth bar code scanner
KR101289858B1 (en) * 2012-07-24 2013-07-24 서울과학기술대학교 산학협력단 The apparatus and method of cognition of quick response code with dot led lighting
JP2015088817A (en) * 2013-10-29 2015-05-07 セコム株式会社 Monitoring camera and image monitoring device
CN105430251A (en) * 2014-09-16 2016-03-23 株式会社东芝 Information processing device and image input device
CN105205463A (en) * 2015-09-18 2015-12-30 联想(北京)有限公司 Control method, device and system
CN105205662A (en) * 2015-11-09 2015-12-30 联想(北京)有限公司 Electronic equipment and payment method
CN105763798A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus

Also Published As

Publication number Publication date
CN110519503A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN109151180B (en) Object identification method and mobile terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN107886321B (en) Payment method and mobile terminal
CN110300267B (en) Photographing method and terminal equipment
CN110913139B (en) Photographing method and electronic equipment
CN109495616B (en) Photographing method and terminal equipment
CN108710458B (en) Split screen control method and terminal equipment
CN110519503B (en) Method for acquiring scanned image and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN109246351B (en) Composition method and terminal equipment
CN110636225B (en) Photographing method and electronic equipment
CN108174109B (en) Photographing method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN109151348B (en) Image processing method, electronic equipment and computer readable storage medium
CN108924413B (en) Shooting method and mobile terminal
CN111601063B (en) Video processing method and electronic equipment
CN110944114B (en) Photographing method and electronic equipment
CN110740265B (en) Image processing method and terminal equipment
CN109359460B (en) Face recognition method and terminal equipment
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN111401463A (en) Method for outputting detection result, electronic device, and medium
CN108196663B (en) Face recognition method and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN110769162B (en) Electronic equipment and focusing method
CN110933305B (en) Electronic equipment and focusing method

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
GR01 Patent grant
GR01 Patent grant