A visual detection method and system for jean bone foreign matter impurities

By applying grazing polarized light with opposite directions to the surface of the cowboy bone, and combining contour and shadow relationships, the problems of false detection and missed detection in foreign object detection of cowboy bones are solved, and high-accuracy foreign object identification and subsequent processing control are achieved.

CN123175945APending Publication Date: 2026-11-27SHANDONG NIU LAIXI FOOD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611417554.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing visual inspection technologies struggle to accurately distinguish foreign objects from inherent structures on the surface of cowboy bones, such as bone marrow pores, saw marks, and fat folds, leading to false positives or false negatives.

Method used

By applying grazing polarized light in opposite directions, and combining the preservation of the outline of the patch to be judged, the direction reversal relationship of the projected shadow, and the interruption relationship of the texture of the bearing surface, evidence of contact relationship is formed to distinguish foreign objects from the inherent structure of the cowboy bone.

Benefits of technology

It improves the accuracy of foreign object detection, reduces the probability of false detection and missed detection, ensures the stability of detection results, and supports effective control of subsequent packaging and re-inspection operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175945A_ABST
    Figure CN123175945A_ABST
Patent Text Reader

Abstract

The application discloses a kind of jeans bone foreign matter impurity visual inspection method and system, it is related to visual inspection technical field, including for band saw transverse and before packing jeans bone, according to bone section, bone marrow cavity, saw cut and bone meat junction establish bone source structure area and register abnormal plaque;Opposite direction grazing polarized light is applied to the plaque to be judged, the profile retention, shadow reversal and bearing surface texture interruption relationship are compared, contact evidence is formed;Accordingly, foreign matter and inherent structure are distinguished, and foreign matter position and review level are output.The application identifies foreign matter by the grazing polarized light of opposite direction, judges the profile retention, shadow direction reversal and bearing surface texture interruption relationship of the plaque to be judged in conjunction, identifies foreign matter from the contact relationship of plaque and bone section, bone marrow cavity wall or fat surface, effectively distinguishes foreign matter and bone marrow hole, saw cut and fat wrinkle, reduces false detection and omission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of visual inspection technology, and in particular to a visual inspection method and system for foreign matter and impurities in cowboy bones. Background Technology

[0002] Short ribs are typically made by cross-cutting bone-in beef with a band saw. The cut surface contains various structures, including bone cuts, bone marrow cavities, the junction of bone and meat, fat folds, and continuous saw marks. During band saw cutting, transportation, and pre-packaging processing, the surface of the short ribs may be contaminated with bone fragments, packaging material scraps, metal shavings, or other foreign matter. Therefore, visual inspection is necessary before packaging.

[0003] Existing visual inspection methods typically identify foreign objects based on differences in color, grayscale, contour, area, or texture of the area to be inspected. However, the medullary fossa, serrated grooves, fracture edges, and fat surface reflections of cowboy bone can also form isolated patches, dark areas, or discontinuous edges; at the same time, foreign objects embedded in the medullary cavity or serrated grooves can easily blend into the texture of the surrounding bone tissue. Therefore, relying solely on appearance differences in a single image makes it difficult to determine whether the patch belongs to the inherent structure of the cowboy bone or is a foreign object attached to or embedded in its surface, easily leading to false positives or false negatives, affecting the accuracy of cowboy bone foreign object detection. To address this, we propose a visual inspection method and system for cowboy bone foreign object impurities. Summary of the Invention

[0004] The purpose of this invention is to provide a visual detection method and system for foreign matter impurities in cowboy bones, so as to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a visual detection method for foreign matter impurities in cowboy bone, comprising: For the ribs after cross-cutting with a band saw and before packaging, a bone source structure area is established based on the outer edge of the bone cut surface, the boundary of the medullary cavity, the continuous direction of the saw cut, and the relationship between bone and flesh. Patches located in the bone source structure area and its adjacent fat folds that are discontinuous with the surrounding texture are registered as patches to be judged. Grazing polarized light in a first direction and grazing polarized light in a second direction opposite to the first direction are applied sequentially to the same patch to be judged to obtain the response sequence of the patch outline, occlusion edge and projected shadow as the illumination direction changes; Using the bone section, bone marrow cavity wall, or muscular fat surface where the plaque to be judged is located as the bearing surface, the preservation of the outline of the plaque to be judged, the direction reversal relationship of the projected shadow relative to the outline, and the interruption relationship of the bearing surface texture at the outline in the response sequence are compared to form evidence of contact relationship. When the outline of the patch to be judged remains under continuous illumination, the projected shadow is reversed to the opposite sides of the outline with the direction of illumination, and the texture of the bearing surface is blocked at at least one side of the outline, the patch to be judged is identified as a foreign object or impurity located on the surface of the cowboy bone; when the patch to be judged remains continuous with the medullary pore, saw marks, or fat texture and there is no independent shadow direction reversal relationship, it is classified as an inherent structure of the cowboy bone. Based on the outline coverage of foreign objects, their location on the bearing surface, and evidence of contact relationships, the location of the foreign object and the level of re-inspection are output.

[0006] Preferably, before forming the contact relationship evidence, the bearing surface type of the plaque to be judged is determined from the bone section, the bone marrow cavity wall and the surface of the flesh and fat, respectively; when the plaque to be judged crosses two bearing surfaces, a local judgment area is established by the overlap boundary between its outline and each bearing surface, and it is prohibited to directly use the natural height difference formed by crossing the bone and flesh junction as evidence of foreign body protrusion.

