Learning of Active Perception Based on Reinforcement Learning