Php 如何在web应用程序中运行对象检测

Php 如何在web应用程序中运行对象检测,php,server,web-applications,object-detection,yolo,Php,Server,Web Applications,Object Detection,Yolo,我已经完成了一个对象检测项目,我想用一个web应用程序来演示它。我在Darknet上使用YOLOv3进行训练。我打算获得我从训练中获得的重量,并在web应用程序中使用它。我决定允许用户上传一个图像,然后通过Python脚本获取该图像,该脚本将加载经过训练的权重并进行检测。我决定在服务器端使用PHP,并首先在本地主机上测试所有内容 我对web应用程序完全陌生,我不知道我是否决定正确这样做是可能的..以下是一些标题,让您开始了解 >First create the image upload f

我已经完成了一个对象检测项目,我想用一个web应用程序来演示它。我在Darknet上使用YOLOv3进行训练。我打算获得我从训练中获得的重量,并在web应用程序中使用它。我决定允许用户上传一个图像,然后通过Python脚本获取该图像,该脚本将加载经过训练的权重并进行检测。我决定在服务器端使用PHP,并首先在本地主机上测试所有内容


我对web应用程序完全陌生,我不知道我是否决定正确

这样做是可能的..以下是一些标题,让您开始了解

>First create the image upload form
>PHP script to first move the image to a folder accessible to .py for processing
then execute the .py script
>Save the result of the processing to a log (.json works best with php)
>Decode the .json with PHP
>if you need to do calculations with PHP, do so
>Lastly give the user the results they expect to get