[0007] Preferably, after excluding the medullary foramen, fracture edge, and hemorrhage area from the bone cut surface, the main extension direction of the continuous sawing groove is extracted; the incident directions of the first direction grazing polarized light and the second direction grazing polarized light are respectively located on both sides of the main extension direction, and both intersect with the main extension direction, so that the same sawing groove produces a continuous change of light and dark along the groove under two illuminations, while the independent patches on the sawing groove produce a reversal of the shadow direction around their own contour.

[0008] Preferably, before comparing the response sequence, the curvature inflection point of the outer edge of the bone section, the bifurcation point of the medullary cavity, and the stable segment of the osteosarcoma junction are used as registration references to perform local registration of the images obtained from the two illuminations; during registration, the edge of the patch to be judged itself is not used as a reference, and the relative displacement between the patch to be judged and its projected shadow is preserved, so as to avoid mistaking the transport offset or slight rotation of the cowboy bone as a reversal of the shadow direction.

[0009] Preferably, the evidence of contact relationship includes: identifying the light-facing edge, the backlight edge, and the dark area connected to the backlight edge of the patch to be judged in each illumination image; confirming that the direction of the projected shadow has reversed only when the dark areas in the two illuminations are located on opposite sides of the outline of the patch to be judged, and there is a continuous contact segment between the dark area and the outline; if the dark area always extends along the saw marks, the inner wall of the medullary cavity, or the fat folds, it is regarded as the shadow formed by the inherent concavity of the bearing surface.

[0010] Preferably, for the plaque to be judged located in the medullary cavity or serration, the occlusion relationship is determined according to the connection order between the dark area and the cavity wall or serration wall; when the dark area connects to the first side cavity wall or serration wall under the first direction illumination, and the dark area connects to the opposite second side cavity wall or serration wall under the second direction illumination, and the outline of the plaque to be judged occludes the texture of the cavity bottom or serration bottom under both illuminations, the plaque to be judged is determined to be a foreign object or impurity embedded in the recess; when the dark area only shrinks or expands into the recess and the texture of the cavity bottom is continuous, it is determined to be an inherent pore or serration.

[0011] Preferably, a co-polarized image and a cross-polarized image are obtained for each direction of grazing polarized light; when the patch to be judged forms a bright area in the co-polarized image, but the outline disappears, the surface texture is restored, and no projected shadow with the reversed direction is formed in the cross-polarized image, it is judged as specular reflection of a water film or fat surface; when the cross-polarized image still maintains an independent outline and blocks the surface texture, its foreign object candidate status is retained.

[0012] Preferably, when the patch to be judged simultaneously meets the conditions of inherent structural continuity and foreign object contour preservation, re-illumination is performed in a different set of opposite glancing directions from the previous incident orientation, and contact relationship evidence is re-established; foreign objects are confirmed only when independent contours, shadow direction reversal, and bearing surface texture occlusion appear in both sets of illumination orientations; if the direction reversal only appears with a certain set of illumination orientations and is consistent with the main extension direction of the sawing pattern, the patch to be judged is transferred to the sawing pattern verification.

[0013] Preferably, the re-examination level is determined based on the evidence of contact relationship as follows: foreign objects embedded in the medullary cavity, saw groove, or bone-meat junction and confirmed by both sets of illumination directions are classified as blocking packaging level; foreign objects located on a flat meat-fat surface with complete outline and identifiable boundaries are classified as point removal level; and the plaque to be judged that only retains its outline but lacks a stable shadow direction reversal relationship is classified as flipping re-examination level, and its position relative to the outer edge of the bone section and the bifurcation point of the medullary cavity is recorded.

[0014] A visual inspection system for foreign objects and impurities in cowboy bones, used to perform the visual inspection method for foreign objects and impurities in cowboy bones as described above, comprising: The structural region determination module is used to establish bone-derived structural regions based on the outer edge of the bone section, the boundary of the medullary cavity, the continuous direction of the saw marks, and the relationship between bone and muscle, and to register the plaques to be judged; The sequential illumination imaging module includes a first grazing polarization light source, a second grazing polarization light source, and an image acquisition device disposed on both sides of the imaging station, for acquiring the response sequence of the same patch to be judged under opposite illumination directions; The bearing surface registration module is used to determine the bone section, medullary cavity wall or muscular fat surface where the plaque to be judged is located, and to perform local registration of the response sequence based on the inherent structural characteristics of cowboy bone; The contact relationship analysis module is used to compare the preservation of the outline of the patch to be judged, the directional reversal relationship of the projected shadow relative to the outline, and the interruption relationship of the texture of the bearing surface to form contact relationship evidence. The foreign object detection module is used to distinguish foreign objects, impurities, the inherent structure of the cowboy bone, and specular reflection based on the contact relationship evidence, and output the location of the foreign object. The re-inspection control module is used to switch to another set of opposite glancing directions to perform re-illumination when there is a conflict of evidence, and output the re-inspection level according to the bearing surface where the foreign object is located and the re-illumination result.

[0015] The technical effects and advantages of this invention are as follows: This invention applies grazing polarized light in opposite directions to the same plaque to be identified, and jointly judges the retention of the plaque's outline under continuous illumination, the directional reversal of the projected shadow relative to the outline, and the interruption of the texture of the bearing surface. It can identify foreign objects from the actual contact and occlusion relationship between the plaque to be identified and the bone cut surface, medullary cavity wall, or fat surface, rather than judging solely based on color, grayscale, or a single outline. This effectively distinguishes surface foreign objects from the inherent structures of cowboy bones such as medullary pores, saw marks, and fat folds, avoiding false detection and missed detection.

