toggleCamcontrol() {
       let elemcam = document.getElementById("cam");
       let elemvid = document.getElementById("vid");

       if (this.state.camcontrol){
            //turn camcontrol off
            elemcam.style.color = "#17394b";
            elemvid.style.visibility = "hidden";
        }else{
            //turn cam control on
            elemcam.style.color = "white";
            elemvid.style.visibility = "visible";
        }
        //toggle
        this.setState({camcontrol: !this.state.camcontrol})
    }
//turn on/off activation of controls by webcam face tracking
turn on/off activation of controls by webcam face tracking
turn on / off activation of controls by webcam face tracking
toggleCamcontrol() {
       let elemcam = document.getElementById("cam");
       let elemvid = document.getElementById("vid");
       if (this.state.camcontrol){
            elemcam.style.color = "#17394b";
            elemvid.style.visibility = "hidden";
        }else{
            elemcam.style.color = "white";
            elemvid.style.visibility = "visible";
        }
        this.setState({camcontrol: !this.state.camcontrol})
    }
toggleCamcontrol ( ) { let elemcam = document . getElementById ( "cam" ) ; let elemvid = document . getElementById ( "vid" ) ; if ( this . state . camcontrol ) { elemcam . style . color = "#17394b" ; elemvid . style . visibility = "hidden" ; } else { elemcam . style . color = "white" ; elemvid . style . visibility = "visible" ; } this . setState ( { camcontrol : ! this . state . camcontrol } ) }
turn on/off activation of controls by webcam face tracking
turn on / off activation of controls by webcam face tracking
//turn camcontrol off //turn cam control on //toggle