Method and apparatus for regeneration and prediction of tree map
A pre-5 th -Generation (5G) or 5G communication system for supporting higher data rates Beyond 4 th -Generation (4G) communication system such as long term evolution (LTE) is provided. The method for operating a server includes receiving a first image including at least one tree, determining whether to generate a tree map based on the first image, based on a difference between first tree region data of the first image and second tree region data of a second image which is prestored, and generating the tree map according to determining.
1. A method performed by a server, the method comprising:
segmenting a prestored tree region image into a plurality of grids;
determining a first representative time by clustering tree generation times in the plurality of grids;
browsing the first representative time and a second representative time in the plurality of grids, wherein the second representative time is prestored;
determining a grid of the plurality of grids to a representative location and a time corresponding to one of the first representative time and the second representative time;
receiving a first image comprising at least one tree based on a location of the grid and the time;
determining whether to generate a tree map based on a difference between a first tree region data of the first image and a second tree region data of a second image which is prestored;
generating the tree map according to the determining of whether to generate; and
transmitting the tree map,
wherein the plurality of grids are segments of the prestored tree region image.
2. The method of claim 1 ,
wherein the determining of whether to generate the tree map comprises:
determining the difference of the first tree region data and the second tree region data; and
determining whether the difference exceeds a threshold, and
wherein the first tree region data and the second tree region data comprise color data of a region occupied by a tree in an image.
3. The method of claim 2 , wherein the color data of the region occupied by the tree is determined based on at least one of red green blue (RGB), hue saturation brightness (HSB) or cyan magenta yellow and black key (CMYK).
4. The method of claim 1 ,
wherein the determining of whether to generate the tree map comprises:
determining the difference of the first tree region data and the second tree region data; and
determining to regenerate the tree map in response to the difference is greater than or equal to a threshold, and
wherein the first tree region data and the second tree region data comprise area data of a region occupied by a tree in an image.
5. The method of claim 4 , wherein the determining of the difference of the first tree region data and the second tree region data comprises:
determining an intersection over union (IOU) of the first tree region data and the second tree region data.
6. The method of claim 1 ,
wherein the time corresponding to one of the first representative time and the second representative time is determined based on a selection by a user, and
wherein the grid is preconfigured by the user.
7. The method of claim 1 , further comprising:
performing an update according to the tree map; and
storing the tree map,
wherein the tree map is stored by a vintage.
8. A server comprising:
a transceiver; and
at least one processor operably coupled to the transceiver,
wherein the at least one processor is configured to:
segment a prestored tree region image into a plurality of grids,
determine a first representative time by clustering tree generation times in the plurality of grids,
browse the first representative time and a second representative time in the plurality of grids, wherein the second representative time is prestored,
determine a grid of the plurality of grids to a representative location and a time corresponding to one of the first representative time and the second representative time,
receive a first image comprising at least one tree based on a location of the grid and the time,
determine whether to generate a tree map based on a difference between a first tree region data of the first image and a second tree region data of a second image which is prestored,
generate the tree map according to the determining of whether to generate, and
transmit the tree map,
wherein the plurality of grids are segments of the prestored tree region image.
9. The server of claim 8 ,
wherein the at least one processor is further configured to:
determine the difference of the first tree region data and the second tree region data, and
determine whether the difference exceeds a threshold, and
wherein the first tree region data and the second tree region data comprise color data of a region occupied by a tree in an image.
10. The server of claim 9 , wherein the color data of the region occupied by the tree is determined based on at least one of red green blue (RGB), hue saturation brightness (HSB) or cyan magenta yellow and black key (CMYK).
11. The server of claim 8 ,
wherein the at least one processor is further to:
determine the difference of the first tree region data and the second tree region data, and
determine to regenerate the tree map in response to the difference is greater than or equal a threshold, and
wherein the first tree region data and the second tree region data comprise area data of a region occupied by a tree in an image.
12. The server of claim 11 , wherein the at least one processor is further configured to:
determine an intersection over union (IOU) of the first tree region data and the second tree region data.