CN108307066A - Fall data reporting method and relevant apparatus - Google Patents
Fall data reporting method and relevant apparatus Download PDFInfo
- Publication number
- CN108307066A CN108307066A CN201810073934.6A CN201810073934A CN108307066A CN 108307066 A CN108307066 A CN 108307066A CN 201810073934 A CN201810073934 A CN 201810073934A CN 108307066 A CN108307066 A CN 108307066A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- target location
- collision object
- falling
- pictures
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 239000012535 impurity Substances 0.000 claims abstract description 72
- 238000012544 monitoring process Methods 0.000 claims abstract description 18
- 230000006378 damage Effects 0.000 claims abstract description 17
- 208000027418 Wounds and injury Diseases 0.000 claims abstract description 13
- 208000014674 injury Diseases 0.000 claims abstract description 13
- 238000012545 processing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 15
- 230000008569 process Effects 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 11
- 230000005611 electricity Effects 0.000 claims description 3
- 238000013497 data interchange Methods 0.000 claims description 2
- 230000001133 acceleration Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000005484 gravity Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006735 deficit Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
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/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/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Abstract
This application discloses one kind falling data reporting method and relevant apparatus, applied to including falling sensor, transceiver and the electronic device of controller;Fall sensor, for monitoring whether electronic device falls event;Controller, in the case where electronic device falls event, the target location for falling the falling height under event and the impurity phase in collision object surface for electronic device to be determined by falling sensor;Transceiver, for target location and falling height to be reported to server.Server may make to determine degree of injury of the electronic device under event of falling according to the data reported using the embodiment of the present application.
Description
Technical field
This application involves electronic technology fields more particularly to one kind falling data reporting method and relevant apparatus.
Background technology
It is universal with the rapid development of intelligent terminal (such as smart mobile phone) technology, and increasingly, become user
Indispensable electronic product in daily life.In actual use, it will usually occur intelligent terminal fall from the hand of user,
The case where falling from desktop, intelligent terminal can be collided after falling with collision object, and then intelligent terminal is caused to damage.
Invention content
The embodiment of the present application provides one kind and falling data reporting method and relevant apparatus, for server according to falling height
Degree of injury of the electronic device under event of falling is determined with target location.
In a first aspect, the embodiment of the present application provides a kind of electronic device, including fall sensor, transceiver and controller,
Wherein:
It is described to fall sensor, for monitoring whether the electronic device falls event;
The controller, in the case where the electronic device falls event, falling sensor by described
Fall the target position of the falling height under event and the impurity phase in collision object surface for the electronic device described in determination
It sets;
The transceiver, for the target location and the falling height to be reported to server, so that the clothes
Business device determines the electronic device in the degree of injury fallen under event according to the target location and the falling height.
Second aspect, the embodiment of the present application provide one kind and falling data reporting method, applied to including falling sensor, receiving
The electronic device for sending out device and controller, the method includes:
It is described to fall whether electronic device described in Sensor monitoring falls event;
In the case where the electronic device falls event, the controller falls sensor described in and determines institute
State the target location of the falling height under the event of falling and the impurity phase in collision object surface for the electronic device;
The target location and the falling height are reported to server by the transceiver, so that the server root
Determine the electronic device in the degree of injury fallen under event according to the target location and the falling height.
The third aspect, the embodiment of the present application provide one kind and falling data reporting device, are applied to electronic device, described to fall
Data reporting device includes monitoring unit, determination unit and reporting unit, wherein:
The monitoring unit, for monitoring whether the electronic device falls event;
The determination unit, in the case where the electronic device falls, falling under event described in determination
The target location of falling height and impurity phase in collision object surface for the electronic device;
The reporting unit, for the target location and the falling height to be reported to server, so that described
Server determines the electronic device in the damage journey fallen under event according to the target location and the falling height
Degree.
Fourth aspect, the embodiment of the present application provide a kind of electronic device, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure includes the instruction for executing the step in the embodiment of the present application second aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above computer is readable
Computer program of the storage medium storage for electronic data interchange, wherein above computer program makes computer execute such as
Step some or all of described in the embodiment of the present application second aspect either method.
6th aspect, the embodiment of the present application provide a kind of computer program product, wherein above computer program product
Non-transient computer readable storage medium including storing computer program, above computer program are operable to make calculating
Machine executes the step some or all of as described in the embodiment of the present application second aspect either method.The computer program product
It can be a software installation packet.
As can be seen that in the embodiment of the present application, in the case where electronic device falls event, first determination is this time fallen
The target location of the falling height of event and impurity phase in collision object surface for electronic device is fallen, then by the target position
It sets and is reported to server with falling height, so that server determines that electronic device exists according to the target location and the falling height
This falls the degree of injury under event so that background service personnel understand electronic device in time fall degree of impairment.
These aspects or other aspects of the application can more straightforward in the following description.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application or background technology, the application will be implemented below
Attached drawing illustrates needed in example or background technology.
Fig. 1 is a kind of structural schematic diagram of electronic device provided by the embodiments of the present application;
Fig. 2A is a kind of flow diagram falling data reporting method provided by the embodiments of the present application;
Fig. 2 B are a kind of schematic diagrames provided by the embodiments of the present application;
Fig. 3 is the flow diagram that another kind provided by the embodiments of the present application falls data reporting method;
Fig. 4 is a kind of structural schematic diagram of electronic device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram falling data reporting device provided by the embodiments of the present application.
Specific implementation
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model of the application protection
It encloses.
It is described in detail separately below.
Term " first ", " second ", " third " in the description and claims of this application and the attached drawing and "
Four " etc. be for distinguishing different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process of series of steps or unit, method, be
The step of system, product or equipment are not limited to list or unit, but further include the steps that optionally not listing or list
Member, or further include optionally for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic device may include various handheld device, mobile unit, wearable device (example with wireless communication function
Such as smartwatch, Intelligent bracelet, pedometer), computing device or other processing equipments for being connected to radio modem, with
And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device
(terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic device.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of structural schematic diagram of electronic device provided by the present application, electronic device 100 includes:
Shell 10, circuit board 20, battery 30, cover board 40, fall sensor 50, transceiver 60, display screen 70 and control fall sensing
The controller 80 of device 50, transceiver 60 and display screen 70;Cover board 40 is arranged on the housing 10, falls sensor 50, transceiver 60
It is arranged on circuit board 20 with controller 80, display screen 70 is connect with controller 80, wherein it includes camera shooting mould to fall sensor 50
Group 55, acceleration transducer, gyroscope, timer etc., wherein:
Fall sensor 50, for monitoring whether the electronic device falls event;
Controller 80, in the case where the electronic device falls event, to fall sensor true by described
Fall the target location of the falling height under event and the impurity phase in collision object surface for the electronic device described in fixed;
Transceiver 60, for the target location and the falling height to be reported to server, so that the service
Device determines the electronic device in the degree of injury fallen under event according to the target location and the falling height.
Wherein, electronic device 100 further includes at least one functional unit 90, controller 80 and at least one functional unit 90
Connection, at least one functional unit 90 include following at least one:Loud speaker, microphone, face identification device, close sensing
Device, ambient light sensor.
Wherein, display screen 70 includes touch screen and display screen, and display screen includes organic light-emitting diode (OLED) display screen OLED.
Wherein, controller 80 may include processor and memory, which is the control centre of electronic device, utilize
The various pieces of various interfaces and the entire electronic device of connection, by running or executing the software journey being stored in memory
Sequence and/or module, and the data being stored in memory are called, the various functions and processing data of electronic device are executed, from
And integral monitoring is carried out to electronic device.Optionally, processor can integrate application processor and modem processor, wherein
The main processing operation system of application processor, user interface and application program etc., modem processor mainly handles channel radio
Letter.It is understood that the modem processor can not also be integrated into processor.
Wherein, memory can be used for storing software program and module, and processor is stored in the soft of memory by operation
Part program and module, to execute various function application and the data processing of electronic device.Memory can include mainly depositing
Store up program area and storage data field, wherein storing program area can storage program area, the application program needed at least one function
Deng;Storage data field can be stored uses created data etc. according to electronic device.In addition, memory may include high speed with
Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its
His volatile solid-state part.
As can be seen that in the embodiment of the present application, in the case where electronic device falls event, first determination is this time fallen
The target location of the falling height of event and impurity phase in collision object surface for electronic device is fallen, then by the target position
It sets and is reported to server with falling height, so that server determines that electronic device exists according to the target location and the falling height
This falls the degree of injury under event so that background service personnel understand electronic device in time fall degree of impairment.
In the embodiment of the application, the impurity phase pair in collision object surface is being determined by the sensor that falls
In terms of the target location of the electronic device,
Camera module 55, for acquiring an at least pictures of the electronic device in falling process;
Controller 80 determines the impurity phase in collision object surface for described for an at least pictures according to
The target location of electronic device.
In the embodiment of the application, the height of an at least pictures described in acquisition is in setting height range, and/
Or the clarity of an at least pictures is all higher than or is equal to first threshold.
In the embodiment of the application, in an at least pictures according to, the impurity in collision object surface is determined
In terms of target location relative to the electronic device, controller 80 is specifically used for:
A Target Photo is chosen from an at least pictures, and gray proces are carried out to the Target Photo,
To obtain the first picture;
Determine the collision object area and extrinsic region that first picture includes, any two picture for including in each region
The difference of the gray value of element is less than or equal to second threshold, and the average gray value of the extrinsic region is different from the collision object area
The average gray value in domain, the extrinsic region are less than the collision object area;
It determines first position of the extrinsic region in first picture, and institute is determined according to the first position
State target location of the impurity phase for the electronic device.
In the embodiment of the application, in an at least pictures according to, the impurity in collision object surface is determined
In terms of target location relative to the electronic device, controller 80 is specifically used for:
A Target Photo is chosen from an at least pictures, and form and aspect processing is carried out to the target image,
To obtain second picture;
Determine the collision object area and extrinsic region that the second picture includes, any two picture for including in each region
The difference of the hue value of element is less than or equal to third threshold value, and the average hue value of the extrinsic region is different from the collision object area
The average hue value in domain, the extrinsic region are less than the collision object area;
It determines the second position of the extrinsic region in the second picture, and institute is determined according to the second position
State target location of the impurity phase for the electronic device.
It should be noted that the specific implementation process of the present embodiment can be found in the specific implementation process described in following methods,
It no longer describes herein.
Fig. 2A is please referred to, Fig. 2A is a kind of flow diagram falling data reporting method provided by the embodiments of the present application,
Applied to electronic device shown in FIG. 1, this method includes:
Step 201:Fall whether electronic device described in Sensor monitoring falls event.
In the embodiment of the application, fall the specific implementation whether Sensor monitoring electronic device falls event
Mode has:
Fall sensor detect electronic device acceleration change be acceleration of gravity in the case of, fall sensor
Determine that electronic device falls event.
Specifically, the acceleration of electronic device is 0 or when close to 0, indicates that electronic device has thing (such as human hand, table
Face) support.When the acceleration change of electronic device is acceleration of gravity, indicate that electronic device does not have thing support, in the application
In, in the case where the acceleration of electronic device becomes acceleration of gravity, it is believed that the event of falling has occurred in electronic device.
Step 202:In the case where the electronic device falls event, it is true that controller falls sensor described in
Fall the target location of the falling height under event and the impurity phase in collision object surface for the electronic device described in fixed.
Wherein, the quantity for being in the impurity on collision object surface is either one or more, does not limit uniquely herein
It is fixed.
Wherein, electronic device includes display screen, rear shell and four sides.When falling, if display screen is downward, then
Impurity phase for example can be after impurity projects vertically upward for the target location of electronic device, and impurity is in the right side of display screen
Upper angular zone;Alternatively, after impurity projects vertically upward, impurity is in the intermediate region of display screen;It is thrown vertically upward in impurity
Movie queen, impurity are in the upper left corner area of display screen;Alternatively, after impurity upright projection, impurity is not in display screen, etc.
Deng.
It should be noted that when falling, rear shell downward or other sides downward the case where, impurity phase is for electronics
The concrete condition of the target location of device to when falling display screen downward the case where it is similar, for details, reference can be made to foregoing description,
This is not described one by one.
In the embodiment of the application, controller falls the tool of the falling height under event by falling sensor determination
Body embodiment has:
When fall sensor detect electronic device acceleration change be acceleration of gravity when, falling sensor will be current
Moment was recorded as the first moment;When fall sensor detect the acceleration of electronic device from change in gravitational acceleration be zero when,
Falling sensor will be recorded as the second moment current time;Controller is according to the first moment, the second moment and freely falling body formula
Determine the falling height fallen under event.
Wherein, freely falling body formula is:
H=0.5gt2
Wherein, H is falling height of the electronic device under event of falling, and g is acceleration of gravity (g=9.8m/s2), t is
The difference at the second moment and the first moment.
As an example it is assumed that electronic device be mobile terminal, mobile terminal determine the first moment be 9 points 45.0 seconds 15 minutes and
Second moment be 9 points 45.5 seconds 15 minutes, mobile terminal is according to freely falling body formula H=0.5gt2It is determined with t=0.5s mobile whole
It is 1.225m to hold the falling height under event of falling.
In the embodiment of the application, the sensor that falls includes camera module, and controller falls biography by described
Sensor determines that the impurity phase in collision object surface has the specific implementation mode of the target location of the electronic device:
Camera module acquires an at least pictures of the electronic device in falling process;
Controller determines the impurity phase in collision object surface for the electronic device according to an at least pictures
Target location.
Specifically, camera module includes front camera and rear camera.
When falling sensor and detecting display screen downward, above-mentioned camera module is front camera, when falling sensor
When detecting display screen upward, above-mentioned camera module is rear camera.
In the embodiment of the application, the height of an at least pictures described in acquisition is in setting height range, and/
Or the clarity of an at least pictures is all higher than or is equal to first threshold.
Wherein, the acquisition height of different pictures is different.
Wherein, clarity refers to the readability on each thin portion shadow line and its boundary on picture.Usually using clarity ratio
Compared with the quality of two an equal amount of pictures.For example, the clarity of picture A is 5,000,000 pixels, the clarity of picture B is 8,000,000
Pixel, and the size of picture A and picture B is identical, then the quality of picture B is higher than picture A.
Wherein, target location of the first threshold characterization for determining the impurity phase in collision object surface for electronic device
Required minimum clarity.
Specifically, for camera module, camera module from reference object farther out or it is closer when, the picture that takes
Quality be not fine, therefore in this application, will the impurity phase in collision object surface for electronic device target position
Required picture control is set within the scope of setting height, and then can control the quality of these pictures, is further promoted at determining
In collision object surface impurity phase for electronic device target location accuracy.
Specifically, clarity is higher, and the quality of picture is better, in this application, by the impurity phase in collision object surface
The higher situation of clarity is controlled for the required picture in the target location of electronic device, and then can control the matter of these pictures
Amount further promotes the accuracy for determining the impurity phase in collision object surface for the target location of electronic device.
In the embodiment of the application, controller is determined according to an at least pictures in collision object surface
Impurity phase has the specific implementation mode of the target location of the electronic device:
Controller chooses a Target Photo from an at least pictures, and carries out gray scale to the Target Photo
Processing, to obtain the first picture;
Controller determines the collision object area and extrinsic region that first picture includes, and include in each region is arbitrary
The difference of the gray value of two pixels is less than or equal to second threshold, and the average gray value of the extrinsic region is different from described touch
The average gray value of object area is hit, the extrinsic region is less than the collision object area;
Controller determines first position of the extrinsic region in first picture, and according to the first position
Determine target location of the impurity phase for the electronic device.
In the embodiment of the application, controller is determined according to an at least pictures in collision object surface
Impurity phase has the specific implementation mode of the target location of the electronic device:
Controller chooses a Target Photo from an at least pictures, and carries out form and aspect to the target image
Processing, to obtain second picture;
Controller determines the collision object area and extrinsic region that the second picture includes, and include in each region is arbitrary
The difference of the hue value of two pixels is less than or equal to third threshold value, and the average hue value of the extrinsic region is different from described touch
The average hue value of object area is hit, the extrinsic region is less than the collision object area;
Controller determines the second position of the extrinsic region in the second picture, and according to the second position
Determine target location of the impurity phase for the electronic device.
Wherein, second threshold for example can be 2,3,4,5,6 or other values.
Wherein, third threshold value for example can be 5 °, 7 °, 9 °, 11 °, 13 ° or other values.
Wherein, hue value is indicated using the number of degrees of the color on hue circle.
Further, the selection mode that controller chooses a Target Photo from an at least pictures has:
Controller is in the pictures within the scope of object height as Target Photo from selection in an at least pictures, if
It includes object height range to determine altitude range;Alternatively,
Controller chooses a pictures of the clarity more than the 4th threshold value as Target Photo from an at least pictures, the
Four threshold values are more than first threshold.
Wherein, picture A is divided into T sub-regions, the T is the integer more than 1, position of the extrinsic region in picture A
It sets B and refers to that the M sub-regions that impurity is in T sub-regions, the M are positive integer;The area of region i and region j can be with
It is equal, can not also be equal, region i and region j are subregion one of in T sub-regions;The value of T is bigger, impurity
Position B of the region in picture A is more accurate;When picture A is the first picture, position B is first position;When picture A is second
When picture, position B is the second position.
Further, controller determines that the specific implementation mode for the collision object area and extrinsic region that the first picture includes has:
The pixel being in the first intensity value ranges in first picture is set intensity value ranges with first and indicated by controller,
First intensity value ranges include the first setting intensity value ranges;
The pixel being in the second intensity value ranges in first picture is set intensity value ranges with second and indicated by controller,
Second intensity value ranges include second setting intensity value ranges, the first intensity value ranges be different from the second intensity value ranges, first
The difference for setting intensity value ranges and the gray value of any two pixel in the second setting intensity value ranges is less than or equal to the
Two threshold values;
Controller determines that the first area and second of the pixel composition in the first setting intensity value ranges in the first picture is set
Determine the second area of the pixel composition in intensity value ranges, the shape of first area and second area includes annular, round, triangle
Shape and rectangle;
In the case where the area of first area is more than the area of second area, controller determines that first area is collision object
Region, and determine that second area is extrinsic region.
Further, controller determines that the specific implementation mode for the collision object area and extrinsic region that second picture includes has:
The pixel being in second picture within the scope of the first hue value is set hue value Range Representation by controller with first,
First hue value range includes the first setting hue value range;
The pixel being in second picture within the scope of the second hue value is set hue value Range Representation by controller with second,
Second hue value range include second setting hue value range, the first hue value range be different from the second hue value range, first
The difference for setting the hue value of hue value range and any two pixel within the scope of the second setting hue value is less than or equal to the
Three threshold values;
Controller determines that the third region and second of the pixel composition within the scope of the first setting hue value in second picture is set
Determine the fourth region of the pixel composition within the scope of hue value, the shape of third region and the fourth region includes annular, round, triangle
Shape and rectangle;
In the case where the area in third region is more than the area of the fourth region, controller determines that third region is collision object
Region, and determine that the fourth region is extrinsic region.
Further, when falling, if display screen is downward, controller determines that impurity phase fills electronics according to position B
The specific implementation mode for the target location set has:
Controller determines the magnification ratio value of picture A actual collision object surface regions corresponding with picture A;
Controller determines corresponding 5th regions electronic device A in picture according to magnification ratio value, and the 5th region includes L
A region, the L are the integer more than 1;
In extrinsic region and the 5th region there are in the case of common region, controller determines that common region is located at the 5th area
The target area k in domain, target area k are at least one region in L region;
Controller determines the corresponding target locations target area k according to target area k and the mapping relations of target location;
Controller is using the corresponding target locations target area k as impurity phase for the target location of electronic device.
Wherein, the mapping relations of target area k and target location are as shown in table 1:
Table 1
For example, as shown in Figure 2 B, it is assumed that electronic device is mobile terminal, and picture A is the first picture, collision object surface
For ground, L=5, when mobile terminal falls event, downward, mobile terminal determines impurity range to the display screen of mobile terminal
The common region in domain and the 5th region is located at the region 1 in the 5th region, is that impurity is in display screen according to 1 target location of table
Intermediate region.
It should be noted that when picture A is the first picture, position B is first position;When picture A is second picture,
Position B is the second position;When falling road, downward, controller determines target of the impurity phase for electronic device to rear shell according to position B
The specific implementation mode of position to when falling display screen downward the case where it is similar, for details, reference can be made to foregoing descriptions, do not make herein
It describes one by one.
Step 203:The target location and the falling height are reported to server by transceiver, so that the service
Device determines the electronic device in the degree of injury fallen under event according to the target location and the falling height.
As can be seen that in the embodiment of the present application, in the case where electronic device falls event, first determination is this time fallen
The target location of the falling height of event and impurity phase in collision object surface for electronic device is fallen, then by the target position
It sets and is reported to server with falling height, so that server determines that electronic device exists according to the target location and the falling height
This falls the degree of injury under event so that background service personnel understand electronic device in time fall degree of impairment.
It should be noted that example described herein is used only for explaining, restriction should not be constituted.
The embodiment of the present application also provides another more detailed method flows, as shown in figure 3, applied to shown in FIG. 1
Electronic device, this method include:
Step 301:It is described to fall whether electronic device described in Sensor monitoring falls event;
If so, thening follow the steps 302.
If it is not, not making any operation then.
Step 302:The camera module acquires an at least pictures of the electronic device in falling process.
Wherein, the height of an at least pictures described in acquisition is in setting height range and/or at least one figure
The clarity of piece is all higher than or is equal to first threshold.
Step 303:The controller chooses a Target Photo from an at least pictures.
Step 304:The controller carries out gray proces to the Target Photo, to obtain the first picture.
Step 305:The controller determines the collision object area and extrinsic region that first picture includes.
Wherein, the difference of the gray value for any two pixel for including in each region is less than or equal to second threshold, institute
The average gray value for stating extrinsic region is different from the average gray value of the collision object area, and the extrinsic region is less than described touch
Hit object area.
Step 306:The controller determines first position of the extrinsic region in first picture.
Step 307:The controller determines mesh of the impurity phase for the electronic device according to the first position
Cursor position.
Step 308:The controller carries out form and aspect processing to the target image, to obtain second picture.
Step 309:The controller determines the collision object area and extrinsic region that the second picture includes.
Wherein, the difference of the hue value for any two pixel for including in each region is less than or equal to third threshold value, institute
The average hue value for stating extrinsic region is different from the average hue value of the collision object area, and the extrinsic region is less than described touch
Hit object area.
Step 310:The controller determines the second position of the extrinsic region in the second picture.
Step 311:The controller determines mesh of the impurity phase for the electronic device according to the second position
Cursor position.
Wherein, step 304- steps 307 execute parallel with step 308- steps 311.
Step 312:The target location and the falling height are reported to server by the transceiver, so that described
Server determines the electronic device in the damage journey fallen under event according to the target location and the falling height
Degree.
It should be noted that the specific implementation process of each step of method shown in Fig. 3 can be found in the tool of the method
Body realizes process, no longer describes herein.
It is consistent with above-mentioned Fig. 2A and embodiment shown in Fig. 3, referring to Fig. 4, Fig. 4 is provided by the embodiments of the present application one
The structural schematic diagram of kind of electronic device, as shown in figure 4, the electronic device includes processor, memory, communication interface and one
Or multiple programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned processor
It executes, above procedure includes the instruction for executing following steps:
Monitor whether the electronic device falls event;
In the case where the electronic device falls event, event is fallen described in sensor determination by described fall
Under falling height and impurity phase in collision object surface for the electronic device target location;
The target location and the falling height are reported into server, so that the server is according to the target
Position and the falling height determine the electronic device in the degree of injury fallen under event.
In the embodiment of the application, the impurity phase pair in collision object surface is being determined by the sensor that falls
In terms of the target location of the electronic device, above procedure includes the instruction for being specifically used for executing following steps:
Acquire an at least pictures of the electronic device in falling process;
According to an at least pictures, target of the impurity phase in collision object surface for the electronic device is determined
Position.
In the embodiment of the application, the height of an at least pictures described in acquisition is in setting height range, and/
Or the clarity of an at least pictures is all higher than or is equal to first threshold.
In the embodiment of the application, in an at least pictures according to, the impurity in collision object surface is determined
In terms of target location relative to the electronic device, above procedure includes the instruction for being specifically used for executing following steps:
A Target Photo is chosen from an at least pictures, and gray proces are carried out to the Target Photo,
To obtain the first picture;
Determine the collision object area and extrinsic region that first picture includes, any two picture for including in each region
The difference of the gray value of element is less than or equal to second threshold, and the average gray value of the extrinsic region is different from the collision object area
The average gray value in domain, the extrinsic region are less than the collision object area;
It determines first position of the extrinsic region in first picture, and institute is determined according to the first position
State target location of the impurity phase for the electronic device.
In the embodiment of the application, the impurity phase in collision object surface is determined in an at least pictures according to
For the target location aspect of the electronic device, above procedure includes the instruction for being specifically used for executing following steps:
A Target Photo is chosen from an at least pictures, and form and aspect processing is carried out to the target image, with
To second picture;
Determine the collision object area and extrinsic region that the second picture includes, any two picture for including in each region
The difference of the hue value of element is less than or equal to third threshold value, and the average hue value of the extrinsic region is different from the collision object area
The average hue value in domain, the extrinsic region are less than the collision object area;
It determines the second position of the extrinsic region in the second picture, and institute is determined according to the second position
State target location of the impurity phase for the electronic device.
It should be noted that the specific implementation process of the present embodiment can be found in the specific implementation described in above method embodiment
Process no longer describes herein.
Referring to Fig. 5, Fig. 5, which is one kind provided by the embodiments of the present application, falls data reporting device, it is applied to electronic device,
It includes processing unit 501, storage unit 502 and communication unit 503 to fall data reporting device 500, and processing unit 501 includes prison
Unit, determination unit and reporting unit are surveyed, wherein:
The monitoring unit, for monitoring whether the electronic device falls event;
The determination unit, in the case where the electronic device falls event, falling sensing by described
Fall the target of the falling height under event and the impurity phase in collision object surface for the electronic device described in device determination
Position;
The reporting unit, for the target location and the falling height to be reported to server, so that described
Server determines the electronic device in the damage journey fallen under event according to the target location and the falling height
Degree.
In the embodiment of the application, the sensor that falls includes camera module, and the electronic device further includes:
Collecting unit, for acquiring at least one figure of the electronic device in falling process by the camera module
Piece;
Passing through the target fallen sensor and determine the impurity phase in collision object surface for the electronic device
In terms of position, above-mentioned determination unit is specifically used for:
According to an at least pictures, target of the impurity phase in collision object surface for the electronic device is determined
Position.
In the embodiment of the application, the height of an at least pictures described in acquisition is in setting height range, and/
Or the clarity of an at least pictures is all higher than or is equal to first threshold.
In the embodiment of the application, the impurity phase in collision object surface is determined in an at least pictures according to
For the target location aspect of the electronic device, above-mentioned determination unit is specifically used for:
A Target Photo is chosen from an at least pictures, and gray proces are carried out to the Target Photo,
To obtain the first picture;
Determine the collision object area and extrinsic region that first picture includes, any two picture for including in each region
The difference of the gray value of element is less than or equal to second threshold, and the average gray value of the extrinsic region is different from the collision object area
The average gray value in domain, the extrinsic region are less than the collision object area;
First position of the extrinsic region in first picture, and determined according to the first position described miscellaneous
Target location of the matter relative to the electronic device.
In the embodiment of the application, the impurity phase in collision object surface is determined in an at least pictures according to
For the target location aspect of the electronic device, above-mentioned determination unit is specifically used for:
A Target Photo is chosen from an at least pictures, and form and aspect processing is carried out to the target image,
To obtain second picture;
Determine the collision object area and extrinsic region that the second picture includes, any two picture for including in each region
The difference of the hue value of element is less than or equal to third threshold value, and the average hue value of the extrinsic region is different from the collision object area
The average hue value in domain, the extrinsic region are less than the collision object area;
It determines the second position of the extrinsic region in the second picture, and institute is determined according to the second position
State target location of the impurity phase for the electronic device.
Wherein, processing unit 501 can be processor or controller, (such as can be central processing unit (Central
Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP),
Special integrated manipulator (Application-Specific Integrated Circuit, ASIC), field programmable gate array
It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard
Part component or its arbitrary combination.Storage unit 502 can be memory, and communication unit 503 can be transceiver, transmitting-receiving control
Device, radio frequency chip, communication interface etc..
When processing unit 501 is processor, storage unit 502 is memory, when communication unit 503 is communication interface, this
Apply for that the data reporting device that falls involved by embodiment can be electronic device shown in Fig. 4.
The embodiment of the present application also provides a kind of computer storage media, wherein computer storage media storage is for electricity
The computer program that subdata exchanges, the computer program make computer execute any as described in above method embodiment
Some or all of method step, above computer include electronic device.
The embodiment of the present application also provides a kind of computer program product, and above computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either method described in method embodiment step.The computer program product can be a software installation
Packet, above computer includes electronic device.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, said units division, it is only a kind of
Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application
Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory
May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English:
Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific implementation and application range
There is change place, to sum up above-mentioned, the contents of this specification should not be construed as limiting the present application.
Claims (13)
1. a kind of electronic device, which is characterized in that including falling sensor, transceiver and controller, wherein:
It is described to fall sensor, for monitoring whether the electronic device falls event;
The controller, in the case where the electronic device falls event, being determined by the sensor that falls
The target location of the falling height fallen under event and impurity phase in collision object surface for the electronic device;
The transceiver, for the target location and the falling height to be reported to server, so that the server
Determine the electronic device in the degree of injury fallen under event according to the target location and the falling height.
2. according to the method described in claim 1, it is characterized in that, the sensor that falls includes camera module, passing through
It states and falls the target location aspect that sensor determines the impurity phase in collision object surface for the electronic device,
The camera module, for acquiring an at least pictures of the electronic device in falling process;
The controller determines the impurity phase in collision object surface for the electricity for an at least pictures according to
The target location of sub-device.
3. electronic device according to claim 1 or 2, which is characterized in that the height of an at least pictures described in acquisition is equal
Clarity in setting height range and/or an at least pictures is all higher than or is equal to first threshold.
4. electronic device according to claim 2 or 3, which is characterized in that at an at least pictures according to, determination
In target location aspect of the impurity phase for the electronic device for colliding object surface, the controller is specifically used for:
A Target Photo is chosen from an at least pictures, and gray proces are carried out to the Target Photo, with
To the first picture;
Determine the collision object area and extrinsic region that first picture includes, any two pixel for including in each region
The difference of gray value is less than or equal to second threshold, and the average gray value of the extrinsic region is different from the collision object area
Average gray value, the extrinsic region are less than the collision object area;
It determines first position of the extrinsic region in first picture, and is determined according to the first position described miscellaneous
Target location of the matter relative to the electronic device.
5. electronic device according to claim 2 or 3, which is characterized in that at an at least pictures according to, determination
In target location aspect of the impurity phase for the electronic device for colliding object surface, the controller is specifically used for:
A Target Photo is chosen from an at least pictures, and form and aspect processing is carried out to the target image, with
To second picture;
Determine the collision object area and extrinsic region that the second picture includes, any two pixel for including in each region
The difference of hue value is less than or equal to third threshold value, and the average hue value of the extrinsic region is different from the collision object area
Average hue value, the extrinsic region are less than the collision object area;
It determines the second position of the extrinsic region in the second picture, and is determined according to the second position described miscellaneous
Target location of the matter relative to the electronic device.
6. one kind falling data reporting method, which is characterized in that applied to including falling sensor, transceiver and the electricity of controller
Sub-device, the method includes:
It is described to fall whether electronic device described in Sensor monitoring falls event;
In the case where the electronic device falls event, the controller is fallen by described fall described in sensor determination
Fall the target location of the falling height under event and the impurity phase in collision object surface for the electronic device;
The target location and the falling height are reported to server by the transceiver, so that the server is according to institute
It states target location and the falling height determines the electronic device in the degree of injury fallen under event.
7. according to the method described in claim 6, it is characterized in that, the sensor that falls includes camera module, the control
Device determines the impurity phase in collision object surface for the target location of the electronic device, packet by the sensor that falls
It includes:
The camera module acquires an at least pictures of the electronic device in falling process;
The controller determines the impurity phase in collision object surface for the electronic device according to an at least pictures
Target location.
8. the method described according to claim 6 or 7, which is characterized in that the height of an at least pictures described in acquisition is in
Setting height range and/or the clarity of an at least pictures are all higher than or are equal to first threshold.
9. method according to claim 7 or 8, which is characterized in that the controller is according to an at least pictures, really
Determine target location of the impurity phase in collision object surface for the electronic device, including:
The controller chooses a Target Photo from an at least pictures, and carries out gray scale to the Target Photo
Processing, to obtain the first picture;
The controller determines the collision object area and extrinsic region that first picture includes, and include in each region is arbitrary
The difference of the gray value of two pixels is less than or equal to second threshold, and the average gray value of the extrinsic region is different from described touch
The average gray value of object area is hit, the extrinsic region is less than the collision object area;
The controller determines first position of the extrinsic region in first picture, and according to the first position
Determine target location of the impurity phase for the electronic device.
10. method according to claim 7 or 8, which is characterized in that the controller at least pictures according to,
Determine target location of the impurity phase in collision object surface for the electronic device, including:
The controller chooses a Target Photo from an at least pictures, and carries out form and aspect to the target image
Processing, to obtain second picture;
The controller determines the collision object area and extrinsic region that the second picture includes, and include in each region is arbitrary
The difference of the hue value of two pixels is less than or equal to third threshold value, and the average hue value of the extrinsic region is different from described touch
The average hue value of object area is hit, the extrinsic region is less than the collision object area;
The controller determines the second position of the extrinsic region in the second picture, and according to the second position
Determine target location of the impurity phase for the electronic device.
11. one kind falling data reporting device, which is characterized in that it is applied to electronic device, it is described to fall data reporting device packet
Monitoring unit, determination unit and reporting unit are included, wherein:
The monitoring unit, for monitoring whether the electronic device falls event;
The determination unit, in the case where the electronic device falls event, falling under event described in determination
The target location of falling height and impurity phase in collision object surface for the electronic device;
The reporting unit, for the target location and the falling height to be reported to server, so that the service
Device determines the electronic device in the degree of injury fallen under event according to the target location and the falling height.
12. a kind of electronic device, which is characterized in that including processor, memory, communication interface, and one or more programs,
One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet
It includes for executing the instruction such as the step in claim 6-10 any one of them methods.
13. a kind of computer readable storage medium, which is characterized in that computer program of the storage for electronic data interchange,
In, the computer program makes computer execute such as claim 6-10 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810073934.6A CN108307066B (en) | 2018-01-25 | 2018-01-25 | Drop data reporting method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810073934.6A CN108307066B (en) | 2018-01-25 | 2018-01-25 | Drop data reporting method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108307066A true CN108307066A (en) | 2018-07-20 |
CN108307066B CN108307066B (en) | 2021-02-02 |
Family
ID=62866486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810073934.6A Expired - Fee Related CN108307066B (en) | 2018-01-25 | 2018-01-25 | Drop data reporting method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108307066B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2957989A1 (en) * | 2014-06-17 | 2015-12-23 | Immersion Corporation | Mobile device with motion controlling haptics |
CN105825185A (en) * | 2016-03-15 | 2016-08-03 | 深圳市中天安驰有限责任公司 | Early warning method and device against collision of vehicles |
CN106331361A (en) * | 2016-09-06 | 2017-01-11 | 广东欧珀移动通信有限公司 | Protection processing method, device and system for mobile terminal drop |
CN106530616A (en) * | 2016-12-06 | 2017-03-22 | 上海斐讯数据通信技术有限公司 | Automatic alarm method and system |
CN106646440A (en) * | 2016-09-06 | 2017-05-10 | 广东欧珀移动通信有限公司 | Drop height detection method and drop height detection device |
KR20170134819A (en) * | 2016-05-26 | 2017-12-07 | 전주대학교 산학협력단 | Smart line unit for Body demage predict |
-
2018
- 2018-01-25 CN CN201810073934.6A patent/CN108307066B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2957989A1 (en) * | 2014-06-17 | 2015-12-23 | Immersion Corporation | Mobile device with motion controlling haptics |
CN105825185A (en) * | 2016-03-15 | 2016-08-03 | 深圳市中天安驰有限责任公司 | Early warning method and device against collision of vehicles |
KR20170134819A (en) * | 2016-05-26 | 2017-12-07 | 전주대학교 산학협력단 | Smart line unit for Body demage predict |
CN106331361A (en) * | 2016-09-06 | 2017-01-11 | 广东欧珀移动通信有限公司 | Protection processing method, device and system for mobile terminal drop |
CN106646440A (en) * | 2016-09-06 | 2017-05-10 | 广东欧珀移动通信有限公司 | Drop height detection method and drop height detection device |
CN106530616A (en) * | 2016-12-06 | 2017-03-22 | 上海斐讯数据通信技术有限公司 | Automatic alarm method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108307066B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103871051B (en) | Image processing method, device and electronic equipment | |
CN105956518A (en) | Face identification method, device and system | |
CN106412249B (en) | The detection method and device of drop information | |
CN108304758A (en) | Facial features tracking method and device | |
CN106331254B (en) | A kind of protection processing method and processing device that mobile terminal falls | |
CN111092748B (en) | Alarm rule setting method, device, equipment and storage medium for Internet of things equipment | |
CN108134903B (en) | Shooting method and related product | |
CN109302630A (en) | Barrage generation method and relevant apparatus | |
CN108989678A (en) | A kind of image processing method, mobile terminal | |
CN109977845A (en) | A kind of drivable region detection method and car-mounted terminal | |
CN107368791A (en) | Living iris detection method and Related product | |
CN108307110A (en) | A kind of image weakening method and mobile terminal | |
CN110162653A (en) | A kind of picture and text sort recommendations method and terminal device | |
CN109061611A (en) | Proximity sensor calibration method and relevant apparatus | |
CN108174086A (en) | Image pickup method and Related product | |
CN107223265A (en) | Striped set lookup method, device and system | |
CN108399325A (en) | Solve lock control method and Related product | |
CN108307065A (en) | Fall reminding method and relevant device | |
CN111782950A (en) | Sample data set acquisition method, device, equipment and storage medium | |
CN108228427B (en) | Electronic equipment, falling prevention method and related product | |
CN108307066A (en) | Fall data reporting method and relevant apparatus | |
CN108255632B (en) | Fall data calculation method based on artificial intelligence and related product | |
EP3627382A1 (en) | Method for iris liveness detection and related product | |
CN111599417B (en) | Training data acquisition method and device of solubility prediction model | |
CN112703534A (en) | Image processing method and related product |
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: 20210202 |