A new development from Samsung has surfaced and it doesn't have anything to do with the upcoming Galaxy S10. A patent originally filed back in February of 2017 was recently granted to Samsung by the US Patent and Trademark Office for an S-Pen with an optical system and image sensor inside - so, a camera. The patent titled Electronic pen device having optical zoom details an image of an S-Pen with an optics system in the upper section of the pen. The diagram shows four lenses aligned before an image sensor, there would also be a "communications module" to transmit the image data back to the...
Source: https://www.gsmarena.com/samsung_patents_an_spen_with_a_camera_in_it-news-35404.php