[0016] This invention identifies the bearing surface type for the bone section, the medullary cavity wall, and the surface of the meat and fat, and establishes local judgment areas when the plaque to be judged crosses different bearing surfaces. At the same time, it uses the inherent structural features of the calf bone to complete the local registration of multiple illumination images, which can avoid misidentifying the natural height difference at the bone-meat junction, transport offset, or slight rotation of the calf bone as foreign object protrusions or shadow reversals, and improve the stability of detection results under different placement postures and complex surface conditions.

[0017] This invention eliminates specular reflections from water films and fat surfaces using copolarized and crosspolarized images, and employs another set of opposite grazing directions for re-illumination when there are conflicting evidence of contact relationships. This can further confirm foreign bodies embedded in the medullary cavity, saw groove, or bone-muscle junction. At the same time, it classifies the levels of blocking packaging, targeted rejection, and flipping re-inspection according to the location of the foreign body and the completeness of the evidence, which is conducive to achieving corresponding control of foreign body detection results and subsequent packaging, rejection, and re-inspection operations. Attached Figure Description

[0018] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention, but do not constitute a limitation thereof. In the drawings: Figure 1 This is the main flowchart of the visual detection of foreign objects and impurities in cowboy bones according to the present invention; Figure 2 This is a flowchart illustrating the process of forming contact relationship evidence according to the present invention. Figure 3 This is a flowchart of the relighting and re-inspection level output of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] This invention provides, for example Figures 1-3 The method for visually detecting foreign objects and impurities in cowboy bones, as shown, includes: For the beef ribs after cross-cutting with a band saw and before packaging, a bone-derived structural area is established based on the outer edge of the bone cut surface, the boundary of the medullary cavity, the continuous direction of the saw cut, and the relationship between bone and flesh. Patches located in the bone-derived structural area and its adjacent fat folds that are discontinuous with the surrounding texture are registered as patches to be judged. Grazing polarized light in a first direction and grazing polarized light in a second direction opposite to the first direction are applied sequentially to the same patch to be judged to obtain the response sequence of the patch outline, occlusion edge and projected shadow as the illumination direction changes; Using the bone section, bone marrow cavity wall, or liposome surface where the plaque to be judged is located as the bearing surface, the preservation of the plaque outline, the direction reversal of the projected shadow relative to the outline, and the interruption of the bearing surface texture at the outline in the response sequence are compared to form evidence of contact relationship. When the outline of the patch to be judged remains under continuous illumination, the projected shadow is reversed to the opposite sides of the outline with the direction of illumination, and the texture of the bearing surface is blocked at at least one side of the outline, the patch to be judged is identified as a foreign object or impurity located on the surface of the cowboy bone; when the patch to be judged remains continuous with the medullary pore, saw marks, or fat texture and there is no independent shadow direction reversal relationship, it is classified as an inherent structure of the cowboy bone. Based on the outline coverage area of ​​the foreign object, its location on the bearing surface, and evidence of contact relationship, the location of the foreign object and the level of re-inspection are output; During implementation, the cross-cut calfskin is transported to the enclosed imaging station with the cut surface facing upwards, and a stop mechanism is used to keep its position unchanged during two illumination cycles. The image acquisition device is positioned above the calfskin, with the first and second grazing polarized light sources located on opposite sides of the imaging area, their illumination directions opposite, forming a small angle of incidence between the light and the calfskin's supporting surface. The two light sources are alternately illuminated, and the image acquisition device acquires the first and second illumination images respectively, avoiding simultaneous illumination from both sides that would cause the projected shadows to cancel each other out. Based on the differences in color, edge, and texture continuity between the bone section and the fat region, the outer edge of the bone section, the boundary of the medullary cavity, and the bone-meat junction are determined, and the bone-derived structure region is established along the continuous extension direction of the saw marks. For isolated patches appearing in the bone-derived structure region and adjacent fat folds, a local image containing the patch and the surrounding bearing surface is extracted as the judgment region. The outer edge of the bone section, the bifurcation position of the medullary cavity, or the stable bone-meat junction are used as registration features to make the two local images correspond. The outline of the patch to be judged and its shadow area on the back side are extracted from the two registered images respectively. If the patch outline is still in the same position after the light source is switched, and the shadow area moves from one side of the outline to the opposite side, it is determined that there is a shadow direction reversal. Further, the sawing texture, cavity wall texture or fat texture is traced along the outside of the outline. When the texture stops at the outline and cannot be directly continuous on the other side of the outline, it is determined that the texture of the bearing surface is occluded. When the outline is maintained, the shadow direction is reversed and the texture is occluded at the same time, the patch is determined to be a foreign object attached to or embedded in the bearing surface. If the shadow area always extends along the bone marrow foramen, sawing groove or fat fold, and the surrounding texture can continuously pass through the area, it is classified as the inherent structure of the cowboy bone. Through the above implementation method, the change in shadow position caused by the change in the direction of the light source can be used to characterize the protrusion, occlusion and contact relationship between the patch and the bearing surface, avoiding judgment based solely on color or single outline, thereby reducing false detections caused by bone marrow pores, saw grooves and fat reflections, and improving the detection reliability of foreign bodies embedded in the bone marrow cavity or saw grooves.

