WO2022262585A1 - Plant picture recognition method, readable storage medium, and electronic device - Google Patents

Plant picture recognition method, readable storage medium, and electronic device Download PDF

Info

Publication number
WO2022262585A1
WO2022262585A1 PCT/CN2022/096705 CN2022096705W WO2022262585A1 WO 2022262585 A1 WO2022262585 A1 WO 2022262585A1 CN 2022096705 W CN2022096705 W CN 2022096705W WO 2022262585 A1 WO2022262585 A1 WO 2022262585A1
Authority
WO
WIPO (PCT)
Prior art keywords
plant
category
species
recognition
picture
Prior art date
Application number
PCT/CN2022/096705
Other languages
French (fr)
Chinese (zh)
Inventor
徐青松
李青
Original Assignee
杭州睿胜软件有限公司
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 杭州睿胜软件有限公司 filed Critical 杭州睿胜软件有限公司
Publication of WO2022262585A1 publication Critical patent/WO2022262585A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Definitions

  • the invention relates to the field of computer technology, in particular to a plant picture recognition method, a readable storage medium and electronic equipment.
  • APPs applications for identifying objects to be identified
  • these applications usually receive images from users (including static images, dynamic images, and videos, etc.), and identify objects to be identified in the images based on object recognition models established by artificial intelligence technology to obtain recognition results.
  • the recognition result obtained when the object is a living thing may be the biological classification of the object to be recognized recognized by the object recognition model, for example, the taxonomic unit may be Family, Genus, or Species.
  • the user takes pictures of parts such as stems, stems, and seedlings, it will be difficult to obtain more accurate species information. If the results of the identified species are directly output, it is likely to be wrong. This can mislead or confuse users.
  • the object of the present invention is to provide a plant picture identification method, a readable storage medium and an electronic device, so as to solve the problem of inaccurate information obtained when identifying plants.
  • the present invention provides a plant picture recognition method, comprising:
  • the species recognition result of the current plant picture is acquired and output.
  • the categories of the part recognition results are differentiated based on the accuracy of plant part recognition to species.
  • the identified categories include a first category and a second category, and the accuracy of identifying species from plant parts of the first category is lower than that of the second category. Accuracy of identification of plant parts to species.
  • the method of obtaining and outputting the species recognition result of the current plant picture based on the category of the part recognition result includes:
  • the outputted species recognition result is the genus information of the plant corresponding to the current plant picture
  • the outputted species recognition result is the species information of the plant corresponding to the current plant picture.
  • the plant picture recognition method further includes:
  • the obtained part recognition results are more than two and include the part recognition results whose category belongs to the second category, then according to the part recognition results whose categories belong to the second category, obtain The species identification results of the currently described plant pictures are output.
  • the plant picture recognition method further includes:
  • the obtained species identification result includes genus information and species information of the current plant picture, then output the species information.
  • the part recognition result is obtained through a pre-trained plant part recognition model
  • the species recognition result is obtained through a pre-trained plant classification recognition model and output.
  • the plant part recognition model and/or the plant classification recognition model are trained using a neural network model.
  • the present invention also provides a readable storage medium, where a computer program is stored in the readable storage medium, and when the computer program is executed, the plant picture recognition method as described above is realized.
  • the present invention also provides an electronic device.
  • the electronic device includes a processor and a memory, and a computer program is stored in the memory.
  • the computer program is executed by the processor, the plant picture recognition method as described above is realized.
  • the plant picture recognition method, readable storage medium and electronic device include: obtaining the part recognition result of the current plant picture; distinguishing the categories of the part recognition result, and, according to the distinguished
  • the category of the part recognition result is to obtain and output the species recognition result of the current plant picture. That is, when identifying plant pictures, according to the category of plant parts, the final output recognition results are adjusted in different situations. For example, if it is difficult for the user to capture more accurate species information, only the genus information can be output. , and if the user can obtain more accurate species information in the photographed part, the species information can be output at this time, which can improve the recognition accuracy and avoid misleading or confusing the user.
  • FIG. 1 is a flow chart of a plant picture recognition method provided by an embodiment of the present invention.
  • an embodiment of the present invention provides a plant picture recognition method, including the following steps:
  • the plant picture recognition method provided by the embodiment of the present invention, when the plant picture taken by the user is recognized, according to the category of the plant part, the final output recognition result is adjusted in different situations. For example, if the part taken by the user is difficult to obtain Accurate species information can only be output to the genus information, and if the user can obtain more accurate species information in the photographed part, then the species information can be output, so that the recognition accuracy can be improved and the user can be avoided. Mislead or cause confusion.
  • the part recognition result can be obtained through the pre-trained plant part recognition model, and the plant part recognition model can be obtained by using a neural network model to train complete images of different plants and images of various parts of different plants .
  • the training step of the plant part recognition model may include: obtaining a training sample set, each sample in the training sample set is marked with its part information (including stem, stem, seedling, flower, fruit, leaf, etc.); obtaining a test sample set , each sample in the test sample set is marked with its part information, wherein the test sample set is different from the training sample set; the plant part recognition model is trained based on the training sample set; based on the The test sample set tests the plant part recognition model; if the recognition accuracy does not meet the requirements, then increase the number of image samples in the training sample set, and use the updated training sample set to retrain the plant part recognition model, Until the recognition accuracy rate of the trained plant part recognition model meets the requirements. If the recognition accuracy meets the requirements, the training ends. In one embodiment, whether the training can end can be judged based on whether the recognition accuracy rate is lower than a preset accuracy rate. In this way, the trained plant part recognition model whose output accuracy rate meets the requirements can be used for object category recognition.
  • a certain number of image samples marked with corresponding information are acquired for each plant category, and the number of image samples prepared for each plant category may be equal or different.
  • the number of samples in the training sample set is significantly greater than the number of samples in the test sample set, for example, the number of samples in the test sample set can account for 5% to 20% of the total image sample number, while the corresponding training sample set The number of samples of can account for 80% to 95% of the total image sample number.
  • the number of samples in the training sample set and the test sample set can be adjusted as needed.
  • the neural network model may be a deep convolutional neural network (CNN) or a deep residual network (Resnet).
  • CNN deep convolutional neural network
  • Resnet deep residual network
  • the deep convolutional neural network is a deep feedforward neural network, which uses a convolution kernel to scan the plant image, extracts the features to be identified in the plant image, and then identifies the features to be identified in the plant.
  • the original plant images can be directly input into the deep convolutional neural network model without preprocessing the plant images.
  • the deep convolutional neural network model has higher recognition accuracy and recognition efficiency.
  • the deep residual network model Compared with the deep convolutional neural network model, the deep residual network model adds an identity mapping layer, which can avoid the accuracy rate saturation caused by the convolutional neural network, or even decline phenomenon.
  • the identity mapping function of the identity mapping layer in the residual network model needs to satisfy: the sum of the identity mapping function and the input of the residual network model is equal to the output of the residual network model. After the introduction of identity mapping, the residual network model has more obvious changes in the output, so the recognition accuracy and recognition efficiency of the plant part recognition model can be greatly improved.
  • step S12 the classification of the part identification result may be distinguished based on the accuracy of plant part identification to species.
  • different parts of various plants are divided into two categories: the first category and the second category, and the accuracy of identifying species from the plant parts of the first category is lower than that of the second category.
  • Plant parts identify the accuracy of species
  • the plant parts of the first category may include: stems, stems and seedlings, etc.
  • the plant parts of the second category may include: flowers, fruits and leaves, etc.
  • the specific division of the first category and the second category does not constitute a limitation to the present application.
  • the plant parts of the first category may also include buds, flower buds, roots, etc.
  • the parts of the species are accurately identified, or, the plant parts of the first category also include partially missing flowers, fruits, leaves and the like.
  • step S13 of this embodiment the method of obtaining and outputting the species identification result of the current plant picture based on the category of the part identification result includes:
  • the outputted species recognition result is the genus information of the plant corresponding to the current plant picture; and, if the category of the part recognition result is the second category, then The outputted species identification result is the species information of the plant corresponding to the current plant picture.
  • the current plant picture may include multiple parts, for example, the picture includes both flowers and stems. Therefore, in step S11, the obtained part recognition results may be more than two. Based on this, in this embodiment, further, if in step S11, more than two part recognition results are obtained, and the part recognition results whose category belongs to the second category are included, then according to the category belonging to the For the part recognition result of the second category, the species recognition result of the current plant picture is acquired and output.
  • the current picture of a plant is identified as including stems, leaves, and flowers, wherein the stems belong to the first category, and the leaves and flowers belong to the second category, so the species is classified according to the leaves and flowers. Recognize and output a variety of information. In this way, while ensuring the accuracy of recognition, more specific recognition results can also be fed back to the user.
  • step S11 if in step S11, if more than two part recognition results are obtained, then according to the category of each part recognition result, a species recognition result is obtained respectively; if the obtained species If the recognition result includes the genus information and species information of the current plant picture, the species information is output. In this way, while ensuring the recognition accuracy, more specific recognition results can also be fed back to the user.
  • the obtained species identification result is genus information
  • the flowers belong to the second category, therefore, the acquired The species identification result of is the species information, therefore, the final output is the species information based on flower part identification.
  • step S11 if in step S11, if more than two part recognition results are obtained, then according to the category of each part recognition result, a species recognition result is obtained respectively; if the obtained species If the recognition result includes the genus information and species information of the current plant picture, then output the species information, if the acquired recognition result only includes the genus information or species information of the current plant picture, then output The genus information or species information with the most repetitions among all the obtained species identification results. Based on this method, the accuracy of recognition can be improved.
  • step S13 the species recognition result can be obtained and output through the pre-trained plant classification recognition model.
  • the plant classification recognition model is obtained by using the neural network model to train complete images of different plants and images of various parts of different plants.
  • the training process of the plant classification recognition model can be similar to the training process of the plant part recognition model, training is carried out through training samples, and testing is carried out through test samples until the recognition accuracy of the plant classification recognition model is greater than or equal to the preset When the accuracy rate is reached, the training is completed.
  • the plant classification recognition model may also be a deep convolutional neural network (CNN) or a deep residual network (Resnet).
  • the corresponding information labeled with each image sample for the plant classification recognition model training is a plant category, which may include plant scientific names, nicknames, category names of botanical classifications, and the like.
  • the image samples obtained for each plant category may include as much as possible different shooting angles, different lighting conditions, and different weathers (for example, the same plant may have different forms in sunny days and rainy days), different seasons ( For example, the same plant may have different forms in different seasons), different time (for example, the same plant may have different forms in the morning and evening every day), different growth environments (for example, the same plant may grow in different forms indoors and outdoors), different geographical Location (for example, the same plant may grow differently in different geographic locations).
  • the corresponding information marked for each image sample may also include information such as shooting angle, illumination, weather, season, time, growth environment or geographic location of the image sample.
  • This embodiment also provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed, the plant picture recognition method as described in this embodiment is implemented.
  • the readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device, such as but not limited to an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or the above-mentioned any suitable combination. More specific examples (a non-exhaustive list) of readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device, and any suitable combination of the above.
  • an instruction execution device such as but not limited to an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or the above-mentioned any suitable combination. More specific examples (a non-exhaustive list) of readable storage media include: portable computer disks, hard disks
  • the computer programs described herein may be downloaded from a readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device over a network, such as the Internet, local area network, wide area network, and/or wireless network.
  • a computer program for carrying out operations of the present invention may be in the form of assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or in one or more programming languages source or object code written in any combination of .
  • the computer program can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server .
  • electronic circuits such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), can be customized by utilizing state information from a computer program that can execute computer-programmable The program instructions are read to implement various aspects of the invention.
  • FPGAs field programmable gate arrays
  • PLAs programmable logic arrays
  • This embodiment also provides an electronic device, the electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the plant as described in this embodiment is realized.
  • Image recognition method the electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the plant as described in this embodiment is realized.
  • the memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory may also be at least one storage device located far away from the processor.
  • the processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the processor is the control center of the electronic equipment, and uses various interfaces and lines to connect various parts of the entire electronic equipment.
  • the electronic device may include one or more cameras for capturing still images or recording video streams, and all components for connecting these elements to each other. While the electronic devices may include full-size personal computing devices, they may alternatively include mobile computing devices capable of wirelessly exchanging data with servers over a network, such as the Internet.
  • the electronic device may be, for example, a smartphone, or a device such as a PDA with wireless support, a tablet PC or a netbook with information available via the Internet. In another example, the electronic device may be a wearable computing system.
  • the electronic device may further include a communication interface and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus.
  • the communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the communication interface is used for communication between the electronic device and other devices.
  • the plant picture recognition method, readable storage medium, and electronic device include: acquiring the part recognition result of the current plant picture; distinguishing the categories of the part recognition result, and, according to the difference The category of the part recognition result is obtained, and the species recognition result of the current plant picture is obtained and output. That is, when identifying plant pictures, according to the category of plant parts, the final output recognition results are adjusted in different situations. For example, if it is difficult for the user to capture more accurate species information, only the genus information can be output. , and if the user can obtain more accurate species information in the photographed part, the species information can be output at this time, which can improve the recognition accuracy and avoid misleading or confusing the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

