Development and experiment of automatic detection device for infrared target