kirigirisuzumiya / crowd_vis Goto Github PK
View Code? Open in Web Editor NEW使用django+pyecharts+PP-Human开发的动态数据大屏, 有人流数据的采集入库, 打架、摔倒等事件警报,口罩检测等实用功能。边缘端版本使用onnx推理提升效率,服务端版本支持视频流推拉
License: Other
使用django+pyecharts+PP-Human开发的动态数据大屏, 有人流数据的采集入库, 打架、摔倒等事件警报,口罩检测等实用功能。边缘端版本使用onnx推理提升效率,服务端版本支持视频流推拉
License: Other
使用将服务部署至本地服务器后,通过192的方式访问,出现推理视频画面延迟大约在7秒左右,也就是页面显示的并不是最新的视频流画面
当在给服务器添加域名,使用https访问时,视频只能播放第一帧的画面, 随后卡顿,但通过后台日志发现视频流仍在处理
请问计数功能是模型自带的还是后续添加的,比如说区域进入数量统计
[16/Mar/2023 10:26:03] "GET /num_count HTTP/1.1" 200 4
Internal Server Error: /graph_vis
Traceback (most recent call last):
File "C:\Anaconda3\envs\PP\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Anaconda3\envs\PP\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\admin\Desktop\crowd_vis\crowd_vis\views.py", line 184, in graph_vis
.add('', pie_data, center=['50%', '60%'], radius='70%')
File "C:\Anaconda3\envs\PP\lib\site-packages\pyecharts\charts\basic_charts\pie.py", line 49, in add
elif isinstance(data_pair[0], opts.PieItem):
IndexError: list index out of range
[16/Mar/2023 10:26:03] "GET /graph_vis HTTP/1.1" 500 92862
[16/Mar/2023 10:26:04] "GET /num_count HTTP/1.1" 200 4
[OpenVINO]pp-human/pipeline/model/picodet_v2_s_320_pedestrian\model.pdmodel infer request created
video fps: 0, frame_count: 0
[16/Mar/2023 10:26:12] "GET /num_count HTTP/1.1" 200 4
Thread: 0; frame id: 0
Internal Server Error: /graph_vis
Traceback (most recent call last):
File "C:\Anaconda3\envs\PP\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Anaconda3\envs\PP\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\admin\Desktop\crowd_vis\crowd_vis\views.py", line 184, in graph_vis
.add('', pie_data, center=['50%', '60%'], radius='70%')
File "C:\Anaconda3\envs\PP\lib\site-packages\pyecharts\charts\basic_charts\pie.py", line 49, in add
elif isinstance(data_pair[0], opts.PieItem):
IndexError: list index out of rangesave result to output\test1.mp4
我想在view层将 test.mp4修改为 rtsp的方式作为视频源 ,需要如何修改代码 ,前端是否可以正常视频,
因为我知道pp-huam是支持推流和拉流测试的
(crowd_vis) mosaic@mosaic-virtual-machine:/Public/crowd_vis$/Public/crowd_vis$ python manage.py runserver
(crowd_vis) mosaic@mosaic-virtual-machine:
Watching for file changes with StatReloader
Performing system checks...
python /home/mosaic/Public/crowd_vis/pp-human/pipeline/pipeline.py --config /home/mosaic/Public/crowd_vis/pp-human/pipeline/config/infer_cfg_pphuman.yml --video_file=/home/mosaic/Public/crowd_vis/test1.mp4 --run_mode=openvino --output_dir=output --do_entrance_counting --show_id=1
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/mosaic/Public/crowd_vis/crowd_vis/views.py", line 32, in pp_human_service
subprocess.run(shell)
File "/usr/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'python /home/mosaic/Public/crowd_vis/pp-human/pipeline/pipeline.py --config /home/mosaic/Public/crowd_vis/pp-human/pipeline/config/infer_cfg_pphuman.yml --video_file=/home/mosaic/Public/crowd_vis/test1.mp4 --run_mode=openvino --output_dir=output --do_entrance_counting --show_id=1': 'python /home/mosaic/Public/crowd_vis/pp-human/pipeline/pipeline.py --config /home/mosaic/Public/crowd_vis/pp-human/pipeline/config/infer_cfg_pphuman.yml --video_file=/home/mosaic/Public/crowd_vis/test1.mp4 --run_mode=openvino --output_dir=output --do_entrance_counting --show_id=1'
System check identified no issues (0 silenced).
December 31, 2022 - 15:07:18
Django version 3.2.16, using settings 'crowd_vis.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[31/Dec/2022 15:07:47] "GET / HTTP/1.1" 200 49167
[31/Dec/2022 15:07:47] "GET /static/css/index01.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/css/index.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/css/BigData.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/bstable/css/bootstrap.min.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/css/Security_operation.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/Home_page.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/jquery.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/laydate.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/artDialog/skins/default.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/index.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/bstable/js/bootstrap-table-zh-CN.min.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/jquery.pagination.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/bstable/js/bootstrap.min.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/bstable/css/bootstrap-table.css HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/bstable/js/bootstrap-table.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/artDialog/artDialog.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/echarts-all.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/video/img.png HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/js/artDialog/plugins/iframeTools.source.js HTTP/1.1" 304 0
[31/Dec/2022 15:07:47] "GET /static/video/video.jpg HTTP/1.1" 304 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.