WO2016173343A1 - 一种飞行模式的控制方法及移动终端 - Google Patents

一种飞行模式的控制方法及移动终端 Download PDF

Info

Publication number
WO2016173343A1
WO2016173343A1 PCT/CN2016/077080 CN2016077080W WO2016173343A1 WO 2016173343 A1 WO2016173343 A1 WO 2016173343A1 CN 2016077080 W CN2016077080 W CN 2016077080W WO 2016173343 A1 WO2016173343 A1 WO 2016173343A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
flight
aircraft cabin
mode
picture
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.)
Ceased
Application number
PCT/CN2016/077080
Other languages
English (en)
French (fr)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2016173343A1 publication Critical patent/WO2016173343A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for controlling an airplane mode and a mobile terminal.
  • mobile phones With the rapid development of science and technology, mobile phones have almost become popular with everyone. People can use it to make calls, send messages, take photos, shop, etc. It can be said that mobile phones have become a part of everyone's life. In practice, sometimes the mobile phone needs to be switched to the flight mode. For example, when the passenger carries the mobile phone on the aircraft, the mobile phone must be turned off or the flight mode in the mobile phone is turned on to interrupt the communication between the mobile phone and the outside world, thereby ensuring navigation safety.
  • the technical problem to be solved by the embodiments of the present invention is to provide a flight mode control method and a mobile terminal, which can enable the flight mode to be turned on in time after the passenger gets on the plane.
  • an embodiment of the present invention provides a method for controlling an airplane mode, where the method includes:
  • Finding flight information included in the social application when the mobile terminal is in a non-flight mode wherein the flight information includes a flight time period of the flight, the flight time period being a time between a departure time and an ending time of the flight;
  • the operating mode of the mobile terminal is switched to the flight mode.
  • the matching a picture of the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is located Inside the aircraft cabin including:
  • the matching a picture of the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is located Inside the aircraft cabin including:
  • switching the working mode of the mobile terminal to the flight mode includes:
  • an inquiry window is issued to ask whether Turn on the flight mode or issue a prompt window to prompt to open the flight mode;
  • the operation mode of the mobile terminal is switched to the flight mode when receiving an instruction to confirm the flight mode in response to the instruction input of the inquiry window or receiving an airplane mode on command in response to the prompt input of the prompt window.
  • the method Before switching the working mode of the mobile terminal to the flight mode, the method further includes:
  • an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
  • a searching unit configured to search for flight information included in the social application when the mobile terminal is in a non-flight mode, wherein the flight information includes a flight time period of the flight, where the flight time period is a departure time to an ending time of the flight Time between
  • a first acquiring unit configured to acquire current time information of the mobile terminal
  • a determining unit configured to determine whether the current time information falls within a flight time period of the flight
  • a startup unit configured to: when it is determined that the current time information of the mobile terminal falls within a flight time period of the flight, start a camera to acquire a picture around the mobile terminal;
  • a matching unit configured to match a picture around the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is inside the aircraft cabin;
  • a switching unit configured to switch the working mode of the mobile terminal to an airplane mode when it is determined that the mobile terminal is inside the aircraft cabin.
  • the matching unit includes:
  • An analysis subunit configured to compare whether a similarity between a picture around the mobile terminal and a preset aircraft cabin internal environment picture exceeds a preset threshold
  • Determining a subunit configured to determine that the mobile terminal is inside the aircraft cabin when a similarity between a picture around the mobile terminal and a preset aircraft cabin internal environment picture exceeds a preset threshold; when the mobile terminal is around When the similarity between the picture and the preset aircraft cabin internal environment screen does not exceed the preset threshold, it is determined that the mobile terminal is not inside the aircraft cabin.
  • the matching unit includes:
  • An analysis subunit configured to analyze a picture around the mobile terminal to obtain a feature element included in a picture around the mobile terminal, and the feature element and an aircraft cabin feature element included in a preset aircraft cabin internal environment picture Comparing to determine whether the feature element includes at least one of the same feature elements as the aircraft cabin feature element;
  • Determining a subunit configured to: when the feature element includes at least one of the same feature elements as the aircraft cabin feature element, determining that the mobile terminal is inside the aircraft cabin; when the feature element does not include When the aircraft cabin feature element has the same feature element, it is determined that the mobile terminal is not inside the aircraft cabin.
  • the switching unit includes:
  • a reminder subunit configured to, when determining that the mobile terminal is inside the aircraft cabin, issue an inquiry window to inquire whether to open the flight mode or issue a prompt window to prompt to open the flight mode;
  • a switching subunit configured to: when receiving an instruction to confirm an open flight mode in response to an instruction input of the inquiry window or receiving an airplane mode open command in response to a prompt input of the prompt window, operating mode of the mobile terminal Switch to flight mode.
  • the mobile terminal further includes:
  • a second acquiring unit configured to acquire a location of the mobile terminal
  • a comparing unit configured to determine whether the location of the mobile terminal belongs to a preset airport location, and if so, triggering the switching unit to perform the step of switching the working mode of the mobile terminal to the flight mode.
  • an implementation of the present invention provides a mobile terminal, where the mobile terminal includes a processor and a memory, and the processor invokes a program in the memory to perform the following operations:
  • Finding flight information included in the social application when the mobile terminal is in a non-flight mode wherein the flight information includes a flight time period of the flight, and the flight time period is a departure time of the flight The time between the end time;
  • the camera is activated to acquire a picture around the mobile terminal;
  • the operating mode of the mobile terminal is switched to the flight mode.
  • the processor matches a picture around the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is Inside the aircraft cabin, specifically:
  • the processor matches a picture around the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is Inside the aircraft cabin, specifically:
  • the processor when determining the mobile When the terminal is inside the aircraft cabin, the processor switches the working mode of the mobile terminal to the flight mode, specifically:
  • an inquiry window is issued to ask whether to open the flight mode or issue a prompt window to prompt to open the flight mode;
  • the operation mode of the mobile terminal is switched to the flight mode when receiving an instruction to confirm the flight mode in response to the instruction input of the inquiry window or receiving an airplane mode on command in response to the prompt input of the prompt window.
  • the processor Before switching the working mode of the mobile terminal to the flight mode, it is also used to:
  • the information indicating the flight included in the mobile terminal is obtained, and it is determined whether the current time is within the flight time period of the flight. If yes, the screen information of the environment surrounding the mobile terminal is acquired, and the screen information is pre-stored. The aircraft cabin screen information is compared to determine whether the mobile terminal is in the aircraft cabin, and if so, the flight mode of the mobile terminal is automatically turned on, thereby improving the safety of the aircraft flight.
  • the prompt information is outputted on the display interface of the mobile terminal to open the flight mode after obtaining the user's consent, thereby improving the user experience; and acquiring the location information of the mobile terminal before acquiring the surrounding environment image, Then, the position information is combined with the screen information to determine whether the user is inside the cabin, and the accuracy of the judgment result is improved.
  • FIG. 1 is a schematic flow chart of a method for controlling an airplane mode according to an embodiment of the present invention
  • FIG. 1A is a schematic diagram of a flight information interface of a social application according to an embodiment of the present invention
  • FIG. 1B is a scene diagram of a feature element of an aircraft cabin provided by an embodiment of the present invention.
  • FIG. 1C is another scene diagram of a feature element of an aircraft cabin provided by an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of still another method for controlling an airplane mode according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a matching unit according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a switching unit according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of still another mobile terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of still another mobile terminal according to an embodiment of the present invention.
  • the mobile terminal described in the present invention may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), a wearable device (such as a smart watch). (such as iWatch, etc.), smart bracelets, pedometers, etc.) or other terminal devices that can be installed to deploy instant messaging application clients.
  • MID mobile internet device
  • a wearable device such as a smart watch. (such as iWatch, etc.), smart bracelets, pedometers, etc.) or other terminal devices that can be installed to deploy instant messaging application clients.
  • FIG. 1 is a schematic flowchart of a method for controlling an airplane mode according to an embodiment of the present invention, where the method includes but is not limited to the following steps.
  • Step S101 Search for flight information included in the social application when the mobile terminal is in the non-flight mode, wherein the flight information includes a flight time period of the flight, where the flight time period is between the departure time and the end time of the flight. time.
  • the mobile terminal generally includes a working mode such as a conference mode, a silent mode, an outdoor mode, and an airplane mode, wherein the flight mode is a working mode in which the communication with the outside world is closed, and the communication signal is avoided by closing the communication connection with the outside world.
  • the non-flight mode is all modes of operation except the flight mode.
  • the information acquisition module is preset in the mobile terminal, and the flight information in each social application in the mobile terminal is acquired by the information acquisition module, and the flight information includes at least a departure place, a destination, a departure time, and a landing time of the flight.
  • the time period between the takeoff time and the landing time is the flight time period of the flight.
  • Ways to obtain flight information for a social application include, but are not limited to, obtaining a text message associated with the airline's phone number, obtaining a message sent via the airline's WeChat account number or QQ number.
  • the information acquiring module may be automatically started by the mobile terminal, or may be manually triggered.
  • the mobile terminal automatically starts, and the mobile terminal automatically starts after detecting that the environmental parameter reaches the preset index. For example, when the mobile terminal detects that the mobile terminal is low, the information acquisition module is turned on, when the mobile terminal detects that the mobile terminal is violently shaken, the information acquisition module is turned on, and when the power on is detected, the information acquisition module is turned on.
  • the artificial triggering can be turned on when receiving a trigger event generated by the user by pressing a preset physical button or a virtual button.
  • the rules for obtaining flight information may be preset, including but not limited to periodic acquisition (eg, once every 6:00 am) and each time the terminal receives a social application message (sms message, QQ message, WeChat message, etc.) ), then start to get.
  • FIG. 1A a schematic diagram of an interface received by a mobile terminal for flight information sent by an airline, wherein the departure time of the flight message 101 is 4:05 on April 1, and the landing time is April 1st. 10 points, that is, by air
  • the flight time 102 in the class message 101 can analyze that the flight time period of the flight is 4:05-17:10 on April 1st. Further, some auxiliary information can also be used to infer which year to take off, for example, If the text message is received before April 1, 14th, then it can be determined that the specific flight time of the flight is 4:05-17:10 on April 1, 2014.
  • searching for the flight information included in the social application when the mobile terminal is in the non-flight mode may also be specifically:
  • the content information includes a keyword that represents the flight; and when the content information in the social application includes the keyword that represents the flight, whether the time information is included in the content information is further analyzed;
  • the content information is determined to be flight information, and the time period indicated by the time information is determined to be a flight time period of the flight.
  • the keywords can be “flight”, “takeoff”, “landing”, “airline”, etc.
  • the keywords specifically include what content is determined according to the preset, and the content contained in the keywords is not limited here.
  • the content information includes chat information; and when the social application has an information publishing function, the content information includes dynamic information.
  • Step S102 Acquire current time information of the mobile terminal.
  • the mobile terminal when acquiring the flight information and the flight time period in the flight information, acquires the current time on the mobile terminal, and may also update the system time before acquiring the current time to ensure the accuracy of the current time.
  • Step S103 Determine whether the current time information falls within a flight time period of the flight.
  • the mobile terminal compares the acquired current time with the flight time of the flight, determines whether the current time falls within the flight time of the flight, and does not fall within the flight time period when the acquired time is earlier than the take-off time or later than the landing time, for example, moving.
  • the current time of the terminal is 3:05 on March 1, 2014, then the time is before the plane takes off, so it is not within the flight time period.
  • the current time of the mobile terminal is 15:05 on April 1, 2014. Then the time point is after the aircraft takes off and before the landing, so it falls into the flight time period.
  • Step S104 When it is determined that the current time information of the mobile terminal falls within the flight time period of the flight, the camera is started to acquire a picture around the mobile terminal.
  • the camera of the mobile terminal is activated to acquire the surrounding picture.
  • the camera that starts the mobile terminal may specifically be:
  • the inquiry information is sent to ask the user whether to activate the camera of the mobile terminal or send a prompt message to prompt the user to start the camera of the mobile terminal; when receiving the user input according to the inquiry information
  • the camera of the mobile terminal is activated.
  • the inquiry information is to ask the user whether to turn on the camera.
  • the prompt message is to prompt the user to start the camera of the mobile terminal.
  • a window may pop up, displaying the message “Please start the camera”. After the user gets the prompt, you can go to the entrance of the camera. Start the camera of the mobile terminal.
  • the social application mentioned in the example of the present invention includes an application with a messaging function installed and subsequently installed by the mobile terminal, including but not limited to a short message application, WeChat, Momo, QQ, and MSN, obviously,
  • a short message application WeChat, Momo, QQ, and MSN
  • WeChat a short message application
  • MSN mobile network service
  • QQ can chat with a specific person, or can be said in the QQ space
  • the flight information can be presented in the form of a chat record with a specific person and personal dynamics, or other forms, as long as it is Social applications that can be used to convey information fall within the scope of the present invention.
  • Step S105 Performing a picture around the mobile terminal and a preset internal environment picture of the aircraft cabin Match to determine if the mobile terminal is inside the aircraft cabin.
  • the obtained screen is matched with the cabin internal environment screen or at least one of the plurality of screens is selected and matched with the cabin internal environment screen after obtaining a plurality of screens, wherein
  • the selection rule for selecting at least one of the plurality of screens may be preset, for example, at least one screen is selected according to the definition, the degree of color change, etc., in general, the obtained screen needs to be matched with the cabin interior environment screen.
  • the cabin interior environment picture refers to a picture taken inside the cabin, such as a picture containing a flight attendant and a dense small window.
  • the internal environment picture of the cabin is compared with the acquired picture. Before taking these pictures in various positions in the cabin, before the acquisition of these pictures, the relevant technicians will simulate the habits of the customer's station (sitting position), and take the habit of the mobile terminal, and then simulate the habit of shooting the cabin environment. Screen and store these cabin interior environment images for comparison matching.
  • the matching picture is matched with the internal environment picture of the cabin, and whether the mobile terminal is inside the aircraft cabin can be determined according to whether the objects captured by the two are the same.
  • matching a picture around the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is inside the aircraft cabin may also be specifically:
  • the matching a picture around the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is inside the aircraft cabin or not Can be specifically:
  • Analyzing a picture around the mobile terminal to derive a feature element included in a picture around the mobile terminal comparing the feature element with an aircraft cabin feature element included in a preset aircraft cabin interior environment picture to determine the Whether the feature element contains at least one feature element with the aircraft cabin
  • the feature element is an element in a picture taken in advance in the cabin, such as a flight attendant in the picture (103 in Fig. 1B), a dense small window (104 in Fig. 1C), and an arc in the top.
  • a cabin having a small width and a large length and specifically, for ease of comparison, after acquiring the images including the features of the cabin, a three-dimensional coordinate relationship between the first direction, the second direction, and the color of the screen can be established.
  • the data characteristics of the flight attendant and/or the dense small window and/or the top of the cabin having a small curved width and a large length are coordinately analyzed, and the coordinates of the photographed photograph can be subsequently analyzed to determine the coordinates corresponding to the photograph. Whether it contains the same data characteristics as the above data features, and if so, it is judged that the photographed photograph contains the organic cabin feature elements. Determining that the mobile terminal is inside the aircraft cabin when the feature element includes at least one of the same feature elements as the aircraft cabin feature element; when the feature element does not include the same as the aircraft cabin feature element When the feature element is determined, it is determined that the mobile terminal is not inside the aircraft cabin.
  • Step S106 When it is determined that the mobile terminal is inside the aircraft cabin, the working mode of the mobile terminal is switched to the flight mode.
  • switching the working mode of the mobile terminal to the flight mode may be specifically:
  • an inquiry window is issued to ask whether to open the flight mode or issue a prompt window to prompt to open the flight mode; when the confirmation of the input of the response window is received, the confirmation of the flight mode is enabled.
  • the operating mode of the mobile terminal is switched to the flight mode when the instruction or the flight mode opening command in response to the prompt input of the prompt window is received.
  • the inquiry information is to ask the user whether to open the flight mode.
  • the prompt message prompts the user to open the flight mode.
  • a window may pop up, displaying the message "Please turn on the flight mode", and the user can open the flight mode by opening the flight mode after the user is prompted.
  • the mobile terminal acquires information including the characterized flight, determines whether the current time is within the flight time period of the flight, and if so, acquires screen information of the environment surrounding the mobile terminal, and The screen information is compared with the pre-stored aircraft cabin screen information to determine whether the mobile terminal is in the aircraft cabin, and if so, the flight mode of the mobile terminal is automatically turned on, thereby improving the safety of the aircraft flight.
  • FIG. 2 is a schematic flowchart diagram of still another method for controlling an airplane mode according to an embodiment of the present invention, where the method includes but is not limited to the following steps.
  • Step S201 Find the flight information included in the social application when the mobile terminal is in the non-flight mode, wherein the flight information includes a flight time period of the flight, where the flight time period is between the departure time and the end time of the flight. time.
  • Step S202 Acquire current time information of the mobile terminal.
  • Step S203 It is determined whether the current time information falls within the flight time period of the flight.
  • Step S204 When it is determined that the current time information of the mobile terminal falls within the flight time period of the flight, the camera is started to acquire a picture around the mobile terminal.
  • Step S205 Matching the picture around the mobile terminal with the preset aircraft cabin internal environment picture to determine whether the mobile terminal is inside the aircraft cabin.
  • steps S201 to S205 can be respectively referred to steps S101 to S105 in the embodiment corresponding to FIG. 1, and details are not described herein again.
  • Step S206 When it is determined that the terminal is inside the aircraft cabin, the location of the mobile terminal is obtained.
  • the mobile terminal opens the built-in positioning system to obtain the geographic location of the mobile terminal, and the manner of opening the positioning system may be that the mobile terminal automatically opens, or the mobile terminal prompts the user to trigger. turn on.
  • Step S207 determining whether the location of the mobile terminal belongs to a preset airport location.
  • the location information is compared with the location information of the pre-acquired airports to determine whether the mobile terminal is within the airport range.
  • Step S208 When it is determined that the mobile terminal is in the airport range, the working mode of the mobile terminal is switched to the flight mode.
  • the flight mode of the mobile terminal is turned on by referring to step S106.
  • the geographic location information of the mobile terminal is acquired after the image is acquired.
  • the image is acquired when the mobile terminal is determined to be within the airport range.
  • the mobile terminal acquires information including the characterized flight, determines whether the current time is within the flight time period of the flight, and if so, acquires screen information of the environment surrounding the mobile terminal, and The screen information is compared with the pre-stored aircraft cabin screen information to determine whether the mobile terminal is in the aircraft cabin, and if so, the flight mode of the mobile terminal is automatically turned on, thereby improving the safety of the aircraft flight.
  • the prompt information is outputted on the display interface of the mobile terminal to open the flight mode after obtaining the user's consent, thereby improving the user experience; and acquiring the location information of the mobile terminal before acquiring the surrounding environment image, Then, the position information is combined with the screen information to determine whether the user is inside the cabin, and the accuracy of the judgment result is improved.
  • FIG. 3 is a schematic structural diagram of a mobile terminal 30 according to an embodiment of the present invention.
  • the mobile terminal 30 includes a searching unit 301, a first obtaining unit 302, a determining unit 303, a starting unit 304, a matching unit 305, and The switching unit 306, wherein the functions of each unit are described in detail below.
  • the searching unit 301 is configured to search for flight information included in the social application when the mobile terminal is in the non-flight mode, where the flight information includes a flight time period of the flight, and the flight time period is a departure of the flight. The time between the moment and the end of time;
  • the mobile terminal 30 generally includes a working mode such as a conference mode, a silent mode, an outdoor mode, and an airplane mode, wherein the flight mode is a working mode in which the communication with the outside world is closed, and the communication signal is avoided by closing the communication connection with the outside world.
  • the non-flight mode is all modes of operation except the flight mode.
  • the searching unit 301 acquires flight information in each social application in the mobile terminal 30, and the flight information includes at least a departure place, a destination, a departure time, and a landing time of the flight, and a time between the departure time and the landing time.
  • the segment is the flight time of the flight.
  • the manner in which the search unit 301 obtains the flight information of the social application includes, but is not limited to, acquiring a short message associated with the airline's phone number, and obtaining a message sent by the airline's WeChat account or QQ number. It should be noted that, in the embodiment of the present invention, the search unit 301 may be automatically opened by the mobile terminal 30, or may be manually triggered.
  • the mobile terminal 30 may be automatically turned on after the mobile terminal 30 detects that the environmental parameter reaches the preset index. If the mobile terminal 30 detects that the mobile terminal 30 is low, the information acquisition module is detected, when the mobile terminal 30 is detected to be violently shaken, the information acquisition module is turned on, and when the power is turned on, the information acquisition module is detected.
  • the artificial triggering can be turned on when receiving a trigger event generated by the user by pressing a preset physical button or a virtual button.
  • FIG. 1A is a schematic diagram of an interface received by the mobile terminal 30 for flight information sent by an airline, wherein the departure time of the flight information 101 is 4:05 on April 1 and the landing time is April 1 At 17:10, the flight time of the flight can be analyzed according to the flight time 102 as 4:05-17:10 on April 1. Further, some auxiliary information can be used to figure out which year to take off. For example, if the text message is received before April 1, 14th, then the specific flight time period of the flight can be judged as 4:05-17:10 on April 1, 2014.
  • the searching unit 301 may find the flight information included in the social application when the mobile terminal 30 is in the non-flight mode.
  • the content information is determined to be flight information, and the time period indicated by the time information is determined to be a flight time period of the flight.
  • the keywords can be “flight”, “takeoff”, “landing”, “airline”, etc.
  • the keywords specifically include what content is determined according to the preset, and the content contained in the keywords is not limited here.
  • the content information includes chat information; and when the social application has an information publishing function, the content information includes dynamic information.
  • the first obtaining unit 302 is configured to acquire current time information of the mobile terminal.
  • the first obtaining unit 302 acquires the current time on the mobile terminal 30, and the first acquiring unit 302 may firstly set the system before acquiring the current time. Time updates to ensure the accuracy of the current time.
  • the determining unit 303 is configured to determine whether the current time information falls within a flight time period of the flight;
  • the determining unit 303 compares the acquired current time with the flight time of the flight, and determines whether the current time falls within the flight time of the flight.
  • the current time of the mobile terminal 30 is 3:05 on March 1, 2014, then the time point is before the aircraft takes off, and therefore is not in the flight time period, for example, the current time of the mobile terminal 30 is 15:00 on April 1, 2014. 05 points, then the time point after the aircraft took off and before the landing, so it fell into the flight time period.
  • the startup unit 304 is configured to start a camera to obtain a picture around the mobile terminal when it is determined that the current time information of the mobile terminal falls within a flight time period of the flight;
  • the activation unit 304 activates the camera of the mobile terminal 30 to acquire the surrounding picture.
  • the matching unit 305 is configured to match a picture around the mobile terminal with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is inside the aircraft cabin;
  • the matching unit 305 matches the obtained picture with the cabin internal environment picture or selects at least one of the plurality of pictures to match the cabin internal environment picture after obtaining the plurality of pictures.
  • the selection rule for selecting at least one of the plurality of screens may be preset, for example, at least one screen is selected according to the definition, the degree of color change, etc. In general, the obtained screen needs to be matched with the cabin interior environment screen.
  • the cabin interior environment picture refers to a picture taken inside the cabin, such as a picture containing a flight attendant (103 in FIG. 1B) and a dense small window (104 in FIG. 1C), in the present invention.
  • the cabin internal environment picture compared with the acquired picture is a picture taken at various angles in advance in various positions in the cabin, and before acquiring these pictures, the relevant technician first guesses the habit of the customer's station (sitting position). And taking the angle habit of the mobile terminal 30, then simulating these habits to capture the interior environment of the cabin, and storing these cabin interior environment images for comparison matching.
  • the matching unit 305 compares and matches the acquired picture with the cabin internal environment picture, and determines whether the mobile terminal 30 is inside the aircraft cabin according to whether the objects captured by the two are the same.
  • the switching unit 306 is configured to switch the working mode of the mobile terminal to the flight mode when it is determined that the mobile terminal is inside the aircraft cabin.
  • the switching unit 306 switches the operation mode of the mobile terminal 30 to the flight mode.
  • FIG. 4 is a schematic structural diagram of the matching unit 305 in the mobile terminal 30 shown in FIG. 3.
  • the matching unit 305 includes an analysis subunit 3051 and a determination subunit 3052.
  • the analysis sub-unit 3051 is configured to compare whether the similarity between the picture around the mobile terminal 30 and the preset aircraft cabin internal environment picture exceeds a preset threshold.
  • the determining subunit 3052 is configured to determine that the mobile terminal 30 is inside the aircraft cabin when the similarity between the screen around the mobile terminal 30 and the preset aircraft cabin internal environment screen exceeds a preset threshold; when the screen and the preset around the mobile terminal 30 When the similarity of the internal environment picture of the aircraft cabin does not exceed the preset threshold, it is determined that the mobile terminal 30 is not inside the aircraft cabin.
  • the analysis sub-unit 3051 is configured to analyze a picture around the mobile terminal 30 to derive a feature element included in the picture around the mobile terminal 30, and compare the feature element with an aircraft cabin feature element included in the preset aircraft cabin internal environment picture to determine Whether the feature element contains at least one of the same feature elements as the aircraft cabin feature element.
  • the determining subunit 3052 is configured to determine that the mobile terminal 30 is inside the aircraft cabin when the feature element includes at least one of the same feature elements as the aircraft cabin feature element; and when the feature element does not include the same feature element as the aircraft cabin feature element, It is determined that the mobile terminal 30 is not inside the aircraft cabin.
  • FIG. 5 is a schematic structural diagram of a switching unit 306 in the mobile terminal 30 shown in FIG. 3.
  • the switching unit 306 includes a reminding subunit 3061 and a sub-switching subunit 3062, wherein the functions of each subunit are detailed. Introduced as follows.
  • the reminder sub-unit 3061 is configured to, when determining that the mobile terminal 30 is inside the aircraft cabin, issue an inquiry window to ask whether to open the flight mode or issue a prompt window to prompt the flight mode to be turned on.
  • the switching sub-unit 3062 is configured to switch the operation mode of the mobile terminal 30 to the flight mode when receiving an instruction to confirm the activation of the flight mode in response to the instruction input of the inquiry window or receiving an airplane mode-on command in response to the prompt input of the response prompt window.
  • each unit may also correspond to the related description of the method embodiment corresponding to FIG.
  • the mobile terminal 30 acquires information including the characterized flight, determines whether the current time is within the flight time period of the flight, and if so, acquires screen information of the environment surrounding the mobile terminal 30, and The picture information is compared with the pre-stored aircraft cabin picture information to determine whether the mobile terminal 30 is in the aircraft cabin, and if so, the flight mode of the mobile terminal 30 is automatically turned on, thereby improving the safety of the aircraft flight.
  • FIG. 6 is a schematic structural diagram of still another mobile terminal 30 according to an embodiment of the present invention.
  • the mobile terminal 30 includes a search unit 301, a first obtaining unit 302, and a judgment in the mobile terminal 30 shown in FIG. Unit 303, start unit 304, matching unit 305, and switching unit 306
  • a second obtaining unit 307 and a comparing unit 308 are further included, wherein the functions of the respective units are described in detail below.
  • the second obtaining unit 307 is configured to acquire the location of the mobile terminal when it is determined that the terminal is inside the aircraft cabin.
  • the second acquiring unit 307 opens the positioning system built in the mobile terminal 30 to obtain the geographic location of the mobile terminal 30.
  • the manner of opening the positioning system may be that the mobile terminal 30 automatically opens. Alternatively, the mobile terminal 30 may prompt the user to trigger and then open.
  • the comparing unit 308 is configured to determine whether the location of the mobile terminal belongs to a preset airport location, and if so, the trigger switching unit 306 switches the working mode of the mobile terminal to the flight mode.
  • each unit in the mobile terminal 30 shown in FIG. 6 may also correspond to the specific description of the embodiment shown in FIG. 2 .
  • the mobile terminal 30 acquires the included information indicating the flight, determines whether the current time is within the flight time period of the flight, and if so, acquires the screen information of the environment surrounding the mobile terminal 30, and The picture information is compared with the pre-stored aircraft cabin picture information to determine whether the mobile terminal 30 is in the aircraft cabin, and if so, the flight mode of the mobile terminal 30 is automatically turned on, thereby improving the safety of the aircraft flight.
  • the mobile terminal 30 outputs prompt information on the display interface to open the flight mode after obtaining the user's consent, thereby improving the user experience; and acquiring the location information of the mobile terminal 30 before acquiring the surrounding environment image. Then, the position information is combined with the screen information to determine whether the user is inside the cabin, and the accuracy of the judgment result is improved.
  • FIG. 7 is a schematic structural diagram of still another mobile terminal 70 according to an embodiment of the present invention.
  • the mobile terminal 70 may include at least one processor 701, such as a CPU, at least one network interface 704, a user interface 703, a memory 705, at least one communication bus 702, and a display screen 706.
  • the communication bus 702 is used to implement connection communication between these components.
  • the user interface 703 can include a display 706, an optional user interface 703. It can also include standard wired and wireless interfaces.
  • the communication interface 704 can optionally include a standard wired interface (such as a data line interface, a network line interface, etc.), and a wireless interface (such as a WI-FI interface, a Bluetooth interface, and a near field communication interface).
  • the memory 705 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 705 can optionally also be at least one storage device located remotely from the aforementioned processor 701. As shown in FIG. 7, an operating system, a network communication module, a user interface module, and an airplane mode open program may be included in the memory 705 as a computer storage medium.
  • the communication interface 704 is mainly used to connect the second terminal to perform data communication with the second terminal; and the processor 701 can call the flight mode open program stored in the memory 705 for performing the following operating:
  • Finding flight information included in the social application when the mobile terminal 70 is in a non-flying mode wherein the flight information includes a flight time period of the flight, the flight time period being between a departure time and an ending time of the flight time;
  • the camera is activated to acquire a picture around the mobile terminal 70;
  • the operating mode of the mobile terminal 70 is switched to the flight mode.
  • the processor 701 matches a picture around the mobile terminal 70 with a preset aircraft cabin internal environment picture to determine whether the mobile terminal 70 is inside the aircraft cabin. Specifically:
  • Similarity between the picture around the mobile terminal 70 and the preset internal environment picture of the aircraft cabin When the preset threshold is exceeded, determining that the mobile terminal 70 is inside the aircraft cabin; when the similarity between the screen around the mobile terminal 70 and the preset aircraft cabin internal environment screen does not exceed the preset threshold It is determined that the mobile terminal 70 is not inside the aircraft cabin.
  • the processor 701 matches a picture around the mobile terminal 70 with a preset aircraft cabin internal environment picture to determine whether the mobile terminal 70 is inside the aircraft cabin. ,Specifically:
  • a screen around the mobile terminal 70 is analyzed to obtain a feature element included in a picture around the mobile terminal 70, and the feature element is compared with an aircraft cabin feature element included in a preset aircraft cabin internal environment picture to determine Whether the feature element includes at least one of the same feature elements as the aircraft cabin feature element;
  • the processor 701 switches the working mode of the mobile terminal 70 to an airplane mode, specifically:
  • an inquiry window is issued to inquire whether to open the flight mode or issue a prompt window to prompt to open the flight mode;
  • the operation mode of the mobile terminal 70 is switched to the flight mode when receiving an instruction to confirm the flight mode in response to the instruction input of the inquiry window or receiving an airplane mode on command in response to the prompt input of the prompt window.
  • the processor 701 before the processor 701 switches the working mode of the mobile terminal 70 to the flight mode, the processor 701 is further configured to:
  • the specific implementation of the mobile terminal 70 may also be corresponding to FIG. 1 and FIG. 2 . Corresponding descriptions of the embodiments are not described herein again.
  • the information indicating the flight included in the mobile terminal is obtained, and it is determined whether the current time is within the flight time period of the flight, and if so, the mobile terminal is acquired.
  • the picture information of the environment is compared with the pre-stored aircraft cabin screen information to determine whether the mobile terminal is in the aircraft cabin, and if so, the flight mode of the mobile terminal is automatically turned on, thereby improving the safety of the aircraft flight.
  • the prompt information is outputted on the display interface of the mobile terminal to open the flight mode after obtaining the user's consent, thereby improving the user experience; and acquiring the location information of the mobile terminal before acquiring the surrounding environment image, Then, the position information is combined with the screen information to determine whether the user is inside the cabin, and the accuracy of the judgment result is improved.
  • the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种飞行模式的控制方法及移动终端,该方法包括:在移动终端处于非飞行模式下查找社交应用中包含的航班信息;获取移动终端的当前时间信息;判断当前时间信息是否落入航班信息的时间范围;当判断结果为是时,启动摄像头以获取移动终端周围的画面;将移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端是否处于飞机机舱内部;当确定出移动终端处于飞机机舱内部时,将移动终端的工作模式切换至飞行模式。采用本发明的方法,能够使移动终端处于飞机上时,及时自动开启飞行模式。

