1. A method implemented in a computing device for a database constructing, comprising: receiving a plurality of tympanic membrane images, wherein the tympanic membrane images are ear infection in different types; choosing one of the tympanic membrane images, and classifying into a plurality of anatomic regions based on a plurality of tissue types; coding each of anatomic regions with a numerical number to describe its morbid condition; choosing other one of anatomic regions orderly until all anatomic regions are coded with numerical numbers; obtaining an eigenvalue through collecting the numerical number of each anatomic region; choosing other one of tympanic membrane images repeatedly until each tympanic membrane image obtaining the eigenvalue; and obtaining a matrix through collecting the eigenvalue of each tympanic membrane image, then generating an otitis media database.