Data processing method and apparatus, and storage medium

By combining light and gas sensors with attitude sensors on the terminal, the location of escape direction signs is determined and indicated, solving the problem of finding the escape direction in a smoke-filled environment and achieving the effect of accurately guiding escape routes in smoke.

CN115993313BActive Publication Date: 2025-12-12BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111216191.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2025-12-12
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

In the event of a fire or other emergency, the interior of a building is filled with smoke, making it difficult for people to find escape route signs and thus hindering their escape from the fire scene.

Method used

Light sensing data is collected by front, rear and top light sensors on the terminal, and combined with smoke concentration data detected by gas sensors to determine and indicate the location of indicator signs with target colors. Attitude data is corrected by attitude sensors to compensate for light sensing data and improve accuracy.

Benefits of technology

It accurately guides escape routes in smoky environments, helping users quickly find escape routes and improving the efficiency of escaping a fire scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115993313B_ABST
    Figure CN115993313B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method, device and storage medium. The data processing method is applied to a terminal, the terminal comprising a front light line sensor, a rear light line sensor, a top light line sensor arranged on the top of the terminal and a gas sensor. The method comprises: acquiring first light line sensing data collected by the front light line sensor, second light line sensing data collected by the rear light line sensor, third light line sensing data collected by the top light line sensor, and smoke concentration data detected by the gas sensor; determining current posture data of the terminal, and obtaining target light line sensing data comprising a target color with the highest intensity according to target color light line sensing data of a target color included in the first light line sensing data, the second light line sensing data and the third light line sensing data; and determining and prompting the direction of an indicating mark with the target color according to the current posture data, the target light line sensing data and the smoke concentration data.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of terminals, and in particular to a data processing method, device and storage medium. BACKGROUND

[0002] With the development of society, there are more and more buildings in cities, and people frequently shuttle between office buildings, hotels, subways and residences. At present, there are escape direction signs for indicating escape in building interiors, and no-passing signs for indicating prohibition of passing, which are used to remind users to escape when similar danger such as fire or earthquake occurs.

[0003] However, for example, when a fire occurs, the interior space of the building is surrounded by smoke, people are nervous and emotional, and it is difficult to find the escape direction sign for indicating escape. People can only find the emergency escape passage to escape from the fire scene after finding the escape direction sign. Therefore, it is particularly important to find the escape direction sign and escape along the escape direction sign when a fire occurs. SUMMARY

[0004] To overcome the problems in the related art, the present disclosure provides a data processing method, device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, applied to a terminal, the terminal comprising a front light line sensor, a rear light line sensor, a top light line sensor arranged on the top of the terminal, and a gas sensor. The method comprises:

[0006] acquiring first light line sensor data collected by the front light line sensor, second light line sensor data collected by the rear light line sensor, third light line sensor data collected by the top light line sensor, and smoke concentration data detected by the gas sensor;

[0007] determining current attitude data of the terminal, and obtaining target light line sensor data comprising a target color with the highest intensity of the target color according to target color light line sensor data of the target color included in the first light line sensor data, the second light line sensor data and the third light line sensor data;

[0008] determining and prompting the direction of an indicating sign with the target color according to the current attitude data, the target light line sensor data and the smoke concentration data.

[0009] Optionally, the determination of the current attitude data of the terminal and the obtaining of the target light line sensor data comprising the target color with the highest intensity of the target color according to the target color light line sensor data of the target color included in the first light line sensor data, the second light line sensor data and the third light line sensor data comprises:

[0010] filtering the first light ray sensing data, the second light ray sensing data and the third light ray sensing data to obtain corrected first light ray sensing data, corrected second light ray sensing data and corrected third light ray sensing data after removing noise data;

[0011] obtaining target color light ray sensing data of the target color included in the corrected first light ray sensing data, the corrected second light ray sensing data and the corrected third light ray sensing data, to obtain target light ray sensing data with the highest intensity of the target color.

[0012] Optionally, the terminal includes a posture sensor, and the determining the current posture data of the terminal includes:

[0013] obtaining, based on the posture sensor, posture data of the terminal in a three-dimensional coordinate plane;

[0014] filtering the posture data to obtain corrected posture data;

[0015] taking the corrected posture data as the current posture data of the terminal.

[0016] Optionally, the determining the direction of the indication sign with the target color according to the current posture data, the target light ray sensing data and the smoke concentration data includes:

