The image formed by a mirror is virtual whereas the image formed by a pinhole camera is real.
Explanation: Image is formed as the incident ray arrives from an object and meets after reflection. A real image is made by the meeting of converging rays, while a virtual image is made by the meeting of diverging rays.