[0021] Before forming evidence of contact relationship, the type of bearing surface of the plaque to be judged is determined from the bone section, the wall of the medullary cavity and the surface of the flesh and fat, respectively. When the plaque to be judged crosses two bearing surfaces, a local judgment area is established by the overlap of its outline with the boundary of each bearing surface. It is prohibited to directly use the natural height difference formed by crossing the bone and flesh junction as evidence of foreign body protrusion. During implementation, the type of bearing surface is first determined based on the structural characteristics of the area surrounding the plaque to be judged; the area with a bright bone edge, continuous saw marks, and located within the outer edge of the bone section is determined as the bone section; the area located within the boundary of the medullary cavity, with the curvature of the cavity wall and the texture extending from the cavity opening to the cavity floor is determined as the medullary cavity wall; the area located outside the bone section, with the texture of meat fibers or fat folds, is determined as the meat and fat surface; when the entire plaque to be judged is located within one bearing surface, the area containing its complete outline and the surrounding continuous texture is used as the local judgment area, and the outline occlusion and shadow changes are judged according to the texture direction of the bearing surface; When the plaque to be judged simultaneously covers the bone section and the flesh-fat surface, the bone section and the medullary cavity wall, or the medullary cavity wall and the flesh-fat surface, the boundary line between the two bearing surfaces is first determined. Then, the intersection of the outline of the plaque to be judged and the boundary line is used as the dividing point to divide the plaque to be judged into local judgment areas corresponding to the two bearing surfaces respectively. Each local judgment area is only compared with the continuous texture, backlit dark area and shadow reversal of its bearing surface. The light-dark transition and natural height difference formed by the boundary line itself are not included in the evidence of foreign body protrusion. The candidate result of foreign body is only retained when at least one local judgment area simultaneously shows independent outline preservation, bearing surface texture occlusion and shadow reversal that changes with the lighting direction.

[0022] This avoids the shadows cast by natural step structures such as the junction of bone and flesh and the edge of cavities being misjudged as foreign object protrusions, while retaining the real foreign objects attached across two bearing surfaces, thus improving the detection accuracy of complex junction areas.

[0023] In this process, after excluding the bone marrow foramen, fracture edge, and hemorrhage area from the bone cut surface, the main extension direction of the continuous sawing groove is extracted; the incident directions of the first direction grazing polarized light and the second direction grazing polarized light are located on both sides of the main extension direction, and both intersect with the main extension direction, so that the same saw groove produces continuous light and dark changes along the groove under two illuminations, while the independent patches on the saw groove produce shadows with reversed directions around their own contours. During implementation, within the determined bone section area, the medullary foramen and fracture edge are first marked based on the closed contour, abrupt changes in edge curvature, and differences in internal brightness. Blood spots are marked based on the distribution characteristics of red or dark red patches, and these areas are excluded from the sawing pattern analysis range. Local texture extraction is performed on the remaining bone sections, and strip-shaped light and dark textures with similar directions and continuous beginning and end are connected to form sawing pattern segments. The main extension direction is then determined based on the sawing pattern segments with the largest proportion and the largest continuous length. For bone sections with large differences in the main extension direction, the main extension direction can be determined by dividing them into sections. The first and second grazing polarized light sources are respectively positioned on both sides of the main extension direction, with opposite illumination directions and the projection directions of the light on the bone cut surface intersecting the main extension direction. During illumination, the two light sources are alternately turned on, so that one side of the saw groove is illuminated and the other side forms a dark band extending along the groove. After switching the light sources, the positions of light and dark are exchanged accordingly, but the change in light and dark still extends continuously along the saw groove. If there are bone fragments, plastic fragments, or other independent patches on the saw groove, the patch will block the incident light and form independent dark areas on opposite sides of its own contour under the two illuminations, thus obtaining evidence of shadow direction reversal that is different from the continuous change in light and dark of the saw groove. By first excluding non-saw-cut structures and setting the illumination orientation according to the saw-cut direction, the interference of bone marrow pores, broken bone edges, and blood spots on texture direction extraction can be reduced. At the same time, the continuous light and dark changes of normal saw grooves can be distinguished from the local shadow reversal formed by independent foreign objects, thereby improving the accuracy of foreign object identification in dense saw-cut areas.

[0024] Before comparing the response sequences, the curvature inflection point of the outer edge of the bone section, the bifurcation point of the medullary cavity, and the stable segment of the osteosarcoma junction are used as registration references to perform local registration of the images obtained from the two illuminations. During registration, the edge of the patch to be judged itself is not used as a reference, and the relative displacement between the patch to be judged and its projected shadow is preserved to avoid mistaking the transport offset or slight rotation of the cowboy bone as a reversal of the shadow direction. During implementation, from the first and second illumination images, the following are extracted: inflection points with significant curvature changes and stable positions on the outer edge of the bone section; bifurcation points where the medullary cavity divides into two or more branches from a single cavity; and stable osteomyeloid junction segments with continuous contours and small local width changes, forming a registration feature set. At least two point features and one line segment feature distributed in different orientations of the plaque to be judged are preferentially selected. Correspondence is established based on the relative distance, arrangement order, and extension direction of the line segment among the features, and translational deviations and small-angle rotations in the two images are corrected. When some features are occluded, local registration is completed using the remaining visible features. During the registration process, the outline of the patch to be judged and its adjacent dark areas are set as non-registration areas, and the edge of the patch itself, the illuminated edge, or the projected shadow are not used for position correction; image correction only makes the outer edge of the bone section, the bifurcation point of the medullary cavity, and the stable segment of the osteosarcoma coincide with each other, without separately compensating for the distance and orientation relationship between the patch to be judged and the dark area; after registration is completed, the positional change of the dark area relative to the outline of the patch to be judged is compared under the two illuminations. This eliminates overall image deviations caused by vibrations in the conveying mechanism, slight slippage or rotation of the cowboy bone, while preserving the true shadow displacement caused by changes in illumination direction. It avoids shadow reversal and cancellation due to the participation of the edge of the patch to be judged in registration, or misjudging the overall displacement of the cowboy bone as a reversal of the shadow direction of a foreign object, thus improving the reliability of evidence of contact relationship.

