CN113269031A - Method and device for separating image green plant area, electronic equipment and storage medium - Google Patents
Method and device for separating image green plant area, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113269031A CN113269031A CN202110379752.3A CN202110379752A CN113269031A CN 113269031 A CN113269031 A CN 113269031A CN 202110379752 A CN202110379752 A CN 202110379752A CN 113269031 A CN113269031 A CN 113269031A
- Authority
- CN
- China
- Prior art keywords
- green
- image
- awb
- separating
- drop point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 241001464837 Viridiplantae Species 0.000 title claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 7
- 238000000926 separation method Methods 0.000 claims description 6
- 238000003384 imaging method Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/10—Terrestrial scenes
- G06V20/188—Vegetation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Image Processing (AREA)
Abstract
The invention provides a method for separating a green planting area of an image, belongs to the technical field of view finding imaging, and solves the technical problem that the green planting area can not be separated by independently adjusting the color of the green planting area in the image in the prior art. The method comprises the following steps: acquiring a current environment image; counting the distribution of AWB drop points according to the current environment image; separating a green plant area in the image according to the AWB drop point distribution; and carrying out color debugging on the separated green planting area.
Description
Technical Field
The present invention relates to the field of framing imaging technologies, and in particular, to a method and an apparatus for separating an image green field, an electronic device, and a storage medium.
Background
With the development and progress of science and technology, the requirements for the picture effect of the monitoring equipment are higher and higher. Currently, in color debugging of monitoring equipment, debugging or HSV changing can only be performed on AWB of the whole picture, and hue or saturation of a single color is debugged. Sometimes, only the color of the green plant is required to be changed, and other green colors of the picture are not changed, so that the green plant area needs to be correctly separated, and then targeted debugging is performed, which cannot be achieved at present.
Disclosure of Invention
The invention aims to provide a method, a device, electronic equipment and a storage medium for separating an image green planting region, and solves the technical problem that the green planting region in the image cannot be separated by independently adjusting colors of the green planting region in the image in the prior art.
In a first aspect, the present invention provides a method for separating an image green region, including the following steps:
acquiring a current environment image;
counting the distribution of AWB drop points according to the current environment image;
separating a green plant area in the image according to the AWB drop point distribution;
and carrying out color debugging on the separated green planting area.
Further, the step of counting the distribution of the AWB drop points according to the current environment image specifically includes:
and (4) counting the AWB drop point distribution according to the current environment image by using an ISP tool.
Further, the step of separating the green-plant region in the image according to the AWB drop point distribution specifically includes:
setting the size and the position of a judgment area;
confirming whether an AWB drop point enters the judgment area or not;
if yes, the AWB drop point position is determined as a green planting area.
Further, after the step of confirming whether an AWB drop point enters the determination area, the method further includes:
if not, the AWB drop point position is determined as a common area.
Further, the step of performing color debugging on the separated green planting region specifically includes:
adjusting the color tone of the green plant area;
and adjusting the saturation of the green plant area.
In a second aspect, the present invention further provides an apparatus for separating an image green region, comprising:
the image acquisition module is used for acquiring a current environment image;
the drop point distribution statistical module is used for counting the AWB drop point distribution according to the current environment image;
the green plant separation module is used for separating a green plant area in the image according to the AWB drop point distribution;
and the color debugging module is used for carrying out color debugging on the separated green planting area.
In a third aspect, the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to carry out the method described above.
The method for separating the green planting area of the image, provided by the invention, has the advantages that the separation of the green planting area and the individual color debugging of the green planting area are realized by acquiring the image of the current environment, counting the AWB drop point distribution according to the image of the current environment, separating the green planting area according to the AWB drop point distribution and finally carrying out the individual color debugging on the separated green planting area to make the green planting area stand out in the image.
Accordingly, the apparatus, the electronic device and the computer-readable storage medium for separating an image green-planting region provided by the embodiments of the present invention also have the above technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart of a method for separating an image green region according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for separating a green plant region in an image according to AWB drop distribution, according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for separating an image green region according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but 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.
The terms "comprising" and "having," and any variations thereof, as referred to in embodiments of the present invention, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, an embodiment of the present invention provides a method for separating an image green region, including the following steps:
s11: acquiring a current environment image;
s12: counting the distribution of AWB (Automatic white balance) drop points according to the current environment image;
s13: separating a green plant area in the image according to the AWB drop point distribution;
s14: and carrying out color debugging on the separated green planting area.
According to the method for separating the green planting area of the image, provided by the embodiment of the invention, the image of the current environment is obtained, the AWB (active view base) drop point distribution is counted according to the image of the current environment, the green planting area is separated according to the AWB drop point distribution, and finally the separated green planting area is subjected to independent color debugging to be highlighted in the image, so that the separation of the green planting area and the independent color debugging of the green planting area are realized.
In a possible implementation manner, the step of counting the distribution of the AWB drop points according to the current environment image specifically includes:
and (4) counting the AWB drop point distribution according to the current environment image by using an ISP tool.
By the ISPtool debugging tool provided by the embodiment of the invention, the current AWB drop point distribution can be easily acquired.
As shown in fig. 2, in a possible implementation, the step of separating the green-plant region in the image according to the AWB drop point distribution specifically includes:
s231: setting the size and the position of a judgment area;
s232: confirming whether an AWB drop point enters the judgment area, if so, executing a step S233;
s233: and judging the AWB drop point position as a green planting area.
In a possible implementation manner, after the step S232, the method further includes:
if not, go to step S234;
s234: and determining the AWB drop point position as a normal area.
Through the steps, the green planting area can be separated.
In a possible implementation manner, the step of performing color adjustment on the separated green planting region specifically includes:
adjusting the color tone of the green plant area;
and adjusting the saturation of the green plant area.
By adjusting the hue and saturation of the green-planted area, the color of the green-planted area can be more highlighted and easier to observe.
The embodiment of the invention provides a method for separating an image green plant area, which comprises the following specific implementation modes:
the method comprises the steps of firstly counting the distribution of the AWB drop points of the current environment through an ISPtool debugging tool, then setting the size and the position of a green area according to the AWB reference points of different sensors, separating a green planting area through the ISPtool, and once the AWB drop points enter the position of the green area, judging the green planting area.
After the green planting region is separated, the green planting region is subjected to targeted debugging, and white balance hue and saturation are optimized. Firstly, the integral tone of a green planting region is debugged, the proportion of RG or BG is increased, so that the tone with yellow or cyan visual effect can be obtained, then the saturation of the region is adjusted, the green planting effect with high contrast or low contrast can be obtained, finally, a more prominent green planting region is obtained, and the separation of the green planting region is completed.
As shown in fig. 3, an embodiment of the present invention further provides an apparatus for separating a green plant region, including:
the image acquisition module 1 is used for acquiring a current environment image;
the drop point distribution statistical module 2 is used for counting the AWB drop point distribution according to the current environment image;
the green plant separation module 3 is used for separating a green plant area in the image according to the AWB drop point distribution;
and the color debugging module 4 is used for performing color debugging on the separated green planting region.
Corresponding to the method, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the method when executing the computer program.
In accordance with the above method, embodiments of the present invention also provide a computer readable storage medium storing machine executable instructions, which when invoked and executed by a processor, cause the processor to perform the steps of the above method.
The apparatus provided by the embodiment of the present invention may be specific hardware on the device, or software or firmware installed on the device, etc. The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
For another example, the division of the unit is only one division of logical functions, and there may be other divisions in actual implementation, and for another example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided by the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; and the modifications, changes or substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention. Are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A method for separating an image green field, comprising the steps of:
acquiring a current environment image;
counting the distribution of AWB drop points according to the current environment image;
separating a green plant area in the image according to the AWB drop point distribution;
and carrying out color debugging on the separated green planting area.
2. The method for separating image green-field areas according to claim 1, wherein the step of counting the distribution of AWB landing points according to the current environment image specifically comprises:
and (4) counting the AWB drop point distribution according to the current environment image by using an ISP tool.
3. The method for separating an image green-field region according to claim 1, wherein the step of separating a green-field region in an image according to an AWB drop distribution specifically comprises:
setting the size and the position of a judgment area;
confirming whether an AWB drop point enters the judgment area or not;
if yes, the AWB drop point position is determined as a green planting area.
4. The method of claim 3, wherein after the step of confirming whether there is an AWB drop point entering the decision region, the method further comprises:
if not, the AWB drop point position is determined as a common area.
5. The method for separating an image green region according to claim 1, wherein the step of performing color adjustment on the separated green region specifically comprises:
adjusting the color tone of the green plant area;
and adjusting the saturation of the green plant area.
6. An apparatus for separating an image green field, comprising:
the image acquisition module is used for acquiring a current environment image;
the drop point distribution statistical module is used for counting the AWB drop point distribution according to the current environment image;
the green plant separation module is used for separating a green plant area in the image according to the AWB drop point distribution;
and the color debugging module is used for carrying out color debugging on the separated green planting area.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method of any of claims 1 to 5 when executing the computer program.
8. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110379752.3A CN113269031A (en) | 2021-04-08 | 2021-04-08 | Method and device for separating image green plant area, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110379752.3A CN113269031A (en) | 2021-04-08 | 2021-04-08 | Method and device for separating image green plant area, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113269031A true CN113269031A (en) | 2021-08-17 |
Family
ID=77228612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110379752.3A Pending CN113269031A (en) | 2021-04-08 | 2021-04-08 | Method and device for separating image green plant area, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113269031A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070041064A1 (en) * | 2005-08-16 | 2007-02-22 | Micron Technology, Inc. | Image sampling method for automatic white balance |
CN102300100A (en) * | 2010-06-28 | 2011-12-28 | 比亚迪股份有限公司 | White balance control device and method |
US20150098005A1 (en) * | 2013-10-07 | 2015-04-09 | Novatek Microelectronics Corp. | Image sensor and image capturing system |
CN105872499A (en) * | 2016-03-31 | 2016-08-17 | 乐视控股(北京)有限公司 | Green area judging method based on RGB sensor |
CN112149592A (en) * | 2020-09-28 | 2020-12-29 | 上海万面智能科技有限公司 | Image processing method and device and computer equipment |
CN112399163A (en) * | 2019-08-19 | 2021-02-23 | 瑞昱半导体股份有限公司 | Image sensing device and automatic white balance method |
-
2021
- 2021-04-08 CN CN202110379752.3A patent/CN113269031A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070041064A1 (en) * | 2005-08-16 | 2007-02-22 | Micron Technology, Inc. | Image sampling method for automatic white balance |
CN102300100A (en) * | 2010-06-28 | 2011-12-28 | 比亚迪股份有限公司 | White balance control device and method |
US20150098005A1 (en) * | 2013-10-07 | 2015-04-09 | Novatek Microelectronics Corp. | Image sensor and image capturing system |
CN105872499A (en) * | 2016-03-31 | 2016-08-17 | 乐视控股(北京)有限公司 | Green area judging method based on RGB sensor |
CN112399163A (en) * | 2019-08-19 | 2021-02-23 | 瑞昱半导体股份有限公司 | Image sensing device and automatic white balance method |
CN112149592A (en) * | 2020-09-28 | 2020-12-29 | 上海万面智能科技有限公司 | Image processing method and device and computer equipment |
Non-Patent Citations (2)
Title |
---|
彭怿等: "色温对摄像机色彩还原影响的探讨", 《电视字幕(特技与动画)》 * |
郭英华: "基于HSV色彩空间的图像分割", 《黑龙江冶金》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3848853A2 (en) | Image detection method, apparatus, electronic device and storage medium | |
EP3285477B1 (en) | Image processing device, image processing method, and image processing system | |
US20160232601A1 (en) | Color estimation device, color estimation method, and color estimation program | |
CN107909569B (en) | Screen-patterned detection method, screen-patterned detection device and electronic equipment | |
EP3319041A1 (en) | Image processing apparatus, image processing method, and storage medium | |
CN110009712B (en) | Image-text typesetting method and related device thereof | |
WO2012063594A1 (en) | Object display device and object display method | |
US11347792B2 (en) | Video abstract generating method, apparatus, and storage medium | |
JP6325401B2 (en) | Information processing apparatus, image changing method, and program | |
US11741591B2 (en) | Method and apparatus for detecting thickness of paper and storage medium | |
CN110035281B (en) | Dead pixel detection method and device and electronic equipment | |
EP3922232B1 (en) | Medicine identification system, medicine identification device, medicine identification method, and program | |
KR20150107598A (en) | Image processing apparatus and image processing method | |
US10472062B2 (en) | System, method, and program for controlling drone | |
CN111163301B (en) | Color adjustment method, device and computer readable storage medium | |
CN111275658A (en) | Camera shielding detection method and system | |
CN110610461B (en) | Method, device and equipment for enhancing printed image and storage medium | |
US20140101614A1 (en) | Theme display method and related apparatus | |
EP3518140B1 (en) | Image data retrieving method and image data retrieving device | |
CN113269031A (en) | Method and device for separating image green plant area, electronic equipment and storage medium | |
EP3751511A1 (en) | Image processing apparatus, image forming apparatus, display apparatus, image processing program, and image processing method | |
EP3796632A1 (en) | Deletion at power on of data stored in the memory of an image processing device which is connectable to an image capturing device | |
US9734610B2 (en) | Image processing device, image processing method, and image processing program | |
US10152813B2 (en) | Composite image creation system, composite image creation method, and non-transitory computer readable medium storing composite image creation program | |
CN108376417B (en) | Display adjustment method of virtual object and related device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210817 |