The present invention provides an optoelectronic module and an imaging apparatus such as an endoscope comprising such module. The optoelectronic module includes a housing and an image sensor. The image sensors face has a perimeter S, the cross section of the optoelectronic module along the face has a perimeter H, and S