Metadata-Version: 2.1
Name: photototext
Version: 0.1.2
Summary: This is a module that can turn a picture into a pattern of letters and symbols.
Home-page: https://pypi.org/project/photototext/
Author: peler
Author-email: peler_little_pig@outlook.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown

photototext module is built on the basis of PIL and Numpy. It is simple and has only one function: change. It can open all kinds of pictures such as jpg, png, gif and so on that are supported by PIL. Then it will change the picture into a graph composed of characters and signs. Finally, the result will be returned as a string type. The introduction to this function change is as follows:

Function change has one parameter: file. It can automatically compress the change the picture once the path of the picture has been input to file. The result is a new graph composed of characters and signs.

For example, there is a jpg type of logo picture of Python at D(D:\python.jpg). The changing of the picture can be realized by typing:

	import photototext as pt

	text = pt.change('D:\python.jpg')

	print(text)

The result is as follow:        

                                                                                          ...;;;---------;;;;..                                                                                         
                                                                                  .;-:!>>77??????CCCCCCCC??????77>>!:-;.                                                                                
                                                                            .;-!>7??CCCC??????????????????????????CCCC??7>!-;                                                                           
                                                                         ;:>7?CC??????????????????????????????????????????CC?7>:;                                                                       
                                                                      ;!7?C???????????????????????????????????????????????????CC?7:;                                                                    
                                                                   .:7?C??????????????????????????????????????????????????????????C?>-                                                                  
                                                                  -7C???????CC????CC????????????????????????????????????????????????CC7;                                                                
                                                                 >C???????C7!-;;;;-!7C??????????????????????????????????????????????????:                                                               
                                                                >C????????:.        .:??????????????????????????????????????????????????C:                                                              
                                                               -C????????-            -???????????????????????????????????????????????????.                                                             
                                                               :C???????7              >?????????????????????????????????????????????????C-                                                             
                                                               :C????????.            .7?????????????????????????????????????????????????C-                                                             
                                                               :C????????>.          .>??????????????????????????????????????????????????C-                                                             
                                                               :C?????????7:;      .:7C??????????????????????????????????????????????????C-                                                             
                                                               :C??????????C?7>!!>7?C????????????????????????????????????????????????????C-                                                             
                                                               !C?????????????CCCC???????????????????????????????????????????????????????C-                                                             
                                                               :C????????????????????????????????????????????????????????????????????????C-                                                             
                                                               !C????????????????????????????????????????????????????????????????????????C-                                                             
                                                               :?77777777777777777777777777777777777?????????????????????????????????????C-                                                             
                                                                ................................... -????????????????????????????????????C-                                                             
                                                                                                    -C???????????????????????????????????C-                                                             
                                    .;:!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>7????????????????????????????????????C-   .;;;;;;;;;;;;;;;;;;;;..                                   
                                  ->??CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC?????????????????????????????????????C-   ;:----------------------;.                                
                                :7C??????????????????????????????????????????????????????????????????????????????????????????????????????C-   ;--------------------------.                              
                              -7C????????????????????????????????????????????????????????????????????????????????????????????????????????C-   ;---------------------------;.                            
                             !????????????????????????????????????????????????????????????????????????????????????????????????????????????;   ;-----------------------------.                           
                            >C????????????????????????????????????????????????????????????????????????????????????????????????????????????;   ;------------------------------;                          
                           >C?????????????????????????????????????????????????????????????????????????????????????????????????????????????;   ;-------------------------------;                         
                          !C??????????????????????????????????????????????????????????????????????????????????????????????????????????????.   ;--------------------------------.                        
                         :C??????????????????????????????????????????????????????????????????????????????????????????????????????????????7.   ;---------------------------------.                       
                        .???????????????????????????????????????????????????????????????????????????????????????????????????????????????C!    ;----------------------------------                       
                        !C???????????????????????????????????????????????????????????????????????????????????????????????????????????????.    -----------------------------------;                      
                       ;????????????????????????????????????????????????????????????????????????????????????????????????????????????????-    ;------------------------------------                      
                       !C??????????????????????????????????????????????????????????????????????????????????????????????????????????????-    ;-------------------------------------.                     
                       7????????????????????????????????????????????????????????????????????????????????????????????????????????????C>.    ;--------------------------------------;                     
                      ;???????????????????????????????????????????????????????????????????????????????????????????????????????????C7:    .-----------------------------------------                     
                      :C???????????????????????????????????????????????????????????????????????????????????????????????????????C?>:     ;------------------------------------------.                    
                      !C????????????????????????????????????????????????????????????????????????????????????????CCCCC?C?CCCC??>:;     ;--------------------------------------------.                    
                      >C?????????????????????????????????????????????????CCC???7777777777777777777777777>>>>>>>>>>>>>>>>>!!:;.     .;----------------------------------------------;                    
                      >??????????????????????????????????????????????CC?7!:-;...                                                .;;------------------------------------------------;                    
                      >????????????????????????????????????????????C?>-.                                                 ....;;----------------------------------------------------;                    
                      >???????????????????????????????????????????7:.     ..;;-----------------------------------------------------------------------------------------------------;                    
                      !????????????????????????????????????????C7-     .;----------------------------------------------------------------------------------------------------------.                    
                      :C???????????????????????????????????????:    .;-------------------------------------------------------------------------------------------------------------.                    
                      ;??????????????????????????????????????7;    ;---------------------------------------------------------------------------------------------------------------                     
                       7????????????????????????????????????7.   .----------------------------------------------------------------------------------------------------------------;                     
                       !C???????????????????????????????????;   .-----------------------------------------------------------------------------------------------------------------.                     
                       .???????????????????????????????????7    ------------------------------------------------------------------------------------------------------------------                      
                        !C????????????????????????????????C>   .-----------------------------------------------------------------------------------------------------------------.                      
                        .?????????????????????????????????C!   .-----------------------------------------------------------------------------------------------------------------                       
                         -?????????????????????????????????!   .----------------------------------------------------------------------------------------------------------------.                       
                          !C??????????????????????????????C!   .---------------------------------------------------------------------------------------------------------------.                        
                           >C?????????????????????????????C!   ;--------------------------------------------------------------------------------------------------------------;                         
                            !C????????????????????????????C!   ;-------------------------------------------------------------------------------------------------------------;                          
                             :????????????????????????????C:   ;------------------------------------------------------------------------------------------------------------.                           
                              ;7C?????????????????????????C:   ;----------------------------------------------------------------------------------------------------------;.                            
                                -7CC???????????????????????:   ;--------------------------------------------------------------------------------------------------------;.                              
                                  ->7?CCCCCCCCCCCCCCCCCCC?C!   ;------------------------------------------------------------------------------------------------------;.                                
                                    .;-:!!>>>>>>>>>>>>>>>>>-   ;-------------------------------------;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;..                                   
                                                               ;-------------------------------------                                                                                                   
                                                               ;-------------------------------------                                                                                                   
                                                               ;--------------------------------------------------------------------------.                                                             
                                                               ;--------------------------------------------------------------------------.                                                             
                                                               ;--------------------------------------------------------------------------.                                                             
                                                               ;--------------------------------------------------------------------------.                                                             
                                                               ;-------------------------------------------------------;;;;;--------------.                                                             
                                                               ;----------------------------------------------------;.       .;-----------.                                                             
                                                               ;---------------------------------------------------;            ----------.                                                             
                                                               ;--------------------------------------------------;             .---------.                                                             
                                                               ;--------------------------------------------------;              ---------.                                                             
                                                               .---------------------------------------------------.            ;---------.                                                             
                                                                ;---------------------------------------------------.         .;---------;                                                              
                                                                 ;----------------------------------------------------;;....;;----------;                                                               
                                                                  .--------------------------------------------------------------------.                                                                
                                                                    .---------------------------------------------------------------;.                                                                  
                                                                      .;----------------------------------------------------------;.                                                                    
                                                                         .;;--------------------------------------------------;..                                                                       
                                                                             ..;;----------------------------------------;;..                                                                           
                                                                                   ...;;;------------------------;;;...                                                                                 
                                                                                             ................                                                                                           

Note: The graphics you see may be distorted，use “宋体” of “Terminal” fonts to see the result. 


