Cosmic rays are a key component of the interstellar medium because they regulate the dynamics and chemical processes in the densest and coldest regions of molecular clouds. Still, the cosmic-ray ionisation rate of H$_2$ (crir ) is one of the most debated parameters characterising molecular clouds because of the uncertainties in the adopted chemical networks and analysis techniques. This work aims to homogeneously estimate the crir at parsec scales towards the Orion Molecular Clouds OMC-2 and OMC-3. We explore the change in crir across a whole star-forming region by probing a range of column densities taht has never been explored before. The significant increase in statistics obtained by studying an entire region allows us to place stronger constraints on the range of crir values and exploit its connection with the physical properties of the interstellar medium. The most recent crir estimates are based on o$-$H$_2$D$^+$, which is a direct product of the interaction between cosmic rays and H$_2$ in cold clouds. Since observations of o$-$H$_2$D$^+$ are challenging, we proxy its abundance through CO depletion by employing C18O (2$-$1) observations towards OMC-2 and OMC-3, taking advantage of the existing correlation between the two parameters. Using additional observations of HCO$^+$ (1$-$0) and DCO$^+$ (3$-$2), we determine the deuteration fraction, and we finally derive the map of crir in these two regions. The C18O depletion correlates with both the total column density of H$_2$ and the N$_2$H$^+$ emission across OMC-2 and OMC-3. The obtained depletion factors and deuteration fractions are consistent with previous values obtained in low- and high-mass star-forming regions. These two parameters additionally show a positive correlation in the coldest fields of our maps. We derive cosmic-ray ionisation rates of $ $ s$^ $. These values agree well with previous estimates based on o$-$H$_2$D$^+$ observations. The crir also shows a functional dependence on the column density of H$_2$ across a full order of magnitude ($ $ cm$^ $). The estimated values of crir decrease overall for increasing $N( H_2 $), as predicted by theoretical models. The results delivered by our approach are comparable with theoretical predictions and previous independent studies. This confirms the robustness of the analytical framework and promotes CO depletion as a viable proxy of o$-$H$_2$D$^+$. We also explore the main limitations of the method by varying the physical size of the gas crossed by the cosmic rays (i.e. the path length). By employing a path length obtained from low-resolution observations, we recover values of the crir that are well below any existing theoretical and observational prediction. This discrepancy highlights the need for interferometric observations in order to reliably constrain the crir at parsec scales as well.