Automatically adjustable rear mirror based on computer vision