CN111780846B - Object weighing method, mobile terminal and computer readable storage medium - Google Patents

Object weighing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN111780846B
CN111780846B CN202010640457.4A CN202010640457A CN111780846B CN 111780846 B CN111780846 B CN 111780846B CN 202010640457 A CN202010640457 A CN 202010640457A CN 111780846 B CN111780846 B CN 111780846B
Authority
CN
China
Prior art keywords
weighed
weight
rear cover
mobile terminal
pressure sensor
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.)
Active
Application number
CN202010640457.4A
Other languages
Chinese (zh)
Other versions
CN111780846A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010640457.4A priority Critical patent/CN111780846B/en
Publication of CN111780846A publication Critical patent/CN111780846A/en
Application granted granted Critical
Publication of CN111780846B publication Critical patent/CN111780846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/52Weighing apparatus combined with other objects, e.g. furniture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application is suitable for the technical field of mobile terminals, and provides an object weighing method, a mobile terminal and a computer readable storage medium, wherein the mobile terminal is placed on a terminal placing control, a rear cover of the mobile terminal is provided with a pressure sensor, and the object weighing method comprises the following steps: displaying a weighing area; acquiring a first supporting force of the terminal placing control on the rear cover when a first object to be weighed is placed in the weighing area through the pressure sensor; acquiring the weight of the first object to be weighed according to the first supporting force; and prompting the weight of the first object to be weighed in a preset mode. Through the application, when the mobile terminal is used for weighing an object to be weighed, the limitation of the object to be weighed is reduced.

Description