[0017] determining, according to the smoke concentration data and a preset smoke concentration threshold, a compensation coefficient for compensating the target light ray sensing data with the target color;

[0018] compensating, according to the compensation coefficient, target color light ray sensing data included in other light ray sensing data to the target light ray sensing data to obtain compensated target light ray sensing data, wherein the other light ray sensing data is light ray sensing data other than the target light ray sensing data in the corrected first light ray sensing data, the corrected second light ray sensing data and the corrected third light ray sensing data;

[0019] obtaining a position of a light ray sensor corresponding to the compensated target light ray sensing data, and determining and prompting the direction of the indication sign with the target color according to the current posture data and the position.

[0020] Optionally, the method further includes:

[0021] determining to start a function of obtaining the direction of the indication sign, and the function is used to determine and prompt the direction of the indication sign.

[0022] According to a second aspect of the embodiments of the present disclosure, a data processing apparatus is provided, which is applied to a terminal, the terminal comprising a front light sensor, a rear light sensor, a top light sensor arranged on a top of the terminal, and a gas sensor, and the apparatus comprising:

[0023] a obtaining module, configured to obtain first light sensor data collected by the front light sensor, second light sensor data collected by the rear light sensor, third light sensor data collected by the top light sensor, and smoke concentration data detected by the gas sensor;

[0024] a determining module, configured to determine current posture data of the terminal, and obtain target light sensor data comprising a target color with the highest intensity from target color light sensor data of the target color included in the first light sensor data, the second light sensor data and the third light sensor data;

[0025] a processing module, configured to determine and prompt a direction of an indicator sign with the target color according to the current posture data, the target light sensor data and the smoke concentration data.

[0026] Optionally, the determining module obtains the target light sensor data comprising the target color with the highest intensity from the target color light sensor data of the target color included in the first light sensor data, the second light sensor data and the third light sensor data in the following manner:

[0027] the first light sensor data, the second light sensor data and the third light sensor data are filtered to obtain corrected first light sensor data, corrected second light sensor data and corrected third light sensor data after removing noise data;

[0028] the target light sensor data of the target color included in the corrected first light sensor data, the corrected second light sensor data and the corrected third light sensor data is obtained to obtain the target light sensor data comprising the target color with the highest intensity.

[0029] Optionally, the terminal comprises a posture sensor, and the determining module determines the current posture data of the terminal in the following manner:

[0030] the posture data of the terminal in a three-dimensional coordinate plane is obtained based on the posture sensor;

[0031] the posture data is filtered to obtain corrected posture data;

[0032] the corrected posture data is taken as the current posture data of the terminal.

[0033] Optionally, the determining module determines and prompts the direction of the indication sign with the target color according to the current attitude data, the target light sensing data and the smoke concentration data in the following manner:

[0034] According to the smoke concentration data and a preset smoke concentration threshold, a compensation coefficient for target color compensation of the target light sensing data is determined;

[0035] According to the compensation coefficient, target color light sensing data included in other light sensing data is compensated to the target light sensing data to obtain compensated target light sensing data, wherein the other light sensing data is light sensing data other than the target light sensing data in the modified first light sensing data, the modified second light sensing data and the modified third light sensing data;

[0036] The position of the light sensor corresponding to the compensated target light sensing data is obtained, and the direction of the indication sign with the target color is determined and prompted according to the current attitude data and the position.

[0037] Optionally, the determining module is further configured to:

[0038] The function of obtaining the direction of the indication sign is determined to be started, and the function is used to determine and prompt the direction of the indication sign.

[0039] According to a third aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, and the computer readable storage medium stores computer program instructions. When the computer program instructions are executed by a processor, the steps of the data processing method provided by the first aspect of the present disclosure are implemented.

[0040] The technical solution provided by the embodiments of the present disclosure can have the following beneficial effects: the light sensing data collected by the light sensors in the terminal at different directions and the smoke concentration data detected by the gas sensor are obtained, the current attitude data of the terminal is determined, and the target color light sensing data including the target color with the highest intensity in the target light sensing data can be obtained according to the target color light sensing data included in the first light sensing data, the second light sensing data and the third light sensing data. Then, the target light sensing data can be further modified according to the smoke concentration data detected by the gas sensor included in the terminal, so as to ensure that the amount of the target color included in the light sensing data collected by the light sensor is relatively accurate. Then, the direction of the indication sign with the target color can be determined according to the position of the light sensor corresponding to the target light sensing data in the terminal and the current attitude data of the terminal, so as to achieve the purpose of real-time prompting the direction of the indication sign such as escape for the user.

