CN117876481A - Garlic seed direction identification method and device, electronic equipment and storage medium - Google Patents

Garlic seed direction identification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117876481A
CN117876481A CN202311787326.9A CN202311787326A CN117876481A CN 117876481 A CN117876481 A CN 117876481A CN 202311787326 A CN202311787326 A CN 202311787326A CN 117876481 A CN117876481 A CN 117876481A
Authority
CN
China
Prior art keywords
seed
garlic
image
color
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311787326.9A
Other languages
Chinese (zh)
Inventor
张留全
郑名玲
郭华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Suixin High Tech Intelligent Technology Co ltd
Original Assignee
Guangdong Suixin High Tech Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Suixin High Tech Intelligent Technology Co ltd filed Critical Guangdong Suixin High Tech Intelligent Technology Co ltd
Priority to CN202311787326.9A priority Critical patent/CN117876481A/en
Publication of CN117876481A publication Critical patent/CN117876481A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • G06T2207/30188Vegetation; Agriculture

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses a garlic seed direction identification method, a garlic seed direction identification device, electronic equipment and a storage medium, wherein the garlic seed direction identification method comprises the following steps: acquiring a first seed image of a target garlic seed; acquiring a color filtering strategy based on the target type of the target garlic seeds, wherein the color filtering strategy records a reserved color and a first filtering color; performing color filtering treatment on the first seed image according to a color filtering strategy to obtain a second seed image; the side of the second seed image where the image contour remains is determined as the head direction of the target garlic seed. The method and the device are based on the characteristic that the colors of the head or tail parts corresponding to different types of garlic seeds are different, the color filtering strategy is used for filtering the colors of the images corresponding to the target garlic seeds, the color filtering result is combined for accurately identifying the directions of the target garlic seeds, and compared with the schemes such as an image morphology discrimination method, the seed direction identification method and the device can not be influenced by the morphology of the garlic seeds, so that the identification accuracy of the directions of the garlic seeds is effectively guaranteed.

Description

