cv2.imwrite function not working via php server

asked 2017-04-10 16:28:58 -0600

My Problem:- I am calling python opencv program for image detection via php file or on php server.In that files all works good but cv2.imwrite function does't working properly and does't write or save any image in my any directory (current working or desire location directory). I also tried python predefined image save function but it does't work.I notice a error in python file that when I run that same file at terminal then cv2.imwrite function returns "True" and save or write image in my directory but when same thing I run via php file using shell_exec or exec function then it returns me "False" nothing will save or write in my directory.

What actually I want to do:- Whatever camera capture images or provided by us then that detected face images send to my localhost directory or server directory via php.

edit retag flag offensive close merge delete

Comments

hard to help you, without seing any code

berak gravatar imageberak ( 2017-04-12 01:34:51 -0600 )edit