[0025] The evidence for establishing a contact relationship includes: identifying the illuminated edge, the shaded edge, and the dark area connected to the shaded edge of the patch in each illumination image; confirming that the direction of the projected shadow has reversed only when the dark areas in the two illuminations are located on opposite sides of the outline of the patch and there is a continuous contact segment between the dark area and the outline; if the dark area always extends along the saw marks, the inner wall of the medullary cavity, or the fat folds, it is regarded as a shadow formed by the inherent concavity of the bearing surface. During implementation, based on the projection direction of the current grazing polarized light onto the supporting surface, the side of the patch outline facing the light source is designated as the light-facing edge, and the side away from the light source is designated as the backlight edge. Areas with brightness lower than the adjacent supporting surface and continuously connected to the backlight edge are searched outwards along the backlight edge and registered as dark areas. Scattered dark spots, dark areas with bright intervals between them and the outline, and blood-red areas not connected to the backlight edge are not considered as projected shadows. A continuous contact segment refers to the dark area boundary continuously contacting the patch outline at multiple adjacent locations, rather than intersecting at only a single point. Compare the two registered illumination images; when the dark area under the first direction illumination is located on the first side of the patch to be judged, and the dark area under the second direction illumination shifts to the opposite second side, and both dark areas are connected to the corresponding backlight edges through continuous contact segments, it is confirmed that the patch produces an independent projected shadow and a direction reversal; if the dark area continues to extend continuously along the same saw marks, the inner wall of the medullary cavity, or fat folds after the light source is switched, or if the position change of the dark area is consistent with the extension direction of the inherent structure, it is identified as a structural shadow caused by the concavity of the bearing surface; This allows us to distinguish between the projected shadows formed by independent protruding foreign objects and the inherent shadows formed by saw grooves, cavity walls, and fat folds by utilizing the connection position between dark areas and patch outlines and their migration relationship with the switching of light sources, thereby reducing the chances of misjudging natural depressions as foreign objects.

[0026] Specifically, for the plaque to be judged located in the medullary cavity or serration, the occlusion relationship is determined according to the connection order between the dark area and the cavity wall or serration wall; when the dark area connects to the first side cavity wall or serration wall under the first direction illumination, and the dark area connects to the opposite second side cavity wall or serration wall under the second direction illumination, and the outline of the plaque to be judged occludes the texture of the cavity bottom or serration bottom under both illuminations, the plaque to be judged is determined to be a foreign object or impurity embedded in the concave part; when the dark area only shrinks or expands into the concave part and the texture of the cavity bottom is continuous, it is determined to be an inherent pore or serration. During implementation, the first and second sidewalls of the concave area and the bottom of the cavity or groove are first determined based on the boundary of the medullary cavity or the two sides of the serrated groove. Continuous texture is extracted along the direction from the opening of the concave area to the bottom. For the plaque to be judged located in the concave area, in the first illumination image, the connected dark areas are traced outward from the backlit edge of the plaque to be judged, and the cavity wall or groove wall that the dark area first contacts is recorded. The connection position of the dark areas is recorded in the second illumination image in the same way. If the dark areas connect to the opposite sidewalls under the two illuminations, it indicates that the plaque to be judged forms alternating occlusion of incident light from opposite directions. Further compare the texture of the cavity floor or groove floor before and after the location of the patch to be judged; if the texture extends to the outline of the patch to be judged and terminates, and cannot be directly continuous on the other side of the outline, then the texture of the cavity floor or groove floor is considered to be interrupted by the patch to be judged; if the dark area connection side changes with the switching of the illumination direction, and texture interruption exists in both images, then the patch to be judged is considered to be a foreign object embedded in the concave part; if after the light source is switched, the dark area only shrinks or expands along the depth direction of the concave part, and is still continuous with the same sidewall or bottom, and the texture of the cavity floor or groove floor can penetrate the area, then it is considered to be a concave structure formed by the bone marrow pore or the saw groove itself; This allows for the identification of embedded foreign bodies that do not protrude significantly from the bone cut surface by utilizing the combination of the sidewall connection order and the bottom texture occlusion, and reduces the probability of misjudging inherent pores and groove bottom shadows as foreign bodies.