Object weighing method, mobile terminal and computer readable storage medium
Technical Field
The application belongs to the technical field of mobile terminals, and particularly relates to an object weighing method, a mobile terminal and a computer-readable storage medium.
Background
With the development of the mobile terminal (for example, mobile phone, tablet computer, etc.) industry, the functions of the mobile terminal are more and more powerful, and the mobile terminal is more and more intelligent. At present, besides the basic communication function, the mobile terminal can also provide more life-related functions to the user, such as weighing an object.
In the prior art, the mobile terminal is usually weighed by an external hook or a pressure sensing screen. However, the object to be weighed is weighed with the pressure-sensitive screen weighing to the couple and all has the limitation, to the object to be weighed that can not be hooked on the couple, can't weigh it through the couple, to the object to be weighed that does not electrically conduct, can't weigh it through the pressure-sensitive screen.
Disclosure of Invention
The application provides an object weighing method, a mobile terminal and a computer readable storage medium, which are used for reducing the limitation of an object to be weighed when the object to be weighed is weighed by the mobile terminal.
In a first aspect, an embodiment of the present application provides an object weighing method, which is applied to a mobile terminal, where the mobile terminal is placed on a terminal placement control, and a rear cover of the mobile terminal is provided with a pressure sensor, where the object weighing method includes:
displaying a weighing area;
acquiring a first supporting force of the terminal placing control on the rear cover when a first object to be weighed is placed in the weighing area through the pressure sensor;
acquiring the weight of the first object to be weighed according to the first supporting force;
and prompting the weight of the first object to be weighed in a preset mode.
In a second aspect, an embodiment of the present application provides a mobile terminal, where the mobile terminal is placed on a terminal placement control, a pressure sensor is disposed on a rear cover of the mobile terminal, and the mobile terminal includes:
the area display module is used for displaying the weighing area;
the supporting force acquisition module is used for acquiring a first supporting force of the terminal placing control on the rear cover when a first object to be weighed is placed in the weighing area through the pressure sensor;
the weight obtaining module is used for obtaining the weight of the first object to be weighed according to the first supporting force;
and the weight prompting module is used for prompting the weight of the first object to be weighed in a preset mode.
In a third aspect, an embodiment of the present application provides a mobile terminal, which includes a pressure sensor, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the object weighing method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the object weighing method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a mobile terminal, causes the mobile terminal to perform the steps of the object weighing method according to the first aspect.
It is from top to bottom visible, this application sets up pressure sensor through the back lid at mobile terminal, can obtain the terminal when weighing the region and place the object of waiting to weigh and place the holding power of controlling part to the back lid, place the holding power of controlling part to the back lid according to the terminal and can obtain the weight of the object of waiting to weigh, this application can obtain the weight of the object of waiting to weigh through the pressure sensor who sets up the back lid promptly, need not at the external couple of mobile terminal, also need not to prescribe a limit to wait to weigh the object and be the conductible object, the limitation of the object of waiting to weigh has been reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of an object weighing method according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of a weighing application interface;
FIG. 3 is an exemplary diagram of a mobile terminal being placed on a terminal placement control;
FIG. 4 is an exemplary illustration of a projection of a pressure sensor;
fig. 5 is a schematic flow chart of an implementation of an object weighing method provided in the second embodiment of the present application;
FIG. 6a is an illustration of a support; FIG. 6b is an exemplary illustration of the placement of the pressure sensor on the support;
FIG. 7 is a schematic flow chart illustrating an implementation of an object weighing method according to a third embodiment of the present application;
FIG. 8 is a view showing an example of the arrangement of the pressure sensor on the inner side surface of the rear cover body;
fig. 9 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present application;
fig. 10 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application;
fig. 11 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic diagram illustrating an implementation flow of an object weighing method provided in an embodiment of the present application, where the object weighing method is applied to a mobile terminal, and a pressure sensor is disposed on a rear cover of the mobile terminal, as shown in the figure, the object weighing method may include the following steps:
step 101, displaying a weighing area.
In this embodiment, a weighing application program may be installed on the mobile terminal, and if a start instruction of the weighing application program is received (for example, a start instruction is generated by clicking an icon of the weighing application program and triggering), the weighing application program is started, and a weighing application program interface is entered (that is, the weighing application program interface is displayed on a screen of the mobile terminal), where the weighing application program interface includes a weighing area, the weighing area is used for placing an object to be weighed, the weighing area is displayed on the screen of the mobile terminal, and a user may be prompted to place the object to be weighed in the weighing area, as shown in fig. 2, which is an exemplary diagram of the weighing application program interface. The weighing application program is software for realizing a weighing function, and a screen of the mobile terminal can also be called as a display screen of the mobile terminal, and can perform various interactions with a user and display various information.
The weighing area may be a partial area in the weighing application program interface (for example, the weighing area in fig. 2 is a partial area of the weighing application program interface), or may be a whole area in the weighing application program interface, which is not limited herein.
The weighing area may be displayed on the screen of the mobile terminal in a variety of distribution manners, as shown in fig. 2, the weighing area is a circular area, and the specific distribution manner of the weighing area is not limited in this embodiment.
102, acquiring a first supporting force of a terminal placing control on a rear cover when a first object to be weighed is placed in a weighing area through a pressure sensor.
The first object to be weighed is any object to be weighed, and the first supporting force is the supporting force of the terminal placing control acquired by the pressure sensor on the rear cover when the first object to be weighed is placed in the weighing area.
The method comprises the following steps that a pressure sensor is arranged on a rear cover of the mobile terminal and used for measuring the supporting force of a terminal placing control on the rear cover when an object to be weighed is placed in a weighing area. The pressure sensor includes, but is not limited to, a metal strain gauge, a piezoresistive sensor, a piezoelectric sensor, a capacitive sensor, and the like, which may be selected according to actual situations, and is not limited herein.
The rear cover of the mobile terminal may also be referred to as a battery cover, and is arranged opposite to the screen of the mobile terminal, when the mobile terminal is placed on the terminal placement control, the rear cover of the mobile terminal is adjacent to the surface of the terminal placement control, and the terminal placement control may refer to any control capable of placing the mobile terminal, such as a desktop, various tables, and the like, without limitation. Fig. 3 is an exemplary diagram illustrating a mobile terminal being placed on a terminal placement control. It should be noted that the data measured by the pressure sensor is usually an analog signal, so the data measured by the pressure sensor needs to be converted into a digital signal by an analog-to-digital conversion unit, the digital signal is a supporting force, the supporting force is transmitted to the processor of the mobile terminal, and the processor of the mobile terminal can calculate the weight of the object to be weighed based on the supporting force.
Alternatively, in order to reduce the measurement error of the supporting force, the position of the pressure sensor on the rear cover may be set to a position capable of ensuring the projection of the pressure sensor on the screen of the mobile terminal within the weighing area, as shown in fig. 4, which is a projection example diagram of the pressure sensor.
And 103, acquiring the weight of the first object to be weighed according to the first supporting force.
The weight of the first object to be weighed is the weight of the first object to be weighed measured through the mobile terminal.
In this embodiment, after the weight of the first object to be weighed is obtained, the weight of the first object to be weighed may be entered into the health management application program, and the energy of the first object to be weighed is calculated according to the weight of the first object to be weighed, so as to perform nutrition analysis on the first object to be weighed.
The number of the pressure sensors arranged on the rear cover of the mobile terminal can be one or at least two, if the number of the pressure sensors is at least two, the positions of the at least two pressure sensors arranged on the rear cover are different, after the first object to be weighed is placed in the weighing area, at least two first supporting forces can be obtained through the at least two pressure sensors, the weights corresponding to the at least two first supporting forces are obtained, the weights corresponding to the at least two first supporting forces are averaged, and the obtained average value is the final weight of the first object to be weighed. It should be noted that, in order to obtain the at least two first supporting forces more accurately, the projections of the at least two pressure sensors on the screen of the mobile terminal are required to be at positions within the weighing area.
Optionally, before acquiring the weight of the first object to be weighed according to the first supporting force, the method includes:
establishing a one-to-one corresponding relation between N supporting forces and N weights, wherein N is an integer greater than zero;
accordingly, acquiring the weight of the first object to be weighed according to the first supporting force includes:
searching whether a first supporting force exists in the N supporting forces in the corresponding relation;
and if the first supporting force exists, acquiring the weight corresponding to the first supporting force from the corresponding relation, and determining that the weight is the weight of the first object to be weighed.
In this embodiment, when the first supporting force of the terminal placement control on the rear cover is obtained, the first supporting force may be searched from a pre-established correspondence between the supporting force and the weight, and if the first supporting force is searched from the correspondence, the weight corresponding to the first supporting force in the correspondence is used as the weight of the first object to be weighed; if the first supporting force is not found from the corresponding relationship, a weight input box can be displayed to prompt a user to input the weight of the first object to be weighed in the weight input box, and the corresponding relationship between the first supporting force and the weight of the first object to be weighed is established, so that the weight of the first object to be weighed can be obtained through the mobile terminal subsequently, the first supporting force can also be sent to the server to prompt background personnel to input the weight corresponding to the first supporting force in the server, and the corresponding relationship between the first supporting force and the weight is sent to the mobile terminal, so that the weight of the first object to be weighed can be obtained through the mobile terminal subsequently.
It should be noted that, when the mobile terminal is placed on the terminal placement control and the object to be weighed is not placed in the weighing area, the pressure sensor also detects the supporting force of the terminal placement control on the rear cover, which is generally the same as the pressure of the rear cover on the terminal placement control (i.e., the self-gravity of the mobile terminal) and has an opposite direction, so that in order to reduce the influence of the self-gravity of the mobile terminal on the weight of the object to be weighed, when the corresponding relationship between the supporting force and the weight of the object to be weighed is established, the supporting force of the terminal placement control on the rear cover when the object to be weighed is not placed in the weighing area can be zero offset, that is, the weight of the object to be weighed corresponding to the supporting force of the terminal placement control on the rear cover when the object to be weighed is not placed in the weighing area is zero. For example, if the supporting force of the terminal placement control on the rear cover when the object to be weighed is not placed in the weighing area is 120g, the zero point offset is set to be 120g, and the weight of the object to be weighed corresponding to the supporting force 120g is 0 g.
And 104, prompting the weight of the first object to be weighed in a preset mode.
The preset mode may be any preset mode capable of prompting the user of the weight of the object to be weighed.
Optionally, prompting the weight of the first object to be weighed in a preset manner includes:
the weight of the first object to be weighed is displayed in the weight area, and/or the weight of the first object to be weighed is subjected to voice broadcast.
The weighing application program interface can be provided with a weight area, and the weight area is used for displaying the weight of the object to be weighed. In order to avoid the situation that the object to be weighed placed in the weighing area blocks the content displayed in the weight area, the weight area and the weighing area in the weighing application program interface can be set to be not overlapped with each other, so that the weight of the object to be weighed can be read from the weight area under the condition that the object to be weighed does not need to be removed.
The weight area may be displayed on the screen of the mobile terminal in various distribution manners, as shown in fig. 2, the weight area is a rectangular area, and the specific distribution manner of the weight area is not limited in this embodiment.
Optionally, after prompting the weight of the first object to be weighed in a preset manner, the embodiment further includes:
if a zeroing instruction for the first object to be weighed is received, prompting that a second object to be weighed is placed in the weighing area;
acquiring a second supporting force of the terminal placing control on the rear cover when a first object to be weighed and a second object to be weighed are placed in the weighing area through the pressure sensor;
acquiring the total weight of the first object to be weighed and the second object to be weighed according to the second supporting force;
calculating the difference between the total weight and the weight of the first object to be weighed, and determining the difference as the weight of the second object to be weighed;
and prompting the weight of the second object to be weighed in a preset mode.
Wherein the zeroing instruction is used for instructing to zero the weight of the first object to be weighed.
The embodiment can reduce the influence of the weight of the first object to be weighed on the weight of the second object to be weighed by firstly returning the weight of the first object to be weighed to zero and then placing the second object to be weighed in the weighing area, so that the weight of the second object to be weighed is obtained. Optionally, a zeroing option (for example, "zeroing" in fig. 2 is a zeroing option) may be set on the weighing application program interface, and when a preset operation on the zeroing option is detected, the generation of the zeroing instruction is triggered, where the preset operation may be any operation that triggers the generation of the zeroing instruction, for example, a click operation.
Illustratively, the first object to be weighed is a measuring cup, the second object to be weighed is white sugar, the measuring cup is placed in the weighing area, the weight of the measuring cup is 10g, the weight area is 10g, when a zeroing instruction for the measuring cup is received, the weight area is 0g, then the white sugar is placed in the measuring cup (namely the measuring cup and the white sugar are placed in the weighing area), the mass of the white sugar is 50g, and the weight area is 50 g.
It should be noted that after the second supporting force is obtained, the second supporting force may be searched from the corresponding relationship between the N supporting forces and the N weights, and if the second supporting force is found, the weight corresponding to the second supporting force is obtained from the corresponding relationship, where the weight is the total mass of the first object to be weighed and the second object to be weighed.
The embodiment of the application can obtain the weight of the object to be weighed through the pressure sensor arranged on the rear cover, does not need to be hooked outside the mobile terminal, does not need to limit the object to be weighed to be a conductive object, and reduces the limitation of the object to be weighed.
Referring to fig. 5, which is a schematic flow chart illustrating an implementation process of an object weighing method provided in the second embodiment of the present application, where the object weighing method is applied to a mobile terminal, as shown in the figure, the object weighing method may include the following steps:
step 501, displaying a weighing area.
The step is the same as step 101, and reference may be made to the related description of step 101, which is not described herein again.
Step 502, acquiring a first supporting force of a terminal placing control on a supporting member when a first object to be weighed is placed in a weighing area through a pressure sensor.
Wherein, mobile terminal's back lid still includes support piece including the back lid body, mobile terminal's back lid, and support piece runs through the back lid body, and support piece includes first end and second end, and the lateral surface of lid body is covered after the first end protrusion, and the medial surface of lid body is covered after the second end protrusion sets up pressure sensor at the second end.
The outer side surface of the rear cover body refers to a side facing an external environment, and the inner side surface of the rear cover body refers to a side facing a screen of the mobile terminal. The lateral surface of lid body after with the first end protrusion of support piece, so placing mobile terminal when placing the controlling part at the terminal, the surface of controlling part is placed to the first end of support piece close to the terminal, will wait to weigh the object and place when weighing the region, the first end of support piece is the stress point promptly, through holding the pressure sensor at the second end relative with the first end of support piece, can place the holding power of controlling part to support piece through pressure sensor measurement terminal.
Optionally, an input end of the pressure sensor is disposed at the second end of the supporting member, an output end of the pressure sensor is attached to a Printed Circuit Board (PCB), and the pressure sensor can be fixed or connected to an electrical signal by attaching or assembling the output end of the pressure sensor to the PCB, so as to implement electrical signal transmission between the pressure sensor and a processor of the mobile terminal. In addition, a layer of control with certain compression deformation quantity such as buffer foam or a silica gel sleeve can be arranged between the PCB and the middle frame assembly so as to fill gaps between the pressure sensor and the supporting piece and between the PCB and the middle frame assembly. The middle frame assembly is a middle frame structural member inside the mobile terminal, is used for assembling a main board, a battery and the like, and is a main bearing body of a part of the mobile terminal. Shown in fig. 6a is an exemplary view of a support; fig. 6b shows an example of the arrangement of the pressure sensor on the support.
In addition, the first end of the supporting piece protrudes out of the outer side face of the rear cover body, so that the camera of the mobile terminal can be prevented from being scratched.
In order to accurately measure the supporting force of the terminal placing control on the supporting piece through the pressure sensor, the supporting piece can vertically penetrate through the rear cover body.
The number of the supporting members may be one or at least two, and when the number of the supporting members is at least two, the positions of the at least two supporting members on the rear cover may be set according to actual needs, which is not limited herein.
Step 503, acquiring the weight of the first object to be weighed according to the first supporting force;
the step is the same as step 103, and reference may be made to the related description of step 103, which is not described herein again.
Step 504, the weight of the first object to be weighed is prompted in a preset manner.
The step is the same as step 104, and reference may be made to the related description of step 104, which is not described herein again.
This application embodiment can obtain the weight of waiting to weigh the object through setting up pressure sensor at support piece's second end, and through the lateral surface of covering the body behind the first end protrusion with support piece, can regard as the scraping prevention pad with support piece, prevents to scrape colored mobile terminal's camera.
Referring to fig. 7, which is a schematic flow chart illustrating an implementation process of an object weighing method provided in the third embodiment of the present application, where the object weighing method is applied to a mobile terminal, as shown in the figure, the object weighing method may include the following steps:
step 701, displaying a weighing area.
The step is the same as step 101, and reference may be made to the related description of step 101, which is not described herein again.
Step 702, acquiring a first supporting force of the terminal placing control on the rear cover body when a first object to be weighed is placed in the weighing area through the pressure sensor.
The rear cover of the mobile terminal comprises a rear cover body, a pressure sensor is arranged on the inner side surface of the rear cover body, the inner side surface of the rear cover body is one side facing a screen of the mobile terminal, and fig. 8 shows an example of arrangement of the pressure sensor on the inner side surface of the rear cover body.
The number of the pressure sensors arranged on the inner side surface of the back cover body can be one or at least two, if the number of the pressure sensors is at least two, the positions of the at least two pressure sensors arranged on the inner side surface of the back cover body are different, after a first object to be weighed is placed in a weighing area, at least two first supporting forces can be obtained through the at least two pressure sensors, the weights corresponding to the at least two first supporting forces are obtained, the weights corresponding to the at least two first supporting forces are averaged, and the obtained average value is the final weight of the first object to be weighed. It should be noted that, in order to obtain the at least two first supporting forces more accurately, the projections of the at least two pressure sensors on the screen of the mobile terminal are required to be at positions within the weighing area.
And 703, acquiring the weight of the first object to be weighed according to the first supporting force.
The step is the same as step 103, and reference may be made to the related description of step 103, which is not described herein again.
Step 704, prompting the weight of the first object to be weighed in a preset mode.
The step is the same as step 104, and reference may be made to the related description of step 104, which is not described herein again.
This application embodiment can still avoid setting up a plurality of bumps at the lateral surface of mobile terminal's back lid body when obtaining the weight of waiting to weigh the object through setting up pressure sensor at the medial surface of back lid body, optimizes mobile terminal's outward appearance.
Referring to fig. 9, which is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present disclosure, the mobile terminal is placed on a terminal placement control, and a pressure sensor is disposed on a rear cover of the mobile terminal.
The mobile terminal includes:
an area display module 91 for displaying a weighing area;
the supporting force acquisition module 92 is used for acquiring a first supporting force of the terminal placing control on the rear cover when a first object to be weighed is placed in the weighing area through the pressure sensor;
the weight obtaining module 93 is configured to obtain the weight of the first object to be weighed according to the first supporting force;
and the weight prompting module 94 is used for prompting the weight of the first object to be weighed in a preset mode.
Optionally, the rear cover includes a rear cover body, the rear cover further includes a supporting member, the supporting member penetrates through the rear cover body, the supporting member includes a first end and a second end, the first end protrudes out of the outer side surface of the rear cover body, the second end protrudes out of the inner side surface of the rear cover body, and the arrangement of the pressure sensor on the rear cover means that the pressure sensor is arranged at the second end;
the support force acquisition module 92 is specifically configured to:
when the pressure sensor is used for acquiring that a first object to be weighed is placed in the weighing area, the terminal placing control part is used for placing a first supporting force of the supporting part.
Optionally, the rear cover of the mobile terminal includes a rear cover body, and the step of providing the pressure sensor on the rear cover means that the pressure sensor is provided on an inner side surface of the rear cover body;
the support force acquisition module 92 is specifically configured to:
when the pressure sensor is used for acquiring that a first object to be weighed is placed in the weighing area, the terminal placing control part is used for placing a first supporting force of the rear cover body.
Optionally, the mobile terminal further includes:
the relation establishing module is used for establishing a one-to-one corresponding relation between N supporting forces and N weights, wherein N is an integer larger than zero;
the weight obtaining module 93 is specifically configured to:
searching whether a first supporting force exists in the N supporting forces in the corresponding relation;
and if the first supporting force exists, acquiring the weight corresponding to the first supporting force from the corresponding relation, and determining that the weight is the weight of the first object to be weighed.
Optionally, the projection of the pressure sensor on the screen of the mobile terminal is within the weighing area.
Optionally, the weight prompt module 94 is specifically configured to:
the weight of the first object to be weighed is displayed in the weight area, and/or the weight of the first object to be weighed is subjected to voice broadcast.
Optionally, the mobile terminal further comprises a weighing prompt module and a difference value calculation module;
the weighing prompting module is used for prompting that a second object to be weighed is placed in the weighing area if a zeroing instruction for the first object to be weighed is received;
the supporting force acquisition module is also used for acquiring a second supporting force of the terminal placing control on the rear cover when the first object to be weighed and the second object to be weighed are placed in the weighing area through the pressure sensor;
the weight obtaining module is further used for obtaining the total weight of the first object to be weighed and the second object to be weighed according to the second supporting force;
the difference value calculating module is used for calculating the difference value between the total weight and the weight of the first object to be weighed and determining the difference value as the weight of the second object to be weighed;
and the weight prompting module is also used for prompting the weight of the second object to be weighed in a preset mode.
The mobile terminal provided in the embodiment of the present application may be applied to the foregoing method embodiment, and for details, refer to the description of the foregoing method embodiment, which is not described herein again.
Fig. 10 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 1001 (only one shown), one or more input devices 1002 (only one shown), one or more output devices 1003 (only one shown), and memory 1004. The processor 1001, the input device 1002, the output device 1003, and the memory 1004 are connected via a bus 1005. The memory 1004 is used to store instructions and the processor 1001 is used to execute instructions stored by the memory 1004. Wherein:
it should be understood that in the embodiments of the present Application, the Processor 1001 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 1002 may include a pressure sensor, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, a data receiving interface, and the like. The output device 1003 may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
The memory 1004 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1001. A portion of the memory 1004 may also include non-volatile random access memory. For example, the memory 1004 may also store device type information.
In a specific implementation, the processor 1001, the input device 1002, the output device 1003, and the memory 1004 described in this embodiment may execute the implementation described in the embodiment of the object weighing method provided in this embodiment, or may execute the implementation described in the fourth mobile terminal in this embodiment, which is not described herein again.
Fig. 11 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present application. As shown in fig. 11, the mobile terminal 11 of this embodiment includes: one or more processors 110 (only one shown), a memory 111, one or more pressure sensors 112 (only one shown), and a computer program 113 stored in the memory 111 and executable on the at least one processor 110. The steps in the various object weighing method embodiments described above are implemented when the processor 110 executes the computer program 113.
The mobile terminal 11 may be a mobile phone, a tablet computer, or other computing device. The mobile terminal may include, but is not limited to, a processor 110, a memory 111, and a pressure sensor 112. Those skilled in the art will appreciate that fig. 11 is merely an example of a mobile terminal 11 and is not intended to limit the mobile terminal 11 and may include more or less components than those shown, or some of the components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The processor 110 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 111 may be an internal storage unit of the mobile terminal 11, such as a hard disk or a memory of the mobile terminal 11. The memory 111 may also be an external storage device of the mobile terminal 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the mobile terminal 11. Further, the memory 111 may also include both an internal storage unit and an external storage device of the mobile terminal 11. The memory 111 is used for storing computer programs and other programs and data required by the mobile terminal. The memory 111 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules as required, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the mobile terminal may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments of the mobile terminal are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments described above may be implemented by a computer program, which is stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
When the computer program product runs on the mobile terminal, the steps in the method embodiments can be realized when the mobile terminal executes the computer program product.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An object weighing method is applied to a mobile terminal, the mobile terminal is placed on a terminal placing control, a pressure sensor is arranged on a rear cover of the mobile terminal, and the object weighing method comprises the following steps:
displaying a weighing area;
acquiring a first supporting force of the terminal placing control on the rear cover when a first object to be weighed is placed in the weighing area through the pressure sensor, wherein the first supporting force is the supporting force of the terminal placing control on the rear cover acquired through the pressure sensor when the first object to be weighed is placed in the weighing area, and the pressure sensor is arranged on the rear cover of the mobile terminal;
acquiring the weight of the first object to be weighed according to the first supporting force;
and prompting the weight of the first object to be weighed in a preset mode.
2. The method for weighing an object according to claim 1, wherein the rear cover comprises a rear cover body, the rear cover further comprises a supporting member, the supporting member penetrates through the rear cover body, the supporting member comprises a first end and a second end, the first end protrudes out of the outer side face of the rear cover body, the second end protrudes out of the inner side face of the rear cover body, and the step of arranging the pressure sensor on the rear cover means that the pressure sensor is arranged on the second end;
correspondingly, when the pressure sensor acquires that a first object to be weighed is placed in the weighing area, the first supporting force of the terminal placing control on the rear cover comprises:
and acquiring a first supporting force of the terminal placing control on the supporting piece when a first object to be weighed is placed in the weighing area through the pressure sensor.
3. The object weighing method according to claim 1, wherein the rear cover comprises a rear cover body, and the step of providing the pressure sensor on the rear cover means that the pressure sensor is provided on an inner side surface of the rear cover body;
correspondingly, when the pressure sensor acquires that a first object to be weighed is placed in the weighing area, the first supporting force of the terminal placing control on the rear cover comprises:
and acquiring a first supporting force of the terminal placing control on the rear cover body when a first object to be weighed is placed in the weighing area through the pressure sensor.
4. The object weighing method according to claim 1, before acquiring the weight of the first object to be weighed based on the first supporting force, comprising:
establishing a one-to-one corresponding relation between N supporting forces and N weights, wherein N is an integer greater than zero;
correspondingly, the acquiring the weight of the first object to be weighed according to the first supporting force comprises:
searching whether the first supporting force exists in the N supporting forces in the corresponding relation;
and if the first supporting force exists, acquiring the weight corresponding to the first supporting force from the corresponding relation, and determining that the weight is the weight of the first object to be weighed.
5. The object weighing method of claim 1, wherein the projection of the pressure sensor on the screen of the mobile terminal is within the weighing area.
6. The object weighing method according to claim 1, wherein said prompting the weight of the first object to be weighed in a preset manner comprises:
and displaying the weight of the first object to be weighed in a weight area, and/or broadcasting the weight of the first object to be weighed in a voice mode.
7. The object weighing method according to any one of claims 1 to 6, further comprising, after prompting the weight of the first object to be weighed in a preset manner:
if a zeroing instruction for the first object to be weighed is received, prompting that a second object to be weighed is placed in the weighing area;
acquiring a second supporting force of the terminal placing control on the rear cover when the first object to be weighed and the second object to be weighed are placed in the weighing area through the pressure sensor;
acquiring the total weight of the first object to be weighed and the second object to be weighed according to the second supporting force;
calculating the difference value between the total weight and the weight of the first object to be weighed, and determining the difference value as the weight of the second object to be weighed;
and prompting the weight of the second object to be weighed in a preset mode.
8. The utility model provides a mobile terminal, mobile terminal places on terminal places the controlling part, its characterized in that, the back lid of mobile terminal sets up pressure sensor, mobile terminal includes:
the area display module is used for displaying the weighing area;
the supporting force acquisition module is used for acquiring a first supporting force of the terminal placing control on the rear cover when a first object to be weighed is placed in the weighing area through the pressure sensor, wherein the first supporting force is the supporting force of the terminal placing control on the rear cover acquired through the pressure sensor when the first object to be weighed is placed in the weighing area, and the pressure sensor is arranged on the rear cover of the mobile terminal;
the weight obtaining module is used for obtaining the weight of the first object to be weighed according to the first supporting force;
and the weight prompting module is used for prompting the weight of the first object to be weighed in a preset mode.
9. A mobile terminal comprising a pressure sensor, a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method for weighing an object according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for weighing an object according to any one of claims 1 to 7.
CN202010640457.4A 2020-07-06 2020-07-06 Object weighing method, mobile terminal and computer readable storage medium Active CN111780846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010640457.4A CN111780846B (en) 2020-07-06 2020-07-06 Object weighing method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010640457.4A CN111780846B (en) 2020-07-06 2020-07-06 Object weighing method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111780846A CN111780846A (en) 2020-10-16
CN111780846B true CN111780846B (en) 2021-11-26

