Megvii-BaseDetection / YOLOX

YOLOX is a high-performance anchor-free YOLO, exceeding yolov3~v5 with MegEngine, ONNX, TensorRT, ncnn, and OpenVINO supported. Documentation: https://yolox.readthedocs.io/
Apache License 2.0
9.48k stars 2.21k forks source link

Online streaming inference / http stream inference support? #807

Open nocolour opened 3 years ago

nocolour commented 3 years ago

Hi,

May I know the YOLOX demo.py can support http streaming or online stream video?

Example on yolov5 python detect.py --source "http://xxxxxx.xx"

can add online http streaming inference to demo.py?

Thanks?

pedromoraesh commented 3 years ago

OpenCV usually supports RTSP streams, if you have the RTSP URL you can pass:

--demo "rtsp://user:pass@camip:port/path

cv2.videoCapture support both, live or file.

nocolour commented 3 years ago

OpenCV usually supports RTSP streams, if you have the RTSP URL you can pass:

--demo "rtsp://user:pass@camip:port/path

cv2.videoCapture support both, live or file.

Hi,

Thanks for reply.

can u show me the full command or code? python tools/demo.py image -n yolox-s -c yolox_s.pth --conf 0.25 --nms 0.45 --tsize 640 --save_result --device gpu --demo "rtsp://user:pass@camip:port/path". like this?