WO2016173344A1 - 一种飞行模式的控制方法及移动终端 - Google Patents
一种飞行模式的控制方法及移动终端 Download PDFInfo
- Publication number
- WO2016173344A1 WO2016173344A1 PCT/CN2016/077081 CN2016077081W WO2016173344A1 WO 2016173344 A1 WO2016173344 A1 WO 2016173344A1 CN 2016077081 W CN2016077081 W CN 2016077081W WO 2016173344 A1 WO2016173344 A1 WO 2016173344A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- aircraft cabin
- picture
- mode
- feature element
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
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:
- the operating mode of the mobile terminal is switched to an airplane mode.
- the moving The picture around the terminal is matched with a preset aircraft cabin internal environment picture to determine whether the mobile terminal is 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 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 method further includes:
- an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
- a first acquiring unit configured to: in a non-flight mode, activate a camera of the mobile terminal 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 an operation mode of the mobile terminal to an airplane mode when determining 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 also 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 embodiment 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:
- the operating mode of the mobile terminal is switched to an airplane 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 screen information of the environment surrounding the mobile terminal is obtained in real time, 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 mobile terminal is automatically turned on.
- the mode improves 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 scene diagram of a feature element of an aircraft cabin provided by an embodiment of the present invention.
- FIG. 1B 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.), a smart bracelet, a step counter. Devices, etc. or other terminal devices that can be installed to deploy instant messaging application clients.
- FIG. 1 is a schematic flowchart diagram 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 In the non-flight mode, the mobile terminal starts the camera to acquire a picture around the mobile terminal.
- 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 mobile terminal further includes a camera, and the camera around the mobile terminal can be obtained by turning on the camera.
- the method for turning on the camera in the embodiment of the present invention includes the automatic opening of the mobile terminal and the opening of the human trigger, wherein the automatic opening of the mobile terminal may be automatically started after the mobile terminal detects that the environmental parameter reaches the preset standard, for example, detecting When the mobile terminal is low in power, when the mobile terminal is detected to be violently shaken, when the power is turned on, etc., the artificial triggering may be to turn on the camera when receiving a trigger event generated by the user by pressing a preset physical button or a virtual button.
- the acquired picture is randomly acquired by the camera, and which side of the camera is obtained, which side of the picture is acquired, and the number or frequency of acquiring the picture may be preset, for example, the frequency of the acquired picture is set to every 10 seconds. Get 1 time.
- Step S102 Perform a screen around the mobile terminal and a preset internal environment of the aircraft cabin. Match to determine if the mobile terminal is inside the aircraft cabin.
- the mobile terminal 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 a plurality of pictures, wherein
- the selection rule for selecting at least one of the plurality of screens may be preset, for example, selecting at least one screen 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 getting these pictures, the relevant technicians will first guess the habits of the customer's station (sitting position), and take the angle habit of the mobile terminal, and then simulate the habit of shooting the cabin interior. Environment screens and store these cabin interior environment screens 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 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 may also be specifically:
- 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 may also be specifically:
- the three-dimensional coordinate relationship between the second direction and the color, 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 obtained, and the subsequent can be photographed.
- the photo is subjected to coordinate analysis to determine whether the coordinates corresponding to the photo feature include the same data features as the data feature, and if so, it is determined that the captured photo includes the organic cabin feature element. 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; and determining that the mobile terminal is not in the aircraft cabin when the feature element does not include the same feature element as the aircraft cabin feature element internal.
- Step S103 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.
- the mobile terminal switches the working mode to the flight mode when the mobile terminal is inside the aircraft cabin.
- switching the working mode of the mobile terminal to the flight mode may be 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; when receiving the instruction input in response to the inquiry window, an instruction to confirm the flight mode is turned on or a response prompt is received.
- the operation mode of the mobile terminal is switched to the flight mode.
- the inquiry information is to ask the user whether to open the flight mode.
- there may be a window on the display interface and there are two virtual buttons in the window, one of which is “Yes” and the other is “No”, and the user clicks “Yes”. "It can trigger the mobile terminal to open the flight mode, and click "No" to abandon the flight mode.
- the prompt message is a prompt When the user turns on the flight mode, a window may pop up, displaying the message "Please turn on the flight mode”. After the user gets the prompt, the user can turn on the flight mode to open the flight mode.
- the screen information of the environment surrounding the mobile terminal is acquired in real time, 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, which improves the safety of the flight of the aircraft.
- FIG. 2 is a schematic flowchart diagram of another flight mode control method according to an embodiment of the present invention, where the method includes but is not limited to the following steps.
- Step S201 In the non-flight mode, the camera of the mobile terminal is activated to obtain a picture around the mobile terminal.
- Step S202 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.
- step S201 and step S202 may correspond to step S101 and step S102 shown in FIG. 1 respectively, and details are not described herein again.
- Step S203 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 receives the user.
- the input trigger command is turned on.
- Step S204 Determine whether the location of the mobile terminal belongs to a preset airport location.
- the mobile terminal compares the location information with the location information of the pre-acquired airports to determine whether the mobile terminal is within the airport range.
- Step S205 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 S103.
- the geographic location information of the mobile terminal is acquired after the image is acquired, but in fact, if the geographic location information of the mobile terminal is obtained first, the mobile terminal is determined to be at the airport. Retrieving the picture within the perimeter is also an achievable solution, and the solution also falls within the scope of the present invention.
- the mobile terminal acquires the picture information of the surrounding environment in real time, and compares the picture information with the pre-stored aircraft cabin picture 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, which improves the safety of the flight of the aircraft.
- the mobile terminal Before the flight mode is started, the mobile terminal outputs prompt information on the display interface to open the flight mode after obtaining the user's consent, thereby improving the user experience; acquiring the location information of the mobile terminal before acquiring the surrounding environment image, and then acquiring the location information of the mobile terminal, and 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 first acquiring unit 301, a matching unit 302, and a switching unit 303, where specific functions of each unit are detailed. Introduced as follows.
- the first obtaining unit 301 is configured to activate the camera of the mobile terminal 30 to acquire a picture around the mobile terminal 30 in the non-flying mode.
- 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 is avoided by closing the communication connection with the outside world.
- the interference of the signal to the flight of the aircraft, in the embodiment of the invention, the non-flight mode is all modes of operation except the flight mode.
- the mobile terminal 30 further includes a camera, and the screen around the mobile terminal 30 can be acquired by turning on the camera.
- the manner in which the camera is turned on in the embodiment of the present invention includes that the first obtaining unit 301 is automatically turned on and the first triggering unit 301 is manually activated.
- the first obtaining unit 301 is automatically turned on, and the mobile terminal 30 may detect the environment. After the parameter reaches the preset standard, the first obtaining unit 301 is automatically turned on. For example, when the mobile terminal 30 detects that the mobile terminal 30 is low, when the mobile terminal 30 is detected to be violently shaken, when the power is turned on, and the like, the first triggering unit 301 is activated.
- the camera is turned on when a trigger event generated by the user by pressing a preset physical button or a virtual button is received.
- the picture acquired by the first acquiring unit 301 is randomly acquired by the camera, and which side of the camera is acquired, which side of the picture is acquired. Further, the number or frequency of the first obtaining unit 301 acquiring the picture may be preset. For example, the frequency of acquiring the picture is set to be acquired once every 10 seconds.
- the matching unit 302 is configured to match the picture around the mobile terminal 30 with a preset aircraft cabin internal environment picture to determine whether the mobile terminal 30 is inside the aircraft cabin.
- the matching unit 302 matches the obtained picture with the cabin internal environment picture or selects at least one of the plurality of pictures and matches 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 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 first simulate the habit of the customer's station (sitting position), and take the angle habit of the mobile terminal 30, and then simulate these custom shooting cabins. Internal environment screens and store these cabin interior environment images for comparison matching.
- the matching unit 302 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 303 is configured to switch the operating mode of the mobile terminal 30 to the flight mode when it is determined that the mobile terminal 30 is inside the aircraft cabin.
- the switching unit 303 switches the operation mode of the mobile terminal 30 to the flight mode.
- FIG. 4 is a schematic structural diagram of the matching unit 302 in the mobile terminal 30 shown in FIG. 3.
- the matching unit 302 includes an analysis subunit 3021 and a determination subunit 3022.
- the analysis subunit 3021 is for comparing the picture around the mobile terminal 30 with the preset interior of the aircraft cabin Whether the similarity of the environment screen exceeds a preset threshold.
- the determining subunit 3022 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 3021 is configured to analyze the 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 3022 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; 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 303 in the mobile terminal 30 shown in FIG. 3.
- the switching unit 303 includes a reminding subunit 3031 and a sub-switching subunit 3032, wherein the functions of each subunit are detailed. Introduced as follows.
- the reminder sub-unit 3031 is configured to, when determining that the mobile terminal 30 is inside the aircraft cabin, issue an inquiry window to inquire whether to open the flight mode or issue a prompt window to prompt the flight mode to be turned on.
- the switching sub-unit 3032 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 the flight mode activation command in response to the prompt input of the response prompt window.
- the picture information of the environment surrounding the mobile terminal 30 is acquired in real time, 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, which improves the safety of the flight of the aircraft.
- 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 second receiving unit 301, a matching unit 302, and a switching unit 303, and includes a second acquiring.
- Unit 304 and comparison unit 305, the functions of each unit are described in detail below.
- the second obtaining unit 304 is configured to acquire location information of the mobile terminal when it is determined that the terminal is inside the aircraft cabin.
- the mobile terminal 30 opens the built-in positioning system to enable the second acquiring unit 304 to acquire the geographic location of the mobile terminal 30.
- the manner of opening the positioning system may be that the mobile terminal 30 automatically If it is turned on, the mobile terminal 30 may be turned on after receiving a trigger command input by the user.
- the comparing unit 305 is configured to determine whether the location of the mobile terminal 30 belongs to a preset airport location, and if so, the trigger switching unit 303 switches the working mode of the mobile terminal 30 to the flight mode.
- the comparison unit 305 compares the location information with the location information of the pre-acquired airports to determine whether the mobile terminal 30 is within the airport range.
- the picture information of the environment surrounding the mobile terminal 30 is acquired in real time, 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, which improves the safety of the flight of the aircraft.
- the prompt information is outputted on the display interface of the mobile terminal 30 to open the flight mode after obtaining the user's consent, thereby improving the user experience; and acquiring the location of the mobile terminal 30 before acquiring the surrounding environment screen.
- the information is then combined with the position information to determine whether the user is inside the cabin, which improves the accuracy of the judgment result.
- 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 can 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, and the optional user interface 703 can also include a standard wired interface, a wireless interface.
- 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:
- the camera of the mobile terminal 70 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:
- the processor 701 will display a picture around the mobile terminal 70. Matching with a preset aircraft cabin interior 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 correspond to the corresponding description of the embodiment shown in FIG. 1 and FIG. 2, and details are not described herein again.
- the screen information of the environment surrounding the mobile terminal is obtained in real time, 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, automatically Turn on the flight mode of the mobile terminal and improve the flight of the aircraft safety.
- 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日递交的发明名称为“一种飞行模式的控制方法及移动终端”的申请号201510218417.X的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
本发明涉及通信技术领域,尤其涉及一种飞行模式的控制方法及移动终端。
随着科学技术的迅猛发展,手机几乎已经普及到了每个人,人们可以用它打电话、发信息、拍照、购物等,可以说手机已经成为了每个人生活中的一部分。在实践中,有时候手机需要切换成飞行模式,比如,当乘客携带手机上了飞机时,必须将手机关机或者开启手机中的飞行模式,以中断手机与外界的通信,从而保证航行安全。
现有技术中,手机往往会出现这种情况,乘客在上了飞机后忘记了开启手机的飞行模式,这给飞机的安全飞行带来了极大隐患。
发明内容
本发明实施例所要解决的技术问题在于,提供一种飞行模式的控制方法及移动终端,能够在乘客上飞机后及时开启飞行模式。
第一方面,本发明实施例提供一种飞行模式的控制方法,该方法包括:
在非飞行模式下,启动移动终端的摄像头以获取所述移动终端周围的画面;
将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
结合第一方面,在第一方面的第一种可能的实现方式中,所述将所述移动
终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:
对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
结合第一方面,在第一方面的第二种可能的实现方式中,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:
分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
结合第一方面、第一方面的第一种可能的实现方式和第一方面的第二种可能的实现方式中任一种方式,在第一方面的第三种可能的实现方式中,所述当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式,包括:
当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
结合第一方面、第一方面的第一种可能的实现方式和第一方面的第二种可能的实现方式中任一种方式,在第一方面的第四种可能的实现方式中,所述将
所述移动终端的工作模式切换至飞行模式之前,还包括:
获取所述移动终端的位置;
判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的步骤。
第二方面,本发明实施例提供一种移动终端,该移动终端包括:
第一获取单元,用于在非飞行模式下,启动移动终端的摄像头以获取所述移动终端周围的画面;
匹配单元,用于将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
切换单元,用于当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
结合第二方面,在第二方面的第一种可能的实现方式中,所述匹配单元包括:
分析子单元,用于对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
确定子单元,用于当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
结合第二方面,在第二方面的第二种可能的实现方式中,所述匹配单元包括:
分析子单元,用于分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
确定子单元,用于当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
结合第二方面、第二方面的第一种可能的实现方式和第二方面的第二种可
能的实现方式中任一种方式,在第二方面的第三种可能的实现方式中,所述切换单元包括:
提醒子单元,用于当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
切换子单元,用于当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
结合第二方面、第二方面的第一种可能的实现方式和第二方面的第二种可能的实现方式中任一种方式,在第二方面的第四种可能的实现方式中,所述移动终端还包括:
第二获取单元,用于获取所述移动终端的位置;
对比单元,用于判断所述移动终端的位置是否属于预设的机场位置,若属于,触发所述切换单元执行所述的将所述移动终端的工作模式切换至飞行模式的步骤。
第三方面,本发明实施例提供一种移动终端,所述移动终端包括处理器和存储器,所述处理器调用所述存储器中的程序,用于执行如下操作:
在非飞行模式下,启动所述移动终端的摄像头以获取所述移动终端周围的画面;
将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;
当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
结合第三方面,在第三方面的第一种可能的实现方式中,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:
对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;
当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周
围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
结合第三方面,在第三方面的第二种可能的实现方式中,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:
分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;
当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
结合第三方面,或者第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,当确定所述移动终端处于所述飞机机舱内部时,所述处理器将所述移动终端的工作模式切换至飞行模式,具体为:
当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;
当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
结合第三方面,或者第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,在第三方面的第四种可能的实现方式中,所述处理器将所述移动终端的工作模式切换至飞行模式之前,还用于:
获取所述移动终端的位置;
判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的操作。
通过实施本发明实施例,实时获取移动终端周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
进一步地,开启飞行模式之前,在移动终端的显示界面上输出提示信息,以在征得用户同意后再开启飞行模式,提高了用户体验;在获取周围环境画面之前,获取移动终端的位置信息,然后将位置信息与画面信息结合起来判断用户是否处于机舱内部,提高了判断结果的准确性。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种飞行模式的控制方法的流程示意图;
图1A是本发明实施例提供的一种包含飞机机舱特征元素的场景图;
图1B是本发明实施例提供的又一种包含飞机机舱特征元素的场景图;
图2是本发明实施例提供的又一种飞行模式的控制方法的流程示意图;
图3是本发明实施例提供的一种移动终端的结构示意图;
图4是本发明实施例提供的一种匹配单元的结构示意图;
图5是本发明实施例提供的一种切换单元的结构示意图;
图6是本发明实施例提供的又一种移动终端的结构示意图;
图7是本发明实施例提供的又一种移动终端的结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
本发明所描述的移动终端可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)、可穿戴设备(例如智能手表(如iWatch等)、智能手环、计步器等)或其他可安装部署即时通讯应用客户端的终端设备。
请参见图1,图1是本发明实施例提供的一种飞行模式的控制方法的流程示意图,该方法包括但不仅限于如下步骤。
步骤S101:在非飞行模式下,移动终端启动摄像头以获取移动终端周围的画面。
具体地,移动终端一般都包含会议模式、静音模式、室外模式、飞行模式等工作模式,其中,飞行模式为关闭与外界通信连接的一种工作模式,通过关闭与外界的通信连接来避免通信信号对飞机飞行的干扰,本发明实施例中,非飞行模式为除了飞行模式之外的所有工作模式。另外,移动终端还包括摄像头,可通过开启摄像头来获取移动终端周围的画面。
需要说明的是,本发明实施例中开启摄像头的方式包括移动终端自动开启和人为触发开启,其中,移动终端自动开启可以是移动终端在检测到环境参数达到预设标准后自动开启,例如,检测到移动终端电量低时、检测到移动终端剧烈晃动时、检测到开机时等;人为触发开启可以是接收到用户通过触控预设物理按键或者虚拟按键而产生的触发事件时开启摄像头。
进一步地,获取的画面是摄像头随机获取的,当摄像头正对哪一面则获取哪一面的画面,进一步地,获取画面的次数或频率可以进行预先设置,例如将获取画面的频率设置为每10秒获取1次。
步骤S102:将移动终端周围的画面与预设的飞机机舱内部环境画面进行
匹配,以确定移动终端是否处于飞机机舱内部。
具体地,每获得一次画面后,移动终端将获得的该画面与机舱内部环境画面进行匹配或者在获得了多个画面后挑选出多个画面中的至少一个画面与机舱内部环境画面进行匹配,其中,从多个画面中挑选出至少一个画面的挑选规则可预先设置,例如按照清晰度、色彩变化程度等来选择出至少一个画面,总而言之,需要将获得的画面与机舱内部环境画面进行匹配。
进一步地,机舱内部环境画面指的是拍摄于机舱内部得到的画面,例如一张包含空姐、密集的小窗户的画面,在本发明实施例中,与获取的画面进行对比的机舱内部环境画面为预先在机舱内各个位置以各个角度拍摄的画面,在获取这些画面之前,相关技术人员会首先推测客户的站位(坐位)的习惯,以及拿移动终端的角度习惯,然后模拟这些习惯拍摄机舱内部环境画面,并将这些机舱内部环境画面进行存储以供对比匹配。将获取的画面与机舱内部环境画面对比匹配,可根据两者拍摄的对象是否相同来确定移动终端是否处于飞机机舱内部。
进一步地,在一种可选的方案中,将移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端是否处于飞机机舱内部还可以具体为:
对比移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;当移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定移动终端处于飞机机舱内部;当移动终端周围的画面与预设的飞机机舱内部环境画面的相似度未超过预设阈值时,确定移动终端未处于飞机机舱内部。
再进一步地,在又一种可选的方案中,将移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端是否处于飞机机舱内部还可以具体为:
分析移动终端周围的画面,以得出移动终端周围的画面包含的特征元素,将特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以
确定特征元素中是否包含至少一个与飞机机舱特征元素相同的特征元素,其中,特征元素为预先在机舱中拍摄的画面中的元素,如画面中的空姐(如图1A中的101)、密集小窗户(如图1B中的102)、顶为弧形宽度小长度大的舱体等,具体地,为了便于比对,在获取这些包含机舱特征元素的画面后,可建立该画面第一方向、第二方向和色彩之间的三维坐标关系,得出上述空姐和/或密集小窗户和/或顶为弧形宽度小、长度大的舱体等在坐标中的数据特征,后续可对拍摄得到的照片进行坐标分析,判断该照片对应的坐标中是否包含与上述数据特征相同的数据特征,若有则判断拍摄得到的照片中包含有机舱特征元素。当特征元素中包含至少一个与飞机机舱特征元素相同的特征元素时,确定移动终端处于飞机机舱内部;当特征元素中不包含与飞机机舱特征元素相同的特征元素时,确定移动终端未处于飞机机舱内部。
需要说明的是,以上举例说明的内容仅为部分可实现的方式,通过列举的实例还可以推导出其他可实现的方式,显然,其他可实现的方式同样落入本发明的保护范围。
步骤S103:当确定移动终端处于飞机机舱内部时,将移动终端的工作模式切换至飞行模式。
具体地,当对比匹配之后,确认移动终端处于飞机机舱内部时,移动终端将的工作模式切换至飞行模式。
进一步地,在一种可选的方案中,当确定移动终端处于飞机机舱内部时,将移动终端的工作模式切换至飞行模式可以具体为:
当确定移动终端处于飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;当接收到响应询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应提示窗口的提示输入的飞行模式开启指令时,将移动终端的工作模式切换至飞行模式。其中,询问信息是询问用户要不要开启飞行模式,此时可能在显示界面有一个窗口,该窗口中有两个虚拟按键,其中一个为“是”,另一个为“否”,用户点击“是”可以触发移动终端开启飞行模式,点击“否”则放弃开启飞行模式。而提示信息则是提示
用户开启飞行模式,此时可能弹出一个窗口,显示“请开启飞行模式”的消息,用户获得提示后可以到开启飞行模式的入口开启飞行模式。
在图1所描述的飞行模式的控制方法中,实时获取移动终端周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
请参见图2,图2是本发明实施例提供的另一种飞行模式的控制方法的流程示意图,该方法包括但不仅限于如下步骤。
步骤S201:在非飞行模式下,启动移动终端的摄像头以获取移动终端周围的画面。
步骤S202:将移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端是否处于飞机机舱内部。
具体地,步骤S201和步骤S202可以分别对应参照图1所示的步骤S101和步骤S102,此处不再赘述。
步骤S203:当判断出终端处于飞机机舱内部时,获取移动终端的位置。
具体地,当判断出移动终端处于飞机机舱内部时,移动终端打开内置的定位系统以获取移动终端的地理位置,打开该定位系统的方式可以是移动终端自动打开,也可以是移动终端接收到用户输入的触发指令后打开。
步骤S204:判断移动终端的位置是否属于预设的机场位置。
具体地,移动终端获取到位置信息后,将该位置信息与预先获取的各地机场的位置信息进行对比,以判断该移动终端是否在机场范围之内。
步骤S205:当判断出移动终端处于机场范围内时,将移动终端的工作模式切换至飞行模式。
具体地,当移动终端判断出移动终端确实处于机场范围之内时,参照步骤S103开启移动终端的飞行模式。
需要说明地是,本实施例是在获取画面之后获取移动终端地理位置信息的,而实际上,如果先获取移动终端的地理位置信息,在判断移动终端处于机场范
围之内时再获取画面也是一种可以实现的方案,该方案同样落入本发明的保护范围。
在图2所描述的飞行模式的控制方法中,移动终端实时获取周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端是否处于飞机机舱内,若是,则自动开启移动终端的飞行模式,提高了飞机飞行的安全性。
进一步地,开启飞行模式之前,移动终端在显示界面上输出提示信息,以在征得用户同意后再开启飞行模式,提高了用户体验;在获取周围环境画面之前,获取移动终端的位置信息,然后将位置信息与画面信息结合起来判断用户是否处于机舱内部,提高了判断结果的准确性。
请参见图3,图3是本发明实施例提供的一种移动终端30的结构示意图,该移动终端30包括第一获取单元301、匹配单元302和切换单元303,其中,各单元的具体功能详细介绍如下。
第一获取单元301用于在非飞行模式下,启动移动终端30的摄像头以获取移动终端30周围的画面。
具体地,移动终端30一般都包含会议模式、静音模式、室外模式、飞行模式等工作模式,其中,飞行模式为关闭与外界通信连接的一种工作模式,通过关闭与外界的通信连接来避免通信信号对飞机飞行的干扰,本发明实施例中,非飞行模式为除了飞行模式之外的所有工作模式。另外,移动终端30还包括摄像头,可通过开启摄像头来获取移动终端30周围的画面。
需要说明的是,本发明实施例中开启摄像头的方式包括第一获取单元301自动开启和人为触发第一获取单元301开启,其中,第一获取单元301自动开启可以是移动终端30在检测到环境参数达到预设标准后第一获取单元301自动开启,例如,检测到移动终端30电量低时、检测到移动终端30剧烈晃动时、检测到开机时等;人为触发开启可以是第一获取单元301接收到用户通过触控预设物理按键或者虚拟按键而产生的触发事件时开启摄像头。
进一步地,第一获取单元301获取的画面是通过摄像头随机获取的,当摄像头正对哪一面则获取哪一面的画面,进一步地,第一获取单元301获取画面的次数或频率可以进行预先设置,例如将获取画面的频率设置为每10秒获取1次。
匹配单元302用于将移动终端30周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定移动终端30是否处于飞机机舱内部。
具体地,每获得一次画面后,匹配单元302将获得的该画面与机舱内部环境画面进行匹配或者在获得了多个画面后挑选出多个画面中的至少一个画面与机舱内部环境画面进行匹配,其中,从多个画面中挑选出至少一个画面的挑选规则可预先设置,例如按照清晰度、色彩变化程度等来选择出至少一个画面,总而言之,需要将获得的画面与机舱内部环境画面进行匹配。
进一步地,机舱内部环境画面指的是拍摄于机舱内部得到的画面,例如一张包含空姐、密集的小窗户的画面,在本发明实施例中,与获取的画面进行对比的机舱内部环境画面为预先在机舱内各个位置以各个角度拍摄的画面,在获取这些画面之前,相关技术人员会先模拟客户的站位(坐位)的习惯,以及拿移动终端30的角度习惯,然后模拟这些习惯拍摄机舱内部环境画面,并将这些机舱内部环境画面进行存储以供对比匹配。匹配单元302将获取的画面与机舱内部环境画面对比匹配,可根据两者拍摄的对象是否相同来确定移动终端30是否处于飞机机舱内部。
切换单元303用于当确定移动终端30处于飞机机舱内部时,将移动终端30的工作模式切换至飞行模式。
具体地,当对比匹配之后,确认移动终端30处于飞机机舱内部时,切换单元303将移动终端30的工作模式切换至飞行模式。
进一步地,请参见图4,图4是图3所示的移动终端30中的匹配单元302的结构示意图,匹配单元302包括分析子单元3021和确定子单元3022。
在一种可选的方式中,各子单元的功能介绍如下。
分析子单元3021用于对比移动终端30周围的画面与预设的飞机机舱内部
环境画面的相似度是否超过预设阈值。
确定子单元3022用于当移动终端30周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定移动终端30处于飞机机舱内部;当移动终端30周围的画面与预设的飞机机舱内部环境画面的相似度未超过预设阈值时,确定移动终端30未处于飞机机舱内部。
在又一种可选的方式中,各子单元的功能介绍如下。
分析子单元3021用于分析移动终端30周围的画面,以得出移动终端30周围的画面包含的特征元素,将特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定特征元素中是否包含至少一个与飞机机舱特征元素相同的特征元素。
确定子单元3022用于当特征元素中包含至少一个与飞机机舱特征元素相同的特征元素时,确定移动终端30处于飞机机舱内部;当特征元素中不包含与飞机机舱特征元素相同的特征元素时,确定移动终端30未处于飞机机舱内部。
进一步地,请参见图5,图5是图3所示的移动终端30中的切换单元303的结构示意图,切换单元303包括提醒子单元3031和子切换子单元3032,其中,各子单元的功能详细介绍如下。
提醒子单元3031用于当确定移动终端30处于飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式。
切换子单元3032用于当接收到响应询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应提示窗口的提示输入的飞行模式开启指令时,将移动终端30的工作模式切换至飞行模式。
在图3所描述的移动终端30中,实时获取移动终端30周围环境的画面信息,并将该画面信息与预存的飞机机舱画面信息进行对比以确定移动终端30是否处于飞机机舱内,若是,则自动开启移动终端30的飞行模式,提高了飞机飞行的安全性。
请参见图6,图6是本发明实施例提供的又一种移动终端30的结构示意图,该移动终端30除了包括第一接收单元301、匹配单元302和切换单元303外,还包括第二获取单元304和对比单元305,各单元的功能详细介绍如下。
第二获取单元304用于当判断出终端处于飞机机舱内部时,获取移动终端的位置信息。
具体地,当判断出移动终端30处于飞机机舱内部时,移动终端30打开内置的定位系统以使第二获取单元304获取移动终端30的地理位置,打开该定位系统的方式可以是移动终端30自动打开,也可以是移动终端30接收到用户输入的触发指令后打开。
对比单元305用于判断移动终端30的位置是否属于预设的机场位置,若属于,触发切换单元303将移动终端30的工作模式切换至飞行模式。
具体地,移动终端30获取到位置信息后,对比单元305将该位置信息与预先获取的各地机场的位置信息进行对比,以判断该移动终端30是否在机场范围之内。
在图6所描述的移动终端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的工作模式切换至飞行模式。
在一种可选的方案中,所述处理器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所述的方法,其特征在于,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
- 根据权利要求1所述的方法,其特征在于,所述将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,包括:分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与 所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
- 根据权利要求1~3任一项所述的方法,其特征在于,所述当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式,包括:当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
- 根据权利要求1~3任一项所述的方法,其特征在于,所述将所述移动终端的工作模式切换至飞行模式之前,还包括:获取所述移动终端的位置;判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的步骤。
- 一种移动终端,其特征在于,包括:第一获取单元,用于在非飞行模式下,启动移动终端的摄像头以获取所述移动终端周围的画面;匹配单元,用于将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;切换单元,用于当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
- 根据权利要求6所述的移动终端,其特征在于,所述匹配单元包括:分析子单元,用于对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;确定子单元,用于当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
- 根据权利要求6所述的移动终端,其特征在于,所述匹配单元包括:分析子单元,用于分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;确定子单元,用于当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
- 根据权利要求6~8任一项所述的移动终端,其特征在于,所述切换单元包括:提醒子单元,用于当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;切换子单元,用于当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
- 根据权利要求6~8任一项所述的移动终端,其特征在于,所述移动终端还包括:第二获取单元,用于获取所述移动终端的位置;对比单元,用于判断所述移动终端的位置是否属于预设的机场位置,若属于,触发所述切换单元执行所述的将所述移动终端的工作模式切换至飞行模式的步骤。
- 一种移动终端,其特征在于,所述移动终端包括处理器和存储器,所述处理器调用所述存储器中的程序,用于执行如下操作:在非飞行模式下,启动所述移动终端的摄像头以获取所述移动终端周围的画面;将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部;当确定所述移动终端处于所述飞机机舱内部时,将所述移动终端的工作模式切换至飞行模式。
- 根据权利要求11所述的移动终端,其特征在于,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:对比所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度是否超过预设阈值;当所述移动终端周围的画面与预设的飞机机舱内部环境画面的相似度超过预设阈值时,确定所述移动终端处于所述飞机机舱内部;当所述移动终端周围的画面与所述预设的飞机机舱内部环境画面的相似度未超过所述预设阈值时,确定所述移动终端未处于所述飞机机舱内部。
- 根据权利要求11所述的移动终端,其特征在于,所述处理器将所述移动终端周围的画面与预设的飞机机舱内部环境画面进行匹配,以确定所述移动终端是否处于所述飞机机舱内部,具体为:分析所述移动终端周围的画面,以得出所述移动终端周围的画面包含的特征元素,将所述特征元素与预设的飞机机舱内部环境画面包括的飞机机舱特征元素对比,以确定所述特征元素中是否包含至少一个与所述飞机机舱特征元素相同的特征元素;当所述特征元素中包含至少一个与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端处于所述飞机机舱内部;当所述特征元素中不包含与所述飞机机舱特征元素相同的特征元素时,确定所述移动终端未处于所述飞机机舱内部。
- 根据权利要求11~13任一项所述的移动终端,其特征在于,当确定所述移动终端处于所述飞机机舱内部时,所述处理器将所述移动终端的工作模式切换至飞行模式,具体为:当确定所述移动终端处于所述飞机机舱内部时,发出询问窗口以询问是否开启飞行模式或者发出提示窗口以提示开启飞行模式;当接收到响应所述询问窗口的指示输入的确认开启飞行模式的指令或者接收到响应所述提示窗口的提示输入的飞行模式开启指令时,将所述移动终端的工作模式切换至飞行模式。
- 根据权利要求11~13任一项所述的移动终端,其特征在于,所述处理器将所述移动终端的工作模式切换至飞行模式之前,还用于:获取所述移动终端的位置;判断所述移动终端的位置是否属于预设的机场位置,若属于,执行所述将所述移动终端的工作模式切换至飞行模式的操作。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510218417.XA CN104853041B (zh) | 2015-04-30 | 2015-04-30 | 一种飞行模式的控制方法及移动终端 |
| CN201510218417.X | 2015-04-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016173344A1 true WO2016173344A1 (zh) | 2016-11-03 |
Family
ID=53852388
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/077081 Ceased WO2016173344A1 (zh) | 2015-04-30 | 2016-03-23 | 一种飞行模式的控制方法及移动终端 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104853041B (zh) |
| WO (1) | WO2016173344A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104853041B (zh) * | 2015-04-30 | 2017-03-01 | 广东欧珀移动通信有限公司 | 一种飞行模式的控制方法及移动终端 |
| CN105682118B (zh) * | 2016-01-12 | 2019-07-23 | 深圳多尼卡互联技术有限公司 | 一种终端通信监管方法与系统、终端及wifi服务器 |
| CN105759695A (zh) * | 2016-04-25 | 2016-07-13 | 广东振声科技股份有限公司 | 爆破现场末端采集控制装置和方法 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040127198A1 (en) * | 2002-12-30 | 2004-07-01 | Roskind James A. | Automatically changing a mobile device configuration based on environmental condition |
| CN103259907A (zh) * | 2012-02-15 | 2013-08-21 | 深圳富泰宏精密工业有限公司 | 情景模式切换系统及方法 |
| CN103391350A (zh) * | 2012-05-07 | 2013-11-13 | 宏碁股份有限公司 | 通信模式切换装置及其方法 |
| CN104125536A (zh) * | 2014-06-25 | 2014-10-29 | 重庆广建装饰股份有限公司 | 基于商品图片的室内定位方法 |
| CN104853040A (zh) * | 2015-04-30 | 2015-08-19 | 广东欧珀移动通信有限公司 | 一种飞行模式的控制方法及移动终端 |
| CN104853041A (zh) * | 2015-04-30 | 2015-08-19 | 广东欧珀移动通信有限公司 | 一种飞行模式的控制方法及移动终端 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101448340B (zh) * | 2007-11-26 | 2011-12-07 | 联想(北京)有限公司 | 一种检测移动终端状态的方法、系统及该移动终端 |
| KR101753915B1 (ko) * | 2011-07-04 | 2017-07-04 | 삼성전자주식회사 | 휴대단말기의 동작 모드 변경 방법 및 장치 |
| WO2013044399A1 (en) * | 2011-09-29 | 2013-04-04 | Swisscom Ag | Automatic flight mode |
| CN103327162B (zh) * | 2012-03-21 | 2015-06-03 | 华为技术有限公司 | 情景模式设置方法及终端设备 |
| US9160729B2 (en) * | 2013-08-20 | 2015-10-13 | Paypal, Inc. | Systems and methods for location-based device security |
| CN104427099B (zh) * | 2013-08-26 | 2016-12-28 | 联想(北京)有限公司 | 一种通信终端的控制方法、控制装置及通信终端 |
-
2015
- 2015-04-30 CN CN201510218417.XA patent/CN104853041B/zh not_active Expired - Fee Related
-
2016
- 2016-03-23 WO PCT/CN2016/077081 patent/WO2016173344A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040127198A1 (en) * | 2002-12-30 | 2004-07-01 | Roskind James A. | Automatically changing a mobile device configuration based on environmental condition |
| CN103259907A (zh) * | 2012-02-15 | 2013-08-21 | 深圳富泰宏精密工业有限公司 | 情景模式切换系统及方法 |
| CN103391350A (zh) * | 2012-05-07 | 2013-11-13 | 宏碁股份有限公司 | 通信模式切换装置及其方法 |
| CN104125536A (zh) * | 2014-06-25 | 2014-10-29 | 重庆广建装饰股份有限公司 | 基于商品图片的室内定位方法 |
| CN104853040A (zh) * | 2015-04-30 | 2015-08-19 | 广东欧珀移动通信有限公司 | 一种飞行模式的控制方法及移动终端 |
| CN104853041A (zh) * | 2015-04-30 | 2015-08-19 | 广东欧珀移动通信有限公司 | 一种飞行模式的控制方法及移动终端 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104853041B (zh) | 2017-03-01 |
| CN104853041A (zh) | 2015-08-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016173343A1 (zh) | 一种飞行模式的控制方法及移动终端 | |
| JP6388706B2 (ja) | 無人航空機の撮影制御方法及び撮影制御装置、電子デバイス | |
| JP7005646B2 (ja) | 撮影方法及び端末 | |
| US10475439B2 (en) | Information processing system and information processing method | |
| CN109891874B (zh) | 一种全景拍摄方法及装置 | |
| CN104902081B (zh) | 一种飞行模式的控制方法及移动终端 | |
| KR102218901B1 (ko) | 색 보정 방법 및 장치 | |
| CN108089891B (zh) | 一种应用程序启动方法、移动终端 | |
| US20170034325A1 (en) | Image-based communication method and device | |
| KR20160087268A (ko) | 이동 단말기 및 이의 제어방법 | |
| EP3299946B1 (en) | Method and device for switching environment picture | |
| CN105204621B (zh) | 一种信息传送方法及智能手表 | |
| CN110313174B (zh) | 一种拍摄控制方法、装置及控制设备、拍摄设备 | |
| WO2019006768A1 (zh) | 一种基于无人机的停车占位方法及装置 | |
| WO2016173344A1 (zh) | 一种飞行模式的控制方法及移动终端 | |
| US9538062B2 (en) | Camera management system | |
| CN108804894A (zh) | 屏幕解锁方法、装置、移动终端及计算机可读介质 | |
| CN112204943A (zh) | 拍摄方法、设备、系统及计算机可读存储介质 | |
| JP7724341B2 (ja) | ウェアラブル端末装置、プログラムおよび画像処理方法 | |
| JP7408419B2 (ja) | 情報処理システムおよび電子機器 | |
| US20180359425A1 (en) | Imaging control apparatus, imaging control method, and computer program | |
| US20150043311A1 (en) | Execution of commands in an electronic device | |
| US10838741B2 (en) | Information processing device, information processing method, and program | |
| TWI636435B (zh) | 安全防護系統、方法及電子裝置 | |
| KR20210013866A (ko) | 긴급 상황 알림 시스템 및 그 방법 |
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: 16785775 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: 16785775 Country of ref document: EP Kind code of ref document: A1 |