Galaxy detection and classification in sky images with neural network