[0027] Specifically, for each direction of grazing polarized light, a co-polarized image and a cross-polarized image are obtained respectively; when the patch to be judged forms a bright area in the co-polarized image, but the outline disappears, the surface texture is restored, and no direction-reversed projection shadow is formed in the cross-polarized image, it is judged as specular reflection of water film or fat surface; when the cross-polarized image still maintains an independent outline and blocks the surface texture, its foreign object candidate status is retained. In practice, polarizers are set on the light-emitting sides of the first and second grazing light sources, and a rotatable analyzer is set in front of the image acquisition device. For each illumination direction, the position of the light source, the incident angle, the exposure time, and the position of the cowboy bone remain unchanged. First, the transmission axis of the analyzer is made parallel to the transmission axis of the corresponding polarizer to acquire a homopolarized image. Then, the analyzer is rotated to be orthogonal to the transmission axis of the polarizer to acquire a crosspolarized image. After the two images are registered using the outer edge of the bone section or the bone-muscle junction, the same patch to be judged is compared. Specular reflections produced by water films or smooth fat surfaces have a significant polarization-preserving characteristic. Therefore, they usually appear as local highlights in the same polarization image, while the highlights are suppressed in the cross-polarization image. If, after the highlights disappear, the previously covered saw marks, cavity wall textures, or fat textures reappear continuously, and no projected shadows are formed on opposite sides of the patch outline under opposite illumination, then the area is identified as water film or fat specular reflection. If there is still a stable independent outline in the cross-polarization image, the surface texture at the outline is still truncated, or a dark area connected to the backlight edge can still be traced, then its foreign object candidate status is retained, and contact relationship judgment continues. This can suppress the specular highlights on the wet and fat surfaces of cowboy bones, avoid misjudging reflective spots as solid foreign objects, and at the same time, not exclude foreign objects with real outlines and occlusion relationships due to the elimination of highlights, thus improving the reliability of the detection results.

[0028] When the patch to be judged simultaneously meets the conditions of inherent structural continuity and foreign object contour preservation, re-illumination is performed in a different set of opposite glancing directions from the previous incident orientation, and contact relationship evidence is re-formed; foreign objects are confirmed only when independent contours, shadow direction reversal, and bearing surface texture occlusion appear in both sets of illumination orientations; if the direction reversal only appears with one set of illumination orientations and is consistent with the main extension direction of the sawing pattern, the patch to be judged is transferred to the sawing pattern verification. During implementation, when a portion of the edge of the plaque to be judged can be continuously connected with the saw marks, the boundary of the medullary cavity, or the fat texture, while the remaining edges still maintain an independent outline under opposite illumination, it is identified as an area of ​​conflicting evidence, and the conclusion of foreign body is not directly output; at this time, the first set of opposite grazing light sources used previously is turned off, and the second set of opposite grazing light sources set along another incident direction is activated; the illumination direction of the second set of light sources does not coincide with the illumination direction of the first set of light sources, and forms a different intersection angle with the main extension direction of the saw marks in the area to be judged; the two sets of light sources use the same or brightness-corrected incident angle, polarization state, and exposure conditions; The images obtained from the second set of opposite-direction illumination are re-registered locally, and the outline of the patch to be judged, the backlit dark area, and the texture of the bearing surface are extracted respectively. Only when the independent outline with a stable position appears in both the first and second sets of illumination results, the dark area moves to the opposite sides of the outline with the opposite illumination direction, and the texture of the bearing surface stops at the outline, is the patch to be judged confirmed as a foreign object impurity. If the shadow reversal only appears in one set of illumination, and the extension direction of the dark area or outline is consistent with the main extension direction of the sawing pattern, then the sawing pattern verification is performed to check whether it is continuous along the groove and whether it weakens or disappears after changing the illumination orientation. This allows for cross-verification of the same patch using different incident orientations, avoiding misinterpreting directional changes in the brightness of saw grooves as solid foreign objects, and improving the reliability of identifying irregular foreign objects and partially embedded foreign objects.

[0029] Among them, the re-examination level is determined based on the evidence of contact relationship as follows: foreign objects embedded in the medullary cavity, saw groove, or bone-meat junction and confirmed by both sets of lighting orientations are set as the blocking packaging level; foreign objects located on the flat meat fat surface, with complete outline and identifiable boundaries are set as the point removal level; and the undetermined plaques that only retain their outline but lack a stable shadow direction reversal relationship are set as the flipping re-examination level, and their position relative to the outer edge of the bone section and the bifurcation point of the medullary cavity is recorded. During implementation, after confirming the foreign object or determining the candidate, the plaque to be judged is classified according to the bearing surface, the integrity of the outline, and the evidence of contact relationship. For plaques to be judged located in the medullary cavity, saw groove, or bone-muscle junction, if two sets of opposite grazing illumination from different incident directions confirm that it has an independent outline, reversed shadow direction, and bottom texture blockage, it indicates that the foreign object is deeply embedded or in a position that is inconvenient to remove directly. The corresponding calf bone is marked as a blocking packaging level, its entry into the packaging station is suspended, and it is transferred to manual processing. For foreign objects located on a flat meat and fat surface, if their outline is closed, their boundary is separated from the surrounding texture, and the coverage area can be determined, they are marked as fixed-point removal level, and the removal position is output according to the outline center and boundary range; for the patches to be judged, only the outline can be confirmed to be maintained, but the shadow reversal is unstable, the dark area is obscured by wrinkles, or the texture of the bearing surface is unclear, they are marked as flipping and re-inspection level; when recording, the nearest outer edge of the bone section and the bifurcation point of the medullary cavity are used as positioning references, and the direction and distance of the patch to be judged relative to the two are saved so that the corresponding area can be repositioned after the cowboy bone is flipped.

[0030] This allows the test results to be linked to the blocking packaging, targeted rejection, and flipping re-inspection operations, avoiding the continued packaging of embedded foreign objects that are difficult to remove, while reducing the direct scrapping of plaques with insufficient evidence and improving the targeting of subsequent processing.

