Data analysis method and system based on weighing mobile phone shell

By implementing a data analysis method based on weighing mobile phone cases in terminal devices, real-time images and weight information are obtained, object categories are determined and allowable weight ranges are generated, which solves the problem of large deviations after long-term use of weighing mobile phone cases, and improves the reliability of measurement results.

CN120045887AInactive Publication Date: 2025-05-27佛山市南海区普睿特科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510525834.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-05-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, weighing mobile phone cases may have large deviations after long-term use, resulting in low reliability of weight measurement results and lack of data review mechanism.

Method used

By implementing a data analysis method based on a weighing mobile phone case in the terminal device, real-time image capture information and measured weight information of the object to be detected, object category information is determined, allowable weight range information is generated, and data trust is evaluated.

Benefits of technology

The reliability of weighing measurement results is improved, allowing users to easily judge whether the obtained weight data is reliable, effectively solving the problem of low reliability in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045887A_ABST
    Figure CN120045887A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of data analysis, and provides a data analysis method and system based on a weighing mobile phone shell, and the method comprises the steps: firstly obtaining real-time shot image information and actually measured weight information of a to-be-detected object, then rapidly determining the object type information of the to-be-detected object, and then carrying out the data analysis of the to-be-detected object based on the object type information. According to the method, the real-time shooting image information of the to-be-detected object is effectively obtained, then the allowable weight range information is generated within an extremely short time based on the real-time shooting image information according to the object category information and the historical weight database, and finally the data credibility evaluation information is effectively generated according to the actually measured weight information and the allowable weight range information. According to the method and the device, a user can easily and intuitively know whether the obtained weight data is reliable or not in an actual use process, so that the user experience is greatly improved, the reliability of the weighing data is substantially improved, and strong and powerful technical support is provided for a scene depending on accurate weighing data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data analysis. Specifically, it relates to a data analysis method and system based on a weighing mobile phone case. Background Art

[0002] In daily life scenarios, such as buying vegetables in a wet market or selecting fruits in a supermarket, a mobile phone case with a weighing function (hereinafter referred to as "weighing mobile phone case") can enable users to quickly know the weight of an item on-site at any time, so as to judge whether the weight meets their expectations.

[0003] Currently, in order to minimize data errors as much as possible, users usually use the weighing mobile phone case to measure an item multiple times. However, during long-term use, there may already be a large deviation in the weighing mobile phone case. At this time, even if the user measures multiple times, the results obtained will still have significant deviations. Due to the lack of a data review mechanism, it is difficult for users to judge whether the data obtained is reliable, and there is a problem of low reliability, which needs to be further improved. Summary of the Invention

[0004] Based on this, the embodiments of this application provide a data analysis method and system based on a weighing mobile phone case to solve the problem of low reliability in the prior art.

[0005] In a first aspect, the embodiments of this application provide a data analysis method based on a weighing mobile phone case, and the method includes: In response to an analysis start instruction, obtain real-time captured image information and measured weight information of the object to be detected; Determine the object category information of the object to be detected according to the real-time captured image information; Based on the object category information, obtain the instant captured image information of the object to be detected; Based on the instant captured image information, generate allowable weight range information according to the object category information and a preset historical weight database; Generate data trustworthiness evaluation information according to the measured weight information and the allowable weight range information.

[0006] The beneficial effects compared with the prior art are as follows: For the data analysis method based on a weighing mobile phone case provided in the embodiments of the present application, the terminal device can first respond to an analysis start instruction, obtain the real-time captured image information and the measured weight information of the object to be detected, then quickly determine the object category information of the object to be detected according to the real-time captured image information, and then based on the object category information, obtain the instant captured image information of the object to be detected again. Then, based on the instant captured image information, according to the object category information and a preset historical weight database, accurately generate the allowable weight range information. Finally, according to the measured weight information and the allowable weight range information, accurately generate the data trustworthiness evaluation information, so that the user can easily know whether the obtained weight data is reliable, effectively improve the reliability of the weighing measurement result, and to a certain extent solve the problem of relatively low current reliability.

[0007] In a second aspect, the embodiments of the present application provide a data analysis system based on a weighing mobile phone case, and the system includes: A real-time captured image information acquisition module: configured to respond to an analysis start instruction and obtain the real-time captured image information and the measured weight information of the object to be detected; An object category information determination module: configured to determine the object category information of the object to be detected according to the real-time captured image information; An instant captured image information acquisition module: configured to obtain the instant captured image information of the object to be detected based on the object category information; An allowable weight range information generation module: configured to generate the allowable weight range information based on the instant captured image information, according to the object category information and a preset historical weight database; A data trustworthiness evaluation information generation module: configured to generate the data trustworthiness evaluation information according to the measured weight information and the allowable weight range information.

[0008] In a third aspect, the embodiments of the present application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method in the first aspect as described above are implemented.

[0009] In a fourth aspect, the embodiments of the present application provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method in the first aspect as described above are implemented.

[0010] It can be understood that the beneficial effects of the second to fourth aspects as described above can refer to the relevant descriptions in the first aspect, and will not be elaborated herein. Description of the Drawings

[0011] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art.

