Current location - Quotes Website - Personality signature - Write your own name code with matlab
Write your own name code with matlab
1. First, take a signature picture with black characters on a white background with your mobile phone, and make an electronic signature with matlab.

2. Open matlab and copy the following code:

I 1 = imread(' C:\ Users \ Administrator \ Desktop \ 1 . jpg ');

i 1=i 1(:,:, 1);

I 1 = I 1 & gt; 120; The% threshold can be set by yourself.

I 1 = uint 8(I 1);

I 1(find(I 1 = = 1))= 255; Fig. im show (I1); imwrite(i 1,' C:\ Users \ Administrator \ Desktop \ qianming . png ');

3. Then the completed electronic signature will appear on your desktop, and the final result is as follows: