I think the lower edge is an actual edge, which would make this something like a 1 dimension CCD or other sensor? Perhaps like you might find in a scanner? I remember someone using a sensor like that to make a rain detector (circa 1983).

I’m going to guess this is part of a die from a contact image sensor (see https://compo.canon/en/product/cis/) used in document scanners. Older scanners generally used 1-dimensional CCDs, but the bond wires on those are usually positioned on either end of a long CCD. This photo looks like a section of a very long and thin die with bond wires along one edge, which seems to match up with the contact image sensors I’ve personally seen (https://i.imgur.com/V7fHe7m.jpg).

About a decade ago I helped out debugging a fingerprint sensor ASIC using an Infared thermal imaging microscope. The layout of this IC is remeninescent of that particular finger print sensor. This was before the fingerprint sensors used a matrix layout and you had to swipe the finger across the sensor array. Hence my guess is a fingerprint sensor array from Fingerprint.