[0041] 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. BRIEF DESCRIPTION OF DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure, in which, like reference numerals designate corresponding parts throughout the several views.

[0043] Figure 1 is a flow chart of a data processing method according to an exemplary embodiment.

[0044] Figure 2 is a block diagram of a data processing apparatus according to an exemplary embodiment.

[0045] Figure 3 is a block diagram of an apparatus for data processing according to an exemplary embodiment. DETAILED DESCRIPTION

[0046] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, like reference numerals refer to like elements throughout the several views. The following description is not intended to limit all embodiments consistent with the present disclosure to the examples described. Rather, the following description is intended to explain the principles of devices and methods consistent with the present disclosure, as detailed in the appended claims.

[0047] Figure 1 is a flow chart of a data processing method according to an exemplary embodiment, as Figure 1 shown, the data processing method is used in a terminal, including the following steps.

[0048] In step S11, first light ray sensor data collected by a front light ray sensor, second light ray sensor data collected by a rear light ray sensor, and third light ray sensor data collected by a top light ray sensor are acquired, and smoke concentration data detected by a gas sensor is acquired.

[0049] In the present disclosure, the terminal is installed with a front light ray sensor, a rear light ray sensor, a top light ray sensor arranged on the top of the terminal, and a gas sensor.

[0050] In step S12, current posture data of the terminal is determined, and target light ray sensor data including the target color with the highest intensity is obtained according to target color light ray sensor data of the target color included in the first light ray sensor data, the second light ray sensor data, and the third light ray sensor data.

[0051] In one implementation, the current posture data of the terminal can be determined, for example, in the following manner:

[0052] Based on the posture sensor installed in the terminal, the posture data of the terminal in a three-dimensional coordinate plane (along the space X, Y and Z axes) is acquired, the posture data is filtered to obtain corrected posture data, and the corrected posture data is taken as the current posture data of the terminal.

[0053] For example, the posture data can be smoothed and filtered by a low-pass filter installed in the terminal to eliminate noise data that can exist in the posture data, so as to obtain relatively accurate corrected posture data.

[0054] Since the light sensor has three color channels of red, green and blue, the light sensor data acquired by the light sensor includes the proportions of light of the three colors of red, green and blue. Therefore, for a target color being any one of red, green and blue, the target color light sensor data including the target color in the first light sensor data, the second light sensor data and the third light sensor data can be determined, for example, in the following manner to obtain target light sensor data including the target color with the highest intensity:

[0055] The first light sensor data, the second light sensor data and the third light sensor data are filtered to obtain corrected first light sensor data, corrected second light sensor data and corrected third light sensor data after removing noise data, and target color light sensor data including the target color in the corrected first light sensor data, the corrected second light sensor data and the corrected third light sensor data is obtained to obtain target light sensor data including the target color with the highest intensity.

[0056] For example, the first light sensor data, the second light sensor data and the third light sensor data can be smoothed and filtered by a low-pass filter installed in the terminal to eliminate noise data that can exist in the light sensor data, so as to obtain relatively accurate corrected first light sensor data, corrected second light sensor data and corrected third light sensor data.

[0057] In step S13, the direction of the indication mark with the target color is determined and prompted according to the current posture data, the target light sensor data and the smoke concentration data.

[0058] For example, the target color can be green, and the indication mark with the target color can be a green escape sign in a building.

[0059] In the present disclosure, after obtaining the target light sensing data (one of the first light sensing data, the second light sensing data and the third light sensing data) of the target color with the highest intensity, it is indicated that the target color collected by the light sensor corresponding to the target light sensing data has the highest intensity. Then, in combination with the current posture data of the terminal and the position of the light sensor corresponding to the target light sensing data, the direction of the indication sign with the target color is determined, and the direction of the indication sign is prompted.

[0060] For example, it is determined by the posture sensor of the terminal that the current posture of the terminal is perpendicular to the ground, the screen of the terminal is opposite to the user, and the intensity of the target color in the target color light sensing data collected by the rear light sensor of the terminal is the highest. It can be determined that the indication sign of the target color is in front of the terminal.

