| Ancient and famous trees are precious natural resources,which are integrated with history,culture and humanistic spirit,and witness the changes of the Chinese nation.They not only have high scientific research value,economic value,but also have very important ecological value.In recent years,with the rapid development of economy,the environmental quality is getting worse,which threatens the growth of ancient and famous trees.Because of the high age of ancient and famous trees,their ability to resist bad weather has been reduced,and they are more vulnerable to infringement.Therefore,managers of ancient and famous trees need to master the health status of ancient and famous trees in time,adjust the maintenance measures in time,and protect the healthy growth of ancient and famous trees.For the health assessment of ancient and famous trees,scholars at home and abroad have carried out a lot of exploration and research,but there is no unified health assessment standard,and there is less research on the use of computer to identify the health of ancient and famous trees.Therefore,this paper takes the health assessment of ancient and famous trees as the research content,and realizes the rapid health assessment of ancient and famous trees based on image processing technology.Firstly,the health evaluation model of ancient and famous trees is constructed,and the calculation process and algorithm of health evaluation of ancient and famous trees are given based on the evaluation model.Finally,according to the development process of software engineering,the analysis,design,implementation and test of the system are given by using object-oriented method.The main research results are as follows.(1)The health evaluation model of ancient and famous trees based on morphology was constructedFor the health assessment of ancient and famous trees,leaves and trunks are selected as the key indicators of health assessment of ancient and famous trees.According to the morphological characteristics of tree growth,the health evaluation index factors of ancient and famous trees were formed by the proportion of green loss of leaves,the degree of sparse density and the inclination of trunk;According to the relevant industry standards,the method of statistical analysis is used to determine the scoring standard of each index.Based on the analytic hierarchy process,the index weight is set,and the health evaluation index system of ancient and famous trees based on morphology is constructed.On this basis,the health evaluation model of ancient and famous trees is constructed,and the comprehensive index of ancient and famous trees is given to evaluate the health level of ancient trees.(2)Based on image processing technology,an algorithm for health assessment of ancient and famous trees is designedWith the help of image processing technology to obtain index data,complete the health assessment of ancient and famous trees.In the first step,the grabcut interactive image extraction technology is used to extract the whole tree image and the trunk region image of ancient and famous trees,and the image after extraction is corroded and expanded to complete the image preprocessing.The second step is to obtain the data.According to the evaluation index requirements,different processing methods are adopted for the trunk and leaves.For the trunk,skeleton extraction,data thinning and curve fitting are carried out for the trunk image,and then the trunk inclination is calculated by using the fitting curve.For the leaves,on the one hand,the super green method is used to calculate the proportion of green loss of the leaves;on the other hand,the super green method is used to calculate the proportion of green loss of the leaves,The maximum contour rectangle method was used to calculate the density of leaves.The third step is to integrate the algorithm process,calculate the health assessment level of ancient and famous trees based on the health assessment model of ancient and famous trees,complete the health assessment of ancient and famous trees,and verify the effectiveness of the health assessment model of ancient and famous trees through comparative analysis.(3)Based on the technology of software engineering,the health assessment system of ancient and famous trees was developedBased on the object-oriented software development method and technology,the design and implementation of health assessment system for ancient and famous trees are completed.Firstly,the object-oriented analysis method is used to analyze the system requirements in detail,and the system use case model and other related analysis models are constructed;Secondly,according to the system requirements analysis,the system is divided into view layer,model layer and control layer by using the hierarchical and modular design idea,and the software architecture is constructed,and the complete design scheme is given;Thirdly,HTML 5,CSS3,j Query,El expression and other web development technologies are used to complete the foreground development of the system,SSM framework technology is used to integrate the background development of the system,and Ajax,JSON and other technologies are used to realize the front-end and back-end data transmission;Finally,the function and performance of the system are tested,and the test results are analyzed to verify the practicability,security and stability of the system.The whole system achieves the expected purpose and requirements. |