CN106528197B - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN106528197B
CN106528197B CN201610854840.3A CN201610854840A CN106528197B CN 106528197 B CN106528197 B CN 106528197B CN 201610854840 A CN201610854840 A CN 201610854840A CN 106528197 B CN106528197 B CN 106528197B
Authority
CN
China
Prior art keywords
shooting
state
imaging data
terminal
function
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
CN201610854840.3A
Other languages
Chinese (zh)
Other versions
CN106528197A (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.)
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 CN201610854840.3A priority Critical patent/CN106528197B/en
Publication of CN106528197A publication Critical patent/CN106528197A/en
Application granted granted Critical
Publication of CN106528197B publication Critical patent/CN106528197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a shooting method and a shooting device, and belongs to the technical field of intelligent terminals. The method comprises the following steps: after the triggering operation of a shooting key is detected, judging whether the terminal is in a first state at present, wherein the first state comprises a screen locking state and a standby state; if the terminal is in the first state at present, enabling a first type of function provided by a shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation; and shooting through the first type of function. After the triggering operation of the shooting key is detected, the current state of the terminal is detected, if the terminal is in the screen locking state, the shooting function which is provided by the shooting application program and is different from the shooting function in the unlocking state is allowed to be started for shooting, so that the content which is stored in the terminal and possibly relates to the personal privacy of the user is protected, the operation of starting the shooting function is simplified, and the viscosity of the user is high.

Description