[0061] For another example, it is determined by the posture sensor of the terminal that the current posture of the terminal is in a horizontal direction parallel to the ground, and the intensity of the target color in the target color light sensing data collected by the top light sensor of the terminal is the highest. It can be determined that the indication sign of the target color is in front of the terminal.

[0062] In actual application, for example, in the case of fire in a building, due to the smoke in the building, people's spirits will also be nervous and panic, and it is difficult for people to quickly see the green escape sign in the smoke. The green light in the smoke is also easy to be refracted or scattered. At this time, the difference of the green light light sensing data collected by the light sensor will be reduced. Therefore, in an embodiment, step S13 can include the following sub-steps S131-S133:

[0063] In step S131, according to the smoke concentration data and the preset smoke concentration threshold, a compensation coefficient for compensating the target color of the target light sensing data is determined.

[0064] In the present disclosure, for example, different smoke concentration thresholds can be set in advance to represent whether the current smoke concentration is low, medium or heavy.

[0065] Taking the target light as green as an example, although the intensity of the green received in the target light sensing data is the highest, due to the influence of the smoke concentration, the higher the smoke concentration, the higher the possibility of refraction or scattering of the green light (target color light), and the more uniform the green light in the environment, so that the intensity of the green received in the target light sensing data is weakened. Therefore, in order to ensure the relative accuracy of the green received in different light sensing data, in the present embodiment, the gas sensor included in the terminal detects the smoke concentration in the environment, and according to the detected smoke concentration and the preset smoke concentration threshold, a compensation coefficient for compensating the target color of the target light sensing data is determined.

[0066] The compensation coefficient is in a proportional relationship with the detected smoke concentration, and the higher the smoke concentration, the greater the compensation coefficient required for target color compensation of the target light sensor data.

[0067] For example, according to the detected smoke concentration and the smoke concentration threshold, it is determined that the smoke concentration is severe, and the target color light sensor data included in the other light sensor data needs to be compensated to the target light sensor data according to a high compensation coefficient (for example, 0.9) to obtain compensated target light sensor data, so as to ensure that the amount of green included in the light sensor data collected by the light sensor is relatively accurate.

[0068] In step S132, the target color light sensor data included in the other light sensor data is compensated to the target light sensor data according to the compensation coefficient to obtain compensated target light sensor data.

[0069] The other light sensor data is the light sensor data other than the target light sensor data in the corrected first light sensor data, the corrected second light sensor data, and the corrected third light sensor data.

[0070] In step S133, the position of the light sensor corresponding to the compensated target light sensor data is obtained, and the orientation of the indication mark with the target color is determined according to the position and the current attitude data.

[0071] In the present disclosure, for example, the orientation of the indication mark with the target color can be determined by obtaining the position of the light sensor corresponding to the compensated target light sensor data and according to the position and the current attitude data.

[0072] Therefore, when there is smoke in the environment, the smoke concentration can be detected by the gas sensor included in the terminal, and the compensation coefficient for target color compensation of the target light sensor data can be determined according to the smoke concentration data and the preset smoke concentration threshold. The target color light sensor data included in the other light sensor data is compensated to the target light sensor data according to the compensation coefficient to obtain compensated target light sensor data, so as to ensure that the amount of target color included in the light sensor data collected by the light sensor is relatively accurate. Furthermore, the orientation of the indication mark with the target color can be determined according to the accurate compensated target light sensor data, the position of the sensor corresponding to the target light sensor data in the terminal, and the current attitude data of the terminal, so as to achieve the purpose of real-time prompting for the user, such as the orientation of the escape indication mark.

[0073] In the example embodiment of the present disclosure, light sensing data collected by light sensors in different orientations in the terminal and smoke concentration data detected by a gas sensor are acquired, current attitude data of the terminal is determined, and target color light sensing data of a target color included in first light sensing data, second light sensing data and third light sensing data is obtained, so that target light sensing data including the target color with the highest intensity can be obtained, and then the target light sensing data can be further corrected according to smoke concentration data detected by the gas sensor included in the terminal, so as to ensure that the amount of the target color included in the light sensing data collected by the light sensor is relatively accurate. Then, the orientation of the indication mark with the target color can be determined according to the position of the light sensor corresponding to the target light sensing data in the terminal and the current attitude data of the terminal, so as to achieve the purpose of real-time prompting the orientation of the indication mark such as an escape indication mark for the user.