[0031] A visual inspection system for foreign objects and impurities in cowboy bones, used to perform any of the above-described visual inspection methods for foreign objects and impurities in cowboy bones, comprising: The structural region determination module is used to establish bone-derived structural regions based on the outer edge of the bone section, the boundary of the medullary cavity, the continuous direction of the saw marks, and the relationship between bone and muscle, and to register the plaques to be judged; The sequential illumination imaging module includes a first grazing polarization light source, a second grazing polarization light source, and an image acquisition device disposed on both sides of the imaging station, for acquiring the response sequence of the same patch to be judged under opposite illumination directions; The bearing surface registration module is used to determine the bone section, medullary cavity wall or muscular fat surface where the plaque to be judged is located, and to perform local registration of the response sequence based on the inherent structural characteristics of cowboy bone; The contact relationship analysis module is used to compare the preservation of the outline of the patch to be judged, the directional reversal relationship of the projected shadow relative to the outline, and the interruption relationship of the texture of the bearing surface to form contact relationship evidence. The foreign object detection module is used to distinguish foreign objects and impurities, the inherent structure of the cowboy bone, and specular reflection based on contact relationship evidence, and outputs the location of the foreign object; The re-inspection control module is used to switch to another set of opposite glancing directions to perform re-illumination when there is a conflict of evidence, and output the re-inspection level according to the bearing surface where the foreign object is located and the re-illumination result; During implementation, the system is set up between the calf bone band saw cutting station and the packaging station; the image acquisition device is installed above the imaging station, and the first grazing polarization light source and the second grazing polarization light source are respectively located on both sides of the calf bone conveying direction, and are alternately lit by the controller according to a preset order; the structural region determination module processes the acquired images, identifies the outer edge of the bone cut surface, the boundary of the medullary cavity, the saw cut lines and the junction of bone and flesh, and registers the areas of texture discontinuity as patches to be judged; The sequential illumination imaging module controls the light sources on both sides to illuminate sequentially and assembles each illumination image into a response sequence according to the same cowboy bone marker; the bearing surface registration module determines that the patch to be judged is located on the bone section, the medullary cavity wall, or the surface of the flesh and fat, and corrects the image displacement using the outer edge of the bone section, the bifurcation point of the medullary cavity, or the stable segment of the bone-flesh junction; the contact relationship analysis module extracts the outline of the patch to be judged, the backlit dark area and its surrounding texture, and judges whether the outline is preserved, whether the dark area is reversed to the opposite sides of the outline, and whether the texture of the bearing surface is occluded. The foreign object detection module outputs the detection result and location of foreign objects, inherent structures, or specular reflections based on the above results. When different pieces of evidence conflict with each other, the re-inspection control module switches to another set of opposite grazing light sources to re-image and outputs the level of blocking packaging, fixed-point rejection, or flipping re-inspection based on the re-illumination result. At the same time, it sends corresponding control signals to the packaging equipment or rejection equipment. Through the collaboration of various modules, multi-directional lighting, image registration, contact relationship judgment and re-inspection grading can be formed into a continuous detection closed loop, reducing misjudgments caused by the inherent structure and surface reflection of the cowboy bone, and enabling the detection results to be directly connected to subsequent rejection, re-inspection and packaging control.

[0032] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A visual inspection method for foreign matter and impurities in cowboy bones, characterized in that, include: For the ribs after cross-cutting with a band saw and before packaging, a bone source structure area is established based on the outer edge of the bone cut surface, the boundary of the medullary cavity, the continuous direction of the saw cut, and the relationship between bone and flesh. Patches located in the bone source structure area and its adjacent fat folds that are discontinuous with the surrounding texture are registered as patches to be judged. Grazing polarized light in a first direction and grazing polarized light in a second direction opposite to the first direction are applied sequentially to the same patch to be judged to obtain the response sequence of the patch outline, occlusion edge and projected shadow as the illumination direction changes; Using the bone section, bone marrow cavity wall, or muscular fat surface where the plaque to be judged is located as the bearing surface, the preservation of the outline of the plaque to be judged, the direction reversal relationship of the projected shadow relative to the outline, and the interruption relationship of the bearing surface texture at the outline in the response sequence are compared to form evidence of contact relationship. When the outline of the patch to be judged remains under continuous illumination, the projected shadow is reversed to the opposite sides of the outline with the direction of illumination, and the texture of the bearing surface is blocked at at least one side of the outline, the patch to be judged is identified as a foreign object or impurity located on the surface of the cowboy bone; when the patch to be judged remains continuous with the medullary pore, saw marks, or fat texture and there is no independent shadow direction reversal relationship, it is classified as an inherent structure of the cowboy bone. Based on the outline coverage of foreign objects, their location on the bearing surface, and evidence of contact relationships, the location of the foreign object and the level of re-inspection are output.

2. The visual detection method for foreign matter impurities in cowboy bones according to claim 1, characterized in that, Before forming the contact relationship evidence, the type of bearing surface of the plaque to be judged is determined from the bone section, the bone marrow cavity wall and the surface of the flesh and fat, respectively. When the plaque to be judged crosses two bearing surfaces, local judgment areas are established by the overlap of its outline with the boundary of each bearing surface. It is prohibited to directly use the natural height difference formed by crossing the bone and flesh junction as evidence of foreign body protrusion.

