【问题标题】:How to run object detection in web application如何在 Web 应用程序中运行对象检测
【发布时间】:2021-07-05 00:18:55
【问题描述】:
我已经完成了一个对象检测项目,我想用一个 Web 应用程序对其进行演示。我在 Darknet 上使用 YOLOv3 进行训练。我打算获得我从培训中获得的权重并在网络应用程序中使用它。我决定允许用户上传图像,然后通过 Python 脚本获取该图像,该脚本将加载我训练的权重并进行检测。我决定在服务器端使用 PHP,并首先在 localhost 上测试所有内容。
我对网络应用程序完全陌生,我不知道我的决定是否正确
【问题讨论】:
标签:
php
server
web-applications
object-detection
yolo
【解决方案1】:
有可能做到这一点..这里有标题让你开始
>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