Provided are a hydroxy amidine derivative, a preparation method and a use in medicine thereof. In particular, provided are the hydroxy amidine derivative as shown by general formula (I), the preparation method thereof and a pharmaceutical composition containing the derivative, and the use thereof for treating diseases having a pathological feature of an IDO-mediated tryptophan metabolic pathway, with these diseases comprising cancer, Alzheimers disease, immunological diseases, depression, anxiety disorders, cataracts, psychological obstacles and AIDS, wherein the definition of each substituent in the general formula (I) is the same as that defined in the description.La présente invention concerne un dérivé dhydroxyamidine, son procédé de préparation et son utilisation en médecine. En particulier, linvention concerne le dérivé dhydroxyamidine tel que représenté par la formule générale (I), son procédé de préparation et une composition pharmaceutique contenant ledit dérivé, et son utilisation pour le traitement de maladies ayant une caractéristique pathologique dune voie métabolique du tryptophane médiée par lIDO, ces maladies comprenant le cancer, la maladie dAlzheimer, des maladies immunitaires, la dépression, des troubles de lanxiété, des cataractes, des obstacles psychologiques et le SIDA, la définition de chaque substituant dans la formule générale (I) étant la même que celle définie dans la description.