The present invention provides a plant picture recognition method, a readable storage medium, and an electronic device. The plant picture recognition method comprises: obtaining a part identification result of a current plant picture; identifying the category of the part identification result; and obtaining a species recognition result of the current plant picture according to the identified category of the part recognition result, and outputting the species recognition result. That is, during recognition of a plant picture, a final output recognition result is adjusted in different situations according to the category of a plant part. For example, if it is difficult to obtain relatively accurate species information from the part photographed by a user, only information of genus can be output; and if the relatively accurate species information can be obtained from the part photographed by the user, the information of species can be output in this case, such that the recognition accuracy can be improved, and the misleading and confusion brought to the user can be avoided.

Description

植物图片识别方法、可读存储介质及电子设备Plant picture recognition method, readable storage medium and electronic device 技术领域technical field
本发明涉及计算机技术领域,特别涉及一种植物图片识别方法、可读存储介质及电子设备。The invention relates to the field of computer technology, in particular to a plant picture recognition method, a readable storage medium and electronic equipment.
背景技术Background technique
计算机技术领域中,存在多种对待识别对象进行识别的应用(APP),例如用于识别植物的应用等。这些应用通常接收来自用户的影像(包括静态图像、动态图像、以及视频等),并基于由人工智能技术建立的对象识别模型对影像中的待识别对象进行识别,以得到识别结果。例如,对象为生物时得到的识别结果可以是对象识别模型所识别出的待识别对象生物学分类,例如分类单位可以为科(Family)、属(Genus)或种(Species)等。在植物识别处理过程中,如果用户拍摄的实际上是例如干、茎、苗等部分时,会比较难获得较为准确的物种信息,如果直接输出识别到种的结果,很有可能是错误的,这样会给用户带来误导或者是引起其困惑。In the field of computer technology, there are various applications (APPs) for identifying objects to be identified, such as applications for identifying plants. These applications usually receive images from users (including static images, dynamic images, and videos, etc.), and identify objects to be identified in the images based on object recognition models established by artificial intelligence technology to obtain recognition results. For example, the recognition result obtained when the object is a living thing may be the biological classification of the object to be recognized recognized by the object recognition model, for example, the taxonomic unit may be Family, Genus, or Species. In the process of plant identification, if the user takes pictures of parts such as stems, stems, and seedlings, it will be difficult to obtain more accurate species information. If the results of the identified species are directly output, it is likely to be wrong. This can mislead or confuse users.
发明内容Contents of the invention
本发明的目的在于提供一种植物图片识别方法、可读存储介质及电子设备,以解决在对植物进行识别时得到的信息不准确的问题。The object of the present invention is to provide a plant picture identification method, a readable storage medium and an electronic device, so as to solve the problem of inaccurate information obtained when identifying plants.
为解决上述技术问题,本发明提供一种植物图片识别方法,包括:In order to solve the above technical problems, the present invention provides a plant picture recognition method, comprising:
获取当前植物图片的部位识别结果;Obtain the part recognition result of the current plant picture;
对所述部位识别结果的类别进行区分;以及,distinguishing categories of the part recognition results; and,
根据区分出的所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出。According to the distinguished category of the part recognition result, the species recognition result of the current plant picture is acquired and output.
可选的,在所述的植物图片识别方法中,基于植物部位识别到种的准确度对所述部位识别结果的类别进行区分。Optionally, in the plant picture recognition method, the categories of the part recognition results are differentiated based on the accuracy of plant part recognition to species.
可选的,在所述的植物图片识别方法中,区分出的所述类别包括第一类别和第二类别,所述第一类别的植物部位识别到种的准确度小于所述第二类 别的植物部位识别到种的准确度。Optionally, in the plant picture identification method, the identified categories include a first category and a second category, and the accuracy of identifying species from plant parts of the first category is lower than that of the second category. Accuracy of identification of plant parts to species.
可选的,在所述的植物图片识别方法中,所述基于所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出的方法包括:Optionally, in the plant picture recognition method, the method of obtaining and outputting the species recognition result of the current plant picture based on the category of the part recognition result includes:
若所述部位识别结果的类别为第一类别,则输出的所述物种识别结果为当前所述植物图片所对应植物的属信息;If the category of the part recognition result is the first category, the outputted species recognition result is the genus information of the plant corresponding to the current plant picture;
若所述部位识别结果的类别为第二类别,则输出的所述物种识别结果为当前所述植物图片所对应植物的种信息。If the category of the part recognition result is the second category, the outputted species recognition result is the species information of the plant corresponding to the current plant picture.
可选的,在所述的植物图片识别方法中,所述植物图片识别方法还包括:Optionally, in the plant picture recognition method, the plant picture recognition method further includes:
若获取的所述部位识别结果为两个以上,且包括所述类别属于所述第二类别的所述部位识别结果,则根据所述类别属于所述第二类别的所述部位识别结果,获取当前所述植物图片的物种识别结果并输出。If the obtained part recognition results are more than two and include the part recognition results whose category belongs to the second category, then according to the part recognition results whose categories belong to the second category, obtain The species identification results of the currently described plant pictures are output.
可选的,在所述的植物图片识别方法中,所述植物图片识别方法还包括:Optionally, in the plant picture recognition method, the plant picture recognition method further includes:
若获取的所述部位识别结果为两个以上,则根据各所述部位识别结果的类别,分别相应获取一物种识别结果;If there are more than two part recognition results obtained, then according to the category of each part recognition result, one species recognition result is correspondingly obtained;
若获取的所述物种识别结果中包括当前所述植物图片的属信息及种信息,则输出所述种信息。If the obtained species identification result includes genus information and species information of the current plant picture, then output the species information.
可选的,在所述的植物图片识别方法中,通过预先训练得到的植物部位识别模型获取所述部位识别结果,通过预先训练得到的植物分类识别模型获取所述物种识别结果并输出。Optionally, in the plant picture recognition method, the part recognition result is obtained through a pre-trained plant part recognition model, and the species recognition result is obtained through a pre-trained plant classification recognition model and output.
可选的,在所述的植物图片识别方法中,所述植物部位识别模型和/或所述植物分类识别模型采用神经网络模型训练得到。Optionally, in the plant picture recognition method, the plant part recognition model and/or the plant classification recognition model are trained using a neural network model.
本发明还提供一种可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序被执行时,实现如上所述的植物图片识别方法。The present invention also provides a readable storage medium, where a computer program is stored in the readable storage medium, and when the computer program is executed, the plant picture recognition method as described above is realized.
本发明还提供一种电子设备,所述电子设备包括处理器和存储器,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,实现如上所述的植物图片识别方法。The present invention also provides an electronic device. The electronic device includes a processor and a memory, and a computer program is stored in the memory. When the computer program is executed by the processor, the plant picture recognition method as described above is realized.
综上所述,本发明提供的植物图片识别方法、可读存储介质及电子设备,包括:获取当前植物图片的部位识别结果;对所述部位识别结果的类别进行区分,以及,根据区分出的所述部位识别结果的类别,获取当前所述植物图 片的物种识别结果并输出。即,在对植物图片进行识别时,根据植物部位的类别,对最终输出识别结果做不同情况的调整,例如,若用户拍摄部分较难获取较为准确的物种信息,则可仅输出到属的信息,而若用户拍摄部分可以获取较为准确的物种信息,这时便可输出到种的信息,如此便可提高识别准确性,避免给用户带来误导或引起其困惑。In summary, the plant picture recognition method, readable storage medium and electronic device provided by the present invention include: obtaining the part recognition result of the current plant picture; distinguishing the categories of the part recognition result, and, according to the distinguished The category of the part recognition result is to obtain and output the species recognition result of the current plant picture. That is, when identifying plant pictures, according to the category of plant parts, the final output recognition results are adjusted in different situations. For example, if it is difficult for the user to capture more accurate species information, only the genus information can be output. , and if the user can obtain more accurate species information in the photographed part, the species information can be output at this time, which can improve the recognition accuracy and avoid misleading or confusing the user.
附图说明Description of drawings
图1为本发明实施例提供的植物图片识别方法的流程图。FIG. 1 is a flow chart of a plant picture recognition method provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、优点和特征更加清楚,以下结合附图和具体实施例对本发明作详细说明。需说明的是,附图均采用非常简化的形式且未按比例绘制,仅用以方便、明晰地辅助说明本发明实施例的目的。此外,附图所展示的结构往往是实际结构的一部分。特别的,各附图需要展示的侧重点不同,有时会采用不同的比例。还应当理解的是,除非特别说明或者指出,否则说明书中的术语“第一”、“第二”、“第三”等描述仅仅用于区分说明书中的各个组件、元素、步骤等,而不是用于表示各个组件、元素、步骤之间的逻辑关系或者顺序关系等。In order to make the purpose, advantages and features of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the drawings are all in very simplified form and not drawn to scale, and are only used to facilitate and clearly assist the purpose of illustrating the embodiments of the present invention. In addition, the structures shown in the drawings are often a part of the actual structure. In particular, each drawing needs to display different emphases, and sometimes uses different scales. It should also be understood that, unless otherwise specified or pointed out, the terms “first”, “second”, “third” and other descriptions in the specification are only used to distinguish each component, element, step, etc. in the specification, rather than It is used to express the logical relationship or sequence relationship between various components, elements, and steps.
如图1所示,本发明实施例提供一种植物图片识别方法,包括如下步骤:As shown in Figure 1, an embodiment of the present invention provides a plant picture recognition method, including the following steps:
S11,获取当前植物图片的部位识别结果;S11, acquiring the part recognition result of the current plant picture;
S12,对所述部位识别结果的类别进行区分;S12, distinguishing the categories of the part recognition results;
S13,根据区分出的所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出。S13. Acquire and output the species identification result of the current plant picture according to the distinguished category of the part identification result.
利用本发明实施例提供的植物图片识别方法,在对用户拍摄的植物图片进行识别时,根据植物部位的类别,对最终输出识别结果做不同情况的调整,例如,若用户拍摄部分较难获取较为准确的物种信息,则可仅输出到属的信息,而若用户拍摄部分可以获取较为准确的物种信息,这时便可输出到种的信息,如此便可提高识别准确性,避免给用户带来误导或引起其困惑。Using the plant picture recognition method provided by the embodiment of the present invention, when the plant picture taken by the user is recognized, according to the category of the plant part, the final output recognition result is adjusted in different situations. For example, if the part taken by the user is difficult to obtain Accurate species information can only be output to the genus information, and if the user can obtain more accurate species information in the photographed part, then the species information can be output, so that the recognition accuracy can be improved and the user can be avoided. Mislead or cause confusion.
以下对上述步骤S11~S13做进一步详细描述。The above steps S11 to S13 will be further described in detail below.
步骤S11中,可通过预先训练得到的植物部位识别模型获取所述部位识别结果,所述植物部位识别模型可通过利用神经网络模型对不同植物的完整图像以及不同植物的各个部位的图像进行训练得到。In step S11, the part recognition result can be obtained through the pre-trained plant part recognition model, and the plant part recognition model can be obtained by using a neural network model to train complete images of different plants and images of various parts of different plants .
所述植物部位识别模型的训练步骤可以包括:获取训练样本集,所述训练样本集中的每一样本标注其部位信息(包括干、茎、苗、花、果实、叶片等);获取测试样本集,所述测试样本集中的每一样本标注有其部位信息,其中,所述测试样本集不同于所述训练样本集;基于所述训练样本集对所述植物部位识别模型进行训练;基于所述测试样本集对所述植物部位识别模型进行测试;若识别准确率不满足要求,则增加训练样本集中的图像样本的数量,并利用更新的训练样本集重新对所述植物部位识别模型进行训练,直到经过训练的所述植物部位识别模型的识别准确率满足要求为止。若识别准确率满足要求,则训练结束。在一个实施例中,可以基于识别准确率是否小于预设准确率来判断训练是否可以结束。如此,输出准确率满足要求的经过训练的所述植物部位识别模型可以用于进行对象类别的识别。The training step of the plant part recognition model may include: obtaining a training sample set, each sample in the training sample set is marked with its part information (including stem, stem, seedling, flower, fruit, leaf, etc.); obtaining a test sample set , each sample in the test sample set is marked with its part information, wherein the test sample set is different from the training sample set; the plant part recognition model is trained based on the training sample set; based on the The test sample set tests the plant part recognition model; if the recognition accuracy does not meet the requirements, then increase the number of image samples in the training sample set, and use the updated training sample set to retrain the plant part recognition model, Until the recognition accuracy rate of the trained plant part recognition model meets the requirements. If the recognition accuracy meets the requirements, the training ends. In one embodiment, whether the training can end can be judged based on whether the recognition accuracy rate is lower than a preset accuracy rate. In this way, the trained plant part recognition model whose output accuracy rate meets the requirements can be used for object category recognition.
每个植物类别获取一定数量的标注有对应信息的图像样本,为每个植物类别准备的图像样本的数量可以相等也可以不等。通常训练样本集内的样本的数量明显大于测试样本集内的样本的数量,例如,测试样本集内的样本的数量可以占总图像样本数量的5%到20%,而相应的训练样本集内的样本的数量可以占总图像样本数量的80%到95%。本领域技术人员应该理解的是,训练样本集和测试样本集内的样本数量可以根据需要来调整。A certain number of image samples marked with corresponding information are acquired for each plant category, and the number of image samples prepared for each plant category may be equal or different. Usually the number of samples in the training sample set is significantly greater than the number of samples in the test sample set, for example, the number of samples in the test sample set can account for 5% to 20% of the total image sample number, while the corresponding training sample set The number of samples of can account for 80% to 95% of the total image sample number. Those skilled in the art should understand that the number of samples in the training sample set and the test sample set can be adjusted as needed.
所述神经网络模型可以是深度卷积神经网络(CNN)或深度残差网络(Resnet)。其中,深度卷积神经网络为深度前馈神经网络,其利用卷积核扫描植物图像,提取出植物图像中待识别的特征,进而对植物待识别的特征进行识别。另外,在对植物图像进行识别的过程中,可以直接将原始植物图像输入深度卷积神经网络模型,而无需对植物图像进行预处理。深度卷积神经网络模型相比于其他的识别模型,具备更高的识别准确率以及识别效率。而深度残差网络模型相比于深度卷积神经网络模型增加了恒等映射层,可以避免随着网络深度(网络中叠层的数量)的增加,卷积神经网络造成的准确率饱和、甚至下降的现象。残差网络模型中恒等映射层的恒等映射函数需要满 足:恒等映射函数与残差网络模型的输入之和等于残差网络模型的输出。引入恒等映射以后,残差网络模型对输出的变化更加明显,因此可以大大提高植物部位识别模型的识别准确率和识别效率。The neural network model may be a deep convolutional neural network (CNN) or a deep residual network (Resnet). Among them, the deep convolutional neural network is a deep feedforward neural network, which uses a convolution kernel to scan the plant image, extracts the features to be identified in the plant image, and then identifies the features to be identified in the plant. In addition, in the process of recognizing plant images, the original plant images can be directly input into the deep convolutional neural network model without preprocessing the plant images. Compared with other recognition models, the deep convolutional neural network model has higher recognition accuracy and recognition efficiency. Compared with the deep convolutional neural network model, the deep residual network model adds an identity mapping layer, which can avoid the accuracy rate saturation caused by the convolutional neural network, or even decline phenomenon. The identity mapping function of the identity mapping layer in the residual network model needs to satisfy: the sum of the identity mapping function and the input of the residual network model is equal to the output of the residual network model. After the introduction of identity mapping, the residual network model has more obvious changes in the output, so the recognition accuracy and recognition efficiency of the plant part recognition model can be greatly improved.
对于植物来说,当识别的部位是干、茎、苗等,则会比较难获得较为准确的物种信息,当识别的部位是花、果实、叶片等,则较易获得准确的物种信息,故而步骤S12中,可基于植物部位识别到种的准确度对所述部位识别结果的类别进行区分。For plants, when the identified parts are stems, stems, seedlings, etc., it will be more difficult to obtain more accurate species information; when the identified parts are flowers, fruits, leaves, etc., it is easier to obtain accurate species information, so In step S12, the classification of the part identification result may be distinguished based on the accuracy of plant part identification to species.
本实施例中,较佳的,将各种植物的不同部位分成两个类别:第一类别和第二类别,所述第一类别的植物部位识别到种的准确度小于所述第二类别的植物部位识别到种的准确度,所述第一类别的植物部位可包括:干、茎和苗等,所述第二类别的植物部位可包括:花、果实和叶片等,这里需要理解的是,所述第一类别和所述第二类别的具体划分不构成对于本申请的限制,例如,在另外一些实施例中,所述第一类别的植物部位还可包括芽、花苞、根等不易准确识别到种的部位,又或者,所述第一类别的植物部位还包括有部分缺失的花、果实和叶片等。In this embodiment, preferably, different parts of various plants are divided into two categories: the first category and the second category, and the accuracy of identifying species from the plant parts of the first category is lower than that of the second category. Plant parts identify the accuracy of species, the plant parts of the first category may include: stems, stems and seedlings, etc., and the plant parts of the second category may include: flowers, fruits and leaves, etc. It should be understood here that The specific division of the first category and the second category does not constitute a limitation to the present application. For example, in some other embodiments, the plant parts of the first category may also include buds, flower buds, roots, etc. The parts of the species are accurately identified, or, the plant parts of the first category also include partially missing flowers, fruits, leaves and the like.
进一步的,本实施例步骤S13中,所述基于所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出的方法包括:Further, in step S13 of this embodiment, the method of obtaining and outputting the species identification result of the current plant picture based on the category of the part identification result includes:
若所述部位识别结果的类别为第一类别,则输出的所述物种识别结果为当前所述植物图片所对应植物的属信息;以及,若所述部位识别结果的类别为第二类别,则输出的所述物种识别结果为当前所述植物图片所对应植物的种信息。If the category of the part recognition result is the first category, the outputted species recognition result is the genus information of the plant corresponding to the current plant picture; and, if the category of the part recognition result is the second category, then The outputted species identification result is the species information of the plant corresponding to the current plant picture.
当前植物图片可能存在包括多个部位的情况,例如图片中既包括花,也包括茎,因此,步骤S11中,获取的所述部位识别结果可能为两个以上。基于此,本实施例中,进一步的,若步骤S11中,获取的所述部位识别结果为两个以上,且包括类别属于所述第二类别的所述部位识别结果,则根据类别属于所述第二类别的所述部位识别结果,获取当前所述植物图片的物种识别结果并输出。The current plant picture may include multiple parts, for example, the picture includes both flowers and stems. Therefore, in step S11, the obtained part recognition results may be more than two. Based on this, in this embodiment, further, if in step S11, more than two part recognition results are obtained, and the part recognition results whose category belongs to the second category are included, then according to the category belonging to the For the part recognition result of the second category, the species recognition result of the current plant picture is acquired and output.
例如,若当前所述植物图片,经识别包括茎、叶和花三个部位,其中茎属于所述第一类别,而叶和花属于所述第二类别,故根据叶和花对其物种进 行识别,输出种信息,如此,在保证识别准确度的同时,也可反馈给用户更具体的识别结果。For example, if the current picture of a plant is identified as including stems, leaves, and flowers, wherein the stems belong to the first category, and the leaves and flowers belong to the second category, so the species is classified according to the leaves and flowers. Recognize and output a variety of information. In this way, while ensuring the accuracy of recognition, more specific recognition results can also be fed back to the user.
在另外一些实施例中,若步骤S11中,若获取的所述部位识别结果为两个以上,则根据各所述部位识别结果的类别,分别相应获取一物种识别结果;若获取的所述物种识别结果中包括当前所述植物图片的属信息及种信息,则输出所述种信息,如此,在保证识别准确度的同时,也可反馈给用户更具体的识别结果。In some other embodiments, if in step S11, if more than two part recognition results are obtained, then according to the category of each part recognition result, a species recognition result is obtained respectively; if the obtained species If the recognition result includes the genus information and species information of the current plant picture, the species information is output. In this way, while ensuring the recognition accuracy, more specific recognition results can also be fed back to the user.
例如,若当前所述植物图片,经识别包括茎和花两个部位,其中茎属于所述第二类别,因此,获取的物种识别结果为属信息,花属于所述第二类别,因此,获取的物种识别结果为种信息,因此,最终输出基于花部位识别的种信息。For example, if the current plant picture is identified to include stems and flowers, wherein the stems belong to the second category, therefore, the obtained species identification result is genus information, and the flowers belong to the second category, therefore, the acquired The species identification result of is the species information, therefore, the final output is the species information based on flower part identification.
在另外一些实施例中,若步骤S11中,若获取的所述部位识别结果为两个以上,则根据各所述部位识别结果的类别,分别相应获取一物种识别结果;若获取的所述物种识别结果中包括当前所述植物图片的属信息及种信息,则输出所述种信息,若获取的所述物中识别结果中仅包括当前所述植物图片的属信息或种信息,则相应输出获取的所有所述物种识别结果中重复次数最多的所述属信息或种信息。基于该方法,可提高识别的准确性。In some other embodiments, if in step S11, if more than two part recognition results are obtained, then according to the category of each part recognition result, a species recognition result is obtained respectively; if the obtained species If the recognition result includes the genus information and species information of the current plant picture, then output the species information, if the acquired recognition result only includes the genus information or species information of the current plant picture, then output The genus information or species information with the most repetitions among all the obtained species identification results. Based on this method, the accuracy of recognition can be improved.
步骤S13中,可通过预先训练得到的植物分类识别模型获取所述物种识别结果并输出。所述植物分类识别模型通过利用神经网络模型对不同植物的完整图像以及不同植物的各个部位的图像训练得到。In step S13, the species recognition result can be obtained and output through the pre-trained plant classification recognition model. The plant classification recognition model is obtained by using the neural network model to train complete images of different plants and images of various parts of different plants.
所述植物分类识别模型的训练过程可与所述植物部位识别模型的训练过程类似,通过训练样本进行训练,通过测试样本进行测试,直至所述植物分类识别模型的识别准确率大于或等于预设准确率时,完成训练。另外,同样的,所述植物分类识别模型也可以是深度卷积神经网络(CNN)或深度残差网络(Resnet)。The training process of the plant classification recognition model can be similar to the training process of the plant part recognition model, training is carried out through training samples, and testing is carried out through test samples until the recognition accuracy of the plant classification recognition model is greater than or equal to the preset When the accuracy rate is reached, the training is completed. In addition, similarly, the plant classification recognition model may also be a deep convolutional neural network (CNN) or a deep residual network (Resnet).
与所述植物部位识别模型的训练不同的是,进行所述植物分类识别模型训练的每个图像样本标注的对应信息为植物类别,可包括植物的学名、别称、植物学分类的类别名称等。较佳的,为每个植物类别获取的图像样本可以尽可能包括该类别的植物的不同拍摄角度、不同光照条件、不同天气(例如同 一植物在艳阳天和雨天的形态可能不同)、不同季节(例如同一植物在不同季节的形态可能不同)、不同时间(例如同一植物在每天的早晨和夜晚的形态可能不同)、不同生长环境(例如同一植物在室内和室外生长的形态可能不同)、不同地理位置(例如同一植物在不同的地理位置生长的形态可能不同)的图像。在这些情况下,为每个图像样本标注的对应信息还可以包括该图像样本的拍摄角度、光照、天气、季节、时间、生长环境或地理位置等信息。Different from the training of the plant part recognition model, the corresponding information labeled with each image sample for the plant classification recognition model training is a plant category, which may include plant scientific names, nicknames, category names of botanical classifications, and the like. Preferably, the image samples obtained for each plant category may include as much as possible different shooting angles, different lighting conditions, and different weathers (for example, the same plant may have different forms in sunny days and rainy days), different seasons ( For example, the same plant may have different forms in different seasons), different time (for example, the same plant may have different forms in the morning and evening every day), different growth environments (for example, the same plant may grow in different forms indoors and outdoors), different geographical Location (for example, the same plant may grow differently in different geographic locations). In these cases, the corresponding information marked for each image sample may also include information such as shooting angle, illumination, weather, season, time, growth environment or geographic location of the image sample.
本实施例还提供一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被执行时,实现如本实施例所述的植物图片识别方法。This embodiment also provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed, the plant picture recognition method as described in this embodiment is implemented.
所述可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备,例如可以是但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备以及上述的任意合适的组合。这里所描述的计算机程序可以从可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。另外,用于执行本发明操作的计算机程序可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码。所述计算机程序可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在一些实施例中,通过利用计算机程序的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。The readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device, such as but not limited to an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or the above-mentioned any suitable combination. More specific examples (a non-exhaustive list) of readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device, and any suitable combination of the above. The computer programs described herein may be downloaded from a readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device over a network, such as the Internet, local area network, wide area network, and/or wireless network. Additionally, a computer program for carrying out operations of the present invention may be in the form of assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or in one or more programming languages source or object code written in any combination of . The computer program can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server . In some embodiments, electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), can be customized by utilizing state information from a computer program that can execute computer-programmable The program instructions are read to implement various aspects of the invention.
本实施例还提供一种电子设备,所述电子设备包括存储器和处理器,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,实现如本实施例所述的植物图片识别方法。This embodiment also provides an electronic device, the electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the plant as described in this embodiment is realized. Image recognition method.
所述存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离所述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the processor.
所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。所述处理器是所述电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分。The processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The processor is the control center of the electronic equipment, and uses various interfaces and lines to connect various parts of the entire electronic equipment.
所述电子设备可以包括用于捕获静态图像或记录视频流的一个或多个相机、以及用于将这些元件彼此连接的所有组件。虽然所述电子设备可以包括全尺寸的个人计算装置,但是它们可能可选地包括能够通过诸如互联网等网络与服务器无线地交换数据的移动计算装置。举例来说,所述电子设备可以是智能手机,或者是诸如带无线支持的PDA、平板PC或能够经由互联网获得信息的上网本等装置。在另一个示例中,所述电子设备可以是可穿戴式计算系统。The electronic device may include one or more cameras for capturing still images or recording video streams, and all components for connecting these elements to each other. While the electronic devices may include full-size personal computing devices, they may alternatively include mobile computing devices capable of wirelessly exchanging data with servers over a network, such as the Internet. The electronic device may be, for example, a smartphone, or a device such as a PDA with wireless support, a tablet PC or a netbook with information available via the Internet. In another example, the electronic device may be a wearable computing system.
所述电子设备还可包括通信接口和通信总线,其中所述处理器、所述通信接口、所述存储器通过通信总线完成相互间的通信。所述通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。所述通信接口用于上述电子设备与其他设备之间的通信。The electronic device may further include a communication interface and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. The communication interface is used for communication between the electronic device and other devices.
综上所述,本发明实施例提供的植物图片识别方法、可读存储介质及电子设备,包括:获取当前植物图片的部位识别结果;对所述部位识别结果的类别进行区分,以及,根据区分出的所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出。即,在对植物图片进行识别时,根据植物部位的类别,对最终输出识别结果做不同情况的调整,例如,若用户拍摄 部分较难获取较为准确的物种信息,则可仅输出到属的信息,而若用户拍摄部分可以获取较为准确的物种信息,这时便可输出到种的信息,如此便可提高识别准确性,避免给用户带来误导或引起其困惑。In summary, the plant picture recognition method, readable storage medium, and electronic device provided by the embodiments of the present invention include: acquiring the part recognition result of the current plant picture; distinguishing the categories of the part recognition result, and, according to the difference The category of the part recognition result is obtained, and the species recognition result of the current plant picture is obtained and output. That is, when identifying plant pictures, according to the category of plant parts, the final output recognition results are adjusted in different situations. For example, if it is difficult for the user to capture more accurate species information, only the genus information can be output. , and if the user can obtain more accurate species information in the photographed part, the species information can be output at this time, which can improve the recognition accuracy and avoid misleading or confusing the user.
此外还应该认识到,虽然本发明已以较佳实施例披露如上,然而上述实施例并非用以限定本发明。对于任何熟悉本领域的技术人员而言,在不脱离本发明技术方案范围情况下,都可利用上述揭示的技术内容对本发明技术方案做出许多可能的变动和修饰,或修改为等同变化的等效实施例。因此,凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所做的任何简单修改、等同变化及修饰,均仍属于本发明技术方案保护的范围。In addition, it should be understood that although the present invention has been disclosed above with preferred embodiments, the above embodiments are not intended to limit the present invention. For any person skilled in the art, without departing from the scope of the technical solution of the present invention, the technical content disclosed above can be used to make many possible changes and modifications to the technical solution of the present invention, or be modified into equivalent changes, etc. effective example. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention, which do not deviate from the content of the technical solution of the present invention, still belong to the scope of protection of the technical solution of the present invention.

