| CPC G06V 40/45 (2022.01) [G06T 5/20 (2013.01); G06T 5/73 (2024.01); G06V 10/30 (2022.01); G06V 40/161 (2022.01); G06T 2207/20084 (2013.01); G06T 2207/30201 (2013.01)] | 20 Claims | 

| 
               1. A processor-implemented method with liveness detection, comprising: 
            receiving a plurality of phase images of different phases, captured by a multi-phase detection image sensor; 
                generating a plurality of preprocessed phase images by performing preprocessing, including edge enhancement processing, on the plurality of phase images of different phases; 
                generating a plurality of differential images based on a result of determining a respective difference in pixel values between the preprocessed phase images; and 
                performing a liveness detection on an object in the phase images based on the differential images, 
                wherein, in a case in a two-dimensional (2D) object is captured by the multi-phase detection image sensor, there is not a disparity between the plurality of phase images of different phases, 
                wherein, in a case in a three-dimensional (3D) object is captured by the multi-phase detection image sensor, there is the disparity between the plurality of phase images of different phases and at least one of the plurality of differential images comprises disparity information associated with the disparity. 
               |