Conversation
|
@dbudniko please, add tests on |
AsyaPronina
left a comment
There was a problem hiding this comment.
Should we also extend gapi_frame_tests.cpp and, if inference works, gapi_infer_ie_test.cpp also?
| { | ||
| std::call_once(m_warnFlag, | ||
| []() { | ||
| GAPI_LOG_WARNING(NULL, "\nOn-the-fly conversion from GRAY to NV12 Y plane will " |
There was a problem hiding this comment.
This warning is not applicable here, if to be honest..
This accessor tries to return Y cv::Mat from any given frame. For GRAY frames it is enough to just return their data as Y planes. There is no expected time-consuming conversions.
Warning was about situation when we trying to access, for example, Y plane from BGR cv::MediaFrame. So, the conversion needs to be happen inside from BGR to NV12 and, then, Y plane can only be retrieved. As BGR input frame might have high enough resolution, conversion might be time-consuming and that is why warning is created.
So, here it might be omitted
There was a problem hiding this comment.
I'd keep a message here that requested plane here doesn't not quite align with the initial format
…/opencv into dbudniko/gapi_media_format_gray
|
3 new streaming tests with gray are OK now. |
|
Media Frame added and green now. Please review. We still have open regarding correct color conversion approach in streaming tests. Discussed it with Asya. Need your inputs to left one. #if0 #else #endif temporary left in the tests source code. |
|
@alalek please merge. |
AsyaPronina
left a comment
There was a problem hiding this comment.
I suggest to discuss IE backend GRAY support last time
Please sorry for incoveniences!
|
@alalek gentle reminder |
…mat_gray G-API media format gray
…mat_gray G-API media format gray
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.