backscrub icon indicating copy to clipboard operation
backscrub copied to clipboard

Allow for Debug Cam output

Open BenBE opened this issue 4 years ago • 3 comments

Allow for a second v4l2loopback cam output to be enabled which receives the image mask detected by the NN (plain mask, no source image). Depending on what is available this might provide the greyscale "likelyhood" map from the NN for further processing.

BenBE avatar Jan 21 '21 17:01 BenBE

Hi BenBE, in my fork, I simply throw additional cv:imshow() calls in at higher debug levels, this was good enough to see what was going on while I played with masking/averaging/etc. That said - having the processed mask available as a stream for OBS or similar might be a more 'unix philosophy' approach - deepbacksub becomes a stream-to-stream person detector only, leaving the rest up to other bits of software?

phlash avatar Jan 23 '21 01:01 phlash

@phlash I saw your fork yesterday, but hadn't yet had the time to have a closer look at all the changes in there. Are there any plans on upstreaming your changes back to @floe?

What about, instead of several windows floating around on screen, we'd just allow for additional output cam devices to be specified on the command line and simply output the debug images there if they are given?

Also. would you mind having a look at the changes from #36 (for your fork)? Those might make the overall tooling much more comfortable for (new/fresh) users to use.

BenBE avatar Jan 23 '21 09:01 BenBE

Apologies to @floe for the slightly OT spam - just wanted to let @BenBE know I have pulled his changes from #36 into my fork.

phlash avatar Feb 03 '21 15:02 phlash