Claims (10)

  1. 一种植物图片识别方法,其特征在于,包括:A plant picture recognition method, characterized in that, comprising:
    获取当前植物图片的部位识别结果;Obtain the part recognition result of the current plant picture;
    对所述部位识别结果的类别进行区分;以及,distinguishing categories of the part recognition results; and,
    根据区分出的所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出。According to the distinguished category of the part recognition result, the species recognition result of the current plant picture is acquired and output.
  2. 如权利要求1所述的植物图片识别方法,其特征在于,基于植物部位识别到种的准确度对所述部位识别结果的类别进行区分。The plant picture recognition method according to claim 1, characterized in that, based on the accuracy of identifying species from plant parts, the categories of the part recognition results are distinguished.
  3. 如权利要求2所述的植物图片识别方法,其特征在于,区分出的所述类别包括第一类别和第二类别,所述第一类别的植物部位识别到种的准确度小于所述第二类别的植物部位识别到种的准确度。The method for identifying plant pictures according to claim 2, wherein the identified categories include a first category and a second category, and the accuracy of identifying species from plant parts of the first category is less than that of the second category. The accuracy with which plant parts of a category are identified to species.
  4. 如权利要求3所述的植物图片识别方法,其特征在于,所述基于所述部位识别结果的类别,获取当前所述植物图片的物种识别结果并输出的方法包括:The plant picture recognition method according to claim 3, wherein the method of obtaining and outputting the species recognition result of the current plant picture based on the category of the part recognition result comprises:
    若所述部位识别结果的类别为第一类别,则输出的所述物种识别结果为当前所述植物图片所对应植物的属信息;If the category of the part recognition result is the first category, the outputted species recognition result is the genus information of the plant corresponding to the current plant picture;
    若所述部位识别结果的类别为第二类别,则输出的所述物种识别结果为当前所述植物图片所对应植物的种信息。If the category of the part recognition result is the second category, the outputted species recognition result is the species information of the plant corresponding to the current plant picture.
  5. 如权利要求3或4所述的植物图片识别方法,其特征在于,所述植物图片识别方法还包括:The plant picture recognition method according to claim 3 or 4, wherein the plant picture recognition method further comprises:
    若获取的所述部位识别结果为两个以上,且包括所述类别属于所述第二类别的所述部位识别结果,则根据所述类别属于所述第二类别的所述部位识别结果,获取当前所述植物图片的物种识别结果并输出。If the obtained part recognition results are more than two and include the part recognition results whose category belongs to the second category, then according to the part recognition results whose categories belong to the second category, obtain The species identification results of the currently described plant pictures are output.
  6. 如权利要求4所述的植物图片识别方法,其特征在于,所述植物图片识别方法还包括:The plant picture recognition method according to claim 4, wherein the plant picture recognition method further comprises:
    若获取的所述部位识别结果为两个以上,则根据各所述部位识别结果的类别,分别相应获取一物种识别结果;If there are more than two part recognition results obtained, then according to the category of each part recognition result, one species recognition result is correspondingly obtained;
    若获取的所述物种识别结果中包括当前所述植物图片的属信息及种信息,则输出所述种信息。If the obtained species identification result includes genus information and species information of the current plant picture, then output the species information.
  7. 如权利要求1所述的植物图片识别方法,其特征在于,通过预先训练得到的植物部位识别模型获取所述部位识别结果,通过预先训练得到的植物分类识别模型获取所述物种识别结果并输出。The plant picture recognition method according to claim 1, wherein the part recognition result is obtained through a pre-trained plant part recognition model, and the species recognition result is obtained through a pre-trained plant classification recognition model and output.
  8. 如权利要求7所述的植物图片识别方法,其特征在于,所述植物部位识别模型和/或所述植物分类识别模型采用神经网络模型训练得到。The plant picture recognition method according to claim 7, characterized in that, the plant part recognition model and/or the plant classification recognition model are obtained by training with a neural network model.
  9. 一种可读存储介质,其特征在于,所述可读存储介质存储有计算机程序,所述计算机程序被执行时,实现如权利要求1~8任一项所述的植物图片识别方法。A readable storage medium, characterized in that the readable storage medium stores a computer program, and when the computer program is executed, the plant picture recognition method according to any one of claims 1-8 is realized.
  10. 一种电子设备,其特征在于,所述电子设备包括存储器和处理器,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,实现如权利要求1~8任一项所述的植物图片识别方法。An electronic device, characterized in that the electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, any one of claims 1 to 8 is realized. The plant picture recognition method.
