Capture video from cameras in blender game engine for Artificial Intelligence
I found the answer!

Thanks ThaTimst3r for his video on YouTube: /watch?v=e4KNstJhFeA&amp;index=1&amp;list=LLNnIYCXmFzdsaND3RsqYSdA



We need to add two planes which we will use for our "screens". These screens need different textures. So, we need to link the materials of screens and cameras. For this purpose, in each screen, we create two properties: the material and the camera.

The values of properties have to be the same as name of material and name of camera respectively.

Next, in our code we will link them:

camera_name = obj['camera_property']


and

matID = texture.materialID(obj, 'MA'+obj['material_property'])


Let's render texure from camera:

renderToTexture = texture.Texture(obj, matID)
renderToTexture.source = texture.ImageRender(scene, cam)


So, final we have the effect what we need. We can even set the resolution of images:

enderToTexture.source.capsize = [500, 500]


And convert images to arrays:

imageArray = texture.imageToArray(renderToTexture.source, 'RGB')


Thats all, I think.

If you have comments, I will listen them with pleasure =)

All source files.