Garlic seed direction identification method and device, electronic equipment and storage medium
Technical Field
The present application relates to, but not limited to, the field of agricultural automation technology, and in particular, to a method, an apparatus, an electronic device, and a storage medium for identifying a direction of garlic seeds.
Background
In the current garlic sowing industry, the requirements for identifying the direction of garlic seeds are more and more urgent in order to improve the economic benefits of garlic. The direction of the garlic is correctly identified, so that the root, namely the tail of the garlic is sowed in a downward state, and the yield and quality of fruits can be effectively improved. The garlic direction distinguishing method adopted by the current seeder with direction distinguishing function comprises the following steps: mechanical processing, gravity correction, image morphology discrimination, etc. are limited to non-hybrid garlic species with obvious garlic morphology (head and tail with long tail), and hybrid garlic has low accuracy in identifying garlic seed direction due to the fact that the hybrid garlic has different morphology and does not have the characteristics of uniform head and tail with long tail.
Disclosure of Invention
The embodiment of the application provides a garlic seed direction identification method, a garlic seed direction identification device, electronic equipment and a storage medium, which can effectively improve the identification accuracy of the garlic seed direction.
In a first aspect, an embodiment of the present application provides a method for identifying a direction of garlic seeds, including:
acquiring a first seed image of a target garlic seed;
acquiring a preset color filtering strategy based on the target type of the target garlic seeds, wherein the color filtering strategy records reserved color and first filtering color;
performing color filtering treatment on the first seed image according to the color filtering strategy to obtain a second seed image;
and determining the side of the second seed image, on which the image contour is reserved, as the head direction of the target garlic seed.
In some embodiments, the performing color filtering processing on the first seed image according to the color filtering policy to obtain a second seed image includes:
determining a color filtering threshold according to the reserved color and the filtering color;
and performing color filtering processing on the first seed image based on the color filtering threshold value to obtain the second seed image.
In some embodiments, when the target garlic seed is a garlic seed with skin, the performing color filtering processing on the first seed image according to the color filtering policy to obtain a second seed image includes:
determining a garlic skin color of the target garlic seed based on the target species;
determining a second filtered color based on the garlic skin color and the first filtered color;
determining a color filtering threshold according to the second filtering color and the reserved color;
and performing color filtering processing on the first seed image based on the color filtering threshold value to obtain the second seed image.
In some embodiments, the determining the side of the second seed image where the image contour remains as the head direction of the target garlic seed comprises:
performing binarization processing on the second seed image to obtain a binarized image;
and determining the direction of the white image outline with the largest area in the binarized image as the head direction of the target garlic seeds.
In some embodiments, the garlic seed direction identifying device comprises a sealed light shielding shell, a conveyor belt, a lighting device and a camera, wherein the conveyor belt, the lighting device and the camera are arranged inside the sealed light shielding shell, two sides of the conveyor belt are provided with limiting parts, the number of the target garlic seeds is multiple, each target garlic seed is located in the limiting part, the head or tail of each target garlic seed faces the advancing direction of the conveyor belt under the limiting action of the limiting parts, and the first seed image of the target garlic seed is obtained, and the method comprises the following steps:
starting the conveyor belt, the lighting device and the camera;
shooting an image of the conveyor belt through the camera under the condition that the lighting device is turned on;
the first seed image of each target garlic seed is acquired from the conveyor belt image.
In some embodiments, the method further comprises:
determining an illumination intensity of the lighting device;
and adjusting the color filtering threshold according to the illumination intensity, wherein the color filtering threshold is determined based on the reserved color and the first filtering color.
In some embodiments, acquiring the first seed image for each of the target garlic seeds from the conveyor belt image comprises:
identifying a plurality of said target garlic seeds from said conveyor belt image;
and carrying out image segmentation on the conveyor belt image based on the target garlic seeds to obtain the first seed image of each target garlic seed.
In a second aspect, embodiments of the present application provide a control apparatus comprising at least one control processor and a memory for communicatively coupling with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the garlic seed direction identification method as set forth in the first aspect.
In a third aspect, embodiments of the present application further provide an electronic device, including the control apparatus of the second aspect embodiment.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium storing computer executable instructions for performing the garlic seed direction identifying method according to the first aspect.
The embodiment of the application provides a garlic seed direction identification method, a garlic seed direction identification device, electronic equipment and a storage medium, wherein the garlic seed direction identification method comprises the following steps: acquiring a first seed image of a target garlic seed; acquiring a preset color filtering strategy based on the target type of the target garlic seeds, wherein the color filtering strategy records reserved color and first filtering color; performing color filtering treatment on the first seed image according to the color filtering strategy to obtain a second seed image; and determining the side of the second seed image, on which the image contour is reserved, as the head direction of the target garlic seed. According to the scheme provided by the embodiment of the application, based on the characteristics that different types of garlic seeds correspond to different colors, the color filtering treatment is carried out on the image corresponding to the target garlic seeds through the preset color filtering strategy, and the accurate identification of the direction of the target garlic seeds is realized by combining the color filtering treatment result.
Drawings
FIG. 1 is a flow chart of steps of a garlic seed direction identification method according to one embodiment of the present application;
FIG. 2 is a flowchart of the steps for obtaining a second seed image according to another embodiment of the present application;
FIG. 3 is a flowchart of the steps for obtaining a second seed image in the case where the target garlic seed is a skinned garlic seed according to another embodiment of the present application;
FIG. 4 is a flowchart of the steps for determining the head direction of a target garlic seed according to another embodiment of the present application;
FIG. 5 is a flowchart of the steps for obtaining a first seed image of a target garlic seed according to another embodiment of the present application;
fig. 6 is a flowchart of steps for determining a target PRACH transmission occasion from a relationship mapping table according to another embodiment of the present application;
FIG. 7 is a flowchart of steps for acquiring a first seed image from a conveyor belt image according to another embodiment of the present application;
FIG. 8 is a block diagram of a control device according to another embodiment of the present application;
FIG. 9 is a schematic illustration of a second seed image provided in accordance with another embodiment of the present application;
fig. 10 is a schematic view of garlic seeds in a limit part of a conveyor belt according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It will be appreciated that although functional block diagrams are depicted in the device diagrams, logical sequences are shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the block diagrams in the device. The terms first, second and the like in the description, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
In the current garlic sowing industry, the requirements for identifying the direction of garlic seeds are more and more urgent in order to improve the economic benefits of garlic. The direction of the garlic is correctly identified, so that the root, namely the tail of the garlic is sowed in a downward state, and the yield and quality of fruits can be effectively improved. The garlic direction distinguishing method adopted by the current seeder with direction distinguishing function comprises the following steps: mechanical processing, gravity correction, image morphology discrimination, etc. are limited to non-hybrid garlic species with obvious garlic morphology (head and tail with long tail), and hybrid garlic has low accuracy in identifying garlic seed direction due to the fact that the hybrid garlic has different morphology and does not have the characteristics of uniform head and tail with long tail.
In order to solve the above-mentioned problems, embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for identifying a direction of garlic seeds, where the method includes: acquiring a first seed image of a target garlic seed; acquiring a preset color filtering strategy based on the target type of the target garlic seeds, wherein the color filtering strategy records reserved color and first filtering color; performing color filtering treatment on the first seed image according to the color filtering strategy to obtain a second seed image; and determining the side of the second seed image, on which the image contour is reserved, as the head direction of the target garlic seed. According to the scheme provided by the embodiment of the application, based on the characteristics that different types of garlic seeds correspond to different colors, the color filtering treatment is carried out on the image corresponding to the target garlic seeds through the preset color filtering strategy, and the accurate identification of the direction of the target garlic seeds is realized by combining the color filtering treatment result.
Embodiments of the present application are further described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a block diagram showing a garlic seed direction identifying method according to an embodiment of the present application, including but not limited to the following steps:
step S110, acquiring a first seed image of a target garlic seed;
step S120, a preset color filtering strategy is obtained based on the target type of the target garlic seeds, wherein the color filtering strategy records reserved colors and first filtering colors;
step S130, performing color filtering treatment on the first seed image according to a color filtering strategy to obtain a second seed image;
and step S140, determining the side of the second seed image, which remains with the image contour, as the head direction of the target garlic seed.
It should be noted that the target garlic seeds in this embodiment may include white-skin hybrid garlic, red-skin hybrid garlic, purple-skin hybrid garlic, and the like, and may be non-hybrid garlic, without limitation. The colors of the heads or tails corresponding to different types of target garlic seeds can be different, for example, the head color of white skin hybrid garlic is biased to yellow and orange, the tail is biased to grey and blue, and the tail is green during germination; the color of the head part of the red-skin hybrid garlic is biased to orange and red, the color of the tail part is biased to grey-white and blue, and the tail part is green during germination; the color of the head of the purple skin hybrid garlic is biased to yellow and dark purple, the color of the tail is biased to grey white and light purple, and the tail is green during germination.
It should be noted that, since the head and tail of the garlic seed are located at opposite ends of the garlic seed body, in this embodiment, the seed direction identification of the target garlic seed is completed as long as the head or tail of the target garlic seed in the directions corresponding to the opposite sides is correctly determined through image identification. Therefore, after determining the target type of the target garlic seed, the reserved color recorded in the color filtering policy obtained corresponding to the target type may be the head color corresponding to the target garlic seed or the tail color, and the reserved color in this embodiment is the head color of the target garlic seed, and correspondingly, the first filtering color is the body color and the tail color of the target garlic seed. With reference to the description of the above embodiments, when the target species is white-skin hybrid garlic, the corresponding retained colors are the yellow and orange color characteristics, and the first filtered colors are the white, blue and green color characteristics; when the target species is red-skin hybrid garlic, the corresponding retained colors are the red and orange color characteristics, and the first filtered colors are the white, blue and green color characteristics.
It should be noted that, in this embodiment, the color filtering processing manner for the first seed image based on the color filtering policy may be implemented by using an LAB color model or an RGB color model, which is not limited in many ways.
It is understood that the second seed image obtained by the color filtering retains the image contour corresponding to the head of the target garlic seed, and the head direction of the target garlic seed can be determined based on the image contour. In summary, according to the embodiment, based on the characteristics of different types of garlic seeds corresponding to different colors, the color filtering treatment is performed on the image corresponding to the target garlic seeds through the preset color filtering strategy, and the accurate identification of the direction of the target garlic seeds is realized by combining the color filtering treatment result.
Additionally, referring to FIG. 2, in some embodiments, step S130 of FIG. 1 includes, but is not limited to, the following steps:
step S210, determining a color filtering threshold according to the reserved color and the filtered color;
step S220, performing color filtering processing on the first seed image based on the color filtering threshold value to obtain a second seed image.
It should be noted that, in this embodiment, the manner of determining the color filtering threshold based on the reserved color and the filtered color may be by determining the target color model, and determining the color filtering threshold of the first seed image on the target color model based on the reserved color and the filtered color; but also by a color histogram algorithm. The present embodiment implements a color filtering operation of an image by using a color model in a first seed image. The color model of the present embodiment may be an LAB color model or an RGB color model.
In an embodiment, when the color model is an LAB color model, the color filtering threshold value corresponds to an L value, an a value, and a B value, where the L value is a characteristic component illuminance in the LAB color model, the a value is a color characteristic component on a red-green axis in the LAB color model, and the B value is a color characteristic component on a yellow-blue axis in the LAB color model, and filtering threshold intervals for the L value, the a value, and the B value are determined in the LAB color model according to a reserved color and a filtered color corresponding to the target type. For example, when the target species is white-skin hybrid garlic, the filter threshold interval corresponding to the L value is (28, 100), the filter threshold interval corresponding to the a value is (8, 17), and the filter threshold interval corresponding to the B value is (8, 127); when the target species is red-skin hybrid garlic, the filtering threshold interval corresponding to the L value is (28, 100), the filtering threshold interval corresponding to the A value is (8, 17), and the filtering threshold interval corresponding to the B value is (8, 127); when the target species is purple skin hybrid garlic, the filtering threshold interval corresponding to the L value is (28, 100), the filtering threshold interval corresponding to the A value is (8, 17), and the filtering threshold interval corresponding to the B value is (-10,127).
In an embodiment, when the color model is an RGB color model, the color filtering threshold includes an R value, a G value, and a B value, where the R value is a red feature component in the RGB color model, the a value is a green feature component in the RGB color model, and the B value is a blue feature component in the RGB color model, and filtering threshold intervals for the R value, the G value, and the B value are determined in the RGB color model according to the reserved color and the filtered color corresponding to the target type. For example, when the target species is white-skin hybrid garlic, the filter threshold interval corresponding to the R value is (0, 255), the filter threshold interval corresponding to the G value is (0, 30), and the filter threshold interval corresponding to the B value is (0, 0); when the target species is red-skin hybrid garlic, the filtering threshold interval corresponding to the R value is (0, 255), the filtering threshold interval corresponding to the G value is (0, 30), and the filtering threshold interval corresponding to the B value is (0, 0); when the target species is purple-skin hybrid garlic, the filtering threshold interval corresponding to the R value is (0, 255), the filtering threshold interval corresponding to the G value is (0, 30), and the filtering threshold interval corresponding to the B value is (0, 0).
Additionally, in some embodiments, when the target garlic seed is a skinned garlic seed, referring to fig. 3, step S130 of fig. 1 includes, but is not limited to, the following steps:
step S310, determining the garlic skin color of the target garlic seeds based on the target species;
step S320, determining a second filtering color based on the garlic skin color and the first filtering color;
step S330, determining a color filtering threshold according to the second filtering color and the reserved color;
step S340, performing color filtering processing on the first seed image based on the color filtering threshold value to obtain a second seed image.
It will be appreciated that, with reference to the description of the above embodiment, based on the determination of the first filtering color of the target type, the tail color of the garlic seeds without skin and the color of the middle part of the garlic body, when the target garlic seeds are skin-covered garlic seeds, the color of the garlic skin may affect the recognition of the head direction of the target garlic seeds, and the colors of the garlic seeds of different types corresponding to the garlic skin may be different, therefore, it is necessary to determine the color of the garlic skin based on the target type first, and then determine the new filtering color, that is, the second filtering color, based on the color of the garlic skin and the first filtering color, determine the color filtering threshold according to the second filtering color and the reserved color, and ensure the usability of the second seed image obtained by the correspondence of the target garlic seeds with skin, thereby ensuring the accuracy of the recognition of the garlic seed direction.
Additionally, referring to fig. 4, in some embodiments, step S140 of fig. 3 includes, but is not limited to, the following steps:
step S410, performing binarization processing on the second seed image to obtain a binarized image;
step S420, determining the direction of the white image outline with the largest area in the binarized image as the head direction of the target garlic seeds.
It will be appreciated that the binarization process is capable of transforming the second seed image into an image displaying only two colors, black and white, with a more pronounced color contrast, and easier determination of head direction, thus providing an effective data basis for determining garlic seed direction.
It can be understood that, because the second seed image is an image obtained by filtering off the colors of the tail and the middle position of the body based on the target type, but the filtered colors can only represent the colors of the tail and the middle position of the body under the general condition, it is not excluded that a small amount of colors similar or similar to the reserved colors exist in the colors of the tail and the middle position of the body, as shown in fig. 9, there are a plurality of discretely distributed white image outlines in the binary image, the areas of the white image outlines are different, but the ratio of the reserved colors of the position of the head is the highest, so that the direction of the white image outline with the largest area in the binary image is determined as the head direction of the target garlic seed.
It should be noted that, the present embodiment is not limited to a specific manner of binarizing the second seed image, and the binarization processing may be performed on the second seed image by using a maximum inter-class variance method or an adaptive threshold algorithm, or the binarization may be performed by adjusting the L value by using a LAB color model.
In addition, in some embodiments, the garlic seed direction recognition method of the present embodiment is applied to a garlic seed direction recognition device, the garlic seed direction recognition device includes a sealed light-shielding housing, a conveyor belt, a lighting device and a camera, the conveyor belt, the lighting device and the camera are disposed inside the housing, two sides of the conveyor belt are provided with a limiting portion, the number of target garlic seeds is plural, each target garlic seed is located in the limiting portion, and under the limiting effect of the limiting portion, the head or tail of each target garlic seed faces the advancing direction of the conveyor belt, referring to fig. 5, step S110 of fig. 1 includes, but is not limited to, the following steps:
step S510, starting a conveyor belt, a lighting device and a camera;
step S520, shooting a conveyor belt image through a camera under the condition that the lighting device is turned on by a light source;
step S520, a first seed image of each target garlic seed is acquired from the conveyor image.
It should be noted that, referring to fig. 10, two sides of the conveyor belt of this embodiment are provided with a limiting portion, each target garlic seed is placed in the limiting portion, so as to implement the arrangement treatment of the target garlic seeds, under the limiting effect of the limiting portion, the head or tail of each target garlic seed faces the advancing direction of the conveyor belt, based on this structure, the head or tail of the garlic seed in the image of the conveyor belt obtained by the camera faces the advancing direction of the conveyor belt, and only the direction of the garlic seed is determined by judging which of the garlic seed is in the left and right sides of the conveyor belt, thereby providing a favorable condition for the direction identification of the target garlic seed.
It should be noted that, the shooting direction of the camera of the embodiment may be perpendicular to the surface of the conveyor belt in the limiting portion, so that the front view angle image of the conveyor belt with the target garlic seeds is shot, thereby ensuring the accuracy of subsequently dividing the first seed image and identifying the direction of the garlic seeds.
It can be understood that, since the conveyor belt, the lighting device and the camera of the garlic seed direction recognition device of the embodiment are arranged inside the sealed shading shell, the garlic seed direction can be recognized in a relatively airtight shading environment, and the lighting device arranged inside the sealed shading shell can provide stable lighting so as to acquire images with stable imaging quality from the camera; the camera according to the present embodiment is also described. That is, the garlic seed direction recognition device of the present embodiment provides an effective hardware basis for bulk target garlic seed direction recognition.
It can be understood that in the case that the demand for identifying the direction of garlic seeds is large, the automatic identification of the direction of seeds of a large number of target garlic seeds is realized by the garlic seed direction identifying device.
In addition, referring to fig. 6, in some embodiments, the garlic seed direction identifying method of the present embodiment further includes, but is not limited to, the following steps:
step S610, determining illumination intensity of the lighting device;
in step S620, a color filtering threshold is adjusted according to the illumination intensity, wherein the color filtering threshold is determined based on the reserved color and the first filtered color.
It can be appreciated that, because lighting device and camera set up inside sealed shading casing, illumination intensity can influence the imaging effect of camera, and then influences the accuracy to the colour filter effect of first seed image and garlic seed direction discernment, consequently need combine lighting device's illumination intensity adjustment colour filtration threshold value, in addition, this embodiment can also be to different types of cameras, adaptation adjustment colour filtration threshold value.
Additionally, referring to fig. 7, in some embodiments, step S520 of fig. 5 includes, but is not limited to, the following steps:
step S710, identifying a plurality of target garlic seeds from the conveyor belt image;
in step S720, the conveyor belt image is subjected to image segmentation based on the target garlic seeds, so as to obtain a first seed image of each target garlic seed.
It can be appreciated that, referring to fig. 10, since the conveyor belt image directly acquired by the camera includes a plurality of target garlic seed images, it is difficult to directly identify the directions of the plurality of target garlic seeds in the conveyor belt image, and accuracy is low, so that image segmentation is performed from the conveyor belt image to obtain first seed images of each target garlic seed, each first seed image corresponds to one target garlic seed, and an effective data basis can be provided for accurately identifying the directions of garlic seeds.
It should be noted that, the method of image segmentation of the belt image is well known to those skilled in the art, and is not limited herein.
Further, as shown in fig. 8, fig. 8 is a structural diagram of a control device according to an embodiment of the present application. The present invention also provides a control device 800, including:
the processor 810 may be implemented by a general purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided in the embodiments of the present application;
the Memory 820 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a random access Memory (Random Access Memory, RAM). The memory 820 may store an operating system and other application programs, and when the technical solutions provided in the embodiments of the present application are implemented by software or firmware, relevant program codes are stored in the memory 820, and the processor 810 invokes the garlic seed direction identifying method for executing the embodiments of the present application;
an input/output interface 830 for implementing information input and output;
the communication interface 840 is configured to implement communication interaction between the device and other devices, and may implement communication in a wired manner (such as USB, network cable, etc.), or may implement communication in a wireless manner (such as mobile network, WIFI, bluetooth, etc.);
bus 850 transfers information between the various components of the device (e.g., processor 810, memory 820, input/output interface 830, and communication interface 840);
wherein processor 810, memory 820, input/output interface 830, and communication interface 840 enable communication connections among each other within the device via bus 850.
In addition, the embodiment of the application also provides an electronic device, which comprises the control device 800 of the embodiment.
The embodiment of the application also provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program realizes the garlic seed direction identification method when being executed by a processor.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The apparatus embodiments described above are merely illustrative, in which the elements illustrated as separate components may or may not be physically separate, implemented to reside in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and may include any information delivery media. While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the above embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit and scope of the present invention, and these equivalent modifications or substitutions are included in the scope of the present invention as defined in the appended claims.

