I’m trying out the openCV tutorial on edge detection from here: OpenCV: Canny Edge Detector and on clicking the crashbar my kernel crashes.
I don’t think it’s an issue with the code since I tried it with some other simple trackbar code I found on stackoverflow, but here’s the main part of my code (just slight changes to the tutorial):
You think it is not caused by your code, but think what is diffrerent with where it works? Your code.
You should start by 1) testing the code without any image processing, and then 2) making it more robust by checking every function call for success etc and 3) finding out by, selective removals, which line causes the crashing
Note that crashing a windowed app may mean the window disappearing or freezing, but more often or not there is some message printed in the console.
No, I have tried copying the exact code from the tutorial and I get the same issue (i have actually done this with multiple different working code samples and still get the issue).
I have tried it without image processing as well, I tried a sample code where there was just a slider that did nothing, and that crashed as well.
Also the issue is not with imshow itself, since that works fine. I’ve tested that.