An electronic device, comprising: a time-of-flight module configured to capture a depth image of a subject; a color camera configured to capture a color image of the subject; a monochrome camera configured to capture a monochrome image of the subject when a current brightness of ambient light is less than a first threshold; and a processor configured to obtain the current brightness in real time, and to construct a three-dimensional image of the subject according to the depth image, the color image, and the monochrome image when the current brightness is less than the first threshold; characterized in that the ToF module comprises: a first substrate assembly comprising a first substrate and a flexible circuit board connected with the first substrate; a cushion block disposed on the first substrate; a light emitter disposed on the cushion block and configured to emit light signals outward, the flexible circuit board being bent with one end connected to the first substrate and the other end connected to the light emitter; and a light receiver disposed on the first substrate and configured to receive the reflected light signals which are emitted by the light emitter, the light receiver comprising a case and an optical element disposed on the case, and the case being connected with the cushion block. a time-of-flight module configured to capture a depth image of a subject; a color camera configured to capture a color image of the subject; a monochrome camera configured to capture a monochrome image of the subject when a current brightness of ambient light is less than a first threshold; and a processor configured to obtain the current brightness in real time, and to construct a three-dimensional image of the subject according to the depth image, the color image, and the monochrome image when the current brightness is less than the first threshold; characterized in that the ToF module comprises: a first substrate assembly comprising a first substrate and a flexible circuit board connected with the first substrate; a cushion block disposed on the first substrate; a light emitter disposed on the cushion block and configured to emit light signals outward, the flexible circuit board being bent with one end connected to the first substrate and the other end connected to the light emitter; and a light receiver disposed on the first substrate and configured to receive the reflected light signals which are emitted by the light emitter, the light receiver comprising a case and an optical element disposed on the case, and the case being connected with the cushion block. a first substrate assembly comprising a first substrate and a flexible circuit board connected with the first substrate; a cushion block disposed on the first substrate; a light emitter disposed on the cushion block and configured to emit light signals outward, the flexible circuit board being bent with one end connected to the first substrate and the other end connected to the light emitter; and a light receiver disposed on the first substrate and configured to receive the reflected light signals which are emitted by the light emitter, the light receiver comprising a case and an optical element disposed on the case, and the case being connected with the cushion block.