The problem of finding the Centreline of the banana is similar to an issue you get in the GIS domain when rivers are captured as polygons.
Although it's not a straightforward process a series of Vorononoi polygons makes a pretty good Centreline. I think it might work for bananas.
https://gis.stackexchange.com/questions/318721/creating-cent...