A computer implemented method of collecting fingerprints, wherein the method comprises: detecting, by an electronic device, a touch operation on a fingerprint region in a touch screen of the electronic device; when the touch operation on the fingerprint region is detected, detecting, by the touch screen of the electronic device, a touch signal within the fingerprint region as a first touch signal and detecting, by a pressure sensor of the electronic device, a pressure value for the touch operation; comparing, by the electronic device, the first touch signal with a preset report threshold to obtain a first comparison result; comparing, by the electronic device, the pressure value with a preset pressure threshold to obtain a second comparison result; when determining the first comparison result indicating that the first touch signal is greater than or equal to the preset report threshold and the second comparison result indicating that the pressure value is greater than or equal to the preset pressure threshold, determining, by the electronic device, that a fingerprint image on the fingerprint region is acquired; analyzing, by the electronic device, a quality of the fingerprint image based on a parameter to obtain an analysis result, the analysis result being a score calculated based on the parameter and used to represent the quality of the fingerprint image, the parameter including one or more of a gray mean value, a gray variance, an effective area, and a singular point of the fingerprint image; and outputting, by the electronic device, a prompt based on the analysis result, wherein outputting the prompt comprises outputting a touch qualification prompt when the analysis result satisfies a preset condition. detecting, by an electronic device, a touch operation on a fingerprint region in a touch screen of the electronic device; when the touch operation on the fingerprint region is detected, detecting, by the touch screen of the electronic device, a touch signal within the fingerprint region as a first touch signal and detecting, by a pressure sensor of the electronic device, a pressure value for the touch operation; comparing, by the electronic device, the first touch signal with a preset report threshold to obtain a first comparison result; comparing, by the electronic device, the pressure value with a preset pressure threshold to obtain a second comparison result; when determining the first comparison result indicating that the first touch signal is greater than or equal to the preset report threshold and the second comparison result indicating that the pressure value is greater than or equal to the preset pressure threshold, determining, by the electronic device, that a fingerprint image on the fingerprint region is acquired; analyzing, by the electronic device, a quality of the fingerprint image based on a parameter to obtain an analysis result, the analysis result being a score calculated based on the parameter and used to represent the quality of the fingerprint image, the parameter including one or more of a gray mean value, a gray variance, an effective area, and a singular point of the fingerprint image; and outputting, by the electronic device, a prompt based on the analysis result, wherein outputting the prompt comprises outputting a touch qualification prompt when the analysis result satisfies a preset condition. <EOS>