How to blur in blender
I think you are looking for Depth Of Field settings. Select your camera, and enter camera perspective (Numpad 0) to see what it's doing. The options are in the camera settings. You can even pick a focus object: