The Ring Imaging Cherenkov (RICH) detectors of the LHCb experiment provide particle identification (PID) of charged particles in the momentum range of 2-100 GeV. This is essential for the LHCb core physics program. As the center-of-mass energy of the LHC has been increased from 8 TeV to 13 TeV, and the LHCb experiment will upgrade from 2021 and run at a 4-times higher luminosity than the current one, a new and unique software trigger strategy has been established at the LHCb experiment with the purpose of increasing the purity of the signal events by applying the same algorithms online and offline. This requires ultimate quality of vertexing, tracking, and PID. Real-time calibration and alignment of the RICH detectors is needed to provide the best PID for the online trigger, and will be reported in this talk. This includes the calibration of the refractive index of the RICH radiators, the calibration of the Hybrid Photon Detector (HPD) image, and the alignment of the RICH mirror system.