CN108429850B - Fall treatment method and related product - Google Patents
Fall treatment method and related product Download PDFInfo
- Publication number
- CN108429850B CN108429850B CN201810029095.8A CN201810029095A CN108429850B CN 108429850 B CN108429850 B CN 108429850B CN 201810029095 A CN201810029095 A CN 201810029095A CN 108429850 B CN108429850 B CN 108429850B
- Authority
- CN
- China
- Prior art keywords
- target
- falling
- electronic equipment
- magnetic induction
- determining
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000006698 induction Effects 0.000 claims abstract description 103
- 230000007613 environmental effect Effects 0.000 claims abstract description 76
- 230000001133 acceleration Effects 0.000 claims description 38
- 230000005484 gravity Effects 0.000 claims description 37
- 239000000463 material Substances 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 13
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 6
- 238000003672 processing method Methods 0.000 abstract description 10
- 230000002035 prolonged effect Effects 0.000 abstract description 8
- 238000001514 detection method Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 230000033001 locomotion Effects 0.000 description 5
- 230000011218 segmentation Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000004907 flux Effects 0.000 description 3
- 238000003709 image segmentation Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000004568 cement Substances 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003169 placental effect Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/18—Telephone sets specially adapted for use in ships, mines, or other places exposed to adverse environment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/52—Details of telephonic subscriber devices including functional features of a camera
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Geophysics And Detection Of Objects (AREA)
- Emergency Alarm Devices (AREA)
Abstract
The embodiment of the application discloses a fall processing method and a related product, wherein the method comprises the following steps: if the electronic equipment is detected to be in a falling state, acquiring a ground image; collecting the magnetic induction intensity of the environment; determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image; and driving an electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place. By the aid of the method and the device, safety of the electronic equipment when falling to the ground can be improved, and service life of the electronic equipment is prolonged.
Description
Technical Field
The application relates to the technical field of electronic equipment, and mainly relates to a drop processing method and a related product.
Background
In recent years, with the development of electronic device technology, electronic devices such as large-screen mobile phones and tablet computers have become more and more popular. In the process of daily use of electronic equipment, a falling situation is inevitable, and how to solve the falling prevention of the electronic equipment is still a problem to be solved by a person skilled in the art.
Disclosure of Invention
The embodiment of the application provides a drop processing method and a related product, which can improve the safety of electronic equipment when the electronic equipment falls to the ground and prolong the service life of the electronic equipment.
In a first aspect, an embodiment of the present application provides a drop processing method, including:
if the electronic equipment is detected to be in a falling state, acquiring a ground image;
collecting the magnetic induction intensity of the environment;
determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image;
and driving an electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place.
In a second aspect, an embodiment of the present application provides an electronic device, including a processor, a gravity sensor connected to the processor, an image capturing device, a magnetic sensor, and an electromagnet, wherein:
the gravity sensor is used for detecting whether the electronic equipment is in a falling state or not;
the image acquisition equipment is used for acquiring a ground image if the electronic equipment is in a falling state;
the magnetic sensor is used for acquiring the magnetic induction intensity of the environment;
the processor is used for determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image; and driving the electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place.
In a third aspect, an embodiment of the present application provides a drop handling device, including:
the acquisition unit is used for acquiring a ground image if the electronic equipment is detected to be in a falling state;
the acquisition unit is used for acquiring the magnetic induction intensity of the environment;
the determining unit is used for determining target magnetic field parameters and target falling places according to the environmental magnetic induction and the ground images;
and the driving unit is used for driving the electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place.
In a fourth aspect, the present application provides another fall handling method, which is applied to an electronic device including a processor, a gravity sensor, an image capturing device, a magnetic sensor, and an electromagnet, where:
the gravity sensor detects whether the electronic equipment is in a falling state;
if the electronic equipment is in a falling state, the image acquisition equipment acquires a ground image;
the magnetic sensor collects the magnetic induction intensity of the environment;
the processor determines target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image; and driving the electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place.
In a fifth aspect, an embodiment of the present application provides another electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for some or all of the steps described in the first aspect.
In a sixth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program makes a computer perform some or all of the steps as described in the first aspect of the present application.
In a seventh aspect, this application embodiment provides a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of this application embodiment. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
after the falling processing method and the related products are adopted, if the electronic equipment is detected to be in a falling state, a ground image is obtained, the environmental magnetic induction intensity is collected, the target magnetic field parameter and the target falling place are determined according to the environmental magnetic induction intensity and the ground image, and then the electromagnet is driven to work according to the target magnetic field parameter so that the electronic equipment falls to the target falling place. That is to say, the falling direction of the electronic equipment is changed by utilizing the environmental magnetic induction and the target magnetic field parameters, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flow chart of a drop processing method according to an embodiment of the present disclosure;
fig. 1A is a schematic diagram of a gravity sensor according to an embodiment of the present disclosure;
fig. 1B is a scene schematic diagram of recognizing a ground image according to an embodiment of the present disclosure;
FIG. 1C is a schematic diagram of a fall processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a drop handling device provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of another drop processing method provided in the embodiments of the present application;
fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The embodiment of the application provides a drop processing method and a related product, which can improve the safety of electronic equipment when the electronic equipment falls to the ground and prolong the service life of the electronic equipment. Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart of a drop processing method according to an embodiment of the present disclosure. The method described in fig. 1 is applied to an electronic device including an electromagnet, and electromagnetism can be generated when the electronic device is electrified, and the position and the specific structure of the electromagnet are not limited in the application. As shown in fig. 1, includes:
101: and if the electronic equipment is detected to be in a falling state, acquiring a ground image.
The application does not do the injectness to the detection of falling state, and is optional, acquires the gravity acceleration value through gravity sensor, according to the gravity acceleration value is confirmed with the acceleration value of predetermineeing whether electronic equipment is in the state of falling.
The gravity sensor (G-sensor) is used for detecting the direction and magnitude of acceleration, and is equivalent to detecting the motion state of the electronic device, the function of the gravity sensor is relatively simple to understand, changes of acceleration force, such as shaking, falling, rising, falling and other movement changes can be mainly sensed and converted into electric signals by the gravity sensor, and then the functions with good program design can be completed after calculation and analysis of the microprocessor.
Referring to fig. 1A, the specific principle of the gravity sensor is that the acceleration direction includes an X axis, a Y axis and a Z axis. The X axis and the Y axis are parallel to the plane of the electronic device 100, the X axis is the width direction of the electronic device 100, the Y axis is the length direction of the electronic device 100, and the Z axis is perpendicular to the plane of the electronic device 100.
The gravity acceleration value is specifically the acceleration value vertically downward in the Z-axis direction, and is generally 9.8m/s2Acceleration value in m/s2. If the gravity acceleration value is matched with a preset acceleration value, the electronic equipment is in a falling state; and if the gravity acceleration value is not matched with the preset acceleration value, the electronic equipment is not in a falling state.
It should be noted that the gravitational acceleration value varies with the geographical position, and the gravitational acceleration value of an object near the earth is generally between 9.78m/s2To 9.83m/s2In the meantime. Therefore, if the electronic device is determined to be in the falling state by the gravity acceleration value, the gravity acceleration value of the geographical location of the electronic device needs to be obtained in advance. When the electronic equipment falls off, due to the fact that air resistance and gravity acceleration values of all regions are different, the preset acceleration value and the gravity acceleration have certain errors, and therefore the preset acceleration value can be set to be a value which is lower than the gravity acceleration by a certain range, such as 9.3m/s2。
If the electronic equipment is detected not to be in the falling state, continuously detecting whether the electronic equipment is in the falling state; and if the electronic equipment is detected to be in a falling state, acquiring a ground image.
The method is not limited to how to acquire the ground image, and the ground image can be acquired by image acquisition equipment such as a front camera or a rear camera arranged on the electronic equipment, namely, the camera facing the ground is determined by a gravity sensor to acquire the ground image; ground images and the like stored in a server or satellite positioning can also be acquired.
102: and collecting the magnetic induction intensity of the environment.
The magnetic induction intensity (magnetic flux density) is a vector used to describe the physical quantity of the strength and direction of the magnetic field, and is generally denoted by symbol B, and the international common unit is tesla (symbol T). Magnetic induction is also referred to as magnetic flux density or magnetic flux intensity. In physics, the strength of a magnetic field is expressed by magnetic induction, and the higher the magnetic induction is, the stronger the magnetic induction is, and the lower the magnetic induction is, the weaker the magnetic induction is.
The magnetic field intensity of the environment can be collected through a magnetic field sensor (M-sensor) in the electronic equipment, and the magnetic field intensity of the environment can also be obtained through magnetic data provided by an electronic compass sensor in the electronic equipment.
The environmental magnetic induction intensity is environmental magnetic field data of an X axis, a Y axis and a Z axis in the electronic equipment. The units of this value are microtesla (micro-Tesla), expressed as uT; gaussian (Gauss), 1Tesla ═ 10000Gauss, is also possible.
103: and determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image.
When the electromagnet is electrified, a magnetic field can be generated, and the falling direction of the electronic equipment is adjusted by combining the environmental magnetic induction intensity, so that the falling place of the electronic equipment is changed. The target magnetic field parameters and the target falling place are determined according to the current environmental magnetic induction and the ground image, so that an electromagnet in the electronic equipment works according to the target magnetic field parameters and falls to the safer target falling place.
Optionally, the falling height of the electronic device is obtained; identifying the ground image to obtain a plurality of target areas; selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
The method for acquiring the falling height is not limited, and the falling height can be acquired through depth of field information in the ground image and can be acquired by combining a distance sensor in the electronic equipment.
The distance sensor includes but is not limited to an infrared sensor, a capacitance sensor, an ultrasonic sensor, an ambient light sensor, a proximity sensor and the like, is used for detecting the distance between an object and the electronic equipment, has the unit of centimeter, and can adjust the screen brightness when receiving the call according to the distance so as to save the electric quantity.
Optionally, when the electronic device is detected to be in a falling state, the distance sensor is started; receiving detection data reported by the distance sensor; acquiring a time interval between the moment of starting the distance sensor and the moment of receiving the detection data; and acquiring the falling height according to the detection data and the time interval.
That is, after the distance sensor detects the distance data, the distance sensor reports the detection data, and the distance between the electronic device and the ground, that is, the falling height, is obtained according to the time interval between the falling state detection and the detection data reporting and the detection data.
It should be noted that a certain time error exists between the electronic device falling and receiving the detection data, the time error can be obtained according to the preset duration and the time interval, and then the height error is obtained according to the time error; and acquiring the falling height according to the height error and the detection data.
In the present application, the time error t can be obtained by the following formula:
t=t1+t2(1)
wherein, t1For a predetermined duration, t2Are time intervals. For example, the preset duration t10.2s, the time interval t obtained2At 0.1s, the time error t is 0.3 s.
Height error H1Can be obtained by the following formula:
H1=0.5×g×t2(2)
where g is the gravitational acceleration and t is the time error described above. For example, if the calculated time error t is 0.3s, the height error H can be calculated1Is 0.441 m.
Therefore, the drop height H can be obtained by the following formula:
H=H1+H2(3)
wherein H1For the above-mentioned height error, H2Is the detection data of the distance sensor. For example, the calculated height error H10.441m, detection data H2At 1m, the drop height H can be calculated to be 1.441 m.
Therefore, after the detection data of the distance sensor are received, the time interval between the moment of starting the distance sensor and the moment of receiving the detection data is obtained, then the falling height of the electronic equipment is obtained according to the detection data and the time interval, the detection data are corrected according to the time error in consideration of the time error of receiving the detection data, and therefore the accuracy of falling height detection can be improved.
The method for determining the target area is not limited, and the area which is easy to cause the electronic equipment to break or the touch display screen to be cracked should be avoided. Optionally, performing image recognition on the ground image to obtain at least one designated area; and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
The designated area includes, but is not limited to, a water area and a raised area, and the ground material is an area made of a designated material (the designated material is not limited in this application, and may be a harder material, such as cement, ceramic tile, etc.).
The image recognition method of the ground image is not limited in the present application, and may be gray scale image segmentation, color image segmentation, texture image segmentation, and the like, and the segmentation methods may include a threshold segmentation method, an edge detection method, a region extraction method, segmentation based on wavelet transformation, segmentation based on a genetic algorithm, a segmentation method combined with a specific theoretical tool, and the like.
It can be understood that the ground image is subjected to image recognition to obtain a designated area for avoiding falling, and then the ground image is divided into a plurality of target areas according to the specific positions of the designated area, so that the plurality of target areas are all areas for falling safely, and the falling safety of the electronic equipment is improved conveniently.
For example, as shown in fig. 1B, in the ground image, the designated areas are a first area including a puddle and a second area including a convex area, and the ground image is divided according to the first area and the second area to obtain a plurality of target areas: a third region, a fourth region, a fifth region, a sixth region, a seventh region, an eighth region, and a ninth region.
Further, if all the ground images are designated areas, acquiring a damage value of each designated area, and selecting the designated area corresponding to the minimum damage value as a target falling place, so that the safety caused by falling is reduced; and if the ground image does not contain the designated area, directly dividing the ground image into a plurality of target areas, wherein the plurality of target areas can divide the ground image by taking the target landing place as an origin, or divide the ground image according to the size of the electronic equipment.
The method for selecting the target falling site from the target area is not limited, and any one site in the target area can be selected, a site corresponding to the minimum power consumption for starting the target magnetic field parameter consumption can be selected, and a site closest to the target landing site can be selected.
The method comprises the steps of determining target magnetic field parameters according to a target falling place and environmental magnetic induction intensity, and optionally determining a target landing point and landing time of the electronic equipment in a free-falling state; determining a target distance between the target landing site and the target fall site; determining a horizontal acceleration according to the target distance and the landing time; determining the horizontal stress of the electronic equipment according to the horizontal acceleration; and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
As shown in FIG. 1CWhen the electronic device 100 detects a falling state, the target landing point N performs a free-fall motion, that is, the electronic device vertically falls to a corresponding place, and then the falling height H is 0.5gt3 2Calculating to obtain the landing time t3Target distance S between target landing site N and target falling site M, landing time t3A horizontal acceleration corresponding to the target distance S, and a horizontal force F corresponding to the horizontal acceleration. According to the principle, the electronic equipment can be understood to generate a magnetic field and a horizontal stress F when the electromagnet works according to the target magnetic field parameters, and the falling path of the electronic equipment is changed through the horizontal stress F and the gravity G corresponding to the environmental magnetic induction intensity, so that the electronic equipment falls to a target falling place.
It should be noted that, since the free-fall motion is a uniform linear motion with an initial velocity of 0, and environmental factors such as wind power and the like are not considered, the target landing point and the landing time may be approximate to a falling place and a falling duration corresponding to the falling of the electronic device.
There are many situations where electronic devices fall, and some fall may cause great damage to the electronic devices, for example, the electronic devices fall from a high place to the ground, resulting in screen breakage and the like. However, some falling does not have great influence on the electronic device, for example, the electronic device slips from the hand of the user to the desk, and the electronic device generally does not have the problems of screen breaking, circuit board damage and the like. And when the falling height is small, the generated magnetic field may not achieve the preset effect. Optionally, when the falling height is greater than a preset threshold, the step of collecting the environmental magnetic induction intensity is performed.
This application does not do the injecion to predetermineeing the threshold value, it is 1 meter to assume to predetermine the threshold value, be in promptly detecting electronic equipment and fall the state, and fall when highly being greater than 1 meter this moment, then gather environment magnetic induction intensity, otherwise, adopt other modes to protect or do not take protective measures, thereby control opening of magnetic sensor or electron compass sensor, avoid carrying out the problem of falling the protection and the electric quantity waste that brings blindly effectively, can save electronic equipment's consumption, be convenient for improve electronic equipment's security when falling to the ground.
104: and driving an electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place.
When the electromagnet works according to target magnetic field parameters, the falling direction of the electronic equipment can be adjusted by the generated magnetic field and the environmental magnetic induction intensity, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
It can be understood that if the electronic equipment is detected to be in a falling state, a ground image is obtained, the environmental magnetic induction is collected, the target magnetic field parameter and the target falling place are determined according to the environmental magnetic induction and the ground image, and the electromagnet is driven to work according to the target magnetic field parameter so that the electronic equipment falls to the target falling place. That is to say, the falling direction of the electronic equipment is changed by utilizing the environmental magnetic induction and the target magnetic field parameters, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a drop handling apparatus according to an embodiment of the present disclosure. As shown in fig. 2, the above-described fall processing apparatus 200 includes: a
An obtaining unit 201, configured to obtain a ground image if it is detected that the electronic device is in a falling state;
the acquisition unit 202 is used for acquiring environmental magnetic induction intensity;
the determining unit 203 is used for determining a target magnetic field parameter and a target falling place according to the environmental magnetic induction and the ground image;
and the driving unit 204 is used for driving the electromagnet to work according to the target magnetic field parameter so as to enable the electronic equipment to fall to the target falling place.
In one possible example, the obtaining unit 201 is further configured to obtain a falling height of the electronic device; carrying out image recognition on the ground image to obtain a plurality of target areas; the determining unit 203 is further configured to select the target falling location from the multiple target areas according to the falling height and the environmental magnetic induction; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
In one possible example, the determining unit 203 is specifically configured to determine a target landing point and a landing time of the electronic device in a free-fall state; determining a target distance between the target landing site and the target fall site; determining a horizontal acceleration according to the target distance and the landing time; determining the horizontal stress of the electronic equipment according to the horizontal acceleration; and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
In a possible example, the obtaining unit 201 is specifically configured to perform image recognition on the ground image to obtain at least one designated area, where the designated area includes one of: the water area, the raised area and the area with the ground material being the designated material; and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
In one possible example, the acquisition unit 202 is specifically configured to acquire the ambient magnetic induction when the drop height is greater than a preset threshold.
If the electronic equipment is detected to be in the falling state, the ground image is obtained, the environmental magnetic induction intensity is collected, the target magnetic field parameter and the target falling place are determined according to the environmental magnetic induction intensity and the ground image, and then the electromagnet is driven to work according to the target magnetic field parameter so that the electronic equipment falls to the target falling place. That is to say, the falling direction of the electronic equipment is changed by utilizing the environmental magnetic induction and the target magnetic field parameters, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 3, the electronic device 300 includes a processor 310, a gravity sensor 320 connected to the processor 310, an image capturing device 330, a magnetic force sensor 340, and an electromagnet 350.
Wherein the gravity sensor 320 is used for detecting whether the electronic device 300 is in a falling state; the image acquisition device 330 is configured to acquire a ground image if the electronic device 300 is in a falling state; the magnetic sensor 340 is used for acquiring environmental magnetic induction intensity; the processor 310 is configured to determine a target magnetic field parameter and a target falling location according to the environmental magnetic induction and the ground image; and driving the electromagnet 350 to work according to the target magnetic field parameters so as to enable the electronic equipment 300 to fall to the target falling place.
In one possible example, the processor 310 is specifically configured to obtain a drop height of the electronic device; carrying out image recognition on the ground image to obtain a plurality of target areas; selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
In one possible example, the processor 310 is specifically configured to determine a target landing site and a landing time of the electronic device in a free-fall state; determining a target distance between the target landing site and the target fall site; determining a horizontal acceleration according to the target distance and the landing time; determining the horizontal stress of the electronic equipment according to the horizontal acceleration; and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
In one possible example, the processor 310 is specifically configured to perform image recognition on the ground image to obtain at least one designated area, where the designated area includes one of: the water area, the raised area and the area with the ground material being the designated material; and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
In one possible example, the electronic device 300 further comprises a memory 360 coupled to the processor 310 for storing a preset threshold; the magnetic sensor 340 is specifically configured to collect the environmental magnetic induction intensity when the falling height is greater than the preset threshold.
If the electronic equipment is detected to be in the falling state, the ground image is obtained, the environmental magnetic induction intensity is collected, the target magnetic field parameter and the target falling place are determined according to the environmental magnetic induction intensity and the ground image, and then the electromagnet is driven to work according to the target magnetic field parameter so that the electronic equipment falls to the target falling place. That is to say, the falling direction of the electronic equipment is changed by utilizing the environmental magnetic induction and the target magnetic field parameters, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
Referring to fig. 4, fig. 4 is a schematic flow chart of another drop handling method proposed by the present application, and the drop handling method is applied to the electronic device described in fig. 3, consistent with the embodiment shown in fig. 1. Wherein:
401: the gravity sensor detects whether the electronic equipment is in a falling state;
402: if the electronic equipment is in a falling state, the image acquisition equipment acquires a ground image;
403: the magnetic sensor collects the magnetic induction intensity of the environment;
404: the processor determines target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image;
405: the processor drives the electromagnet to work according to the target magnetic field parameters, so that the electronic equipment falls to the target falling place.
In one possible example, the processor determining target magnetic field parameters and a target fall location from the ambient magnetic induction and the ground image comprises: the processor acquires the falling height of the electronic equipment; carrying out image recognition on the ground image to obtain a plurality of target areas; selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
In one possible example, the processor determining the target magnetic field parameter as a function of the target fall location and the ambient magnetic induction comprises: determining a target landing point and landing time of the electronic equipment in a free-fall state; determining a target distance between the target landing site and the target fall site; determining a horizontal acceleration according to the target distance and the landing time; determining the horizontal stress of the electronic equipment according to the horizontal acceleration; and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
In one possible example, the processor performs image recognition on the ground image to obtain a plurality of target areas, including: performing image recognition on the ground image to obtain at least one designated area, wherein the designated area comprises one of the following areas: the water area, the raised area and the area with the ground material being the designated material; and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
In one possible example, the magnetic sensor acquiring ambient magnetic induction comprises: and when the falling height is greater than a preset threshold value, the magnetic sensor collects the environmental magnetic induction intensity.
If the electronic equipment is detected to be in the falling state, the ground image is obtained, the environmental magnetic induction intensity is collected, the target magnetic field parameter and the target falling place are determined according to the environmental magnetic induction intensity and the ground image, and then the electromagnet is driven to work according to the target magnetic field parameter so that the electronic equipment falls to the target falling place. That is to say, the falling direction of the electronic equipment is changed by utilizing the environmental magnetic induction and the target magnetic field parameters, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure, which is consistent with the embodiment shown in fig. 1. As shown in fig. 5, the electronic device 500 includes a processor 510, a memory 520, a communication interface 530, and one or more programs 540, wherein the one or more programs 540 are stored in the memory 520 and configured to be executed by the processor 510, the program 540 including instructions for performing the steps of:
if the electronic equipment is detected to be in a falling state, acquiring a ground image;
collecting the magnetic induction intensity of the environment;
determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image;
and driving an electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place.
In one possible example, the program 540 is specifically configured to execute instructions for, in the determining a target magnetic field parameter and a target fall location from the ambient magnetic induction and the ground image:
acquiring the falling height of the electronic equipment;
carrying out image recognition on the ground image to obtain a plurality of target areas;
selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity;
and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
In one possible example, the program 540 is specifically configured to execute instructions for, in the determining the target magnetic field parameter as a function of the target fall location and the ambient magnetic induction:
determining a target landing point and landing time of the electronic equipment in a free-fall state;
determining a target distance between the target landing site and the target fall site;
determining a horizontal acceleration according to the target distance and the landing time;
determining the horizontal stress of the electronic equipment according to the horizontal acceleration;
and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
In one possible example, in the aspect of performing image recognition on the ground image to obtain a plurality of target areas, the program 540 is specifically configured to execute the following steps:
performing image recognition on the ground image to obtain at least one designated area, wherein the designated area comprises one of the following areas: the water area, the raised area and the area with the ground material being the designated material;
and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
In one possible example, before the acquiring the ambient magnetic induction, the program 540 is further configured to execute the following steps:
and when the falling height is larger than a preset threshold value, executing the step of collecting the environmental magnetic induction intensity.
If the electronic equipment is detected to be in the falling state, the ground image is obtained, the environmental magnetic induction intensity is collected, the target magnetic field parameter and the target falling place are determined according to the environmental magnetic induction intensity and the ground image, and then the electromagnet is driven to work according to the target magnetic field parameter so that the electronic equipment falls to the target falling place. That is to say, the falling direction of the electronic equipment is changed by utilizing the environmental magnetic induction and the target magnetic field parameters, so that the electronic equipment falls to a safer target falling place, the safety of the electronic equipment when falling to the ground can be improved, and the service life of the electronic equipment is prolonged.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for causing a computer to execute a part or all of the steps of any one of the methods as described in the method embodiments, and the computer includes an electronic device.
Embodiments of the application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the method embodiments. The computer program product may be a software installation package and the computer comprises the electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (12)
1. A drop handling method, comprising:
if the electronic equipment is detected to be in a falling state, acquiring a ground image;
collecting the magnetic induction intensity of the environment;
determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image;
driving an electromagnet to work according to the target magnetic field parameters so that the electronic equipment falls to the target falling place;
wherein, the determining the target magnetic field parameters and the target falling location according to the environmental magnetic induction and the ground image comprises:
acquiring the falling height of the electronic equipment;
carrying out image recognition on the ground image to obtain a plurality of target areas;
selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity;
and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
2. The method of claim 1, wherein said determining said target magnetic field parameters from said target drop location and said ambient magnetic induction comprises:
determining a target landing point and landing time of the electronic equipment in a free-fall state;
determining a target distance between the target landing site and the target fall site;
determining a horizontal acceleration according to the target distance and the landing time;
determining the horizontal stress of the electronic equipment according to the horizontal acceleration;
and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
3. The method of claim 1, wherein the image recognizing the ground image to obtain a plurality of target areas comprises:
performing image recognition on the ground image to obtain at least one designated area, wherein the designated area comprises one of the following areas: the water area, the raised area and the area with the ground material being the designated material;
and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
4. The method of any one of claims 1-3, wherein prior to said acquiring ambient magnetic induction, the method further comprises:
and when the falling height is larger than a preset threshold value, executing the step of collecting the environmental magnetic induction intensity.
5. An electronic device, comprising: the treater, with gravity sensor, image acquisition equipment, magnetic force sensor and the electromagnet that the treater is connected, wherein:
the gravity sensor is used for detecting whether the electronic equipment is in a falling state or not;
the image acquisition equipment is used for acquiring a ground image if the electronic equipment is in a falling state;
the magnetic sensor is used for acquiring the magnetic induction intensity of the environment;
the processor is used for determining target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image; driving the electromagnet to work according to the target magnetic field parameters so that the electronic equipment falls to the target falling place;
the processor is specifically configured to obtain a falling height of the electronic device; carrying out image recognition on the ground image to obtain a plurality of target areas; selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
6. The electronic device of claim 5, wherein the processor is specifically configured to determine a target landing site and a landing time of the electronic device in a free-fall state; determining a target distance between the target landing site and the target fall site; determining a horizontal acceleration according to the target distance and the landing time; determining the horizontal stress of the electronic equipment according to the horizontal acceleration; and determining the target magnetic field parameters according to the horizontal stress and the gravity corresponding to the environmental magnetic induction intensity.
7. The electronic device of claim 5, wherein the processor is specifically configured to perform image recognition on the ground image to obtain at least one designated area, and the designated area comprises one of: the water area, the raised area and the area with the ground material being the designated material; and dividing the ground image according to the at least one designated area to obtain a plurality of target areas.
8. The electronic device of any of claims 5-7, further comprising a memory coupled to the processor for storing a preset threshold;
the magnetic sensor is specifically used for collecting the environmental magnetic induction intensity when the falling height is greater than the preset threshold value.
9. A drop handling device, comprising:
the acquisition unit is used for acquiring a ground image if the electronic equipment is detected to be in a falling state;
the acquisition unit is used for acquiring the magnetic induction intensity of the environment;
the determining unit is used for determining target magnetic field parameters and target falling places according to the environmental magnetic induction and the ground images;
the driving unit is used for driving an electromagnet to work according to the target magnetic field parameters so as to enable the electronic equipment to fall to the target falling place;
wherein, the determining the target magnetic field parameters and the target falling location according to the environmental magnetic induction and the ground image comprises: acquiring the falling height of the electronic equipment; carrying out image recognition on the ground image to obtain a plurality of target areas; selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
10. A fall handling method is applied to an electronic device comprising a processor, a gravity sensor, an image acquisition device, a magnetic sensor and an electromagnet, wherein the gravity sensor, the image acquisition device, the magnetic sensor and the electromagnet are connected with the processor, and the fall handling method comprises the following steps:
the gravity sensor detects whether the electronic equipment is in a falling state;
if the electronic equipment is in a falling state, the image acquisition equipment acquires a ground image;
the magnetic sensor collects the magnetic induction intensity of the environment;
the processor determines target magnetic field parameters and a target falling place according to the environmental magnetic induction and the ground image; driving the electromagnet to work according to the target magnetic field parameters so that the electronic equipment falls to the target falling place;
wherein, the determining the target magnetic field parameters and the target falling location according to the environmental magnetic induction and the ground image comprises: acquiring the falling height of the electronic equipment; carrying out image recognition on the ground image to obtain a plurality of target areas; selecting the target falling place from the target areas according to the falling height and the environmental magnetic induction intensity; and determining the target magnetic field parameters according to the target falling place and the environmental magnetic induction intensity.
11. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-4.
12. A computer-readable storage medium, characterized in that,
for storing a computer program, wherein the computer program is adapted to cause a computer to perform the method according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810029095.8A CN108429850B (en) | 2018-01-10 | 2018-01-10 | Fall treatment method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810029095.8A CN108429850B (en) | 2018-01-10 | 2018-01-10 | Fall treatment method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108429850A CN108429850A (en) | 2018-08-21 |
CN108429850B true CN108429850B (en) | 2020-05-26 |
Family
ID=63155883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810029095.8A Expired - Fee Related CN108429850B (en) | 2018-01-10 | 2018-01-10 | Fall treatment method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108429850B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111582436B (en) * | 2020-04-02 | 2024-04-19 | 深圳创维-Rgb电子有限公司 | Adsorption force adjusting method, device, equipment and storage medium |
CN111641752B (en) * | 2020-05-22 | 2021-05-18 | 维沃移动通信有限公司 | Method and device for adjusting screen state, electronic equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003303489A (en) * | 2002-04-08 | 2003-10-24 | Matsushita Electric Ind Co Ltd | Magnetic disk unit and cellphone device loaded therewith |
CN104184893A (en) * | 2014-08-13 | 2014-12-03 | 信利半导体有限公司 | System and method for controlling falling gravity center of mobile phone |
CN106228094A (en) * | 2016-09-06 | 2016-12-14 | 广东欧珀移动通信有限公司 | Processing method, device and the mobile terminal that mobile terminal falls |
CN106406994A (en) * | 2016-09-06 | 2017-02-15 | 广东欧珀移动通信有限公司 | Fall protection method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014155424A1 (en) * | 2013-03-29 | 2014-10-02 | パナソニック株式会社 | Communication apparatus |
-
2018
- 2018-01-10 CN CN201810029095.8A patent/CN108429850B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003303489A (en) * | 2002-04-08 | 2003-10-24 | Matsushita Electric Ind Co Ltd | Magnetic disk unit and cellphone device loaded therewith |
CN104184893A (en) * | 2014-08-13 | 2014-12-03 | 信利半导体有限公司 | System and method for controlling falling gravity center of mobile phone |
CN106228094A (en) * | 2016-09-06 | 2016-12-14 | 广东欧珀移动通信有限公司 | Processing method, device and the mobile terminal that mobile terminal falls |
CN106406994A (en) * | 2016-09-06 | 2017-02-15 | 广东欧珀移动通信有限公司 | Fall protection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108429850A (en) | 2018-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101951135B1 (en) | Method for scaling video image, and mobile terminal | |
CN108153503B (en) | Display control method and related product | |
CN109905754B (en) | Virtual gift receiving method and device and storage equipment | |
CN109684980B (en) | Automatic scoring method and device | |
CN105308538A (en) | Systems and methods for performing a device action based on a detected gesture | |
EP3594848B1 (en) | Queue information acquisition method, device and computer readable storage medium | |
US20150301713A1 (en) | Portable device | |
CN109407871A (en) | It is a kind of to identify the method and device of Riddled Condition, electronic equipment | |
CN103916593A (en) | Apparatus and method for processing image in a device having camera | |
CN108429850B (en) | Fall treatment method and related product | |
CN109977845A (en) | A kind of drivable region detection method and car-mounted terminal | |
CN108021227B (en) | Method for rapidly moving in virtual reality and virtual reality device | |
CN113031840A (en) | False triggering prevention method and device for wrist-worn device, electronic device and storage medium | |
CN108174086B (en) | Shooting method and related product | |
US9347762B2 (en) | Near-surface object sensing device and sensing method | |
EP2703978B1 (en) | Apparatus for measuring coordinates and control method thereof | |
CN103019558A (en) | Method for unlocking handheld mobile terminal equipment and handheld mobile terminal equipment | |
CN103294357A (en) | Data processing method and device | |
CN107548466B (en) | Method and device for detecting road barrier | |
CN108270921B (en) | Falling information detection method and related product | |
CN112052701A (en) | Article taking and placing detection system, method and device | |
EP3627382A1 (en) | Method for iris liveness detection and related product | |
CN108833671B (en) | Falling detection method of electronic device and related product | |
CN108259669B (en) | Falling information detection method and related product | |
EP2784652A2 (en) | Information processing apparatus, information processing method, and information processing program |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200526 |