CN105426081B - Interface switching device and method of mobile terminal - Google Patents

Interface switching device and method of mobile terminal Download PDF

Info

Publication number
CN105426081B
CN105426081B CN201510859518.5A CN201510859518A CN105426081B CN 105426081 B CN105426081 B CN 105426081B CN 201510859518 A CN201510859518 A CN 201510859518A CN 105426081 B CN105426081 B CN 105426081B
Authority
CN
China
Prior art keywords
mobile terminal
angle
switching
interface
included angle
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
CN201510859518.5A
Other languages
Chinese (zh)
Other versions
CN105426081A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510859518.5A priority Critical patent/CN105426081B/en
Publication of CN105426081A publication Critical patent/CN105426081A/en
Application granted granted Critical
Publication of CN105426081B publication Critical patent/CN105426081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an interface switching device of a mobile terminal, which comprises: the mobile terminal comprises a detection module, a display module and a display module, wherein the detection module is used for detecting the information of an included angle between the mobile terminal and a horizontal plane when a display interface of the mobile terminal displays a shooting interface; the judging module is used for judging whether the included angle information meets a preset interface switching condition; and the switching module is used for switching the display interface of the mobile terminal from a shooting interface to an album interface when the included angle information meets the preset interface switching condition. The invention also discloses an interface switching method of the mobile terminal. By adopting the invention, when the display page of the mobile terminal is switched from the photographing page to the album page, the manual operation of the user is reduced, and the user experience is improved.

Description

