The application relates to a detection device and a detection method. The detection device is used to assist in detecting the installation accuracy of the
assembly of the electronic device. The electronic device includes a housing and an
assembly disposed on the housing, and the
assembly has a reference mark. The detection device includes a base, a positioning component and a detection component. The positioning component is arranged on the base, and the positioning component is used for carrying the shell. The detection component is connected to the base; the detection component includes a support and a
laser emitter. The support is connected between the base and the
laser emitter, the
laser emitter is arranged opposite to the positioning assembly, and is used to emit a laser beam to the housing and the assembly provided on the positioning assembly, and the laser beam is projected on the assembly to form an auxiliary
Laser reference lines that determine the mounting position of the assembly relative to the housing. The detection device mentioned above can assist the staff to judge the installation status of the assembly parts according to the basis, avoid blind detection, thereby improve the detection accuracy and reduce the probability of outflow of defective products.