This is not strictly a DepthAI question, so please forgive me if it is inappropriate. Further I admit to being a novice and may be asking a dumb question.
I use the DepthAI EdgeDetection node to produce edges using the 'standard' Sobel 'operator'. The result shows lots of bright edges that to my eyes present a very accurate rendition of the scene. But, the edge image contains lots of "noise" -- faint blobs of pixels. When I run the edge image through OpenCV HoughLinesP function, I get on the order of 1800 lines. Drawing the lines on the color image from which the edges derive produces nothing but lines obscuring almost all pixels. I attribute this to noise. I've tried a couple of forms of noise reduction but have not seen much improvement.
I also tried taking the color image and using the OpenCV Sobel functions (see this). It produces an edge image quite similar to that of the EdgeDetector. However, running that result through HoughLinesP produces almost 2400 lines.
So, I found a lines example that used a Canny edge detector. I ran that example (actually had to modify it a bit to make it work) on the original color image. It produced a decent set of edges, if less intense. The HoughLinesP function produced 360 lines. Drawing the lines indicated relative fidelity to what I'd pick as edges. With one major exception -- a wall corner that appears clearly delineated in edge image appears as set of broken lines.
So, I am not sure if I am attempting something that can't be done, am simply doing something wrong, or just have not found the magic incantations for DepthAI and OpenCV. I am sure I'm out of additional ideas on what to try next.
Any suggestions appreciated.