What I have learnt in school is that, we are able to see images behind a mirror(virtual image) because our brain assumes that the diverging rays that our eyes see, are coming from a point behind the mirror but in reality, there is no such point. So, my question is if there is no such point, how can a camera capture it?
I think you are confused due to the terminology 'virtual' here. 'Virtual image' here does not mean there is no image, it simply implies that the image is not where it appears to be. If you are looking through a transparent material, you also see an image but this time, the object is actually at the place from where the light appears to come and hit your eyes. In a mirror, you see yourself looking back at yourself. It appears that you are on the opposite side of the mirror from where you actually are. It is in this sense, we call the image in a mirror a virtual one. But the photons (light particles) hitting your eyes are totally real, and it's these photons that go on to form a picture when they hit the sensors of a camera. Thus, all images may form picture via camera as they are made of real photons.
So I suggest you to try to look past the word 'virtual' and understand, what the word 'virtual' actually stands for here.
What I have learnt in school is that, we are able to see images behind a mirror(virtual image) because our brain assumes that the diverging rays that our eyes see, are coming from a point behind the mirror
Not necessarily. Images are images independent of what the brain is doing. It's not like our brain has some mechanism to first determine if an image is real or virtual and then interprets the light differently because of it. Either way it's just our eyes detecting light.
Cameras can see virtual images for the same reason we can: the light coming from each point on the object is smoothly mapped to a unique point of the real image produced by the eye/camera lens.