PCT/CN2022/096705 2021-06-15 2022-06-01 Plant picture recognition method, readable storage medium, and electronic device WO2022262585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110662664.4 2021-06-15
CN202110662664.4A CN113313193A (en) 2021-06-15 2021-06-15 Plant picture identification method, readable storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2022262585A1 true WO2022262585A1 (en) 2022-12-22

Family

ID=77378870

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096705 WO2022262585A1 (en) 2021-06-15 2022-06-01 Plant picture recognition method, readable storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113313193A (en)
WO (1) WO2022262585A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113313193A (en) * 2021-06-15 2021-08-27 杭州睿胜软件有限公司 Plant picture identification method, readable storage medium and electronic device
CN113887595A (en) * 2021-09-23 2022-01-04 四川飘绿植物保护有限公司 Garden pest identification method, system, computer equipment and storage medium
CN113886620A (en) * 2021-11-01 2022-01-04 杭州睿胜软件有限公司 Plant recommendation method, readable storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256568A (en) * 2018-01-12 2018-07-06 宁夏智启连山科技有限公司 A kind of plant species identification method and device
US20190065890A1 (en) * 2017-08-22 2019-02-28 Korea Institute Of Science And Technology System and method for plant leaf identification
CN110619349A (en) * 2019-08-12 2019-12-27 深圳市识农智能科技有限公司 Plant image classification method and device
US20200042790A1 (en) * 2016-10-31 2020-02-06 Optim Corporation Computer system, and method and program for diagnosing plants
CN113313193A (en) * 2021-06-15 2021-08-27 杭州睿胜软件有限公司 Plant picture identification method, readable storage medium and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1709571A4 (en) * 2003-12-16 2009-06-17 Aerulean Plant Identification System and method for plant identification
CN110070101B (en) * 2019-03-12 2024-05-14 平安科技(深圳)有限公司 Plant species identification method and device, storage medium and computer equipment
CN110458107B (en) * 2019-08-13 2023-06-16 北京百度网讯科技有限公司 Method and device for image recognition
CN111242178A (en) * 2020-01-02 2020-06-05 杭州睿琪软件有限公司 Object identification method, device and equipment
CN112287836A (en) * 2020-10-29 2021-01-29 柳州工学院 Image recognition system and image recognition device based on artificial intelligence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200042790A1 (en) * 2016-10-31 2020-02-06 Optim Corporation Computer system, and method and program for diagnosing plants
US20190065890A1 (en) * 2017-08-22 2019-02-28 Korea Institute Of Science And Technology System and method for plant leaf identification
CN108256568A (en) * 2018-01-12 2018-07-06 宁夏智启连山科技有限公司 A kind of plant species identification method and device
CN110619349A (en) * 2019-08-12 2019-12-27 深圳市识农智能科技有限公司 Plant image classification method and device
CN113313193A (en) * 2021-06-15 2021-08-27 杭州睿胜软件有限公司 Plant picture identification method, readable storage medium and electronic device

