1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Add make_capture_src for video stream to Python

This commit is contained in:
xiong-jie-y
2022-05-15 13:00:01 +09:00
parent 8d0fbc6a1e
commit c929f1b62f
2 changed files with 12 additions and 2 deletions
@@ -119,6 +119,12 @@ GAPI_EXPORTS_W cv::Ptr<IStreamSource> inline make_capture_src(const std::string&
return make_src<GCaptureSource>(path);
}
// NB: Overload for using from python
GAPI_EXPORTS_W cv::Ptr<IStreamSource> inline make_capture_src(const int id)
{
return make_src<GCaptureSource>(id);
}
} // namespace wip
} // namespace gapi
} // namespace cv