DESIGN AND DEVELOPMENT OF ANIMAL DETECTION ALGORITHM USING IMAGE PROCESSING