A method for collecting fingerprints with an electronic device having an ultrasonic module, the method comprising: controlling a first component set of the ultrasonic module to operate at a first operating frequency to capture a three-dimensional, 3D, image of a target object, wherein the first component set comprises P transmitters and Q receivers, and P and Q are positive integers; waking up a second component set of the ultrasonic module when the 3D image is identified to be a finger, wherein the second component set comprises M transmitters and N receivers, M and N are positive integers, P <M, and Q <N; and controlling the second component set to collect fingerprints at a second operating frequency to obtain a target fingerprint image, wherein the first operating frequency is lower than the second operating frequency; wherein controlling the second component set of the ultrasonic module to collect fingerprints at the second operating frequency to obtain the target fingerprint image comprises: determining a proximity velocity at which the target object approaches the ultrasonic module and a current distance between the target object and the ultrasonic module; estimating fingerprint image acquisition time of the ultrasonic module according to the current distance and the proximity velocity; and collecting fingerprints through the second component set at the second operating frequency to obtain the target fingerprint image, when the fingerprint image acquisition time is reached. controlling a first component set of the ultrasonic module to operate at a first operating frequency to capture a three-dimensional, 3D, image of a target object, wherein the first component set comprises P transmitters and Q receivers, and P and Q are positive integers; waking up a second component set of the ultrasonic module when the 3D image is identified to be a finger, wherein the second component set comprises M transmitters and N receivers, M and N are positive integers, P <M, and Q <N; and controlling the second component set to collect fingerprints at a second operating frequency to obtain a target fingerprint image, wherein the first operating frequency is lower than the second operating frequency; wherein controlling the second component set of the ultrasonic module to collect fingerprints at the second operating frequency to obtain the target fingerprint image comprises: determining a proximity velocity at which the target object approaches the ultrasonic module and a current distance between the target object and the ultrasonic module; estimating fingerprint image acquisition time of the ultrasonic module according to the current distance and the proximity velocity; and collecting fingerprints through the second component set at the second operating frequency to obtain the target fingerprint image, when the fingerprint image acquisition time is reached. determining a proximity velocity at which the target object approaches the ultrasonic module and a current distance between the target object and the ultrasonic module; estimating fingerprint image acquisition time of the ultrasonic module according to the current distance and the proximity velocity; and collecting fingerprints through the second component set at the second operating frequency to obtain the target fingerprint image, when the fingerprint image acquisition time is reached. <EOS>