Description

一种飞行模式的控制方法及移动终端
本发明要求2015年4月30日递交的发明名称为“一种飞行模式的控制方法及移动终端”的申请号201510217907.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及通信技术领域,尤其涉及一种飞行模式的控制方法及移动终端。
背景技术
随着科学技术的迅猛发展,手机几乎已经普及到了每个人,人们可以用它打电话、发信息、拍照、购物等,可以说手机已经成为了每个人生活中的一部分。在实践中,有时候手机需要切换成飞行模式,比如,当乘客携带手机上了飞机时,必须将手机关机或者开启手机中的飞行模式,以中断手机与外界的通信,从而保证航行安全。
现有技术中,手机往往会出现这种情况,乘客在上了飞机后忘记了开启手机的飞行模式,这给飞机的安全飞行带来了极大隐患。
发明内容
本发明实施例所要解决的技术问题在于,提供一种飞行模式的控制方法及移动终端,能够在乘客上飞机后及时开启飞行模式。
第一方面,本发明实施例提供一种飞行模式的控制方法,该方法包括:
在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间;
获取所述移动终端的当前时间信息;
判断所述当前时间信息是否落入所述航班的飞行时间段内;
当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时, 启动摄像头以获取所述移动终端周围的画面;
将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
当确定出所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
结合第一方面,在第一方面的第一种可能的实现方式中,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:
对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
结合第一方面,在第一方面的第二种可能的实现方式中,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:
分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
结合第一方面、第一方面的第一种可能的实现方式和第一方面的第二种可能的实现方式中的任一种方式,在第一方面的第三种可能的实现方式中,所述当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式,包括:
当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否 开启飞行模式或者发出提示窗口以提示开启飞行模式;
当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
结合第一方面、第一方面的第一种可能的实现方式和第一方面的第二种可能的实现方式中的任一种方式,在第一方面的第四种可能的实现方式中,所述将所述移动终端的工作模式切换至飞行模式之前,还包括:
获取所述移动终端的位置;
判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的步骤。
第二方面,本发明实施例提供一种移动终端,该移动终端包括:
查找单元,用于在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间;
第一获取单元,用于获取所述移动终端的当前时间信息;
判断单元,用于判断所述当前时间信息是否落入所述航班的飞行时间段内;
启动单元,用于当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面;
匹配单元,用于将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
切换单元,用于当确定出所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
结合第二方面,在第二方面的第一种可能的实现方式中,所述匹配单元包括:
分析子单元,用于对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
确定子单元,用于当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
结合第二方面,在第二方面的第二种可能的实现方式中,所述匹配单元包括:
分析子单元,用于分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
确定子单元,用于当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
结合第二方面、第二方面的第一种可能的实现方式和第二方面的第二种可能的实现方式中的任一种方式,在第二方面的第三种可能的实现方式中,所述切换单元包括:
提醒子单元,用于当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
切换子单元,用于当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
结合第二方面、第二方面的第一种可能的实现方式和第二方面的第二种可能的实现方式中的任一种方式,在第二方面的第四种可能的实现方式中,所述移动终端还包括:
第二获取单元,用于获取所述移动终端的位置;
对比单元,用于判断所述移动终端的位置是否属于预设的机场位置,若属于,触发所述切换单元执行所述的将所述移动终端的工作模式切换至飞行模式的步骤。
第三方面,本发明实施提供一种移动终端,所述移动终端包括处理器和存储器,所述处理器调用所述存储器中的程序,用于执行如下操作:
在所述移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻 至结束时刻之间的时间;
获取所述移动终端的当前时间信息;
判断所述当前时间信息是否落入所述航班的飞行时间段内;
当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面;
将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
当确定出所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
结合第三方面,在第三方面的第一种可能的实现方式中,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:
对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
结合第三方面,在第三方面的第二种可能的实现方式中,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:
分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与 所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
结合第三方面,或者第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,当确定所述移动终端处于所述飞机机舱内部时,所述处理器将所述移动终端的工作模式切换至飞行模式,具体为:
当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
结合第三方面,或者第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,在第三方面的第四种可能的实现方式中,,所述处理器将所述移动终端的工作模式切换至飞行模式之前,还用于:
获取所述移动终端的位置;
判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的操作。
通过实施本发明实施例,获取移动终端中包含的表征航班的信息,判断当前时间是否处于该航班的飞行时间段内,若是,则获取移动终端周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
进一步地,开启飞行模式之前,在移动终端的显示界面上输出提示信息,以在征得用户同意后再开启飞行模式,提高了用户体验;在获取周围环境画面之前,获取移动终端的位置信息,然后将位置信息与画面信息结合起来判断用户是否处于机舱内部,提高了判断结果的准确性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种飞行模式的控制方法的流程示意图;
图1A是本发明实施例提供的一种社交应用的航班信息界面示意图;
图1B是本发明实施例提供的一种包含飞机机舱特征元素的场景图;
图1C是本发明实施例提供的又一种包含飞机机舱特征元素的场景图;
图2是本发明实施例提供的又一种飞行模式的控制方法的流程示意图;
图3是本发明实施例提供的一种移动终端的结构示意图;
图4是本发明实施例提供的一种匹配单元的结构示意图;
图5是本发明实施例提供的一种切换单元的结构示意图;
图6是本发明实施例提供的又一种移动终端的结构示意图;
图7是本发明实施例提供的又一种移动终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
本发明所描述的移动终端可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)、可穿戴设备(例如智能手表 (如iWatch等)、智能手环、计步器等)或其他可安装部署即时通讯应用客户端的终端设备。
请参见图1,图1是本发明实施例提供的一种飞行模式的控制方法的流程示意图,该方法包括但不限于以下步骤。
步骤S101:在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间。
具体地,移动终端一般都包含会议模式、静音模式、室外模式、飞行模式等工作模式,其中飞行模式为关闭与外界通信连接的一种工作模式,通过关闭与外界的通信连接来避免通信信号对飞机飞行的干扰,本发明实施例中,非飞行模式为除了飞行模式之外的所有工作模式。
进一步地,移动终端中预设了信息获取模块,通过信息获取模块获取移动终端中各个社交应用中的航班信息,该航班信息至少包括航班的始发地、目的地、起飞时间和降落时间,介于起飞时间和降落时间之间的时间段则为航班的飞行时间段。获取社交应用的航班信息的方式包括但不限于获取与航空公司的电话号码相关联的短信、获取通过航空公司的微信账号或QQ号发送的消息。
需要说明的是,本发明实施例中信息获取模块可以是移动终端自动开启,也可以是人为触发开启,其中,移动终端自动开启可以是移动终端在检测到环境参数达到预设指标后自动开启,例如,检测到移动终端电量低时开启信息获取模块、检测到移动终端剧烈晃动时开启信息获取模块、检测到开机时开启信息获取模块等。人为触发开启可以是接收到用户通过触控预设物理按键或者虚拟按键而产生的触发事件时开启。
再进一步地,获取航班信息的规则可预先设置好,包括但不限于定期获取(如每天早上6:00获取一次)和终端每接收到一条社交应用的消息(短信消息、QQ消息、微信消息等)时,则开始获取。如图1A所示,为移动终端接收到的来自某航空公司发送的航班信息的界面示意图,其中,航班消息101的起飞时间为4月1日4点05分,降落时间为4月1日17点10分,即由航 班消息101中的飞行时间102可分析出该航班的飞行时间段为4月1日的4:05—17:10,进一步地,还可以通过一些辅助信息推测出是哪一年起飞,例如,如果收到该短信是在14年4月1日之前,那么可以判断出航班的具体飞行时间段为2014年4月1日的4:05—17:10。
进一步地,在一种可选的方案中,在移动终端处于非飞行模式下查找社交应用中包含的航班信息还可以具体为:
在移动终端处于非飞行模式下查找社交应用中是否存在内容信息包含表征航班的关键词;当社交应用中存在包含表征航班的关键词的内容信息时,则进一步分析内容信息中是否包含时间信息;当内容信息中包含时间信息时,则确定内容信息为航班信息,并确定时间信息所表示的时间段为航班的飞行时间段。其中,关键词可以是“航班”、“起飞”、“降落”、“航空公司”等,当然关键词具体包括哪些内容要根据预先设置而定,此处不对关键词包含的内容做限制,另外,在依据关键词判断信息内容是否为航班信息时,可以仅根据一个关键词来判断,也可以结合多个关键词来判断。
再进一步地,当所述社交应用具有聊天功能时,所述内容信息包括聊天信息;当所述社交应用具有信息发布功能时,所述内容信息包括动态信息。
步骤S102:获取所述移动终端的当前时间信息。
具体地,移动终端在获取到航班信息以及航班信息中的飞行时间段时,获取移动终端上的当前时间,在获取当前时间之前还可以先将系统时间更新,以确保当前时间的准确性。
步骤S103:判断所述当前时间信息是否落入所述航班的飞行时间段内。
具体地,移动终端将获取的当前时间与航班飞行时间对比,判断当前时间是否落入航班飞行时间,当获取的时间早于起飞时间或者晚于降落时间均不落于飞行时间段内,例如移动终端的当前时间为2014年3月1日3点05分,那么该时间点在飞机起飞之前,因此不在飞行时间段内,例如移动终端的当前时间为2014年4月1日15点05分,那么该时间点在飞机起飞之后以及降落之前,因此落入了飞行时间段内。
步骤S104:当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面。
具体地,当对比之后,确认移动终端当前时间落入航班的飞行时间段内时,启动移动终端的摄像头以获取周围的画面。
进一步地,在一种可选的方案中,当确认移动终端当前时间落入航班的飞行时间段内时,启动移动终端的摄像头可以具体为:
当移动终端的当前时间信息落入航班的飞行时间段内时,发出询问信息以询问用户是否启动移动终端的摄像头或者发出提示信息以提示用户启动移动终端的摄像头;当接收到用户根据询问信息输入的确认启动移动终端的摄像头的指令或者根据提示信息的提示输入的摄像头开启指令时,启动移动终端的摄像头。询问信息是询问用户要不要开启摄像头,此时可能在显示界面有一个窗口,该窗口中有两个虚拟按键,其中一个为“是”,另一个为“否”,用户点击“是”可以启动摄像头,点击“否”则放弃启动摄像头;而提示信息则是提示用户启动移动终端的摄像头,此时可能弹出一个窗口,显示“请启动摄像头”的消息,用户获得提示后可以到启动摄像头的入口启动移动终端的摄像头。
需要说明的是,本发明实例中提到的社交应用包括移动终端自带和后续安装的具有消息收发功能的应用,包括但不限于短信应用、微信、陌陌、QQ和MSN,显然,随着通信技术的发展和人们喜好的改变,将有越来越多的社交应用进入到人们的生活当中,它们都毫无例外地落入本发明的保护范围,并且在获取航班信息时,可以只获取其中一个社交应用的航班信息,也可以同时获取多个社交应用的航班信息,以防止航班信息遗漏。再进一步地,现在的社交应用有的有聊天功能,有的有发布动态信息的功能,有的兼具这两种功能,如用微信可以和特定人聊天,也可以在微信朋友圈发布个人动态,再如,QQ可以和特定人聊天,也可以在QQ空间发表说说,航班信息除了可以以与特定人的聊天记录的形式以及个人动态的形式呈现外,还可以是其他的形式,只要是可以用来传递信息的社交应用都落入本发明的保护范围。
步骤S105:将移动终端周围的画面与预设的飞机机舱内部环境画面进行 匹配,以确定移动终端是否处于飞机机舱内部。
具体地,每一次获得画面后,将获得的该画面与机舱内部环境画面进行匹配或者在获得了多个画面后挑选出多个画面中的至少一个画面与机舱内部环境画面进行匹配,其中,从多个画面中挑选出至少一个画面的挑选规则可预先设置,例如按照清晰度、色彩变化程度等来选择出至少一个画面,总而言之,需要将获得的画面与机舱内部环境画面进行匹配。
进一步地,机舱内部环境画面指的是拍摄于机舱内部得到的画面,例如一张包含空姐、密集的小窗户的画面,在本发明实施例中,与获取的画面进行对比的机舱内部环境画面为预先在机舱内各个位置以各个角度拍摄的画面,在获取这些画面之前,相关技术人员会模拟客户的站位(坐位)的习惯,以及拿移动终端的角度习惯,然后模拟这些习惯拍摄机舱内部环境画面,并将这些机舱内部环境画面进行存储以供对比匹配。将获取的画面与机舱内部环境画面对比匹配,可根据两者拍摄的对象是否相同来确定移动终端是否处于飞机机舱内部。
进一步地,在一种可选的方案中,将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部还可以具体为:
对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
再进一步地,在又一种可选的方案中,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部还可以具体为:
分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素 相同的特征元素,其中,特征元素为预先在机舱中拍摄的画面中的元素,如画面中的空姐(如图1B中的103)、密集小窗户(如图1C中的104)、顶为弧形宽度小长度大的舱体等,具体地,为了便于比对,在获取这些包含机舱特征元素的画面后,可建立该画面第一方向、第二方向和色彩之间的三维坐标关系,得出上述空姐和/或密集小窗户和/或顶为弧形宽度小、长度大的舱体等在坐标中的数据特征,后续可对拍摄得到的照片进行坐标分析,判断该照片对应的坐标中是否包含与上述数据特征相同的数据特征,若有则判断拍摄得到的照片中包含有机舱特征元素。当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
需要说明的是,以上举例说明的内容仅为部分可实现的方式,通过列举的实例还可以推导出其他可实现的方式,显然,其他可实现的方式同样落入本发明的保护范围。
步骤S106:当确定移动终端处于飞机机舱内部时,将移动终端的工作模式切换至飞行模式。
具体地,当对比匹配之后,确认移动终端处于飞机机舱内部时,将移动终端的工作模式切换至飞行模式。
进一步地,在一种可选的方案中,当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式可以具体为:
当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。其中,询问信息是询问用户要不要开启飞行模式,此时可能在显示界面有一个窗口,该窗口中有两个虚拟按键,其中一个为“是”,另一个为“否”,用户点击“是”可以触发移动终端开启飞行模式,点击“否”则放弃开启飞行模式。 而提示信息则是提示用户开启飞行模式,此时可能弹出一个窗口,显示“请开启飞行模式”的消息,用户获得提示后可以到开启飞行模式的入口开启飞行模式。
在图1所描述的飞行模式的控制方法中,移动终端获取包含的表征航班的信息,判断当前时间是否处于该航班的飞行时间段内,若是,则获取移动终端周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
请参见图2,图2是本发明实施例提供的又一种飞行模式的控制方法的流程示意图,该方法包括但不仅限于以下步骤。
步骤S201:在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间。
步骤S202:获取移动终端的当前时间信息。
步骤S203:判断当前时间信息是否落入航班的飞行时间段内。
步骤S204:当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面。
步骤S205:将移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端是否处于飞机机舱内部。
具体地,步骤S201~S205可以分别参照图1对应的实施例中的步骤S101~S105,此处不再赘述。
步骤S206:当判断出终端处于飞机机舱内部时,获取移动终端的位置。
具体地,当判断出移动终端处于飞机机舱内部时,移动终端打开内置的定位系统以获取移动终端的地理位置,打开该定位系统的方式可以是移动终端自动打开,也可以是移动终端提示用户触发打开。
步骤S207:判断移动终端的位置是否属于预设的机场位置。
具体地,获取到位置信息后,将该位置信息与预先获取的各地机场的位置信息进行对比,以判断该移动终端是否在机场范围之内。
步骤S208:当判断出移动终端处于机场范围内时,将移动终端的工作模式切换至飞行模式。
具体地,当判断出移动终端确实处于机场范围之内时,参照步骤S106开启移动终端的飞行模式。
需要说明地是,本实施例是在获取画面之后获取移动终端地理位置信息的,而实际上,如果先获取移动终端的地理位置信息,在判断移动终端处于机场范围之内时再获取画面也是一种可以实现的方案,该方案同样落入本发明的保护范围。
在图2所描述的飞行模式的控制方法中,移动终端获取包含的表征航班的信息,判断当前时间是否处于该航班的飞行时间段内,若是,则获取移动终端周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
进一步地,开启飞行模式之前,在移动终端的显示界面上输出提示信息,以在征得用户同意后再开启飞行模式,提高了用户体验;在获取周围环境画面之前,获取移动终端的位置信息,然后将位置信息与画面信息结合起来判断用户是否处于机舱内部,提高了判断结果的准确性。
上述详细阐述了本发明实施例的方法,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面提供了本发明实施例的移动终端。
请参见图3,图3是本发明实施例提供的一种移动终端30的结构示意图,该移动终端30包括查找单元301、第一获取单元302、判断单元303、启动单元304、匹配单元305和切换单元306,其中,各单元的功能详细介绍如下。
查找单元301用于在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,航班信息包括航班的飞行时间段,飞行时间段为航班的起飞 时刻至结束时刻之间的时间;
具体地,移动终端30一般都包含会议模式、静音模式、室外模式、飞行模式等工作模式,其中飞行模式为关闭与外界通信连接的一种工作模式,通过关闭与外界的通信连接来避免通信信号对飞机飞行的干扰,本发明实施例中,非飞行模式为除了飞行模式之外的所有工作模式。
进一步地,查找单元301获取移动终端30中各个社交应用中的航班信息,该航班信息至少包括航班的始发地、目的地、起飞时间和降落时间,介于起飞时间和降落时间之间的时间段则为航班的飞行时间段。查找单元301获取社交应用的航班信息的方式包括但不限于获取与航空公司的电话号码相关联的短信、获取通过航空公司的微信账号或QQ号发送的消息。需要说明的是,本发明实施例中查找单元301可以是移动终端30自动开启,也可以是人为触发开启,其中,移动终端30自动开启可以是移动终端30在检测到环境参数达到预设指标后自动开启,例如,检测到移动终端30电量低时开启信息获取模块、检测到移动终端30剧烈晃动时开启信息获取模块、检测到开机时开启信息获取模块等。人为触发开启可以是接收到用户通过触控预设物理按键或者虚拟按键而产生的触发事件时开启。
再进一步地,查找单元301获取航班信息的规则可预先设置好,包括但不限于定期获取(如每天早上6:00获取一次)和移动终端30每接收到社交应用的消息(短信消息、QQ消息、微信消息等)则开始获取。如图1A所示,为移动终端30接收到的来自某航空公司发送的航班信息的界面示意图,其中,航班信息101的起飞时间为4月1日4点05分,降落时间为4月1日17点10分,因此可根据飞行时间102分析出该航班的飞行时间段为4月1日的4:05—17:10,进一步地,还可以通过一些辅助信息推测出是哪一年起飞,例如,如果收到该短信是在14年4月1日之前,那么可以判断航班的具体飞行时间段为2014年4月1日的4:05—17:10。
进一步地,在一种可选的方案中,查找单元301在移动终端30处于非飞行模式下查找社交应用中包含的航班信息还可以具体为:
在移动终端30处于非飞行模式下查找社交应用中是否存在内容信息包含表征航班的关键词;当社交应用中存在包含表征航班的关键词的内容信息时,则进一步分析内容信息中是否包含时间信息;当内容信息中包含时间信息时,则确定内容信息为航班信息,并确定时间信息所表示的时间段为航班的飞行时间段。其中,关键词可以是“航班”、“起飞”、“降落”、“航空公司”等,当然关键词具体包括哪些内容要根据预先设置而定,此处不对关键词包含的内容做限制,另外,在依据关键词判断信息内容是否为航班信息时,可以仅根据一个关键词来判断,也可以结合多个关键词来判断。
再进一步地,当所述社交应用具有聊天功能时,所述内容信息包括聊天信息;当所述社交应用具有信息发布功能时,所述内容信息包括动态信息。
第一获取单元302用于获取移动终端的当前时间信息;
具体地,查找单元301在获取到航班信息以及航班信息中的飞行时间段后,第一获取单元302获取移动终端30上的当前时间,第一获取单元302在获取当前时间之前还可以先将系统时间更新,以确保当前时间的准确性。
判断单元303用于判断当前时间信息是否落入航班的飞行时间段内;
具体地,判断单元303将获取的当前时间与航班飞行时间对比,判断当前时间是否落入航班飞行时间,当获取的时间早于飞行时间或者晚于降落时间均不落于飞行时间段内,例如移动终端30的当前时间为2014年3月1日3点05分,那么该时间点在飞机起飞之前,因此不在飞行时间段内,例如移动终端30的当前时间为2014年4月1日15点05分,那么该时间点在飞机起飞之后以及降落之前,因此落入了飞行时间段内。
启动单元304用于当判断出移动终端的当前时间信息落入航班的飞行时间段内时,启动摄像头以获取移动终端周围的画面;
具体地,当对比之后,确认移动终端30当前时间落入航班的飞行时间段内时,启动单元304启动移动终端30的摄像头以获取周围的画面。
匹配单元305用于将移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端是否处于飞机机舱内部;
具体地,每一次获得画面后,匹配单元305将获得的该画面与机舱内部环境画面进行匹配或者在获得了多个画面后挑选出多个画面中的至少一个画面与机舱内部环境画面进行匹配,其中,从多个画面中挑选出至少一个画面的挑选规则可预先设置,例如按照清晰度、色彩变化程度等来选择出至少一个画面,总而言之,需要将获得的画面与机舱内部环境画面进行匹配。
进一步地,机舱内部环境画面指的是拍摄于机舱内部得到的画面,例如一张包含空姐(如图1B中的103)、密集的小窗户(如图1C中的104)的画面,在本发明实施例中,与获取的画面进行对比的机舱内部环境画面为预先在机舱内各个位置以各个角度拍摄的画面,在获取这些画面之前,相关技术人员会首先推测客户的站位(坐位)的习惯,以及拿移动终端30的角度习惯,然后模拟这些习惯拍摄机舱内部环境画面,并将这些机舱内部环境画面进行存储以供对比匹配。匹配单元305将获取的画面与机舱内部环境画面对比匹配,可根据两者拍摄的对象是否相同来确定移动终端30是否处于飞机机舱内部。
切换单元306用于当确定出移动终端处于飞机机舱内部时,将移动终端的工作模式切换至飞行模式。
具体地,当对比匹配之后,确认移动终端30处于飞机机舱内部时,切换单元306将移动终端30的工作模式切换至飞行模式。
进一步地,请参见图4,图4是图3所示的移动终端30中的匹配单元305的结构示意图,匹配单元305包括分析子单元3051和确定子单元3052。
在一种可选的方式中,各子单元的功能介绍如下。
分析子单元3051用于对比移动终端30周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值。
确定子单元3052用于当移动终端30周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定移动终端30处于飞机机舱内部;当移动终端30周围的画面与预设的飞机机舱内部环境画面的相似度未超过预设阈值时,确定移动终端30未处于飞机机舱内部。
在又一种可选的方式中,各子单元的功能介绍如下。
分析子单元3051用于分析移动终端30周围的画面,以得出移动终端30周围的画面包含的特征元素,将特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定特征元素中是否包含至少一个与飞机机舱特征元素相同的特征元素。
确定子单元3052用于当特征元素中包含至少一个与飞机机舱特征元素相同的特征元素时,确定移动终端30处于飞机机舱内部;当特征元素中不包含与飞机机舱特征元素相同的特征元素时,确定移动终端30未处于飞机机舱内部。
进一步地,请参见图5,图5是图3所示的移动终端30中的切换单元306的结构示意图,切换单元306包括提醒子单元3061和子切换子单元3062,其中,各子单元的功能详细介绍如下。
提醒子单元3061用于当确定移动终端30处于飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式。
切换子单元3062用于当接收到响应询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应提示窗口的提示输入的飞行模式开启指令时,将移动终端30的工作模式切换至飞行模式。
在图3所描述的移动终端30中,各个单元的具体实现还可以对应参照图1对应的方法实施例的相关描述。
在图3所描述的移动终端30中,移动终端30获取包含的表征航班的信息,判断当前时间是否处于该航班的飞行时间段内,若是,则获取移动终端30周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端30是否处于飞机机舱内,若是,则自动开启移动终端30的飞行模式,提高了飞机飞行的安全性。
请参见图6,图6是本发明实施例提供的又一种移动终端30的结构示意图,该移动终端30除了包括图3所示移动终端30中的查找单元301、第一获取单元302、判断单元303、启动单元304、匹配单元305和切换单元306之 外,还包括第二获取单元307和比较单元308,其中,各单元的功能详细介绍如下。
第二获取单元307用于当判断出终端处于飞机机舱内部时,获取移动终端的位置。
具体地,当判断出移动终端30处于飞机机舱内部时,第二获取单元307打开移动终端30内置的定位系统以获取移动终端30的地理位置,打开该定位系统的方式可以是移动终端30自动打开,也可以是移动终端30提示用户触发后打开。
对比单元308用于判断移动终端的位置是否属于预设的机场位置,若属于,触发切换单元306将移动终端的工作模式切换至飞行模式。
需要说明的是,图6所示的移动终端30中的各个单元的具体实现还可以对应参照图2所示实施例的具体的描述。
在图6所描述的移动终端30中,移动终端30获取包含的表征航班的信息,判断当前时间是否处于该航班的飞行时间段内,若是,则获取移动终端30周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端30是否处于飞机机舱内,若是,则自动开启移动终端30的飞行模式,提高了飞机飞行的安全性。
进一步地,开启飞行模式之前,移动终端30在显示界面上输出提示信息,以在征得用户同意后再开启飞行模式,提高了用户体验;在获取周围环境画面之前,获取移动终端30的位置信息,然后将位置信息与画面信息结合起来判断用户是否处于机舱内部,提高了判断结果的准确性。
请参见图7,图7是本发明实施例提供的又一种移动终端70的结构示意图。其中,如图7所示,该移动终端70可以包括:至少一个处理器701,例如CPU,至少一个网络接口704,用户接口703,存储器705,至少一个通信总线702以及显示屏706。其中,通信总线702用于实现这些组件之间的连接通信。其中,用户接口703可以包括显示屏(Display)706,可选用户接口703 还可以包括标准的有线接口、无线接口。通信接口704可选的可以包括标准的有线接口(如数据线接口、网线接口等)、无线接口(如WI-FI接口、蓝牙接口、近场通讯接口)。存储器705可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器705可选的还可以是至少一个位于远离前述处理器701的存储装置。如图7所示,作为一种计算机存储介质的存储器705中可以包括操作系统、网络通信模块、用户接口模块以及飞行模式开启程序。
在图7所示的移动终端70中,通信接口704主要用于连接第二终端,与第二终端进行数据通信;而处理器701可以调用存储器705中存储的飞行模式开启程序,用于执行如下操作:
在所述移动终端70处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间;
获取所述移动终端70的当前时间信息;
判断所述当前时间信息是否落入所述航班的飞行时间段内;
当判断出所述移动终端70的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端70周围的画面;
将所述移动终端70周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端70是否处于所述飞机机舱内部;
当确定出所述移动终端70处于所述飞机机舱内部时,将所述移动终端70的工作模式切换至飞行模式。
在一种可选的方案中,所述处理器701将所述移动终端70周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端70是否处于所述飞机机舱内部,具体为:
对比所述移动终端70周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
当所述移动终端70周围的画面与预设的飞机机舱内部环境画面的相似度 超过预设阈值时,确定所述移动终端70处于所述飞机机舱内部;当所述移动终端70周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端70未处于所述飞机机舱内部。
在又一种可选的方案中,所述处理器701将所述移动终端70周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端70是否处于所述飞机机舱内部,具体为:
分析所述移动终端70周围的画面,以得出所述移动终端70周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端70处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端70未处于所述飞机机舱内部。
在又一种可选的方案中,当确定所述移动终端70处于所述飞机机舱内部时,所述处理器701将所述移动终端70的工作模式切换至飞行模式,具体为:
当确定所述移动终端70处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端70的工作模式切换至飞行模式。
在又一种可选的方案中,所述处理器701将所述移动终端70的工作模式切换至飞行模式之前,还用于:
获取所述移动终端70的位置;
判断所述移动终端70的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端70的工作模式切换至飞行模式的操作。
需要说明的是,移动终端70的具体实现还可以对应参照图1和图2所示 实施例的相应描述,此处不再赘述。
综上所述,通过实施本发明实施例,通过实施本发明实施例,获取移动终端中包含的表征航班的信息,判断当前时间是否处于该航班的飞行时间段内,若是,则获取移动终端周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
进一步地,开启飞行模式之前,在移动终端的显示界面上输出提示信息,以在征得用户同意后再开启飞行模式,提高了用户体验;在获取周围环境画面之前,获取移动终端的位置信息,然后将位置信息与画面信息结合起来判断用户是否处于机舱内部,提高了判断结果的准确性。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上实施例仅揭露了本发明中较佳实施例,不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。

