Missing JS building Flag for object detection

Hello.

In at least the release version 4.7.0, the building flag for object detection is missing for Javascript and it is not obvious that it exists and that can be added manually.

The file in question is:
/platforms/js/build_js.py

And the missing line is:
“-DBUILD_opencv_objdetect=ON”, (or off?)

Without it, it is impossible to load classes such as CascadeClassifier.

Hope someone finds this useful or can fix it?

Thank you

I’m so sorry about off top.
But could you help me with build opencv.js?
I’m stuck, could you visit my thread?