[0012] Figure 1 It is a schematic diagram of a weighing mobile phone case provided by an embodiment of the present application. Among them, Figure 1 Figure (a) in is the first schematic diagram of the weighing mobile phone case, Figure 1 Figure (b) in is the second schematic diagram of the weighing mobile phone case; Figure 2 It is a schematic diagram of a weighing mobile phone case provided by another embodiment of the present application. Among them, Figure 2 Figure (a) in is the first schematic diagram of the weighing mobile phone case including a hook-type weighing module, Figure 2 Figure (b) in is the second schematic diagram of the weighing mobile phone case including a hook-type weighing module; Figure 3 It is a schematic flowchart of a data analysis method provided by an embodiment of the present application; Figure 4 It is a schematic flowchart of step S100 in the data analysis method provided by an embodiment of the present application; Figure 5 It is a schematic flowchart of step S300 in the data analysis method provided by an embodiment of the present application; Figure 6 It is a schematic diagram of a user operation interface provided by an embodiment of the present application. Among them, Figure 6 Figure (a) in is the first schematic diagram of the target image frame information, Figure 6 Figure (b) in is the second schematic diagram of the target image frame information; Figure 7 It is a schematic flowchart after step S300 in the data analysis method provided by an embodiment of the present application; Figure 8 It is a schematic flowchart of step S400 in the data analysis method provided by an embodiment of the present application; Figure 9 It is a schematic flowchart before step S500 in the data analysis method provided by an embodiment of the present application; Figure 10 It is a schematic flowchart of step S500 in the data analysis method provided by an embodiment of the present application; Figure 11 It is a module block diagram of a data analysis system provided by an embodiment of the present application; Figure 12 A schematic diagram of a terminal device provided by an embodiment of the present application. Detailed implementation manners

[0013] In the following description, specific details such as specific system architectures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0014] In the description of the specification and the appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0015] The reference to "one embodiment" or "some embodiments" etc. described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0016] In order to illustrate the technical solutions described in the present application, the following will be described through specific embodiments.

[0017] Please refer to Figure 1 in (a) and (b), and Figure 2 in (a) and (b). The weighing mobile phone case applicable to the embodiments of the present application can be a mobile phone case with a hook weighing structure, powered by the mobile phone, and integrated with an electronic scale function. Moreover, the weighing mobile phone case can also be pre - installed with a micro - infrared ranging sensor at a position close to the camera slot, so that even a mobile phone with relatively backward functions can adapt to this data analysis method. The main body of the mobile phone case can be made of high - strength and wear - resistant plastic material or silicone material; a special accommodation cavity can be pre - opened on the back of the main body of the mobile phone case for installing a hook - type weighing module. The hook - type weighing module can be stably installed at the bottom of the accommodation cavity, used to convert the force signal into an electrical signal, and accurately sense the pressure change received by the hook; the hook can be made of high - strength metal material, with certain toughness and corrosion resistance, and transmit the force accurately to the pressure sensor; and the hook can be designed to be retractable. When the user does not use it, the user can retract the hook into a specific groove of the main body of the mobile phone case to reduce space occupation, and when the user uses it, the user can easily take out the hook from the groove and unfold it.

[0018] In a possible implementation, the weighing mobile phone case may also be preset with a small high-definition liquid crystal display screen to facilitate the user to clearly view the weighing result. The power module of the weighing mobile phone case can reasonably convert the power output by the mobile phone to provide stable and appropriate power support for the entire hook-type weighing module.

[0019] In a possible implementation, the weighing mobile phone case may also have a power module, and the power module includes a power adapter. One end of the power adapter is connected to the charging interface of the mobile phone through a suitable interface, and the other end is connected to the liquid crystal display screen and the pressure sensor of the hook-type weighing module through a circuit. The power adapter has a voltage conversion function and a stable output function, and can reasonably convert the power output by the mobile phone to provide stable and appropriate power support for the entire weighing system. In some possible implementations, the user can optimize the design of the power adapter to improve the power conversion efficiency and reduce the excessive consumption of the mobile phone power.

[0020] To further improve the user experience, the weighing mobile phone case can be added with a Bluetooth function to transmit the weighing result to the application program of the mobile phone, facilitating the user to record and share data.

[0021] Please refer to Figure 3 , Figure 3 is a schematic flowchart of the data analysis method based on the weighing mobile phone case provided by the embodiment of the present application. In this embodiment, the execution subject of the data analysis method is the terminal device. It can be understood that the type of the terminal device may be a mobile phone used by the user for shooting.

[0022] Please refer to Figure 3 , the data analysis method provided by the embodiment of the present application includes but is not limited to the following steps: In S100, in response to the analysis start instruction, obtain the real-time captured image information and the measured weight information of the object to be detected.

[0023] Specifically, the terminal device can first respond to the analysis start instruction, obtain the real-time captured image information of the object to be detected based on the camera of the mobile phone, and at the same time obtain the measured weight information of the object to be detected based on the hook-type weighing module of the weighing mobile phone case, where the object to be detected is used to describe the item to be weighed; the real-time captured image information is used to describe the real-time image obtained by the user when first shooting the object to be detected.

[0024] In some possible implementations, in order to obtain the real-time captured image information and the measured weight information, please refer to Figure 4 , step S100 includes but is not limited to the following steps: In S110, in response to the analysis start instruction, obtain the real-time captured image information of the object to be detected based on the preset supporting software.

[0025] Specifically, the terminal device can, in response to an analysis start instruction, based on a preset supporting software, obtain real-time captured image information of the object to be detected. Herein, the analysis start instruction is used to indicate the start of analyzing the weighing result, and the analysis start instruction can be triggered when the user opens the supporting software. The supporting software is an image capture software that describes setting the camera focal length during shooting to a fixed value, and this fixed value can be preset in advance to ensure that the shooting behavior during each weighing process is based on the same camera parameters.

[0026] In S120, based on the weighing mobile phone case, obtain the measured weight information of the object to be detected.

[0027] Specifically, after the terminal device obtains the real-time captured image information, the terminal device can, based on the weighing mobile phone case, obtain the measured weight information of the object to be detected. Herein, the measured weight information is used to describe the weight data obtained by measuring the object to be detected.

[0028] In S200, based on the real-time captured image information, determine the object category information of the object to be detected.

[0029] Specifically, after the terminal device obtains the real-time captured image information and the measured weight information, the terminal device can quickly determine the object category information of the object to be detected based on the real-time captured image information. Herein, the object category information is used to describe the category of the object to be detected, such as broccoli, cucumber, watermelon, pear, apple, or banana.

[0030] In some possible implementation manners, to effectively determine the category of the object to be detected, step S200 includes but is not limited to the following steps: In S201, based on the real-time captured image information and a preset object detection algorithm, determine the object category information of the object to be detected.

[0031] Specifically, the terminal device can, based on the preset object detection algorithm, detect the item category in the real-time captured image information and quickly determine the object category information of the object to be detected. Herein, the object detection algorithm can be an object detection algorithm based on YOLOv7, an object detection algorithm based on YOLO v8, or an object detection algorithm based on YOLO v9.

[0032] In S300, based on the object category information, obtain the instant captured image information of the object to be detected.

[0033] Specifically, after the terminal device determines the object category information of the object to be detected, the terminal device can, based on the object category information, obtain the instant captured image information of the object to be detected again.

[0034] In some possible implementations, to obtain effective instant capture image information, refer to Figure 5 , step S300 includes but is not limited to the following steps: In S310, based on the object category information and a preset image frame database, determine the target image frame information.

[0035] Without loss of generality, the image frame database stores multiple candidate image frame information and the categories corresponding to each candidate image frame information; the candidate image frame information is used to guide the user to align the object contour of the object to be detected with a specified border when taking a picture of the object to be detected; the target image frame information is used to describe the candidate image frame information whose category is the object category information.

[0036] Specifically, the terminal device can retrieve in the preset image frame database based on the object category information, retrieve the image frame of the same category as the current object to be detected, and effectively determine the target image frame information, where the target image frame information is used to instruct the user to take a picture after aligning the object contour of the object to be detected with the candidate image frame information.

[0037] In S320, send the target image frame information to the user operation interface.

[0038] Specifically, after the terminal device determines the target image frame information, the terminal device can send the target image frame information to the user operation interface. Exemplarily, refer to Figure 6 in (a), when the object to be detected is a watermelon, the terminal device can retrieve the candidate image frame information corresponding to the category of watermelon in the image frame database, determine the candidate image frame information as the target image frame information, and then send the target image frame information to the user operation interface; Figure 6 in (b) represents the target image frame information when the object to be detected is a pear.

[0039] It should be noted that Figure 6 the areas where the hatching lines are located in (a) and (b) of

[0040] both represent the target image frame information. In practical applications, the target image frame information may not be displayed with hatching lines, but with an image frame filled with pure gray as the display.

[0041] Specifically, after the terminal device sends the target image frame information, the terminal device can, in response to a secondary shooting instruction, obtain the instant shooting image information of the object to be detected, and use a preset infrared ranging sensor to obtain the real-time shooting distance information. Here, the secondary shooting instruction is used to instruct the user to shoot the object to be detected again after the target image frame information is displayed on the user operation interface; the instant shooting image information is used to describe the image obtained by the user shooting the object to be detected again after the target image frame information is displayed on the user operation interface; the real-time shooting distance information is used to describe the relative distance between the weighing mobile phone case and the item during this weighing process. In a possible implementation manner, when the terminal device responds to the secondary shooting instruction, the terminal device can activate the infrared ranging sensor based on Bluetooth technology.

[0042] Without loss of generality, the terminal device can also send relevant prompt text to the user operation interface, such as "Please align the outline of the item with the outline within the image frame". When the user aligns the outline of the object to be detected with the inner outline of the target image frame information on the user operation interface, the user can press the virtual shooting button to obtain the instant shooting image information.

[0043] In S400, based on the instant shooting image information, the allowable weight range information is generated according to the object category information and the preset historical weight database.

[0044] Specifically, after the terminal device obtains the instant shooting image information, the terminal device can effectively generate the allowable weight range information based on the instant shooting image information, according to the object category information and the preset historical weight database, thereby effectively defining the theoretical range of reliable data.

[0045] Without loss of generality, the historical weight database can pre-store multiple historical shooting image information, and at the same time store the object category information corresponding to each historical shooting image information, the historical shooting distance information corresponding to each historical shooting image information, the historical contour area information corresponding to each historical shooting image information, and the historical weight information corresponding to each historical shooting image information. Here, the historical shooting image information is used to describe the image taken of the item during the historical weighing process; the object category information is used to describe the category corresponding to the item during the historical weight measurement process; the historical shooting distance information is used to describe the relative distance between the weighing mobile phone case and the item during the historical weighing process; the historical contour area information is used to describe the total area corresponding to the outer edge contour of the item during the historical weight measurement process; the historical weight information is used to describe the weight data corresponding to the item during the historical weight measurement process.