Claims (10)

1. A garlic seed direction identification method, comprising:
acquiring a first seed image of a target garlic seed;
acquiring a preset color filtering strategy based on the target type of the target garlic seeds, wherein the color filtering strategy records reserved color and first filtering color;
performing color filtering treatment on the first seed image according to the color filtering strategy to obtain a second seed image;
and determining the side of the second seed image, on which the image contour is reserved, as the head direction of the target garlic seed.
2. The method for identifying a direction of garlic seeds according to claim 1, wherein said performing color filtering processing on said first seed image according to said color filtering policy to obtain a second seed image comprises:
determining a color filtering threshold according to the reserved color and the first filtering color;
and performing color filtering processing on the first seed image based on the color filtering threshold value to obtain the second seed image.
3. The method for identifying a direction of garlic seeds according to claim 1, wherein when the target garlic seeds are skin-covered garlic seeds, the color filtering processing is performed on the first seed image according to the color filtering policy to obtain a second seed image, comprising:
determining a garlic skin color of the target garlic seed based on the target species;
determining a second filtered color based on the garlic skin color and the first filtered color;
determining a color filtering threshold according to the second filtering color and the reserved color;
and performing color filtering processing on the first seed image based on the color filtering threshold value to obtain the second seed image.
4. The garlic seed direction recognition method according to claim 1, wherein the determining the side of the second seed image where the image contour remains as the head direction of the target garlic seed comprises:
performing binarization processing on the second seed image to obtain a binarized image;
and determining the direction of the white image outline with the largest area in the binarized image as the head direction of the target garlic seeds.
5. A garlic seed direction identifying method according to any one of claims 1 to 4, being applied to a garlic seed direction identifying device, the garlic seed direction identifying device comprising a sealed light shielding housing, a conveyor belt, a lighting device and a camera, the conveyor belt, the lighting device and the camera being provided inside the sealed light shielding housing, both sides of the conveyor belt being provided with a limiting portion, the number of the target garlic seeds being plural, each of the target garlic seeds being located in the limiting portion, a head or a tail of each of the target garlic seeds being directed toward an advancing direction of the conveyor belt under a limiting effect of the limiting portion, the obtaining a first seed image of the target garlic seeds comprising:
starting the conveyor belt, the lighting device and the camera;
shooting an image of the conveyor belt through the camera under the condition that the lighting device is turned on;
the first seed image of each target garlic seed is acquired from the conveyor belt image.
6. The garlic seed direction identification method according to claim 5, further comprising:
determining an illumination intensity of the lighting device;
and adjusting a color filtering threshold according to the illumination intensity, wherein the color filtering threshold is determined based on the reserved color and the first filtering color.
7. The garlic seed direction identification method according to claim 5, wherein acquiring the first seed image of each of the target garlic seeds from the conveyor belt image comprises:
identifying a plurality of said target garlic seeds from said conveyor belt image;
and carrying out image segmentation on the conveyor belt image based on the target garlic seeds to obtain the first seed image of each target garlic seed.
8. A control device comprising at least one control processor and a memory for communication with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the garlic seed direction identification method of any one of claims 1 to 7.
9. An electronic device comprising the control apparatus according to claim 8.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the garlic seed direction recognition method according to any one of claims 1 to 7.
CN202311787326.9A 2023-12-22 2023-12-22 Garlic seed direction identification method and device, electronic equipment and storage medium Pending CN117876481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311787326.9A CN117876481A (en) 2023-12-22 2023-12-22 Garlic seed direction identification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311787326.9A CN117876481A (en) 2023-12-22 2023-12-22 Garlic seed direction identification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117876481A true CN117876481A (en) 2024-04-12