[0074] Figure 2 is a block diagram of a data processing apparatus 200 according to an example embodiment. Referring to Figure 2 , the data processing apparatus is applied to a terminal including a front light sensor, a rear light sensor, a top light sensor arranged on the top of the terminal and a gas sensor, and the apparatus includes:

[0075] The acquisition module 201 is configured to acquire first light sensing data collected by the front light sensor, second light sensing data collected by the rear light sensor and third light sensing data collected by the top light sensor, and acquire smoke concentration data detected by the gas sensor.

[0076] The determination module 202 is configured to determine current attitude data of the terminal, and obtain target light sensing data including a target color with the highest intensity according to target color light sensing data of the target color included in the first light sensing data, the second light sensing data and the third light sensing data.

[0077] The processing module 203 is configured to determine and prompt the orientation of an indication mark with the target color according to the current attitude data, the target light sensing data and the smoke concentration data.

[0078] Optionally, the determination module 202 obtains the target light sensing data including the target color with the highest intensity according to the target color light sensing data of the target color included in the first light sensing data, the second light sensing data and the third light sensing data in the following manner:

[0079] filtering the first light ray sensing data, the second light ray sensing data and the third light ray sensing data to obtain corrected first light ray sensing data, corrected second light ray sensing data and corrected third light ray sensing data after removing noise data;

[0080] obtaining target color light ray sensing data of the target color included in the corrected first light ray sensing data, the corrected second light ray sensing data and the corrected third light ray sensing data, and obtaining target light ray sensing data including the target color with the highest intensity.

[0081] Optionally, the terminal includes a posture sensor, and the determining module 202 determines the current posture data of the terminal in the following manner:

[0082] obtaining posture data of the terminal in a three-dimensional coordinate plane based on the posture sensor;

[0083] filtering the posture data to obtain corrected posture data;

[0084] taking the corrected posture data as the current posture data of the terminal.

[0085] Optionally, the determining module 202 determines the direction of the indication mark with the target color in the following manner according to the current posture data, the target light ray sensing data and the smoke concentration data:

[0086] determining a compensation coefficient for target color compensation of the target light ray sensing data according to the smoke concentration data and a preset smoke concentration threshold;

[0087] compensating target color light ray sensing data included in other light ray sensing data to the target light ray sensing data according to the compensation coefficient to obtain compensated target light ray sensing data, wherein the other light ray sensing data is light ray sensing data other than the target light ray sensing data in the corrected first light ray sensing data, the corrected second light ray sensing data and the corrected third light ray sensing data;

[0088] obtaining a position of a light ray sensor corresponding to the compensated target light ray sensing data, and determining and prompting the direction of the indication mark with the target color according to the current posture data and the position.

[0089] Optionally, the determining module 202 is further configured to:

[0090] determining to start a function of obtaining the direction of the indication mark, and the function is used to determine and prompt the direction of the indication mark.

[0091] With reference to the apparatus in the above embodiments, specific manners in which various modules perform operations have been described in detail in embodiments of the method, and thus will not be described here in detail.

[0092] The present disclosure also provides a computer readable storage medium, having stored thereon computer program instructions, which when executed by a processor implement the steps of the data processing method provided by the present disclosure.

[0093] Figure 3 is a block diagram of an apparatus 800 for data processing according to an exemplary embodiment. The apparatus 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0094] With reference to Figure 3 The apparatus 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0095] The processing component 802 usually controls overall operations of the apparatus 800, such as operations associated with displaying, making phone calls, data communications, camera operations and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned data processing method. Further, the processing component 802 can include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0096] The memory 804 is configured to store various types of data to support operations of the apparatus 800. Examples of these data include instructions for any application or method operating on the apparatus 800, contact data, phonebook data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage devices or a 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 storage, flash memory, magnetic disk or optical disk.

[0097] The power supply component 806 supplies electrical power for various components of the apparatus 800. The power supply component 806 can include a power supply management system, one or more power sources, and other components associated with generating, managing and distributing power for the apparatus 800.

[0098] The multimedia component 808 includes a screen providing an output interface between the device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensors can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0099] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) to receive an external audio signal when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0100] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0101] The sensor component 814 includes one or more sensors to provide various state assessments for the device 800. For example, the sensor component 814 can detect an open / closed state of the device 800, relative positioning of components, such as a display and a keypad of the device 800, a change in position of the device 800 or a component of the device 800, presence or absence of user contact with the device 800, a change in orientation of the device 800 or acceleration / deceleration of the device 800, and a temperature change of the device 800. The sensor component 814 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 814 can further include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0102] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate close proximity communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technology.