Interface switching device and method of mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an interface switching device and method of a mobile terminal.
Background
With the popularization and use of intelligent mobile terminals (such as mobile phones), more and more users like to take pictures through the mobile terminals, generally, the users like to take pictures and check the effect of the pictures taken just now at the same time, for example, in a scene, a user A takes a picture for a user B through the mobile terminal, after the shooting is finished, the user B wants to check the effect of the pictures taken just now, and then the user A or the user B needs to manually operate the mobile terminal, for example, manually clicking an album application on the mobile terminal to enter the album application to check the pictures; if in another scenario, the user a takes a scene through the mobile terminal, and wants to view the photo just taken after the shooting is completed, the user a needs to manually operate the mobile terminal, such as manually clicking an album application on the mobile terminal to enter the album application to view the photo. By adopting the existing mode, when a user uses the mobile terminal to photograph and check the photo album, the user needs to manually operate to open the photo album application on the mobile terminal, the operation process is complex, and the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide an interface switching device and method of a mobile terminal, and aims to solve the technical problems that in the prior art, when a user uses the mobile terminal to take a picture and check an album, the user needs to manually operate to open the album application on the mobile terminal, the operation process is complex, and the user experience is poor.
In order to achieve the above object, the present invention provides an interface switching apparatus of a mobile terminal, the apparatus comprising:
the mobile terminal comprises a detection module, a display module and a display module, wherein the detection module is used for detecting the information of an included angle between the mobile terminal and a horizontal plane when a display interface of the mobile terminal displays a shooting interface;
the judging module is used for judging whether the included angle information meets a preset interface switching condition;
and the switching module is used for switching the display interface of the mobile terminal from a shooting interface to an album interface when the included angle information meets the preset interface switching condition.
Optionally, the included angle information includes a size of the included angle, and the determining module includes:
the first judgment unit is used for judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
and the first determining unit is used for determining that the angle information meets a preset interface switching condition when the included angle is equal to a preset switching angle threshold value.
Optionally, the angle information includes an included angle size and a duration corresponding to the included angle size, and the determining module includes:
the second judging unit is used for judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
the third judging unit is used for judging whether the duration time corresponding to the included angle is greater than or equal to a preset switching time threshold value or not when the included angle is equal to the preset switching angle threshold value;
and the second determining unit is used for determining that the angle information meets a preset interface switching condition when the duration time corresponding to the size of the included angle is greater than or equal to a preset switching time threshold value.
Optionally, the apparatus further includes a setting module, configured to set the switching angle threshold.
Optionally, the setting module includes:
the mobile terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least one first angle with the longest retention time between the mobile terminal and a horizontal plane in each sub-period in a preset time period when a display interface of the mobile terminal displays an album interface;
a calculation unit for calculating a persistence probability of the at least one first angle;
and the setting unit is used for selecting one first angle from the at least one first angle according to the continuous probability of the at least one first angle and setting the selected first angle as a switching angle threshold value.
Optionally, the apparatus further comprises:
and the control module is used for controlling the mobile terminal to quit the photographing application while or after the switching module switches the display interface of the mobile terminal from the photographing interface to the album interface.
In addition, in order to achieve the above object, the present invention further provides an interface switching method for a mobile terminal, including:
when a display interface of a mobile terminal displays a shooting interface, detecting included angle information between the mobile terminal and a horizontal plane;
judging whether the included angle information meets a preset interface switching condition or not;
and if the included angle information meets a preset interface switching condition, switching the display interface of the mobile terminal from a shooting interface to an album interface.
Optionally, the included angle information includes a size of an included angle, and the step of determining whether the included angle information satisfies a preset interface switching condition includes:
judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
and if the included angle is equal to a preset switching angle threshold value, determining that the angle information meets a preset interface switching condition.
Optionally, the angle information includes an included angle size and a duration corresponding to the included angle size, and the step of determining whether the included angle information satisfies a preset interface switching condition includes:
judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
if the size of the included angle is equal to a preset switching angle threshold value, judging whether the duration time corresponding to the size of the included angle is larger than or equal to a preset switching time threshold value or not;
and if the duration time corresponding to the size of the included angle is greater than or equal to a preset switching time threshold value, determining that the angle information meets a preset interface switching condition.
Optionally, the method further includes: setting the switching angle threshold value; the step of setting the switching angle threshold includes:
when a display interface of the mobile terminal displays an album interface, in each sub-period within a preset time period, acquiring at least one first angle with the longest retention time between the mobile terminal and a horizontal plane in each sub-period;
calculating a persistence probability of the at least one first angle;
and selecting one first angle from the at least one first angle according to the persistence probability of the at least one first angle, and setting the selected first angle as a switching angle threshold value.
Optionally, while or after the display interface of the mobile terminal is switched from the shooting interface to the album interface, the method further includes:
and controlling the mobile terminal to quit the photographing application.
The interface switching device and method of the mobile terminal of the invention, the apparatus includes: the mobile terminal comprises a detection module, a display module and a display module, wherein the detection module is used for detecting the information of an included angle between the mobile terminal and a horizontal plane when a display interface of the mobile terminal displays a shooting interface; the judging module is used for judging whether the included angle information meets a preset interface switching condition; the switching module is used for switching the display interface of the mobile terminal from a shooting interface to an album interface when the included angle information meets a preset interface switching condition; by adopting the method and the device, when the display interface of the mobile terminal displays the shooting interface, whether the display interface of the mobile terminal is switched to the album interface is determined according to the information of the included angle between the mobile terminal and the horizontal plane, the album interface is opened without manual operation of a user, the operation is simpler, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a block diagram of the electrical structure of the camera of FIG. 1;
FIG. 3 is a schematic structural diagram of an interface switching apparatus of a mobile terminal according to a first embodiment of the present invention;
FIG. 4a is a schematic diagram of a user holding a mobile terminal in a portrait orientation;
FIG. 4b is a schematic diagram of a user holding a mobile terminal in a tilted position;
FIG. 5 is a schematic structural diagram of a determining module in the interface switching apparatus of the mobile terminal according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a determining module in the interface switching apparatus of the mobile terminal according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an interface switching apparatus of a mobile terminal according to a second embodiment of the present invention;
FIG. 8 is a detailed structural diagram of the setup module of FIG. 7;
FIG. 9 is a schematic structural diagram of an interface switching apparatus of a mobile terminal according to a third embodiment of the present invention;
fig. 10 is a flowchart illustrating an interface switching method of a mobile terminal according to a first embodiment of the present invention;
fig. 11 is a flowchart illustrating an interface switching method of a mobile terminal according to a second embodiment of the present invention;
fig. 12 is a flowchart illustrating an interface switching method of a mobile terminal according to a third embodiment of the present invention;
fig. 13 is a flowchart illustrating an interface switching method of a mobile terminal according to a fourth embodiment of the present invention;
fig. 14 is a detailed flowchart illustrating a step of setting the switching angle threshold in fig. 13;
fig. 15 is a flowchart illustrating an interface switching method of a mobile terminal according to a fifth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, a timer 200, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100, for example, an open or closed state of the mobile terminal 100, a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with respect to the mobile terminal 100, an orientation of the mobile terminal 100, a direction of acceleration or accelerated movement of the mobile terminal 100, an angle of the mobile terminal with a horizontal plane, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. In an embodiment, the sensing unit may comprise an angle sensor, which is a gyroscope or a gravity sensor.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
The output unit 150 may include a display unit 151 and the like. The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
Referring to fig. 2, fig. 2 is an electrical block diagram of the camera 121 in fig. 1.
The photographing lens 1211 is composed of a plurality of optical lenses for forming an object image, and is a single focus lens or a zoom lens. The photographing lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focal position of the photographing lens 1211 in accordance with a control signal from the lens driving control circuit 1222. The lens drive control circuit 1222 performs drive control of the lens driver 1221 in accordance with a control command from the microcomputer 1217.
An image pickup device 1212 is disposed on the optical axis of the photographing lens 1211 near the position of the object image formed by the photographing lens 1211. The image pickup device 1212 is used to pick up an image of an object and acquire picked-up image data. Photodiodes constituting each pixel are two-dimensionally arranged in a matrix on the image pickup device 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, and the photoelectric conversion current is charged by a capacitor connected to each photodiode. A bayer RGB color filter is disposed on the front surface of each pixel.
The image pickup device 1212 is connected to an image pickup circuit 1213, and the image pickup circuit 1213 performs charge accumulation control and image signal reading control in the image pickup device 1212, performs waveform shaping after reducing reset noise for the read image signal (analog image signal), and further performs gain improvement or the like so as to obtain an appropriate signal level. The imaging circuit 1213 is connected to an a/D converter 1214, and the a/D converter 1214 performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
The bus 1227 is a transfer path for transferring various data read out or generated inside the camera. The a/D converter 1214 described above is connected to the bus 1227, and further connected to an image processor 1215, a JPEG processor 1216, a microcomputer 1217, an SDRAM (Synchronous Dynamic random access memory) 1218, a memory interface (hereinafter referred to as memory I/F)1219, and an LCD (Liquid Crystal Display) driver 1220.
The image processor 1215 performs various image processing such as OB subtraction processing, white balance adjustment, color matrix operation, gamma conversion, color difference signal processing, noise removal processing, synchronization processing, and edge processing on image data output from the image pickup device 1212. The JPEG processor 1216 compresses the image data read out from the SDRAM1218 in a JPEG compression method when recording the image data in the recording medium 1225. The JPEG processor 1216 decompresses JPEG image data for image reproduction display. When decompression is performed, a file recorded in the recording medium 1225 is read out, decompression processing is performed in the JPEG processor 1216, and the decompressed image data is temporarily stored in the SDRAM1218 and displayed on the LCD 1226. In the present embodiment, the JPEG system is used as the image compression/decompression system, but the compression/decompression system is not limited to this, and other compression/decompression systems such as MPEG, TIFF, and h.264 may be used.
The microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera. The microcomputer 1217 is connected to an operation unit 1223 and a flash memory 1224.
The operation unit 1223 includes, but is not limited to, physical keys or virtual keys, which may be various input buttons such as a power button, a photographing key, an editing key, a moving image button, a reproduction button, a menu button, a cross key, an OK button, a delete button, and an enlargement button, and operation controls such as various input keys, and which detect operation states of these operation controls.
The detection result is output to the microcomputer 1217. A touch panel is provided on the front surface of the LCD1226 as a display, and a touch position of the user is detected and output to the microcomputer 1217. The microcomputer 1217 executes various processing sequences corresponding to the user's operation according to the detection result of the operation position from the operation unit 1223.
The flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217. The microcomputer 1217 controls the entire camera according to the program. The flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads the adjustment values and controls the camera in accordance with the adjustment values.
The SDRAM1218 is an electrically rewritable volatile memory for temporarily storing image data and the like. The SDRAM1218 temporarily stores the image data output from the a/D converter 1214 and the image data processed by the image processor 1215, JPEG processor 1216, and the like.
The memory interface 1219 is connected to the recording medium 1225, and performs control for writing and reading image data and data such as a file header added to the image data to and from the recording medium 1225. The recording medium 1225 is, for example, a recording medium such as a memory card that can be attached to and detached from the camera body, but is not limited to this, and may be a hard disk or the like that is built in the camera body.
The LCD driver 1210 is connected to the LCD1226, and stores the image data processed by the image processor 1215 in the SDRAM1218, and when display is required, reads the image data stored in the SDRAM1218 and displays the image data on the LCD1226, or the image data compressed by the JPEG processor 1216 is stored in the SDRAM1218, and when display is required, the JPEG processor 1216 reads the compressed image data in the SDRAM1218, decompresses the data, and displays the decompressed image data through the LCD 1226.
The LCD1226 is disposed on the back surface of the camera body and displays an image. LCD1226LCD), however, various display panels (LCD1226) such as organic EL may be used, but not limited thereto, and various display panels such as organic EL may be used.
Based on the above-mentioned hardware structure of the mobile terminal and the electrical schematic diagram of the camera, various embodiments of the device of the present invention are provided.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a first embodiment of an interface switching apparatus of a mobile terminal according to the present invention, the apparatus including:
the mobile terminal comprises a detection module 10, a display module and a display module, wherein the detection module is used for detecting the information of an included angle between a mobile terminal and a horizontal plane when a display interface of the mobile terminal displays a shooting interface;
the judging module 20 is configured to judge whether the included angle information meets a preset interface switching condition;
and the switching module 30 is configured to switch the display interface of the mobile terminal from the shooting interface to the album interface when the included angle information meets a preset interface switching condition.
The mobile terminal 100 is an intelligent terminal with a photographing function, such as a smart phone, a tablet computer, a digital camera, and the like.
Generally, when a user uses the mobile terminal to take a picture, the user holds the mobile terminal horizontally or vertically, that is, the plane of the mobile terminal is vertical to the horizontal plane, when the user holds the mobile terminal vertically, the top side of the mobile terminal is upward and the bottom side of the mobile terminal is downward, as shown in fig. 4a, when the user holds the mobile terminal horizontally, the left side of the mobile terminal is downward and the right side of the mobile terminal is upward, when the user wants to view an album, the mobile terminal is generally inclined so that the plane of the mobile terminal is no longer vertical to the horizontal plane, the included angle α degrees between the plane of the mobile terminal and the horizontal plane is less than 90 degrees, as shown in fig. 4 b.
The detection module 10 detects information of an included angle between the mobile terminal and a horizontal plane in real time when a display interface of the mobile terminal displays a shooting interface. The included angle information includes the size of the included angle, the duration corresponding to the size of the included angle, and the like. Specifically, the size of an included angle between the mobile terminal and a horizontal plane can be measured through an angle sensor built in the mobile terminal, and the angle sensor can be a gyroscope or a gravity sensor; and calculating the duration corresponding to the size of the included angle by a built-in timer of the mobile terminal.
The photo album opening mode of the mobile terminal can be switched to the intelligent mode in advance, and then the detection module 10 detects the information of the included angle between the mobile terminal and the horizontal plane. The photo album opening mode of the mobile terminal comprises a common mode and an intelligent mode, wherein in the common mode, a user manually opens photo album applications in the existing mode, and in the intelligent mode, whether the photo album applications are opened or not is determined according to detected information of an included angle between the mobile terminal and a horizontal plane when a shooting interface is displayed on a display interface of the mobile terminal. In an embodiment, a mode switching button may be set on a shooting interface of the mobile terminal, and a user clicks the mode switching button to switch an album open mode of the mobile terminal between an intelligent mode and a normal mode, where if the album open mode corresponding to the current mode switching button is the normal mode, after clicking the mode switching button, the album open mode corresponding to the mode switching button is the intelligent mode, and after clicking the mode switching button again, the album open mode corresponding to the mode switching button is the normal mode, and so on.
The determining module 20 determines whether the included angle information meets a preset interface switching condition, if the included angle information meets the preset interface switching condition, it indicates that the display interface of the mobile terminal can be switched to the album interface, and if the included angle information does not meet the preset interface condition, it indicates that the user wishes to continue to display the shooting interface on the display interface of the mobile terminal and continue to shoot.
Optionally, the preset interface switching condition may be one or more switching angle thresholds, such as one switching angle threshold of 30 ° in an embodiment, and multiple switching angle thresholds of 30 ° in another embodiment, such as one switching angle threshold for each user when the mobile terminal is used by multiple users, and user a is accustomed to hold the mobile terminal downward when viewing an album, so that the mobile terminal is at an angle of 30 ° with the horizontal plane; when viewing the photo album, the user B is used to hold the mobile terminal in a downward inclined manner, so that the included angle between the mobile terminal and the horizontal plane is 45 °. When the preset interface switching condition includes a plurality of switching angle thresholds, the determining module 20 determines that the included angle information satisfies the preset interface switching condition as long as the included angle between the mobile terminal detected by the detecting module 10 and the horizontal plane is equal to any one of the plurality of switching angle thresholds.
Optionally, the preset interface switching condition may include a switching angle threshold and a switching time threshold, where the switching angle threshold may be one or more. The switching angle threshold and the switching time threshold can be set according to needs, when the display interface of the mobile terminal is required to be quickly switched from the shooting interface to the album interface, the switching time threshold is set to be smaller, and when the display interface of the mobile terminal is required to be switched from the shooting interface to the album interface by reducing misoperation, the switching time is set to be larger. In one embodiment, the switching time threshold may be set to 2 seconds.
Optionally, the preset interface switching condition may include a switching angle range, which may be set as required, for example, the switching angle range is 30-60 °, and when the user holds the mobile terminal to view the album, the user may typically make an angle between the mobile terminal and the horizontal plane of 30-60 °. The judging module 20 judges whether the size of the included angle in the information of the included angle between the mobile terminal and the horizontal plane detected by the detecting module 10 is in the switching angle range, and if the size of the included angle in the information of the included angle between the mobile terminal and the horizontal plane detected by the detecting module is in the switching angle range, the included angle information is considered to meet the preset interface switching condition; if the detected included angle between the mobile terminal and the horizontal plane is 45 °, the determining module 20 considers that the included angle information satisfies the preset interface switching condition.
The switching module 30 switches the display interface of the mobile terminal to the album interface, specifically, when the display interface is switched to the album interface, a recently shot photo can be directly displayed, and the user continues to browse other photos by turning pages; or directly displaying the thumbnails of all photos of the album application, displaying the recently shot photos in front of the application, and opening the corresponding photo by clicking the thumbnail of a certain photo by a user.
By adopting the embodiment, the interface switching device of the mobile terminal comprises a detection module 10, which is used for detecting the information of the included angle between the mobile terminal and the horizontal plane when the display interface of the mobile terminal displays the shooting interface; the judging module 20 is configured to judge whether the included angle information meets a preset interface switching condition; the switching module 30 is configured to switch the display interface of the mobile terminal from a shooting interface to an album interface when the included angle information meets a preset interface switching condition; when the display interface of the mobile terminal displays the shooting interface, whether the display interface of the mobile terminal is switched to the album interface is determined according to the included angle information between the mobile terminal and the horizontal plane, the album interface is opened without manual operation of a user, the operation is simpler, and the user experience is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a determining module in the interface switching apparatus of the mobile terminal according to an embodiment of the present invention, where the included angle information includes a size of an included angle, and the determining module 20 includes:
a first judging unit 21, configured to judge whether the included angle is equal to a preset switching angle threshold;
the first determining unit 22 is configured to determine that the angle information meets a preset interface switching condition when the size of the included angle is equal to a preset switching angle threshold.
The preset switching angle threshold may be set as needed, for example, the switching angle threshold may be one or more. The switching angle threshold value may be stored in a local memory of the mobile terminal or in a cloud server.
When there is only one preset switching angle threshold, the first determining unit 21 determines whether the included angle is equal to the preset switching angle threshold, and if the included angle is equal to the preset switching angle threshold, the angle information is determined to satisfy the preset interface switching condition.
When there are a plurality of preset switching angle thresholds, the first determining unit 21 sequentially compares the size of the included angle with the plurality of switching angle thresholds, and determines whether the size of the included angle is equal to any one of the plurality of switching angle thresholds, and if the size of the included angle is equal to one of the plurality of switching angle thresholds, it is determined that the included angle information satisfies the preset interface switching condition.
With the above embodiment, the judging module 20 can quickly determine whether the user wants to switch the display interface of the mobile terminal from the shooting interface to the album interface by judging the size of the included angle between the mobile terminal and the horizontal plane detected by the detecting module 10, so that the operation is simpler.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another embodiment of a determining module in the interface switching apparatus of the mobile terminal of the present invention, where the included angle information includes a size of an included angle and a duration corresponding to the size of the included angle, and the determining module 20 includes:
a second judging unit 23, configured to judge whether the included angle is equal to a preset switching angle threshold;
a third determining unit 24, configured to determine whether a duration corresponding to the included angle is greater than or equal to a preset switching time threshold when the included angle is equal to the preset switching angle threshold;
and a second determining unit 25, configured to determine that the angle information meets a preset interface switching condition when the duration corresponding to the size of the included angle is greater than or equal to a preset switching time threshold.
The preset switching angle threshold may be set as needed, for example, the switching angle threshold may be one or more. The switching angle threshold value may be stored in a local memory of the mobile terminal or in a cloud server.
When there is only one preset switching angle threshold, the second judging unit 23 judges whether the included angle is equal to the preset switching angle threshold, and if the included angle is equal to the preset switching angle threshold, the angle information is considered to preliminarily satisfy the preset interface switching condition, and a next judgment is required to determine whether the angle information finally satisfies the preset interface switching condition.
When there are a plurality of preset switching angle thresholds, the second determining unit 23 sequentially compares the size of the included angle with the plurality of switching angle thresholds, and determines whether the size of the included angle is equal to any one of the plurality of switching angle thresholds, and if the size of the included angle is equal to one of the plurality of switching angle thresholds, it is determined that the included angle information primarily satisfies the preset interface switching condition, and a next determination is required to determine whether the angle information finally satisfies the preset interface switching condition.
The preset switching time threshold can be set according to needs, for example, the switching time threshold is 2 seconds. The switching angle threshold value may be stored in a local memory of the mobile terminal or in a cloud server.
The third determining unit 24 determines whether the duration corresponding to the included angle is greater than or equal to a preset switching time threshold value when the determination result of the second determining unit 23 is that the included angle is equal to the preset switching angle threshold value, and if the duration corresponding to the included angle is greater than or equal to the preset switching time threshold value, the angle information is considered to finally satisfy the preset interface switching condition.
With the above embodiment, the determining module 20 can determine whether the user wants to switch the display interface of the mobile terminal from the shooting interface to the album interface quickly and accurately by determining the size of the included angle between the mobile terminal and the horizontal plane detected by the detecting module 10 and the corresponding duration of the size of the included angle, so as to reduce the misoperation of the user and make the operation simpler.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an interface switching apparatus of a mobile terminal according to a second embodiment of the present invention.
Based on the first embodiment of the interface switching apparatus of the mobile terminal, the apparatus further includes a setting module 40, configured to set the switching angle threshold.
The switching angle threshold may be set manually or automatically. In the manual mode, the mobile terminal provides a setting interface, and a user manually inputs the switching angle threshold value on the setting interface, specifically, a virtual soft keyboard can be displayed on the setting interface, and the user inputs the switching angle threshold value through the virtual soft keyboard, and can also directly input the switching angle threshold value in a handwriting input area of the setting interface. In an automatic mode, a user displays an album interface on a display interface of the mobile terminal, holds the mobile terminal in an inclined mode, and when the duration of displaying the album interface on the display interface of the mobile terminal reaches a specific duration, obtains an angle between the mobile terminal and a horizontal plane through an angle sensor arranged in the mobile terminal, and uses the obtained angle as a switching angle threshold value.
In one embodiment, as shown in fig. 8, the setup module 40 includes:
the obtaining unit 41 is configured to, when the display interface of the mobile terminal displays the album interface, obtain, in each sub-period within a preset time period, at least one first angle with the longest retention time between the mobile terminal and a horizontal plane in each sub-period;
a calculation unit 42 for calculating a persistence probability of the at least one first angle;
a setting unit 43, configured to select one first angle from the at least one first angle according to the persistence probability of the at least one first angle, and set the selected first angle as the switching angle threshold.
When the display interface of the mobile terminal displays an album interface (the mobile terminal may enter the album interface by a manual operation of a user or automatically enter the album interface by the above-mentioned scheme of the present invention), the obtaining unit 41 obtains the condition of the included angle between the mobile terminal and the horizontal plane in each sub-period within a preset time period, and selects an angle with the longest retention time from each sub-period as a first angle, where the first angles corresponding to the sub-periods may be the same or different. The number of the preset time period and the sub-period can be set according to needs. As in an embodiment, the preset time period is 5 minutes, the number of sub-periods is 5, the duration of each sub-period is 1 minute, the obtaining unit 41 obtains the included angle between the mobile terminal and the horizontal plane in each of the 5 1-minute periods, and selects an angle with the longest retention time from each sub-period, for example, in the first sub-period, the angle with the longest retention time is 30 °, in the second sub-period, the angle with the longest retention time is 45 °, in the third sub-period, the angle with the longest retention time is 40 °, in the fourth sub-period, the angle with the longest retention time is 30 °, and in the fifth sub-period, the angle with the longest retention time is 30 °, that is, the first angles are 30 °, 40 ° and 45 °.
The calculating unit 42 calculates the persistence probabilities of the respective first angles, specifically, P ═ N/M may be calculated by the following formula, where N denotes the number of occurrences of the first angle in the preset time period, and M denotes the number of sub-periods in the preset time period, as in the above-described embodiment, M is 5, the persistence probability of the first angle of 30 ° is P ═ 3/5, the persistence probability of the first angle of 40 ° is P ═ 1/5, and the persistence probability of the first angle of 45 ° is P ═ 1/5.
The setting unit 43 may select the first angle having the largest persistence probability as the switching angle threshold value from the at least one first angle, such as the first angle of 30 ° having the largest persistence probability in the above-described embodiment, and set 30 ° as the switching angle threshold value.
In an embodiment, the setting unit 43 selects a first angle with the largest persistence probability from the at least one first angle, and determines whether the persistence probability of the first angle with the largest persistence probability is greater than or equal to a default probability threshold, if the persistence probability of the first angle with the largest persistence probability is greater than or equal to the default probability threshold, the first angle with the largest persistence probability is set as a switching angle threshold, and if the persistence probability of the first angle with the largest persistence probability is smaller than the default probability threshold, the first angle with the largest persistence probability is discarded, and the switching angle threshold needs to be obtained again through the obtaining unit 41, the calculating unit 42, and the setting unit 43.
The switching angle threshold is set by adopting the embodiment, so that the switching angle threshold is set to be more in line with the use habit of the user, and when whether the display interface of the mobile terminal is switched from the shooting interface to the album interface is determined according to the relation between the size of the included angle between the mobile terminal and the horizontal plane, which is detected by the detection module 10, and the switching angle threshold, whether the user wants to switch the display interface of the mobile terminal from the shooting interface to the album interface can be accurately determined.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an interface switching apparatus of a mobile terminal according to a third embodiment of the present invention.
In a first embodiment of the interface switching apparatus based on the mobile terminal, the apparatus further includes:
and the control module 50 is configured to control the mobile terminal to exit the photographing application while or after the switching module 30 switches the display interface of the mobile terminal from the photographing interface to the album interface.
The control module 50 controls the mobile terminal to exit the photo taking application, that is, the user is currently viewing the photo album and does not need to take photos.
By adopting the embodiment, when the photographing application is not used, the mobile terminal is controlled to quit the photographing application, so that the system resource occupied by the photographing application on the mobile terminal can be reduced, and the operation efficiency of the mobile terminal is improved.
The invention further provides an interface switching method of the mobile terminal.
Referring to fig. 10, fig. 10 is a schematic flowchart of a first embodiment of an interface switching method of a mobile terminal according to the present invention, where the method includes:
and S10, when the display interface of the mobile terminal displays the shooting interface, detecting the information of the included angle between the mobile terminal and the horizontal plane.
The mobile terminal 100 is an intelligent terminal with a photographing function, such as a smart phone, a tablet computer, a digital camera, and the like.
Generally, when a user uses the mobile terminal to take a picture, the user holds the mobile terminal horizontally or vertically, that is, the plane of the mobile terminal is vertical to the horizontal plane, when the user holds the mobile terminal vertically, the top side of the mobile terminal is upward and the bottom side of the mobile terminal is downward, as shown in fig. 4a, when the user holds the mobile terminal horizontally, the left side of the mobile terminal is downward and the right side of the mobile terminal is upward, when the user wants to view an album, the mobile terminal is generally inclined so that the plane of the mobile terminal is no longer vertical to the horizontal plane, the included angle α degrees between the plane of the mobile terminal and the horizontal plane is less than 90 degrees, as shown in fig. 4 b.
In the step, the information of the included angle between the mobile terminal and the horizontal plane is detected in real time. The included angle information includes the size of the included angle, the duration corresponding to the size of the included angle, and the like. Specifically, the size of an included angle between the mobile terminal and a horizontal plane can be measured through an angle sensor built in the mobile terminal, and the angle sensor can be a gyroscope or a gravity sensor; and calculating the duration corresponding to the size of the included angle by a built-in timer of the mobile terminal.
In this step, the album open mode of the mobile terminal may be switched to the intelligent mode in advance, and then the information of the included angle between the mobile terminal and the horizontal plane is detected. The photo album opening mode of the mobile terminal comprises a common mode and an intelligent mode, wherein in the common mode, a user manually opens photo album applications in the existing mode, and in the intelligent mode, whether the photo album applications are opened or not is determined according to detected information of an included angle between the mobile terminal and a horizontal plane when a shooting interface is displayed on a display interface of the mobile terminal. In an embodiment, a mode switching button may be set on a shooting interface of the mobile terminal, and a user clicks the mode switching button to switch an album open mode of the mobile terminal between an intelligent mode and a normal mode, where if the album open mode corresponding to the current mode switching button is the normal mode, after clicking the mode switching button, the album open mode corresponding to the mode switching button is the intelligent mode, and after clicking the mode switching button again, the album open mode corresponding to the mode switching button is the normal mode, and so on.
And S20, judging whether the included angle information meets a preset interface switching condition, and if the included angle information meets the preset interface switching condition, executing a step S30.
In this step, it is determined whether the included angle information satisfies a preset interface switching condition, if the included angle information satisfies the preset interface switching condition, it indicates that the display interface of the mobile terminal can be switched to the album interface, and if the included angle information does not satisfy the preset interface condition, it indicates that the user wishes to continue to display the shooting interface on the display interface of the mobile terminal and continue to shoot.
Optionally, the preset interface switching condition may be one or more switching angle thresholds, such as one switching angle threshold of 30 ° in an embodiment, and multiple switching angle thresholds of 30 ° in another embodiment, such as one switching angle threshold for each user when the mobile terminal is used by multiple users, and user a is accustomed to hold the mobile terminal downward when viewing an album, so that the mobile terminal is at an angle of 30 ° with the horizontal plane; when viewing the photo album, the user B is used to hold the mobile terminal in a downward inclined manner, so that the included angle between the mobile terminal and the horizontal plane is 45 °. When the preset interface switching condition includes a plurality of switching angle thresholds, as long as the size of the included angle in the information of the included angle between the mobile terminal and the horizontal plane detected in step S10 is equal to any one of the plurality of switching angle thresholds, the included angle information is considered to satisfy the preset interface switching condition.
Optionally, the preset interface switching condition may include a switching angle threshold and a switching time threshold, where the switching angle threshold may be one or more. The switching angle threshold and the switching time threshold can be set according to needs, when the display interface of the mobile terminal is required to be quickly switched from the shooting interface to the album interface, the switching time threshold is set to be smaller, and when the display interface of the mobile terminal is required to be switched from the shooting interface to the album interface by reducing misoperation, the switching time is set to be larger. In one embodiment, the switching time threshold may be set to 2 seconds.
Optionally, the preset interface switching condition may include a switching angle range, which may be set as required, for example, the switching angle range is 30-60 °, and when the user holds the mobile terminal to view the album, the user may typically make an angle between the mobile terminal and the horizontal plane of 30-60 °. In this step, it is determined whether the size of the included angle in the information of the included angle between the mobile terminal and the horizontal plane detected in step S10 is within the switching angle range, and if the size of the included angle in the information of the included angle between the mobile terminal and the horizontal plane detected in step S10 is within the switching angle range, the included angle information is considered to satisfy the preset interface switching condition; if the detected included angle between the mobile terminal and the horizontal plane is 45 °, the included angle information is considered to meet the preset interface switching condition.
And S30, switching the display interface of the mobile terminal from the shooting interface to the photo album interface.
In the step, a display interface of the mobile terminal is switched to an album interface, specifically, when the display interface is switched to the album interface, a recently shot photo can be directly displayed, and a user continues to browse other photos through page turning; or directly displaying the thumbnails of all photos of the album application, displaying the recently shot photos in front of the application, and opening the corresponding photo by clicking the thumbnail of a certain photo by a user.
By adopting the embodiment, when the display interface of the mobile terminal displays the shooting interface, the included angle information between the mobile terminal and the horizontal plane is detected; judging whether the included angle information meets a preset interface switching condition or not; if the included angle information meets a preset interface switching condition, switching a display interface of the mobile terminal from a shooting interface to an album interface; when the display interface of the mobile terminal displays the shooting interface, whether the display interface of the mobile terminal is switched to the album interface is determined according to the included angle information between the mobile terminal and the horizontal plane, the album interface is opened without manual operation of a user, the operation is simpler, and the user experience is improved.
Referring to fig. 11, fig. 11 is a flowchart illustrating an interface switching method of a mobile terminal according to a second embodiment of the present invention, which is described in detail below.
In the first embodiment of the interface switching method based on the mobile terminal, the included angle information includes a size of an included angle, and the step of determining whether the included angle information satisfies a preset interface switching condition includes:
s21, whether the included angle is equal to a preset switching angle threshold value or not is judged, and if the included angle is equal to the preset switching angle threshold value, the step S22 is executed.
The preset switching angle threshold may be set as needed, for example, the switching angle threshold may be one or more. The switching angle threshold value may be stored in a local memory of the mobile terminal or in a cloud server.
When there is only one preset switching angle threshold, in this step, it is determined whether the included angle is equal to the preset switching angle threshold, and if the included angle is equal to the preset switching angle threshold, the angle information is considered to satisfy the preset interface switching condition.
When there are multiple preset switching angle thresholds, in this step, the size of the included angle is sequentially compared with the multiple switching angle thresholds, and whether the size of the included angle is equal to any one of the multiple switching angle thresholds is determined.
And S22, determining that the angle information meets the preset interface switching condition.
By adopting the embodiment, whether the user wants to switch the display interface of the mobile terminal from the shooting interface to the album interface can be quickly determined by judging the size of the included angle between the mobile terminal and the horizontal plane, which is detected in the step S10, so that the operation is simpler.
Referring to fig. 12, fig. 12 is a flowchart illustrating an interface switching method of a mobile terminal according to a third embodiment of the present invention, which is described in detail below.
Based on the first embodiment of the interface switching method of the mobile terminal, the included angle information includes a size of the included angle and a duration corresponding to the size of the included angle, and the step of determining whether the included angle information satisfies a preset interface switching condition includes:
s23, whether the included angle is equal to a preset switching angle threshold value or not is judged, and if the included angle is equal to the preset switching angle threshold value, the step S24 is executed.
The preset switching angle threshold may be set as needed, for example, the switching angle threshold may be one or more. The switching angle threshold value may be stored in a local memory of the mobile terminal or in a cloud server.
When only one preset switching angle threshold value is available, in the step, whether the included angle is equal to the preset switching angle threshold value or not is judged, if the included angle is equal to the preset switching angle threshold value, the angle information is considered to preliminarily meet the preset interface switching condition, and the next judgment is needed to determine whether the angle information finally meets the preset interface switching condition or not.
When there are a plurality of preset switching angle thresholds, in this step, the size of the included angle is sequentially compared with the plurality of switching angle thresholds, and whether the size of the included angle is equal to any one of the plurality of switching angle thresholds is determined.
S24, determining whether the duration corresponding to the included angle is greater than or equal to a preset switching time threshold, and if the duration corresponding to the included angle is greater than or equal to the preset switching time threshold, performing step S25.
The preset switching time threshold can be set according to needs, for example, the switching time threshold is 2 seconds. The switching angle threshold value may be stored in a local memory of the mobile terminal or in a cloud server.
In this step, it is determined whether the duration time corresponding to the size of the included angle is greater than or equal to a preset switching time threshold, and if the duration time corresponding to the size of the included angle is greater than or equal to the preset switching time threshold, it is determined that the angle information finally satisfies a preset interface switching condition.
And S25, determining that the angle information meets the preset interface switching condition.
By adopting the embodiment, whether the user wants to switch the display interface of the mobile terminal from the shooting interface to the album interface can be quickly and accurately determined by judging the size of the included angle between the mobile terminal and the horizontal plane detected in the step S10 and the corresponding duration of the size of the included angle, so that the misoperation of the user is reduced, and the operation is simpler.
Referring to fig. 13, fig. 13 is a flowchart illustrating a fourth embodiment of an interface switching method of a mobile terminal according to the present invention.
Based on the flowchart of the second embodiment or the third embodiment of the interface switching method of the mobile terminal, before the step of determining whether the included angle information meets the preset interface switching condition, the method further includes:
and S40, setting the switching angle threshold.
The switching angle threshold may be set manually or automatically. In the manual mode, the mobile terminal provides a setting interface, and a user manually inputs the switching angle threshold value on the setting interface, specifically, a virtual soft keyboard can be displayed on the setting interface, and the user inputs the switching angle threshold value through the virtual soft keyboard, and can also directly input the switching angle threshold value in a handwriting input area of the setting interface. In an automatic mode, a user displays an album interface on a display interface of the mobile terminal, holds the mobile terminal in an inclined mode, and when the duration of displaying the album interface on the display interface of the mobile terminal reaches a specific duration, obtains an angle between the mobile terminal and a horizontal plane through an angle sensor arranged in the mobile terminal, and uses the obtained angle as a switching angle threshold value.
In an embodiment, as shown in fig. 14, the step of setting the switching angle threshold includes:
s41, when the display interface of the mobile terminal displays the album interface, in each sub-period within a preset time period, acquiring at least one first angle with the longest retention time between the mobile terminal and the horizontal plane in each sub-period.
When the display interface of the mobile terminal displays the album interface (the mobile terminal can enter the album interface by manual operation of a user or automatically enter the album interface by the scheme of the invention), in each sub-period within a preset time period, the condition of an included angle between the mobile terminal and a horizontal plane in each sub-period is obtained, an angle with the longest holding time is selected from each sub-period as a first angle, and the first angles corresponding to each sub-period can be the same or different. As in an embodiment, the preset time period is 5 minutes, the number of sub-periods is 5, the duration of each sub-period is 1 minute, and the conditions of the included angle between the mobile terminal and the horizontal plane in the 5 1-minute periods are respectively obtained, one of the longest retention time angles is selected from the sub-periods, for example, in the first sub-period, the longest retention time angle is 30 °, in the second sub-period, the longest retention time angle is 45 °, in the third sub-period, the longest retention time angle is 40 °, in the fourth sub-period, the longest retention time angle is 30 °, and in the fifth sub-period, the longest retention time angle is 30 °, that is, the first angles are 30 °, 40 ° and 45 °.
And S42, calculating the continuous probability of the at least one first angle.
In this step, the persistence probabilities of the respective first angles are calculated, and specifically, P ═ N/M may be calculated by the following formula, where N denotes the number of occurrences of the first angle in the preset time period, and M denotes the number of sub-periods in the preset time period, as in the above-described embodiment, M is 5, the persistence probability of the first angle of 30 ° is P ═ 3/5, the persistence probability of the first angle of 40 ° is P ═ 1/5, and the persistence probability of the first angle of 45 ° is P ═ 1/5.
And S43, selecting one first angle from the at least one first angle according to the persistence probability of the at least one first angle, and setting the selected first angle as a switching angle threshold.
In this step, the first angle at which the persistence probability is the greatest may be selected from the at least one first angle as the switching angle threshold, such as in the above-described embodiment where the persistence probability at the first angle of 30 ° is the greatest, then 30 ° is set as the switching angle threshold.
In an embodiment, a first angle with the largest persistence probability is selected from the at least one first angle, and it is determined whether the persistence probability of the first angle with the largest persistence probability is greater than or equal to a default probability threshold, if the persistence probability of the first angle with the largest persistence probability is greater than or equal to the default probability threshold, the first angle with the largest persistence probability is set as a switching angle threshold, and if the persistence probability of the first angle with the largest persistence probability is less than the default probability threshold, the process returns to step S41.
The switching angle threshold is set by adopting the embodiment, so that the switching angle threshold is set to be more in line with the use habit of the user, and when whether the display interface of the mobile terminal is switched from the shooting interface to the album interface is determined according to the relation between the size of the included angle between the mobile terminal and the horizontal plane detected in the step S10 and the switching angle threshold, whether the user wants to switch the display interface of the mobile terminal from the shooting interface to the album interface can be accurately determined.
Referring to fig. 15, fig. 15 is a flowchart illustrating a fifth embodiment of an interface switching method of a mobile terminal according to the present invention.
Based on the first embodiment, the second embodiment, or the third embodiment of the interface switching method of the mobile terminal, at the same time or after step S30, the method further includes:
and S50, controlling the mobile terminal to quit the photographing application.
In the step, the mobile terminal is controlled to quit the photographing application, that is, the user is currently viewing the photo album and does not need to photograph.
By adopting the embodiment, when the photographing application is not used, the mobile terminal is controlled to quit the photographing application, so that the system resource occupied by the photographing application on the mobile terminal can be reduced, and the operation efficiency of the mobile terminal is improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (5)

