An optical sensor module, applicable to an electronic device with a display panel, for optical fingerprint detection, comprising: an optical fingerprint sensor used for placing underneath the display panel and configured to detect a presence of a received contact input associated with a fingerprint to generate a first signal indicative of an image of a spatial pattern of the fingerprint, wherein the optical fingerprint sensor captures different fingerprint patterns at different times to monitor time-domain evolution of the fingerprint ridge pattern deformation that indicates time-domain evolution of a press force from the contact input; wherein the optical fingerprint sensor is configured to detect a presence of a received contact input associated with the fingerprint to further generate a second signal indicative of a biometric marker that is different from the spatial pattern of the fingerprint and represents a property of a live person; wherein the optical fingerprint sensor includes an optical sensor array positioned to receive reflected probe light that carries information of the received contact input and to produce an optical sensor signal; and wherein the optical sensor module further includes an optical collimator array of optical collimators located between the display panel and the optical sensor array to spatially select returned probe light to enter the optical sensor array, the optical collimators are channels that are slanted with respect to the surface of the display panel; or wherein the optical sensor module further includes an optical collimator array of optical collimators located between the display panel and the optical sensor array, and an optical layer between the optical collimators and the display panel to select angled probe light returned from the display panel to enter the optical collimators while reducing an amount of the returned probe light that is perpendicular to the display panel and enters the optical collimators. an optical fingerprint sensor used for placing underneath the display panel and configured to detect a presence of a received contact input associated with a fingerprint to generate a first signal indicative of an image of a spatial pattern of the fingerprint, wherein the optical fingerprint sensor captures different fingerprint patterns at different times to monitor time-domain evolution of the fingerprint ridge pattern deformation that indicates time-domain evolution of a press force from the contact input; wherein the optical fingerprint sensor is configured to detect a presence of a received contact input associated with the fingerprint to further generate a second signal indicative of a biometric marker that is different from the spatial pattern of the fingerprint and represents a property of a live person; wherein the optical fingerprint sensor includes an optical sensor array positioned to receive reflected probe light that carries information of the received contact input and to produce an optical sensor signal; and wherein the optical sensor module further includes an optical collimator array of optical collimators located between the display panel and the optical sensor array to spatially select returned probe light to enter the optical sensor array, the optical collimators are channels that are slanted with respect to the surface of the display panel; or wherein the optical sensor module further includes an optical collimator array of optical collimators located between the display panel and the optical sensor array, and an optical layer between the optical collimators and the display panel to select angled probe light returned from the display panel to enter the optical collimators while reducing an amount of the returned probe light that is perpendicular to the display panel and enters the optical collimators.