Also Published As

Publication number Publication date
CN113313193A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
WO2022262585A1 (en) Plant picture recognition method, readable storage medium, and electronic device
US11335087B2 (en) Method and system for object identification
US20210192247A1 (en) Systems and methods for electronically identifying plant species
US20220358742A1 (en) Insect identification method and system
WO2021159990A1 (en) Plant blooming period broadcast method and system, and computer-readable storage medium
US20180373207A1 (en) Cognitive plant clinic
WO2024027476A1 (en) Identification processing method and system for plant image, and storage medium
US20230044040A1 (en) Computer-executable method relating to weeds and computer system
CN110490086B (en) Method and system for secondarily confirming object recognition result
WO2021135828A1 (en) Object identification method, apparatus and device
WO2023098463A1 (en) Plant identification method, plant identification device, and plant identification system
WO2022262586A1 (en) Method for plant identification, computer system and computer-readable storage medium
WO2023138298A1 (en) Method and apparatus for determining whether container of plant is suitable for plant maintenance
Korotaeva et al. Botanicum: a telegram bot for tree classification
CN112989969A (en) Crop pest and disease identification method and device
CN111325212A (en) Model training method and device, electronic equipment and computer readable storage medium
CN111914068B (en) Method for extracting test question knowledge points
WO2021088657A1 (en) Method and device for acquiring species identification names
WO2023071869A1 (en) Plant recommendation method, readable storage medium, and electronic device
CN110852376B (en) Method and system for identifying biological species
WO2023093480A1 (en) Species touring method and system, and readable storage medium
WO2022237726A1 (en) Image recognition method, readable storage medium, and image recognition system
CN114443878A (en) Image classification method, device, equipment and storage medium
Shah et al. A Flutter Application For Farmers
Campbell et al. A repeatable scoring system for assessing Smartphone applications ability to identify herbaceous plants

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22824065

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE