I write this code but my images appear on the next page.
\begin{figure}[H]
\centering
\begin{minipage}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{images/imageGray.png}
\caption{Imaginea originala}
\end{minipage}
\hfill
\begin{minipage}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{images/imageBlur.png}
\caption{Imaginea blurata}
\end{minipage}
\end{figure}

figureenvironment maybe taller than the space that's available at the bottom of the page? If so, that would explain why LaTeX is forced to place the figures at the top of the subsequent page. – Mico Jan 10 '21 at 19:52[H](you should get an error message if not) then you will get a page break if it does not fit at that point. So what you show may be expected behaviour, but it is impossible to tell as you have not shown whether the bears would fit on the previous page or not. – David Carlisle Jan 10 '21 at 23:05