Claims (15)

  1. 一种飞行模式的控制方法,其特征在于,包括:
    在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间;
    获取所述移动终端的当前时间信息;
    判断所述当前时间信息是否落入所述航班的飞行时间段内;
    当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面;
    将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
    当确定出所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:
    对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
    当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
  3. 根据权利要求1所述的方法,其特征在于,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:
    分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
    当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
  4. 根据权利要求1~3任一项所述的方法,其特征在于,所述当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式,包括:
    当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
    当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
  5. 根据权利要求1~3任一项所述的方法,其特征在于,所述将所述移动终端的工作模式切换至飞行模式之前,还包括:
    获取所述移动终端的位置;
    判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的步骤。
  6. 一种移动终端,其特征在于,包括:
    查找单元,用于在移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航 班的起飞时刻至结束时刻之间的时间;
    第一获取单元,用于获取所述移动终端的当前时间信息;
    判断单元,用于判断所述当前时间信息是否落入所述航班的飞行时间段内;
    启动单元,用于当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面;
    匹配单元,用于将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
    切换单元,用于当确定出所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
  7. 根据权利要求6所述的移动终端,其特征在于,所述匹配单元包括:
    分析子单元,用于对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
    确定子单元,用于当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
  8. 根据权利要求6所述的移动终端,其特征在于,所述匹配单元包括:
    分析子单元,用于分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
    确定子单元,用于当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
  9. 根据权利要求6~8任一项所述的移动终端,其特征在于,所述切换单元包括:
    提醒子单元,用于当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
    切换子单元,用于当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
  10. 根据权利要求6~8任一项所述的移动终端,其特征在于,所述移动终端还包括:
    第二获取单元,用于获取所述移动终端的位置;
    对比单元,用于判断所述移动终端的位置是否属于预设的机场位置,若属于,触发所述切换单元执行所述的将所述移动终端的工作模式切换至飞行模式的步骤。
  11. 一种移动终端,其特征在于,所述移动终端包括处理器和存储器,所述处理器调用所述存储器中的程序,用于执行如下操作:
    在所述移动终端处于非飞行模式下查找社交应用中包含的航班信息,其中,所述航班信息包括航班的飞行时间段,所述飞行时间段为所述航班的起飞时刻至结束时刻之间的时间;
    获取所述移动终端的当前时间信息;
    判断所述当前时间信息是否落入所述航班的飞行时间段内;
    当判断出所述移动终端的当前时间信息落入所述航班的飞行时间段内时,启动摄像头以获取所述移动终端周围的画面;
    将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
    当确定出所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
  12. 根据权利要求11所述的移动终端,其特征在于,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:
    对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
    当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
  13. 根据权利要求11所述的移动终端,其特征在于,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:
    分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
    当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
  14. 根据权利要求11~13任一项所述的移动终端,其特征在于,当确定所述移动终端处于所述飞机机舱内部时,所述处理器将所述移动终端的工作模式 切换至飞行模式,具体为:
    当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
    当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
  15. 根据权利要求11~13任一项所述的移动终端,其特征在于,所述处理器将所述移动终端的工作模式切换至飞行模式之前,还用于:
    获取所述移动终端的位置;
    判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的操作。
