2016-04-07 08:09:38 -0600 | asked a question | Issue while running OpenCv Python script on Amazon-Ec2 Instance I am calling a Python script using php System() function. Python script implements the Foreground subtraction using OpenCv library. I upload the image using Post request and then pass the file to the script. Following things are getting executed in the code I am Testing this program using two images, 1500 * 701 pixels and 2368 * 4208 pixels. Everything is working fine for the low resolution image. But for the high resolution image, Python script keeps exiting. Php code. Python script For testing purposes, I have already saved the file and just testing the python script. I am facing the same problem here as well. On my local host, Program is working fine for both the images. I am facing problem on the Amazon-EC2 instance and that too for the high resolution image. For the high resolution image, if I comment out the code for Foreground subtraction, time is getting printed. So, It is safe to assume that the problem is with running the Foreground subtraction for high resolution image. |