1. An interface switching apparatus of a mobile terminal, the apparatus comprising:
the detection module is used for detecting the information of an included angle between the mobile terminal and a horizontal plane through an angle sensor when a display interface of the mobile terminal displays a shooting interface;
the judging module is used for judging whether the included angle information meets a preset interface switching condition;
the switching module is used for switching the display interface of the mobile terminal from a shooting interface to an album interface when the included angle information meets a preset interface switching condition;
the setting module is used for setting the switching angle threshold value;
wherein the judging module comprises:
the first judgment unit is used for judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
the first determining unit is used for determining that the angle information meets a preset interface switching condition when the size of the included angle is equal to a preset switching angle threshold value;
the setting module includes:
the mobile terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least one first angle with the longest retention time between the mobile terminal and a horizontal plane in each sub-period in a preset time period when a display interface of the mobile terminal displays an album interface;
a calculation unit for calculating a persistence probability of the at least one first angle;
and the setting unit is used for selecting one first angle from the at least one first angle according to the continuous probability of the at least one first angle and setting the selected first angle as a switching angle threshold value.
2. The interface switching apparatus of claim 1, wherein the included angle information includes a size of the included angle and a duration corresponding to the size of the included angle, and the determining module includes:
the second judging unit is used for judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
the third judging unit is used for judging whether the duration time corresponding to the included angle is greater than or equal to a preset switching time threshold value or not when the included angle is equal to the preset switching angle threshold value;
and the second determining unit is used for determining that the included angle information meets a preset interface switching condition when the duration corresponding to the size of the included angle is greater than or equal to a preset switching time threshold value.
3. The interface switching apparatus of a mobile terminal according to any one of claims 1 or 2, wherein the apparatus further comprises:
and the control module is used for controlling the mobile terminal to quit the photographing application while or after the switching module switches the display interface of the mobile terminal from the photographing interface to the album interface.
4. An interface switching method of a mobile terminal is characterized by comprising the following steps:
when a display interface of the mobile terminal displays a shooting interface, detecting included angle information between the mobile terminal and a horizontal plane through an angle sensor, wherein the included angle information comprises the size of an included angle;
judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
if the included angle is equal to a preset switching angle threshold value, determining that the included angle information meets a preset interface switching condition;
if the included angle information meets a preset interface switching condition, switching a display interface of the mobile terminal from a shooting interface to an album interface;
wherein the method further comprises: setting the switching angle threshold value;
the step of setting the switching angle threshold value comprises:
when a display interface of the mobile terminal displays an album interface, in each sub-period within a preset time period, acquiring at least one first angle with the longest retention time between the mobile terminal and a horizontal plane in each sub-period;
calculating a persistence probability of the at least one first angle;
and selecting one first angle from the at least one first angle according to the persistence probability of the at least one first angle, and setting the selected first angle as a switching angle threshold value.
5. The interface switching method of claim 4, wherein the included angle information includes an included angle size and a duration corresponding to the included angle size, and the step of determining whether the included angle information satisfies a preset interface switching condition includes:
judging whether the size of the included angle is equal to a preset switching angle threshold value or not;
if the size of the included angle is equal to a preset switching angle threshold value, judging whether the duration time corresponding to the size of the included angle is larger than or equal to a preset switching time threshold value or not;
and if the duration time corresponding to the size of the included angle is greater than or equal to a preset switching time threshold value, determining that the included angle information meets a preset interface switching condition.
CN201510859518.5A 2015-11-30 2015-11-30 Interface switching device and method of mobile terminal Active CN105426081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510859518.5A CN105426081B (en) 2015-11-30 2015-11-30 Interface switching device and method of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510859518.5A CN105426081B (en) 2015-11-30 2015-11-30 Interface switching device and method of mobile terminal