Family

ID=90589432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311787326.9A Pending CN117876481A (en) 2023-12-22 2023-12-22 Garlic seed direction identification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117876481A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241965A (en) * 2018-08-22 2019-01-18 山东省农业机械科学研究院 The garlic bulbil direction discernment and monitoring operation device and method of image procossing
CN110178481A (en) * 2019-05-22 2019-08-30 青岛理工大学 Bulbil recognition and adjustment method in precise directional planting of gingers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241965A (en) * 2018-08-22 2019-01-18 山东省农业机械科学研究院 The garlic bulbil direction discernment and monitoring operation device and method of image procossing
CN110178481A (en) * 2019-05-22 2019-08-30 青岛理工大学 Bulbil recognition and adjustment method in precise directional planting of gingers

Similar Documents

Publication Publication Date Title
US8422780B2 (en) Method and apparatus of correcting hybrid flash artifacts in digital images
CN111523438B (en) Living body identification method, terminal equipment and electronic equipment
WO2017157034A1 (en) Method, device, and storage medium for identifying two-dimensional code
US11108970B2 (en) Flicker mitigation via image signal processing
CN111784605B (en) Image noise reduction method based on region guidance, computer device and computer readable storage medium
CN110493506B (en) Image processing method and system
EP3849170A1 (en) Image processing method, electronic device, and computer-readable storage medium
KR101361644B1 (en) Image processing device and image defogging method
JP7343090B2 (en) Image processing system and method
EP3306915A1 (en) Method and apparatus for controlling image data
CN108986097A (en) A kind of camera lens hazes condition detection method, computer installation and readable storage medium storing program for executing
KR20170017911A (en) Methods and systems for color processing of digital images
CN111951322B (en) Image pickup module quality detection method, device and computer storage medium
CN109379534B (en) Method, device, terminal and storage medium for processing image
CN109697701B (en) Method and image capturing device for detecting fog in a scene
CN111008563B (en) Dim light scene seed germination detection method and device and readable storage medium
JP5740147B2 (en) Light source estimation apparatus and light source estimation method
CN105323495A (en) Region based shutter adaptation method for image exposure
US6822690B2 (en) Image processing apparatus, image pickup apparatus, and image processing method capable of eliminating effect of outside light
CN110493531B (en) Image processing method and system
CN115361507B (en) Imaging method, and automatic exposure control method and device for dyeing imaging
CN113449730A (en) Image processing method, system, automatic walking device and readable storage medium
US8885971B2 (en) Image processing apparatus, image processing method, and storage medium
CN112164072A (en) Visible light imaging communication decoding method, device, equipment and medium
CN117876481A (en) Garlic seed direction identification method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination