Artificial intelligence provides an unprecedented perspective for studying phases of matter in condensed-matter systems. Image segmentation is a basic technique of computer vision that belongs to a branch of artificial intelligence. Inspired by the image segmentation techniques, in this work, we propose a scheme named virtual configuration binarization (VCB) to unveil quantum phases and quantum phase transitions in many-body systems. By encoding the information of renormalized quantum states into a color image and binarize the color image through the VCB, the renormalized quantum states can be visualized, from which quantum phase transitions can be revealed and the corresponding critical points can be identified. Our scheme is benchmarked on several strongly correlated spin systems, which does not depend on the priori knowledge of order parameters of quantum phases. This demonstrates the potential to disclose the underlying structure of quantum phases by the techniques of computer vision.