[0103] In an exemplary embodiment, the device 800 can 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 data processing methods.

[0104] In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the device 800 to complete the above-described data processing methods. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0105] In another exemplary embodiment, a computer program product is also provided, which contains a computer program capable of being executed by a programmable device, and the computer program has code portions for executing the above-described data processing methods when executed by the programmable device.

[0106] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the present disclosure. It is intended that the present disclosure cover any and all variations of the present disclosure including those variations that can be incorporated into the above detailed description and making use of known additives and known methodology that have been found to be desirable. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0107] It is to be understood that the present disclosure is not limited to the precise construction herein described and as shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. A data processing method, characterized in that, The method is applied to a terminal, which includes a front-facing light sensor, a rear-facing light sensor, a top-facing light sensor, and a gas sensor disposed on the top of the terminal. Acquire first light sensing data collected by the front light sensor, second light sensing data collected by the rear light sensor, third light sensing data collected by the top light sensor, and smoke concentration data detected by the gas sensor; The current posture data of the terminal is determined, and the target color light sensing data including the target color with the highest intensity is obtained based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data. Based on the current attitude data, the target light sensing data, and the smoke concentration data, determine and indicate the location of the indicator marker with the target color; The step of obtaining target color light sensing data including the target color with the highest intensity based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data includes: The first light sensing data, the second light sensing data, and the third light sensing data are filtered to obtain the corrected first light sensing data, the corrected second light sensing data, and the corrected third light sensing data after removing noise. Based on the target color light sensing data included in the first corrected light sensing data, the second corrected light sensing data, and the third corrected light sensing data, the target light sensing data including the target color with the highest intensity is obtained; The step of determining the location of the indicator marker with the target color based on the current attitude data, the target light sensing data, and the smoke concentration data includes: Based on the smoke concentration data and the preset smoke concentration threshold, a compensation coefficient is determined for target color compensation of the target light sensing data. According to the compensation coefficient, the target color light sensing data included in the other light sensing data is used to compensate the target light sensing data to obtain the compensated target light sensing data. The other light sensing data are the light sensing data other than the target light sensing data in the corrected first light sensing data, corrected second light sensing data and corrected third light sensing data. The position of the light sensor corresponding to the compensated target light sensing data is obtained. Based on the current attitude data and the position, the location of the indicator mark with the target color is determined and indicated.

2. The method according to claim 1, characterized in that, The terminal includes an attitude sensor, and determining the current attitude data of the terminal includes: Based on the attitude sensor, the attitude data of the terminal in the three-dimensional coordinate plane is obtained; The attitude data is filtered to obtain corrected attitude data; The corrected attitude data is used as the current attitude data of the terminal.

3. The method according to claim 1, characterized in that, The method further includes: The function of obtaining the location of the indicator is enabled, and the function is used to determine and indicate the location of the indicator.

4. A data processing apparatus, characterized in that, The device is applied to a terminal, which includes a front-facing light sensor, a rear-facing light sensor, a top-facing light sensor, and a gas sensor disposed on the top of the terminal. The device includes: The acquisition module is used to acquire first light sensing data collected by the front light sensor, second light sensing data collected by the rear light sensor, third light sensing data collected by the top light sensor, and smoke concentration data detected by the gas sensor. The determination module is used to determine the current posture data of the terminal, and to obtain the target light sensing data including the target color with the highest intensity based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data. The processing module is used to determine and indicate the location of the indicator marker with the target color based on the current attitude data, the target light sensing data, and the smoke concentration data. The determining module obtains the target light sensing data containing the highest intensity of the target color based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data, in the following manner: The first light sensing data, the second light sensing data, and the third light sensing data are filtered to obtain the corrected first light sensing data, the corrected second light sensing data, and the corrected third light sensing data after removing noise. Based on the target color light sensing data included in the first corrected light sensing data, the second corrected light sensing data, and the third corrected light sensing data, the target light sensing data including the target color with the highest intensity is obtained; The determining module uses the following method to determine the location of the indicator marker with the target color based on the current attitude data, the target light sensing data, and the smoke concentration data: Based on the smoke concentration data and the preset smoke concentration threshold, a compensation coefficient is determined for target color compensation of the target light sensing data. According to the compensation coefficient, the target color light sensing data included in the other light sensing data is used to compensate the target light sensing data to obtain the compensated target light sensing data. The other light sensing data are the light sensing data other than the target light sensing data in the corrected first light sensing data, corrected second light sensing data and corrected third light sensing data. The position of the light sensor corresponding to the compensated target light sensing data is obtained. Based on the current attitude data and the position, the location of the indicator mark with the target color is determined and indicated.