Publications (2)

Publication Number Publication Date
CN105426081A CN105426081A (en) 2016-03-23
CN105426081B true CN105426081B (en) 2020-03-27

Family

ID=55504319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510859518.5A Active CN105426081B (en) 2015-11-30 2015-11-30 Interface switching device and method of mobile terminal

Country Status (1)

Country Link
CN (1) CN105426081B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371629A (en) * 2016-09-06 2017-02-01 珠海市魅族科技有限公司 Operation method and device for mobile terminal and mobile terminal
CN106943754A (en) * 2017-04-28 2017-07-14 董宇 Intelligent terminal information exchange mobile device and control method
CN107465820A (en) * 2017-07-28 2017-12-12 珠海市魅族科技有限公司 Interface switching method and device, computer installation and readable storage medium storing program for executing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024182A (en) * 2012-12-14 2013-04-03 广东欧珀移动通信有限公司 Method and device which enter into photo album interface from shoot interface of mobile terminal
CN103902196A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Screen display system and method and electronic display equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7289132B1 (en) * 2003-12-19 2007-10-30 Apple Inc. Method and apparatus for image acquisition, organization, manipulation, and publication
US8462109B2 (en) * 2007-01-05 2013-06-11 Invensense, Inc. Controlling and accessing content using motion processing on mobile devices
JP2010021721A (en) * 2008-07-09 2010-01-28 Olympus Corp Camera
CN104820536A (en) * 2015-03-02 2015-08-05 百度在线网络技术(北京)有限公司 Method and device for processing trigger element in terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024182A (en) * 2012-12-14 2013-04-03 广东欧珀移动通信有限公司 Method and device which enter into photo album interface from shoot interface of mobile terminal
CN103902196A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Screen display system and method and electronic display equipment