[0046] It should be noted that in each weighing process, the supporting software has already set the camera focal length to the same value, and the target image frame information has guided the user to adjust the shooting distance to the preset distance. Therefore, for items of the same weight, when there is a fault in the weighing module of the weighing mobile phone case, the obtained weighing data will deviate significantly from the historical weighing data. When there is no fault in the weighing module of the weighing mobile phone case, the obtained weighing data will not deviate significantly from the historical weighing data.

[0047] In S500, data trustworthiness evaluation information is generated based on the measured weight information and the allowable weight range information.

[0048] Specifically, after the terminal device generates the allowable weight range information, the terminal device can effectively generate data trustworthiness evaluation information based on the measured weight information and the allowable weight range information, enabling the user to easily know whether the obtained weight data is reliable and effectively improving the reliability of the entire weighing measurement result.

[0049] In some possible implementation manners, for the convenience of subsequent judgment of the reliability of the obtained data, please refer to Figure 7 , after step S300, the method further includes but is not limited to the following steps: In S301, the instant captured image information is grayscale processed to generate grayscale image information.

[0050] Specifically, the terminal device can grayscale process the instant captured image information to generate grayscale image information. Among them, the grayscale image information is used to describe the instant captured image information after grayscale processing. The grayscale processing can adopt existing technologies, such as the average method, the weighted average method, and the maximum value method, so it will not be elaborated.

[0051] In S302, based on the grayscale image information and a preset edge contour extraction algorithm, the real-time outer edge contour information is determined.

[0052] Specifically, after the terminal device generates the grayscale image information, the terminal device can extract the outer edge contour of the item in the grayscale image information based on the preset edge contour extraction algorithm, and quickly determine the real-time outer edge contour information. Among them, the edge contour extraction algorithm can be an edge detection algorithm based on the Laplacian operator or an edge detection algorithm based on the Roberts operator; the real-time outer edge contour information is used to describe the outer edge contour of the object to be detected in the grayscale image information.

[0053] In S303, based on the real-time outer edge contour information and a preset Gaussian polygon area formula, the real-time contour area information is generated.

[0054] Specifically, after the terminal device determines the real-time outer edge contour information, the terminal device can calculate the total area of the real-time outer edge contour information based on a preset Gaussian polygon area formula, effectively generating real-time contour area information, where the real-time contour area information is used to describe the total area corresponding to the outer edge contour of the object to be detected.

[0055] In some possible implementation manners, in order to quickly determine the theoretical range of reliable data, please refer to Figure 8 , step S400 includes but is not limited to the following steps: In S410, based on the real-time shooting distance information and the preset allowable distance deviation value information, generate alternative distance value interval information.

[0056] Specifically, the terminal device can first generate alternative distance value interval information based on the real-time shooting distance information and the preset allowable distance deviation value information, thereby reducing the adverse impact of the user's slight hand tremor during shooting on the final result and better fitting the actual application scenario. Among them, the maximum value of the alternative distance value interval information is the sum of the real-time shooting distance information and the allowable distance deviation value information; the minimum value of the alternative distance value interval information is the difference between the real-time shooting distance information and the allowable distance deviation value information; the allowable distance deviation value information is a fixed value. Exemplarily, the allowable distance deviation value information can be fixed at 2 millimeters or 4 millimeters.

[0057] In S420, based on the instant shooting image information and the alternative distance value interval information, retrieve multiple historical shooting image information in the historical weight database to obtain target shooting image information.

[0058] Specifically, the terminal device can retrieve multiple historical shooting image information in the historical weight database based on the instant shooting image information and the alternative distance value interval information, determine the historical shooting image information that belongs to the same object category as the instant shooting image information, and the historical shooting distance information corresponding to this historical shooting image information also satisfies the condition of being within the alternative distance value interval information, and quickly obtain the target shooting image information. Among them, the object category information of the target shooting image information is the same as the object category information of the instant shooting image information. For example, the object category information of the target shooting image information and the object category information of the instant shooting image information are both watermelons; the historical shooting distance information of the target shooting image information is less than the maximum value of the alternative distance value interval information, and the historical shooting distance information of the target shooting image information is greater than the minimum value of the alternative distance value interval information.

[0059] Exemplarily, since the parameter settings such as the camera focal length have been described in detail in S110 above, they will not be elaborated here; assume that during the historical weighing process, for a Chinese cabbage weighing 2 catties, a first historical captured image information was obtained when the shooting distance was 30 cm, and during another historical weighing process, for a Chinese cabbage weighing 5 catties, a second historical captured image information was obtained when the shooting distance was 50 cm. Then, during the current weighing process of the Chinese cabbage, if the allowable distance deviation value information is 4 mm and the real-time shooting distance is 29.7 cm, the terminal device can determine that the first historical captured image information is the target captured image information; if the allowable distance deviation value information is 4 mm and the real-time shooting distance is 49.6 cm, the terminal device can determine that the second historical captured image information is the target captured image information. It should be noted again that when the weighing module of the weighing mobile phone case is free of faults, the measured weight information should be close to or equal to the historical weight information of the target captured image information.

[0060] In S430, based on the real-time contour area information and the historical contour area information corresponding to the target captured image information, generate area ratio information.

[0061] Specifically, after the terminal device obtains the target captured image information, the terminal device can generate area ratio information according to the quotient of the real-time contour area information divided by the historical contour area information corresponding to the target captured image information, where the area ratio information is used to describe the ratio between the real-time contour area information and the historical contour area information.