5. The apparatus according to claim 4, characterized in that, The terminal includes an attitude sensor, and the determining module determines the current attitude data of the terminal in the following manner: Based on the attitude sensor, the attitude data of the terminal in the three-dimensional coordinate plane is obtained; The attitude data is filtered to obtain corrected attitude data; The corrected attitude data is used as the current attitude data of the terminal.

6. A data processing apparatus, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured as follows: Acquire first light sensing data collected by the front light sensor, second light sensing data collected by the rear light sensor, third light sensing data collected by the top light sensor, and smoke concentration data detected by the gas sensor; Determine the current attitude data of the terminal, and based on the target color light sensing data of the target color included in the first light sensing data, the second light sensing data, and the third light sensing data, obtain the target light sensing data including the target color with the highest intensity. Based on the current attitude data, the target light sensing data, and the smoke concentration data, determine and indicate the location of the indicator marker with the target color; The step of obtaining target color light sensing data including the target color with the highest intensity based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data includes: The first light sensing data, the second light sensing data, and the third light sensing data are filtered to obtain the corrected first light sensing data, the corrected second light sensing data, and the corrected third light sensing data after removing noise. Based on the target color light sensing data included in the first corrected light sensing data, the second corrected light sensing data, and the third corrected light sensing data, the target light sensing data including the target color with the highest intensity is obtained; The step of determining the location of the indicator marker with the target color based on the current attitude data, the target light sensing data, and the smoke concentration data includes: Based on the smoke concentration data and the preset smoke concentration threshold, a compensation coefficient is determined for target color compensation of the target light sensing data. According to the compensation coefficient, the target color light sensing data included in the other light sensing data is used to compensate the target light sensing data to obtain the compensated target light sensing data. The other light sensing data are the light sensing data other than the target light sensing data in the corrected first light sensing data, corrected second light sensing data and corrected third light sensing data. The position of the light sensor corresponding to the compensated target light sensing data is obtained. Based on the current attitude data and the position, the location of the indicator mark with the target color is determined and indicated.

7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the terminal's processor, the terminal is enabled to perform a data processing method, the method comprising: Acquire first light sensing data collected by the front light sensor, second light sensing data collected by the rear light sensor, third light sensing data collected by the top light sensor, and smoke concentration data detected by the gas sensor; The current posture data of the terminal is determined, and the target color light sensing data including the target color with the highest intensity is obtained based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data. Based on the current attitude data, the target light sensing data, and the smoke concentration data, determine and indicate the location of the indicator marker with the target color; The step of obtaining target color light sensing data including the target color with the highest intensity based on the target color light sensing data included in the first light sensing data, the second light sensing data, and the third light sensing data includes: The first light sensing data, the second light sensing data, and the third light sensing data are filtered to obtain the corrected first light sensing data, the corrected second light sensing data, and the corrected third light sensing data after removing noise. Based on the target color light sensing data included in the first corrected light sensing data, the second corrected light sensing data, and the third corrected light sensing data, the target light sensing data including the target color with the highest intensity is obtained; The step of determining the location of the indicator marker with the target color based on the current attitude data, the target light sensing data, and the smoke concentration data includes: Based on the smoke concentration data and the preset smoke concentration threshold, a compensation coefficient is determined for target color compensation of the target light sensing data. According to the compensation coefficient, the target color light sensing data included in the other light sensing data is used to compensate the target light sensing data to obtain the compensated target light sensing data. The other light sensing data are the light sensing data other than the target light sensing data in the corrected first light sensing data, corrected second light sensing data and corrected third light sensing data. The position of the light sensor corresponding to the compensated target light sensing data is obtained. Based on the current attitude data and the position, the location of the indicator mark with the target color is determined and indicated.

Citation Information

Patent Citations

  • Escape route generating method, system and equipment, and readable storage medium

    CN109191737A

  • Brightness adjustment method and device, mobile terminal and storage medium

    US20210264876A1

  • Coordinate input apparatus and control method thereof, and computer readable memory

    US6967644B1