python通过命令和浏览给出不同的结果

2024-04-20 13:07:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我在awslinux上使用python2.7和opencv3.1进行图像处理。当我通过命令运行python脚本时,如果我通过浏览器上的php exec命令运行python脚本,在这两种情况下,它会给出不同的输出结果

以下是不同的结果:

原始图像: enter image description here

终端输出: enter image description here

通过浏览器运行python脚本时输出

enter image description here


Tags: 图像命令脚本终端情况浏览器图像处理exec