[0062] In S440, based on the area ratio information and the historical weight information, generate reasonable weight information.

[0063] Specifically, after the terminal device generates the area ratio information, the terminal device can generate reasonable weight information according to the product of the area ratio information multiplied by the historical weight information, where the reasonable weight information is used to describe the theoretical weight of the object to be detected determined based on the real-time contour area information.

[0064] In S450, based on the reasonable weight information and the preset allowable deviation value information, generate allowable weight range information.

[0065] Specifically, after the terminal device generates the reasonable weight information, the terminal device can generate allowable weight range information according to the reasonable weight information and the preset allowable deviation value information, where the specific value of the allowable deviation value information can be preset based on the range of the hook-type weighing module. The maximum value of the allowable weight range information can be the sum of the reasonable weight information and the allowable deviation value information, and the minimum value of the allowable weight range information can be the difference between the reasonable weight information and the allowable deviation value information.

[0066] In some possible implementations, to generate effective data trustworthiness evaluation information, please refer to Figure 9 , before step S500, the method further includes but is not limited to the following steps: In S501, based on a preset screening time period, obtain the cumulative usage times information, the maximum weighing value arrival times information, and the calibration interval information of the weighing phone case.

[0067] Specifically, the terminal device can obtain the cumulative usage times information, the maximum weighing value arrival times information, and the calibration interval information of the weighing phone case based on a preset screening time period. Among them, the screening time period can be the time period between one month before the measurement time; the cumulative usage times information is used to describe the total number of times the hook-type weighing module is used within the screening time period; the maximum weighing value arrival times information is used to describe the total number of times the hook-type weighing module reaches the maximum weighing value within the screening time period; the calibration interval information is used to describe the calibration time interval of the weighing phone case within the screening time period. Exemplarily, when the calibration time interval of the weighing phone case is 23 days, the calibration interval information can be 23.

[0068] In S502, generate weight difference information according to the difference between the measured weight information and the maximum value of the allowable weight range information.

[0069] Specifically, after the terminal device obtains the cumulative usage times information, the maximum weighing value arrival times information, and the calibration interval information, the terminal device can generate weight difference information according to the difference obtained by subtracting the maximum value of the allowable weight range information from the measured weight information.

[0070] Correspondingly, please refer to Figure 10 , step S500 includes but is not limited to the following steps: In S510, compare the measured weight information and the allowable weight range information.

[0071] Specifically, the terminal device can compare the measured weight information and the allowable weight range information.

[0072] In S520, if the measured weight information is within the allowable weight range information, generate high-trust information.

[0073] Specifically, if the measured weight information is within the allowable weight range information, the terminal device can generate high-trust information, where the high-trust information is used to describe that the weighing measurement result has high reliability and the user can highly trust the weighing measurement result.

[0074] In S530, if the measured weight information is outside the allowable weight range information, data trustworthiness evaluation information is determined according to the cumulative usage times information, the maximum weighing value arrival times information, the calibration interval information, the weight difference information, the allowable deviation value information, and a preset trustworthiness evaluation function.

[0075] Specifically, if the measured weight information is outside the allowable weight range information, it indicates that the weighing measurement result does not have high reliability. In order to enable the user to further know the credibility of the weighing measurement result, the terminal device can effectively determine the data trustworthiness evaluation information according to the cumulative usage times information, the maximum weighing value arrival times information, the calibration interval information, the weight difference information, the allowable deviation value information, and a preset trustworthiness evaluation function.

[0076] In some possible implementation manners, in order to determine effective data trustworthiness evaluation information, step S530 includes but is not limited to the following steps: In S531, if the measured weight information is outside the allowable weight range information, the cumulative usage times information, the maximum weighing value arrival times information, the calibration interval information, the weight difference information, and the allowable deviation value information are input into a preset trustworthiness evaluation function to determine the data trustworthiness evaluation information.

[0077] Specifically, if the measured weight information is outside the allowable weight range information, the terminal device can input the cumulative usage times information, the maximum weighing value arrival times information, the calibration interval information, the weight difference information, and the allowable deviation value information into a preset trustworthiness evaluation function to effectively determine the data trustworthiness evaluation information.

[0078] In some possible implementation manners, the above trustworthiness evaluation function can be: , In the formula, represents the data trustworthiness evaluation information. Among them, the data trustworthiness evaluation information includes medium trust information or low trust information. The medium trust information is used to describe that the weighing measurement result has medium reliability, and the user can have medium trust in the weighing measurement result. The credibility of the data corresponding to the medium trust information is less than the credibility of the data corresponding to the high trust information; the low trust information is used to describe that the weighing measurement result has low reliability, and the user can have low trust in the weighing measurement result. The credibility of the data corresponding to the low trust information is less than the credibility of the data corresponding to the medium trust information.

[0079] In the formula, represents the comprehensive quantization information of trustworthiness; represents the cumulative usage times information; Indicates the information on the number of times the maximum weighing value is reached. To meet more application scenarios, considering that the weighing mobile phone case may be accidentally touched by children or other people, resulting in an abnormally high value of the information on the number of times the maximum weighing value is reached. Even if the value of the information on the number of times the maximum weighing value is reached is the optional minimum value, it is still possible to calculate the data trust degree evaluation information specifically for moderately trusted information in subsequent calculations. However, when the value of the information on the number of times the maximum weighing value is reached is the optional minimum value, the obtained comprehensive quantitative information on trust degree will be much smaller than when the value of the information on the number of times the maximum weighing value is reached is the optional maximum value, which is conducive to the user to conduct a deeper analysis of the specific measurement results.

