CN111122467A - Information prompting method and electronic equipment - Google Patents

Information prompting method and electronic equipment Download PDF

Info

Publication number
CN111122467A
CN111122467A CN201911349330.0A CN201911349330A CN111122467A CN 111122467 A CN111122467 A CN 111122467A CN 201911349330 A CN201911349330 A CN 201911349330A CN 111122467 A CN111122467 A CN 111122467A
Authority
CN
China
Prior art keywords
liquid
preset
determining
electronic equipment
gray value
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
CN201911349330.0A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911349330.0A priority Critical patent/CN111122467A/en
Publication of CN111122467A publication Critical patent/CN111122467A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N2021/3129Determining multicomponents by multiwavelength light

Abstract

The invention discloses an information prompting method and electronic equipment. The method comprises the following steps: acquiring a multispectral image of the liquid through a multispectral sensor under the condition that the electronic equipment is in the liquid; judging whether the liquid meets the preset use environment condition corresponding to the electronic equipment or not based on the multispectral image; and if the liquid does not meet the preset use environment condition, outputting prompt information. According to the information prompting method and the electronic equipment provided by the embodiment of the invention, the use safety of the electronic equipment is improved.

Description

Information prompting method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information prompting method and an electronic device.
Background
With the continuous iterative update of the structural design and the manufacturing process of the electronic equipment, the electronic equipment has basically reached the design desired by people in terms of appearance. For example, there is no bang screen design, and there is no protruding camera design in the ultra-thin fuselage. In addition to the design aspect, new researches on durability and functions of materials of electronic devices, such as waterproof function and dustproof function of electronic devices, are being conducted.
At present, although waterproof electronic equipment can realize the functions of exposing earphone holes, charging holes and the like which are not taken protection measures to the outside and placing the earphone holes, the charging holes and the like in water for photographing. However, the waterproof function of electronic devices is performed under various laboratory conditions set manually, such as clean water quality, appropriate water pressure, and appropriate temperature.
In the daily practical use of the electronic device by the user, the user cannot judge whether the current liquid environment meets the protection condition of the electronic device. When a user uses the electronic equipment under an unknown severe liquid environment, irreparable damage can be caused to the electronic equipment, and the use safety of the electronic equipment is reduced.
Disclosure of Invention
The embodiment of the invention provides an information prompting method and electronic equipment, and aims to solve the problem of low use safety of the electronic equipment.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an information prompting method, including:
acquiring a multispectral image of the liquid through a multispectral sensor under the condition that the electronic equipment is in the liquid;
judging whether the liquid meets the preset use environment condition corresponding to the electronic equipment or not based on the multispectral image;
and if the liquid does not meet the preset use environment condition, outputting prompt information.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the image acquisition module is used for acquiring a multispectral image of the liquid through the multispectral sensor under the condition that the electronic equipment is in the liquid;
the first judgment module is used for judging whether the liquid meets the preset use environment condition corresponding to the electronic equipment or not based on the multispectral image;
and the prompt information output module is used for outputting prompt information if the liquid does not meet the preset use environment condition.
In a third aspect, an embodiment of the present invention provides an electronic device, where the device includes: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the information prompting method provided by the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, the information prompting method provided by the embodiment of the present invention is implemented.
In the embodiment of the invention, under the condition that the electronic equipment is determined to be in the liquid, whether the liquid meets the preset use environment condition corresponding to the electronic equipment is judged according to the multispectral image of the liquid collected by the multispectral sensor. If the liquid does not meet the preset use environment condition, the prompt information is output to prompt the user, so that some use risks can be avoided in advance, and the use safety of the electronic equipment is improved.
Drawings
The invention will be better understood from the following description of specific embodiments thereof, taken in conjunction with the accompanying drawings. Wherein like or similar reference numerals refer to like or similar features.
Fig. 1 is a schematic flow chart of an information prompting method according to an embodiment of the present invention;
fig. 2 is a second schematic flow chart of an information prompting method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a second schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the daily practical use of the electronic device by the user, the user cannot judge whether the current use environment meets the use condition of the electronic device. When a user uses the electronic device in an unknown liquid environment, irreparable damage can be caused to the mobile phone. For example, electronic equipment is used for photographing in seawater, and seawater with high salt content can corrode exposed positions such as a charging port of a mobile phone. If use electronic equipment in a hot spring swimming pool of high temperature, the high temperature can let waterproof rubber ring warp and lead to electronic equipment to intake, has reduced electronic equipment's safety in utilization.
Based on this, the embodiment of the present invention provides an information prompting method and an electronic device, which determine whether a liquid satisfies a preset usage environment condition by using a multispectral image of the liquid, and output a prompting message to remind a user when the liquid does not satisfy the preset usage environment condition, so as to improve the usage safety of the electronic device. The following detailed description is to be read with reference to specific embodiments and the drawings.
The principle of spectral imaging is described below. The surface color of an object is seen by people because the object selectively absorbs and reflects light of different wavelengths after the light from a light source (including the sun, electric lamps, etc.) reaches the object. While light rays that are not absorbed by the object or reflected by the object reach the viewer (e.g., a person or a camera), which analyzes and encodes the light rays to form a spectral image that is seen by the person.
The multispectral sensor covers a plurality of optical filters with different wave band transmittances on the pixel to realize one-time exposure and complete the acquisition of full-spectrum signals. Due to the nature of the object itself, the object selectively absorbs light, and thus the properties of the object can be expressed in a spectral image. The composition or structure (molecules, atoms) of different substances are different, so that substance identification, i.e. spectroscopic detection, can be performed on the basis of the spectroscopic image of the substance. Therefore, the multispectral sensor can be used for detecting different substances, such as water quality, medicines, wine, fruits, vegetables, grains and the like.
Fig. 1 is a schematic flow chart illustrating an information prompting method according to an embodiment of the present invention. As shown in fig. 1, the information prompting method provided in the embodiment of the present invention is applied to an electronic device, and includes the following steps:
in step 110, a multispectral image of the liquid is acquired by the multispectral sensor with the electronic device in the liquid.
And step 120, judging whether the liquid meets the preset use environment condition corresponding to the electronic equipment or not based on the multispectral image.
And step 130, if the liquid does not meet the preset use environment condition, outputting prompt information.
As one example, the output prompt may be a display prompt on a screen of the electronic device, or a motor vibration alert.
It should be noted that, if the liquid in which the electronic device is located meets the corresponding preset usage environment condition, the electronic device does not output the prompt message.
In the embodiment of the invention, the user can be reminded to stop using the electronic equipment in the liquid in which the electronic equipment is positioned in time by outputting the prompt message. In the embodiment of the invention, whether the liquid meets the preset use environment condition of the electronic equipment is automatically judged by utilizing the multispectral image of the liquid collected by the multispectral sensor, and the prompt information is output to prompt a user when the liquid does not meet the preset use environment condition, so that some use risks can be avoided in advance, and the use safety of the electronic equipment is improved. Moreover, manual operation of a user is not needed, and the efficiency of surveying the use environment of the electronic equipment is improved.
The specific implementation of each of steps 110 to 130 is described below.
The specific implementation of step 110 is described below. The multispectral sensor comprises an optical part and a control part. The optical portion of the multispectral sensor includes imaging optics and optical elements that divide the spectrum. The imaging optical element is used for imaging a shot object. The spectrally splitting optical element splits the incident beam into a plurality of filters. These filters have different spectral transmission ranges beyond which they are all reflective. Radiation sensitive elements are arranged in the radiation path of the partial beams behind these filters. For example, the radiation sensitive element may be a visible light detector, an infrared detector, an ultraviolet detector. The control part of the multispectral sensor is used for processing the signal output by the radiation sensitive element to obtain a spectral image of the shot object under each wave band, namely a multispectral image.
When the electronic equipment is in the liquid, the multispectral sensor is started and is controlled to collect multispectral images of the liquid, so that the multispectral sensor is prevented from being in a starting state all the time, resources can be saved, and cost is reduced.
The multispectral sensor can be used for acquiring spectral images of liquid where the electronic equipment is located under multiple wave bands at one time, namely rich characteristic information of the liquid can be acquired at one time, and the liquid detection efficiency is improved.
The specific implementation of step 120 is described below. In some embodiments, step 120 includes steps 1201 and 1202. Step 1201, determining characteristic information of the liquid by using the multispectral image of the liquid. And step 1202, judging whether the liquid meets a preset use environment condition or not based on the characteristic information of the liquid.
In the embodiment of the invention, the multispectral image comprises spectral images of liquids in which electronic equipment is located under different wave bands. Due to the fact that spectral reflection characteristics of different substance components in liquid where the electronic equipment is located are different, the multispectral images under different wave bands can reflect different characteristic information of the liquid. Thus, at least one characteristic information of the liquid may be determined by analyzing the multispectral image of the liquid.
Through utilizing the characteristic information of the liquid where the electronic equipment is located, whether the liquid meets the preset use environment condition of the electronic equipment or not is judged, and the accuracy of detecting the liquid can be improved.
As a specific example, the multispectral image of the liquid in which the electronic device is located includes a first spectral image of the liquid in the infrared band and a second spectral image of the liquid in the ultraviolet band. Wherein step 1201 includes: determining a temperature of the liquid based on the first spectral image; based on the second spectral image, a liquid type of the liquid is determined. That is, the characteristic information of the liquid in which the electronic device is located includes the temperature of the liquid and the liquid type of the liquid.
As an example, the preset usage environment condition may include a preset usage temperature range of the electronic device and a preset liquid type corresponding to the electronic device. And if the temperature of the liquid in which the electronic equipment is located exceeds the preset use temperature range of the electronic equipment, and/or if the liquid type of the liquid in which the electronic equipment is located is not the preset liquid type corresponding to the electronic equipment, determining that the liquid does not meet the preset use environment condition corresponding to the electronic equipment.
In other examples, the predetermined environmental conditions may further include a predetermined ph range, since liquids that are too acidic or too basic may also corrode the electronic device. The pH value of the liquid can be obtained by utilizing reflection spectrum images of the liquid under different wave bands and a pre-established analysis model between the reflection spectrum and the hydrogen ion concentration index (namely the pH value). Whether the liquid meets the preset environmental use condition is judged by judging whether the PH of the liquid is in the preset pH value range.
In other embodiments of the present invention, the predetermined environmental conditions may further include the absence of a predetermined corrosive composition. For example, some substances with strong oxidizing properties or some substances with toxic properties. By using the multispectral image of the liquid, it can be determined whether the liquid contains a predetermined substance component having corrosive properties. And if the liquid contains preset substance components with corrosion performance, determining that the liquid in which the electronic equipment is positioned does not meet the preset environmental use condition.
In still other embodiments of the present invention, the predetermined environmental conditions may further include a predetermined range of sand and stone contents, since sand and stones in the liquid may enter the electronic device through a gap (e.g., a charging port) of the electronic device. The sand content of the liquid can be obtained by using a multispectral image of the liquid. If the sand content of the liquid exceeds the preset sand content range, the liquid where the electronic equipment is located can be determined not to meet the preset using environment condition.
In some examples, the multispectral image includes spectral images of a liquid in which the electronic device is located at a plurality of different wavelength bands, and step S1201 includes: and for the spectral image under each waveband, determining characteristic information of the liquid, which is associated with the spectral image, by utilizing the gray value of at least one pixel point in the spectral image. On the basis of step 1201, step 1202 includes: and if one characteristic information of the liquid does not meet the preset characteristic condition corresponding to the characteristic information, determining that the liquid does not meet the preset use environment condition.
That is, different characteristic information of the liquid can be acquired by using spectral images of the liquid at different wavelength bands. And each piece of characteristic information has a corresponding preset characteristic condition.
For example, if the characteristic information of the liquid in which the electronic device is located is the temperature of the liquid, the preset characteristic condition corresponding to the characteristic information is a preset temperature range. If the characteristic information of the liquid in which the electronic equipment is located is the content of a certain substance component, the preset characteristic condition corresponding to the characteristic information is a preset content range corresponding to the substance component.
As a specific example, if the multispectral image includes a first spectral image of a liquid in which the electronic device is located in the infrared band and a second spectral image of the liquid in the ultraviolet band. For example, the infrared band may be about 700 nm to about 1000 nm, among others. The ultraviolet wavelength range is about 10 nm to 400 nm.
In some embodiments, in step 1201, the temperature corresponding to the gray value of each first pixel point in the at least one first pixel point may be determined by using the gray value of the at least one first pixel point in the first spectral image and the preset correspondence between the gray value and the temperature; and determining the temperature of the liquid based on the temperature corresponding to the gray value of each first pixel point.
In some embodiments of the present invention, the first target gray value may be determined based on a gray value of each first pixel point in the first spectral image. As an example, the first target gray-scale value is the highest gray-scale value among the gray-scale values of all the first pixel points. The first target gray value may also be an average of the gray values of all the first pixel points.
And then, matching the first target gray value with each gray value of a preset corresponding relation between the gray value and the temperature, and taking the temperature value corresponding to the gray value matched with the first target gray value in the corresponding relation as the temperature value of the liquid where the electronic equipment is located.
In other embodiments, a plurality of first pixel points may be selected first, and then the temperature value corresponding to the gray value of each of the first pixel points in the plurality of first pixel points is determined based on the corresponding relationship between the preset gray value and the temperature. And then taking the average value of the temperature values corresponding to the gray values of the first pixel points as the temperature value of the liquid where the electronic equipment is located.
The plurality of first pixel points may be randomly selected, or a plurality of first pixel points having a gray value greater than a first preset gray threshold may be selected, which is not limited herein.
In step 1201, determining the chloride ion content and the nitrate content corresponding to the gray value of each second pixel point in the at least one second pixel point by using the gray value of the at least one second pixel point in the second spectral image, the preset correspondence between the gray value and the chloride ion content, and the preset correspondence between the gray value and the nitrate content; determining the content of nitrate and the content of chloride ions in the liquid based on the content of chloride ions and the content of nitrate corresponding to the gray value of each second pixel point; the liquid type of the liquid is determined based on the nitrate content and the chloride ion content in the liquid.
In some embodiments of the present invention, the second target gray-scale value may be determined based on a gray-scale value of each second pixel point in the second spectral image. As an example, the second target gray-scale value is the highest gray-scale value among the gray-scale values of all the second pixel points. The first target gray value may also be an average of the gray values of all the second pixel points.
And then, matching the second target gray value with each gray value of a preset corresponding relation between the gray value and the chloride ion content, and taking the chloride ion content corresponding to the gray value matched with the second target gray value in the corresponding relation as the chloride ion content of the liquid in which the electronic equipment is positioned.
Similarly, the second target gray value is matched with each gray value of the preset corresponding relation between the gray value and the nitrate content, and the nitrate content corresponding to the gray value matched with the second target gray value in the corresponding relation is used as the nitrate content of the liquid in which the electronic equipment is located.
In other embodiments, a plurality of second pixel points may be selected first. The plurality of second pixel points may be randomly selected, or a plurality of second pixel points having a gray value greater than a second preset gray threshold may be selected, which is not limited herein.
And then, determining the chloride ion content corresponding to the gray value of each second pixel point in the plurality of second pixel points based on the corresponding relation between the preset gray value and the chloride ion content. And then taking the average value of the chloride ion content corresponding to the gray value of each second pixel point as the chloride ion content of the liquid in which the electronic equipment is positioned.
Similarly, the nitrate content corresponding to the gray value of each second pixel point in the plurality of second pixel points is determined based on the corresponding relation between the preset gray value and the nitrate content. And then taking the average value of the nitrate content corresponding to the gray value of each second pixel point as the nitrate content of the liquid in which the electronic equipment is positioned.
And then, matching the nitrate content and the chloride ion content in the liquid in which the electronic equipment is positioned with preset nitrate content and preset chloride ion content respectively corresponding to a plurality of preset liquid types, and taking the preset liquid type corresponding to the preset nitrate content matched with the nitrate content in the liquid in which the electronic equipment is positioned and the preset nitrate content matched with the chloride ion content in the liquid in which the electronic equipment is positioned as the liquid type of the liquid in which the electronic equipment is positioned. As one example, the liquid type may be seawater or fresh water.
If the preset liquid type corresponding to the electronic equipment is fresh water, if the liquid type of the liquid in which the electronic equipment is located is detected to be seawater and/or the temperature of the liquid in which the electronic equipment is located exceeds the preset use temperature range of the electronic equipment, determining that the liquid does not meet the preset use environment condition of the electronic equipment, and outputting prompt information.
As shown in fig. 2, another embodiment of the present invention provides an information prompting method, which includes step 101, step 102, step 110, step 120, and step 130. The detailed implementation of step 110, step 120 and step 130 is not described herein.
Step 101, obtaining environmental parameters of the electronic device.
Step 102, judging whether the electronic equipment is in the liquid or not based on the environmental parameters.
Through the acquired environmental parameters of the electronic equipment, whether the electronic equipment is in the liquid can be automatically judged in advance, manual operation of a user is not needed, and the detection efficiency of the liquid is improved.
In some embodiments, the environmental parameter of the electronic device includes an air pressure value and a touch location corresponding to a touch input on a screen of the electronic device. Step 102 includes determining whether the air pressure value is within a preset air pressure range, and determining whether the touch position is a preset position; and if the air pressure value is not within the preset air pressure range and the touch position is the preset position, determining that the electronic equipment is in the liquid.
By utilizing the characteristic that the touch screen of the electronic equipment reacts when encountering liquid, whether the electronic equipment is in the liquid can be judged by utilizing the touch position corresponding to the touch input on the screen of the electronic equipment.
As one example, touch location of a touch input on an electronic device may be detected using touch sensing technology. As one example, the touch sensing technology may be a capacitive sensing technology. By utilizing the human body current induction, a coupling capacitor is formed between the finger of the user and the surface of the touch screen of the electronic equipment. For high frequency currents, the capacitor is a direct conductor, and the finger draws a small current away from the contact. The current flows from the electrodes at the four corners of the touch screen, and the current flowing through the four electrodes is proportional to the distance from the finger to the four corners. And accurately calculating the four current proportions to obtain the position of the touch point in a preset coordinate system.
However, when the electronic device is placed in water, the water also becomes a conductor, and at this time, the whole touch screen forms a whole conductive surface, and the obtained position is the position of the whole screen area of the electronic device in the preset coordinate system.
Therefore, the position of the whole screen area of the electronic equipment in the preset coordinate system can be used as the preset position. If the detected touch position of the touch input corresponds to the preset position, the electronic equipment is located in the liquid.
Because the air pressure values of the electronic equipment in the liquid and the electronic equipment in the air are different, whether the electronic equipment is in the liquid or not can be judged according to the air pressure values. The electronic device may use its own barometer to collect the barometric pressure.
The electronic equipment is judged whether to be in the liquid or not by integrating two factors of the air pressure value and the touch position corresponding to the touch input on the screen of the electronic equipment, so that the judgment accuracy can be improved.
In other embodiments, the environmental parameter may also include a connectivity status of all pins in a charging port of the electronic device. When a pin used for charging the electronic equipment in a charging port of the electronic equipment is in a connected state, the electronic equipment is charged. And if the pin for transmitting the data in the charging port of the electronic equipment is in a connected state, transmitting the data by using the electronic equipment.
However, if all the pins in the charging port of the electronic device are in the connected state, it represents that liquid enters into the charging port, and all the pins of the electronic device are triggered to be in the connected state, that is, the electronic device may be in the liquid. Therefore, whether all pins in the charging port of the electronic equipment are in a connected state can be judged, and whether the electronic equipment is in liquid can be further accurately judged.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 3, the electronic apparatus includes:
the image acquisition module 310 is configured to acquire a multispectral image of the liquid by the multispectral sensor when the electronic device is in the liquid.
The first determining module 320 is configured to determine whether the liquid meets a preset usage environment condition corresponding to the electronic device based on the multispectral image.
And the prompt information output module 330 is configured to output prompt information if the liquid does not meet the preset use environment condition.
In the embodiment of the invention, under the condition that the electronic equipment is determined to be in the liquid, whether the liquid meets the preset use environment condition corresponding to the electronic equipment is judged according to the collected multispectral image of the liquid. If the liquid does not meet the preset use environment condition, the prompt information is output to prompt the user, so that some use risks can be avoided in advance, and the use safety of the electronic equipment is improved.
Optionally, in some embodiments of the present invention, the electronic device may further include:
and the environment parameter acquisition module is used for acquiring the environment parameters of the electronic equipment.
And the second judgment module is used for judging whether the electronic equipment is in the liquid or not based on the environmental parameters.
In an embodiment of the present invention, the environmental parameter includes an air pressure value and a touch position corresponding to a touch input on a screen of the electronic device; wherein, the second judging module is used for:
judging whether the air pressure value is within a preset air pressure range or not, and judging whether the touch position is a preset position or not;
and if the air pressure value is not within the preset air pressure range and the touch position is the preset position, determining that the electronic equipment is in the liquid.
Optionally, in some embodiments of the present invention, the multispectral image comprises a first spectral image of the liquid in the infrared band and a second spectral image of the liquid in the ultraviolet band; wherein, first judgement module includes:
a first determination unit for determining the temperature of the liquid based on the first spectral image.
A second determination unit for determining the liquid type of the liquid based on the second spectral image.
The first judging unit is used for determining that the liquid does not meet the preset using environment condition under the condition that the temperature of the liquid does not belong to a preset temperature range and/or the liquid type of the liquid is not a preset liquid type.
Optionally, in some embodiments of the present invention, the first determining unit is specifically configured to:
determining the temperature corresponding to the gray value of each first pixel point in the at least one first pixel point by utilizing the gray value of the at least one first pixel point in the first spectrum image and the corresponding relation between the preset gray value and the temperature;
and determining the temperature of the liquid based on the temperature corresponding to the gray value of each first pixel point.
Optionally, in some embodiments of the present invention, the second determining unit is specifically configured to:
determining the chloride ion content and the nitrate content corresponding to the gray value of each second pixel point in the at least one second pixel point by utilizing the gray value of the at least one second pixel point in the second spectrum image, the corresponding relation between the preset gray value and the chloride ion content and the corresponding relation between the preset gray value and the nitrate content;
determining the content of nitrate and the content of chloride ions in the liquid based on the content of chloride ions and the content of nitrate corresponding to the gray value of each second pixel point;
the liquid type of the liquid is determined based on the nitrate content and the chloride ion content in the liquid.
The electronic device provided by the embodiment of the present invention can implement each process in the method embodiments of fig. 1 to fig. 2, and is not described here again to avoid repetition.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device 400 for implementing various embodiments of the present invention, where the electronic device 400 includes, but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, a power supply 411, and an image capturing apparatus 412. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, an electronic device, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The image capture device 412 may be a multispectral sensor for acquiring multispectral images of the fluid.
The processor 410 is configured to control the multispectral sensor to acquire a multispectral image of the liquid when the electronic device is in the liquid; judging whether the liquid meets the preset use environment condition corresponding to the electronic equipment or not based on the multispectral image; and if the liquid does not meet the preset use environment condition, outputting prompt information.
In the embodiment of the invention, under the condition that the electronic equipment is determined to be in the liquid, whether the liquid meets the preset use environment condition corresponding to the electronic equipment is judged according to the multispectral image of the liquid collected by the multispectral sensor. If the liquid does not meet the preset use environment condition, the prompt information is output to prompt the user, so that some use risks can be avoided in advance, and the use safety of the electronic equipment is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by the image capturing apparatus 412 (such as a camera) in the video capturing mode or the image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, further including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned information prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the information prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., an electronic device, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An information prompting method is applied to electronic equipment, and the method comprises the following steps:
acquiring, by a multispectral sensor, a multispectral image of the liquid with the electronic device in the liquid;
judging whether the liquid meets a preset use environment condition corresponding to the electronic equipment or not based on the multispectral image;
and if the liquid does not meet the preset use environment condition, outputting prompt information.
2. The method of claim 1, wherein prior to acquiring the multispectral image of the liquid with the electronic device in the liquid, the method further comprises:
acquiring environmental parameters of the electronic equipment;
and judging whether the electronic equipment is in the liquid or not based on the environmental parameter.
3. The method of claim 2, wherein the environmental parameter comprises a barometric pressure value and a touch location corresponding to a touch input on a screen of the electronic device;
wherein the determining whether the electronic device is in liquid based on the environmental parameter comprises:
judging whether the air pressure value is within a preset air pressure range or not, and judging whether the touch position is a preset position or not;
and if the air pressure value is not within the preset air pressure range and the touch position is the preset position, determining that the electronic equipment is in the liquid.
4. The method of claim 1 wherein said multispectral image comprises a first spectral image of said liquid in the infrared band and a second spectral image of said liquid in the ultraviolet band;
wherein the determining whether the liquid meets a preset usage environment condition corresponding to the electronic device based on the multispectral image includes:
determining a temperature of the liquid based on the first spectral image;
determining a liquid type of the liquid based on the second spectral image;
and determining that the liquid does not meet the preset using environment condition under the condition that the temperature of the liquid does not belong to a preset temperature range and/or the liquid type of the liquid is not a preset liquid type.
5. The method of claim 4, wherein determining the temperature of the liquid based on the first spectral image comprises:
determining the temperature corresponding to the gray value of each first pixel point in the at least one first pixel point by utilizing the gray value of the at least one first pixel point in the first spectrum image and the corresponding relation between the preset gray value and the temperature;
determining the temperature of the liquid based on the temperature corresponding to the gray value of each first pixel point;
wherein the determining a liquid type of the liquid based on the second spectral image comprises:
determining the chloride ion content and the nitrate content corresponding to the gray value of each second pixel point in the at least one second pixel point by utilizing the gray value of the at least one second pixel point in the second spectrum image, the corresponding relation between the preset gray value and the chloride ion content and the corresponding relation between the preset gray value and the nitrate content;
determining the content of nitrate and the content of chloride ions in the liquid based on the content of chloride ions and the content of nitrate corresponding to the gray value of each second pixel point;
determining the liquid type of the liquid based on the nitrate content and the chloride ion content in the liquid.
6. An electronic device, comprising:
the image acquisition module is used for acquiring a multispectral image of the liquid through a multispectral sensor under the condition that the electronic equipment is in the liquid;
the first judgment module is used for judging whether the liquid meets the preset use environment condition corresponding to the electronic equipment or not based on the multispectral image;
and the prompt information output module is used for outputting prompt information if the liquid does not meet the preset using environment condition.
7. The apparatus of claim 6, further comprising:
the environment parameter acquisition module is used for acquiring the environment parameters of the electronic equipment;
and the second judging module is used for judging whether the electronic equipment is in the liquid or not based on the environmental parameters.
8. The device of claim 7, wherein the environmental parameter comprises a barometric pressure value and a touch location corresponding to a touch input on a screen of the electronic device;
the second judging module is specifically configured to:
judging whether the air pressure value is within a preset air pressure range or not, and judging whether the touch position is a preset position or not;
and if the air pressure value is not within the preset air pressure range and the touch position is the preset position, determining that the electronic equipment is in the liquid.
9. The apparatus of claim 6 wherein said multispectral image comprises a first spectral image of said liquid in the infrared band and a second spectral image of said liquid in the ultraviolet band;
wherein, the first judging module comprises:
a first determination unit for determining the temperature of the liquid based on the first spectral image;
a second determination unit for determining a liquid type of the liquid based on the second spectral image;
the first judging unit is used for determining that the liquid does not meet the preset using environment condition under the condition that the temperature of the liquid does not belong to a preset temperature range and/or the liquid type of the liquid is not a preset liquid type.
10. The method of claim 9, wherein the first determining unit is configured to:
determining the temperature corresponding to the gray value of each first pixel point in the at least one first pixel point by utilizing the gray value of the at least one first pixel point in the first spectrum image and the corresponding relation between the preset gray value and the temperature;
determining the temperature of the liquid based on the temperature corresponding to the gray value of each first pixel point;
wherein the second determination unit is configured to:
determining the chloride ion content and the nitrate content corresponding to the gray value of each second pixel point in the at least one second pixel point by utilizing the gray value of the at least one second pixel point in the second spectrum image, the corresponding relation between the preset gray value and the chloride ion content and the corresponding relation between the preset gray value and the nitrate content;
based on the chloride ion content and the nitrate content corresponding to the gray value of each second pixel point,
determining the nitrate content and chloride ion content of the liquid;
determining the liquid type of the liquid based on the nitrate content and the chloride ion content in the liquid.
CN201911349330.0A 2019-12-24 2019-12-24 Information prompting method and electronic equipment Pending CN111122467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911349330.0A CN111122467A (en) 2019-12-24 2019-12-24 Information prompting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911349330.0A CN111122467A (en) 2019-12-24 2019-12-24 Information prompting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111122467A true CN111122467A (en) 2020-05-08

