New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation on G-types, cv::MediaFrame, and G-API namespaces #20238
Conversation
@TolyaTalamanov @mpashchenkov please have a look |
as @mpashchenkov is on vacation, kindly asking @rgarnov to review. |
@TolyaTalamanov @rgarnov any comments here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor misprint catch from my side, and a small sample code clean-up suggestion
@@ -340,21 +340,79 @@ namespace detail | |||
/** \addtogroup gapi_data_objects | |||
* @{ | |||
*/ | |||
|
|||
/** | |||
* @brief `cv::GArray<T>` template class represents an list of objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an
-> a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks
* at the graph construction or compile time. Examples include: corner | ||
* and feature detectors (`cv::GArray<cv::Point>`), object detection | ||
* and tracking results (`cv::GArray<cv::Rect>`). Programmers can use | ||
* their own types in with `cv::GArray<T>` in the custom operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in with
-> with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
* other `cv::GArray<T>` to the object using `operator=` -- on the | ||
* assigment, the old association or value is discarded. | ||
* | ||
* @param v a std::vector<T> to assiciate with this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
associate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
* @overload | ||
* @brief Constructs a value-initialized `cv::GArray<T>` | ||
* | ||
* @param v a std::vector<T> to assiciate with this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
associate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
1) Document GFrame/MediaFrame (and also other G-API types) - Added doxygen comments for GMat, GScalar, GArray<T>, GOpaque classes; - Documented GFrame and its host-side counterpart MediaFrame; - Added some more notes to the data type classes. 2) Give @brief descriptions to most of the cv::gapi::* namespaces 3) Make some symbols private - These structures are mainly internal and shouldn't be used directly
@rgarnov @TolyaTalamanov I've pushed the updates (had to do this earlier but could do it just now). Please, have a look |
Cool, thanks! |
There is also some pending changes on Inference but those parts will be pushed in a separate PR after #20169 is merged.
Patch to opencv_extra has the same branch name.