createBinaryBitmap(mediaElement) {
			const ctx = this.getCaptureCanvasContext(mediaElement);
			if (this._isHTMLVideoElement(mediaElement)) {
				this.drawFrameOnCanvas(mediaElement);
			}
			else {
				this.drawImageOnCanvas(mediaElement);
			}
			const canvas = this.getCaptureCanvas(mediaElement);
			const luminanceSource = new HTMLCanvasElementLuminanceSource(canvas);
			const hybridBinarizer = new HybridBinarizer(luminanceSource);
			return new BinaryBitmap(hybridBinarizer);
		}
Creates a binaryBitmap based in some image source.

@param mediaElement HTML element containing drawable image source.