Update tutorial for erosion / dilation#17839
Conversation
|
@malliaridis Is the patch ready for review? Please change PR status, when you are done. |
|
@asmorkalov I have till next week a tight schedule. The java part is completely missing yet and I would like to add and test it before changing the status of the PR. |
|
Because of vacation it takes more time to complete this PR. Sorry for the circumstances. If you have any feedback yet however let me know. I will read it when I return back to work. |
|
|
||
| Troubleshooting | ||
| --- | ||
| @add_toggle_python |
There was a problem hiding this comment.
Not sure that function's tutorial is a right section for Python troubleshooting (both are about misused OpenCV version - samples assume OpenCV binaries from the same version and for right Python version)
There was a problem hiding this comment.
@alalek I know, that was my first thought too. However, I confronted a lot of issues while installing OpenCV for python under Ubuntu. I also have trouble for the java installation. The sites and tutorials found in docs and online are very error prune or are for older versions. Some tutorials aren't working at all or install OpenCV and the version is shown but nothing more (executing example code throws errors). That's why I though it would be useful to bring some clarification as a "troubleshooting" section. But of course I can remove the section.
What's your opinion about the other content (except the troubleshooting section now)?
P.S. I want to start also a discussion somewhere about simplifying the installation process by collecting some opinions and discuss various installation options and the problems beginners have while starting learning OpenCV. That way the troubleshooting section won't be necessary at all and the beginners can get started much faster. My experience for example wasn't that great and the installation process was too complicated for "just trying it out". Finding the right resources and explanations was quite difficult.
There was a problem hiding this comment.
I believe this content should be contributed into this document instead: https://github.com/opencv/opencv/wiki/FAQ (maintained by @asmorkalov )
Please open a new issue with proposals for Wiki updates (GitHub doesn't support PRs for Wiki)
There is PR with updating of installation process: #18195
Feel free to discuss it there.
There was a problem hiding this comment.
@asmorkalov do you think we can fit somehow this kind of content in the FAQ?
And about the mentioned PR, I'll check it out, thanks. Looks like a lot of improvements are being made.
|
@malliaridis Friendly reminder. |
Remove troubleshooting section as discussed in PR opencv#17839.
|
I would like to mention that the code snippets that were found and reused are implemented with different resulting windows, preventing a comparison or squashing of the explanation texts. Also, some optional parameters in functions from the python library seem to be required in java (no defaults). |
|
@malliaridis I reviewed the PR and it looks good to me 👍 . Please squash commits and we can merge it. |
|
This patch should go into 3.4 branch first. So, please:
Note: no needs to re-open PR, apply changes "inplace". |
- Add python explanation for erosion and dilation - Add java explanation for erosion and dilation - Restructure and reword specific sections
I hopefully followed all steps correctly. Let me know if I missed something. I also stashed the commits as requested. |
|
Demo page for this PR. |
Demo page
PR Information
The tutorial for erosion and dilation lack on explanation for java and python. With this PR I want to improve the tutorial by modifying and expanding the information provided.
This PR addresses the following:
Provide a troubleshooting section for known errors(removed as discussed)Feedback and opinions about the changes are appreciated.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
There is reference to original bug report and related work(not a bug)Patch to opencv_extra has the same branch name.~ ((not applicable)
The feature is well documented and sample code can be built with the project CMake(not applicable)