def capture_image_data(self, check_qr=False):
        """
        RPC call to capture raw image data from the camera.
        See also scan_qr() below.
        NOTE: Only available in a DEBUG build of the firmware.

        Parameters
        ----------
        check_qr : bool, optional
            If True only images which contain a valid qr code are captured and returned.
            If False, any image is considered valid and is returned.
            Defaults to False

        Returns
        -------
        bytes
            Raw image data from the camera framebuffer
        """
        params = {'check_qr': check_qr}
        return self._jadeRpc('debug_capture_image_data', params)

        RPC call to capture raw image data from the camera.
        See also scan_qr() below.
        NOTE: Only available in a DEBUG build of the firmware.

        Parameters
        ----------
        check_qr : bool, optional
            If True only images which contain a valid qr code are captured and returned.
            If False, any image is considered valid and is returned.
            Defaults to False

        Returns
        -------
        bytes
            Raw image data from the camera framebuffer
        
electrum/plugins/jade/jadepy/jade.py