CN110930474A - Insect density thermodynamic diagram construction method, device and system - Google Patents

Insect density thermodynamic diagram construction method, device and system Download PDF

Info

Publication number
CN110930474A
CN110930474A CN201911241936.2A CN201911241936A CN110930474A CN 110930474 A CN110930474 A CN 110930474A CN 201911241936 A CN201911241936 A CN 201911241936A CN 110930474 A CN110930474 A CN 110930474A
Authority
CN
China
Prior art keywords
insect
matrix
image
thermodynamic diagram
density
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.)
Granted
Application number
CN201911241936.2A
Other languages
Chinese (zh)
Other versions
CN110930474B (en
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.)
Shenzhen University
Original Assignee
Shenzhen University
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 Shenzhen University filed Critical Shenzhen University
Priority to CN201911241936.2A priority Critical patent/CN110930474B/en
Publication of CN110930474A publication Critical patent/CN110930474A/en
Application granted granted Critical
Publication of CN110930474B publication Critical patent/CN110930474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • Algebra (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a method, a device and a system for constructing an insect density thermodynamic diagram, wherein the method comprises the steps of obtaining an insect image photo; extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix; performing convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram; and correspondingly distributing color blocks with colors from dark to light according to the weighted values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams. The invention has the beneficial effects that: the time complexity of the construction of the insect density thermodynamic diagram is small, the insect density can be calculated in a short time, the insect density thermodynamic diagram is constructed, and the requirements of low delay and real-time data processing of the Internet of things can be met.

Description

Insect density thermodynamic diagram construction method, device and system
Technical Field
The invention relates to the field of image processing, in particular to a method, a device and a system for constructing an insect density thermodynamic diagram.
Background
The traditional thermodynamic diagram calculation method is based on Euclidean distance, each pixel point of an original image is used for calculating Euclidean distance between the original image and all target pixel points on an insect foreground image, thermodynamic diagram weight division is carried out according to the calculated Euclidean distance, the smaller the Euclidean distance is, the larger the thermodynamic diagram weight is, pixels with different colors are finally distributed according to the thermodynamic diagram weight, and finally the insect density identification thermodynamic diagram is constructed. The time complexity of the calculation method is too large, and the low delay requirement of the Internet of things cannot be met.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: an insect density thermodynamic diagram construction method, device and system are provided, and the aim is to reduce the complexity of insect density thermodynamic diagram construction.
In order to solve the technical problems, the invention adopts the technical scheme that: a method for constructing an insect density thermodynamic diagram comprises the following steps,
acquiring an insect image photo;
extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
performing convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and correspondingly distributing color blocks with colors from dark to light according to the weighted values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
Further, the extracting the insects from the insect image picture through the image processing algorithm and the generating the insect foreground matrix comprise,
analyzing the insect image photo, and converting the insect image photo into an insect image pixel matrix;
and subtracting the insect picture pixel matrix from the background picture pixel matrix by a frame difference method to obtain an insect foreground matrix.
In order to solve the technical problem, the invention adopts another technical scheme as follows: an insect density thermodynamic diagram construction device comprising,
the insect image acquisition module is used for acquiring insect image photos;
the insect foreground matrix generation module is used for extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
the thermodynamic diagram weight value calculation module is used for carrying out convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, and the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and the insect density thermodynamic diagram forming module is used for correspondingly distributing color blocks with colors from dark to light according to the weight values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
Further, the insect foreground matrix generation module is specifically configured to,
analyzing the insect image photo, and converting the insect image photo into an insect image pixel matrix;
and subtracting the insect picture pixel matrix from the background picture pixel matrix by a frame difference method to obtain an insect foreground matrix.
An insect density thermodynamic diagram construction system comprises an LoRa node, an LoRa gateway and a central server;
the LoRa node is connected with a camera and used for collecting insect image photos and sending the collected insect image photos to the LoRa gateway;
the LoRa gateway is used for sending the insect image photos sent by the LoRa node to the central server;
the central server comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor executes the computer program to realize the insect density thermodynamic diagram construction method.
The invention has the beneficial effects that: extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix; and carrying out convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram, and color blocks with the colors from deep to light are correspondingly distributed according to the descending of the weight value of the thermodynamic diagram to form the insect density thermodynamic diagram. The time complexity of the insect density thermodynamic diagram construction method is small, the insect density can be calculated in a short time, the insect density thermodynamic diagram is constructed, and the requirements of low delay and real-time data processing of the Internet of things can be met.
Drawings
The following detailed description of the invention refers to the accompanying drawings.
FIG. 1 is a flow chart of a method for constructing an insect density thermodynamic diagram according to an embodiment of the present invention;
FIG. 2 is a block diagram of an insect density thermodynamic diagram building apparatus according to an embodiment of the present invention;
FIG. 3 is a diagram of an insect density thermodynamic diagram construction system in accordance with an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As shown in fig. 1, the first embodiment of the present invention is: a method for constructing an insect density thermodynamic diagram comprises the following steps,
s10, acquiring an insect image photo;
s20, extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
s30, performing convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and S40, correspondingly distributing color blocks with colors from dark to light according to the weight values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
Further, the extracting the insects from the insect image picture through the image processing algorithm and the generating the insect foreground matrix comprise,
analyzing the insect image photo, and converting the insect image photo into an insect image pixel matrix;
and subtracting the insect picture pixel matrix from the background picture pixel matrix by a frame difference method to obtain an insect foreground matrix.
In the embodiment, by constructing the parameter-adjustable Gaussian convolution kernel, the size and the standard deviation of the convolution kernel are adjustable, the generated Gaussian convolution kernel and the insect foreground matrix are subjected to picture convolution operation to obtain a preliminary insect density gradient matrix, and color blocks with colors from deep to light are correspondingly distributed according to the weight value of the thermodynamic diagram from large to small to form the insect density thermodynamic diagram.
As shown in fig. 2, the second embodiment of the present invention is: an insect density thermodynamic diagram construction device comprising,
the insect image acquisition module 10 is used for acquiring insect image photos;
the insect foreground matrix generating module 20 is configured to extract insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
the thermodynamic diagram weight value calculation module 30 is used for performing convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and the insect density thermodynamic diagram forming module 40 is used for correspondingly distributing color blocks with colors from dark to light according to the weighted values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
Further, the insect foreground matrix generating module 20 is specifically configured to,
analyzing the insect image photo, and converting the insect image photo into an insect image pixel matrix;
and subtracting the insect picture pixel matrix from the background picture pixel matrix by a frame difference method to obtain an insect foreground matrix.
It should be noted that, as will be clear to those skilled in the art, the specific implementation process of the insect density thermodynamic diagram construction device described above can refer to the corresponding description in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
As shown in fig. 3, a third embodiment of the present invention is: an insect density thermodynamic diagram construction system comprises an LoRa node, an LoRa gateway and a central server;
the LoRa node 2 is connected with a camera and used for collecting insect image photos and sending the collected insect image photos to the LoRa gateway 4;
the LoRa gateway 4 is configured to send the insect image photos sent by the LoRa node 2 to the central server 5;
the central server 5 comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program realizes the steps of,
s10, acquiring an insect image photo;
s20, extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
s30, performing convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and S40, correspondingly distributing color blocks with colors from dark to light according to the weight values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
Wherein, loRa node 2 comprises STM32 main control chip, radio frequency module and gateway communication module to through serial ports connection camera 3, camera 3 installs on insect trap 1.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. An insect density thermodynamic diagram construction method is characterized by comprising the following steps: comprises the following steps of (a) carrying out,
acquiring an insect image photo;
extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
performing convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, wherein the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and correspondingly distributing color blocks with colors from dark to light according to the weighted values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
2. The method of constructing an insect density thermodynamic diagram of claim 1, wherein: the method comprises the steps of extracting insects from an insect image photo through an image processing algorithm, generating an insect foreground matrix,
analyzing the insect image photo, and converting the insect image photo into an insect image pixel matrix;
and subtracting the insect picture pixel matrix from the background picture pixel matrix by a frame difference method to obtain an insect foreground matrix.
3. An insect density thermodynamic diagram constructing device, which is characterized in that: the insect density thermodynamic diagram constructing device comprises,
the insect image acquisition module is used for acquiring insect image photos;
the insect foreground matrix generation module is used for extracting insects from the insect image photos through an image processing algorithm to generate an insect foreground matrix;
the thermodynamic diagram weight value calculation module is used for carrying out convolution processing on the insect foreground matrix by using a parameter-adjustable Gaussian convolution kernel to obtain a primary insect density gradient matrix, and the value on the insect density gradient matrix is the weight value of the thermodynamic diagram;
and the insect density thermodynamic diagram forming module is used for correspondingly distributing color blocks with colors from dark to light according to the weight values of the thermodynamic diagrams from large to small to form the insect density thermodynamic diagrams.
4. An insect density thermodynamic diagram construction device as claimed in claim 3, wherein: the insect foreground matrix generation module is specifically configured to,
analyzing the insect image photo, and converting the insect image photo into an insect image pixel matrix;
and subtracting the insect picture pixel matrix from the background picture pixel matrix by a frame difference method to obtain an insect foreground matrix.
5. An insect density thermodynamic diagram construction system, characterized in that: the system comprises an LoRa node, an LoRa gateway and a central server;
the LoRa node is connected with a camera and used for collecting insect image photos and sending the collected insect image photos to the LoRa gateway;
the LoRa gateway is used for sending the insect image photos sent by the LoRa node to the central server;
the central server comprises a memory having stored thereon a computer program and a processor which, when executed, implements the insect density thermodynamic diagram construction method according to any one of claims 1-2.
CN201911241936.2A 2019-12-06 2019-12-06 Insect density thermodynamic diagram construction method, device and system Active CN110930474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911241936.2A CN110930474B (en) 2019-12-06 2019-12-06 Insect density thermodynamic diagram construction method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911241936.2A CN110930474B (en) 2019-12-06 2019-12-06 Insect density thermodynamic diagram construction method, device and system

Publications (2)

Publication Number Publication Date
CN110930474A true CN110930474A (en) 2020-03-27
CN110930474B CN110930474B (en) 2023-02-28

Family

ID=69857329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911241936.2A Active CN110930474B (en) 2019-12-06 2019-12-06 Insect density thermodynamic diagram construction method, device and system

Country Status (1)

Country Link
CN (1) CN110930474B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737396A (en) * 2020-08-26 2020-10-02 成都四方伟业软件股份有限公司 Method and device for improving thermodynamic diagram display performance based on 2D convolution
CN112288795A (en) * 2020-10-29 2021-01-29 深圳大学 Insect density calculation method and device based on fast-RCNN

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130083974A1 (en) * 2011-09-29 2013-04-04 National Tsing Hua University Image method for classifying insects and classifying process for insects
CN105844681A (en) * 2016-03-22 2016-08-10 北京建飞无限科技有限公司 Thermodynamic diagram drawing method and apparatus
WO2016145736A1 (en) * 2015-03-18 2016-09-22 百度在线网络技术(北京)有限公司 Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium
WO2018019857A1 (en) * 2016-07-26 2018-02-01 Demand Side Instruments Method and device for measuring insect density
US20180225518A1 (en) * 2017-02-08 2018-08-09 Tsinghua University Video Analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130083974A1 (en) * 2011-09-29 2013-04-04 National Tsing Hua University Image method for classifying insects and classifying process for insects
WO2016145736A1 (en) * 2015-03-18 2016-09-22 百度在线网络技术(北京)有限公司 Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium
CN105844681A (en) * 2016-03-22 2016-08-10 北京建飞无限科技有限公司 Thermodynamic diagram drawing method and apparatus
WO2018019857A1 (en) * 2016-07-26 2018-02-01 Demand Side Instruments Method and device for measuring insect density
US20180225518A1 (en) * 2017-02-08 2018-08-09 Tsinghua University Video Analysis

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737396A (en) * 2020-08-26 2020-10-02 成都四方伟业软件股份有限公司 Method and device for improving thermodynamic diagram display performance based on 2D convolution
CN112288795A (en) * 2020-10-29 2021-01-29 深圳大学 Insect density calculation method and device based on fast-RCNN

Also Published As

Publication number Publication date
CN110930474B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
CN106846336B (en) Method and device for extracting foreground image and replacing image background
EP3327668B1 (en) Image-processing device and method for foreground mask correction for object segmentation
CN110929569B (en) Face recognition method, device, equipment and storage medium
WO2022062346A1 (en) Image enhancement method and apparatus, and electronic device
CN111985281B (en) Image generation model generation method and device and image generation method and device
CN111127303A (en) Background blurring method and device, terminal equipment and computer readable storage medium
WO2020006899A1 (en) Method and device for measuring weight of livestock
CN110930474B (en) Insect density thermodynamic diagram construction method, device and system
CN110166684B (en) Image processing method, image processing device, computer readable medium and electronic equipment
CN110599554A (en) Method and device for identifying face skin color, storage medium and electronic device
CN111724317A (en) Method for constructing Raw domain video denoising supervision data set
CN112669232A (en) Depth image enhancement processing method and device
CN108335272A (en) A kind of method and apparatus of shooting picture
CN108875751A (en) Image processing method and device, the training method of neural network, storage medium
CN115512238A (en) Method and device for determining damaged area, storage medium and electronic device
CN111445487A (en) Image segmentation method and device, computer equipment and storage medium
EP3496042A1 (en) System and method for generating training images
CN116188808B (en) Image feature extraction method and system, storage medium and electronic device
CN111428732B (en) YUV image recognition method, system and computer equipment
CN105516735B (en) Represent frame acquisition methods and device
CN105159663B (en) The method of adjustment and device of image
CN114723883A (en) Three-dimensional scene reconstruction method, device, equipment and storage medium
CN109949208B (en) Internet-based automatic 3D clothing pattern generation system
CN113516157A (en) Embedded three-dimensional scanning system and three-dimensional scanning device
CN113628133A (en) Rain and fog removing method and device based on video image

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
GR01 Patent grant
GR01 Patent grant