Convert thickness of signature to 1 pixel

Hi, I am doing an AI project on signature verification. I have to do some preprocessing signature image before extracting its features. Since I am newbies on opencv so I am hope that someone can guide me how to do preprocessing the image.

  • How to convert an image to black and white image
  • How to covert thickness of signature to 1pixel
    Thank you and looking for you guys support