Family

ID=70502001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911349330.0A Pending CN111122467A (en) 2019-12-24 2019-12-24 Information prompting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111122467A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007113979A (en) * 2005-10-19 2007-05-10 Ebara Corp Multispectral analyzer
US20150009173A1 (en) * 2013-07-04 2015-01-08 Sony Corporation Finger detection on touch screens for mobile devices
CN105300909A (en) * 2015-12-02 2016-02-03 重庆大学 Direct power-spectral method-based all-weather long drainage basin water quality monitoring and early-warning system
CN105678962A (en) * 2016-01-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Intelligent wearable device and method for carrying out safety prompt in swimming state
CN105930007A (en) * 2016-04-29 2016-09-07 青岛海信移动通信技术股份有限公司 Touch operation method and apparatus for mobile device and mobile device
CN108427533A (en) * 2017-02-15 2018-08-21 三星电子株式会社 The method of electronic equipment and environment for determining electronic equipment
CN108597186A (en) * 2018-04-18 2018-09-28 广东小天才科技有限公司 A kind of drowning alarming method and wearable device based on user behavior
CN109407871A (en) * 2017-08-16 2019-03-01 西安中兴新软件有限责任公司 It is a kind of to identify the method and device of Riddled Condition, electronic equipment
CN109839245A (en) * 2017-11-29 2019-06-04 富泰华工业(深圳)有限公司 Electronic device and its waterproof quality guarantee condition judging method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007113979A (en) * 2005-10-19 2007-05-10 Ebara Corp Multispectral analyzer
US20150009173A1 (en) * 2013-07-04 2015-01-08 Sony Corporation Finger detection on touch screens for mobile devices
CN105300909A (en) * 2015-12-02 2016-02-03 重庆大学 Direct power-spectral method-based all-weather long drainage basin water quality monitoring and early-warning system
CN105678962A (en) * 2016-01-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Intelligent wearable device and method for carrying out safety prompt in swimming state
CN105930007A (en) * 2016-04-29 2016-09-07 青岛海信移动通信技术股份有限公司 Touch operation method and apparatus for mobile device and mobile device
CN108427533A (en) * 2017-02-15 2018-08-21 三星电子株式会社 The method of electronic equipment and environment for determining electronic equipment
CN109407871A (en) * 2017-08-16 2019-03-01 西安中兴新软件有限责任公司 It is a kind of to identify the method and device of Riddled Condition, electronic equipment
CN109839245A (en) * 2017-11-29 2019-06-04 富泰华工业(深圳)有限公司 Electronic device and its waterproof quality guarantee condition judging method
CN108597186A (en) * 2018-04-18 2018-09-28 广东小天才科技有限公司 A kind of drowning alarming method and wearable device based on user behavior

