54

There are many interfaces to the OpenCV computer vision library. We have the generic (50628 questions), as well as some version-specific tags, and then these:

× 801 (this is the Python interface)
× 514 (for Android)
× 166 (for C#)
× 155 (this is also the Python interface)
× 49 (for .NET)
× 9 (for iOS)
× 6 (Node.js)
× 5 (also Node.js)

As far as I know, none of these interfaces do anything special. They just make the OpenCV functions available on different platforms or from different languages.

Say I am using Python and OpenCV. I could tag with , but I need to add as well (at the least to get proper syntax highlighting). In this case, what does (or ) add over ? It just makes it more difficult to find questions related to OpenCV.

So I suggest we get rid of all of these tags.

Note that there are, for example, 12,779 questions tagged and , vs 801 tagged and 155 tagged . That is, these language-specific tags are used relatively infrequently.


These are the numbers of questions with each of these tags and no :

cv2 × 430 (this is the Python interface)
opencv4android × 143
opencvsharp × 64
opencv-python × 64
opencvdotnet × 6
opencv4ios × 2 0
opencv4nodejs × 3 0
node-opencv × 0

As you can see, most people use both tags. The clear outlier here is , for which half of the cases there is no . In Python, one imports the OpenCV library by importing cv2. should be aliased to , as per this answer.

The other tags should all be burninated.

12
  • 3
    What do you think about the many opencv-versionXX tags? They need probably to be reorganized as well
    – Miki
    Commented Jun 6, 2019 at 8:58
  • @Miki: I don’t see the need for a separate tag for version 3.1 and 3.2, etc. But it makes sense to distinguish the major versions maybe. I haven’t run into the version-specific tags as much as the [cv2] tag, which started this issue for me. Commented Jun 6, 2019 at 13:05
  • What about emgucv tag. I just noticed when looking at some random questions.
    – Luuklag
    Commented Jun 7, 2019 at 11:09
  • 2
    @Luuklag I always had the feeling, EmguCV is "more" than just a "simple" OpenCV wrapper (cf. EmguCV's wiki: Architecture Overview). Although they recommend using Mat, their Image class still seems to be widely used. After browsing some emgucv questions, one might get the impression, that EmguCV is perceived as some kind of stand-alone product, at least to a certain amount. So, I personally would keep the tag. Cross-tagging opencv can still be done.
    – HansHirse
    Commented Jun 7, 2019 at 12:29
  • @HansHirse Heck If you agree that EmguCV should still be a tag on the basis of Image, then you might as well keep a lot of the language version tags, at least when it comes to python, matrix operations are done through numpy instead of opencv, copying is done through numpy an python, and IO doesn't quite work the same as in C++, opencv provides a different serialization API that looks similar but is undocumented and has some large differences.
    – Krupip
    Commented Jun 7, 2019 at 20:54
  • @HansHirse: I want to be a bit more careful with JavaCV, as that is a separate project and not part of the OpenCV code base. Commented Jun 18, 2019 at 6:48
  • @Cris The current wiki excerpt says Note that JavaCV is now superseded by an official OpenCV Java API. But, yes, I agree, should better be kept. The mentioned sentence should then be modified to prevent possible confusion with the "official" Java API.
    – HansHirse
    Commented Jun 18, 2019 at 7:10
  • 1
    @CrisLuengo What do you think about the opencv-drawcontour tag? I feel its not needed.
    – Jeru Luke
    Commented Aug 4, 2022 at 18:15
  • 1
    @JeruLuke There's also the opencv-contour, which says "THIS TAG IS PENDING REMOVAL. Instead, please use [opencv] and [contour] tags." I can edit the opencv-drawcontour in the same way. I can't imagine we need a tag for each OpenCV function. Commented Aug 4, 2022 at 19:43
  • 2
    CMs: See (the second) point 1 here; the listed tags need to have [opencv] added to all questions without it, and it'd be preferable for this to happen via CM magic rather than manually Commented Jan 12, 2023 at 6:28
  • @ZoestandswithUkraine: Looking at the list of tags now, it seems like only opencv4android and cv2 still exist. (And opencv-python seems to have been added as a synonym of opencv, but not merged into it yet.) Is that correct? Are those the only tags where our help is still needed?
    – V2Blast Staff
    Commented Feb 23, 2023 at 1:24
  • 2
    @V2Blast That seems to be the case. For the [cv2] posts, add tag [python] if it’s not already there, then make [cv2] synonymous with [opencv]. For [opencv4android] you should add [android], then make synonymous with [opencv]. Thank you! Commented Feb 23, 2023 at 3:54

6 Answers 6

6

At this time in 2023, only and still had questions associated with them. I updated both sets of questions to include the tech tag ( and respectively) as well as .

I also set up synonyms from those + other tech-specific opencv tags in the question over to , and merged into (after adding where needed).

I goofed a little and merged it into at first. This has been corrected and it's now a synonym of opencv, but the unfortunate side-effect is that folks who had watched or ignored the original tag had their preferences remapped to . This may or may not be a bad thing, but either way I don't have a way to correct it, so all I can do is apologize if you're in that boat. Sorry!

With all that said, please let me know if anything else needs to be adjusted here.

0
46

Please don't do this manually.

Splitting one tag into two different tags is a very easy swoosh of the hand procedure for CMs. Doing this manually is not a good way because:

  1. It is pointless extra work.
  2. You bump very old and forgotten posts to the main page.
  3. You set a precedent that manually doing this is the only way to handle tag splits.

What we need to do here is:

  1. For each of these tags, automatically add the tag. We need a community manager for this.
  2. Merge each of these tags to the programming language tag. We need a moderator for this.

Both of these are simple one minute tasks, which would result in a least intrusive way of doing the same.

19
  • 3
    I had no idea this was possible, this is of course the way to go. I would intuitively do it the other way around, adding the language tag, then merging to [opencv], but I guess it doesn't matter since the end result is the same. What happens when the CM tries to add [opencv] to a question that already has 5 tags? (just mirroring the question I got earlier today) Commented Jun 6, 2019 at 4:23
  • @CrisLuengo, the tag won't be added. However, I don't quite see many questions that have this issue.
    – Bhargav Rao Mod
    Commented Jun 6, 2019 at 6:30
  • 2
    @CrisLuengo if Shog/etc can do 95% of the job with an easy button, the residual task is much easier to handle manually. Commented Jun 6, 2019 at 17:16
  • @Dan: I agree. So there should be another step in between 1 and 2: manually fix the few posts where the [opencv] tag wasn't added. Commented Jun 6, 2019 at 17:24
  • I'm sorry for my possibly naive (Meta) newbie question, but: How does this now progress? Do we just wait for a community manager to do the "easy" task or is there some kind of additional request needed? As stated in my other comment and in my answer, I would like to edit the tag wikis to prevent people to further use the tags in question. Any objections?
    – HansHirse
    Commented Jun 11, 2019 at 6:17
  • I'll contact a CM after a few days and get this done, @HansHirse
    – Bhargav Rao Mod
    Commented Jun 11, 2019 at 6:40
  • 4
    Was this ever done? I still see cv2 as "pending removal".
    – dspencer
    Commented Apr 9, 2020 at 12:54
  • 1
    The CM who was involved with the cleanups was fired a couple of years back, @beaker. So there's no update.
    – Bhargav Rao Mod
    Commented Mar 14, 2021 at 18:21
  • 1
    @BhargavRao Thanks. I was aware of the firing, but was not aware that there was nobody else capable of cleaning up the tags.
    – beaker
    Commented Mar 14, 2021 at 18:39
  • 1
    @beaker I started doing the cleanup manually during my spare time. cv2 and opencv-contour tags are my focus.
    – Jeru Luke
    Commented Aug 4, 2022 at 18:17
  • 1
    Hey @JeruLuke, I'm no longer a mod here at SO, so do post your comment as a new meta question instead. :) Commented Aug 4, 2022 at 20:07
  • 2
    if no CM shows up to fix this, I think I'll eventually have to write a greasemonkey user script... Commented Aug 5, 2022 at 18:31
  • 1
    @ChristophRackwitz, I'd rather let the CMs do it. Worst case, you can post another meta question asking why there has been no action yet. Commented Aug 6, 2022 at 13:17
  • 1
    I'd ping a mod in chat and try to bring it to their attention, @DanMašek. Looks like Zoe has been actively involved in burnination of late Commented Jan 11, 2023 at 17:33
  • 1
    @DanMašek you can check this room out. chat.stackoverflow.com/rooms/244740/burnination-hq Commented Jan 12, 2023 at 6:17
12

Beside the interface specific tags, there are several other opencv* tags, which I personally would like to see to be vanished, too.

First of all, as Miki also pointed out in his comment, there are version specific tags, namely:

Idea #1

Get rid of all version specific tags (my personal favourite), and request people to state the used OpenCV version in their question, e.g. by adding an appropriate note in the tag wiki - cf. : When using this tag, please mention the MATLAB release you're working with (e.g. R2017a).

Most people already post the OpenCV version they use - or at least you can guess from their error logs.

Idea #2

Keep major version tags, like (might again lead to confusion with ), , . OpenCV is still maintained for versions 2.4.x, 3.4.x, and 4.x.

I personally couldn't make clear guidelines, how to distinguish between the major versions. OpenCV 4.x no longer has C API support, but OpenCV 2.4.x and 3.4.x have - ok. Some (Python) bindings have changed between 3.4.x and 4.x (most prominent one findContours, so many questions on that) - ok. But what else?

From my point of view, most "version specific" questions will go into the direction of underlying implementations, like "what algorithm is used for finding contours?". (That actually changed between (major) versions, and it had quite an impact on our products.) But, these questions can only be answered by deep-diving into the source code, and will/should be answered as that, since those changes aren't covered in the documentation either.


Second, there are tags like (356 questions, 37 without ) or (29 questions, 5 without ) - and a few more.

Please, just let's kill them. They don't add any value. Some of them don't even have any watchers.


Last point would be (49 questions, 7 without ). Some implementations (e.g. SURF, SIFT) moved from the main opencv repo to opencv-contrib between major versions due to IP reasons, but I guess questions on SURF, SIFT, etc. will still be flagged . So, maybe just get rid of , too.


As you might noticed, my opinion on that topic is: One to rule them all.

3
  • 2
    OpenCV Changes the public API every major version change. This has major consequences for C++ users. Headers are split up in different versions, classes get moved around, dependencies change. Lots of stuff happens, so much so that answers become absolutely unusable past major versions because you can't even figure out what the includes are anymore. Try updating large libraries that use opencv from OpenCV2.x to OpenCV3.x and see what happens. These changes also cascade to different languages. Python has had its interface changed so drastically you use numpy arrays instead of cv.mat
    – Krupip
    Commented Jun 7, 2019 at 20:45
  • 1
    @opa I once migrated a large, productive image processing library from 2.4.x to 3.x.x in C++, basically to get rid of IplImage and the C API. (This library uses a lot of different functions from OpenCV, basic and more special ones; it's far away from being simple.) Of course, it was a lot of (also manual) work, but most of the code still worked perfectly fine. I later migrated the same library to OpenCV 4.x.x, and the difference regarding API changes was marginal! So, from my point, the 2.4.x vs. 3.x.x issue is more a C API vs. C++ API. Plus, I don't see a 3.x.x vs. 4.x.x issue.
    – HansHirse
    Commented Jun 11, 2019 at 5:37
  • 1
    opencv-contrib is now an alias for opencv. I don’t know when the alias was made, but it’s there now. Commented Jan 12, 2023 at 10:05
6

For all of these tags, the process could be as follows (see this answer):

  1. Add the relevant language/platform tag to those questions that don't already have it.
  2. Rename (or synonymize) the tag to .

The number of these tags to add are:

cv2 × 171
opencv4android × 120
opencvsharp × 52
opencv-python × 69
opencvdotnet × 48
opencv4ios × 1 0
opencv4nodejs × 1 0
node-opencv × 1 0

The bottom three tags in the list are easily taken care of, I will do this right away.

5
  • 1
    Have you checked whether adding the language/platform tag will push some questions over the 5-tag limit?
    – dbc
    Commented Jun 5, 2019 at 23:08
  • 1
    @dbc I have not looked at all of these questions, but most already have either the platform tag or the OpenCV tag, in addition to the tag in question. In these cases there is no need for an additional tag. I have not seen many questions that have neither of these two tags. I will do a search for those tonight, and see how many of them have 5 tags. I can’t imagine that to r a huge problem. Do note that most OpenCV questions are already tagged in the way I propose, not using the platform/language-specific OpenCV tag. Commented Jun 5, 2019 at 23:57
  • Yeah, I agree, it's very unlikely to be a problem in practice. My question was really intended as a "crossing-every-t" issue.
    – dbc
    Commented Jun 6, 2019 at 0:35
  • 2
    Here is a quite recent question with five tags, one of them being cv2, but neither opencv nor python are tagged. Basically, this question is the reason, why I asked for an update in Cris' other meta post.
    – HansHirse
    Commented Jun 6, 2019 at 5:32
  • 1
    @Hans, I've fixed the tags in that question. More often than not, when there are 5 tags, there are some irrelevant ones. In this case, the question is not about computing a histogram, even if that is the ultimate goal of the asker. Also, people tend to use [image] where they should be using [image-processing]. Read the tag excerpts if you are wondering why I say this. -- But yes, your point is clear: there are questions with 5 tags that need manual intervention to make a decision about which tag to remove. Commented Jun 6, 2019 at 5:56
0

I very much disagree that "none of these interfaces do anything special". At least with Python, some of the I/O API functionality looks nothing like the C++ functionality, and due to OpenCV's poor public documentation in general, but also specifically towards these interfaces, it made questions like my own self answered,

How can I read/write a matrix from a persistent XML/YAML file in OpenCV 3 with Python?

necessary in order to figure out how you would do the same exact thing in different languages. Note that OpenCV 2 was even more estranged from C++ in how it did things with matrix serialization in Python.

You'll also notice that much of the OpenCV API gets replaced by NumPy and Python's own facilities in non obvious ways, especially if you are looking at the much more prominent and support C++ documentation

Examples:

There are a lot of questions that have and can be asked about OpenCV that only apply to the Python interface. Bottom line, you can be an expert in the C++ API and not in the Python interface and vice versa.

I'm not sure whether it is enough to tag both Python and OpenCV C++ differently (I didn't use a Python specific tag on my question), but there definitely is something to the idea that OpenCV Python and OpenCV C++ are different.

3
  • 3
    ...but your answer in that question supports the opposite point of view from what you say here: "the current python wrapper for opencv looks much more like the c++ version". Yes, you use numpy.array in Python and cv::Mat in C++. I think that is perfectly covered by adding [python] to the question. The bulk of OpenCV, all the library functions, have but a thin wrapper to make them available in Python. If you know how to use an OpenCV function in C++, you can give advice on how to use it in Python, C#, etc. I know because I've done this. (1/2) Commented Jun 7, 2019 at 21:00
  • 3
    (2/2) If you know how to solve a computer vision problem with OpenCV in C++, you can explain how to do it to someone using OpenCV in Python. By tagging a question as [cv2], you might be missing the expertise of a lot of people following the [opencv] tag but not the [cv2] tag. This is my main concern with this suggestion. Commented Jun 7, 2019 at 21:00
  • 1
    I agree with @Cris. Coming from OpenCV C++ myself, I had no problem to understand any OpenCV Python question. I could provide information on how to solve the problem just by pointing out the correct functions, which (till now) have been all covered by the documentation. I then started learning Python with the help of OpenCV(!), just because(!) it "feels" nearly the same. I personally don't see any issue in cv::Mat vs. numpy arrays, since the proper use is also covered by the documentation. In the end, what would be your suggestion regarding the many opencv tags?
    – HansHirse
    Commented Jun 11, 2019 at 5:51
-2

Basing this action on the observation that language-specific interfaces add nothing special misses a significant pattern that affects Python users.

On a cycle that corresponds to the academic year, there's an upswell in "Help! I can't get cv2 installed!" posts from computer science students. And when "how to do a neat thing with a Raspberry Pi camera" articles are published, there are off-season peaks.

These posts have nothing directly to do with OpenCV, and everything to do with the shifting Python ecosystem and platform vagaries (Python versions, pip, Anaconda, virtualenv, pyenv, etc.). As long as Python remains a popular teaching language, and computer vision stays a thing, this cycle will continue. So why mix this in with API questions? It's clutter.

For installation problems, keeping the [cv2] tag and retagging installation issues to move them from [opencv] to [cv2] (and conversely, retagging OpenCV API posts to move them out of [cv2]) doesn't seem unreasonable. I hang out on both tags, and would be happy to retag if this is something we can agree on.

4
  • 1
    I share your sentiment about the "eternal september" problem and desire to keep these pleb issues away from the professionals... however "cv2" is a terrible anachronism and an accident of history that needs to be disappeared. the "raspberry-pi" tag flags one half of those and a selection of "pip/conda/anaconda" mostly flags the rest. Commented Aug 5, 2022 at 18:38
  • 1
    Accident of history or not, it's history. Keeping Python install questions separate from API usage questions would be, I believe, a better experience for both groups. Commented Aug 5, 2022 at 20:05
  • 1
    Compared to the amount of crap that flows in on daily basis in the opencv tag, the installation questions are a rather insignificant minority. Furthermore, the people asking those questions aren't likely to read the tag descriptions anyway..
    – Dan Mašek
    Commented Jan 12, 2023 at 2:08
  • 1
    (The tag wiki for pyenv is plagiarised from GitHub.) Commented Jan 15, 2023 at 17:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .