A method of measuring the volume of an article resistant to tampering by personnel
By removing irregular parts from the object's outline using image processing and morphological methods, measurement errors caused by human interference are resolved, enabling efficient and accurate measurement of object volume.
Patent Information
- Application Number
- CN202110535180.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-17
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2041-08-05
AI Technical Summary
During the measurement of the volume of an item, human interference can lead to inaccurate measurement data. Traditional methods are time-consuming and prone to false detections and missed detections.
By acquiring an image of an object, removing background information and performing binarization, checking whether the object's outline extends to the boundary of the field of view, using morphological methods to remove irregular parts, issuing warnings based on the degree of interference, and performing volume measurement.
It effectively eliminates human interference, improves the efficiency of measuring the volume of items, reduces the amount of calculation, and ensures the accuracy of measurement results.
Smart Images

Figure CN115359080B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of object volume measurement, in particular to a method for preventing personnel interference in object volume measurement. BACKGROUND
[0002] In object volume measurement, the measured object needs to be carried by personnel. During the process of collecting measurement pictures, if the carrier is collected in the obtained image, the object measurement data will be inaccurate.
[0003] Traditional methods based on skin color, posture or deep learning have increased processing time due to the addition of the recognition target. In addition, since the personnel are generally not all displayed in the picture, the skin color is affected by environmental light and object color, and there are difficulties in detection, as well as the risk of false detection and missed detection. SUMMARY
[0004] In view of the above problems of the prior art, the present application provides a method for preventing personnel interference in object volume measurement, which can effectively improve the efficiency of object volume measurement.
[0005] Specifically, the present application provides a method for preventing personnel interference in object volume measurement, comprising the steps of:
[0006] S1, obtaining an object image, removing background information in the image, and performing binaryzation processing;
[0007] S2, finding the contour of the object, determining whether the contour of the object extends to the field of view boundary, if yes, turning to step S4, if no, turning to step S3;
[0008] S3, performing volume measurement of the object, and turning to step S7;
[0009] S4, removing the irregular part in the contour of the object by a morphological method, if the irregular part can be removed, turning to step S5, if the irregular part cannot be removed, turning to step S6;
[0010] S5, performing volume measurement of the object according to the contour of the object after removing the irregular part, giving a first-level warning, and turning to step S7;
[0011] S6, giving a second-level warning, and turning to step S7;
[0012] S7, ending.
[0013] According to an embodiment of the present application, in step S2, the contour of the object is found, and the contour of the object is compared with the field of view boundary to determine whether the contour of the object extends to the field of view boundary.
[0014] According to one embodiment of the present application, in step S3, before the volume measurement of the article is performed, it is determined whether the profile of the article is regular.
[0015] According to one embodiment of the present application, the determination of whether the profile of the article is regular is based on the concave-convex characteristics of the profile of the article.
[0016] According to one embodiment of the present application, the content of the first level warning in step S5 is to prompt personnel intervention.
[0017] According to one embodiment of the present application, the content of the second level warning in step S6 is to prompt personnel intervention and / or the article is out of the field of view.
[0018] The present application provides a method for volume measurement of an article without personnel interference, which can effectively remove the interference of the hands and other body parts of the auxiliary measurement personnel during the volume measurement, locate the interference area, and according to the interference degree, select the interference part to be removed to obtain the correct measurement result, thereby effectively improving the efficiency of the volume measurement of the article.
[0019] It should be understood that the above general description and the following detailed description of the present application are exemplary and illustrative, and are intended to provide further explanation of the present application described. BRIEF DESCRIPTION OF DRAWINGS
[0020] The accompanying drawings are included to provide a further understanding of the present application, and they are collected and constitute a part of the present application, which illustrate embodiments of the present application, and together with the present specification, serve to explain the principles of the present application.
[0021] In the drawings:
[0022] Figure 1 A flow chart of the method for volume measurement of an article without personnel interference according to one embodiment of the present application is shown.
[0023] Figure 2-1 An image of an article is shown.
[0024] Figure 2-2 is Figure 2-1 The result after removing the background information and performing the binarization processing.
[0025] Figure 3-1 An image of an article with personnel interference is shown, which has been binarized.
[0026] Figure 3-2 is Figure 3-1 The result after removing the irregular part in the profile of the article.
[0027] Figure 4 An image of an article with interference after binarization processing is shown. DETAILED DESCRIPTION
[0028] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict.
[0029] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way limiting of the application or its uses. Based upon a review of the disclosure provided herein, those of ordinary skill in the art will appreciate that many modifications and variations of the following exemplary embodiments are possible in light of the above teachings. Other implementations of this application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein.
[0030] It should be noted that the terms used herein are only intended to describe specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, the singular forms are intended to include the plural forms unless the context clearly indicates otherwise, and it will be further understood that the terms "comprise" and / or "include" when used in this specification, specify the presence of features, steps, operations, devices, components and / or combinations thereof.
[0031] Unless specifically stated otherwise, the relative arrangements of the components and steps exemplified in the embodiments and the numerical expressions and values set forth in the specification do not limit the scope of the present application. It should be understood that the sizes of the various portions shown in the drawings are not necessarily to scale. Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail, but should be considered as part of the description of the application. In all examples shown and discussed herein, any specific value should be interpreted as merely illustrative and not as a limitation. Thus, other examples of the exemplary embodiments can have different values. It should be noted that like reference numerals and letters refer to like items in the following drawings, and thus, once an item is defined in one drawing, it need not be discussed further in subsequent drawings.
[0032] In the description of the present application, it should be understood that the orientation words such as "front, back, up, down, left, right", "horizontal, vertical, perpendicular, horizontal" and "top, bottom" and the like indicated orientation or position relationship are generally based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, without the opposite indication, these orientation words do not indicate and imply that the indicated device or element must have a particular orientation or be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the scope of protection of the present application; the orientation words "inner, outer" refer to the inner and outer relative to the contour of each component.
[0033] For purposes of the description hereinafter, spatially relative terms, such as "above", "below", "up", "down", "between", "within", "left", "right", "front", "back", "upper", "lower", "horizontal", "vertical", "above", "below", "top", "bottom", "under", and the like, can be used herein for ease of description to describe one element's or feature's relationship to another element(s) or feature(s) as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientations depicted in the figures. For example, if a device in the figures is inverted, elements described as "above" or "up" other elements or features would then be oriented "below" or "down" the other elements or features. Thus, the exemplary term "above" can encompass both an orientation of above and below. The device can be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly. The terms "first", "second", "third", etc. can be used herein to describe various elements, components, regions and / or sections but are not meant to be limiting. Unless otherwise set forth, the terms are not meant to be special or have any particular meaning, and are not meant to limit the scope of the present application. In addition, although the terms used in the present application are selected from generally known and used terms, some of the terms mentioned in the description of the present application can be created by the applicant in his or her own judgment. Accordingly, it should be understood that the actual meanings of the terms can be derived through the description of the present application.
[0034] In addition, it should be noted that the use of "first", "second", etc. words to qualify parts is merely for the convenience of distinguishing the corresponding parts, and the above words have no special meaning unless otherwise stated. In addition, although the terms used in the present application are selected from generally known and used terms, some of the terms mentioned in the description of the present application can be created by the applicant in his or her own judgment. Accordingly, it should be understood that the actual meanings of the terms can be derived through the description of the present application.
[0035] Figure 1 A flowchart of a method for measuring the volume of an article against human interference is shown.
[0036] As shown in the figure, a method for measuring the volume of an article against human interference includes the steps of:
[0037] S1, obtaining an article image, removing background information in the image, and performing binaryzation processing.
[0038] S2, finding the outline of the article, and determining whether the outline of the article extends to the boundary of the field of view. If yes, go to step S4, if no, go to step S3. The boundary of the field of view usually refers to the boundary of the entire image containing the article.
[0039] S3, measuring the volume of the article, and going to step S7.
[0040] S4, removing irregular parts in the outline of the article by morphological method. If it can be removed, go to step S5, if it cannot be removed, go to step S6.
[0041] S5, according to the profile of the article after removing the irregular part, the volume measurement of the article is carried out, a first warning is given, and step S7 is entered;
[0042] S6, a second warning is given, and step S7 is entered;
[0043] S7, end.
[0044] Preferably, in step S2, the profile of the article is found, the profile of the article is compared with the boundary of the field of view, and it is judged whether the profile of the article extends to the boundary of the field of view.
[0045] Preferably, in step S3, before the volume measurement of the article is carried out, it is judged whether the profile of the article is regular. It is easily understood that the entry into step S3 indicates that there is no personnel interference, and the profile of the article is irrelevant to the boundary of the field of view. The article with a regular profile is more conducive to the subsequent measurement work. More preferably, whether the profile of the article is regular is judged according to the concave-convex characteristics of the profile of the article.
[0046] Conventionally, if there is no personnel interference, the volume measurement of the article is completed through steps S1 to S3, and no additional calculation amount is generated. The calculation amount of the remaining steps is extremely small, and is less than 1% of the overall measurement calculation amount. Therefore, the method for measuring the volume of the article provided by the application only increases a very small amount of work and can effectively improve the efficiency of the volume measurement of the article.
[0047] Preferably, the content of the first warning in step S5 is to prompt the intervention of personnel, and the system can consider reacquiring the article picture after removing the interference.
[0048] Preferably, the content of the second warning in step S6 is to prompt the intervention of personnel and / or the article exceeding the boundary of the field of view, and the system needs to remove the interference or correctly place the article to reacquire the article picture.
[0049] Embodiment one:
[0050] Figure 2-1 An article image is shown. Figure 2-2 is Figure 2-1 After removing the background information and carrying out the binarization processing, the result is shown. As shown in the figure, the method for measuring the volume of the article provided by the application is executed.
[0051] S1, an article image is acquired, referring to Figure 2-1 . The process of removing the background information in the image and carrying out the binarization processing to present the entire image with obvious black and white effects. The article image after the binarization processing is obtained. Figure 2-2 .
[0052] S2, the profile of the article is found, and it is judged whether the profile of the article extends to the boundary of the field of view. Figure 2-2The outline of the object is the outer edge of the white image, and the field of view boundary is the outer edge of the black square. Obviously, the outline of the object is not in contact with the field of view boundary. Go to step S3.
[0053] S3, perform volume measurement of the object. Go to step S7.
[0054] S7, end.
[0055] Example one is the object volume measurement process without interference.
[0056] Example two:
[0057] Figure 3-1 An image of an object with personnel interference is shown, which has been binarized.
[0058] Figure 3-2 is Figure 3-1 The result after removing the irregular part in the outline of the object. As shown in the figure, a method for measuring the volume of an object provided by the present application is performed to prevent personnel interference.
[0059] S1, obtain the image of the object, remove the background information in the image, and perform binarization processing, refer to Figure 3-1 .
[0060] S2, find the outline of the object, and determine whether the outline of the object extends to the field of view boundary. Figure 3-1 The outline of the object is the outer edge of the intermediate gray image, and the field of view boundary is the outer edge of the black square. Obviously, the outline of the object intersects with the field of view boundary. Go to step S4.
[0061] S4, remove the irregular part in the outline of the object by morphological method, refer to Figure 3-2 , the irregular part in the outline of the object has been removed, go to step S5.
[0062] S5, according to the outline of the object after removing the irregular part, perform volume measurement of the object. Give a first warning to prompt personnel intervention (interference). Go to step S7;
[0063] S7, end.
[0064] Example three:
[0065] Figure 4 An image of an object with interference after binarization is shown. As shown in the figure, a method for measuring the volume of an object provided by the present application is performed to prevent personnel interference.
[0066] S1, obtain the image of the object, remove the background information in the image, and perform binarization processing, refer to Figure 4 .
[0067] S2, find the outline of the object, determine whether the outline of the object extends to the boundary of the field of view. Figure 4 The outline of the object is the outer edge of the intermediate white image, and the boundary of the field of view is the outer edge of the black square. Obviously, the outline of the object intersects with the boundary of the field of view. Go to step S4.
[0068] S4, by morphological method, the irregular part in the outline of the object cannot be removed. Go to step S6.
[0069] S6, give a secondary warning, prompt personnel intervention and / or the object exceeds the boundary of the field of view. Go to step S7;
[0070] S7, end.
[0071] Example three cannot obtain measurement results, and needs to exclude personnel interference or adjust the position of the object to reacquire the object image.
[0072] The present application provides an object volume measurement method for preventing personnel interference, which can effectively detect the interference of the hands and other limb parts of the auxiliary measurement personnel in the volume measurement process. The interference area is located, and a judgment is made according to the interference degree. When the measured object is not seriously blocked, the interference part can be removed and the correct measurement result is obtained, or when the measured target is seriously blocked or placed incorrectly, the system is prompted to reacquire the picture of the measured target.
[0073] It is obvious to those skilled in the art that various modifications and variations can be made to the above exemplary embodiments of the present application without departing from the spirit and scope of the present application. Therefore, it is intended to cover modifications and variations of the present application falling within the scope of the appended claims and their equivalents.
Claims
1. A method for volume measurement of an article against human intervention, comprising the steps of: S1, obtaining an image of the article, removing background information in the image, and performing a binaryzation process; S2, finding a contour of the article, determining whether the contour of the article extends to a field boundary, the field boundary being a boundary of an entire image containing the article, if yes, going to step S4, if no, going to step S3; S3, performing volume measurement of the article, and going to step S7; S4, removing irregular parts in the contour of the article by a morphological method, if yes, going to step S5, if no, going to step S6; S5, performing volume measurement of the article according to the contour of the article with the irregular parts removed, giving a first level warning, and going to step S7; S6, giving a second level warning, and going to step S7; and S7, ending. In step S2, the contour of the article is found, and the contour of the article is compared with the field boundary to determine whether the contour of the article extends to the field boundary. In step S3, before performing volume measurement of the article, it is determined whether the contour of the article is regular. The determination of whether the contour of the article is regular is based on concave-convex characteristics of the contour of the article. The content of the first level warning in step S5 is a prompt of human intervention. The content of the second level warning in step S6 is a prompt of human intervention and / or the article exceeding the field boundary. 2. The object volume measurement method according to claim 1, wherein 3. The object volume measurement method of claim 1, wherein, 4. The object volume measurement method according to claim 3, wherein 5. The method of claim 1, wherein, 6. The method of claim 1, wherein,
Citation Information
Patent Citations
Image character recognition method and device
CN111476243A
Contour completion for augmenting surface reconstructions
US20150228114A1