[0080] In the formula, Indicates the calibration interval information; Indicates the weight difference information; Indicates the allowable deviation value information.

[0081] Exemplarily, when in the screening time period, the total number of times the hook-type weighing module is used is 935 times, the total number of times the hook-type weighing module reaches the maximum weighing value is 15 times, the calibration time interval of the weighing mobile phone case is 42 days, the difference between the measured weight information and the allowable weight range information is 50 grams, and the allowable deviation value during the measurement process is 5 grams, The specific value of can be 935, The value of is 8.49, The specific value of can be 15, The value of is 5.54, The specific value of can be 42, The value of is 4.97, The specific value of can be 50, The specific value of can be 5, The value of is 15.98, , that is The specific value of is 16.03, and the specific value of the data trust degree evaluation information is mildly trusted information, indicating that the credibility of this measurement result is relatively low.

[0082] Exemplarily, when in the screening time period, the total number of times the hook-type weighing module is used is 284 times, the total number of times the hook-type weighing module reaches the maximum weighing value is 3 times, the calibration time interval of the weighing mobile phone case is 23 days, the difference between the measured weight information and the allowable weight range information is 5.5 grams, and the allowable deviation value during the measurement process is 5 grams, The specific value of can be 284, The value of is 7.42, The specific value of can be 3, The value of is 4.49, The specific value of can be 23, takes the value of 3.98, the specific value of can be 5, takes the value of 13.26, , that is, the specific value of

[0083] The implementation principle of the data analysis method based on the weighing mobile phone case in the embodiments of the present application is as follows: The terminal device can first respond to the analysis start instruction, obtain the real-time captured image information and the measured weight information of the object to be detected, then accurately determine the object category information of the object to be detected according to the real-time captured image information, and then effectively obtain the instant captured image information of the object to be detected based on the object category information. Then, based on the instant captured image information, according to the object category information and the preset historical weight database, accurately generate the allowable weight range information. Finally, according to the measured weight information and the allowable weight range information, accurately generate the data trust degree evaluation information, so that the user can easily know whether the obtained weight data is reliable, effectively improving the reliability of the weighing measurement result.

[0084] It should be noted that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0085] The embodiments of the present application also provide a data analysis system based on the weighing mobile phone case. For the convenience of description, only the parts related to the present application are shown, as Figure 11 shown. The system 110 includes: Real-time captured image information acquisition module 111: used to respond to the analysis start instruction and obtain the real-time captured image information and the measured weight information of the object to be detected; Object category information determination module 112: used to determine the object category information of the object to be detected according to the real-time captured image information; Instant captured image information acquisition module 113: used to obtain the instant captured image information of the object to be detected based on the object category information; Allowable weight range information generation module 114: used to generate the allowable weight range information based on the instant captured image information, according to the object category information and the preset historical weight database; Data trust degree evaluation information generation module 115: used to generate the data trust degree evaluation information according to the measured weight information and the allowable weight range information.

[0086] Optionally, the above real-time captured image information acquisition module 111 includes: A real-time captured image information acquisition sub-module: configured to, in response to an analysis start instruction, acquire real-time captured image information of an object to be detected based on a preset supporting software, where the supporting software is used to describe an image capturing software with the focal length set to a fixed value; An actual measured weight information acquisition sub-module: configured to acquire actual measured weight information of the object to be detected based on a weighing mobile phone case; Optionally, the above object category information determination module 112 includes: An object category information determination sub-module: configured to determine object category information of the object to be detected according to the real-time captured image information and a preset object detection algorithm, where the object category information is used to describe the category of the object to be detected; Optionally, the above instant captured image information acquisition module 113 includes: A target image frame information determination sub-module: configured to determine target image frame information based on the object category information and a preset image frame database, where the image frame database stores multiple candidate image frame information and the categories corresponding to each candidate image frame information, and the target image frame information is used to describe the candidate image frame information with the category being the object category information, and the target image frame information is used to instruct the user to align the object contour of the object to be detected with the candidate image frame information and then capture an image; A target image frame information sending sub-module: configured to send the target image frame information to a user operation interface; An instant captured image information acquisition sub-module: configured to, in response to a secondary capture instruction, acquire real-time capture distance information and instant captured image information of the object to be detected; Optionally, the system 110 further includes: A grayscale image information generation module: configured to perform grayscale processing on the instant captured image information to generate grayscale image information; A real-time outer edge contour information determination module: configured to determine real-time outer edge contour information according to the grayscale image information and a preset edge contour extraction algorithm; A real-time contour area information generation module: configured to generate real-time contour area information according to the real-time outer edge contour information and a preset Gaussian polygon area formula.