Similar Documents

Publication Publication Date Title
CN109934137B (en) Photoelectric fingerprint identification device, terminal and fingerprint identification method
CN107783887B (en) Control method of mobile terminal and mobile terminal
CN107645610B (en) Control method of mobile terminal and mobile terminal
CN111314610B (en) Control method and electronic equipment
CN110719402B (en) Image processing method and terminal equipment
CN107038681A (en) Image weakening method, device, computer-readable recording medium and computer equipment
CN108307106B (en) Image processing method and device and mobile terminal
CN107463897B (en) Fingerprint identification method and mobile terminal
CN107818038B (en) Information prompting method and mobile terminal
CN108012026B (en) Eyesight protection method and mobile terminal
CN107644396B (en) Lip color adjusting method and device
CN107704182B (en) Code scanning method and mobile terminal
CN110807405A (en) Detection method of candid camera device and electronic equipment
CN110197159B (en) Fingerprint acquisition method and terminal
CN110827217B (en) Image processing method, electronic device, and computer-readable storage medium
CN110276329B (en) Skin detection method and terminal
CN108647566B (en) Method and terminal for identifying skin characteristics
CN111325701B (en) Image processing method, device and storage medium
CN112733673B (en) Content display method and device, electronic equipment and readable storage medium
KR102452065B1 (en) Electronic device and method for providing adsorption information of foreign substance adsorbed to cemera
CN111310677B (en) Fingerprint image processing method and electronic equipment
CN110930372B (en) Image processing method, electronic equipment and computer readable storage medium
CN109104522B (en) Face recognition method and mobile terminal
CN110889692A (en) Mobile payment method and electronic equipment
CN108520727B (en) Screen brightness adjusting method and mobile terminal

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