A camera assembly, comprising a time-of-flight module and a circuit board, wherein the circuit board is provided with an avoidance space, the time-of-flight module comprises a transmit module and a receive module, the receive module and the transmit module are individually packaged, wherein the avoidance space is a through hole or a groove disposed on the circuit board, wherein the camera assembly further comprises a camera bracket located in the avoidance space, the camera bracket has a plurality of receiving grooves spaced apart from each other; the transmit module is configured to emit a detection optical signal; the receive module is configured to receive an induction optical signal formed after the detection optical signal is reflected by a to-be-measured object; the receive module is received in the plurality of receiving grooves, a connection end of the receive module is fixed to the circuit board, and the transmit module is located on the circuit board beside the receive module; wherein the transmit module comprises a holder, a transmitter, and a diffuser, the holder forms a transmission cavity, the transmitter is configured to emit the detection optical signal, the transmitter is received in the transmission cavity and fixed to the holder, the diffuser is fixed to the holder and covers the transmission cavity, and the diffuser is configured to increase an angle of view of the detection optical signal, wherein the holder is fixed on the circuit board; and wherein the transmit module further comprises adhesive glue, the adhesive glue is connected between the holder and the diffuser, the adhesive glue is provided with one or more air vents, and the one or more air vents are in air communication with the transmission cavity to outside of the transmit module. wherein the camera assembly further comprises a camera bracket located in the avoidance space, the camera bracket has a plurality of receiving grooves spaced apart from each other; the transmit module is configured to emit a detection optical signal; the receive module is configured to receive an induction optical signal formed after the detection optical signal is reflected by a to-be-measured object; the receive module is received in the plurality of receiving grooves, a connection end of the receive module is fixed to the circuit board, and the transmit module is located on the circuit board beside the receive module; wherein the transmit module comprises a holder, a transmitter, and a diffuser, the holder forms a transmission cavity, the transmitter is configured to emit the detection optical signal, the transmitter is received in the transmission cavity and fixed to the holder, the diffuser is fixed to the holder and covers the transmission cavity, and the diffuser is configured to increase an angle of view of the detection optical signal, wherein the holder is fixed on the circuit board; and wherein the transmit module further comprises adhesive glue, the adhesive glue is connected between the holder and the diffuser, the adhesive glue is provided with one or more air vents, and the one or more air vents are in air communication with the transmission cavity to outside of the transmit module.