Coder Social home page Coder Social logo

Comments (17)

chmod740 avatar chmod740 commented on July 4, 2024

可以直接在本issue上描述问题。

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024
p.stdin.write(frame.tostring())

BrokenPipeError: [Errno 32] Broken pipe

在使用管道的时候一直会报错, 我的环境是win10, 不知道您有没有遇到这个错误呢?

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

您好, 方便加一下微信或者QQ吗, 这样能更好的描述问题。 我是一名大三的学生, 特别想得到前辈的帮助。【qq: 1721310909,weixin:15893176182】

from pedestriandetectionsystem.

chmod740 avatar chmod740 commented on July 4, 2024

确认本机上已经安装上了FFmpeg 且已经将FFmpeg添加至环境变量。
添加成功标志 在CMD里面输入ffmpeg 显示的不是找不到命令。
另外本项目在win10和ubuntu上都亲自验证过可以跑起来。

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

感谢前辈, 我这就试下。如果还存在问题, 还是在这里描述吗?

from pedestriandetectionsystem.

chmod740 avatar chmod740 commented on July 4, 2024

是的 为了不重复处理相似的问题 直接在issue里面解决

如果确认FFmpeg确实已经安装成功 并且添加到环境变量成功的话,
需要确认基于nginx的推流服务器是否搭建成功。
ubuntu上编译支持nginx rtmp的服务器教程比较多
windows10 的话 我记得当时用的是https://github.com/illuspas/nginx-rtmp-win32 这个开源项目
先尝试下 能否进行推流 网上有很多用FFmpeg推流 用vlc等播放器接收并播放的教程 以上测试成功后再用python的管道进行推流

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

from pedestriandetectionsystem.

chmod740 avatar chmod740 commented on July 4, 2024

如果web见面可以正确显示人数的话 意味着算法在正确运行 问题出在吃的推流的地址上面 需要检查推流地址。 原始流由android等设备采集并推到rtmp服务器的一个url上面 我们设这个url为 url1 ,python程序从URL1上面收集数据,处理完之后推到URL2上面(看管道设置里面的url) ,web界面应该配置为URL2,才能看到带框框的视频流 整个流程看 README 文档的第一个插图有说明。

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

from pedestriandetectionsystem.

chmod740 avatar chmod740 commented on July 4, 2024

一台服务器就够了
在本项目中 android端推流地址:
URL1

private static final String IMU_STREAM_URL = "rtmp://183.175.12.160/live/android";

python处理完之后推向另一个地址
URL2

RTMP_HOST = '183.175.12.160'

rtmpUrl = 'rtmp://' + RTMP_HOST + ':1935/live/stream'

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

前辈您好 , 目前我是采用的软件推流。rtmp服务器搭建了一个rtmplive节点,像您那样的节点应该怎么配置呢?
/live/android"
/live/stream'

目前我的OBS推流地址是: rtmp://IP/rtmplive

from pedestriandetectionsystem.

chmod740 avatar chmod740 commented on July 4, 2024

OBS推流 -> rtmp://IP/live/android
python 用OpenCV 接收 rtmp://IP/live/android 处理完管道推出 /live/stream
web端 去 /live/stream拉取

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

from pedestriandetectionsystem.

cytcui avatar cytcui commented on July 4, 2024

from pedestriandetectionsystem.

chmod740 avatar chmod740 commented on July 4, 2024

不提供其他linux发行版的问题解答

from pedestriandetectionsystem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.