The content of the invention
The present invention provides a kind of weight acquisition methods and device, to improve the real-time of weight of object acquisition.
The embodiment of the present invention provides a kind of weight acquisition methods, including:
Obtain the contact area of examined object and first object;
Obtain the deformation quantity of the first object generation;
The weight of the examined object is determined according to the contact area and the deformation quantity.
In an embodiment of the present invention, the contact area for obtaining examined object and first object, including:
The contact area of examined object and first object is obtained by image-forming principle.
In an embodiment of the present invention, the deformation quantity for obtaining the generation of the first object, including:
The deformation quantity that first object is produced is obtained by ultrasonic wave.
In an embodiment of the present invention, it is described that the examined object is determined according to the contact area and the deformation quantityWeight, including:
The pressure that the examined object is produced to first object is determined according to the deformation quantity;
The weight of the examined object is determined according to the contact area and the pressure.
In an embodiment of the present invention, it is described that the examined object is determined according to the contact area and the pressureWeight, including:
The weight of the examined object is determined according to F=P*S/g and G=F;
Wherein, F represents the pressure that the examined object is produced to first object, and P represents the pressure, and S is representedThe contact area, g represents gravity constant, and G represents the weight of the examined object.
In an embodiment of the present invention, it is described to determine the examined object to first object according to the deformation quantityThe pressure of generation, including:
Determine the attribute of first object;
Attribute and the deformation quantity according to first object determine that the examined object is produced to first objectRaw pressure.
In an embodiment of the present invention, the attribute and the deformation quantity according to first object determines described to be checkedThe pressure that object is produced to first object is surveyed, including:
The attribute of first object, the default corresponding relation between the deformation quantity and the pressure are obtained in advance;
The pressure that the examined object is produced to first object is determined according to the default corresponding relation.
The embodiment of the present invention also provides a kind of weight acquisition device, including:
Acquisition module, the contact area for obtaining examined object and first object;
The acquisition module, is additionally operable to obtain the deformation quantity that the first object is produced;
Determining module, the weight for determining the examined object according to the contact area and the deformation quantity.
In an embodiment of the present invention, the acquisition module, specifically for by image-forming principle obtain examined object withThe contact area of first object.
In an embodiment of the present invention, the acquisition module, specifically for obtaining what the first object was produced by ultrasonic waveDeformation quantity.
In an embodiment of the present invention, the determining module, it is described to be detected specifically for being determined according to the deformation quantityThe pressure that object is produced to first object;The weight of the examined object is determined according to the contact area and the pressureAmount.
In an embodiment of the present invention, the determining module, specifically for being treated according to F=P*S/g and G=F determinationsThe weight of detection object;
Wherein, F represents the pressure that the examined object is produced to first object, and P represents the pressure, and S is representedThe contact area, g represents gravity constant, and G represents the weight of the examined object.
In an embodiment of the present invention, the determining module, the attribute specifically for determining first object;According to instituteThe attribute and the deformation quantity for stating the first object determine the pressure that the examined object is produced to first object.
In an embodiment of the present invention, the determining module, attribute, institute specifically for obtaining first object in advanceState the default corresponding relation between deformation quantity and the pressure;The examined object pair is determined according to the default corresponding relationThe pressure that first object is produced.
Weight acquisition methods provided in an embodiment of the present invention and device, electronic equipment are obtaining examined object and the first thingThe deformation quantity that the contact area of body and the first object are produced, it is possible to directly connect according to the contact surface and determine to be detected with deformation quantityThe weight of object, and without being obtained by electronic scale, so as to improve the real-time of weight of object acquisition.
Term " first ", " second ", " the 3rd ", " in description and claims of this specification and above-mentioned accompanying drawingFour " etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.Should manageSolution so data for using can be exchanged in the appropriate case, so as to embodiments of the invention described herein, for example can be withOrder in addition to those for illustrating herein or describing is implemented.Additionally, term " comprising " and " having " and they appointWhat deforms, it is intended that covering is non-exclusive to be included, for example, contain the process of series of steps or unit, method, system,Product or equipment are not necessarily limited to those steps clearly listed or unit, but may include not list clearly or forThese processes, method, product or other intrinsic steps of equipment or unit.
It should be noted that these specific embodiments can be combined with each other below, for same or analogous conceptOr process may be repeated no more in certain embodiments.
Fig. 1 is a kind of schematic flow sheet of weight acquisition methods of the embodiment of the present invention, is applied to electronic equipment, the weightAcquisition methods can be performed by weight acquisition device, and the weight acquisition device can be independently arranged, it is also possible to be integrated in processorIn, here, the present invention is not particularly limited.The electronic equipment can be mobile phone, or panel computer, here, for electricityThe type of sub- equipment, the present invention does not do and further limits.Shown in Figure 1, the embodiment of the present invention is to enter by taking Fig. 1 as an exampleRow explanation, but do not represent present invention is limited only by this.The weight acquisition methods can include:
S101, the contact area for obtaining examined object and the first object.
Example, the first object can be timber floor, or marble floor, it is, of course, also possible to be other materials, here, the present invention is not particularly limited.Can be placed on the first object by by examined object, it is possible to detectContact area between examined object and the first object.
S102, the deformation quantity for obtaining the generation of the first object.
After examined object is placed on the first object, the first object will be pressed by from examined objectPower, so as to produce deformation, can thus get the deformation quantity of the first object generation.
It should be noted that in embodiments of the present invention, sequencing is had no between S101 and S102, can first carry outS101, then perform S102, it is also possible to perform S102, then perform S101, certainly, the embodiment of the present invention be to first carry out S101,Perform again and illustrate as a example by S102, but do not represent present invention is limited only by this.
S103, the weight that examined object is determined according to contact area and deformation quantity.
After the deformation quantity that examined object is produced with the contact area and the first object of the first object is got respectively,The weight of examined object can be just determined by the contact area and deformation quantity.
Weight acquisition methods provided in an embodiment of the present invention, electronic equipment is obtaining connecing for examined object and the first objectThe deformation quantity that contacting surface is accumulated and the first object is produced, it is possible to directly connect according to the contact surface and determine examined object with deformation quantityWeight, and without being obtained by electronic scale, so as to improve the real-time of weight of object acquisition.
It is further, shown in Figure 2 on the basis of the corresponding embodiments of Fig. 1 based on the corresponding embodiments of Fig. 1,Fig. 2 is the schematic flow sheet of another weight acquisition methods provided in an embodiment of the present invention, and the weight acquisition methods can also be wrappedInclude:
S201, the contact area that examined object and the first object are obtained by image-forming principle.
Example, in embodiments of the present invention, electronic equipment is mobile phone, and examined object is Zhang San, if Zhang San needs to obtainWhen taking from oneself body weight, Zhang San can first stand on the first object, example, the ground that the first object is stood by Zhang San, then lead toCross the contact area that image-forming principle obtains oneself and ground.Certainly, first object can also be other objects, and the present invention is implementedExample is simply illustrated by taking the ground that the first object is stood by Zhang San as an example, but is not represented present invention is limited only by this.
S202, the deformation quantity that the generation of the first object is obtained by ultrasonic wave.
Example, in embodiments of the present invention, the ground that the ultrasound examination Zhang San that can be produced by mobile phone is stoodDeformation degree, so that it is determined that the deformation quantity that ground produces.
It should be noted that in embodiments of the present invention, sequencing is had no between S201 and S202, can first carry outS201, then perform S202, it is also possible to perform S202, then perform S201, certainly, the embodiment of the present invention be to first carry out S201,Perform again and illustrate as a example by S202, but do not represent present invention is limited only by this.
S203, the weight that examined object is determined according to contact area and deformation quantity.
Optionally, in embodiments of the present invention, S203 determines the weight of examined object according to contact area and deformation quantityCan be realized by following possible mode, shown in Figure 3, Fig. 3 is to be checked for a kind of determination provided in an embodiment of the present inventionSurvey the schematic flow sheet of the weight of object.
S301, the pressure that examined object is produced to the first object is determined according to deformation quantity.
Optionally, during the pressure that examined object is produced to the first object is determined according to deformation quantity, due to notThe corresponding pressure of deformation quantity produced with the first object is different, therefore, it can first determine the attribute of the first object;According to the first thingThe attribute and deformation quantity of body determine the pressure that examined object is produced to the first object.
Further, closed due to can in advance obtain the attribute of the first object, the default correspondence between deformation quantity and pressureSystem;Therefore, after the attribute and deformation quantity that get the first object, it is possible to determined according to the default corresponding relation to be detectedThe pressure that object is produced to the first object.
Example, after the deformation quantity for getting ground, it is possible to obtain what Zhang San produced to ground according to deformation quantityPressure, but the pressure corresponding to the deformation quantity of different object is different, accordingly, it would be desirable to the attribute of the first object is first obtained, such asThe attribute on the ground that Zhang San is stood is boarding floor, due to that can obtain between boarding floor, deformation quantity and pressure in advanceDefault corresponding relation, therefore, it is determined that the deformation that is produced for boarding floor and the boarding floor of the ground stood of Zhang SanAfter amount, it is possible to by inquiring about the default corresponding relation, so that it is determined that the pressure that Zhang San produces to the boarding floor.
S302, the weight that examined object is determined according to contact area and pressure.
Optionally, in embodiments of the present invention, S302 determines the weight of examined object according to contact area and pressure, canTo include:
The weight of examined object is determined according to F=P*S/g and G=F.Wherein, F represents examined object to the first objectThe pressure of generation, P represents pressure, and S represents contact area, and g represents gravity constant, and G represents the weight of examined object.
Example, after the pressure and contact area that Zhang San produces to the boarding floor is got, it is possible to by F=P*S/g is calculated the pressure that Zhang San produces to the boarding floor, and the body weight of Zhang San is equal to the pressure value, so as to obtainTo the body weight of Zhang San, and need to be measured by electronic scale, improve the real-time of Zhang San's body weight acquisition.
Fig. 4 is a kind of structural representation of weight acquisition device 40 provided in an embodiment of the present invention, shown in Figure 4,The embodiment of the present invention is to be illustrated by taking Fig. 4 as an example, but is not represented present invention is limited only by this, the weight acquisition device 40Can include:
Acquisition module 401, the contact area for obtaining examined object and the first object.
Acquisition module 401, is additionally operable to obtain the deformation quantity that the first object is produced.
Determining module 402, the weight for determining examined object according to contact area and deformation quantity.
Optionally, acquisition module 401, specifically for obtaining examined object contact with the first object by image-forming principleArea.
Optionally, acquisition module 401, specifically for obtaining the deformation quantity that the first object is produced by ultrasonic wave.
Optionally, determining module 402, specifically for determining the pressure that examined object is produced to the first object according to deformation quantityBy force;The weight of examined object is determined according to contact area and pressure.
Optionally, determining module 402, the weight specifically for determining examined object according to F=P*S/g and G=F.
Wherein, F represents the pressure that examined object is produced to the first object, and P represents pressure, and S represents contact area, g tablesShow gravity constant, G represents the weight of examined object.
Optionally, determining module 402, the attribute specifically for determining the first object;According to the attribute and shape of the first objectVariable determines the pressure that examined object is produced to the first object.
Optionally, determining module 402, specifically for obtaining the attribute of the first object in advance, between deformation quantity and pressureDefault corresponding relation;The pressure that examined object is produced to the first object is determined according to default corresponding relation.
Weight acquisition device 40 shown in the embodiment of the present invention, can perform the technical side shown in above method embodimentCase, its realization principle and beneficial effect are similar to, and are no longer repeated herein.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead toThe related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journeySequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc orPerson's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extentPipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according toThe technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are enteredRow equivalent;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technologyThe scope of scheme.