How can I applied box function to detect face in colab?

please note, that opencv’s gui functions are unavailable on colab (maybe write image to disk ?)