What do you mean exactly with "analyze the graphics"? The rest sounds relatively simple but graphics recognition of any kind very quickly becomes advanced rocket science.