Disclosure of Invention
The invention mainly solves the technical problem of providing a standby photographing method and device for a mobile terminal, which can quickly turn on a front camera/a rear camera on the premise of not lighting a screen, reduce power consumption loss caused by lighting the screen and reduce key wear.
In order to solve the technical problems, the invention adopts a technical scheme that: a standby photographing method of a mobile terminal is provided, and the method comprises the following steps: judging whether the mobile terminal enters a standby state or not; acquiring a stroking track on a touch screen in a standby state; judging the slope change trend of the stroking track; and according to the slope change trend of the stroking track, the front camera/the rear camera is determined to be started under the condition that the screen is not lightened.
Wherein, judging the slope variation trend of the stroking track comprises: and judging whether the slope change trend of the stroking track changes from large to small or from small to large.
Wherein, according to the slope trend of stroking the orbit, confirm to open leading/rearmounted camera and include: if the slope change trend of the stroking track is changed from large to small, the front-facing camera is started; and if the slope change trend of the paddling track is changed from small to large, starting the rear camera.
Wherein, if the slope trend of stroking the orbit is changed from big to little, then open leading camera and include: when the slope change trend of the stroking track is detected to be changed from large to small, a first level signal is sent to the central processing unit, the central processing unit sends an instruction to the front-facing camera, and the front-facing camera is started.
Wherein, if the slope trend of stroking the orbit is changed from small to big, then open the rear camera and include: when the slope change trend of the stroking track is detected to be changed from small to large, a second level signal is sent to the central processing unit, the central processing unit sends an instruction to the rear camera, and the rear camera is started.
In order to solve the technical problem, the invention adopts another technical scheme that: the mobile terminal standby photographing device comprises: the mode detection module is used for judging whether the mobile terminal enters a standby state or not; the touch screen comprises a swiping track sensing module, a touch screen control module and a touch screen control module, wherein the swiping track sensing module is used for acquiring a swiping track on the touch screen in a standby state; the slope change calculation module is used for judging the slope change trend of the stroking track; and the photographing function module is used for determining to turn on the front camera or the rear camera under the condition of not lightening the screen according to the slope change trend of the stroking track.
Wherein, the slope change calculation module is specifically configured to: and judging whether the slope change trend of the stroking track changes from large to small or from small to large.
Wherein, the function module of shooing specifically includes: the front camera opening module is used for detecting that when the slope change trend of the stroking track is changed from large to small, the front camera is opened; and the rear camera opening module is used for detecting that the rear camera is opened when the slope change trend of the stroking track is changed from small to large.
Wherein, leading camera opens the module and specifically is used for: when the slope change trend of the stroking track is detected to be changed from large to small, a first level signal is sent to the central processing unit, the central processing unit sends an instruction to the front-facing camera, and the front-facing camera is started.
Wherein, the module is opened to rearmounted camera specifically is used for: when the slope change trend of the stroking track is detected to be changed from small to large, a second level signal is sent to the central processing unit, the central processing unit sends an instruction to the rear camera, and the rear camera is started.
According to the scheme, even if the mobile terminal enters the standby state, a user does not need to point the screen first, but directly obtains the sliding track on the touch screen in the standby state, and the front camera/the rear camera is determined to be started according to the slope change trend of the sliding track, so that the front camera/the rear camera is quickly started on the premise that the screen is not lightened, the power consumption loss caused by lightening the screen is reduced, and the abrasion of keys is reduced.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a standby photographing method of a mobile terminal according to an embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
s101: and judging whether the mobile terminal enters a standby state or not.
When the mobile terminal enters a standby state, it is assumed that a system current of the mobile terminal is I. And if the mobile terminal detects that the system current of the mobile terminal is I, judging that the mobile terminal is in a standby state, and at the moment, judging that the mobile terminal is in a black screen state.
S102: and acquiring a stroking track on the touch screen in a standby state.
When the mobile terminal detects a stroking track on the touch screen, a level signal is sent to the central processing unit, and the mobile terminal in a standby state is awakened.
S103: and judging the slope change trend of the stroking track.
When the mobile terminal detects the sliding track on the touch screen, the slope k of the sliding track is recorded at the same timePK is shown in FIG. 2 and FIG. 3P1,kP2,kP3,…,kPnAccording to the slope kP1,kP2,kP3,…,kPnAnd judging the slope variation trend of the stroking track.
S104: and determining to start the front camera or the rear camera according to the slope change trend of the stroking track.
When the slope kP1,kP2,kP3,…,kPnThe change trend of (a) is changed from large to small, i.e. k is shown in FIG. 2P1>kP2>kP3>…>kPnAnd when the camera is started, the front camera is started to take a picture. When the slope kP1,kP2,kP3,…,kPnThe change trend of (a) is changed from small to large, i.e. k is shown in FIG. 3P1<kP2<kP3<…<kPnAnd when the camera is started, the rear camera is started to take a picture.
According to the scheme, even if the mobile terminal enters the standby state, a user does not need to point the screen first, but directly obtains the sliding track on the touch screen in the standby state, and the front camera/the rear camera is determined to be started according to the slope change trend of the sliding track, so that the front camera/the rear camera is quickly started on the premise that the screen is not lightened, the power consumption loss caused by lightening the screen is reduced, and the abrasion of keys is reduced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a standby photographing method of a mobile terminal according to another embodiment of the present invention. In this embodiment, the method comprises the steps of:
s401: and judging whether the mobile terminal enters a standby state or not.
As described above in S101, further description is omitted here.
S402: and acquiring a stroking track on the touch screen in a standby state.
As described above in S102, further description is omitted here.
S403: and judging whether the slope change trend of the stroking track changes from large to small or from small to large.
S404: and determining to start the front camera or the rear camera according to the slope change trend of the stroking track.
When the slope kP1,kP2,kP3,…,kPnThe trend of change is changed from large to small, i.e. k is shown in FIG. 2P1>kP2>kP3>…>kPnAnd sending a first level wake-up signal and a first level photographing request signal to the central processing unit, wherein the first level wake-up signal is used for requesting to wake up the mobile terminal in a standby state, and the first level photographing signal is used for requesting to turn on the photographing control circuit. The central processing unit responds to the first level wake-up signal and the first level photographing request signal respectively, calls a wake-up signal instruction to start a wake-up program, and simultaneously sends a wake-up activation signal to the power management circuit to request the power management circuit to start and supply power. And then calling a photographing signal instruction I, outputting a photographing pulse signal I to the photographing control circuit, carrying out photographing control communication between the central processing unit and the photographing control circuit, and starting the front camera.
When the slope kP1,kP2,kP3,…,kPnWhen the trend of change from small to large, i.e. k as shown in FIG. 3P1<kP2<kP3<…<kPnSending a second level wake-up signal and a second level photographing request signal to the central processing unit, the second level wake-up signal being used for requesting to wake up the mobile terminal in the standby state, the second level photographing signalThe number is used to request the photographing control circuit to be turned on. The central processing unit responds to the second level wake-up signal and the second level photographing request signal respectively, calls the wake-up signal instruction two to start a wake-up program, and simultaneously sends a wake-up activation signal to the power management circuit to request the power management circuit to start and supply power. And then calling a photographing signal instruction II, outputting a photographing pulse signal II to the photographing function module, carrying out photographing control communication between the central processing unit and the photographing control circuit, and starting the rear camera.
According to the scheme, even if the mobile terminal enters the standby state, a user does not need to point the screen first, but directly obtains the sliding track on the touch screen in the standby state, and the front camera/the rear camera is determined to be started according to the slope change trend of the sliding track, so that the front camera/the rear camera is quickly started on the premise that the screen is not lightened, the power consumption loss caused by lightening the screen is reduced, and the abrasion of keys is reduced.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a standby photographing apparatus of a mobile terminal according to an embodiment of the present invention. In this embodiment, the mobile terminal standby photographing device 50 is the mobile terminal standby photographing device in the above embodiment, and the mobile terminal standby photographing device 50 includes a mode detection module 51, a sliding track sensing module 52, a slope change calculation module 53, and a photographing function module 54.
The mode detection module 51 is used for determining whether the mobile terminal enters a standby state.
The stroking trajectory sensing module 52 is configured to obtain a stroking trajectory on the touch screen in a standby state.
The slope change calculating module 53 is used for determining the slope change trend of the stroking trajectory.
The photographing function module 54 is configured to determine to turn on the front/rear camera according to a slope variation trend of the stroking trajectory without lighting the screen.
Optionally, the stroking trajectory sensing module 52 is specifically configured to detect and record a stroking trajectory on the touch screen in a standby state.
Optionally, the slope change calculating module 53 is specifically configured to determine whether the slope change trend of the stroking trajectory changes from large to small or from small to large.
Optionally, the photographing function module 54 is specifically configured to respond to a photographing signal instruction of the central processing unit.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a standby photographing apparatus of a mobile terminal according to another embodiment of the present invention. Unlike the previous embodiment, the communication terminal 60 according to the present embodiment further includes: a front camera opening module 61 and a rear camera opening module 62.
The front camera opening module 61 is configured to detect that the front camera is opened when a slope variation trend of the stroking trajectory is changed from a positive value to a negative value.
The rear camera opening module 62 is configured to detect that the rear camera is opened when a slope variation trend of the stroking trajectory is changed from a negative value to a positive value.
Optionally, the front camera turning-on module 61 is specifically configured to, when it is detected that the slope variation trend of the stroking trajectory changes from large to small, send a first level signal to the central processing unit, and the central processing unit sends an instruction to the front camera to turn on the front camera.
Optionally, the rear camera turning-on module 62 is specifically configured to, when it is detected that the slope variation trend of the stroking trajectory changes from small to large, send a second level signal to the central processing unit, and the central processing unit sends an instruction to the rear camera to turn on the rear camera.
Each module of the standby photographing apparatus 50/60 of the mobile terminal can respectively execute the corresponding steps in the above method embodiments, and therefore, the detailed description of each module is omitted here, and please refer to the description of the corresponding steps above.
According to the scheme, even if the mobile terminal enters the standby state, a user does not need to point the screen first, but directly obtains the sliding track on the touch screen in the standby state, and the front camera/the rear camera is determined to be started according to the slope change trend of the sliding track, so that the front camera/the rear camera is quickly started on the premise that the screen is not lightened, the power consumption loss caused by lightening the screen is reduced, and the abrasion of keys is reduced.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a standby photographing apparatus of a mobile terminal according to another embodiment of the present invention. The mobile terminal standby photographing device can execute the steps executed by the mobile terminal standby photographing device in the method. For a detailed description of the above method, please refer to the above method, which is not repeated herein.
In this embodiment, the processing apparatus includes: a processor 71, a memory 72 coupled to the processor 71, a touch display 73, a rear camera 74, and a front camera 75.
Memory 72 is used to store an operating system, instructions executed by processor 71, and received messages, among other things.
The touch display screen 73 is used for receiving and recording the slope k of the stroking trackP。
The processor 71 is configured to determine a slope variation trend of the stroking trajectory, and determine to turn on the rear camera 74/the front camera 75 according to the slope variation trend of the stroking trajectory.
Alternatively, the processor 71 performs a determination of whether the slope trend of the stroking trajectory changes from large to small or small to large.
Alternatively, the processor 71 executes the step of sending a first level signal to the central processing unit when detecting that the slope variation trend of the stroking track is changed from large to small, and the central processing unit sends an instruction to the front camera 75 to turn on the front camera 75.
Alternatively, the processor 71 executes the step of sending a second level signal to the central processing unit when detecting that the slope variation trend of the stroking track changes from small to large, and the central processing unit sends an instruction to the rear camera 74 to turn on the rear camera 74.
According to the scheme, even if the mobile terminal enters the standby state, a user does not need to point the screen first, but directly obtains the sliding track on the touch screen in the standby state, and the front camera/the rear camera is determined to be started according to the slope change trend of the sliding track, so that the front camera/the rear camera is quickly started on the premise that the screen is not lightened, the power consumption loss caused by lightening the screen is reduced, and the abrasion of keys is reduced.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.