An optical fingerprint detection apparatus (100, 100', 100"), comprising: a light source for emitting a light beam; a transparent touch panel comprising a first surface and at least one second surface adjacent to the first surface, the first surface being provided with at least one touch area which is to be touched by a finger or a toe, the second surface being configured for receiving the light beam emitted from the light source and being angled with respect to the first surface by an angle of less than 90 degrees so as to direct the light beam transmitted through the second surface into the touch panel toward the touch area of the first surface, and the touch area being arranged to totally reflect the light beam toward a side of the touch panel opposite to the first surface when the touch area is not touched by the finger or the toe; and a detection unit located outside of the side of the touch panel opposite to the first surface and configured for receiving the light beam reflected by the touch area and emitted from the touch panel and detecting an intensity distribution of the received light beam, wherein a refractive index of the touch panel is greater than a refractive index of air, and the angle between the second surface and the first surface is arranged such that an incidence angle of the light beam at the first surface satisfies a total reflection condition when the first surface is in contact with the air, and does not satisfy the total reflection condition when the first surface is in direct contact with human skin, characterized in that the optical fingerprint detection apparatus (100, 100', 100") further comprises a frame disposed around the touch panel, wherein the light source corresponding to the second surface is arranged on an inner wall of the frame; the optical fingerprint detection apparatus (100, 100', 100") further comprises a display assembly located between the touch panel and the detection unit; and the display assembly and the detection unit are within the frame, and the detection unit is arranged to receive the light beam emitted from the touch panel and transmitted through the display assembly. a light source for emitting a light beam; a transparent touch panel comprising a first surface and at least one second surface adjacent to the first surface, the first surface being provided with at least one touch area which is to be touched by a finger or a toe, the second surface being configured for receiving the light beam emitted from the light source and being angled with respect to the first surface by an angle of less than 90 degrees so as to direct the light beam transmitted through the second surface into the touch panel toward the touch area of the first surface, and the touch area being arranged to totally reflect the light beam toward a side of the touch panel opposite to the first surface when the touch area is not touched by the finger or the toe; and a detection unit located outside of the side of the touch panel opposite to the first surface and configured for receiving the light beam reflected by the touch area and emitted from the touch panel and detecting an intensity distribution of the received light beam, wherein a refractive index of the touch panel is greater than a refractive index of air, and the angle between the second surface and the first surface is arranged such that an incidence angle of the light beam at the first surface satisfies a total reflection condition when the first surface is in contact with the air, and does not satisfy the total reflection condition when the first surface is in direct contact with human skin, characterized in that the optical fingerprint detection apparatus (100, 100', 100") further comprises a frame disposed around the touch panel, wherein the light source corresponding to the second surface is arranged on an inner wall of the frame; the optical fingerprint detection apparatus (100, 100', 100") further comprises a display assembly located between the touch panel and the detection unit; and the display assembly and the detection unit are within the frame, and the detection unit is arranged to receive the light beam emitted from the touch panel and transmitted through the display assembly.