Which OpenCV for line scanner and pattern recognition

Hello everyone,

I would like to scan a tyre with a line scanner (https://www.youtube.com/watch?v=-iCdziKtOrg), as shown in this video.

I would like to display this data as shown in the video (almost instantaneously).

To do this, I would like to use algorithms (I have no idea how to do this yet) to mark the edges of the tread blocks (different colour).

I would then also like to capture the so-called negative profile (mark the floor) and then create a “path” so that this path can be converted into a G-code so that it can be copied via a milling machine.

I’m wondering which OpenCV I need for this and what else I need.

Even though I don’t know that much about programming yet, I have the impression that C++ is more suitable than Python.

As I don’t speak English, I have to translate everything.

Greetings from Germany

Unfortunately, I haven’t got any further :frowning: and I still don’t know exactly what I need.

I have found something:

I hope this is the right thing for me.
I’ll give it a try.

I can’t get any further with the installation :frowning:

I am on point:

Click on ‘Environmental Variable’ from there. Another window will open. In the ‘system variables’ use scroll bar and locate and select ‘path’.

I can’t find it on my computer :frowning:
Where do I have to click or where can I find it on my PC?
I have the German system.

just hit the Windows key, then start typing “path”. that’ll find it. if it doesn’t, try that in your language instead of english.

or click “erweiterte systemeinstellungen”.

Thank you, I found it with your help.


Maybe it’s my translation, but I can’t find the paths “debug” and “release” :frowning:

In the ‘Variable Value’ field write down the path to ‘debug’ and ‘release’ folder located inside the ‘bin’ folder of ‘build’ folder of OpenCV. Then save all the changes by clicking ok buttons.

Or do I have to enter the path “C:\opencv\build\x64\vc16\bin” as in the article?

It really is a big effort to use OpenCV.
Isn’t there an IDE where all this is already integrated, so that I don’t have to say for every project that OpenCV should be used?

I find this very cumbersome and not user-friendly, if there was an easier way, I would be very interested in it.

does added emphasis help clarify?

maybe just give up on C++ and use Python instead. don’t bother with all that hassle. and if anyone tells you “Python is slow”, they’re dumb and have no clue how to use it right. I began using Python in the early/mid 2000s, been using it for all kinds of purposes, including scientific and high performance computing. with some brains and the right libraries, there is no issue at all. my experience is that people refuse to listen. I have stopped caring why. they can never explain why, except “someone said it sucks”. I wish people would listen without me having to assert any claims to authority.

that’s what CMake is for. cmake can turn one small CMake file into whatever you want, makefiles, vscode-compatible stuff (ninja?), Visual Studio solution/project, …

Welcome to C++. it’s a legacy language. the world is beginning to mock it like it deserves. if you think fortran is old and icky, you should think the same about C++. the only thing keeping C++ going is the immense mountain range of legacy code bases. same thing for fortran and all other legacy languages. It’ll take decades for everyone to finally ditch it for anything else.

ich habe die Ordner „debug“ und „release“ gar nicht gefunden? Existieren die noch nicht? Muss ich die erst noch erstellen?

Gibt es hier ein “leichtere” Umgebung für mich?
Gibt es ein IDE die ich installieren kann und alles ist schon vorkonfiguriert? Denn dies würde mir sehr entgegenkommen.

Bisher programmiere ich noch in keiner Sprache!
Ich habe zwei Komponenten (Hardware), die jeweils eine C / C++ Schnittstelle haben, das sind meine aktuellen Beweggründe, mit C++ zu arbeiten.

Wow, you’re off to a real tough start…

I have given up OpenCV for myself and now use Matlab.

I can also plot my data there and the installation gives me a complete environment in which I can write code.

Would have been nice with OpenCV but unfortunately too complicated for me.

Greetings Mücke