CN115695650B - Indoor and outdoor scene switching identification method, device, equipment and storage medium - Google Patents

Indoor and outdoor scene switching identification method, device, equipment and storage medium Download PDF

Info

Publication number
CN115695650B
CN115695650B CN202211305083.6A CN202211305083A CN115695650B CN 115695650 B CN115695650 B CN 115695650B CN 202211305083 A CN202211305083 A CN 202211305083A CN 115695650 B CN115695650 B CN 115695650B
Authority
CN
China
Prior art keywords
time period
step counting
counting state
electronic device
indoor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211305083.6A
Other languages
Chinese (zh)
Other versions
CN115695650A (en
Inventor
赵潇扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211305083.6A priority Critical patent/CN115695650B/en
Publication of CN115695650A publication Critical patent/CN115695650A/en
Application granted granted Critical
Publication of CN115695650B publication Critical patent/CN115695650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power-Operated Mechanisms For Wings (AREA)

Abstract

The disclosure relates to an indoor and outdoor scene switching identification method, device, equipment and storage medium, wherein the method comprises the following steps: detecting a door opening operation in an environment where the electronic device is located in response to detecting that a first step counting state of the electronic device in a first time period is stop; in response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period; and determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state. The method and the device can accurately identify the indoor and outdoor scene switching condition of the electronic equipment, provide reliable decision basis for upper application later, and can create finer and more intelligent service experience for users.

Description

Indoor and outdoor scene switching identification method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of mobile terminals, and in particular relates to an indoor and outdoor scene switching identification method, device and equipment and a storage medium.
Background
With the development of mobile terminal technology, devices such as smart phones have become common communication tools for people, and the devices have more and more functions to continuously improve the experience of users. With the rapid increase of the number of users, the mobile internet market becomes wider, and the user traffic becomes a necessary place for each large manufacturer. In order to enhance the viscosity of the old users and attract new users, manufacturers seek to meet the needs of the users. According to the scheme for providing different services for the user according to the indoor and outdoor scenes where the mobile terminal is located, finer and more intelligent service experience can be created for the user. Therefore, how to accurately and efficiently identify the switching between the indoor and outdoor scenes of the mobile terminal so as to provide a reliable decision basis for the upper layer application in the following process becomes one of the technical problems to be solved in the present day.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an indoor/outdoor scene switching identification method, apparatus, device, and storage medium, which are used to solve the drawbacks in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided an indoor and outdoor scene switching identification method, applied to an electronic device, the method including:
Detecting a door opening operation in an environment where the electronic device is located in response to detecting that a first step counting state of the electronic device in a first time period is stop;
In response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period;
And determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state.
In some embodiments, an inertial measurement unit is provided in the electronic device;
The method further comprises the steps of:
acquiring a first step count result of the electronic equipment in a first time period based on an inertial measurement unit, wherein the first step count result comprises step numbers acquired in a plurality of set step count periods contained in the first time period;
And in response to detecting that the first step count statistics meet a first set condition, determining that the first step count state is detected to be stop.
In some embodiments, the electronic device is provided with an air pressure measurement unit therein;
The detecting a door opening operation in an environment where the electronic device is located includes:
acquiring air pressure information of the environment where the electronic equipment is located based on the air pressure measuring unit;
and in response to detecting that the change condition of the air pressure information meets a set air pressure change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
In some embodiments, an inertial measurement unit is provided in the electronic device;
The determining that the door opening operation is detected in the environment where the electronic equipment is located in response to detecting that the change condition of the air pressure information meets a set air pressure change condition comprises the following steps:
acquiring inertial data based on the inertial measurement unit in response to detecting that the change condition of the air pressure information meets a set air pressure change condition;
And determining that a door opening operation is detected in the environment of the electronic equipment in response to the inertia data meeting a set inertia data change condition.
In some embodiments, the method further comprises determining the second step count state and the third step count state based on:
Acquiring a second step count result of the electronic equipment in the second time period, and determining the second step counting state based on the second step count result, wherein the second step count result comprises step numbers acquired in a plurality of set step counting periods contained in the second time period;
And acquiring a third step count result of the electronic equipment in the third time period, and determining the third step count state based on the third step count result, wherein the third step count result comprises step numbers acquired in a plurality of set step count periods contained in the third time period.
In some embodiments, the determining the indoor and outdoor scene switching situation of the electronic device based on the second step counting state and the third step counting state includes:
In response to detecting that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an outdoor scene to an indoor scene, wherein the outdoor step counting state comprises a state with a plurality of steps and long walking time, and the indoor step counting state comprises a state with a small number of steps and short walking time;
And in response to detecting that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an indoor scene to an outdoor scene.
In some embodiments, the electronic device is provided with a light sensing unit therein;
The method further comprises the steps of:
acquiring second ambient brightness based on the environment where the electronic equipment is located in the second time period acquired by the light sensing unit and third ambient brightness based on the environment where the electronic equipment is located in the third time period;
Determining a brightness difference between the second ambient brightness and the third ambient brightness;
And in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold, executing the operation of acquiring a second step counting state of the electronic equipment in a second time period and a third step counting state of the electronic equipment in a third time period.
In some embodiments, the method further comprises:
And in response to identifying that the electronic device is switched from an outdoor scene to an indoor scene, optimizing a mobile communication network signal of the electronic device.
According to a second aspect of embodiments of the present disclosure, there is provided an indoor and outdoor scene switching identification device applied to an electronic apparatus, the device including:
The door opening operation detection module is used for detecting door opening operation in the environment where the electronic equipment is located in response to detecting that the first step counting state of the electronic equipment in the first time period is stop;
A step counting state determining module, configured to obtain a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period in response to detection of a door opening operation in an environment where the electronic device is located, where the second time period is a previous time period of the first time period, and the third time period is a subsequent time period of the first time period;
and the scene switching identification module is used for identifying the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state.
In some embodiments, an inertial measurement unit is provided in the electronic device;
The device also comprises stop state detection modules;
the stop state detection module includes:
A first result obtaining unit, configured to obtain a first step count result of the electronic device in a first period of time based on the inertial measurement unit, where the first step count result includes a step number collected in a plurality of set step counting periods included in the first period of time;
And stop the state detection unit is used for determining that the detected first step counting state is stop in response to detecting that the first step counting result meets a first setting condition.
In some embodiments, the electronic device is provided with an air pressure measurement unit therein;
the door opening operation detection module includes:
The air pressure information acquisition unit is used for acquiring air pressure information of the environment where the electronic equipment is located based on the air pressure measurement unit;
And the door opening operation detection unit is used for determining that the door opening operation is detected in the environment where the electronic equipment is located in response to the fact that the change condition of the air pressure information is detected to meet the set air pressure change condition.
In some embodiments, an inertial measurement unit is provided in the electronic device;
the door opening operation detection unit is further configured to:
acquiring inertial data based on the inertial measurement unit in response to detecting that the change condition of the air pressure information meets a set air pressure change condition;
And determining that a door opening operation is detected in the environment of the electronic equipment in response to the inertia data meeting a set inertia data change condition.
In some embodiments, the apparatus further comprises:
A second state determining module, configured to obtain a second step count result of the electronic device in the second time period, and determine the second step count state based on the second step count result, where the second step count result includes a step number collected in a plurality of set step count periods included in the second time period;
And the third state determining module is used for acquiring a third step number statistical result of the electronic equipment in the third time period and determining the third step number state based on the third step number statistical result, wherein the third step number statistical result comprises the step numbers acquired in a plurality of set step number periods contained in the third time period.
In some embodiments, the scene cut identification module includes:
The first identifying unit is used for identifying that the indoor and outdoor scene switching condition of the electronic equipment is switched from an outdoor scene to an indoor scene in response to the fact that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, wherein the outdoor step counting state comprises a state with a large step number and long walking time, and the indoor step counting state comprises a state with a small step number and short walking time;
And the second identification unit is used for identifying that the indoor and outdoor scene switching conditions of the electronic equipment are switched from indoor scenes to outdoor scenes in response to the fact that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state.
In some embodiments, the electronic device is provided with a light sensing unit therein;
the apparatus further comprises a brightness difference determination module;
the brightness difference determining module includes:
the environment brightness acquisition unit is used for acquiring second environment brightness based on the environment where the electronic equipment is located in the second time period acquired by the light sensing unit and third environment brightness based on the environment where the electronic equipment is located in the third time period;
a luminance difference determining unit configured to determine a luminance difference between the second ambient luminance and the third ambient luminance;
The scene switching identification module is further configured to perform the operation of obtaining the second step counting state of the electronic device in the second time period and the third step counting state of the electronic device in the third time period in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold.
In some embodiments, the apparatus further comprises:
And the network signal optimization module is used for optimizing the mobile communication network signal of the electronic equipment in response to the fact that the electronic equipment is identified to be switched from the outdoor scene to the indoor scene.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, the device comprising:
a processor and a memory for storing a computer program;
Wherein the processor is configured to implement, when executing the computer program:
Detecting a door opening operation in an environment where the electronic device is located in response to detecting that a first step counting state of the electronic device in a first time period is stop;
In response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period;
And determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements:
in response to detecting that a first step counting state of the electronic device in a first time period is stop states, detecting a door opening operation in an environment where the electronic device is located;
In response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period;
And determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
According to the method and the device, the door opening operation is detected in the environment where the electronic equipment is located in response to the fact that the first step counting state of the electronic equipment in the first time period is stop, the door opening operation is detected in the environment where the electronic equipment is located in response to the fact that the door opening operation is detected in the environment where the electronic equipment is located, the second step counting state of the electronic equipment in the second time period and the third step counting state of the electronic equipment in the third time period are obtained, the second time period is the former time period of the first time period, the third time period is the latter time period of the first time period, and further, the indoor and outdoor scene switching conditions of the electronic equipment are determined based on the second step counting state and the third step counting state, the step counting state of the electronic equipment in different time periods and the door opening operation detected in the environment where the electronic equipment is located can be combined, the indoor and outdoor scene switching conditions of the electronic equipment can be accurately identified, reliable decision basis can be provided for upper layer application can be achieved, and further, more fine and intelligent service experience can be created for users.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating an indoor and outdoor scene change identification method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating how it is determined that the first step count state is detected as stop states, according to an example embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating how to determine that a door opening operation is detected in an environment in which the electronic device is located, according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating how to determine that a door opening operation is detected in an environment in which the electronic device is located, according to another exemplary embodiment of the present disclosure;
Fig. 5 is a flowchart illustrating an indoor-outdoor scene-cut recognition method according to another exemplary embodiment of the present disclosure;
FIG. 6 is a block diagram of an indoor and outdoor scene-cut recognition device according to an exemplary embodiment of the present disclosure;
FIG. 7 is a block diagram illustrating yet another indoor and outdoor scene-switch identification device according to an exemplary embodiment of the present disclosure;
Fig. 8 is a block diagram of an electronic device, according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
FIG. 1 is a flow chart illustrating an indoor and outdoor scene change identification method according to an exemplary embodiment; the method of the present embodiment may be applied to an electronic device (e.g., a smart phone, a tablet computer, a desktop computer, a wearable device, etc.).
As shown in fig. 1, the method includes the following steps S101-S102:
in step S101, in response to detecting that the first step counting state of the electronic device in the first period of time is stop, a door opening operation is detected in an environment where the electronic device is located.
In this embodiment, when the electronic device detects that the first step counting state in the first period of time is stop, the door opening operation may be detected in the environment where the electronic device is located.
It should be noted that, the step counting state or step count statistics of the electronic device described in this embodiment may be understood as a walking state or step count statistics of a user associated with the electronic device (e.g., a user carrying the electronic device).
The first period may be a period divided based on a set period, such as 30 seconds, 1 minute, 2 minutes, etc., which is not limited in this embodiment. In some embodiments, the step count state stop in the first period may be less than or equal to a preset step count threshold value, and/or the number of steps in the step count result in the first period determined to be in a stationary state is greater than or equal to a preset number threshold value.
In some embodiments, when the first step counting state of the electronic device in the first time period is determined to be stop, a door opening operation can be detected in the environment where the electronic device is located based on a setting mode. It should be noted that the setting manner may be selected from related technologies based on actual service requirements, for example, at least one of an image detection manner, a sound detection manner, and an air pressure detection manner, which is not limited in this embodiment.
In another embodiment, the above manner of detecting the door opening operation in the environment of the electronic device may be referred to the embodiment shown in fig. 2 described below, and will not be described in detail here.
In step S102, in response to detecting a door opening operation in an environment where the electronic device is located, a second step counting state of the electronic device in a second period of time and a third step counting state of the electronic device in a third period of time are acquired.
In this embodiment, after detecting a door opening operation in an environment where the electronic device is located in response to detecting that the first step counting state of the electronic device in the first time period is stop, if it is determined that the door opening operation is detected in the environment where the electronic device is located, the second step counting state of the electronic device in the second time period and the third step counting state of the electronic device in the third time period may be obtained. The second time period is a time period before the first time period, and the third time period is a time period after the first time period.
That is, when the first step counting state in the first period is detected to be stop, and the door opening operation is detected in the environment where the electronic device is located, the second step counting state of the electronic device in the second period before the first period and the third step counting state of the electronic device in the third period after the first period may be obtained.
In some embodiments, the second step counting state and/or the third step counting state may be an outdoor step counting state or an indoor step counting state, where the outdoor step counting state may refer to a state with a large number of steps and a long walking time, and the indoor step counting state may refer to a state with a small number of steps and a short walking time.
For example, to obtain a second step count state of the electronic device in a second time period and a third step count state of the electronic device in a third time period, a second step count statistic of the electronic device in the second time period may be obtained, and the second step count state may be determined based on the second step count statistic; and obtaining a third step count result of the electronic equipment in the third time period, and determining the third step count state based on the third step count result.
The second step count result includes steps collected in a plurality of set step counting periods included in the second time period. The third step count result includes the step count collected in a plurality of set step count periods included in the third period.
In some embodiments, in the second step count result and/or the third step count result, a state corresponding to the set step count period in which the step count is not acquired is a stationary state.
It should be noted that the step counting period may be set based on actual service requirements, for example, 5 seconds, which is not limited in this embodiment.
It will be appreciated that the second step count result and/or the third step count result may be obtained based on a sensor of the electronic device itself (e.g., an inertial measurement unit such as an IMU) and/or other electronic devices associated with the electronic device (e.g., a wearable device worn by a user, etc.), and the obtained results are applicable to the present embodiment, which is not limited in this embodiment.
In step S103, an indoor-outdoor scene switching situation of the electronic device is determined based on the second step counting state and the third step counting state.
In this embodiment, after the second step counting state of the electronic device in the second time period and the third step counting state of the electronic device in the third time period are obtained in response to the detection of the door opening operation in the environment where the electronic device is located, the indoor and outdoor scene switching condition of the electronic device may be determined based on the second step counting state and the third step counting state.
For example, when it is detected that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, it may be determined that the indoor and outdoor scene switching condition of the electronic device is to be switched from an outdoor scene to an indoor scene.
And when the second step counting state is detected to belong to the indoor step counting state and the third step counting state is detected to belong to the outdoor step counting state, the switching condition of the indoor and the outdoor scenes of the electronic equipment can be determined to be switched from the indoor scenes to the outdoor scenes.
In some embodiments, an electronic device may optimize a mobile communication network signal of the electronic device in response to identifying that the electronic device is switching from an outdoor scene to an indoor scene. It should be noted that, the above-mentioned manner of optimizing the mobile communication network signal of the electronic device may be selected from related technologies based on actual service requirements, for example, the electronic device may be triggered to rescan the connectable mobile communication network, so as to achieve the purpose of optimizing the mobile communication network signal of the electronic device.
As can be seen from the foregoing description, in the method of the present embodiment, in response to detecting that the first step counting state of the electronic device in the first period is stop, a door opening operation is detected in an environment where the electronic device is located, and in response to detecting that the door opening operation is detected in an environment where the electronic device is located, the second step counting state of the electronic device in the second period and the third step counting state of the electronic device in the third period are obtained, where the second period is the previous period of the first period, and the third period is the next period of the first period, and further, the indoor and outdoor scene switching situation of the electronic device is determined based on the second step counting state and the third step counting state, so that the indoor and outdoor scene switching situation of the electronic device can be accurately identified in combination with the step counting state of the electronic device in different periods and the door opening operation detected in the environment where the electronic device is located, a reliable decision basis can be provided for the upper layer application, and further, more intelligent service experience can be achieved.
FIG. 2 is a flow chart illustrating how it is determined that the first step count state is detected as stop states, according to an example embodiment of the present disclosure; the present embodiment is exemplified on the basis of the above embodiment by taking as an example how it is determined that the first step counting state is stop.
In this embodiment, on the basis of the embodiment shown in fig. 1, an inertial measurement unit, such as an IMU inertial measurement unit, may be further disposed in the electronic device. On this basis, as shown in fig. 2, before the step S101, the method of this embodiment may further include detecting that the first step counting state is stop based on the following steps S201 to S202:
in step S201, a first step count result of the electronic device in a first period of time is obtained based on the inertial measurement unit.
In this embodiment, the electronic device may obtain the first step count statistics of the electronic device in the first period of time based on the inertial measurement unit.
For example, the electronic device may collect inertial measurement data of the terminal device based on the inertial measurement unit, and further the electronic device may process the collected inertial measurement data by using a step count statistics algorithm in the related art to obtain a first step count result of the electronic device in a first period, where the first step count result includes a number of steps collected in a plurality of set step periods included in the first period.
In some embodiments, in the first step count result, a state corresponding to the set step count period in which the step count is not collected is a stationary state.
It should be noted that the step counting period may be set based on actual service requirements, for example, 5 seconds, which is not limited in this embodiment.
In step S202, in response to detecting that the first step count result satisfies a first setting condition, it is determined that the first step count state is detected as stop.
In this embodiment, after the electronic device obtains the first step count result of the electronic device in the first period based on the inertial measurement unit, whether the first step count result meets the first setting condition may be detected, and when it is determined that the first step count result meets the first setting condition, it may be determined that the first step count state is detected as stop.
In some embodiments, the first setting condition may include at least one of:
The total step number in the first step number statistical result is smaller than or equal to a preset step number threshold value;
The number of stationary states determined in the first step count result is greater than or equal to a preset number threshold.
As can be seen from the foregoing description, in this embodiment, by acquiring the first step count statistics result of the electronic device in the first period based on the inertial measurement unit, and determining that the first step count state is stop states in response to detecting that the first step count statistics result meets the first setting condition, it is possible to accurately detect that the first step count state is stop states, and further, it is possible to continuously detect the door opening operation in the environment where the electronic device is located on the basis of detecting the stop states, thereby identifying the indoor and outdoor scene switching situation of the electronic device, and being beneficial to providing reliable decision basis for upper layer applications in the following, and further creating finer and more intelligent service experience for users.
FIG. 3 is a flowchart illustrating how to determine that a door opening operation is detected in an environment in which the electronic device is located, according to an exemplary embodiment of the present disclosure; the present embodiment is exemplified on the basis of the above-described embodiments by taking as an example how it is determined that a door opening operation is detected in an environment in which the electronic apparatus is located.
In this embodiment, the electronic device is provided with an air pressure measurement unit. On this basis, as shown in fig. 3, the detection of the door opening operation in the environment where the electronic device is located as described in the above step S101 may include the following steps S301 to S302:
in step S301, air pressure information of the environment where the electronic device is located is collected based on the air pressure measurement unit.
In this embodiment, the electronic device may collect air pressure information of an environment where the electronic device is located based on the air pressure measurement unit.
The air pressure measuring unit may be, for example, an air pressure gauge, and the present embodiment is not limited thereto.
In some embodiments, the air pressure measurement unit may continuously collect air pressure information of an environment where the electronic device is located based on a set period, or may collect air pressure information of the environment where the electronic device is located in response to a control instruction of the electronic device when the electronic device detects that a first step counting state of the electronic device in a first period is a stop state. The setting period may be set based on actual service requirements, which is not limited in this embodiment.
In step S302, in response to detecting that the change condition of the air pressure information satisfies a set air pressure change condition, it is determined that a door opening operation is detected in an environment where the electronic apparatus is located.
In this embodiment, after the electronic device collects the air pressure information of the environment where the electronic device is located based on the air pressure measurement unit, whether the change condition of the air pressure information meets the set air pressure change condition or not may be detected, and when the change condition of the air pressure information is detected to meet the set air pressure change condition, it may be determined that the door opening operation is detected in the environment where the electronic device is located.
In some embodiments, the set air pressure variation condition may include a variation range of the air pressure information being greater than or equal to the set range.
Specifically, when a user carrying the electronic device walks in front of the door and enters the stop state, a door opening operation is generally performed, and the opening of the door changes the air pressure of the environment where the electronic device is located, and then the air pressure information collected by the air pressure measurement unit changes, so that the embodiment can determine whether the door opening operation is detected in the environment where the electronic device is located by whether the change condition of the air pressure information meets the set air pressure change condition.
As can be seen from the foregoing description, in this embodiment, by collecting the air pressure information of the environment where the electronic device is located based on the air pressure measurement unit, and determining that the door opening operation is detected in the environment where the electronic device is located in response to detecting that the change condition of the air pressure information meets the set air pressure change condition, the door opening operation in the environment where the electronic device is located can be accurately detected, and further, the indoor and outdoor scene switching condition of the electronic device can be identified based on the detected door opening operation, which is favorable for providing reliable decision basis for upper layer application, and further, creating finer and more intelligent service experience for users.
FIG. 4 is a flowchart illustrating how to determine that a door opening operation is detected in an environment in which the electronic device is located, according to another exemplary embodiment of the present disclosure; the present embodiment is exemplified on the basis of the above-described embodiments by taking as an example how it is determined that a door opening operation is detected in an environment in which the electronic apparatus is located.
In this embodiment, the electronic device may further be provided with an inertial measurement unit. On this basis, as shown in fig. 4, in response to detecting that the change condition of the air pressure information satisfies the set air pressure change condition, the determining that the door opening operation is detected in the environment where the electronic device is located in the above-mentioned step S302 may include the following steps S401 to S402:
In step S401, inertial data is acquired based on the inertial measurement unit in response to detecting that the change condition of the air pressure information satisfies a set air pressure change condition.
In this embodiment, the electronic device may acquire the inertial data based on the inertial measurement unit after detecting that the change condition of the air pressure information satisfies a set air pressure change condition.
For example, the inertial measurement unit may continuously collect inertial data based on a set frequency, and when the electronic device detects that the change condition of the air pressure information of the environment where the electronic device is located meets the set air pressure change condition based on the air pressure measurement unit, the inertial data collected by the inertial measurement unit in the current time period may be obtained.
In step S402, it is determined that a door opening operation is detected in an environment in which the electronic device is located in response to the inertial data satisfying a set inertial data change condition.
In this embodiment, after the electronic device acquires the inertial data based on the inertial measurement unit, it may be detected whether the inertial data satisfies a set inertial data change condition, and then when it is detected that the inertial data satisfies the set inertial data change condition, it may be determined that a door opening operation is detected in an environment where the electronic device is located.
As described above, when the user carrying the electronic device walks in front of the door and enters stop, a door opening operation is generally performed, and the opening of the door causes a change in the air pressure information collected by the air pressure measuring unit. On the basis, after the user finishes the door opening work, the user generally has the action of crossing the threshold, and the inertial data collected by the inertial measurement unit is further changed, so that the embodiment can jointly judge whether the door opening operation is detected in the environment where the electronic equipment is located by combining the air pressure information and the change condition of the inertial data, and the accuracy of judging the door opening operation can be further improved.
Fig. 5 is a flowchart illustrating an indoor-outdoor scene-cut recognition method according to another exemplary embodiment of the present disclosure; the method of the present embodiment may be applied to an electronic device (e.g., a smart phone, a tablet computer, a desktop computer, a wearable device, etc.).
In this embodiment, the electronic device may be provided with a light sensing unit, such as a light sensor.
As shown in fig. 5, the method includes the following steps S501-S505:
in step S501, in response to detecting that the first step counting state of the electronic device in the first period of time is stop, a door opening operation is detected in an environment where the electronic device is located.
In step S502, in response to detecting a door opening operation in the environment where the electronic device is located, a second ambient brightness based on the environment where the electronic device is located in the second time period and a third ambient brightness based on the environment where the electronic device is located in the third time period, which are acquired by the light sensing unit.
In step S503, a luminance difference between the second ambient luminance and the third ambient luminance is determined.
In step S504, in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold, a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period are obtained.
In step S505, an indoor-outdoor scene switching situation of the electronic device is determined based on the second step counting state and the third step counting state.
The relevant explanation and explanation of steps S501, S504 and S505 can be referred to steps S101-S103 in the embodiment shown in fig. 1, which are not described herein.
In this embodiment, after the electronic device detects the door opening operation in the environment where the electronic device is located, the second ambient brightness based on the environment where the electronic device is located in the second time period and the third ambient brightness based on the environment where the electronic device is located in the third time period, which are acquired by the light sensing unit.
The second time period is a time period before the first time period, and the third time period is a time period after the first time period. That is, when the electronic device is detected to be in stop states in the first period of time and the door opening operation is detected in the environment where the electronic device is located, the light sensing unit may acquire the second ambient brightness in the second period of time before the first period of time and the third ambient brightness in the third period of time after the first period of time.
In this embodiment, after obtaining the second ambient brightness based on the environment where the electronic device is located in the second time period and the third ambient brightness based on the environment where the electronic device is located in the third time period, which are acquired by the light sensing unit, a brightness difference between the second ambient brightness and the third ambient brightness may be determined. For example, a luminance difference value between the third ambient luminance and the second ambient luminance may be calculated as a luminance difference therebetween.
In this embodiment, after determining the brightness difference between the second ambient brightness and the third ambient brightness, the brightness difference may be compared with a preset brightness difference threshold, so that when it is detected that the brightness difference is greater than or equal to the preset brightness difference threshold, it may be determined that the environment where the electronic device is located is changed (for example, the electronic device enters the room from the indoor or enters the room from the outdoor, etc.), and further the second step counting state of the electronic device in the second time period and the third step counting state of the electronic device in the third time period may be continuously obtained, so that the step counting states of the electronic device in different time periods may be combined to identify the indoor and outdoor scene switching situation of the electronic device, so that a reliable decision basis may be provided for the upper layer application later, and further a finer and more intelligent service experience may be created for the user.
FIG. 6 is a block diagram of an indoor and outdoor scene-cut recognition device according to an exemplary embodiment of the present disclosure; the device of the embodiment can be applied to electronic equipment (such as a smart phone, a tablet computer, a desktop computer, a wearable device and the like).
As shown in fig. 6, the apparatus includes: a door opening operation detection module 110, a step counting state determination module 120, and a scene switching identification module 130, wherein:
A door opening operation detection module 110, configured to detect a door opening operation in an environment where the electronic device is located in response to detecting that a first step counting state of the electronic device in a first period of time is stop;
A step counting state determining module 120, configured to obtain, in response to detecting a door opening operation in an environment where the electronic device is located, a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, where the second time period is a previous time period of the first time period, and the third time period is a subsequent time period of the first time period;
the scene switching identification module 130 is configured to identify an indoor and outdoor scene switching situation of the electronic device based on the second step counting state and the third step counting state.
As can be seen from the foregoing description, in the apparatus of this embodiment, in response to detecting that the first step counting state of the electronic device in the first period is stop, a door opening operation is detected in an environment where the electronic device is located, and in response to detecting that the door opening operation is detected in an environment where the electronic device is located, the second step counting state of the electronic device in the second period and the third step counting state of the electronic device in the third period are obtained, where the second period is the previous period of the first period, and the third period is the next period of the first period, and further, the indoor and outdoor scene switching situation of the electronic device is determined based on the second step counting state and the third step counting state, so that the indoor and outdoor scene switching situation of the electronic device can be accurately identified in combination with the step counting state of the electronic device in different periods and the door opening operation detected in the environment where the electronic device is located, a reliable decision basis can be provided for the upper layer application, and further, more intelligent service experience can be achieved for the user.
FIG. 7 is a block diagram illustrating yet another indoor and outdoor scene-switch identification device according to an exemplary embodiment of the present disclosure; the device of the embodiment can be applied to electronic equipment (such as a smart phone, a tablet computer, a desktop computer, a wearable device and the like).
The door opening operation detection module 210, the step counting state determination module 220, and the scene switching identification module 230 have the same functions as the door opening operation detection module 110, the step counting state determination module 120, and the scene switching identification module 130 in the embodiment shown in fig. 6, and are not described in detail herein.
In some embodiments, the electronic device may further be provided with an inertial measurement unit;
Furthermore, the apparatus may further include stop a state detection module 240;
stop the status detection module 240 includes:
A first result obtaining unit 241, configured to obtain, based on the inertial measurement unit, a first step count result of the electronic device in a first period of time, where the first step count result includes a step number collected in a plurality of set step counting periods included in the first period of time;
The step stopping state detecting unit 242 is configured to determine that the first step counting state is stop states in response to detecting that the first step counting result meets a first setting condition.
In some embodiments, the electronic device may be provided with an air pressure measurement unit;
further, the door opening operation detection module 210 may include:
An air pressure information acquisition unit 211, configured to acquire air pressure information of an environment where the electronic device is located based on the air pressure measurement unit;
And a door opening operation detecting unit 212, configured to determine that a door opening operation is detected in an environment where the electronic device is located, in response to detecting that the change condition of the air pressure information satisfies a set air pressure change condition.
In some embodiments, the electronic device may be provided with an inertial measurement unit;
Further, the door opening operation detecting unit 212 may be further configured to:
acquiring inertial data based on the inertial measurement unit in response to detecting that the change condition of the air pressure information meets a set air pressure change condition;
And determining that a door opening operation is detected in the environment of the electronic equipment in response to the inertia data meeting a set inertia data change condition.
In some embodiments, the step counting state determining module 220 may include:
A second state determining unit 221, configured to obtain a second step count result of the electronic device in the second period of time, and determine the second step count state based on the second step count result, where the second step count result includes a step number acquired in a plurality of set step count periods included in the second period of time;
A third state determining unit 222, configured to obtain a third step count result of the electronic device in the third time period, and determine the third step count state based on the third step count result, where the third step count result includes a step count collected in a plurality of set step count periods included in the third time period.
In some embodiments, the scene change identification module 230 may include:
A first identifying unit 231, configured to identify that the indoor and outdoor scene switching conditions of the electronic device are switched from an outdoor scene to an indoor scene in response to detecting that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, where the outdoor step counting state includes a state with a large step number and a long walking time, and the indoor step counting state includes a state with a small step number and a short walking time;
And the second identifying unit 232 is configured to identify that the indoor and outdoor scene switching condition of the electronic device is to be switched from an indoor scene to an outdoor scene in response to detecting that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state.
In some embodiments, the electronic device may be provided with a light sensing unit;
Further, the apparatus may further include a brightness difference determining module 250;
further, the luminance difference determining module 250 may include:
An ambient brightness obtaining unit 251, configured to obtain a second ambient brightness based on the environment where the electronic device is located in the second period of time and a third ambient brightness based on the environment where the electronic device is located in the third period of time, where the second period of time is acquired by the light sensing unit;
A brightness difference determining unit 252 for determining a brightness difference between the second ambient brightness and the third ambient brightness;
On this basis, the scene change identification module 230 may be further configured to perform the operation of obtaining the second step counting state of the electronic device in the second period of time and the third step counting state of the electronic device in the third period of time in response to detecting that the luminance difference is greater than or equal to a preset luminance difference threshold.
In some embodiments, the apparatus may further include:
The network signal optimizing module 260 is configured to optimize a mobile communication network signal of the electronic device in response to identifying that the electronic device is switched from an outdoor scene to an indoor scene.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment. For example, device 900 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 8, device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 902 can include one or more modules that facilitate interaction between the processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operations at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and the like. The memory 904 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 906 provides power to the various components of the device 900. Power supply components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 900.
The multimedia component 908 comprises a screen between the device 900 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 914 includes one or more sensors for providing status assessment of various aspects of the device 900. For example, the sensor assembly 914 may detect the on/off state of the device 900, the relative positioning of the components, such as the display and keypad of the device 900, the sensor assembly 914 may also detect the change in position of the device 900 or one component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration/deceleration of the device 900, and the change in temperature of the device 900. The sensor assembly 914 may also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communication between the device 900 and other devices, either wired or wireless. The device 900 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 904 including instructions executable by the processor 920 of the device 900 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. An indoor and outdoor scene switching identification method is characterized by comprising the following steps:
in response to detecting that a first step counting state of the electronic device in a first time period is stop states, detecting a door opening operation in an environment where the electronic device is located;
In response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period;
Determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state;
The determining the indoor and outdoor scene switching situation of the electronic device based on the second step counting state and the third step counting state comprises the following steps:
In response to detecting that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an outdoor scene to an indoor scene, wherein the outdoor step counting state comprises a state with a plurality of steps and long walking time, and the indoor step counting state comprises a state with a small number of steps and short walking time;
And in response to detecting that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an indoor scene to an outdoor scene.
2. Method according to claim 1, characterized in that an inertial measurement unit is provided in the electronic device;
The method further comprises the steps of:
acquiring a first step count result of the electronic equipment in a first time period based on an inertial measurement unit, wherein the first step count result comprises step numbers acquired in a plurality of set step count periods contained in the first time period;
And in response to detecting that the first step count statistics meet a first set condition, determining that the first step count state is detected to be stop.
3. The method according to claim 1, characterized in that the electronic device is provided with a barometric cell;
The detecting a door opening operation in an environment where the electronic device is located includes:
acquiring air pressure information of the environment where the electronic equipment is located based on the air pressure measuring unit;
and in response to detecting that the change condition of the air pressure information meets a set air pressure change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
4. A method according to claim 3, characterized in that an inertial measurement unit is provided in the electronic device;
The determining that the door opening operation is detected in the environment where the electronic equipment is located in response to detecting that the change condition of the air pressure information meets a set air pressure change condition comprises the following steps:
acquiring inertial data based on the inertial measurement unit in response to detecting that the change condition of the air pressure information meets a set air pressure change condition;
And determining that a door opening operation is detected in the environment of the electronic equipment in response to the inertia data meeting a set inertia data change condition.
5. The method of claim 1, wherein the obtaining the second step count state of the electronic device during the second time period and the third step count state of the electronic device during the third time period comprises:
Acquiring a second step count result of the electronic equipment in the second time period, and determining the second step counting state based on the second step count result, wherein the second step count result comprises step numbers acquired in a plurality of set step counting periods contained in the second time period;
And acquiring a third step count result of the electronic equipment in the third time period, and determining the third step count state based on the third step count result, wherein the third step count result comprises step numbers acquired in a plurality of set step count periods contained in the third time period.
6. The method according to claim 1, wherein a light sensing unit is provided in the electronic device;
The method further comprises the steps of:
acquiring second ambient brightness based on the environment where the electronic equipment is located in the second time period acquired by the light sensing unit and third ambient brightness based on the environment where the electronic equipment is located in the third time period;
Determining a brightness difference between the second ambient brightness and the third ambient brightness;
And in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold, executing the operation of acquiring a second step counting state of the electronic equipment in a second time period and a third step counting state of the electronic equipment in a third time period.
7. The method according to claim 1, wherein the method further comprises:
And in response to identifying that the electronic device is switched from an outdoor scene to an indoor scene, optimizing a mobile communication network signal of the electronic device.
8. An indoor and outdoor scene switching identification device, the device comprising:
The door opening operation detection module is used for detecting door opening operation in the environment where the electronic equipment is located in response to detecting that the first step counting state of the electronic equipment in the first time period is stop;
A step counting state determining module, configured to obtain a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period in response to detection of a door opening operation in an environment where the electronic device is located, where the second time period is a previous time period of the first time period, and the third time period is a subsequent time period of the first time period;
the scene switching identification module is used for identifying the indoor and outdoor scene switching conditions of the electronic equipment based on the second step counting state and the third step counting state;
the scene switching identification module comprises:
The first identifying unit is used for identifying that the indoor and outdoor scene switching condition of the electronic equipment is switched from an outdoor scene to an indoor scene in response to the fact that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, wherein the outdoor step counting state comprises a state with a large step number and long walking time, and the indoor step counting state comprises a state with a small step number and short walking time;
And the second identification unit is used for identifying that the indoor and outdoor scene switching conditions of the electronic equipment are switched from indoor scenes to outdoor scenes in response to the fact that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state.
9. The apparatus of claim 8, wherein an inertial measurement unit is provided in the electronic device;
The device also comprises stop state detection modules;
the stop state detection module includes:
A first result obtaining unit, configured to obtain a first step count result of the electronic device in a first period of time based on the inertial measurement unit, where the first step count result includes a step number collected in a plurality of set step counting periods included in the first period of time;
And stop the state detection unit is used for determining that the detected first step counting state is stop in response to detecting that the first step counting result meets a first setting condition.
10. The apparatus of claim 8, wherein the electronic device has an air pressure measurement unit disposed therein;
the door opening operation detection module includes:
The air pressure information acquisition unit is used for acquiring air pressure information of the environment where the electronic equipment is located based on the air pressure measurement unit;
And the door opening operation detection unit is used for determining that the door opening operation is detected in the environment where the electronic equipment is located in response to the fact that the change condition of the air pressure information is detected to meet the set air pressure change condition.
11. The apparatus of claim 10, wherein an inertial measurement unit is provided in the electronic device;
the door opening operation detection unit is further configured to:
acquiring inertial data based on the inertial measurement unit in response to detecting that the change condition of the air pressure information meets a set air pressure change condition;
And determining that a door opening operation is detected in the environment of the electronic equipment in response to the inertia data meeting a set inertia data change condition.
12. The apparatus of claim 8, wherein the step count status determination module comprises:
A second state determining unit, configured to obtain a second step count result of the electronic device in the second time period, and determine the second step count state based on the second step count result, where the second step count result includes a step number acquired in a plurality of set step count periods included in the second time period;
And the third state determining unit is used for acquiring a third step number statistical result of the electronic equipment in the third time period and determining the third step number state based on the third step number statistical result, wherein the third step number statistical result comprises the step numbers acquired in a plurality of set step number periods contained in the third time period.
13. The apparatus of claim 8, wherein a light sensing unit is provided in the electronic device;
the apparatus further comprises a brightness difference determination module;
the brightness difference determining module includes:
the environment brightness acquisition unit is used for acquiring second environment brightness based on the environment where the electronic equipment is located in the second time period acquired by the light sensing unit and third environment brightness based on the environment where the electronic equipment is located in the third time period;
a luminance difference determining unit configured to determine a luminance difference between the second ambient luminance and the third ambient luminance;
The scene switching identification module is further configured to perform the operation of obtaining the second step counting state of the electronic device in the second time period and the third step counting state of the electronic device in the third time period in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold.
14. The apparatus of claim 8, wherein the apparatus further comprises:
And the network signal optimization module is used for optimizing the mobile communication network signal of the electronic equipment in response to the fact that the electronic equipment is identified to be switched from the outdoor scene to the indoor scene.
15. An electronic device, the device comprising:
a processor and a memory for storing a computer program;
Wherein the processor is configured to implement, when executing the computer program:
Detecting a door opening operation in an environment where the electronic device is located in response to detecting that a first step counting state of the electronic device in a first time period is stop;
In response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period;
Determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state;
The determining the indoor and outdoor scene switching situation of the electronic device based on the second step counting state and the third step counting state comprises the following steps:
In response to detecting that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an outdoor scene to an indoor scene, wherein the outdoor step counting state comprises a state with a plurality of steps and long walking time, and the indoor step counting state comprises a state with a small number of steps and short walking time;
And in response to detecting that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an indoor scene to an outdoor scene.
16. A computer readable storage medium having stored thereon a computer program, the program being embodied when executed by a processor:
in response to detecting that a first step counting state of the electronic device in a first time period is stop states, detecting a door opening operation in an environment where the electronic device is located;
In response to detecting a door opening operation in an environment where the electronic device is located, acquiring a second step counting state of the electronic device in a second time period and a third step counting state of the electronic device in a third time period, wherein the second time period is a previous time period of the first time period, and the third time period is a later time period of the first time period;
Determining the indoor and outdoor scene switching condition of the electronic equipment based on the second step counting state and the third step counting state;
The determining the indoor and outdoor scene switching situation of the electronic device based on the second step counting state and the third step counting state comprises the following steps:
In response to detecting that the second step counting state belongs to a preset outdoor step counting state and the third step counting state belongs to a preset indoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an outdoor scene to an indoor scene, wherein the outdoor step counting state comprises a state with a plurality of steps and long walking time, and the indoor step counting state comprises a state with a small number of steps and short walking time;
And in response to detecting that the second step counting state belongs to the indoor step counting state and the third step counting state belongs to the outdoor step counting state, determining that the indoor and outdoor scene switching condition of the electronic equipment is switched from an indoor scene to an outdoor scene.
CN202211305083.6A 2022-10-24 2022-10-24 Indoor and outdoor scene switching identification method, device, equipment and storage medium Active CN115695650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211305083.6A CN115695650B (en) 2022-10-24 2022-10-24 Indoor and outdoor scene switching identification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211305083.6A CN115695650B (en) 2022-10-24 2022-10-24 Indoor and outdoor scene switching identification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115695650A CN115695650A (en) 2023-02-03
CN115695650B true CN115695650B (en) 2024-05-14

Family

ID=85098705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211305083.6A Active CN115695650B (en) 2022-10-24 2022-10-24 Indoor and outdoor scene switching identification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115695650B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517361A (en) * 2013-10-25 2014-01-15 北京航空航天大学 Seamless indoor and outdoor positioning switching method
CN104457751A (en) * 2014-11-19 2015-03-25 中国科学院计算技术研究所 Method and system for recognizing indoor and outdoor scenes
CN105025440A (en) * 2015-07-09 2015-11-04 深圳天珑无线科技有限公司 Indoor/outdoor scene detection method and device
CN106642588A (en) * 2016-12-29 2017-05-10 新奥科技发展有限公司 Indoor state identification method
CN106941703A (en) * 2016-01-04 2017-07-11 上海交通大学 Indoor and outdoor seamless positioning apparatus and method based on Situation Awareness
CN107071710A (en) * 2017-04-10 2017-08-18 胡渐佳 Inlet/outlet speech-sound intelligent play system based on user's identification
CN111627132A (en) * 2020-05-26 2020-09-04 吉林大学 Driving inclination-based automobile driving characteristic evaluation and early warning method
CN113645353A (en) * 2021-08-10 2021-11-12 北京小米移动软件有限公司 Method, device, terminal and storage medium for automatically adjusting communication control parameters
CN114063129A (en) * 2020-07-29 2022-02-18 北京字节跳动网络技术有限公司 Method and device for determining use scene, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9066207B2 (en) * 2012-12-14 2015-06-23 Apple Inc. Managing states of location determination

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517361A (en) * 2013-10-25 2014-01-15 北京航空航天大学 Seamless indoor and outdoor positioning switching method
CN104457751A (en) * 2014-11-19 2015-03-25 中国科学院计算技术研究所 Method and system for recognizing indoor and outdoor scenes
CN105025440A (en) * 2015-07-09 2015-11-04 深圳天珑无线科技有限公司 Indoor/outdoor scene detection method and device
CN106941703A (en) * 2016-01-04 2017-07-11 上海交通大学 Indoor and outdoor seamless positioning apparatus and method based on Situation Awareness
CN106642588A (en) * 2016-12-29 2017-05-10 新奥科技发展有限公司 Indoor state identification method
CN107071710A (en) * 2017-04-10 2017-08-18 胡渐佳 Inlet/outlet speech-sound intelligent play system based on user's identification
CN111627132A (en) * 2020-05-26 2020-09-04 吉林大学 Driving inclination-based automobile driving characteristic evaluation and early warning method
CN114063129A (en) * 2020-07-29 2022-02-18 北京字节跳动网络技术有限公司 Method and device for determining use scene, terminal and storage medium
CN113645353A (en) * 2021-08-10 2021-11-12 北京小米移动软件有限公司 Method, device, terminal and storage medium for automatically adjusting communication control parameters

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘修文编.《新形态立体化十三五职业教育国家规划教材 物联网技术应用 智能家居 第3版》.北京:机械工业出版社,2022,第178页. *

Also Published As

Publication number Publication date
CN115695650A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
US20170344192A1 (en) Method and device for playing live videos
EP3099063A1 (en) Video communication method and apparatus
CN106766022B (en) Sensor control method and device
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN107480785B (en) Convolutional neural network training method and device
CN110262692B (en) Touch screen scanning method, device and medium
CN108769416B (en) Screen-off display method and device and non-transitory computer-readable storage medium
EP3024211A1 (en) Method and device for announcing voice call
CN108427618B (en) Method and device for determining stuck state and computer readable storage medium
US11011124B2 (en) Method and device for adjusting current of backlight, and storage medium
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN109862169B (en) Electronic equipment control method, device and storage medium
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN107734303B (en) Video identification method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN107158685B (en) Exercise verification method and apparatus
CN105786561B (en) Method and device for calling process
EP3125514A1 (en) Method and device for state notification
CN112017598A (en) Backlight brightness adjusting method and device
CN107402677B (en) Method and device for recognizing finger lifting in touch operation and terminal
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN115695650B (en) Indoor and outdoor scene switching identification method, device, equipment and storage medium
CN107528098B (en) Charging method and device
CN116347060A (en) Camera performance evaluation method, device, readable storage medium and system
CN108427582B (en) Method and device for determining stuck state and computer readable storage medium

Legal Events

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