A green scanner effect with depth texture

I made a green scanner effect. Steps: Prepare a handsome photo. Calculate the depth value of the scene in the photo through machine learning, and get a depth texture. Write shader code to implement green scan line effect. Calculate photo scene depth Why do we need to calculate the scene depth of the photo? Because the photo is two-dimensional, if you directly use the color or grayscale of the two-dimensional