Shooting method and device
Technical Field
The disclosure relates to the technical field of intelligent terminals, in particular to a shooting method and a shooting device.
Background
Along with the continuous development of science and technology, smart machines such as smart mobile phone, panel computer, smart television should be born, and for abundant user experience, most smart machines all possess powerful shooting function, for example can carry out high-definition and shoot or make a video recording. Because the imaging effect of intelligent equipment constantly promotes and shoots very conveniently, consequently replaced traditional shooting equipment such as card camera and card camera gradually, become mainstream shooting equipment of time.
At present, for the purposes of protecting personal privacy security and the like, the intelligent devices usually enable a screen locking function. For the intelligent device with the screen locking function, due to the limitation of an operating system carried by the intelligent device, the intelligent device can start the shooting function only after unlocking operation, so that the execution of shooting action can be delayed, and a plurality of lenses with short occurrence time, such as passing time, can be missed, so that the viscosity of a user is poor, the shooting is not convenient enough, and the intellectualization is not good.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a photographing method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a photographing method including:
after the triggering operation of a shooting key is detected, judging whether the terminal is in a first state at present, wherein the first state comprises a screen locking state and a standby state;
if the terminal is in the first state at present, enabling a first type of function provided by a shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation;
and shooting through the first type of function.
In another embodiment, the method further comprises:
acquiring first imaging data obtained by shooting through the first type of function;
and temporarily storing the first imaging data to a specified storage position, wherein the specified storage position is a storage position except a local folder, the local folder is used for storing second imaging data obtained by shooting in a second state, and the second state comprises an unlocking state.
In another embodiment, the method further comprises:
when the terminal is converted from the first state to the second state, displaying the storage prompt information of the first imaging data;
if the user confirmation saving operation is detected, transferring the first imaging data stored in the appointed storage position to the local folder;
and if the confirmation saving operation is not detected, deleting the first imaging data.
In another embodiment, the method further comprises:
after the triggering operation of the shooting key is detected, if the terminal is in a second state at present, enabling a second type of functions, wherein the second type of functions comprise all functions provided by the shooting application program;
acquiring the second imaging data obtained by shooting through the second type of functions;
storing the second imaging data to the local folder.
In another embodiment, the method further comprises:
when the terminal is in the first state, if the imaging data deleting operation of a user is detected, deleting the first imaging data; or the like, or, alternatively,
and when the terminal is in the first state, if the imaging data viewing operation of a user is detected, displaying the first imaging data.
In another embodiment, the method further comprises:
acquiring a preset imaging data storage rule, wherein the imaging data storage rule at least comprises direct storage and separate storage;
and if the imaging data storage rule is direct storage, storing the first imaging data obtained by shooting under the support of the first type of function in the local folder.
In another embodiment, the temporarily storing the first imaging data captured under the support of the first type of function to a designated storage location includes:
and if the imaging data storage rule is a separate storage, temporarily storing the first imaging data to the specified storage position.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
the terminal comprises a judging module, a display module and a display module, wherein the judging module is configured to judge whether the terminal is in a first state at present after the triggering operation of a shooting key is detected, and the first state comprises a screen locking state and a standby state;
the enabling module is configured to allow a first type of function provided by a shooting application program to be enabled and prohibit other functions provided by the shooting application program except the first type of function from being enabled if the terminal is in the first state currently, wherein the first type of function is a function associated with current shooting operation;
a photographing module configured to photograph by the first type of function.
In another embodiment, the apparatus further comprises:
a first acquisition module configured to acquire first imaging data obtained by the first-class function shooting;
the storage module is configured to temporarily store the first imaging data to a specified storage position, the specified storage position is a storage position except a local folder, the local folder is used for storing second imaging data obtained by shooting in a second state, and the second state comprises an unlocking state.
In another embodiment, the apparatus further comprises:
a display module configured to display a saving prompt message of the first imaging data when the terminal is converted from the first state to the second state;
a migration module configured to migrate the first imaging data stored in the designated storage location to the local folder if a user's confirmed save operation is detected;
a deletion module configured to delete the first imaging data if the confirm save operation is not detected.
In another embodiment, the enabling module is further configured to, after detecting the triggering operation of the shooting key, if the terminal is currently in the second state, allow a second type of function to be enabled, where the second type of function includes all functions available from the shooting application program;
the first acquisition module is further configured to acquire the second imaging data obtained by shooting through the second type of function;
the storage module is further configured to store the second imaging data to the local folder.
In another embodiment, the deleting module is further configured to delete the first imaging data if an imaging data deleting operation of a user is detected while the terminal is in the first state; or the like, or, alternatively,
the display module is further configured to display the first imaging data if an imaging data viewing operation of a user is detected when the terminal is in the first state.
In another embodiment, the apparatus further comprises:
a second acquisition module configured to acquire a preset imaging data storage rule including at least direct storage and separate storage;
the storage module is further configured to store the first imaging data obtained by shooting under the support of the first type of function in the local folder if the imaging data storage rule is direct storage.
In another embodiment, the storage module is further configured to temporarily store the first imaging data to the designated storage location if the imaging data storage rule is a separate storage.
According to a third aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: after the triggering operation of a shooting key is detected, judging whether the terminal is in a first state at present, wherein the first state comprises a screen locking state and a standby state; if the terminal is in the first state at present, enabling a first type of function provided by a shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation; and shooting through the first type of function.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
after the triggering operation of the shooting key is detected, judging whether the terminal is in a first state at present, wherein the first state comprises a screen locking state and a standby state; if the terminal is in a first state at present, enabling a first type of function provided by the shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation; thereafter, shooting is performed by the first type function. According to the method and the device, after the triggering operation of the shooting key is detected, the current state of the terminal is detected, if the terminal is in the screen locking state, the shooting function which is provided by the shooting application program and is different from the shooting function in the unlocking state is allowed to be started for shooting, the content which is stored in the terminal and possibly relates to the personal privacy of a user is protected, meanwhile, the operation of starting the shooting function is simplified, the time for executing the shooting action is shortened, the shooting is more convenient, the viscosity of the user is high, and the intellectualization is better.
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 invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a photographing method according to an exemplary embodiment.
Fig. 3A is a block diagram illustrating a camera according to an exemplary embodiment.
Fig. 3B is a block diagram illustrating a camera according to an exemplary embodiment.
Fig. 3C is a block diagram of a camera shown according to an exemplary embodiment.
Fig. 3D is a block diagram illustrating a camera according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a photographing apparatus according to an exemplary 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment, which is used in a terminal, as shown in fig. 1, and includes the following steps.
In step 101, after detecting a trigger operation of a shooting key, determining whether a terminal is currently in a first state, where the first state includes a screen lock state and a standby state. If the terminal is currently in the first state, the following step 102 is executed.
In step 102, if the terminal is currently in the first state, enabling the first type of function provided by the shooting application program is allowed, and disabling the other functions provided by the shooting application program except the first type of function, where the first type of function is a function associated with the current shooting operation.
In step 103, shooting is performed by the first type function.
According to the method provided by the embodiment of the disclosure, after the triggering operation of the shooting key is detected, whether the terminal is in a first state at present is judged, wherein the first state comprises a screen locking state and a standby state; if the terminal is in a first state at present, enabling a first type of function provided by the shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation; thereafter, shooting is performed by the first type function. According to the method and the device, after the triggering operation of the shooting key is detected, the current state of the terminal is detected, if the terminal is in the screen locking state, the shooting function which is provided by the shooting application program and is different from the shooting function in the unlocking state is allowed to be started for shooting, the content which is stored in the terminal and possibly relates to the personal privacy of a user is protected, meanwhile, the operation of starting the shooting function is simplified, the time for executing the shooting action is shortened, the shooting is more convenient, the viscosity of the user is high, and the intellectualization is better.
In another embodiment, the method further comprises:
acquiring first imaging data obtained by shooting through the first type of function;
and temporarily storing the first imaging data to a specified storage position, wherein the specified storage position is a storage position except a local folder, the local folder is used for storing second imaging data obtained by shooting in a second state, and the second state comprises an unlocking state.
In another embodiment, the method further comprises:
when the terminal is converted from the first state to the second state, displaying the storage prompt information of the first imaging data;
if the user confirmation saving operation is detected, the first imaging data stored in the appointed storage position is transferred to the local folder;
if the confirmation saving operation is not detected, the first imaging data is deleted.
In another embodiment, the method further comprises:
after the triggering operation of the shooting key is detected, if the terminal is in a second state at present, enabling a second type of functions, wherein the second type of functions comprise all functions provided by the shooting application program;
acquiring the second imaging data obtained by shooting through the second type of functions;
the second imaging data is stored to the local folder.
In another embodiment, the method further comprises:
when the terminal is in the first state, if the imaging data deleting operation of the user is detected, deleting the first imaging data; or the like, or, alternatively,
and when the terminal is in the first state, if the imaging data viewing operation of the user is detected, displaying the first imaging data.
In another embodiment, the method further comprises:
acquiring a preset imaging data storage rule, wherein the imaging data storage rule at least comprises direct storage and separate storage;
and if the imaging data storage rule is direct storage, storing the first imaging data obtained by shooting under the support of the first type of function into the local folder.
In another embodiment, the temporarily storing the first imaging data captured under the support of the first type of function to a designated storage location includes:
if the imaging data storage rule is a separate storage, the first imaging data is temporarily stored to the designated storage position.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart illustrating a shooting method according to an exemplary embodiment, where the shooting method is used in a terminal, where the terminal may be a smart phone, a tablet computer, a smart television, and the like, and this is not particularly limited in the embodiments of the present disclosure. As shown in fig. 2, the photographing method includes the following steps.
In step 201, after the triggering operation of the shooting key is detected, the current state of the terminal is judged; if the terminal is currently in the first state, executing the following step 202; if the terminal is currently in the second state, the following step 205 is executed.
In the embodiment of the present disclosure, the first state includes a screen locking state and a standby state, and the second state includes an unlocking state. When the current state of the terminal is judged, the following modes can be adopted: if the terminal screen is not lightened in the current state, determining that the terminal is in a standby state currently; if the terminal screen is lightened in the current state, but a screen locking picture is displayed on the terminal screen, determining that the terminal is in the screen locking state currently; and if the terminal screen is lightened in the current state, but the desktop is displayed on the terminal screen, determining that the terminal is in the unlocking state currently. The embodiment of the present disclosure does not specifically limit the manner of determining the terminal state.
The shooting key can be a physical key which is newly arranged on the terminal and is specially used for starting the shooting function, can also be an existing physical key of the redefined terminal, or can also be a combined key formed by combining at least two existing physical keys of the terminal, or can also be a virtual key displayed on a terminal screen in a screen locking state.
If the shooting key is a physical key, determining that the triggering operation of the shooting key is detected when the terminal detects the pressing operation of the user on the shooting key; and if the shooting key is a virtual key, determining that the triggering operation of the shooting key is detected when the terminal detects the sliding operation or the clicking operation of the user on the shooting key. If the sliding mode of the shooting key by the user is different from the sliding mode preset by the terminal, the terminal does not respond to the operation, namely the triggering operation of the shooting key is not detected. The embodiment of the present disclosure does not specifically limit the existence form of the shooting key and the manner of triggering the shooting key.
In step 202, if the terminal is currently in the first state, enabling the first type of function provided by the shooting application program is allowed, disabling the other functions provided by the shooting application program except the first type of function, and shooting through the first type of function to obtain first imaging data obtained through shooting through the first type of function.
In the embodiment of the present disclosure, the shooting application may be a shooting application carried by a system mounted on the terminal, or may also be a third-party shooting application downloaded by a user from an application mall provided by the system mounted on the terminal. If the shooting application program is a shooting application program carried by a system carried by the terminal, when the terminal is in a first state at present, if the triggering operation of a shooting key is detected, a first type of function provided by the shooting application program can be directly started; if the shooting application program is a third-party shooting application program, an association relation between the third-party shooting application program and a system carried by the terminal needs to be established, so that the system carried by the terminal directly starts a first type of function provided by the third-party shooting application program if the triggering operation of the shooting key is detected when the terminal is in a first state.
The first type of function is a function associated with a current shooting operation, such as operations of framing, focusing, shooting, and viewing the current imaging data. The embodiment of the present disclosure does not specifically limit the type of the function associated with the current shooting operation included in the first class of functions. The other functions except the first type of function may be operations of browsing, editing, modifying, copying, or sharing imaging data stored before the first type of function provided by the shooting application is activated this time, and the like. The imaging data includes photo data and camera data. If the imaging data is photo data, the photo data at least comprises data such as a photo body, a photo size, a photo taking place, photo taking time and the like; if the imaging data is shooting data, the shooting data at least comprises data such as a shooting body, shooting time, shooting place and shooting time.
When the functions provided by the shooting application program except the first type of functions are forbidden to be enabled, the functions of other existing application programs of the terminal are forbidden to be enabled. For example, the terminal currently enables the first type of function provided by the shooting application program, and if it is detected that the user performs the trigger operation of starting the address book application program, the terminal does not respond, that is, the user cannot enable the address book application program at this time.
When the first type of function provided by the shooting application is enabled to shoot, the user can shoot according to the own required amount, and the required amount is not limited by the capacity of the system installed on the terminal.
In another embodiment, the disclosed embodiments also support a delete operation of the first imaging data while the terminal is in the first state. That is, the terminal may delete the first imaging data photographed in the first state after detecting the operation of deleting the imaging data by the user. The shooting application program can provide a prompt word such as 'delete' on an application program interface, and if a user clicks an area where the prompt word is located, the user is determined to delete the first imaging data, and an imaging data deleting interface is displayed. The delete imaging data interface provides a checkable list of the first imaging data currently being captured in the first state, or may also provide a prompt such as "all selected". And if the user clicks the area where the prompt typeface is located, checking all imaging data in the first imaging data. For example, if the first imaging data is photo data, a selectable list of all photo data taken in the first state at this time is displayed in the imaging data deletion interface, and the user can select the photo data to be deleted according to the user's will, or the user can click on a ' full selection ' prompt style to select all the photo data taken in the first state at this time. And deleting the photo data checked by the user after detecting the operation of confirming the deletion by the user.
In another embodiment, the disclosed embodiments also support a viewing operation of the first imaging data when the terminal is in said first state. That is, the terminal may display the first imaging data on the application program interface when detecting the operation of viewing the imaging data by the user. Continuing to take the photo data as an example, a prompt word such as "view" may be provided on the application program interface of the shooting application program, and if the user clicks the area where the prompt word is located, the photo data shot after the first type of function provided by the shooting application program is started may be displayed on the interface of the terminal in a list form. And when the fact that the user clicks one piece of photo data in the list is detected, the photo data is displayed on the terminal interface in an enlarged mode. The imaging data stored before the first-class function provided by the shooting application program is started at this time cannot be checked.
In step 203, a preset imaging data storage rule is obtained, and if the imaging data storage rule is a separate storage, the first imaging data is temporarily stored in a designated storage location.
In embodiments of the present disclosure, the imaging data storage rules include at least direct storage and separate storage. And if the imaging data storage rule is direct storage, storing the first imaging data obtained by shooting through the first type of function into a local folder. That is, the direct storage refers to storing the first imaging data to a local folder for storing the second imaging data photographed in the second state. In other words, the local folder is used to store imaging data taken in a normally unlocked state. The separate storage refers to storing the first imaging data to a specified storage location, which is a storage location other than the local folder, such as newly opening a cache folder, which is dedicated to storing imaging data obtained by shooting when the terminal is in the screen lock state or the standby state.
Wherein, the first imaging data includes EXIF (exchangeable image File Format) information and imaging body data; EXIF information refers to EXIF information such as shooting geographical position information, shooting time information, shooting equipment information and the like, and the information is privacy data information related to personal privacy of a user; the imaging body data refers to a shot picture. In another embodiment, in the first state, if the imaging data storage rule is separate storage, the EXIF information and the imaging subject data in the first imaging data are also separately stored, for example, for a shot photo, the EXIF information and the imaging subject data may be separately stored in different folders or different storage addresses of a specified storage location, or the EXIF information may be stored in other storage locations besides the local folder and the specified storage location, and the imaging subject data may be stored in the specified storage location. And when the terminal is changed from the first state to the second state, if the user determines to store the shot picture, combining the EXIF information and the imaging body data together and storing the combined EXIF information and the imaging body data into a local file.
Wherein the imaging data storage rule is modifiable when the terminal is in the second state. The photographing application may provide and display a typeface such as "set storage rule", and when the user clicks on an area where the prompt typeface is located, the photographing application may provide a pull-down menu including a direct storage option and a separate storage option. The user can select the imaging data storage rule according to the desire, and the terminal stores the imaging data storage rule to the local and executes the imaging data storage rule when the first type of function provided by the shooting program is started next time.
In step 204, when the terminal is switched from the first state to the second state, displaying a storage prompt message of the first imaging data; if the user confirmation saving operation is detected, the first imaging data stored in the appointed storage position is transferred to the local folder; if the confirmation saving operation is not detected, the first imaging data is deleted.
In the embodiment of the present disclosure, when the terminal is in the first state, if a state transition instruction is received, the terminal is transitioned from the first state to the second state. The state transition instruction refers to an instruction received by the terminal to transition from a first state to a second state. For example, when the terminal is in the screen locking state, if the unlocking operation is detected, it is determined that the terminal is switched from the screen locking state to the unlocking state, and the state switching is completed.
Wherein, the deletion operation mentioned in this step refers to: and deleting all imaging data in the first imaging data obtained by the first type of function shooting when the terminal is in the first state. When the terminal is in the second state, if it is detected that the first imaging data is stored in the designated storage location, a display such as "do not save photos? "and provide the prompt options of" yes "and" no ". The embodiment of the present disclosure does not specifically limit the manner of displaying and saving the prompt information. If the area where the option 'yes' is clicked by the user is detected, the first imaging data stored in the specified storage position are transferred to the local folder; and if the area where the option 'no' is clicked by the user is detected, deleting the first imaging data stored in the specified storage position.
In step 205, if the terminal is currently in the second state, the second type of function is allowed to be enabled.
In the embodiment of the present disclosure, the second type of function includes all functions that can be provided by the shooting application, such as displaying imaging data, editing imaging data, deleting imaging data, copying imaging data, sharing imaging data, and the like. That is, the second type of function includes the first type of function.
If the triggering operation of the shooting key is detected, and the related pages of other application programs except the shooting application program are currently displayed on the display interface of the terminal, application skipping is needed, and the application program skips from the other application programs to the shooting application program, so that the second type of functions provided by the shooting application program are directly started. For example, when the current terminal is in the address book application program, if the trigger operation of the shooting key is detected, the shooting application program is directly entered and the second type of function of the shooting application program is started.
In step 206, second imaging data obtained by the second function is acquired and stored in a local folder.
In the disclosed embodiment, the storage location of the second imaging data is preset by the user in the shooting application. And if the storage position is set as the local folder by the user, after second imaging data obtained by shooting through the second type of functions is obtained, the second imaging data is stored in the local folder. Furthermore, in addition to storing the second imaging data in a local folder, embodiments of the present disclosure support self-setting of a storage location for the second imaging data. For example, in order to relieve the storage pressure of the terminal, the user may further set the storage location as a cloud folder, and for this case, the terminal stores the second imaging data into the cloud folder after acquiring the second imaging data obtained by the second type of function. The cloud folder is a folder except for the local folder, and the cloud folder is different from the specified storage position of the first imaging data. The embodiment of the invention does not specifically limit the types of folders in the system carried by the terminal.
It should be noted that the storage location of the second imaging data may be modified again in the second state of the terminal after the user completes the setting. The user can select a storage location of the second imaging data in the photographing application as desired and be executed by the terminal at the next time the second type of function provided by the photographing application is enabled. For example, if the storage location of the second imaging data set by the current user is a local folder, the storage location may be changed to a cloud folder.
According to the method provided by the embodiment of the disclosure, after the triggering operation of the shooting key is detected, whether the terminal is in a first state at present is judged, wherein the first state comprises a screen locking state and a standby state; if the terminal is in a first state at present, enabling a first type of function provided by the shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation; thereafter, shooting is performed by the first type function. According to the method and the device, after the triggering operation of the shooting key is detected, the current state of the terminal is detected, if the terminal is in the screen locking state, the shooting function which is provided by the shooting application program and is different from the shooting function in the unlocking state is allowed to be started for shooting, the content which is stored in the terminal and possibly relates to the personal privacy of a user is protected, meanwhile, the operation of starting the shooting function is simplified, the time for executing the shooting action is shortened, the shooting is more convenient, the viscosity of the user is high, and the intellectualization is better.
Fig. 3A is a block diagram illustrating a camera according to an exemplary embodiment. Referring to fig. 3A, the apparatus includes a determination module 301, an enabling module 302, and a photographing module 303.
The judging module 301 is configured to judge whether the terminal is currently in a first state after detecting a triggering operation of a shooting key, where the first state includes a screen locking state and a standby state;
the enabling module 302 is configured to, if the terminal is currently in the first state, allow enabling a first type of function provided by the shooting application program, and prohibit enabling other functions provided by the shooting application program except the first type of function, where the first type of function is a function associated with a current shooting operation;
the photographing module 303 is configured to perform photographing through the first type of function.
In another embodiment, referring to fig. 3B, the apparatus further comprises a first obtaining module 304 and a storing module 305.
The first obtaining module 304 is configured to obtain first imaging data obtained by shooting through the first type of function;
the storage module 305 is configured to temporarily store the first imaging data to a designated storage location, which is a storage location other than a local folder for storing second imaging data captured in a second state, which includes an unlocked state.
In another embodiment, referring to FIG. 3C, the apparatus further comprises a display module 306, a migration module 307, and a deletion module 308.
The display module 306, configured to display a saving prompt message of the first imaging data when the terminal is converted from the first state to the second state;
the migration module 307, configured to migrate the first imaging data stored in the designated storage location to the local folder if a confirmed save operation by a user is detected;
the deletion module 308 is configured to delete the first imaging data if the confirm save operation is not detected.
In another embodiment, the enabling module 302 is further configured to, after detecting the triggering operation of the shooting key, if the terminal is currently in the second state, allow to enable a second type of functions, where the second type of functions includes all functions available from the shooting application program;
the first obtaining module 304 is further configured to obtain the second imaging data obtained by the second type of function shooting;
the storage module 305 is further configured to store the second imaging data to the local folder.
In another embodiment, the deleting module 308 is further configured to delete the first imaging data if detecting a delete imaging data operation of the user while the terminal is in the first state; or the like, or, alternatively,
the display module 306 is further configured to display the first imaging data if the operation of viewing the imaging data by the user is detected while the terminal is in the first state.
In another embodiment, referring to fig. 3D, the apparatus further comprises a second acquisition module 309.
The second acquiring module 309 configured to acquire a preset imaging data storage rule, which includes at least direct storage and separate storage;
the storage module 305 is further configured to store the first imaging data obtained by shooting under the support of the first type of function in the local folder if the imaging data storage rule is direct storage.
In another embodiment, the storage module 305 is further configured to temporarily store the first imaging data to the designated storage location if the imaging data storage rule is a separate storage.
According to the device provided by the embodiment of the disclosure, after the triggering operation of the shooting key is detected, whether the terminal is in a first state at present is judged, wherein the first state comprises a screen locking state and a standby state; if the terminal is in a first state at present, enabling a first type of function provided by the shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function, wherein the first type of function is a function associated with the current shooting operation; thereafter, shooting is performed by the first type function. According to the method and the device, after the triggering operation of the shooting key is detected, the current state of the terminal is detected, if the terminal is in the screen locking state, the shooting function which is provided by the shooting application program and is different from the shooting function in the unlocking state is allowed to be started for shooting, the content which is stored in the terminal and possibly relates to the personal privacy of a user is protected, meanwhile, the operation of starting the shooting function is simplified, the time for executing the shooting action is shortened, the shooting is more convenient, the viscosity of the user is high, and the intellectualization is better.
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. 4 is a block diagram illustrating a camera 400 according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 408, audio component 410, interface to I/O (Input/Output) 412, sensor component 414, and communication component 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 404 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static Random Access Memory), an EEPROM (Electrically-Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (touch panel). 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 408 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 apparatus 400 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 410 is configured to output and/or input audio signals. For example, the audio component 410 may include a Microphone (MIC) configured to receive external audio signals when the device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 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 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS (Complementary Metal oxide semiconductor) or CCD (Charge-coupled Device) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 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 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on an RFID (Radio frequency identification) technology, an IrDA (infrared-Data Association) technology, an UWB (Ultra Wideband) technology, a BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more ASICs (Application specific integrated circuits), DSPs (Digital signal processors), DSPDs (Digital signal processing devices), PLDs (Programmable logic devices), FPGAs (Field Programmable Gate arrays), controllers, microcontrollers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, instructions in which, when executed by a processor of a photographing apparatus, enable the photographing apparatus to perform the above-described photographing method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention 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 invention is limited only by the appended claims.

Claims (8)

1. A photographing method, characterized in that the method comprises:
after the triggering operation of a shooting key is detected, judging whether the terminal is in a first state at present, wherein the first state comprises a screen locking state and a standby state;
if the terminal is in the first state currently, enabling a first type of function provided by a shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function and functions of other existing application programs of the terminal, wherein the first type of function is a function associated with the current shooting operation;
shooting through the first type of function to obtain first imaging data obtained through the first type of function, wherein the first imaging data comprise privacy data information and imaging body data, the imaging body data refer to a shot picture, and the privacy data information comprises shooting geographical position information, shooting time information and shooting equipment information;
acquiring a preset imaging data storage rule, wherein the imaging data storage rule at least comprises a separated storage;
if the imaging data storage rule is a separate storage rule, temporarily storing the first imaging data to a designated storage position, and separately storing the private data information and the imaging body data, wherein the designated storage position is a storage position except a local folder, the local folder is used for storing second imaging data obtained by shooting in a second state, and the second state comprises an unlocking state;
when the terminal is converted from the first state to the second state, displaying the storage prompt information of the first imaging data; if the confirmation saving operation of the user is detected, combining the private data information and the imaging body data, and storing the private data information and the imaging body data in the local folder; and if the confirmation saving operation is not detected, deleting the first imaging data.
2. The method of claim 1, further comprising:
after the triggering operation of the shooting key is detected, if the terminal is in a second state at present, enabling a second type of functions, wherein the second type of functions comprise all functions provided by the shooting application program;
acquiring the second imaging data obtained by shooting through the second type of functions;
storing the second imaging data to the local folder.
3. The method of claim 1, further comprising:
when the terminal is in the first state, if the imaging data deleting operation of a user is detected, deleting the first imaging data; or the like, or, alternatively,
and when the terminal is in the first state, if the imaging data viewing operation of a user is detected, displaying the first imaging data.
4. A camera, characterized in that the camera comprises:
the terminal comprises a judging module, a display module and a display module, wherein the judging module is configured to judge whether the terminal is in a first state at present after the triggering operation of a shooting key is detected, and the first state comprises a screen locking state and a standby state;
the enabling module is configured to enable a first type of functions provided by the shooting application program and forbid enabling of other functions provided by the shooting application program except the first type of functions and functions of other existing application programs of the terminal if the terminal is in the first state currently, wherein the first type of functions are functions related to current shooting operation;
a photographing module configured to photograph by the first kind of function;
the first acquisition module is configured to acquire first imaging data obtained through the first-class function shooting, wherein the first imaging data comprises privacy data information and imaging body data, the imaging body data refers to a shot picture, and the privacy data information comprises shooting geographical position information, shooting time information and shooting equipment information;
a second acquisition module configured to acquire a preset imaging data storage rule including at least a separate storage;
a storage module configured to, if the imaging data storage rule is a separate storage, temporarily store the first imaging data to a specified storage location, and separately store the private data information and the imaging body data, where the specified storage location is a storage location other than a local folder, and the local folder is used to store second imaging data obtained by shooting in a second state, and the second state includes an unlocked state;
a display module configured to display a saving prompt message of the first imaging data when the terminal is converted from the first state to the second state;
the migration module is configured to merge the private data information and the imaging body data and migrate the private data information and the imaging body data to the local folder if the confirmation saving operation of the user is detected;
a deletion module configured to delete the first imaging data if the confirm save operation is not detected.
5. The device according to claim 4, wherein the enabling module is further configured to, after detecting the triggering operation of the shooting key, if the terminal is currently in the second state, allow a second type of function to be enabled, where the second type of function includes all functions available by the shooting application program;
the first acquisition module is further configured to acquire the second imaging data obtained by shooting through the second type of function;
the storage module is further configured to store the second imaging data to the local folder.
6. The apparatus according to claim 4, wherein the deleting module is further configured to delete the first imaging data if a delete imaging data operation by a user is detected while the terminal is in the first state; or the like, or, alternatively,
the display module is further configured to display the first imaging data if an imaging data viewing operation of a user is detected when the terminal is in the first state.
7. A camera, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the triggering operation of a shooting key is detected, judging whether the terminal is in a first state at present, wherein the first state comprises a screen locking state and a standby state; if the terminal is in the first state currently, enabling a first type of function provided by a shooting application program, and forbidding enabling other functions provided by the shooting application program except the first type of function and functions of other existing application programs of the terminal, wherein the first type of function is a function associated with the current shooting operation;
shooting through the first type of function to obtain first imaging data obtained through the first type of function, wherein the first imaging data comprise privacy data information and imaging body data, the imaging body data refer to a shot picture, and the privacy data information comprises shooting geographical position information, shooting time information and shooting equipment information;
acquiring a preset imaging data storage rule, wherein the imaging data storage rule at least comprises a separated storage;
if the imaging data storage rule is a separate storage rule, temporarily storing the first imaging data to a designated storage position, and separately storing the private data information and the imaging body data, wherein the designated storage position is a storage position except a local folder, the local folder is used for storing second imaging data obtained by shooting in a second state, and the second state comprises an unlocking state;
when the terminal is converted from the first state to the second state, displaying the storage prompt information of the first imaging data; if the confirmation saving operation of the user is detected, combining the private data information and the imaging body data, and storing the private data information and the imaging body data in the local folder; and if the confirmation saving operation is not detected, deleting the first imaging data.
8. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-3.
CN201610854840.3A 2016-09-27 2016-09-27 Shooting method and device Active CN106528197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610854840.3A CN106528197B (en) 2016-09-27 2016-09-27 Shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610854840.3A CN106528197B (en) 2016-09-27 2016-09-27 Shooting method and device

Publications (2)

Publication Number Publication Date
CN106528197A CN106528197A (en) 2017-03-22
CN106528197B true CN106528197B (en) 2020-08-11

Family

ID=58344417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610854840.3A Active CN106528197B (en) 2016-09-27 2016-09-27 Shooting method and device

Country Status (1)

Country Link
CN (1) CN106528197B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197104A (en) * 2017-07-14 2017-09-22 维沃移动通信有限公司 A kind of camera control method and mobile terminal
CN111638934B (en) * 2020-06-11 2023-08-01 上海摩象网络科技有限公司 State synchronization method and device of interaction control and handheld camera

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200714038A (en) * 2005-09-23 2007-04-01 Premier Image Technology Corp A method of using a data combination lock of a digital camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369117A (en) * 2012-04-01 2013-10-23 比亚迪股份有限公司 Mobile terminal and method for taking pictures in locked state
CN103019542A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 Method for quickly photographing under screen locking interface
CN104780316B (en) * 2015-04-14 2017-09-29 广东欧珀移动通信有限公司 A kind of camera starts detection method and camera starts detection means
CN105827940A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200714038A (en) * 2005-09-23 2007-04-01 Premier Image Technology Corp A method of using a data combination lock of a digital camera

Also Published As

Publication number Publication date
CN106528197A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN108108418B (en) Picture management method, device and storage medium
EP3674868A1 (en) Multimedia resource management method and apparatus, and storage medium
CN106657780B (en) Image preview method and device
CN109600303B (en) Content sharing method and device and storage medium
CN104427130B (en) Mobile terminal and control method thereof
CN106775202B (en) Information transmission method and device
CN106126025B (en) Interactive method and device for copying and pasting
CN104850643B (en) Picture comparison method and device
CN108011990B (en) Contact management method and device
CN106527886B (en) Picture display method and device
CN108984098B (en) Information display control method and device based on social software
CN106528197B (en) Shooting method and device
US10225387B2 (en) Call processing method and device
CN107222576B (en) Photo album synchronization method and device
CN107371222B (en) Virtual card disabling method and device
CN108027821B (en) Method and device for processing picture
CN111461950B (en) Image processing method and device
CN107169042B (en) Method and device for sharing pictures and computer readable storage medium
CN106155696B (en) Method and device for deleting information
CN105607958B (en) Information input method and device
CN105975188B (en) Picture position adjusting method and device
US20170316039A1 (en) Information acquisition method, device and system
CN109743441B (en) Read-write permission setting method and device
CN107679123B (en) Picture naming method and device
CN107682623B (en) Photographing method and device

Legal Events

Date Code Title Description
C06 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