[G-API] Implement render using stateful kernel#18600
Merged
alalek merged 6 commits intoopencv:masterfrom Oct 26, 2020
Merged
Conversation
7a0d0ad to
95b2eac
Compare
95b2eac to
0f2e247
Compare
00b8963 to
1ba6d3c
Compare
Contributor
Author
dmatveev
approved these changes
Oct 22, 2020
Contributor
dmatveev
left a comment
There was a problem hiding this comment.
Removing code is always nice!
Viva la stateful kernels, @AsyaPronina should be proud :)
|
|
||
| if (has_freetype_font) | ||
| { | ||
| state->ftpr = std::make_shared<FTTextRender>(has_freetype_font.value().path); |
Contributor
Author
There was a problem hiding this comment.
Don't get your point
| const cv::GCompileArgs& args) | ||
| { | ||
| using namespace cv::gapi::wip::draw; | ||
| auto has_freetype_font = cv::gapi::getCompileArg<freetype_font>(args); |
Contributor
There was a problem hiding this comment.
while this is valid in terms of optional<>, this may be hard to understand by a non-prepared person
| auto has_freetype_font = cv::gapi::getCompileArg<freetype_font>(args); | ||
| state = std::make_shared<RenderOCVState>(); | ||
|
|
||
| if (has_freetype_font) |
Contributor
There was a problem hiding this comment.
...so I'd write it this way:
const auto opt_freetype_font = get<>();
if (opt_freetype_font.has_value()) {
...
}
Contributor
Author
Merged
a-sajjad72
pushed a commit
to a-sajjad72/opencv
that referenced
this pull request
Mar 30, 2023
…er-using-stateful [G-API] Implement render using stateful kernel * Implement render using stateful kernel * Move freetype to backends folder * Fix freetype compilation * Fix freetype smoke test * Fix comments * Refactoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
Build configuration