A textile detection module, suitable for detecting a test specimen, the textile detection module comprising: an excitation light source, providing an excitation light beam; and an optical detector, disposed on a transmission path of the excitation light beam and suitable for receiving the excitation light beam and emitting the excitation light beam along an optical axis and receiving a detection light beam to generate a detection result; the textile detection module being characterized in further comprising: a height sensor, suitable for measuring a height of the test specimen to generate a height signal; and a focuser, disposed on the transmission path of the excitation light beam emitted by the optical detector, wherein the focuser comprises a focus lens suitable for converting the excitation light beam into a focused excitation light beam, and the focused excitation light beam is transmitted from the focuser to the test specimen to generate the detection light beam, wherein the focuser adjusts a position of the focus lens according to the height signal, the height sensor measures the height of the test specimen at a first position of a conveying path, the optical detector performs optical detection on the test specimen at a second position of the conveying path, and the test specimen moves from the first position to the second position along the conveying path. an excitation light source, providing an excitation light beam; and an optical detector, disposed on a transmission path of the excitation light beam and suitable for receiving the excitation light beam and emitting the excitation light beam along an optical axis and receiving a detection light beam to generate a detection result; the textile detection module being characterized in further comprising: a height sensor, suitable for measuring a height of the test specimen to generate a height signal; and a focuser, disposed on the transmission path of the excitation light beam emitted by the optical detector, wherein the focuser comprises a focus lens suitable for converting the excitation light beam into a focused excitation light beam, and the focused excitation light beam is transmitted from the focuser to the test specimen to generate the detection light beam, wherein the focuser adjusts a position of the focus lens according to the height signal, the height sensor measures the height of the test specimen at a first position of a conveying path, the optical detector performs optical detection on the test specimen at a second position of the conveying path, and the test specimen moves from the first position to the second position along the conveying path. a height sensor, suitable for measuring a height of the test specimen to generate a height signal; and a focuser, disposed on the transmission path of the excitation light beam emitted by the optical detector, wherein the focuser comprises a focus lens suitable for converting the excitation light beam into a focused excitation light beam, and the focused excitation light beam is transmitted from the focuser to the test specimen to generate the detection light beam, wherein the focuser adjusts a position of the focus lens according to the height signal, the height sensor measures the height of the test specimen at a first position of a conveying path, the optical detector performs optical detection on the test specimen at a second position of the conveying path, and the test specimen moves from the first position to the second position along the conveying path.