do my brake pads need replacement?

Do my front and rear brake pads need to be replaced? both the thickness and the grooves in between the pads look fine to me.