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.
Referring to fig. 1, fig. 1 is a flowchart of a photographing method according to an embodiment of the present invention, where the photographing mode can be quickly started according to geographic location information of a terminal, so as to improve operation experience of a user. As shown in fig. 1, this embodiment specifically includes the following steps:
s101, acquiring the geographical position information of the current position of the terminal.
Specifically, the geographical location information of the terminal may be acquired through a global Positioning system (gps). The geographical location information may be longitude and latitude of the current location of the terminal.
S102, detecting whether the current position of the terminal is a preset geographic position or not; it should be noted that the preset geographic location is a location where the user wishes to start the photographing mode.
It should be noted that the preset geographic location may include: tourist attractions or user specified locations. Specifically, the preset geographic location may be set as: the name of the geographic location includes the geographic location of the preset keyword. The preset keywords may include: for example, when the name corresponding to the current position of the terminal is "the travel area of the national village," because the name includes the keyword "the travel area," the current position of the terminal is a preset geographic position, and the preset geographic position may also be the name of a famous tourist spot, such as sunshu. Specifically, after the GPS acquires the current longitude and latitude information of the terminal, the GPS may send the longitude and latitude of the current location to a system (e.g., Google earth) in the network, which may acquire a place name through the longitude and latitude information, through a communication module in the terminal, and obtain the name of the current geographic location from the system. For example, when the current longitude and latitude of the GPS acquisition terminal are: the east longitude is 109 degrees and 45 degrees, the north latitude is 24 degrees and 18 degrees, then the terminal sends the longitude and the latitude to a system for inquiring the place name according to the longitude and latitude information through a network interface in the mobile phone, for example, Google earth inquires that the name of the geographical position is a guilin tourist area according to the acquired longitude and latitude, and the current position of the terminal is a preset geographical position. It should be noted that the preset geographic location may also be a specific location specified by the user, for example, when the user needs to specify the meeting room as a place where the photographing mode needs to be quickly started later, the meeting room may be set as the preset geographic location, and it should be noted that the location near the location specified by the user, for example, within 10 meters of the diameter, may be considered to be located at the specified location.
And S103, if the current position of the terminal is a preset geographic position, starting a photographing mode.
It should be noted that the starting of the photographing mode may be directly starting the photographing function to enable the terminal to be in a photographing state, or may be a shortcut for loading the photographing function in a display interface of the terminal, and starting the photographing function by operating the shortcut.
Further, if the terminal is in a standby state and the current position of the terminal is a preset geographic position, before the photographing mode is started, the method may further include receiving an activation instruction of a user to activate the terminal, and after the terminal is activated, starting the photographing mode. Specifically, the activation instruction may be: activating the terminal by operating an activation key (such as a power key) of the terminal; the terminal can also be activated by shaking the terminal when the shaking amplitude of the terminal is larger than the threshold value; when the terminal is a flip phone, the terminal can be activated by flipping the flip; in addition, when the terminal uses the terminal sleeve which can be opened, the terminal can be activated by opening the terminal sleeve.
In another embodiment, the terminal is in a standby state, the terminal displays a screen locking interface after receiving an activation instruction of a user to activate the terminal, and when the current position of the terminal is a preset geographic position, a shortcut of a photographing function is loaded in the screen locking interface of the terminal, specifically, a shortcut icon of the photographing function can be loaded in the screen locking interface. The user can start the photographing function by triggering the shortcut of the photographing function.
According to the implementation mode, the shortcut of the photographing function is displayed on the screen locking interface, the shortcut of the photographing function is operated, the photographing function can be started without unlocking, the time for starting the photographing function is shortened, and the user experience is improved.
In another embodiment, after the screen of the terminal is unlocked, the shortcut of the photographing mode is highlighted, and the user operates the shortcut of the photographing mode, for example, clicks the shortcut of the photographing mode, and then starts the photographing mode. According to the embodiment, the user does not need to search the shortcut of the photographing mode in a plurality of shortcuts, so that the searching time is saved, and the time for starting the photographing function can be shortened.
It should be noted that, in order to further improve the user experience and ensure that the user really needs to start the photographing mode in the preset geographic location, before the terminal starts the photographing mode, a verification condition may be further added, for example, when the movement track of the mobile terminal can be set to conform to the preset track, the photographing mode may be started, and the preset track may be moved from bottom to top, or moved in an arc from left to right, or the like. Of course, the detection of the biometric features may also be used for identification, for example, the photographing mode may be started only when the mobile terminal is detected to move in front of the eyes.
As can be seen from the above description, in the embodiment shown in fig. 1, if the current location of the terminal is the preset geographic location, the photographing mode is started, and compared with the prior art in which the photographing mode is started only after a user goes through a plurality of operation steps, the speed of starting the photographing mode is increased and the operation experience of the user is improved.
Referring to fig. 2, fig. 2 is a flowchart of a photographing method according to a second embodiment of the present invention, where the photographing mode can be quickly started according to geographic location information of a terminal, so as to improve operation experience of a user. As shown in fig. 2, this embodiment specifically includes the following steps:
s201, acquiring the geographic position information of the current position of the terminal.
Specifically, the geographical location information of the terminal may be acquired through a global Positioning system (gps). The geographical location information may be longitude and latitude of the current location of the terminal.
S202, detecting whether the current position of the terminal is a preset geographic position or not; it should be noted that the preset geographic location is a location where the user wishes to start the photographing mode.
It should be noted that the preset geographic location may include: tourist attractions or user specified locations. Specifically, the preset geographic location may be set as: the name of the geographic location includes the geographic location of the preset keyword. The preset keywords may include: for example, when the name corresponding to the current position of the terminal is "the travel area of the national village," because the name includes the keyword "the travel area," the current position of the terminal is a preset geographic position, and the preset geographic position may also be the name of a famous tourist spot, such as sunshu. Specifically, after the GPS acquires the current longitude and latitude information of the terminal, the GPS may send the longitude and latitude of the current location to a system (e.g., Google earth) in the network, which may acquire a place name through the longitude and latitude information, through a communication module in the terminal, and obtain the name of the current geographic location from the system. For example, when the current longitude and latitude of the GPS acquisition terminal are: the east longitude is 109 degrees and 45 degrees, the north latitude is 24 degrees and 18 degrees, then the terminal sends the longitude and the latitude to a system for inquiring the place name according to the longitude and latitude information through a network interface in the mobile phone, for example, Google earth inquires that the name of the geographical position is a guilin tourist area according to the acquired longitude and latitude, and the current position of the terminal is a preset geographical position. It should be noted that the preset geographic location may also be a specific location specified by the user, for example, when the user needs to specify the meeting room as a place where the photographing mode needs to be quickly started later, the meeting room may be set as the preset geographic location, and it should be noted that the location near the location specified by the user, for example, within 10 meters of the diameter, may be considered to be located at the specified location.
And S203, if the current position of the terminal is the preset geographic position, directly starting the photographing function.
In this embodiment, the photographing mode is started by directly starting the photographing function to enable the terminal to be in a photographing state, so that a user can conveniently and quickly take a photograph.
As can be seen from the above description, in the embodiment shown in fig. 2, if the current location of the terminal is the preset geographic location, the photographing mode is started, and compared with the prior art in which the photographing mode is started only after a user goes through a plurality of operation steps, the speed of starting the photographing mode is increased and the operation experience of the user is improved.
Referring to fig. 3, fig. 3 is a flowchart of a photographing method according to a third embodiment of the present invention, where the photographing mode can be quickly started according to geographic location information of a terminal, so as to improve operation experience of a user. As shown in fig. 3, this embodiment specifically includes the following steps:
s301, acquiring the geographic position information of the current position of the terminal.
Specifically, the geographical location information of the terminal may be acquired through a global Positioning system (gps). The geographical location information may be longitude and latitude of the current location of the terminal.
S302, detecting whether the current position of the terminal is a preset geographic position or not; it should be noted that the preset geographic location is a location where the user wishes to start the photographing mode.
It should be noted that the preset geographic location may include: tourist attractions or user specified locations. Specifically, the preset geographic location may be set as: the name of the geographic location includes the geographic location of the preset keyword. The preset keywords may include: for example, when the name corresponding to the current position of the terminal is "the travel area of the national village," because the name includes the keyword "the travel area," the current position of the terminal is a preset geographic position, and the preset geographic position may also be the name of a famous tourist spot, such as sunshu. Specifically, after the GPS acquires the current longitude and latitude information of the terminal, the GPS may send the longitude and latitude of the current location to a system (e.g., Google earth) in the network, which may acquire a place name through the longitude and latitude information, through a communication module in the terminal, and obtain the name of the current geographic location from the system. For example, when the current longitude and latitude of the GPS acquisition terminal are: the east longitude is 109 degrees and 45 degrees, the north latitude is 24 degrees and 18 degrees, then the terminal sends the longitude and the latitude to a system for inquiring the place name according to the longitude and latitude information through a network interface in the mobile phone, for example, Google earth inquires that the name of the geographical position is a guilin tourist area according to the acquired longitude and latitude, and the current position of the terminal is a preset geographical position. It should be noted that the preset geographic location may also be a specific location specified by the user, for example, when the user needs to specify the meeting room as a place where the photographing mode needs to be quickly started later, the meeting room may be set as the preset geographic location, and it should be noted that the location near the location specified by the user, for example, within 10 meters of the diameter, may be considered to be located at the specified location.
And S303, if the current position of the terminal is the preset geographic position and the terminal is in the locking state, displaying the shortcut of the photographing function on a screen locking interface of the terminal.
In the embodiment, the photographing mode is started by loading the shortcut of the photographing function to the screen locking interface of the terminal, and the user can start the photographing function by directly operating the shortcut on the screen locking interface without unlocking the terminal.
As can be seen from the above description, the embodiment shown in fig. 3 can load the shortcut of the photographing function to the screen locking interface of the terminal when the terminal is locked according to the geographical location information of the terminal, and can start the photographing function by operating the shortcut, thereby improving the user experience.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention, including: a first acquisition unit 41, a first detection unit 42, and a photographing mode starting unit 43.
The first obtaining unit 41 is configured to obtain geographic position information of a current position of the terminal; the geographical location information includes the longitude and latitude of the terminal. Specifically, the first acquisition unit 41 may be a GPS.
A first detecting unit 42, configured to detect whether the current location of the terminal is included in a preset geographic location, where the preset geographic location is a location where a user wishes to start a photographing mode. A preset geographic location comprising: the name of the geographic location includes the geographic location of the preset keyword. The preset keywords include: tourist areas, scenic spots, parks, mountains, rivers or waterfalls, etc. But may also be a term for a famous tourist attraction such as plastic, etc. For example, when the name corresponding to the current location of the mobile terminal is "brick-and-mortar tourist area", the term includes the keyword "tourist area", and then the current location of the terminal is determined as: specifically, after the GPS acquires the current longitude and latitude information of the mobile terminal, the GPS sends the longitude and latitude of the current location to a system such as Google earth, which can acquire a place name from the longitude and latitude information in a network, through a communication module in the terminal, and obtains the name of the current geographic location from an external system. For example, when the current longitude and latitude of the GPS acquisition terminal are: the east longitude is 109 degrees and 45 degrees, the north latitude is 24 degrees and 18 degrees, then the terminal sends the longitude and the latitude to a system for inquiring the place name according to the longitude and latitude information through a network interface in the mobile phone, for example, Google earth inquires that the name of the geographical position is a guilin tourist area according to the acquired longitude and latitude, and the current position of the terminal is a preset geographical position. It should be noted that the preset geographic location may also be a specific location specified by the user, for example, when the user needs to specify the meeting room as a place where the photographing mode needs to be quickly started later, the meeting room may be set as the preset geographic location, and it should be noted that the location near the location specified by the user, for example, within 10 meters of the diameter, may be considered to be located at the specified location.
And a photographing mode starting unit 43, configured to start the photographing mode when the detection result of the first detecting unit is that the current location of the terminal is included in the preset geographic location.
Specifically, the photographing mode may be directly started. Or when the terminal is locked, loading the shortcut of the photographing function in the screen locking interface of the terminal, and directly operating the shortcut on the screen locking interface to start the photographing function without unlocking the terminal by a user.
As can be seen from the above description, the photographing mode can be quickly started according to the geographical location information of the terminal, so that the user experience is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention, including: a first acquisition unit 51, a first detection unit 52, a photographing mode starting unit 53, a second acquisition unit 54, and a second detection unit 55.
The first obtaining unit 51 is configured to obtain geographic position information of a current position of the terminal; the geographical location information includes the longitude and latitude of the terminal. Specifically, the first acquisition unit 51 may be a GPS.
A first detecting unit 52, configured to detect whether the current location of the terminal is included in a preset geographic location, where the preset geographic location is a location where a user wishes to start a photographing mode. A preset geographic location comprising: the name of the geographic location includes the geographic location of the preset keyword. The preset keywords include: tourist areas, scenic spots, parks, mountains, rivers or waterfalls, etc. But may also be a term for a famous tourist attraction such as plastic, etc. For example, when the name corresponding to the current location of the mobile terminal is "brick-and-mortar tourist area", the term includes the keyword "tourist area", and then the current location of the terminal is determined as: specifically, after the GPS acquires the current longitude and latitude information of the mobile terminal, the GPS sends the longitude and latitude of the current location to a system such as Google earth, which can acquire a place name from the longitude and latitude information in a network, through a communication module in the terminal, and obtains the name of the current geographic location from an external system. For example, when the current longitude and latitude of the GPS acquisition terminal are: the east longitude is 109 degrees and 45 degrees, the north latitude is 24 degrees and 18 degrees, then the terminal sends the longitude and the latitude to a system for inquiring the place name according to the longitude and latitude information through a network interface in the mobile phone, for example, Google earth inquires that the name of the geographical position is a guilin tourist area according to the acquired longitude and latitude, and the current position of the terminal is a preset geographical position. It should be noted that the preset geographic location may also be a specific location specified by the user, for example, when the user needs to specify the meeting room as a place where the photographing mode needs to be quickly started later, the meeting room may be set as the preset geographic location, and it should be noted that the location near the location specified by the user, for example, within 10 meters of the diameter, may be considered to be located at the specified location.
A second obtaining unit 54, configured to obtain a moving track of the terminal; specifically, the second acquisition unit 34 may include a gyroscope, and the gyroscope is used to acquire the movement trajectory of the terminal.
A second detecting unit 55, configured to detect whether a moving trajectory of the mobile terminal is a preset trajectory.
The photographing mode starting unit 53 is configured to start the photographing mode if the detection result of the first detecting unit 52 is that the current position of the terminal is included in the preset geographic position and the detection result of the second detecting unit 55 is that the moving track of the terminal is the preset track.
It should be noted that the terminal may further include an activation unit, configured to receive an activation instruction from a user to activate the terminal. The terminal can also comprise an unlocking unit which is used for unlocking the terminal interface activated by the activation unit. Further, the terminal may further include a photographing mode display unit, configured to highlight a shortcut of the photographing mode in the interface of the terminal when the current location of the terminal is included in the preset geographic location after the unlocking unit unlocks the interface of the terminal, operate the shortcut of the photographing mode, and start the photographing mode.
As can be seen from the above description, the photographing mode can be quickly started according to the geographical location information of the terminal, so that the user experience is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal according to a sixth embodiment of the present invention, where the terminal includes: at least one processor 61, such as a CPU; further comprising: at least one input device 63, at least one output device 64, a memory 65, and at least one communication bus 62. Wherein a communication bus 62 is used to enable the connection communication between these components. The input device 63 may include a touch pad and a device for acquiring geographical location information such as GPS, and the output device 64 may include a display screen and a camera. The memory 65 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 65 may optionally be at least one memory device located remotely from the processor 61. Wherein the memory 65 may have stored therein a predetermined geographical location and a set of program codes, the processor 61 may call the program codes stored in the memory 65 for performing the following operations: detecting whether the current position of the input device 63 is included in a preset geographical position, wherein the preset geographical position is a position where the user wishes to start a photographing mode; if the current position of the terminal is included in the preset geographic position, the camera in the output device 64 is controlled to start the photographing mode.
It should be noted that the geographic location information includes: longitude and latitude of the current location of the terminal. The preset geographical positions include: tourist attractions or user specified locations. The preset geographical positions include: the name of the geographic location includes the geographic location of the preset keyword. The preset keywords may include: tourist areas, scenic spots, parks, mountains, rivers or waterfalls. The processor 61 may obtain the name of the current location of the terminal according to the current geographical location information of the terminal, and detect whether the name of the current location of the terminal includes at least one keyword; and if so, determining the current position of the terminal as being contained in the preset geographic position.
Specifically, the preset geographic location may be set as: the name of the geographic location includes the geographic location of a preset keyword, wherein the preset keyword may include: tourist areas, scenic spots, parks, mountains, rivers or waterfalls, etc., but also can be the nouns of famous tourist attractions such as sun and the like. For example, when the name corresponding to the current location of the mobile terminal is "brick-and-mortar tourist area", the term includes the keyword "tourist area", and then the current location of the terminal is determined as: specifically, after the GPS acquires the current longitude and latitude information of the mobile terminal, the GPS sends the longitude and latitude of the current location to a system such as Google earth, which can acquire a place name from the longitude and latitude information in a network, through a communication module in the terminal, and obtains the name of the current geographic location from an external system. For example, when the current longitude and latitude of the GPS acquisition terminal are: the east longitude is 109 degrees and 45 degrees, the north latitude is 24 degrees and 18 degrees, then the terminal sends the longitude and the latitude to a system for inquiring the place name according to the longitude and latitude information through a network interface in the mobile phone, for example, Google earth inquires that the name of the geographical position is a Guilin tourist area according to the acquired longitude and latitude, and the current position of the terminal is a preset geographical position. It should be noted that the preset geographic location may also be a specific location specified by the user, for example, when the user needs to specify the meeting room as a place where the photographing mode needs to be quickly started later, the meeting room may be set as the preset geographic location, and it should be noted that the location near the location specified by the user, for example, within 10 meters of the diameter, may be considered to be located at the specified location.
Further, the input device 63 may further include a device for detecting a movement track of the mobile terminal, such as a gyroscope, and the processor 61 detects whether the movement track of the terminal is a preset track, and controls the camera in the output device 64 to start the photographing mode if the movement track is the preset track.
Before the photographing mode is started, the method may further include: the input device 63 receives an activation instruction of a user to activate the terminal; or before the photographing mode is started, the method also comprises the following steps: the input device 63 receives an activation instruction of a user to activate the terminal and an unlocking instruction of the user to unlock a screen of the terminal; further alternatively or before the photographing mode is started, the method may further include: the input device 63 receives an activation instruction of a user to activate the terminal, receives an unlocking instruction of the user to unlock a screen of the terminal, and highlights a shortcut of a photographing mode in a display interface of the terminal.
Specifically, the terminal described in the embodiment of the present invention may be used to implement part or all of the processes in the embodiment of the method for starting the photographing mode described in conjunction with fig. 1 of the present invention. According to the embodiment, the photographing mode can be started quickly according to the geographical position information of the terminal, and the user experience is improved.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment. Further, those skilled in the art should also appreciate that the embodiments described in the specification are presently preferred and that no acts or elements are necessarily required of the embodiments of the invention.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.