Did you perform a reboot? Hold down the sleep/wake and home buttons. Do not release them until the Apple logo appears. The iPad will restart after about 30 seconds.
If this does not work, do a backup, then restore to factory settings.
If it still does not work, you may have a defective camera and will need to visit Apple for an exchange or repair.