PCT/CN2016/077080 2015-04-30 2016-03-23 一种飞行模式的控制方法及移动终端 Ceased WO2016173343A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510217907.8 2015-04-30
CN201510217907.8A CN104853040B (zh) 2015-04-30 2015-04-30 一种飞行模式的控制方法及移动终端

Publications (1)

Publication Number Publication Date
WO2016173343A1 true WO2016173343A1 (zh) 2016-11-03

Family

ID=53852387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077080 Ceased WO2016173343A1 (zh) 2015-04-30 2016-03-23 一种飞行模式的控制方法及移动终端

Country Status (2)

Country Link
CN (1) CN104853040B (zh)
WO (1) WO2016173343A1 (zh)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853041B (zh) * 2015-04-30 2017-03-01 广东欧珀移动通信有限公司 一种飞行模式的控制方法及移动终端
CN104853040B (zh) * 2015-04-30 2016-12-14 广东欧珀移动通信有限公司 一种飞行模式的控制方法及移动终端
CN106612363A (zh) * 2015-10-21 2017-05-03 深圳富泰宏精密工业有限公司 自动切换情景模式的方法以及移动设备
CN105335844A (zh) * 2015-10-23 2016-02-17 广东小天才科技有限公司 一种基于身份信息控制终端关机的方法和系统
CN105262902A (zh) * 2015-10-30 2016-01-20 宁波萨瑞通讯有限公司 一种自动开启飞行模式的方法、系统及移动终端
CN105391861B (zh) * 2015-11-23 2019-04-19 小米科技有限责任公司 提示方法及装置
CN105657157B (zh) * 2015-12-07 2019-05-14 东莞酷派软件技术有限公司 一种移动终端模式的切换方法及装置
CN105682118B (zh) * 2016-01-12 2019-07-23 深圳多尼卡互联技术有限公司 一种终端通信监管方法与系统、终端及wifi服务器
CN106254633B (zh) * 2016-07-25 2019-07-09 北京小米移动软件有限公司 手机模式调整方法和装置
WO2018023740A1 (zh) * 2016-08-05 2018-02-08 胡明祥 一种手机设置自动匹配技术的数据采集方法和手机
CN108401064B (zh) * 2017-02-07 2021-08-31 中兴通讯股份有限公司 一种终端工作控制方法、装置及终端
CN107395849B (zh) * 2017-08-09 2021-09-07 维沃移动通信有限公司 一种通话方法、移动终端及计算机可读存储介质
CN110020217B (zh) * 2017-09-05 2023-09-26 上海博泰悦臻网络技术服务有限公司 接机信息控制/显示方法/系统,介质、服务端及车载端
CN108513007A (zh) * 2018-03-27 2018-09-07 维沃移动通信有限公司 一种控制飞行模式的方法及移动终端
CN108813858A (zh) * 2018-05-21 2018-11-16 浙江吉利控股集团有限公司 拉杆箱及拉杆箱系统
CN109309759A (zh) * 2018-10-19 2019-02-05 如皋福大工程技术研究院有限公司 飞行模式自动控制方法及系统
TWI711333B (zh) 2019-02-12 2020-11-21 宏碁股份有限公司 自動地關閉收發器的方法及其行動裝置
CN110418016B (zh) * 2019-07-25 2021-06-22 中国联合网络通信集团有限公司 快速识别手机状态的方法及系统
CN113034979A (zh) * 2021-02-24 2021-06-25 飞天联合(北京)系统技术有限公司 基于场景的智能航空集装器通讯开启关闭方法及设备
CN116886816B (zh) * 2023-07-25 2025-12-26 西安广和通无线软件有限公司 一种终端设备的飞行模式控制方法、终端设备、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060046704A1 (en) * 2004-08-30 2006-03-02 Mitsubishi Denki Kabushiki Kaisha Mobile communication terminal
US20120036344A1 (en) * 2010-08-05 2012-02-09 Verizon Patent And Licensing Inc Context-sensitive user device control profile
CN102474293A (zh) * 2009-08-07 2012-05-23 三星电子株式会社 提供适合当前场景的环境的便携式终端及其操作方法
CN102938815A (zh) * 2012-11-07 2013-02-20 广东欧珀移动通信有限公司 手机情景模式切换方法及系统
CN104580696A (zh) * 2014-12-09 2015-04-29 东莞宇龙通信科技有限公司 情景模式的切换方法及系统
CN104853040A (zh) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 一种飞行模式的控制方法及移动终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448340B (zh) * 2007-11-26 2011-12-07 联想(北京)有限公司 一种检测移动终端状态的方法、系统及该移动终端
US9160729B2 (en) * 2013-08-20 2015-10-13 Paypal, Inc. Systems and methods for location-based device security
CN104484112A (zh) * 2014-12-31 2015-04-01 魅族科技(中国)有限公司 一种工作模式的切换方法及终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060046704A1 (en) * 2004-08-30 2006-03-02 Mitsubishi Denki Kabushiki Kaisha Mobile communication terminal
CN102474293A (zh) * 2009-08-07 2012-05-23 三星电子株式会社 提供适合当前场景的环境的便携式终端及其操作方法
US20120036344A1 (en) * 2010-08-05 2012-02-09 Verizon Patent And Licensing Inc Context-sensitive user device control profile
CN102938815A (zh) * 2012-11-07 2013-02-20 广东欧珀移动通信有限公司 手机情景模式切换方法及系统
CN104580696A (zh) * 2014-12-09 2015-04-29 东莞宇龙通信科技有限公司 情景模式的切换方法及系统
CN104853040A (zh) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 一种飞行模式的控制方法及移动终端

