2020-08-27 11:58:57 -0600 | received badge | ● Supporter (source) |
2020-08-27 11:58:50 -0600 | marked best answer | Opencv.js - grabcut and GC_INIT_WITH_MASK Hello everyone, I tried to replicate the Interactive Foreground extraction of python here into Javascript. The first part with GC_INIT_WITH_RECT (which is already in the JS doc) works fine. But then I try to refine the selection with GC_INIT_WITH_MASK. This is my code so far: But all it does is so far is some errors with random numbers like Can you help me to figure out if my approach of setting the mask is wrong and where exactly? Thank you in advance. |
2020-08-27 11:58:50 -0600 | received badge | ● Scholar (source) |
2020-08-27 11:58:48 -0600 | commented answer | Opencv.js - grabcut and GC_INIT_WITH_MASK Thank you, for the precious info ! we got it running :D |
2020-08-27 06:29:31 -0600 | commented answer | Opencv.js - grabcut and GC_INIT_WITH_MASK Ah, now I understand, what you're talking about. I'll attempt some stuff and I'll let you know. Thank you already :) |
2020-08-26 21:07:18 -0600 | received badge | ● Editor (source) |
2020-08-26 21:07:18 -0600 | edited question | Opencv.js - grabcut and GC_INIT_WITH_MASK Opencv.js - grabcut and GC_INIT_WITH_MASK Hello everyone, I tried to replicate the Interactive Foreground extraction of |
2020-08-26 21:06:45 -0600 | commented answer | Opencv.js - grabcut and GC_INIT_WITH_MASK euh I corrected it later, you can see the corrected version in my fiddle, but I will update the post also to make it fai |
2020-08-26 14:12:34 -0600 | commented answer | Opencv.js - grabcut and GC_INIT_WITH_MASK Thank you for replying: first: mmh when you says single CV_8U channel, you mean this line: let mask = new cv.Mat.ones(ne |
2020-08-26 05:54:28 -0600 | asked a question | Opencv.js - grabcut and GC_INIT_WITH_MASK Opencv.js - grabcut and GC_INIT_WITH_MASK Hello everyone, I tried to replicate the Interactive Foreground extraction of |