Key technical method and application of cubilose AI intelligent fine sorting equipment
Through the AI intelligent picking device, it automatically identifies and captures impurities in bird's nest, solving the problems of inefficient manual picking and easy damage to bird's nest, and achieving efficient and accurate impurity sorting of bird's nest.
Patent Information
- Application Number
- CN202411150803.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-01
AI Technical Summary
In the prior art, the picking of impurities in bird's nests relies on manual operations and lacks unified standards, resulting in low sorting accuracy and efficiency and easy to damage bird's nest.
AI intelligent sorting equipment is used to obtain the target image of bird's nest, identify it based on the impurity recognition model, and automatically sort impurities using a soft claw grabbing device to ensure the accuracy and efficiency of sorting.
It improves the accuracy and efficiency of the sorting impurities of bird's nest, avoids structural damage to the bird's nest, and ensures that the sorted bird's nest maintains its original shape and integrity.
Smart Images

Figure CN118874871A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of bird's nest processing technology, and in particular to a key technical method and application of a bird's nest AI intelligent sorting equipment, wherein the application includes corresponding applications in devices, equipment, computer-readable storage media and computer program products. Background Art
[0002] Bird's nest, also known as bird's nest, bird's root, and bird's vegetable, is a nest built by the swiftlet and other swiftlets of the same genus using a mixture of saliva and down feathers. It has high edible and medicinal value. Due to the formation mechanism of bird's nest, bird's nest often contains a large number of impurities such as feathers and eggshell fragments. These impurities have different shapes, including tiny dots and flakes, as well as long and thin strips, such as feather filaments and down. Their appearance, shape, impurity types, and distribution characteristics are extremely complex and irregular. This diversity not only increases the concealment of impurities, but also makes the removal of impurities a very challenging task.
[0003] The impurities in bird's nests are usually picked after they are fully soaked and expanded. At this time, the impurities in the bird's nests are in various shapes, some are strips, some are dots, and some are flakes, with different sizes and colors, ranging from white to black. These impurities are similar in color and texture to the bird's nest itself, making the picking work extremely difficult. In addition, since the texture of the bird's nest is relatively fragile, excessive force may cause the bird's nest to break, so it is necessary to be very careful when picking. Therefore, the removal of impurities in the bird's nest is an important process in the bird's nest processing industry.
[0004] At present, the picking of impurities in bird's nests mainly relies on manual operation, but manual sorting relies on people's subjective judgment and experience, there is no unified sorting standard, the accuracy and efficiency of sorting are relatively low and it is easy to destroy the bird's nest strips. Summary of the invention
[0005] Based on this, it is necessary to provide a key technical method, device, equipment, computer-readable storage medium and computer program product for bird's nest AI intelligent sorting equipment that can improve the accuracy and efficiency of impurity sorting in response to the above-mentioned technical problems.
[0006] In the first aspect, the present application provides a key technical method for bird's nest AI intelligent sorting equipment, including:
[0007] Obtain the target image corresponding to the bird's nest to be sorted;
[0008] Identify impurities in the target image based on an impurity identification model to obtain an impurity identification result;
[0009] If the impurity identification result is that impurities exist, then the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted; the impurity grabbing device includes a soft clamp;
[0010] When the impurity capture meets the preset conditions, the bird's nest after impurity sorting is obtained.
[0011] In one of the embodiments, before identifying impurities in the target image based on the impurity identification model to obtain an impurity identification result, the method further includes:
[0012] Dividing the target image to obtain multiple frames of sub-images;
[0013] The step of identifying impurities in the target image based on the impurity identification model to obtain an impurity identification result includes:
[0014] Identify impurities in a target sub-image based on the impurity identification model to obtain an impurity identification result corresponding to the target sub-image; the target sub-image is any frame sub-image;
[0015] The method of obtaining the bird's nest after impurity sorting when the impurity grabbing meets the preset conditions comprises:
[0016] When the impurity capture corresponding to the target sub-image meets the preset conditions, the next frame sub-image is used as the target sub-image, and the step of identifying the impurities in the target sub-image based on the impurity recognition model is returned to obtain the impurity recognition result corresponding to the target sub-image, until the impurity capture corresponding to all sub-images is completed, and the bird's nest after impurity sorting is obtained.
[0017] In one embodiment, the method further comprises:
[0018] When the impurity capture corresponding to the target sub-image does not meet the preset conditions, the step of returning to the step of identifying the impurities in the target sub-image based on the impurity identification model to obtain the impurity identification result corresponding to the target sub-image.
[0019] In one embodiment, if the impurity identification result is that impurities exist, then controlling the impurity grabbing device to grab the impurities in the bird's nest to be sorted includes:
[0020] If the impurity identification result is that impurities exist, obtaining a first position of at least one impurity in the target image;
[0021] Obtaining a second position in the world coordinate system corresponding to the first position according to a conversion relationship between a camera coordinate system where the target image is located and a world coordinate system;
[0022] The impurity grabbing device is controlled to move to the second position, and the impurities are grabbed by the impurity grabbing device.
[0023] In one embodiment, when the impurity capture meets the preset conditions, obtaining the bird's nest after impurity sorting includes:
[0024] If the impurities are captured for a preset number of times, the bird's nest after the impurities are sorted is obtained.
[0025] In one embodiment, the training method of the impurity identification model includes:
[0026] Obtaining a training data set, wherein the training data set includes annotated impurity category labels and position labels;
[0027] Inputting the training data set into the model to be trained to obtain the predicted category and predicted position of impurities;
[0028] determining a training loss based on a first difference between the predicted impurity class and the corresponding impurity class label, and a second difference between the predicted position and the position label;
[0029] The parameters of the model to be trained are adjusted according to the training loss to obtain the impurity recognition model.
[0030] In the second aspect, the present application also provides a bird's nest AI intelligent fine sorting device, comprising:
[0031] An image acquisition module is used to acquire a target image corresponding to the bird's nest to be sorted;
[0032] An impurity identification module, used to identify impurities in the target image based on an impurity identification model to obtain an impurity identification result;
[0033] An impurity grabbing module, used for controlling an impurity grabbing device to grab the impurities in the bird's nest to be sorted if the impurity identification result indicates that impurities exist; the impurity grabbing device includes a soft clamp;
[0034] The bird's nest sorting module is used to obtain the bird's nest after impurity sorting when the impurity capture meets the preset conditions.
[0035] In the third aspect, the present application also provides a bird's nest AI intelligent sorting equipment, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the key technical method of the bird's nest AI intelligent sorting equipment provided in the first aspect when executing the computer program.
[0036] In the fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the key technical method of the bird's nest AI intelligent sorting equipment provided in the first aspect are implemented.
[0037] In the fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the key technical method of the bird's nest AI intelligent sorting equipment provided in the first aspect.
[0038] The key technical methods, devices, equipment, computer-readable storage media and computer program products of the above-mentioned bird's nest AI intelligent precision sorting equipment obtain the target image corresponding to the bird's nest to be sorted, identify the impurities in the target image based on the impurity recognition model, and obtain the impurity recognition result. If the impurity recognition result is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted. When the impurity grabbing meets the preset conditions, the bird's nest after impurity sorting is obtained, and the impurities are identified according to the recognition mechanism of the impurity recognition model, the impurity recognition mechanism is unified, and the accuracy of impurity identification is improved; the impurities are grabbed by the impurity grabbing device, and the automatic identification and grabbing of impurities are realized, which greatly improves the efficiency of impurity sorting. By grabbing the impurities of the bird's nest with a soft gripper, damage to the structure of the bird's nest can be avoided during the grabbing process, thereby ensuring that the sorted bird's nest maintains its original shape and has a complete structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 This is an application environment diagram of the key technical method of the bird's nest AI intelligent sorting equipment in one embodiment;
[0041] Figure 2 It is a flowchart of the key technical method of the bird's nest AI intelligent sorting equipment in one embodiment;
[0042] Figure 3 A schematic diagram of a training process of an impurity identification model in one embodiment;
[0043] Figure 4 It is a flowchart of the key technical method of the bird's nest AI intelligent sorting equipment in another embodiment;
[0044] Figure 5This is a structural block diagram of a bird's nest AI intelligent sorting device in one embodiment;
[0045] Figure 6 This is a diagram of the internal structure of a bird's nest AI intelligent sorting device in one embodiment. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] The key technical method of the bird's nest AI intelligent sorting equipment provided in the embodiment of the present application can be applied to Figure 1 In the application environment corresponding to the bird's nest impurity sorting system shown. Among them, the bird's nest impurity sorting system 100 includes a controller 102, a camera 104 and an impurity grabbing device 106, the controller 102 communicates with the camera 104, and the controller 102 communicates with the impurity grabbing device 106. The controller 104 obtains the target image corresponding to the bird's nest to be sorted collected by the camera 102, identifies the impurities in the target image based on the impurity recognition model, and obtains the impurity recognition result. If the impurity recognition result is that impurities exist, the impurity grabbing device 106 is controlled to grab the impurities in the bird's nest to be sorted. The impurity grabbing device includes a soft clamp. When the impurity grabbing meets the preset conditions, the bird's nest after impurity sorting is obtained. It can be understood that the key technical method of the bird's nest AI intelligent precision sorting equipment provided in the embodiment of the present application is a bird's nest impurity sorting method.
[0048] In an exemplary embodiment, Figure 2 As shown, a key technical method of bird's nest AI intelligent fine sorting equipment is provided, and this method is applied to Figure 1 The controller in FIG. 1 is taken as an example to illustrate the method, which includes the following steps 202 to 208. Among them:
[0049] Step 202, obtaining a target image corresponding to the bird's nest to be sorted.
[0050] The bird's nest to be sorted refers to the bird's nest waiting to be sorted for impurities, and the bird's nest to be sorted may include impurities or may not include impurities. The target image corresponding to the bird's nest to be sorted can be obtained through a camera, for example, the bird's nest to be sorted is placed in a container, and the bird's nest to be sorted is photographed through a camera to obtain the target image.
[0051] In one example, the bird's nests to be sorted can be placed in a transparent container, and a camera is set above the container to collect the target image corresponding to the bird's nests to be sorted; a light source is set at the bottom of the container to make the brightness of the bird's nests to be sorted greater, and the clarity of the target image collected by the camera will also be higher.
[0052] Step 204 , identifying impurities in the target image based on the impurity identification model to obtain an impurity identification result.
[0053] The impurity identification model is a model used for impurity identification. The impurity identification model can be a basic classification model or a model trained based on the basic classification model. For example, the bird's nest images with impurity annotations are used as training data sets, and the basic classification model is trained based on the training data sets. When the training conditions are met, the impurity identification model can be obtained.
[0054] By inputting the target image into the impurity recognition model, an impurity recognition result can be obtained. The impurity recognition result includes the presence of impurities and the absence of impurities. If the impurity recognition result is the presence of impurities, the impurity recognition result can also include the impurity type and the impurity position.
[0055] Step 206, if the impurity identification result is that impurities exist, then control the impurity grabbing device to grab the impurities in the bird's nest to be sorted, and the impurity grabbing device includes a soft clamp.
[0056] The impurity grabbing device is used to grab impurities. If the impurity identification result is that impurities exist, the controller can send a grabbing instruction to the impurity grabbing device, instructing the impurity grabbing device to grab the impurities in the bird's nest to be sorted. Among them, the soft gripper refers to a gripper made of soft material, and the soft material refers to a material with a hardness less than a hardness threshold, such as resin, plastic, etc. The hardness threshold can be set according to the actual application scenario.
[0057] In actual application scenarios, if the impurity identification result is that impurities exist, the controller sends a grabbing instruction to the impurity grabbing device, wherein the grabbing instruction includes the impurity position, and the clamp in the impurity grabbing device moves to the position where the impurities are located, and the impurities in the bird's nest to be sorted are grabbed by the clamp, and the grabbed impurities are placed in the impurity container.
[0058] In one example, the clamp is driven to move by a high-speed servo, and the cam slider mechanism and connecting rod and other structures are used to assist in the rapid opening and closing of the clamp. The material of the clamp can be resin, for example, the clamp of resin material can be processed by 3D printing, and the outer end of the clamp can also be wrapped with a soft rubber sleeve, which can further reduce the damage to the bird's nest caused by clamping the bird's nest during the sorting process. In the design process of the clamp, the thickness of the end of the clamp is as small as possible, the contact area of the clamp is as large as possible, and the expansion angle and closing angle of the clamp are adjustable. The controller can send a pulse signal to drive the servo in the impurity grabbing device to move the corresponding angle. For example, when a pulse signal with a pulse width of 1.5 milliseconds is sent to the servo, the output shaft of the servo extends to an angle of 90 degrees with the vertical direction, when a pulse signal with a pulse width of 1 millisecond is sent to the servo, the output shaft of the servo moves to the vertical direction, and when a pulse signal with a pulse width of 2 milliseconds is sent to the servo, the output shaft of the servo moves 180 degrees, and the direction of the clamp points to the opposite direction of the ground, which can be applied to bird's nests of any shape. It can be understood that after the gripper grabs the impurities, the shortest path between the location where the impurities are grabbed and the impurity container can be calculated through the optimal path planning algorithm.
[0059] Step 208, when the impurity capture meets the preset conditions, the bird's nest after impurity sorting is obtained.
[0060] The bird's nest after impurity sorting refers to the bird's nest obtained after impurity sorting. After the bird's nest to be sorted is sorted for impurities, the bird's nest after impurity sorting is obtained.
[0061] The preset conditions are used to characterize the conditions for stopping the impurity capture. The preset conditions include the impurity capture reaching the preset number of times, the remaining impurities being less than the quantity threshold, or the sorting time reaching the preset duration. When the impurity capture meets the preset conditions, the corresponding bird's nest to be sorted is the bird's nest after the impurities are sorted.
[0062] The key technical method of the above-mentioned bird's nest AI intelligent fine sorting equipment obtains the target image corresponding to the bird's nest to be sorted, identifies the impurities in the target image based on the impurity recognition model, and obtains the impurity recognition result. If the impurity recognition result is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted. When the impurity grabbing meets the preset conditions, the bird's nest after impurity sorting is obtained, and the impurities are identified according to the recognition mechanism of the impurity recognition model. The unification of the impurity recognition mechanism can improve the accuracy of impurity identification; the impurity grabbing device is used to grab the impurities, and the automatic recognition and grabbing of impurities are realized, which greatly improves the efficiency of impurity sorting. By using high-precision image recognition technology, the texture and structure of the bird's nest are identified, and the boundaries between different bird's nest strips are effectively identified. At the same time, the use of soft grippers can avoid damaging the strip structure of the bird's nest during the grabbing process, ensuring that the bird's nest maintains its original shape and integrity after sorting. By sampling and sorting the raw materials, the cleanliness level of the raw materials can be quickly graded, and the production configuration of the bird's nest raw materials can be optimized.
[0063] In an exemplary embodiment, before identifying impurities in the target image based on the impurity identification model to obtain the impurity identification result, the method further includes:
[0064] Divide the target image to obtain multiple frame sub-images;
[0065] Based on the impurity recognition model, the impurities in the target image are identified to obtain the impurity recognition results, including:
[0066] Based on the impurity recognition model, the impurities in the target sub-image are recognized to obtain the impurity recognition result corresponding to the target sub-image; the target sub-image is any frame sub-image;
[0067] When the impurity grabbing meets the preset conditions, the bird's nest after impurity sorting is obtained, including:
[0068] When the impurity capture corresponding to the target sub-image meets the preset conditions, the next frame sub-image is used as the target sub-image, and the step of identifying the impurities in the target sub-image based on the impurity recognition model is returned to obtain the impurity recognition result corresponding to the target sub-image, until the impurity capture corresponding to all sub-images is completed, and the bird's nest after impurity sorting is obtained.
[0069] In this embodiment, after obtaining the target image corresponding to the bird's nest to be sorted, the target image is divided to obtain multiple sub-images, and any frame of the sub-image is used as the target sub-image, and then the impurities in the target sub-image are identified based on the impurity recognition model to obtain the impurity recognition result corresponding to the target sub-image. If the impurity recognition result corresponding to the target sub-image is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the position corresponding to the target sub-image in the bird's nest to be sorted. When the impurity grabbing corresponding to the target sub-image meets the preset conditions, the next frame of the sub-image is used as the target sub-image, and the impurities in the target sub-image are identified based on the impurity recognition model to obtain the impurity recognition result corresponding to the target sub-image, until the impurity grabbing corresponding to all sub-images is completed, and the bird's nest after impurity sorting is obtained. Among them, the next frame of the sub-image can be any frame of the sub-image without impurity recognition. The completion of impurity capture corresponding to all sub-images means that all sub-images are subjected to impurity recognition based on the impurity recognition model to obtain impurity recognition results, and the process of impurity capture based on the impurity recognition results, that is, if the impurity recognition result is that impurities exist, the impurity capture device is controlled to capture impurities, and the impurity capture meets the preset conditions; if the impurity recognition result is that impurities do not exist, the impurity recognition and impurity capture of the next frame of sub-image are entered, until the impurity recognition and impurity capture of all sub-images are completed. At this time, the bird's nest to be sorted after impurity capture is the bird's nest after impurity sorting.
[0070] It can be understood that the method of dividing the target image can be selected according to actual needs. For example, the target image can be divided evenly, that is, the obtained multiple frames of sub-images are of the same size, or it can be divided unevenly to obtain multiple frames of sub-images of different sizes. The multiple frames of sub-images can be numbered, and the impurity identification of the sub-images can be performed in sequence according to the numbering order to obtain the impurity identification results of the corresponding sub-images.
[0071] If the impurity identification result corresponding to the sub-image is that impurities exist, the first position of the impurity in the sub-image is obtained. According to the mapping relationship between the camera coordinate system and the world coordinate system, the second position of the impurity in the bird's nest to be sorted can be obtained, and the impurity grabbing device is controlled to grab the impurity at the second position.
[0072] Optionally, if the impurity identification result is that no impurities exist, the next frame sub-image is used as the target sub-image, and the step of identifying impurities in the target sub-image based on the impurity identification model is returned to execute to obtain the impurity identification result corresponding to the target sub-image, that is, impurity identification and impurity capture of the next frame sub-image is performed.
[0073] In this embodiment, the target image is divided into multiple frames of sub-images, and then impurity identification is performed on the sub-images to obtain impurity identification results corresponding to the sub-images. When the impurity identification result is that impurities exist, the corresponding identified impurities are captured. When the impurity capture meets the preset conditions, the impurity identification and impurity capture of the next frame of sub-image are entered, and this is repeated until the impurity capture corresponding to all sub-images is completed, and the bird's nest after impurity sorting is obtained. This can realize local identification of the bird's nest to be sorted and local impurity capture, that is, it can realize more refined impurity sorting, which can improve the accuracy of impurity sorting.
[0074] In some embodiments, the above method also includes: when the impurity capture corresponding to the target sub-image does not meet the preset conditions, returning to the step of identifying impurities in the target sub-image based on the impurity recognition model to obtain the impurity recognition result corresponding to the target sub-image.
[0075] In this embodiment, if the impurity capture corresponding to the target sub-image does not meet the preset conditions, the process returns to the step of identifying the impurities in the target sub-image based on the impurity recognition model to obtain the impurity recognition result corresponding to the target sub-image, until the impurity capture corresponding to the target sub-image meets the preset conditions, and the next frame sub-image is used as the target sub-image, and impurity recognition and impurity capture are performed on the next frame sub-image.
[0076] In one example, when the impurity capture corresponding to the target sub-image has not reached a preset number of times, the process returns to the step of identifying the impurities in the target sub-image based on the impurity recognition model to obtain the impurity recognition result corresponding to the target sub-image, until the impurity capture corresponding to the target sub-image reaches a preset number of times, the next frame sub-image is selected as the target sub-image, and the process of impurity recognition and capture of the target sub-image is repeated.
[0077] In this embodiment, when impurity grabbing fails to meet the preset conditions, the impurities are continuously identified and grabbed until the impurities grabbing meets the preset conditions, and the impurity identification and corresponding impurity grabbing of the current target sub-image are stopped, so that the impurity grabbing meets the preset conditions instead of just grabbing blindly. This can improve the accuracy of impurity grabbing and the efficiency of impurity sorting while improving.
[0078] In an exemplary embodiment, if the impurity identification result is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted, including:
[0079] If the impurity identification result is that impurities exist, obtain a first position of at least one impurity in the target image; obtain a second position in the world coordinate system corresponding to the first position based on the conversion relationship between the camera coordinate system and the world coordinate system where the target image is located; control the impurity grabbing device to move to the second position, and grab the impurity by the impurity grabbing device.
[0080] The world coordinate system is based on the Cartesian right-hand coordinate system to determine the position of each point in the coordinate system. The X-axis is the horizontal direction, the Y-axis is the vertical direction, the Z-axis is the direction perpendicular to the XY plane, and the coordinates of the origin O are (0, 0, 0). The world coordinate system can include a rectangular coordinate system or a polar coordinate system. The camera coordinate system refers to a three-dimensional rectangular coordinate system with the focal center of the camera as the origin and the optical axis as the z-axis. The origin of the camera coordinate system is the optical center of the camera, the x-axis and the y-axis are parallel to the X and Y axes of the image, and the z-axis is the optical axis of the camera, which is perpendicular to the graphic plane. The intersection of the optical axis and the image plane is the origin of the image coordinate system. The image coordinate system is a two-dimensional rectangular coordinate system.
[0081] If the impurity identification result is that impurities exist, the first position of at least one impurity in the target image is obtained from the identified impurities, wherein the identified impurities may include one or more, and the impurity with the largest volume may be selected as the target impurity, thereby determining the first position of the target impurity in the target image, or a preset number of impurities may be selected to sequentially obtain the first position of each impurity in the target image. According to the conversion relationship between the camera coordinate system and the world coordinate system, the second position in the world coordinate system corresponding to the first position may be obtained, the first position is characterized by the coordinates in the camera coordinate system, and the second position is characterized by the coordinates in the world coordinate system. After obtaining the second position where the impurity is located, the impurity grabbing device is controlled to move to the second position, and the corresponding impurity is grabbed by the gripper. When there are multiple impurities, multiple impurities can be grabbed in sequence, and after one of the impurities is grabbed, the grabbed impurity is placed in the impurity container, and another impurity is continued to be grabbed, and so on, until all impurities are grabbed.
[0082] In one example, the coordinates of the target impurity in the camera coordinate system are P c =[X c ,Y c ,Z c ], the translation vector between the camera coordinate system and the world coordinate system is T (3×1 matrix), and the rotation matrix is R (1×3 matrix), then, according to P c =RP w +T, then the coordinates P of the target impurity in the world coordinate system can be obtained w =[X w ,Y w ,Z w ].
[0083] In this embodiment, by obtaining the second position of the impurities identified in the target image corresponding to the bird's nest to be sorted based on the conversion relationship between the camera coordinate system and the world coordinate system, the impurity grabbing device is controlled to move to the second position to grab the impurities. This can achieve rapid and accurate determination of the actual position of the impurities, thereby improving the efficiency and accuracy of impurity grabbing.
[0084] In an exemplary embodiment, when the impurity capture meets the preset conditions, the bird's nest after impurity sorting is obtained, including:
[0085] If the impurities are captured for a preset number of times, the bird's nest after impurities are sorted is obtained.
[0086] The preset number of times can be set according to the actual application scenario, for example, the preset number of times is 2 times, 3 times or 5 times, etc. The preset number of times can be determined according to the purity of the bird's nest to be sorted. For example, the higher the purity of the bird's nest to be sorted, the lower the preset number of times.
[0087] In one example, impurities in a target image are identified based on an impurity identification model to obtain an impurity identification result. If the impurity identification result is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted, and the number of grabbing times is recorded. If the preset number is 3 times, after the first impurity grabbing, the process returns to the step of identifying impurities in the target image based on the impurity identification model to obtain an impurity identification result. If the impurity grabbing reaches 3 times, the impurity identification and grabbing of the target image is stopped to obtain the bird's nest after impurity sorting.
[0088] In this embodiment, if the impurities are captured for a preset number of times and the bird's nest is obtained after impurities are sorted, the bird's nest impurities can be quickly sorted, thereby improving the efficiency of the bird's nest impurity sorting.
[0089] In an exemplary embodiment, Figure 3 As shown, the training method of the impurity recognition model includes the following steps 302 to 308.
[0090] Step 302: Obtain a training data set, where the training data set includes annotated impurity category labels and position labels.
[0091] The data training set includes multiple image samples, each of which includes a labeled impurity category label and an impurity position label. The acquired bird's nest image can be manually labeled. The position label can be represented by an anchor frame, that is, the position of the impurity is labeled by the anchor frame, and the anchor frame can be an anchor frame of different shapes.
[0092] Each image sample can be an image captured by a camera, or a sub-image obtained by dividing the image, wherein the sub-image obtained by dividing includes impurities. The acquired initial image sample can also be enhanced, for example, the initial image sample is rotated, segmented or overlapped to obtain an enhanced image sample, and the initial image sample and the enhanced image sample are combined to obtain a data training set.
[0093] The data training set may include bird's nest images with impurities of various impurity categories, impurity sizes, and impurity distribution positions. It can be understood that the more the number of data training sets, the richer the data types, and the better the quality of the data training sets, the more conducive it is to obtain an impurity identification model.
[0094] Step 304: input the training data set into the model to be trained to obtain the predicted category and predicted position of the impurity.
[0095] The model to be trained refers to the model before training. The model to be trained can be CNN (Convolutional Neural Networks) or RPN (Region Proposal Network), such as Fast R-CNN (Fast Convolutional Neural Network).
[0096] The training data set is input into the model to be trained. The impurity position in the training data set can be predicted through the preset anchor box in the model to be trained to obtain the predicted position; and the impurity in the training data set can be identified and classified through the classification network in the model to be trained to obtain the predicted category.
[0097] Step 306 , determining a training loss based on a first difference between the predicted impurity category and the corresponding impurity category label, and a second difference between the predicted position and the position label.
[0098] A first difference between the impurity prediction category and the corresponding impurity category label, and a second difference between the predicted position and the position label are calculated, and a training loss is determined according to the first difference and the second difference.
[0099] Exemplarily, the first difference and the second difference may be weighted and summed to obtain the training loss, wherein the first weight corresponding to the first difference and the second weight corresponding to the second difference may be set according to the actual application scenario, for example, the first weight is 0.6 and the second weight is 0.4, or the first weight is 0.5 and the second weight is 0.5, etc.
[0100] Step 308: Adjust the parameters of the model to be trained according to the training loss to obtain an impurity recognition model.
[0101] The parameters of the model to be trained are adjusted according to the training loss until the training loss is less than the loss threshold, thereby obtaining an impurity recognition model. It can be understood that the parameters of the model to be trained are adjusted in the direction of reducing the training loss.
[0102] Optionally, the parameters of the model to be trained are adjusted according to the training loss until the number of training times meets the target number of times, thereby obtaining an impurity recognition model.
[0103] In this embodiment, the training data set is input into the model to be trained to obtain the predicted impurity category and predicted position. The training loss is determined based on the first difference between the predicted impurity category and the impurity category label, and the second difference between the predicted position and the position label. The parameters of the model to be trained are adjusted based on the training loss to obtain an impurity recognition model. This can improve the model's ability to recognize the impurity category and impurity position, and obtain an impurity recognition model with higher accuracy, thereby improving the accuracy and efficiency of impurity sorting.
[0104] In one example, the flowchart of the key technical methods of bird's nest AI intelligent sorting equipment is as follows: Figure 4 As shown, the following steps 402 to 418 are included.
[0105] Step 402, obtaining a target image corresponding to the bird's nest to be sorted.
[0106] Step 404: divide the target image into multiple sub-images.
[0107] Step 406 , identifying impurities in the target sub-image based on the impurity identification model to obtain an impurity identification result.
[0108] Step 408 : If the impurity identification result is that there is no impurity, the next frame sub-image is used as the target sub-image, and the process returns to step 406 .
[0109] Step 410: If the impurity identification result is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted.
[0110] Step 412, recording the number of impurity captures corresponding to the target sub-image.
[0111] Step 414 , if the impurity grabbing times reaches the preset times, the next frame sub-image is used as the target sub-image, and the process returns to step 406 .
[0112] Step 416: If the impurity grabbing times do not reach the preset times, the process returns to step 406.
[0113] Step 418: If the impurity identification and capture corresponding to all sub-images are completed, the bird's nest after impurity sorting is obtained.
[0114] In the key technical method of the above-mentioned bird's nest AI intelligent sorting equipment, impurity identification is performed on the sub-image through the impurity identification model to obtain the corresponding impurity identification result; if there are no impurities, the impurity identification of the next sub-image is performed; if the impurity identification result shows that there are impurities, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted, and when the impurity grabbing meets the preset number of times, it enters the next sub-image impurity identification, and so on, until the impurity identification and grabbing corresponding to all sub-images are completed, and the bird's nest after impurity sorting is obtained, which realizes automatic identification and grabbing of impurities in the bird's nest. Compared with the manual selection of impurities, the sorting efficiency of impurities in the bird's nest can be improved, the sorting standards can be unified, and the accuracy of bird's nest sorting can be improved.
[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application also provides a bird's nest AI intelligent fine sorting device for implementing the key technical methods of the bird's nest AI intelligent fine sorting equipment involved above. The implementation solution for solving the problem provided by the device is similar to the implementation solution recorded in the above method, so the specific limitations in one or more bird's nest AI intelligent fine sorting embodiments provided below can refer to the limitations on the key technical methods of the bird's nest AI intelligent fine sorting equipment above, and will not be repeated here. It can be understood that the bird's nest AI intelligent fine sorting device provided in the embodiment of the present application is a bird's nest impurity sorting device.
[0117] In an exemplary embodiment, Figure 5 As shown, a bird's nest AI intelligent fine sorting device is provided, including: an image acquisition module 502, an impurity identification module 504, an impurity grabbing module 506 and a bird's nest sorting module 508, wherein:
[0118] An image acquisition module 502 is used to acquire a target image corresponding to the bird's nest to be sorted;
[0119] The impurity identification module 504 is used to identify impurities in the target image based on the impurity identification model to obtain an impurity identification result;
[0120] The impurity grabbing module 506 is used to control the impurity grabbing device to grab the impurities in the bird's nest to be sorted if the impurity identification result is that impurities exist; the impurity grabbing device includes a soft clamp;
[0121] The bird's nest sorting module 508 is used to obtain the bird's nest after impurity sorting when the impurity capture meets the preset conditions.
[0122] In some embodiments, the bird's nest AI intelligent sorting device further includes an image segmentation module for segmenting the target image to obtain multiple sub-frame images;
[0123] The impurity identification module 504 is further used to identify impurities in the target sub-image based on the impurity identification model to obtain an impurity identification result corresponding to the target sub-image; the target sub-image is any frame sub-image;
[0124] The bird's nest sorting module 508 is also used to take the next frame sub-image as the target sub-image when the impurity capture corresponding to the target sub-image meets the preset conditions, and return to execute the step of identifying the impurities in the target sub-image based on the impurity recognition model to obtain the impurity recognition result corresponding to the target sub-image, until the impurity capture corresponding to all sub-images is completed, and the bird's nest after impurity sorting is obtained.
[0125] In some embodiments, the bird's nest sorting module 508 is also used to return to the step of identifying impurities in the target sub-image based on the impurity recognition model to obtain an impurity recognition result corresponding to the target sub-image when the impurity capture corresponding to the target sub-image does not meet the preset conditions.
[0126] In some embodiments, the impurity capture module 506 is also used to obtain a first position of at least one impurity in the target image if the impurity identification result is the presence of impurities; obtain a second position in the world coordinate system corresponding to the first position based on the conversion relationship between the camera coordinate system and the world coordinate system where the target image is located; control the impurity capture device to move to the second position, and capture the impurities through the impurity capture device.
[0127] In some embodiments, the bird's nest sorting module 508 is also used to obtain the bird's nest after impurity sorting if the impurity capture reaches a preset number of times.
[0128] In one embodiment, the above-mentioned bird's nest AI intelligent sorting device also includes a model training module, which is used to implement a training method for an impurity identification model, including: obtaining a training data set, the training data set including marked impurity category labels and position labels; inputting the training data set into the model to be trained to obtain the impurity prediction category and predicted position; determining the training loss based on the first difference between the impurity prediction category and the corresponding impurity category label, and the second difference between the predicted position and the position label; adjusting the parameters of the model to be trained based on the training loss to obtain the impurity identification model.
[0129] Each module in the above-mentioned bird's nest AI intelligent sorting device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0130] In an exemplary embodiment, a bird's nest AI intelligent sorting device is provided, that is, a bird's nest impurity sorting device. The bird's nest AI intelligent sorting device can be a server, and its internal structure diagram can be as follows: Figure 6 As shown. The bird's nest AI intelligent sorting device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the bird's nest AI intelligent sorting device is used to provide computing and control capabilities. The memory of the bird's nest AI intelligent sorting device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the bird's nest AI intelligent sorting device is used to exchange information between the processor and an external device. The communication interface of the bird's nest AI intelligent sorting device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a key technical method of a bird's nest AI intelligent sorting device is implemented.
[0131] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0132] In an exemplary embodiment, a bird's nest AI intelligent sorting device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the key technical method of the bird's nest AI intelligent sorting device in the above embodiment are implemented.
[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the key technical method of the bird's nest AI intelligent sorting equipment in the above-mentioned embodiment are implemented.
[0134] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the key technical method of the bird's nest AI intelligent sorting equipment in the above-mentioned embodiment.
[0135] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0138] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A key technical method for bird's nest AI intelligent sorting equipment, characterized in that: The method comprises: Obtain the target image corresponding to the bird's nest to be sorted; Identify impurities in the target image based on an impurity identification model to obtain an impurity identification result; If the impurity identification result is that impurities exist, the impurity grabbing device is controlled to grab the impurities in the bird's nest to be sorted; the impurity grabbing device includes a soft clamp; When the impurity capture meets the preset conditions, the bird's nest after impurity sorting is obtained.
2. The method according to claim 1, characterized in that Before the impurities in the target image are identified based on the impurity identification model to obtain the impurity identification result, the method further includes: Dividing the target image to obtain multiple frames of sub-images; The step of identifying impurities in the target image based on the impurity identification model to obtain an impurity identification result includes: Identify impurities in a target sub-image based on the impurity identification model to obtain an impurity identification result corresponding to the target sub-image; the target sub-image is any frame sub-image; The method of obtaining the bird's nest after impurity sorting when the impurity grabbing meets the preset conditions comprises: When the impurity capture corresponding to the target sub-image meets the preset conditions, the next frame sub-image is used as the target sub-image, and the step of identifying the impurities in the target sub-image based on the impurity recognition model is returned to obtain the impurity recognition result corresponding to the target sub-image, until the impurity capture corresponding to all sub-images is completed, and the bird's nest after impurity sorting is obtained.
3. The method according to claim 2, characterized in that The method further comprises: When the impurity capture corresponding to the target sub-image does not meet the preset conditions, the step of returning to the step of identifying the impurities in the target sub-image based on the impurity identification model to obtain the impurity identification result corresponding to the target sub-image.
4. The method according to claim 1, characterized in that If the impurity identification result is that impurities exist, controlling the impurity grabbing device to grab the impurities in the bird's nest to be sorted includes: If the impurity identification result is that impurities exist, obtaining a first position of at least one impurity in the target image; Obtaining a second position in the world coordinate system corresponding to the first position according to a conversion relationship between a camera coordinate system where the target image is located and a world coordinate system; The impurity grabbing device is controlled to move to the second position, and the impurities are grabbed by the impurity grabbing device.
5. The method according to any one of claims 1 to 4, characterized in that: The method of obtaining the bird's nest after impurity sorting when the impurity grabbing meets the preset conditions comprises: If the impurities are captured for a preset number of times, the bird's nest after the impurities are sorted is obtained.
6. The method according to claim 1, characterized in that The training method of the impurity identification model includes: Obtaining a training data set, wherein the training data set includes annotated impurity category labels and position labels; Inputting the training data set into the model to be trained to obtain the predicted category and predicted position of impurities; determining a training loss based on a first difference between the predicted impurity class and the corresponding impurity class label, and a second difference between the predicted position and the position label; The parameters of the model to be trained are adjusted according to the training loss to obtain the impurity recognition model.
7. A bird's nest AI intelligent sorting device, characterized in that: The device comprises: An image acquisition module is used to acquire a target image corresponding to the bird's nest to be sorted; An impurity identification module, used to identify impurities in the target image based on an impurity identification model to obtain an impurity identification result; An impurity grabbing module, used for controlling an impurity grabbing device to grab the impurities in the bird's nest to be sorted if the impurity identification result indicates that impurities exist; the impurity grabbing device includes a soft clamp; The bird's nest sorting module is used to obtain the bird's nest after impurity sorting when the impurity capture meets the preset conditions.
8. A bird's nest AI intelligent sorting device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.
10. A computer program product, comprising 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 6 are implemented.
