dlstreamer / pipeline-server

Home of Intel(R) Deep Learning Streamer Pipeline Server (formerly Video Analytics Serving)
BSD 3-Clause "New" or "Revised" License
123 stars 50 forks source link

How to use web camera source? #83

Closed lightlu closed 2 years ago

lightlu commented 2 years ago

Web Camera Source section is noted as TBD in customizing_pipeline_requests.md. Is v4l2src source supported now? Thank you.

whbruce commented 2 years ago

@lightlu Response has been updated with a simplified solution.

The pipeline definition file needs a tweak as gavdetect cannot deal with webcam input directly. As an example update object_detection/person_vehicle_bike pipeline/pipeline.json template as follows

whbruce commented 2 years ago

@lightlu does this answer your question?

lightlu commented 2 years ago

@whbruce Thank you & sorry for late reply Let me provide patch to use webcam on /dev/video0 for samples/record_frames/ which based on this git commit: v0.6.0-beta origin/master 2534d9b4d8487864bfdccdfcdc746ccf0f5627d7 0001-Force-samples-record_frames-to-use-dev-video0-webcam.zip

whbruce commented 2 years ago

@lightlu thanks for contribution. In the short term we have updated our docs. Our next release will contain a "universal" VA Serving source so that pipelines can take media from anywhere.