Code of Civil Procedure Article 288

When the court cannot obtain conviction from the evidence introduced by the parties, the court may take evidence on its own initiative if such is necessary for finding the truth. In taking evidence in accordance with the provision of the preceding paragraph, the parties shall be accorded an opportunity to be heard.
中文原文 民事訴訟法第288條
法院不能依當事人聲明之證據而得心證,為發現真實認為必要時,得依職權調查證據。
依前項規定為調查時,應令當事人有陳述意見之機會。

English translation for reference only; the Chinese text prevails. Not legal advice.