Also Published As

Publication number Publication date
CN104853040A (zh) 2015-08-19
CN104853040B (zh) 2016-12-14

Similar Documents

Publication Publication Date Title
WO2016173343A1 (zh) 一种飞行模式的控制方法及移动终端
US12572261B2 (en) Spatial navigation and creation interface
US12273656B2 (en) User interfaces to facilitate electronic communication
JP6388706B2 (ja) 無人航空機の撮影制御方法及び撮影制御装置、電子デバイス
US8706827B1 (en) Customized speech generation
US10475439B2 (en) Information processing system and information processing method
CN104902081B (zh) 一种飞行模式的控制方法及移动终端
EP4270383B1 (en) Device control using audio data
KR20190103335A (ko) 증강 현실 객체 조작
US11516167B2 (en) Storing data based on device location
CN108089891B (zh) 一种应用程序启动方法、移动终端
CN109151186B (zh) 主题切换方法和装置、电子设备、计算机可读存储介质
US11729343B2 (en) Including video feed in message thread
US12028476B2 (en) Conversation creating method and terminal device
CN110313174B (zh) 一种拍摄控制方法、装置及控制设备、拍摄设备
WO2019006767A1 (zh) 一种无人机的景点导航方法及装置
US20230208799A1 (en) Message deletion policy selection
CN109167884A (zh) 一种基于用户语音的服务方法和装置
CN111064888A (zh) 提示方法及电子设备
CN104853041B (zh) 一种飞行模式的控制方法及移动终端
US9538062B2 (en) Camera management system
KR102665972B1 (ko) 전자 장치 및 전자 장치의 메시지 데이터 출력 방법
US20250039505A1 (en) Video notification system
CN105930525A (zh) 内容搜索方法及装置
US12452515B2 (en) System and method for operating a camera based on context data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16785774

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16785774

Country of ref document: EP

Kind code of ref document: A1