3. The visual detection method for foreign matter impurities in cowboy bones according to claim 2, characterized in that, After excluding the medullary foramen, fracture edge, and hemorrhage area from the bone cut surface, the main extension direction of the continuous sawing groove is extracted. The incident directions of the first and second grazing polarized light are located on both sides of the main extension direction, and both intersect the main extension direction, so that the same sawing groove produces a continuous change of light and dark along the groove under two illuminations, while the independent patches on the sawing groove produce shadows with reversed direction around their own contours.

4. The visual detection method for foreign matter impurities in cowboy bones according to claim 3, characterized in that, Before comparing the response sequences, the curvature inflection point of the outer edge of the bone section, the bifurcation point of the medullary cavity, and the stable segment of the osteosarcoma junction are used as registration references to perform local registration of the images obtained from the two illuminations. During registration, the edge of the patch to be judged itself is not used as a reference, and the relative displacement between the patch to be judged and its projected shadow is preserved to avoid mistaking the transport offset or slight rotation of the cowboy bone as a reversal of the shadow direction.

5. The visual detection method for foreign matter impurities in cowboy bones according to claim 4, characterized in that, The evidence of the contact relationship includes: identifying the light-facing edge, the shadow-facing edge, and the dark area connected to the shadow-facing edge of the patch to be judged in each illumination image; confirming that the direction of the projected shadow has reversed only when the dark areas in the two illuminations are located on opposite sides of the outline of the patch to be judged, and there is a continuous contact segment between the dark area and the outline; if the dark area always extends along the saw marks, the inner wall of the medullary cavity, or the fat folds, it is regarded as the shadow formed by the inherent concavity of the bearing surface.

6. The visual detection method for foreign matter impurities in cowboy bones according to claim 5, characterized in that, For the plaque to be judged located in the medullary cavity or serration, the occlusion relationship is determined according to the connection order between the dark area and the cavity wall or serration wall. When the dark area is connected to the first side cavity wall or serration wall under the first direction illumination and the dark area is connected to the opposite second side cavity wall or serration wall under the second direction illumination, and the outline of the plaque to be judged occludes the texture of the cavity bottom or serration bottom under both illuminations, the plaque to be judged is determined to be a foreign object or impurity embedded in the recess. When the dark area only shrinks or expands into the recess and the texture of the cavity bottom is continuous, it is determined to be an inherent pore or serration.

7. The visual detection method for foreign matter impurities in cowboy bones according to claim 6, characterized in that, For each direction of grazing polarized light, obtain both a co-polarized image and a cross-polarized image. When the patch to be judged forms a bright area in the co-polarized image, but the outline disappears, the surface texture is restored, and no projected shadow with the reversed direction is formed in the cross-polarized image, it is judged as specular reflection of a water film or fat surface. When the cross-polarized image still maintains an independent outline and blocks the surface texture, its foreign object candidate status is retained.

8. The visual detection method for foreign matter impurities in cowboy bones according to claim 7, characterized in that, When the patch to be judged simultaneously meets the conditions of inherent structural continuity and foreign object contour preservation, re-illumination is performed in a different set of opposite glancing directions from the previous incident orientation, and contact relationship evidence is re-established; foreign objects are confirmed only when independent contours, shadow direction reversal, and bearing surface texture occlusion appear in both sets of illumination orientations. If the direction reversal only appears with one set of illumination orientations and is consistent with the main extension direction of the sawing pattern, the patch to be judged is transferred to the sawing pattern verification.

9. The visual detection method for foreign matter impurities in cowboy bones according to claim 8, characterized in that, The re-examination level is determined based on the evidence of contact relationship, including: foreign objects embedded in the medullary cavity, saw groove, or bone-meat junction and confirmed by both sets of illumination directions are classified as blocking packaging level; foreign objects located on a flat meat-fat surface with a complete outline and identifiable boundaries are classified as point removal level; and pending plaques that only retain their outline but lack a stable shadow direction reversal relationship are classified as flipping re-examination level, and their position relative to the outer edge of the bone section and the bifurcation point of the medullary cavity is recorded.

10. A visual inspection method and system for foreign matter and impurities in cowboy bones, used to perform the visual inspection method for foreign matter and impurities in cowboy bones according to any one of claims 1-9, characterized in that, include: The structural region determination module is used to establish bone-derived structural regions based on the outer edge of the bone section, the boundary of the medullary cavity, the continuous direction of the saw marks, and the relationship between bone and muscle, and to register the plaques to be judged; The sequential illumination imaging module includes a first grazing polarization light source, a second grazing polarization light source, and an image acquisition device disposed on both sides of the imaging station, for acquiring the response sequence of the same patch to be judged under opposite illumination directions; The bearing surface registration module is used to determine the bone section, medullary cavity wall or muscular fat surface where the plaque to be judged is located, and to perform local registration of the response sequence based on the inherent structural characteristics of cowboy bone; The contact relationship analysis module is used to compare the preservation of the outline of the patch to be judged, the directional reversal relationship of the projected shadow relative to the outline, and the interruption relationship of the texture of the bearing surface to form contact relationship evidence. The foreign object detection module is used to distinguish foreign objects, impurities, the inherent structure of the cowboy bone, and specular reflection based on the contact relationship evidence, and output the location of the foreign object. The re-inspection control module is used to switch to another set of opposite glancing directions to perform re-illumination when there is a conflict of evidence, and output the re-inspection level according to the bearing surface where the foreign object is located and the re-illumination result.