[0087] Optionally, the historical weight database stores multiple historical captured image information, the object category information corresponding to each historical captured image information, the historical capture distance information corresponding to each historical captured image information, the historical contour area information corresponding to each historical captured image information, and the historical weight information corresponding to each historical captured image information; the above allowable weight range information generation module 114 includes: Alternative distance value interval information generation module: used to generate alternative distance value interval information according to the real-time shooting distance information and the preset allowable distance deviation value information, where the maximum value of the alternative distance value interval information is the sum of the real-time shooting distance information and the allowable distance deviation value information, and the minimum value of the alternative distance value interval information is the difference between the real-time shooting distance information and the allowable distance deviation value information; Target shooting image information acquisition sub-module: used to retrieve multiple historical shooting image information in the historical weight database based on the instant shooting image information and the alternative distance value interval information, and obtain the target shooting image information, where the object category information of the target shooting image information is the same as the object category information of the instant shooting image information, the historical shooting distance information of the target shooting image information is less than the maximum value of the alternative distance value interval information, and the historical shooting distance information of the target shooting image information is greater than the minimum value of the alternative distance value interval information; Weight ratio information generation sub-module: used to generate area ratio information according to the historical contour area information corresponding to the instant shooting image information and the target shooting image information; Reasonable weight information generation sub-module: used to generate reasonable weight information according to the area ratio information and the historical weight information; Allowable weight range information generation sub-module: used to generate allowable weight range information according to the reasonable weight information and the preset allowable deviation value information, where the maximum value of the allowable weight range information is the sum of the reasonable weight information and the allowable deviation value information, and the minimum value of the allowable weight range information is the difference between the reasonable weight information and the allowable deviation value information.

[0088] Optionally, the system 110 further includes: Cumulative usage times information acquisition module: used to obtain the cumulative usage times information, maximum weighing value arrival times information and calibration interval information of the weighing mobile phone case based on the preset screening time period; Weight difference information generation module: used to generate weight difference information according to the difference between the measured weight information and the maximum value of the allowable weight range information; Correspondingly, the above data trustworthiness evaluation information generation module 115 includes: Measured weight information comparison sub-module: used to compare the measured weight information and the allowable weight range information; High-trust information generation sub-module: used to generate high-trust information if the measured weight information is within the allowable weight range information; Data trustworthiness evaluation information determination sub-module: used to determine the data trustworthiness evaluation information according to the cumulative usage times information, maximum weighing value arrival times information, calibration interval information, weight difference information, allowable deviation value information and the preset trustworthiness evaluation function if the measured weight information is outside the allowable weight range information.

[0089] Optionally, the above data trustworthiness evaluation information determination sub-module includes: Data trustworthiness evaluation information determination unit: If the measured weight information is outside the allowable weight range information, the cumulative usage times information, the maximum weighing value arrival times information, the calibration interval information, the weight difference information, and the allowable deviation value information are input into a preset trustworthiness evaluation function to determine the data trustworthiness evaluation information.

[0090] It should be noted that for the information interaction, execution process, etc. between the above modules, since they are based on the same concept as the method embodiment of the present application, for their specific functions and the technical effects brought, reference can be specifically made to the method embodiment part, and details will not be elaborated here.

[0091] The embodiment of the present application further provides a terminal device, such as Figure 12 shown. The terminal device 120 of this embodiment includes: a processor 121, a memory 122, and a computer program 123 stored in the memory 122 and operable on the processor 121. When the processor 121 executes the computer program 123, it implements the steps in the above method embodiment of data analysis, such as Figure 1 the steps S100 to S500 shown; or, when the processor 121 executes the computer program 123, it implements the functions of each module in the above device, such as Figure 11 the functions of the modules 111 to 115 shown.

[0092] The terminal device 120 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device 120 includes but is not limited to a processor 121 and a memory 122. Those skilled in the art can understand that Figure 12 it is only an example of the terminal device 120 and does not constitute a limitation on the terminal device 120. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the terminal device 120 may further include input / output devices, network access devices, a bus, etc.

[0093] Among them, the processor 121 may be a Central Processing Unit (CPU), or 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.; the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0094] The memory 122 may be an internal storage unit of the terminal device 120, such as the hard disk or memory of the terminal device 120. The memory 122 may also be an external storage device of the terminal device 120, such as a plug-in hard disk equipped on the terminal device 120, a Smart Media Card (SMC), a Secure Digital (SD) card, a FlashCard, etc.; further, the memory 122 may also include both the internal storage unit and the external storage device of the terminal device 120. The memory 122 may also store the computer program 123 and other programs and data required by the terminal device 120. The memory 122 may also be used to temporarily store the data that has been output or will be output.

[0095] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, which when executed by a processor, can implement the steps of the above-mentioned method embodiments. Among them, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, etc.; the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.

[0096] The above are all the preferred embodiments of the present application, and the protection scope of the present application is not limited thereby. Therefore, all equivalent changes made according to the method, principle, and structure of the present application should be covered within the protection scope of the present application.

Claims

1. A data analysis method based on weighing mobile phone cases, characterized in that: The method comprises: In response to the analysis start instruction, acquiring real-time image information and measured weight information of the object to be detected; Determining object category information of the object to be detected according to the real-time captured image information; Based on the object category information, acquiring real-time captured image information of the object to be detected; Based on the instantaneous captured image information, generating permissible weight range information according to the object category information and a preset historical weight database; Data confidence evaluation information is generated based on the measured weight information and the allowable weight range information.

