opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
75.95k stars 55.62k forks source link

G-API OV backend requires partial shape support #25508

Open DariaMityagina opened 2 weeks ago

DariaMityagina commented 2 weeks ago

Pull Request Readiness Checklist

Addressing the TODO from G-API OV backend requires cv::MediaFrame PR

Background_subtraction demo G-API issue: Porting to API20 resulted in an error (both for CPU and NPU):

[ERROR] OpenCV(4.9.0-dev) /home/runner/work/open_model_zoo/open_model_zoo/cache/opencv/modules/gapi/src/backends/ov/govbackend.cpp:813: error: (-215: assertion not done ) cv::util::holds_alternative<cv::GMatDesc>(input_meta) in function 'cfgPreProcessing'

Adding cv::MediaFrame and partial shape support to govbackend resulted in the following (tested with CPU):

image

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

asmorkalov commented 17 hours ago

@dmatveev @TolyaTalamanov Friendly reminder.