The invention discloses a device for safely opening a cabinet. The device comprises a cabinet provided with an electronic lock, a fingerprint recognition device for opening the electronic lock, and a secret key device. The fingerprint recognition device comprises the following modules, which are electrically connected in sequence: a fingerprint recognition module, a fingerprint image processing module, a transmission module, a fingerprint verification module, and a control module, which is used to open / close the electronic lock. The secret key device is electrically connected to the control module. The fingerprint verification module can promote the control module to open the electronic lock, when an effective fingerprint image is input or a correct cipher is input into the secret key device. The fingerprint image processing module comprises a fingerprint information verification sub-module, an image grey level processing sub-module, an image texture parameter calculation sub-module, an image cutting sub-module, and an image enhancing sub-module. The device has the advantages of safety, high efficiency, high fingerprint recognition efficiency, and high precision.