2. The method according to claim 1, characterized in that The step of obtaining real-time image information and measured weight information of the object to be detected in response to the analysis start instruction includes: In response to the analysis start instruction, based on the preset supporting software, real-time captured image information of the object to be detected is acquired, wherein the supporting software is used to describe image capturing software that sets the focal length to a fixed value; Based on the weighing mobile phone case, obtaining the measured weight information of the object to be detected; Correspondingly, determining the object category information of the object to be detected according to the real-time captured image information includes: Determine object category information of the object to be detected according to the real-time captured image information and a preset object detection algorithm, wherein the object category information is used to describe the category of the object to be detected; Accordingly, the acquiring of the real-time captured image information of the object to be detected based on the object category information includes: Based on the object category information and a preset image frame database, target image frame information is determined, wherein the image frame database stores a plurality of to-be-selected image frame information and categories corresponding to each of the to-be-selected image frame information, the target image frame information is used to describe the to-be-selected image frame information whose category is object category information, and the target image frame information is used to instruct the user to align the object contour of the to-be-detected object with the to-be-selected image frame information before shooting; Sending the target image frame information to a user operation interface; In response to the secondary shooting instruction, acquiring real-time shooting distance information and instant shooting image information of the object to be detected; Accordingly, after acquiring the real-time captured image information of the object to be detected based on the object category information, the method further includes: Performing grayscale processing on the instant captured image information to generate grayscale image information; Determine real-time outer edge contour information according to the grayscale image information and a preset edge contour extraction algorithm; The real-time contour region area information is generated according to the real-time outer edge contour information and a preset Gaussian polygon area formula.

3. The method according to claim 2, characterized in that The historical weight database stores a plurality of historical captured image information, object category information corresponding to each of the historical captured image information, historical captured distance information corresponding to each of the historical captured image information, historical contour area information corresponding to each of the historical captured image information, and historical weight information corresponding to each of the historical captured image information; The generating of the allowable weight range information based on the instant captured image information, according to the object category information and a preset historical weight database, includes: Generate candidate distance value interval information according to the real-time shooting distance information and the preset allowable distance deviation value information, wherein the maximum value of the candidate distance value interval information is the sum of the real-time shooting distance information and the allowable distance deviation value information, and the minimum value of the candidate distance value interval information is the difference between the real-time shooting distance information and the allowable distance deviation value information; Based on the instantaneous captured image information and the candidate distance value interval information, multiple historical captured image information in the historical weight database are retrieved to obtain target captured image information, wherein the object category information of the target captured image information is the same as the object category information of the instantaneous captured image information, the historical captured distance information of the target captured image information is less than the maximum value of the candidate distance value interval information, and the historical captured distance information of the target captured image information is greater than the minimum value of the candidate distance value interval information; Generate area ratio information according to the historical contour area area information corresponding to the instant captured image information and the target captured image information; generating reasonable weight information according to the regional ratio information and the historical weight information; The allowable weight range information is generated based on the reasonable weight information and the preset allowable deviation value information, wherein the maximum value of the allowable weight range information is the sum of the reasonable weight information and the allowable deviation value information, and the minimum value of the allowable weight range information is the difference between the reasonable weight information and the allowable deviation value information.

4. The method according to claim 3, characterized in that Before generating data trust evaluation information according to the measured weight information and the allowable weight range information, the method further includes: Based on the preset screening time period, the cumulative usage information of the weighing mobile phone case, the maximum weighing value reaching number of times and the calibration interval information are obtained; generating weight difference information according to a difference between the measured weight information and a maximum value of the allowable weight range information; Accordingly, the data trust evaluation information includes highly trusted information, moderately trusted information, or slightly trusted information; and generating the data trust evaluation information according to the measured weight information and the allowable weight range information includes: comparing the measured weight information with the allowable weight range information; If the measured weight information is within the allowable weight range information, generating the highly trusted information; If the measured weight information is outside the allowable weight range information, the data trust evaluation information is determined based on the cumulative usage times information, the maximum weighing value arrival times information, the calibration interval information, the weight difference information, the allowable deviation value information and a preset trust evaluation function.

5. The method according to claim 4, characterized in that If the measured weight information is outside the allowable weight range information, the data trust evaluation information is determined according to the accumulated usage times information, the maximum weighing value reaching times information, the calibration interval information, the weight difference information, the allowable deviation value information and a preset trust evaluation function, including: If the measured weight information is outside the allowable weight range information, the accumulated usage times information, the maximum weighing value reaching times information, the calibration interval information, the weight difference information and the allowable deviation value information are input into a preset trust evaluation function to determine the data trust evaluation information; Wherein, the trust evaluation function is: , In the formula, is the data trust evaluation information, Comprehensive quantitative information for trust, is the cumulative usage information, is the information of the number of times the maximum weighing value is reached, is the calibration interval information, is the weight difference information, is the allowable deviation value information.

6. A data analysis system based on weighing mobile phone cases, characterized in that: The system comprises: A real-time image information acquisition module: used to obtain real-time image information and measured weight information of the object to be detected in response to an analysis start instruction; An object category information determination module is used to determine the object category information of the object to be detected according to the real-time captured image information; A real-time image information acquisition module: used to acquire the real-time image information of the object to be detected based on the object category information; An allowable weight range information generating module is used to generate the allowable weight range information based on the instant captured image information, the object category information and a preset historical weight database; Data confidence evaluation information generation module: used to generate data confidence evaluation information according to the measured weight information and the allowable weight range information.

7. The system according to claim 6, characterized in that The object category information determination module includes: The object category information determination submodule is used to determine the object category information of the object to be detected according to the real-time captured image information and a preset object detection algorithm, wherein the object category information is used to describe the category of the object to be detected.

8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Intelligent control method and system based on non-woven fabric fallen fiber testing equipment and medium

    CN120445892A