I haven’t tried it myself but found some promising articles which you might be interested in:

Custom object detection in the browser using TensorFlow.js 58
TFJS-object-detection repository 20
 Edge TensorFlow.js tutorial 19

I hope these help. Kind regards,
Gilbert Tanner