CN115695650A - 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
CN115695650A
CN115695650A CN202211305083.6A CN202211305083A CN115695650A CN 115695650 A CN115695650 A CN 115695650A CN 202211305083 A CN202211305083 A CN 202211305083A CN 115695650 A CN115695650 A CN 115695650A
Authority
CN
China
Prior art keywords
time period
step counting
electronic equipment
counting state
state
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.)
Pending
Application number
CN202211305083.6A
Other languages
Chinese (zh)
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/CN115695650A/en
Publication of CN115695650A publication Critical patent/CN115695650A/en
Pending legal-status Critical Current

Links

Images

Abstract

The disclosure relates to an indoor and outdoor scene switching identification method, an indoor and outdoor scene switching identification device, indoor and outdoor scene switching identification equipment and a storage medium, wherein the method comprises the following steps: detecting a door opening operation in an environment where the electronic equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state; responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next time period of the first time period; and determining indoor and outdoor scene switching conditions 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, realize the follow-up reliable decision basis for upper application, and can create more precise and intelligent service experience for users.

Description

Indoor and outdoor scene switching identification method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for identifying indoor and outdoor scene switching.
Background
With the development of mobile terminal technology, devices such as smart phones have become common communication tools for people, and the more and more abundant functions of the devices also continuously improve the user experience. With the rapid increase of the number of users, the market of the mobile internet is becoming wider, and the user traffic becomes a necessary place for various manufacturers. In order to enhance the stickiness of old users and attract new users, various manufacturers seek to meet the diverse needs of users. The scheme of providing different services for the user according to the indoor and outdoor scenes where the mobile terminal is located can achieve the purpose of creating more detailed and more intelligent service experience for the user. Therefore, how to accurately and efficiently identify the switching of indoor and outdoor scenes where the mobile terminal is located to realize the subsequent provision of reliable decision bases for upper-layer applications becomes one of the technical problems to be solved at present.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for identifying an indoor/outdoor scene switch, so as to solve the defects in the related art.
According to a first aspect of the 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 equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state;
responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next time period of the first time period;
and determining indoor and outdoor scene switching conditions 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 disposed in the electronic device;
the method further comprises the following steps:
acquiring a first step number statistical result of the electronic equipment in a first time period based on an inertia measurement unit, wherein the first step number statistical result comprises step numbers acquired in a plurality of set step counting cycles contained in the first time period;
and determining that the first step counting state is detected to be a step stopping state in response to detecting that the first step counting statistical result meets a first set condition.
In some embodiments, an air pressure measuring unit is disposed in the electronic device;
the detecting of the door opening operation in the environment where the electronic equipment is located comprises:
collecting air pressure information of the environment where the electronic equipment is located based on the air pressure measuring unit;
and determining that a door opening operation is detected in the environment where the electronic equipment is located in response to the detection that the change condition of the air pressure information meets a set air pressure change condition.
In some embodiments, an inertial measurement unit is disposed in the electronic device;
the determining that a 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 a set air pressure change condition includes:
acquiring inertial data based on the inertial measurement unit in response to the fact that the change condition of the air pressure information meets a set air pressure change condition;
and in response to the inertia data meeting a set inertia data change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
In some embodiments, the method further comprises determining the second step counting state and the third step counting state based on:
acquiring a second step number statistical result of the electronic equipment in the second time period, and determining the second step counting state based on the second step number statistical result, wherein the second step number statistical result comprises the step numbers collected in a plurality of set step counting cycles included in the second time period;
and acquiring a third step count statistical result of the electronic equipment in the third time period, and determining the third step counting state based on the third step count statistical result, wherein the third step count statistical result comprises the step counts collected in a plurality of set step counting cycles included in the third time period.
In some embodiments, the determining an indoor-outdoor scene cut condition of the electronic device based on the second and third step counting states comprises:
in response to the detection 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 large number 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;
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 situation of the electronic equipment is switched from an indoor scene to an outdoor scene.
In some embodiments, a light sensing unit is disposed in the electronic device;
the method further comprises the following steps:
acquiring second ambient brightness of the environment where the electronic equipment is located in the second time period and third ambient brightness of the environment where the electronic equipment is located in the third time period, which are acquired based on the light sensing unit;
determining a brightness difference between the second ambient brightness and the third ambient brightness;
in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold value, performing the operation of 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.
In some embodiments, the method further comprises:
optimizing a mobile communication network signal of the electronic device in response to identifying that the electronic device switches from an outdoor scene to an indoor scene.
According to a second aspect of the embodiments of the present disclosure, there is provided an indoor and outdoor scene switching recognition apparatus, applied to an electronic device, the apparatus including:
the door opening operation detection module is used for responding to the fact that a first step counting state of the electronic equipment in a first time period is a step stopping state, and detecting door opening operation in the environment where the electronic equipment is located;
the step counting state determining module is used for responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next 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 disposed in the electronic device;
the device also comprises a step-down state detection module;
the step-down state detection module comprises:
the first result acquisition unit is used for acquiring a first step number statistical result of the electronic equipment in a first time period based on the inertia measurement unit, wherein the first step number statistical result comprises step numbers acquired in a plurality of set step counting periods contained in the first time period;
and the step stopping state detection unit is used for responding to the first step counting result meeting a first set condition and determining that the first step counting state is detected to be a step stopping state.
In some embodiments, an air pressure measuring unit is disposed in the electronic device;
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 detection that the change condition of the air pressure information meets the set air pressure change condition.
In some embodiments, an inertial measurement unit is disposed 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 the fact that the change condition of the air pressure information meets a set air pressure change condition;
and in response to the inertia data meeting a set inertia data change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
In some embodiments, the apparatus further comprises:
the second state determination module is used for acquiring a second step number statistical result of the electronic equipment in the second time period and determining the second step counting state based on the second step number statistical result, wherein the second step number statistical result comprises the step numbers collected in a plurality of set step counting cycles contained in the second time period;
and the third state determination module is configured to obtain a third step count statistical result of the electronic device in the third time period, and determine the third step counting state based on the third step count statistical result, where the third step count statistical result includes the number of steps acquired in a plurality of set step counting cycles included in the third time period.
In some embodiments, the scene cut identification module comprises:
the first identification unit is used for identifying that the indoor and outdoor scene switching situation of the electronic equipment is switched from an outdoor scene to an indoor scene in response to the detection 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 number 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 the second identification unit is used for identifying that the indoor and outdoor scene switching condition of the electronic equipment is switched from an indoor scene to an outdoor scene in response to the detection 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, a light sensing unit is disposed in the electronic device;
the apparatus further comprises a brightness difference determination module;
the brightness difference determination module includes:
the ambient brightness acquiring unit is used for acquiring second ambient brightness of the environment where the electronic equipment is located in the second time period and third ambient brightness of the environment where the electronic equipment is located in the third time period, which are acquired by the light sensing unit;
a brightness difference determination unit for determining a brightness difference between the second ambient brightness and the third ambient brightness;
the scene switching identification module is further configured to execute the operation of 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 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 responding to the recognition that the electronic equipment is switched from an outdoor scene to an indoor scene, and optimizing the mobile communication network signal of the electronic equipment.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic apparatus, the apparatus comprising:
a processor and a memory for storing a computer program;
wherein the processor is configured to, when executing the computer program, implement:
detecting a door opening operation in an environment where the electronic equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state;
responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next time period of the first time period;
and determining indoor and outdoor scene switching conditions 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:
detecting a door opening operation in an environment where the electronic equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state;
in response to the detection of door opening operation in the environment where the electronic equipment is located, 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next time period of the first time period;
and determining indoor and outdoor scene switching conditions 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 have the following beneficial effects:
according to the method, in response to the fact that the first step counting state of the electronic equipment in the first time period is detected to be a step stop state, 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 previous time period of the first time period, the third time period is the later time period of the first time period, and then the indoor and outdoor scene switching condition of the electronic equipment is determined based on the second step counting state and the third step counting state.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an indoor and outdoor scene change recognition 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-counting state is detected as a step-down state according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating how a door open operation is determined to be detected in an environment in which the electronic device is located according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating how a door open operation is determined to be 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 and outdoor scene change identification method according to another exemplary embodiment of the present disclosure;
fig. 6 is a block diagram illustrating an indoor and outdoor scene change recognition apparatus according to an exemplary embodiment of the present disclosure;
fig. 7 is a block diagram illustrating yet another indoor and outdoor scene change recognition apparatus according to an exemplary embodiment of the present disclosure;
fig. 8 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the exemplary embodiments below do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
FIG. 1 is a flow diagram illustrating a method for identifying indoor and outdoor scene cuts in accordance with an exemplary embodiment; the method of the embodiment can be applied to electronic devices (e.g., smart phones, tablet computers, desktop computers, wearable devices, etc.).
As shown in fig. 1, the method comprises the following steps S101-S102:
in step S101, in response to detecting that a first step counting state of the electronic device in a first time period is a step stop state, 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 of the electronic device itself in the first time period is the step stop state, the door opening operation may be detected in an environment where the electronic device is located.
It should be noted that the step counting state or the step counting result of the electronic device described in this embodiment may be understood as a walking state or a step counting result of a user (e.g., a user carrying the electronic device) associated with the electronic device.
The first time period may be a time period divided based on a set time period, such as 30 seconds, 1 minute, 2 minutes, and the like, which is not limited in this embodiment. In some embodiments, the step counting status in the first time period is a step stop status, and the total number of steps in the step count statistics in the first time period is less than or equal to a preset step threshold, and/or the number of steps in the step count statistics in the first time period that are determined to be in a stationary state is greater than or equal to a preset number threshold.
In some embodiments, when it is determined that the first step counting state of the electronic device in the first time period is the step stop state, the door opening operation may be detected in an environment where the electronic device is located based on a set manner. It should be noted that the setting manner may be selected from related technologies based on actual service needs, for example, the setting manner is selected as 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 manner of detecting the door opening operation in the environment of the electronic device may be referred to the following embodiment shown in fig. 2, which will not be described in detail herein.
In step S102, in response to detecting a door opening operation in an environment in which 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 are acquired.
In this embodiment, after detecting that a first step counting state of the electronic device in a first time period is a step stop state and detecting a door opening operation in an environment where the electronic device is located, if it is determined that the door opening operation is detected in the 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 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 it is detected that the first step counting state in the first time period is a step stop state and a door opening operation is detected in an environment where the electronic device is located, a second step counting state of the electronic device in a second time period before the first time period and a third step counting state of the electronic device in a third time period after the first time 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, wherein the outdoor step counting state may indicate a state with a large number of steps and a long walking time, and the indoor step counting state may indicate a state with a small number of steps and a short walking time.
For example, 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, a second step counting result of the electronic device in the second time period may be obtained, and the second step counting state may be determined based on the second step counting result; and acquiring a third step counting result of the electronic equipment in the third time period, and determining the third step counting state based on the third step counting result.
And the second step number statistical result comprises the step numbers collected in a plurality of set step counting cycles contained in the second time period. The third step count statistical result includes the step counts collected in a plurality of set step counting cycles included in the third time period.
In some embodiments, in the second step count statistical result and/or the third step count statistical result, a state corresponding to a set step counting period in which the step count is not acquired is a static state.
It should be noted that the step counting period may be set based on actual service needs, for example, set to 5 seconds, and the embodiment does not limit this.
It is understood that the second step count statistical result and/or the third step count statistical result may be obtained based on a sensor of the electronic device itself (e.g., an inertial measurement unit such as an IMU, etc.) and/or other electronic devices associated with the electronic device (e.g., a wearable device worn by the user, etc.), and the obtained results are applicable to this 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 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 response to detection of a door opening operation in an environment where the electronic device is located, an 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 situation of the electronic device is switching from an outdoor scene to an indoor scene.
When it is detected 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, it may be determined that the indoor and outdoor scene switching condition of the electronic device is switched from an indoor scene to an outdoor scene.
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 switches from an outdoor scenario to an indoor scenario. It should be noted that, the above-mentioned method for optimizing the mobile communication network signal of the electronic device may be selected from related technologies based on actual service needs, 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 above description, in the method of this embodiment, in response to detecting that the first step counting state of the electronic device in the first time period is the step stop state, detecting a door opening operation in the environment where the electronic device is located, and in response to detecting a door opening operation in the environment where the electronic device is located, acquiring 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, 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 further determining the indoor and outdoor scene switching condition of the electronic device based on the second step counting state and the third step counting state, the indoor and outdoor scene switching condition of the electronic device can be accurately identified in combination with the step counting states of the electronic device in different time periods and the door opening operation detected in the environment where the electronic device is located, and reliable decision bases can be subsequently provided for upper layer applications, so that a finer and more intelligent service experience can be created for a user.
FIG. 2 is a flowchart illustrating how it is determined that the first step counting state is detected as a step down state according to an exemplary embodiment of the present disclosure; the present embodiment is exemplified by how to determine that the first step counting state is detected as the step stop state on the basis of the above embodiments.
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 also be 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 the step stop state based on the following steps S201 to S202:
in step S201, a first step count statistic result of the electronic device in a first time period is obtained based on the inertia measurement unit.
In this embodiment, the electronic device may obtain a first step count statistical result of the electronic device in a first time period based on the inertia measurement unit.
For example, the electronic device may acquire the inertia measurement data of the terminal device based on the inertia measurement unit, and then the electronic device may process the acquired inertia measurement data by using a step counting algorithm in the related art to obtain a first step counting result of the electronic device in a first time period, where the first step counting result includes the number of steps acquired in a plurality of set step counting periods included in the first time period.
In some embodiments, in the first step count statistical result, a state corresponding to a set step count period in which the step count is not collected is a static state.
It should be noted that the step counting period may be set based on actual service needs, for example, set to 5 seconds, and the embodiment does not limit this.
In step S202, in response to detecting that the first step count statistic result satisfies a first set condition, it is determined that the first step counting state is detected as a step stop state.
In this embodiment, after the electronic device obtains the first step count statistical result of the electronic device in the first time period based on the inertia measurement unit, it may be detected whether the first step count statistical result satisfies a first setting condition, and then it may be determined that the first step count state is detected as the step stop state when it is determined that the first step count statistical result satisfies the first setting condition.
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 less than or equal to a preset step number threshold value;
the number of the first step number statistical results which are judged to be in the static state is larger than or equal to a preset number threshold value.
As can be seen from the above description, in this embodiment, a first step count statistical result of the electronic device in a first time period is obtained based on the inertia measurement unit, and in response to that the first step count statistical result meets a first setting condition, it is determined that the first step counting state is the step stopping state, so that the first step counting state can be accurately detected as the step stopping state, and further, the door opening operation in the environment where the electronic device is located can be continuously detected subsequently on the basis of the detected step stopping state, thereby identifying the indoor and outdoor scene switching condition of the electronic device, facilitating to subsequently provide a reliable decision basis for the upper-layer application, and further creating a more detailed and more intelligent service experience for the user.
FIG. 3 is a flow chart illustrating how a door open operation is determined to be 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 by how to determine that a door opening operation is detected in an environment where the electronic device is located, based on the above-described embodiments.
In this embodiment, an air pressure measuring unit is disposed in the electronic device. On this basis, as shown in fig. 3, the detecting of the door opening operation in the environment where the electronic device is located in the above step S101 may include the following steps S301 to S302:
in step S301, air pressure information of an environment where the electronic device is located is collected based on the air pressure measurement unit.
In this embodiment, the electronic device may acquire the atmospheric pressure information of the environment where the electronic device is located based on the atmospheric pressure measurement unit.
The air pressure measuring unit may be, for example, an air pressure gauge, and the present embodiment does not limit this.
In some embodiments, the air pressure measurement unit may continuously acquire air pressure information of an environment where the electronic device is located based on a set period, or may acquire the 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 time period is a step stop state. The setting period may be set based on actual service needs, 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 in which the electronic device is located.
In this embodiment, after the electronic device collects the atmospheric pressure information of the environment where the electronic device is located based on the atmospheric pressure measurement unit, it may be detected whether a change condition of the atmospheric pressure information satisfies a set atmospheric pressure change condition, and then when it is detected that the change condition of the atmospheric pressure information satisfies the set atmospheric pressure change condition, it may be determined that a 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 that a variation range of the air pressure information is greater than or equal to a set range.
Specifically, after a user carrying the electronic device walks to the front of the door and enters a stop state, the door opening operation is usually performed, and the opening of the door changes the air pressure of the environment where the electronic device is located, so that the air pressure information collected by the air pressure measurement unit changes.
As can be seen from the above description, in this embodiment, the air pressure information of the environment where the electronic device is located is acquired based on the air pressure measurement unit, and the door opening operation is determined to be detected in the environment where the electronic device is located in response to the detection that the change condition of the air pressure information satisfies the set air pressure change condition, so that the door opening operation in the environment where the electronic device is located can be accurately detected, and then the indoor and outdoor scene switching condition of the electronic device can be identified subsequently on the basis of the detected door opening operation, which is beneficial to subsequently providing a reliable decision basis for upper-layer applications, and further creating a more detailed and more intelligent service experience for users.
FIG. 4 is a flow chart illustrating how a door open operation is determined to be 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 by how to determine that a door opening operation is detected in an environment where the electronic device is located, based on the above-described embodiments.
In this embodiment, the electronic device may further include an inertia measurement unit. On this basis, as shown in fig. 4, the step S302 of determining that a 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 satisfies the set air pressure change condition may include the following steps S401 to S402:
in step S401, in response to detecting that the change condition of the air pressure information satisfies a set air pressure change condition, inertial data is acquired based on the inertial measurement unit.
In this embodiment, the electronic device may obtain the inertial data based on the inertial measurement unit after detecting that the change condition of the air pressure information satisfies the set air pressure change condition.
For example, the inertia measurement unit may continuously acquire inertia data based on a set frequency, and when the electronic device detects that a change condition of the atmospheric pressure information of the environment where the electronic device is located based on the atmospheric pressure measurement unit satisfies a set atmospheric pressure change condition, the inertia data acquired by the inertia measurement unit in the current time period may be acquired.
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 obtains the inertial data based on the inertial measurement unit, it may be detected whether the inertial data meets a set inertial data change condition, and then when it is detected that the inertial data meets 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 mentioned above, when a user carrying the electronic device walks to the front of the door and enters a stop state, a door opening operation is usually performed, and the opening of the door causes a change in the air pressure information collected by the air pressure measurement unit. On the basis, after the user finishes the door opening work, the user usually has the action of crossing the threshold, and further the inertia data collected by the inertia measurement unit is 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 inertia data, and the accuracy of door opening operation judgment can be further improved.
FIG. 5 is a flowchart illustrating a method for identifying an indoor and outdoor scene cut, according to another exemplary embodiment of the present disclosure; the method of the embodiment can be applied to electronic devices (e.g., smart phones, tablet computers, desktop computers, wearable devices, 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 to S505:
in step S501, in response to detecting that a first step counting state of the electronic device in a first time period is a step stop state, 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 of the environment where the electronic device is located in the second time period and a third ambient brightness of the environment where the electronic device is located in the third time period, which are acquired by the light sensing unit, are acquired.
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 explanations and explanations of steps S501, S504, and S505 may refer to steps S101 to S103 in the embodiment shown in fig. 1, which are not repeated herein.
In this embodiment, after the electronic device detects a door opening operation in the environment where the electronic device is located, second environment brightness of the environment where the electronic device is located in the second time period and third environment brightness of the environment where the electronic device is located in the third time period, which are acquired based on the light sensing unit, may be acquired.
Wherein 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 it is detected that the electronic device is in the step-down state at the first time period and a door opening operation is detected in an environment where the electronic device is located, a second ambient brightness in a second time period before the first time period and a third ambient brightness in a third time period after the first time period may be obtained based on the light sensing unit.
In this embodiment, after obtaining a second ambient brightness of the environment where the electronic device is located in the second time period and a third ambient brightness of the environment where the electronic device is located in the third time period, which are collected 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 environment brightness and the third environment brightness, the brightness difference may be compared with a preset brightness difference threshold, and then 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 changes (for example, the electronic device enters outdoors from indoors or enters indoors from outdoors), and then 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 may be continuously obtained, so as to identify the indoor and outdoor scene switching conditions of the electronic device by combining the step counting states of the electronic device in different time periods, and it may be implemented to subsequently provide a reliable decision basis for upper-layer applications, and further implement creating a finer and more intelligent service experience for a user.
Fig. 6 is a block diagram illustrating an indoor and outdoor scene change recognition apparatus according to an exemplary embodiment of the present disclosure; the apparatus of the embodiment may be applied to an electronic device (e.g., a smartphone, a tablet, a desktop computer, a wearable device, etc.).
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:
the door opening operation detection module 110 is 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 time period is a step stop state;
a step counting state determining module 120, configured to, in response to detection of a door opening operation in an environment where the electronic device is located, acquire 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;
and a scene switching identification module 130, 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 above description, in the apparatus of this embodiment, in response to detecting that the first step counting state of the electronic device in the first time period is a step stop state, detecting a door opening operation in an environment where the electronic device is located, and 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 the second time period and a third step counting state of the electronic device in the 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 later time period of the first time period, and further determining an indoor and outdoor scene switching condition of the electronic device based on the second step counting state and the third step counting state, the indoor and outdoor scene switching condition of the electronic device can be accurately identified by combining the step counting states of the electronic device in different time periods and the door opening operation detected in the environment where the electronic device is located, and reliable decision bases can be subsequently provided for upper layer applications, so as to create a finer and more intelligent service experience for users.
Fig. 7 is a block diagram illustrating yet another indoor and outdoor scene change recognition apparatus according to an exemplary embodiment of the present disclosure; the apparatus of the embodiment may be applied to an electronic device (e.g., a smartphone, a tablet, a desktop computer, a wearable device, etc.).
The functions of the door opening operation detecting module 210, the step counting state determining module 220, and the scene switching identifying module 230 are the same as those of the door opening operation detecting module 110, the step counting state determining module 120, and the scene switching identifying module 130 in the embodiment shown in fig. 6, and are not described herein again.
In some embodiments, an inertia measurement unit may be further disposed in the electronic device;
furthermore, the apparatus may further include a step-down status detection module 240;
the out-of-step status detection module 240 includes:
a first result obtaining unit 241, configured to obtain a first step count statistical result of the electronic device in a first time period based on an inertial measurement unit, where the first step count statistical result includes step counts acquired in a plurality of set step counting cycles included in the first time period;
a step stop state detection unit 242, configured to determine that the first step counting state is detected as a step stop state in response to detecting that the first step count statistical result satisfies a first set condition.
In some embodiments, an air pressure measuring unit may be disposed in the electronic device;
further, the door opening operation detecting module 210 may include:
the air pressure information acquisition unit 211 is configured to acquire air pressure information of an environment where the electronic device is located based on the air pressure measurement unit;
a door opening operation detection unit 212, configured to determine that a 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 satisfies a set air pressure change condition.
In some embodiments, an inertial measurement unit may be disposed in the electronic device;
further, the door opening operation detection unit 212 may be further configured to:
acquiring inertial data based on the inertial measurement unit in response to the fact that the change condition of the air pressure information meets a set air pressure change condition;
and in response to the inertia data meeting a set inertia data change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
In some embodiments, the step-counting status determining module 220 may include:
a second state determining unit 221, configured to obtain a second step count statistical result of the electronic device in the second time period, and determine the second step counting state based on the second step count statistical result, where the second step count statistical result includes the number of steps acquired in a plurality of set step counting cycles included in the second time period;
a third state determining unit 222, configured to obtain a third step count statistical result of the electronic device in the third time period, and determine the third step counting state based on the third step count statistical result, where the third step count statistical result includes the number of steps acquired in a plurality of set step counting cycles included in the third time period.
In some embodiments, the scene-cut identifying module 230 may include:
a first identification unit 231, configured to identify that an indoor/outdoor scene switching situation of the electronic device is 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 number of steps and a long walking time, and the indoor step counting state includes a state with a small number of steps and a short walking time;
a second identifying unit 232, configured to identify an indoor/outdoor scene switching situation of the electronic device as switching 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, a light sensing unit may be disposed in the electronic device;
furthermore, the apparatus may further include a brightness difference determining module 250;
further, the brightness difference determining module 250 may include:
the ambient brightness acquiring unit 251 is configured to acquire a second ambient brightness of the environment where the electronic device is located in the second time period and a third ambient brightness of the environment where the electronic device is located in the third time period, which are acquired by the light sensing unit;
a luminance difference determination unit 252 for determining a luminance difference between the second ambient luminance and the third ambient luminance;
on this basis, the scene change recognition module 230 may be further configured to perform the operation of acquiring 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 the preset brightness difference threshold.
In some embodiments, the apparatus may further include:
a network signal optimization module 260, 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 scenario to an indoor scenario.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 8, device 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between 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 operation 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 so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices 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 disks.
The power component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia components 908 include a screen that provides an output interface between the device 900 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect 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 operating 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 a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when 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 further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and a peripheral interface module, which may be a keyboard, click wheel, button, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the device 900. For example, the sensor component 914 may detect an open/closed state of the device 900, the relative positioning of components, such as a display and keypad of the device 900, the sensor component 914 may also detect a change in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, orientation or acceleration/deceleration of the device 900, and a change in the temperature of the device 900. The sensor assembly 914 may also include a proximity sensor configured to detect the presence of nearby objects in the absence of 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the device 900 and other devices in a wired or wireless manner. 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 an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an 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 device 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the device 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. The method for identifying indoor and outdoor scene switching is applied to electronic equipment, and comprises the following steps:
detecting a door opening operation in an environment where the electronic equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state;
responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next time period of the first time period;
and determining indoor and outdoor scene switching conditions of the electronic equipment based on the second step counting state and the third step counting state.
2. The method of claim 1, wherein an inertial measurement unit is provided in the electronic device;
the method further comprises the following steps:
acquiring a first step number statistical result of the electronic equipment in a first time period based on an inertia measurement unit, wherein the first step number statistical result comprises step numbers acquired in a plurality of set step counting cycles contained in the first time period;
in response to detecting that the first step count statistic result meets a first set condition, determining that the first step counting state is detected as a step stopping state.
3. The method of claim 1, wherein an air pressure measuring unit is provided in the electronic device;
the detecting of the door opening operation in the environment where the electronic equipment is located includes:
collecting air pressure information of the environment where the electronic equipment is located based on the air pressure measuring unit;
and determining that a 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.
4. The method of claim 3, wherein an inertial measurement unit is provided in the electronic device;
the determining that a 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 a set air pressure change condition includes:
acquiring inertial data based on the inertial measurement unit in response to the fact that the change condition of the air pressure information meets a set air pressure change condition;
and in response to the inertia data meeting a set inertia data change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
5. The method of claim 1, wherein the obtaining 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 comprises:
acquiring a second step number statistical result of the electronic equipment in the second time period, and determining the second step counting state based on the second step number statistical result, wherein the second step number statistical result comprises the step numbers collected in a plurality of set step counting cycles included in the second time period;
and acquiring a third step count statistical result of the electronic equipment in the third time period, and determining the third step counting state based on the third step count statistical result, wherein the third step count statistical result comprises the step counts collected in a plurality of set step counting cycles included in the third time period.
6. The method of claim 1, wherein determining an indoor-outdoor context switch condition of the electronic device based on the second and third step counting states comprises:
in response to the detection 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 large number 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;
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 situation of the electronic equipment is switched from an indoor scene to an outdoor scene.
7. The method of claim 1, wherein a light sensing unit is disposed in the electronic device;
the method further comprises the following steps:
acquiring second ambient brightness of the environment where the electronic equipment is located in the second time period and third ambient brightness of the environment where the electronic equipment is located in the third time period, which are acquired based on the light sensing unit;
determining a brightness difference between the second ambient brightness and the third ambient brightness;
in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold value, performing the operation of 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.
8. The method of claim 1, further comprising:
optimizing a mobile communication network signal of the electronic device in response to identifying that the electronic device switches from an outdoor scene to an indoor scene.
9. The utility model provides an indoor outer scene switches recognition device which characterized in that is applied to electronic equipment, the device includes:
the door opening operation detection module is used for responding to the detection that a first step counting state of the electronic equipment in a first time period is a step stopping state, and detecting door opening operation in the environment where the electronic equipment is located;
the step counting state determining module is used for responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next 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.
10. The apparatus of claim 9, wherein an inertial measurement unit is disposed in the electronic device;
the device also comprises a step-out state detection module;
the step-out state detection module comprises:
the first result obtaining unit is used for obtaining a first step number statistical result of the electronic equipment in a first time period based on the inertia measuring unit, wherein the first step number statistical result comprises step numbers collected in a plurality of set step counting cycles contained in the first time period;
and the step stopping state detection unit is used for responding to the detection that the first step counting statistical result meets a first set condition and determining that the first step counting state is detected to be a step stopping state.
11. The apparatus according to claim 9, wherein an air pressure measuring unit is provided in the electronic device;
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 responding to the detected change condition of the air pressure information and meeting the set air pressure change condition, and determining that the door opening operation is detected in the environment where the electronic equipment is located.
12. The apparatus of claim 11, wherein an inertial measurement unit is disposed 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 the fact that the change condition of the air pressure information meets a set air pressure change condition;
and in response to the inertia data meeting a set inertia data change condition, determining that a door opening operation is detected in the environment where the electronic equipment is located.
13. The apparatus of claim 9, wherein the step-counting status determination module comprises:
the second state determining unit is used for acquiring a second step number statistical result of the electronic equipment in the second time period and determining the second step counting state based on the second step number statistical result, wherein the second step number statistical result comprises the step numbers collected in a plurality of set step counting cycles contained in the second time period;
a third state determining unit, configured to obtain a third step count statistical result of the electronic device in the third time period, and determine the third step count state based on the third step count statistical result, where the third step count statistical result includes the number of steps acquired in a plurality of set step counting cycles included in the third time period.
14. The apparatus of claim 9, wherein the scene change recognition module comprises:
the first identification unit is used for identifying that the indoor and outdoor scene switching situation of the electronic equipment is switched from an outdoor scene to an indoor scene in response to the detection 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 number 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 the second identification unit is used for identifying that the indoor and outdoor scene switching condition of the electronic equipment is switched from an indoor scene to an outdoor scene in response to the detection 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.
15. The apparatus according to claim 9, wherein a light sensing unit is provided in the electronic device;
the apparatus further comprises a brightness difference determination module;
the brightness difference determination module includes:
the ambient brightness acquiring unit is used for acquiring second ambient brightness of the environment where the electronic equipment is located in the second time period and third ambient brightness of the environment where the electronic equipment is located in the third time period, which are acquired by the light sensing unit;
a brightness difference determination unit for determining a brightness difference between the second ambient brightness and the third ambient brightness;
the scene switching identification module is further configured to execute the operation of 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 in response to detecting that the brightness difference is greater than or equal to a preset brightness difference threshold.
16. The apparatus of claim 9, further comprising:
and the network signal optimization module is used for responding to the recognition that the electronic equipment is switched from an outdoor scene to an indoor scene, and optimizing the mobile communication network signal of the electronic equipment.
17. An electronic device, characterized in that the device comprises:
a processor and a memory for storing a computer program;
wherein the processor is configured to, when executing the computer program, implement:
detecting a door opening operation in an environment where the electronic equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state;
responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next 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.
18. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing:
detecting a door opening operation in an environment where the electronic equipment is located in response to detecting that a first step counting state of the electronic equipment in a first time period is a step stopping state;
responding to the detection of door opening operation in the environment where the electronic equipment is located, and 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, wherein the second time period is a previous time period of the first time period, and the third time period is a next time period of the first time period;
and determining indoor and outdoor scene switching conditions of the electronic equipment based on the second step counting state and the third step counting state.
CN202211305083.6A 2022-10-24 2022-10-24 Indoor and outdoor scene switching identification method, device, equipment and storage medium Pending CN115695650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211305083.6A CN115695650A (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 CN115695650A (en) 2022-10-24 2022-10-24 Indoor and outdoor scene switching identification method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115695650A true CN115695650A (en) 2023-02-03

Family

ID=85098705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211305083.6A Pending CN115695650A (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) CN115695650A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107071710A (en) * 2017-04-10 2017-08-18 胡渐佳 Inlet/outlet speech-sound intelligent play system based on user's identification
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107071710A (en) * 2017-04-10 2017-08-18 胡渐佳 Inlet/outlet speech-sound intelligent play system based on user's identification
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版》", 北京:机械工业出版社, pages: 178 *

Similar Documents

Publication Publication Date Title
US20170344192A1 (en) Method and device for playing live videos
EP3182716A1 (en) Method and device for video display
EP3163411A1 (en) Method, device and apparatus for application switching
EP3136793A1 (en) Method and apparatus for awakening electronic device
EP3099063A1 (en) Video communication method and apparatus
EP3173970A1 (en) Image processing method and apparatus
WO2016029642A1 (en) Background application program control method, device and terminal device
CN106766022B (en) Sensor control method and device
CN107943347B (en) Touch screen control method and device
EP3133874A1 (en) Method and apparatus for starting energy saving mode
US10354678B2 (en) Method and device for collecting sounds corresponding to surveillance images
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
CN107343087B (en) Intelligent equipment control method and device
US20180088664A1 (en) Method and device for switching environment picture
CN108769416B (en) Screen-off display method and device and non-transitory computer-readable storage medium
EP3232323A1 (en) Method and apparatus for displaying status information of application
CN110262692B (en) Touch screen scanning method, device and medium
CN106789461A (en) The method and device of intelligent home device connection
US20180139790A1 (en) Methods, apparatuses and storage medium for controlling a wireless connection
US11011124B2 (en) Method and device for adjusting current of backlight, and storage medium
CN108427618B (en) Method and device for determining stuck state and computer readable storage medium
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
EP3125514A1 (en) Method and device for state notification
CN105227426B (en) Application interface switching method and device and terminal equipment
US20170147134A1 (en) Method and apparatus for controlling touch-screen sensitivity

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