Family

ID=72757948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010640457.4A Active CN111780846B (en) 2020-07-06 2020-07-06 Object weighing method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111780846B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114543955B (en) * 2020-11-25 2024-04-09 菜鸟智能物流控股有限公司 Weighing device, weighing processing method, device, equipment and machine-readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204069060U (en) * 2014-07-21 2014-12-31 联想(北京)有限公司 Mobile terminal
CN204906457U (en) * 2015-08-27 2015-12-23 李姝� Multi -functional intelligent cell phone case
CN105737951B (en) * 2016-01-29 2018-03-27 广东欧珀移动通信有限公司 The method and terminal that a kind of terminal is weighed
CN107305142A (en) * 2016-04-22 2017-10-31 深圳富泰宏精密工业有限公司 Weighing system, hand-held device and hand-held device component
CN206212075U (en) * 2016-12-12 2017-05-31 孙成功 A kind of cell-phone electronic-scale
CN109556687B (en) * 2018-12-20 2021-07-23 帷幄匠心科技(杭州)有限公司 Weight measurement method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111780846A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN107451244B (en) Folder naming method, mobile terminal and computer readable storage medium
US20140020961A1 (en) Portable electronic device having weighing function and electronic weighing system using same
KR20170022192A (en) Electronic device having the touch sensor
JP2005526333A (en) Method and system for identifying a pressed position on a pressed touch screen using calibration parameters to adjust the mechanical distortion of the touch screen
US20110242010A1 (en) Mobile communication terminal device
US20210064207A1 (en) Electronic device and method for changing condition for determining touch input to be pressure input
CN111192005A (en) Government affair service processing method and device, computer equipment and readable storage medium
CN101601082A (en) Touch detecting system
KR20170135562A (en) Method and electronic device for obtaining touch input
CN111780846B (en) Object weighing method, mobile terminal and computer readable storage medium
CN111142650B (en) Screen brightness adjusting method, screen brightness adjusting device and terminal
CN105928600A (en) Weight measurement method and device
WO2018028072A1 (en) Bend measurement method, device and terminal
CN111475399B (en) Virtual test method and device
CN107506494A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107783932B (en) Information processing method of calculator, mobile terminal and computer readable storage medium
CN110672262B (en) Pressure key threshold calibration method and device, storage medium and electronic equipment
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN104655255A (en) Electronic scale capable of carrying out network communication
CN111273961A (en) Advertisement display method and device and electronic equipment
CN113419646B (en) Calibration method and device of pressure sensing channel and electronic equipment
CN115098468A (en) Flexible data migration method and device, storage medium and electronic equipment
CN109799715B (en) Data receiving method, device and terminal equipment
CN216978107U (en) Electronic scale with two cameras
CN113449948B (en) Service processing method, device, electronic equipment and medium

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
GR01 Patent grant
GR01 Patent grant