Also Published As

Publication number Publication date
CN105426081A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US11696021B2 (en) Video recording device and camera function control program
US11330194B2 (en) Photographing using night shot mode processing and user interface
US10511772B2 (en) Image capturing device having continuous image capture
WO2017107629A1 (en) Mobile terminal, data transmission system and shooting method of mobile terminal
US8553129B2 (en) Handheld electronic device with two lens modules, dual image capturing method applying for the handheld electronic device, and computer program product for load into the handheld electronic device
CN106688227B (en) More photographic devices, more image capture methods
EP2523450A1 (en) Handheld electronic device with dual image capturing method and computer program product
CN106534667B (en) Distributed collaborative rendering method and terminal
CN104902185B (en) Image pickup method and device
US10158798B2 (en) Imaging apparatus and method of controlling the same
CN105472246B (en) Camera arrangement and method
WO2017088609A1 (en) Image denoising apparatus and method
CN105357444B (en) focusing method and device
CN105872361A (en) Shooting guidance device, system and method
CN104869314A (en) Photographing method and device
CN108012073B (en) Method and device for realizing panoramic shooting
US20140210941A1 (en) Image capture apparatus, image capture method, and image capture program
CN106506958B (en) Method for shooting by adopting mobile terminal and mobile terminal
US9942483B2 (en) Information processing device and method using display for auxiliary light
CN105426081B (en) Interface switching device and method of mobile terminal
CN105407295B (en) Mobile terminal filming apparatus and method
CN105357441B (en) A kind of image-pickup method and mobile terminal
CN106569666B (en) Mask processing control device and method and terminal
CN107360378B (en) Exposure control method, mobile terminal and computer storage medium
CN106993138B (en) Time-gradient image shooting device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant