CN108227840A - Electronic device and related product - Google Patents

Electronic device and related product Download PDF

Info

Publication number
CN108227840A
CN108227840A CN201810020039.8A CN201810020039A CN108227840A CN 108227840 A CN108227840 A CN 108227840A CN 201810020039 A CN201810020039 A CN 201810020039A CN 108227840 A CN108227840 A CN 108227840A
Authority
CN
China
Prior art keywords
electronic device
acceleration value
acceleration
state
picture
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
Application number
CN201810020039.8A
Other languages
Chinese (zh)
Other versions
CN108227840B (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810020039.8A priority Critical patent/CN108227840B/en
Publication of CN108227840A publication Critical patent/CN108227840A/en
Application granted granted Critical
Publication of CN108227840B publication Critical patent/CN108227840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Telephone Function (AREA)

Abstract

This application provides a kind of electronic device and Related product, the electronic device includes:Application processor AP, touching display screen, gravity sensor, circuit and camera, the camera, the touching display screen are connect by least one circuit with the application processor, and the technical solution that the application provides has the advantages that user experience is high.

Description

Electronic device and Related product
Technical field
This application involves terminal device technical fields, and in particular to a kind of electronic device and Related product.
Background technology
In the prior art, mobile terminal (such as mobile phone, tablet computer) has become user's first choice and frequency of use highest Electronic device, for mobile terminal, fragile screen is producer or the unavoidable problem of user, after screen crushes, The surplus value of terminal is just had a greatly reduced quality, because the price that most of factory repair changes screen almost alreadys exceed the residue of terminal Value.And industry prevalence 2.5D glass as screen, is more prone to fall bad and broken screen, each mainstream producer is all spending greatly at present The R&D costs research raising complete machine of amount falls drop resistant ability.
The existing acquisition for falling data can not restore the scene fallen so that user can not intuitively determine should The scene fallen influences the Experience Degree of user.
Apply for content
The embodiment of the present application provides a kind of electronic device and Related product, can realize and the scene fallen is gone back Original allows user intuitively to watch, and improves user experience.
In a first aspect, the embodiment of the present application provides a kind of electronic device, the electronic device includes:Application processor AP, Touching display screen, gravity sensor, circuit and camera, the camera, the touching display screen pass through at least one circuit It is connect with the application processor;
For acquiring the acceleration information of the electronic device, the acceleration information is transmitted for the gravity sensor To the AP;
The AP for acceleration value to be calculated according to acceleration information, determines that the electronics fills according to the acceleration value The state being in is put, which includes:Normal state and fall state;
The AP, for determine electronic device be in fall state when, to camera send acquisition;
The camera for receiving the acquisition, acquires first picture on ground;
The AP, for electronic device and the distance L on ground to be calculated according to the acceleration value and acquisition time, The second picture of electronic device is extracted, the electronic device is generated according to the acceleration value, distance L and acquisition time and drops into ground The 3D animations in face.
Second aspect provides a kind of animation producing method, and the method is applied in electronic device, the electronic device packet It includes:Application processor AP, touching display screen, gravity sensor, circuit and camera, the camera, the touching display screen It is connect by least one circuit with the application processor;The method includes:
Acquire the acceleration information of the electronic device;
Acceleration value is calculated according to acceleration information, the shape that the electronic device is in is determined according to the acceleration value State, the state include:Normal state and fall state;Determine electronic device be in fall state when, to the camera shooting hair Send acquisition;
Acquire first picture on ground;
Electronic device and the distance L on ground, extraction electronics dress is calculated according to the acceleration value and acquisition time The second picture put generates the electronic device according to the acceleration value, distance L and acquisition time and drops into the 3D on ground and moves It draws.
The third aspect, provides a kind of electronic device, and the electronic device includes:Processing unit, touching display screen, sensing Device, circuit and camera, the camera, the touching display screen are connect by least one circuit with the processing unit, Wherein,
The acceleration information for acquiring the acceleration information of the electronic device, is transferred to institute by the sensor State processing unit;
For acceleration value to be calculated according to acceleration information, this is determined according to the acceleration value for the processing unit The state that electronic device is in, the state include:Normal state and fall state;Fall state determining that electronic device is in When, send acquisition to camera;
The camera for receiving the acquisition, acquires first picture on ground;
The processing unit, for electronic device and ground to be calculated according to the acceleration value and acquisition time Distance L extracts the second picture of electronic device, and generating the electronic device according to the acceleration value, distance L and acquisition time falls The 3D animations fallen to the ground.
Fourth aspect, provides a kind of computer readable storage medium, and storage is used for the computer journey of electronic data interchange Sequence, wherein, the computer program causes computer to perform the method that second aspect provides.
5th aspect, provides a kind of computer program product, and the computer program product includes storing computer journey The non-transient computer readable storage medium of sequence, the computer program are operable to that computer is made to perform second aspect offer Method.
Implement the embodiment of the present application, have the advantages that:
As can be seen that after collecting acceleration information by the embodiment of the present application, electronics is determined according to acceleration information The state of device, when being determined as falling state, by camera acquire ground the first picture, then according to acceleration value with And acquisition time obtains the distance on the ground of electronic device, the second picture for extracting electronic device (is specifically as follows outline drawing Piece), this makes it possible to generate 3D animations that ground is dropped into electronic device, improve the Experience Degree of user.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of structure diagram of electronic device provided by the embodiments of the present application.
Fig. 1 a are a kind of schematic diagrames of plane-parallel capacitor provided by the embodiments of the present application.
Fig. 1 b are the schematic diagrames of another plane-parallel capacitor provided by the embodiments of the present application.
Fig. 1 c are the schematic diagrames of another plane-parallel capacitor provided by the embodiments of the present application.
Fig. 1 d are the schematic diagrames of acceleration provided by the embodiments of the present application.
Fig. 2 is a kind of schematic diagram of electronic device disclosed in the embodiment of the present application.
Fig. 3 a are a kind of schematic diagrames of sample frequency disclosed in the embodiment of the present application.
Fig. 3 b are a kind of angle schematic diagrames of the embodiment of the present application.
Fig. 4 is a kind of flow diagram of animation producing method provided by the embodiments of the present application.
Fig. 5 is a kind of structure diagram of electronic device provided by the embodiments of the present application.
Fig. 6 is a kind of structure diagram of mobile phone disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall in the protection scope of this application.
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 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 optionally further include the step of not listing or list Member is optionally further included 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 in the application can include smart mobile phone (such as Android phone, iOS mobile phones, Windows Phone mobile phones etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned electronic device are only citings, and non exhaustive, are filled including but not limited to above-mentioned electronics It puts, for convenience of description, above-mentioned electronic device is known as user equipment (User equipment, UE) in example below. Certainly in practical applications, above-mentioned user equipment is also not necessarily limited to above-mentioned realization form, such as can also include:Intelligent vehicle-carried end End, computer equipment etc..
In the electronic device provided in first aspect, the electronic device further includes:Communication module;
The AP is additionally operable to control communication module and the 3D animations is sent to network side equipment.
In the electronic device provided in first aspect, the AP is n specifically for such as described acceleration value, by acquisition N acceleration value of order traversal of point, such as continuous m acceleration value are more than given threshold, are determined as falling state, otherwise determine For normal state, wherein, n, m are the integer more than or equal to 2, and m < n.
In the electronic device provided in first aspect, the AP is suitable specifically for pressing acquisition time from n acceleration value Sequence extraction is more than the first acceleration value of given threshold and the corresponding time t0 of the first acceleration value, using t0 as the starting fallen Time, by w-th acceleration value and w-th acceleration value pair of the acquisition time sequence extraction less than 0 from n acceleration value The time tw answered;Generate the 3D animation segments of single collection point, obtain the sampling time t of a collection point between t0 and tw with And the corresponding acceleration value α in a collection point, determine 1 sampled point in distance L according to the difference between sampling time t and t0 Position Q, according to acceleration value α and gravity acceleration value α0The angle beta of the electronic device of 1 sampled point is determined, by the second figure The angle of piece obtains third picture after adjusting to the β, third picture is placed on position Q obtains the 3D animations of 1 collection point Segment, each collection point of traversal t0 and tw obtains the 3D animation segments of each collection point, by all 3D animations segments by adopting The sequence of collection time combines the 3D animations generated.
In the method provided in second aspect, the method further includes:
The 3D animations are sent to network side equipment.
In the method provided in second aspect, the state for determining that the electronic device is according to the acceleration value, packet It includes:
If the acceleration value is n, by n acceleration value of order traversal of collection point, such as continuous m acceleration value is big In given threshold, it is determined as falling state, is otherwise determined as normal state, wherein, n, m are integer more than or equal to 2, and m < n。
It is described to generate the electronics according to the acceleration value, distance L and acquisition time in the method provided in second aspect Device drops into the 3D animations on ground, including:
Add from n acceleration value by the extraction of acquisition time sequence more than the first acceleration value of given threshold and first The corresponding time t0 of velocity amplitude using t0 as the initial time fallen, is less than from n acceleration value by the extraction of acquisition time sequence 0 w-th of acceleration value and the corresponding time tw of w-th of acceleration value;The 3D animation segments of single collection point are generated, are obtained The sampling time t of a collection point between the t0 and tw and corresponding acceleration value α in a collection point, according to the sampling time Difference between t and t0 determines position Q of 1 sampled point in distance L, according to acceleration value α and gravity acceleration value α0Determine 1 The angle beta of the electronic device of a sampled point obtains third picture after the angle of second picture is adjusted to the β, by third picture It is placed on position Q and obtains the 3D animation segments of 1 collection point, each collection point of traversal t0 and tw obtains each collection point 3D animation segments, all 3D animations segments are combined by the sequence of acquisition time the 3D animations generated.
Referring to Fig. 1, Fig. 1, which is the embodiment of the present application, provides a kind of electronic device, referring to Fig. 1, Fig. 1 is of the invention real It applies example and provides a kind of structure diagram of electronic device 100, above-mentioned electronic device 100 includes:Housing 110, circuit board 120, Battery 130, cover board 140, touching display screen 150, gravity sensor (English:Gravity Sensor, referred to as:G-sensor) 170, the circuit board 120, the battery 130 and the cover board 140 are set on the housing 110, the circuit board 120 is also set It is equipped with the circuit for connecting the touching display screen 150;The circuit board 120 can also include:Application processor AP190 and again Force snesor.
Above-mentioned touching display screen is specifically as follows Thin Film Transistor-LCD (Thin Film Transistor- Liquid Crystal Display, TFT-LCD), light emitting diode (Light Emitting Diode, LED) display screen, have Machine light emitting diode (Organic Light-Emitting Diode, OLED) display screen etc..
Gravity sensor 170 for detecting the direction of acceleration and size, is equivalent to the movement shape of detection electronic installation State.The function of G-sensor understands fairly simple, the mainly variation of perception acceleration of getting up, for example shake, fall, rising, The various mobile variations such as decline can be converted into electric signal by G-sensor, then pass through the calculating of application processor AP190 point After analysis, it will be able to determine the acceleration value of the electronic device.
Optionally, above-mentioned electronic device can also include:Geomagnetic sensor and gyroscope, the geomagnetic sensor and gyroscope It is connect respectively with application processor AP190.On the electronic device, G-sensor not only works independently, and can also be passed with earth magnetism Sensor 171, gyroscope 172 cooperate together, provide more accurate and comprehensive action induction ability.
Specifically, in electronic device, gravity sensor 170 can be actually a kind of plane-parallel capacitor, for parallel The capacitance size and distance between plates of plate capacitor are inversely proportional, by detecting X, Y, the capacitance variations in Z-direction, it is possible to calculate Linear acceleration size on to all directions.
For in a manner of the acceleration calculation of X-direction, acceleration value is specifically as follows:
As shown in Figure 1a, it is a kind of schematic diagram of plane-parallel capacitor.
Refering to Fig. 1 a, the corresponding acceleration of Fig. 1 a is 0, as shown in Figure 1a, due at this time without acceleration value, so intermediate Parallel-plate be located at initial position, so capacitance C at this time1=C0, the C1Capacitance that can be between parallel-plate and lower electrode Value, the C0It can be initial capacitance value.Capacitance C at this time2=C0, the C2Capacitance that can be between parallel-plate and top electrode Value, at this point, capacitance C1Corresponding distance d1=d0;Capacitance C2Corresponding distance d2=d0;Wherein, d1Can be parallel-plate and lower electricity The distance between pole, d2Can be the distance between parallel-plate and top electrode.Since acceleration value at this time is zero, so C1= C2=C0;A can be calculated according to above-mentioned formulax=0.
Refering to Fig. 1 b, the corresponding acceleration of Fig. 1 b is positive value, and due to the effect of positive value acceleration, parallel-plate can downward electrode It is mobile, it is assumed that displacement distance x, then for the distance between parallel-plate and top electrode, i.e., it can increase x, so at this time, d1 =d0- x, d2=d0+x;According to the calculation formula of capacity plate antenna, as shown in following formula:
Wherein, S can corresponding area, ε be that (it is by tablet for dielectric constant between two plates of plane-parallel capacitor The material of electrode determines), k is dielectric constant, and d is the distance between two plates of plane-parallel capacitor.
Capacitance as shown in Figure 1 b is as follows:
So due to the downward electrode movement of the parallel-plate of plane-parallel capacitor, so C1> C2, i.e. ax> 0.
Refering to Fig. 1 c, the corresponding acceleration of Fig. 1 c is negative value, and due to the effect of negative value acceleration, parallel-plate can be to top electrode It is mobile, it is assumed that displacement distance x, then for the distance between parallel-plate and top electrode, i.e., it can increase x, so at this time, d1 =d0+ x, d2=d0-x;According to the calculation formula of capacity plate antenna, as shown in following formula:
Capacitance as illustrated in figure 1 c is as follows:
At this time due to the upward electrode movement of the parallel-plate of plane-parallel capacitor, so C1< C2, i.e. ax< 0.
I.e. by the test to above-mentioned plane-parallel capacitor, specific acceleration value can be accessed, and the value can Show the direction of acceleration.
Specifically, for electronic device, there are three directions for the value tool of the acceleration of test, as shown in Figure 1 d, are The schematic diagram in three directions of testing of electronic devices specifically, can be divided into X-direction, Y direction and Z-direction, has The display signal of body is as shown in Figure 1 d.
Specifically, in an optional drop test, its corresponding acceleration value can be in falling process:
ax=0.049m/S2
ay=-0.026m/S2
az=9.800m/S2
State of the electronic device in falling can be determined according to above-mentioned data.
For the acquisitions of data and denoising fallen be it is entire it is anti-drop in basis, the data of acquisition, predominantly The accuracy of the bearing data of x, y, z axis is the important evidence of the broken screen of subsequent analysis, then if removing noise, retains significant figure According to the key for just becoming the data entirely fallen acquisition and processing, in order to improve the accuracy of gathered data, the application provides Electronic device i.e. original data are handled to obtain valid data by original acquisition and denoising.
As shown in Fig. 2, for the structure diagram of a kind of electronic device that the application provides, as shown in Fig. 2, the electronic device 200 include:Application processor AP210, touching display screen 220, gravity sensor 250 and circuit 240, the outside of the housing are set Camera 230 is equipped with, the camera, the touching display screen are connected by least one circuit and the application processor AP It connects.Wherein, the AP210 connects gravity sensor 250 by another circuit, wherein, which can specifically include:Always Line, flexible PCB, connection chip etc., certainly in practical applications, foregoing circuit 240 can also be other performance shapes Formula, the application specific embodiment are not intended to limit the specific manifestation form of foregoing circuit 240.Above-mentioned electronic device 200 can be with Including:Geomagnetic sensor and gyroscope, the geomagnetic sensor and gyroscope can combine 250 gathered data of gravity sensor.
For acquiring the acceleration information of electronic device, which is transferred at for gravity sensor 250 Manage device AP;
For acceleration value to be calculated according to acceleration information, the electronic device is determined according to the acceleration value by AP210 The state being in, the state include:Normal state and fall state;
Optionally, above-mentioned acceleration information can be multiple capacitances of plane-parallel capacitor, specifically, can be as schemed 1a, such as Fig. 1 b, C as illustrated in figure 1 c1And C2Value.Certainly in practical applications, due to need to acquire X, Y as shown in Figure 1 d, The acceleration information of tri- axis of Z.Certainly in practical applications, using other gravity sensors, the acceleration information can also It is other kinds of data, the application specific embodiment is not intended to limit the practical manifestation form of above-mentioned acceleration information.
The number of above-mentioned acceleration value can be n acceleration value.Specifically, order traversals n of the AP210 by collection point Acceleration value, such as continuous m acceleration value are more than given threshold, are determined as falling state, are otherwise determined as normal state.Its In, n, m are integer more than or equal to 2, and m < n.
AP210, for determine electronic device be in fall state when, to camera 230 send acquisition;
Camera 230 for receiving the acquisition, acquires first picture on ground;
AP210 for electronic device and the distance L on ground to be calculated according to the acceleration value and acquisition time, is carried The second picture of electronic device is taken, generating the electronic device according to the acceleration value, distance L and acquisition time drops into ground 3D animations.
After the technical solution that the application provides collects acceleration information, electronic device is determined according to acceleration information State when being determined as falling state, first picture on ground is acquired by camera, then according to acceleration value and acquisition Time obtains the distance on the ground of electronic device, and the second picture for extracting electronic device (is specifically as follows shape picture, this second Picture can be the shape picture of pre-stored electronic device, and certainly in some technology scenes, above-mentioned shape picture also may be used Be the acquisition of peripheral camera electronic device shape picture), this makes it possible to generate to drop into ground with electronic device 3D videos.
Above-mentioned periphery camera is specifically as follows:The camera of scene is fallen in acquisition, specifically, for example falling field in family Jing Zhong can be home network camera, can be office's monitoring camera in scene of handling official business, can in the scene of roadside Think the camera of monitoring system.Above-mentioned periphery camera does not limit to above-mentioned periphery in practical applications just to illustrate The form of expression of camera.
Optionally, above-mentioned electronic device further includes:Communication module;
The AP is additionally operable to control communication module and the 4th oscillogram is sent to network side equipment.
Optionally, AP210, specifically for pressing the extraction of acquisition time sequence from n acceleration value more than given threshold First acceleration value and the corresponding time t0 of the first acceleration value, using t0 as the initial time fallen, from n acceleration value By w-th acceleration value and w-th acceleration value corresponding time tw of the acquisition time sequence extraction less than 0;It generates single The 3D animation segments of collection point, obtain t0 and tw between a collection point sampling time t and a collection point it is corresponding Acceleration value α determines position Q of 1 sampled point in distance L, according to acceleration according to the difference between sampling time t and t0 Value α and gravity acceleration value α0It determines the angle beta of the electronic device of 1 sampled point, the angle of second picture is adjusted to the β Third picture is obtained, third picture is placed on position Q obtains the 3D animation segments of 1 collection point, and traversal t0's and tw is every A collection point obtains the 3D animation segments of each collection point, and all 3D animations segments are combined by the sequence of acquisition time The 3D animations generated.
Refering to Fig. 3 a, Fig. 3 a are the schematic diagram of the 3D animation segments of a collection point, as shown in Figure 3a, for its position Q, The Q be electronic device position of centre of gravity and starting point between vertical range, calculate mode can there are many, such as:
Wherein,For t0 and the average value of all acceleration values of tw, which is the sampling time of sampled point.
β=arccos (α/α0) (wherein α≤α0)
β=0 (wherein α > α0)。
Wherein, α is the acceleration value of Z-direction that a collection point determines, which is electronic device and the folder of horizontal direction Angle, α0Gravity acceleration value for electronic device position.
As described in Fig. 3 b, it is the schematic diagram of β, as shown in Figure 3b, ignores the error of acquisition here, then under β angles, puts down The acceleration value of the Z-direction of panel capacitor acquisition is cosine component of the acceleration of gravity under β angles.
For 3D animations, since the time between two neighboring collection point is very short, less than the persistence of vision of human eye Minimum time, then continuous play can generate after the corresponding angle in each position is placed by corresponding position 3D animations.The technical solution of the application replaces on ground by the first picture, so that the experience sense of user is stronger, because right In 3D animations to fall on the ground, the reduction to falling scene can be realized using the picture of the outdoor scene on ground.
AP210, specifically for calculating the difference between tw and t0, if the difference is less than given threshold, then by the 3D of generation The reproduction time of animation extends setting multiple.
This technical solution is in order to avoid 3D animations are too short so that it is inconvenient that user watches, specifically, by the applicant Experiment test, most of electronic device fall distance in 1.5m hereinafter, even some in 0.5m hereinafter, for so short Distance, the time that electronic device falls is very short, generally within 0.5s, then if generation 3D animations broadcasting Time a little opens the 3D animations and has just finished in 0.5s, then possible user, so falling in order to which user preferably watches The process fallen, can be extended setting multiple here, which can also voluntarily be adjusted, such as set 10 by user Again, 20 times, the equimultiples such as 15 times, setting extends after multiple, for 10 times, then and the 3D animations of 0.5s are lengthened to 5s, What is played in this way slows, the process that more conducively user's viewing is fallen.
Refering to Fig. 4, Fig. 4 provides a kind of animation producing method, and the method is applied in electronic device, the electronic device Including:Application processor AP, touching display screen, gravity sensor, circuit and camera, the camera, the touch-control are shown Screen is connect by least one circuit with the application processor;As shown in figure 4, the method includes:
Step S401, the acceleration information of the electronic device is acquired;
Step S402, acceleration value is calculated according to acceleration information, the electronic device is determined according to the acceleration value The state being in, the state include:Normal state and fall state;Determine electronic device be in fall state when, to described Camera sends acquisition;
Step S403, first picture on ground is acquired;
Step S404, electronic device and the distance L on ground is calculated according to the acceleration value and acquisition time, carries The second picture of electronic device is taken, generating the electronic device according to the acceleration value, distance L and acquisition time drops into ground 3D animations.
After the method that the application provides collects acceleration information, the shape of electronic device is determined according to acceleration information State, when being determined as falling state, by camera acquire ground the first picture, then according to acceleration value and acquisition when Between obtain electronic device ground distance, extract the second picture (being specifically as follows shape picture) of electronic device, thus The 3D animations that ground is dropped into electronic device can be generated, improve the Experience Degree of user.
Refering to Fig. 5, Fig. 5 provides a kind of electronic device, and the electronic device includes:Housing, battery, cover board, is taken the photograph circuit board As head 504, touching display screen 503, sensor 501 and processing unit 502, wherein,
Sensor 501 for acquiring the acceleration information of the electronic device, the acceleration information is transferred to described Processing unit;
For acceleration value to be calculated according to acceleration information, the electricity is determined according to the acceleration value for processing unit 502 The state that sub-device is in, the state include:Normal state and fall state;Determine electronic device be in fall state when, Acquisition is sent to camera 504;
Camera 504 for receiving the acquisition, acquires first picture on ground;
Processing unit 502, for electronic device and ground to be calculated according to the acceleration value and acquisition time Distance L extracts the second picture of electronic device, and generating the electronic device according to the acceleration value, distance L and acquisition time falls The 3D animations fallen to the ground.
After technical solution provided by the embodiments of the present application collects acceleration information, electronics is determined according to acceleration information The state of device, when being determined as falling state, by camera acquire ground the first picture, then according to acceleration value with And acquisition time obtains the distance on the ground of electronic device, the second picture for extracting electronic device (is specifically as follows outline drawing Piece), this makes it possible to generate 3D animations that ground is dropped into electronic device, improve the Experience Degree of user.
Fig. 6 is illustrated that the block diagram with the part-structure of the relevant mobile phone of mobile terminal provided by the embodiments of the present application.Ginseng Fig. 6 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, sensor 950th, voicefrequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) module 970, application processor AP980 and 990 grade components of power supply.It will be understood by those skilled in the art that handset structure shown in Fig. 6 does not form the restriction to mobile phone, It can include either combining certain components or different components arrangement than illustrating more or fewer components.
Each component parts of mobile phone is specifically introduced with reference to Fig. 6:
Input unit 930 can be used for receiving input number or character information and generate with the user setting of mobile phone with And the key signals input that function control is related.Specifically, input unit 930 may include touching display screen 933, fingerprint identification device 931st, face identification device 936, iris identification device 937 and other input equipments 932.Input unit 930 can also include Other input equipments 932.Specifically, other input equipments 932 can include but is not limited to physical button, function key (such as sound Measure control button, switch key etc.), it is trace ball, mouse, one or more in operating lever etc..Wherein,
For acquiring the acceleration information of the electronic device, the acceleration information is transferred to for sensor 950 AP980。
For acceleration value to be calculated according to acceleration information, the electronic device is determined according to the acceleration value by AP980 The state being in, the state include:Normal state and fall state;Determine electronic device be in fall state when, to camera shooting Hair send acquisition;
AP980 is additionally operable to filter out second oscillogram in freely falling body section and treats the third oscillogram in static section, The 4th oscillogram for landing section is preserved.
Camera for receiving the acquisition, acquires first picture on ground;
AP980 is additionally operable to be calculated the distance on electronic device and ground according to the acceleration value and acquisition time L extracts the second picture of electronic device, and generating the electronic device according to the acceleration value, distance L and acquisition time drops into The 3D animations on ground.
AP980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, passes through fortune Row performs the software program being stored in memory 920 and/or module and calls the data being stored in memory 920, The various functions of mobile phone and processing data are performed, so as to carry out integral monitoring to mobile phone.Optionally, AP980 may include one or Multiple processing units;Optionally, AP980 can integrate application processor and modem processor, wherein, application processor is main Processing operation system, user interface and application program etc., modem processor mainly handle wireless communication.It is appreciated that It is that above-mentioned modem processor can not also be integrated into AP980.
In addition, memory 920 can include high-speed random access memory, nonvolatile memory, example can also be included Such as at least one disk memory, flush memory device or other volatile solid-state parts.
RF circuits 910 can be used for sending and receiving for information.In general, RF circuits 910 include but not limited to antenna, at least one A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also communicate with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more Location (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of touching display screen, proximity sensor can when mobile phone is moved in one's ear, close touching display screen and/ Or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) acceleration Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, details are not described herein.
Voicefrequency circuit 960, loud speaker 961, microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric The transformed electric signal of the audio data received can be transferred to loud speaker 961, sound is converted to by loud speaker 961 by road 960 Signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 Be changed to audio data, then after audio data is played AP980 processing, through RF circuits 910 be sent to such as another mobile phone or Audio data is played to memory 920 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 6 is shown WiFi module 970, but it is understood that, and must be configured into for mobile phone is not belonging to, it can not change as needed completely Become in the range of the essence of application and omit.
Mobile phone further includes the power supply 990 (such as battery) powered to all parts, and optionally, power supply can pass through power supply pipe Reason system and AP980 are logically contiguous, so as to realize the work(such as management charging, electric discharge and power managed by power-supply management system Energy.
Although being not shown, mobile phone can also include camera, bluetooth module, light compensating apparatus, light sensor etc., herein not It repeats again.
As can be seen that by the embodiment of the present application, after collecting acceleration information, electronics is determined according to acceleration information The state of device, when being determined as falling state, by camera acquire ground the first picture, then according to acceleration value with And acquisition time obtains the distance on the ground of electronic device, the second picture for extracting electronic device (is specifically as follows outline drawing Piece), this makes it possible to generate 3D animations that ground is dropped into electronic device, improve the Experience Degree of user.
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, it is any as described in above-mentioned embodiment of the method which so that computer is performed A kind of part or all of step of animation producing method.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to perform such as above-mentioned side The part or all of step of any animation producing method described in method embodiment.
It should be noted that for aforementioned each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement because According to the application, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to alternative 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, such as the division of the unit, it is only a kind of Division of logic function, can there is an other dividing mode in actual implementation, such as multiple units or component can combine or can To be integrated into another system or some features can be ignored or does not perform.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 unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to 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 That each unit is individually physically present, can also two or more units integrate in a 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 software program module.
If the integrated unit is realized in the form of software program module and is independent product sale or uses When, it can be stored in a computer-readable access to memory.Based on such understanding, the technical solution of the application substantially or Person say the part contribute to the prior art or the technical solution all or part can in the form of software product body Reveal and, which is stored in a memory, is used including some instructions so that a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment the method for the application Step.And aforementioned memory 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 It can 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, and the explanation of above example is only intended to help to understand the present processes and its core concept; Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications There is change part, in conclusion the content of the present specification should not be construed as the limitation to the application.

Claims (11)

1. a kind of electronic device, the electronic device includes:Application processor AP, touching display screen, gravity sensor, circuit and Camera, the camera, the touching display screen are connect by least one circuit with the application processor;
The acceleration information for acquiring the acceleration information of the electronic device, is transferred to institute by the gravity sensor State AP;
The AP for acceleration value to be calculated according to acceleration information, is determined according to the acceleration value at the electronic device In state, which includes:Normal state and fall state;
The AP, for determine electronic device be in fall state when, to camera send acquisition;
The camera for receiving the acquisition, acquires first picture on ground;
The AP, for electronic device and the distance L on ground to be calculated according to the acceleration value and acquisition time, extraction The second picture of electronic device generates the electronic device according to the acceleration value, distance L and acquisition time and drops into ground 3D animations.
2. electronic device according to claim 1, which is characterized in that the electronic device further includes:Communication module;
The AP is additionally operable to control communication module and the 3D animations is sent to network side equipment.
3. electronic device according to claim 1, which is characterized in that
The AP is n specifically for such as described acceleration value, by n acceleration value of order traversal of collection point, such as continuous m A acceleration value is more than given threshold, is determined as falling state, is otherwise determined as normal state, wherein, n, m are more than or equal to 2 Integer, and m < n.
4. electronic device according to claim 3, which is characterized in that
The AP, specifically for pressing first acceleration of the acquisition time sequence extraction more than given threshold from n acceleration value Value and the corresponding time t0 of the first acceleration value using t0 as the initial time fallen, press acquisition time from n acceleration value W-th acceleration value and w-th acceleration value corresponding time tw of the sequence extraction less than 0;Generate the 3D of single collection point Animation segment obtains the sampling time t of a collection point and the corresponding acceleration value α in a collection point between t0 and tw, Position Q of 1 sampled point in distance L is determined according to the difference between sampling time t and t0, according to acceleration value α and gravity Acceleration value α0It determines the angle beta of the electronic device of 1 sampled point, third is obtained after the angle of second picture is adjusted to the β Third picture is placed on position Q and obtains the 3D animation segments of 1 collection point, traverses each collection point of t0 and tw by picture The 3D animation segments of each collection point are obtained, all 3D animations segments by the sequence of acquisition time are combined and are given birth to Into 3D animations.
5. a kind of animation producing method, which is characterized in that the method is applied in electronic device, and the electronic device includes: Application processor AP, touching display screen, gravity sensor, circuit and camera, the camera, the touching display screen pass through At least one circuit is connect with the application processor;The method includes:
Acquire the acceleration information of the electronic device;
Acceleration value is calculated according to acceleration information, the state that the electronic device is in is determined according to the acceleration value, it should State includes:Normal state and fall state;Determine electronic device be in fall state when, to the camera send acquire Order;
Acquire first picture on ground;
Electronic device and the distance L on ground is calculated according to the acceleration value and acquisition time, extracts electronic device Second picture generates the 3D animations that the electronic device drops into ground according to the acceleration value, distance L and acquisition time.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
The 3D animations are sent to network side equipment.
7. according to the method described in claim 5, it is characterized in that, described determine that the electronic device is according to the acceleration value State, including:
If the acceleration value is n, by n acceleration value of order traversal of collection point, such as continuous m acceleration value is more than and sets Determine threshold value, be determined as falling state, be otherwise determined as normal state, wherein, n, m are integer more than or equal to 2, and m < n.
It is 8. the method according to the description of claim 7 is characterized in that described according to the acceleration value, distance L and acquisition time The 3D animations that the electronic device drops into ground are generated, including:
By first acceleration value and first acceleration of the acquisition time sequence extraction more than given threshold from n acceleration value It is worth corresponding time t0, using t0 as the initial time fallen, is less than 0 by the extraction of acquisition time sequence from n acceleration value W-th of acceleration value and the corresponding time tw of w-th of acceleration value;The 3D animation segments of single collection point are generated, obtain t0 The sampling time t of a collection point between the tw and corresponding acceleration value α in a collection point, according to sampling time t Difference between t0 determines position Q of 1 sampled point in distance L, according to acceleration value α and gravity acceleration value α0Determine 1 The angle beta of the electronic device of a sampled point obtains third picture after the angle of second picture is adjusted to the β, by third picture It is placed on position Q and obtains the 3D animation segments of 1 collection point, each collection point of traversal t0 and tw obtains each collection point 3D animation segments, all 3D animations segments are combined by the sequence of acquisition time the 3D animations generated.
9. a kind of electronic device, which is characterized in that the electronic device includes:Processing unit, touching display screen, sensor, electricity Road and camera, the camera, the touching display screen are connect by least one circuit with the processing unit, wherein,
The acceleration information for acquiring the acceleration information of the electronic device, is transferred to the place by the sensor Manage unit;
For acceleration value to be calculated according to acceleration information, the electronics is determined according to the acceleration value for the processing unit The state that device is in, the state include:Normal state and fall state;Determine electronic device be in fall state when, to Camera sends acquisition;
The camera for receiving the acquisition, acquires first picture on ground;
The processing unit, for the distance on electronic device and ground to be calculated according to the acceleration value and acquisition time L extracts the second picture of electronic device, and generating the electronic device according to the acceleration value, distance L and acquisition time drops into The 3D animations on ground.
10. a kind of computer readable storage medium, which is characterized in that it stores the computer program for electronic data interchange, Wherein, the computer program causes computer to perform such as claim 5-8 any one of them methods.
11. a kind of computer program product, which is characterized in that the computer program product includes storing computer program Non-transient computer readable storage medium, the computer program are operable to that computer is made to perform such as claim 5-8 Method described in one.
CN201810020039.8A 2018-01-09 2018-01-09 Electronic device and related product Active CN108227840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810020039.8A CN108227840B (en) 2018-01-09 2018-01-09 Electronic device and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810020039.8A CN108227840B (en) 2018-01-09 2018-01-09 Electronic device and related product

Publications (2)

Publication Number Publication Date
CN108227840A true CN108227840A (en) 2018-06-29
CN108227840B CN108227840B (en) 2021-03-09

Family

ID=62640458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810020039.8A Active CN108227840B (en) 2018-01-09 2018-01-09 Electronic device and related product

Country Status (1)

Country Link
CN (1) CN108227840B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427092A (en) * 2013-08-22 2015-03-18 中兴通讯股份有限公司 Automatic shutdown method and device for mobile terminal and mobile terminal
CN105957120A (en) * 2016-06-22 2016-09-21 财付通支付科技有限公司 Movement locus simulation method and device
CN106371550A (en) * 2016-09-06 2017-02-01 广东欧珀移动通信有限公司 Falling protection method and device
CN106453829A (en) * 2016-09-06 2017-02-22 广东欧珀移动通信有限公司 Method and apparatus for detecting fall-off height
KR20170040701A (en) * 2015-10-05 2017-04-13 삼성전자주식회사 Apparatus and method for controlling accessory
CN106878551A (en) * 2017-01-25 2017-06-20 维沃移动通信有限公司 A kind of power switch method and mobile terminal
CN106979782A (en) * 2017-02-21 2017-07-25 深圳市海派通讯科技有限公司 Drop detection method and the mobile terminal of mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427092A (en) * 2013-08-22 2015-03-18 中兴通讯股份有限公司 Automatic shutdown method and device for mobile terminal and mobile terminal
KR20170040701A (en) * 2015-10-05 2017-04-13 삼성전자주식회사 Apparatus and method for controlling accessory
CN105957120A (en) * 2016-06-22 2016-09-21 财付通支付科技有限公司 Movement locus simulation method and device
CN106371550A (en) * 2016-09-06 2017-02-01 广东欧珀移动通信有限公司 Falling protection method and device
CN106453829A (en) * 2016-09-06 2017-02-22 广东欧珀移动通信有限公司 Method and apparatus for detecting fall-off height
CN106878551A (en) * 2017-01-25 2017-06-20 维沃移动通信有限公司 A kind of power switch method and mobile terminal
CN106979782A (en) * 2017-02-21 2017-07-25 深圳市海派通讯科技有限公司 Drop detection method and the mobile terminal of mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WAN AZIZUL: "Fall detection using smart phone and ubiquitous pulse wave sensor", 《2014 14TH INTERNATIONAL CONFERENCE ON CONTROL, AUTOMATION AND SYSTEMS (ICCAS 2014)》 *
储雨奕: "笔记本电脑的跌落仿真研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN108227840B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN109241908A (en) Face identification method and relevant apparatus
CN105912918B (en) A kind of unlocked by fingerprint method and terminal
CN106446841B (en) A kind of fingerprint template matching order update method and terminal
CN107967129A (en) Display control method and related product
CN107993672A (en) Frequency expansion method and device
CN109862504A (en) A kind of display methods and terminal device
CN106921791A (en) The storage and inspection method of a kind of multimedia file, device and mobile terminal
CN107368791A (en) Living iris detection method and Related product
CN104091600B (en) A kind of song method for detecting position and device
CN108108137A (en) Display control method and related product
CN108225278A (en) A kind of distance measuring method, mobile terminal
CN108196781A (en) The display methods and mobile terminal at interface
CN107944024B (en) Method and device for determining audio file
CN109190448A (en) Face identification method and device
CN107317917B (en) Application control method and Related product
CN109587552A (en) Video personage sound effect treatment method, device, mobile terminal and storage medium
CN108255632A (en) Method for computing data and Related product are fallen based on artificial intelligence
CN108121583A (en) Screenshotss method and Related product
CN108989546A (en) The proximity test method and Related product of electronic device
CN106484688B (en) Data processing method and system
CN108399325A (en) Solve lock control method and Related product
CN107563337A (en) The method and Related product of recognition of face
CN104423865B (en) A kind of method and device for carrying out playing cards in the terminal with touch screen and showing
CN108845261A (en) A kind of electric quantity reminding method and terminal device
CN108227840A (en) Electronic device 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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant