欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP IMG2TXT

程序员文章站 2022-05-03 19:26:14
...
i!lI;:,\"^`'. ";function getimgchars($color_tran,$chars){    $length = strlen($chars);    $alpha=$color_tran['alpha'];    $r=$color_tran['red'];    $g=$color_tran['green'];    $b=$color_tran['blue'];	$gray = intval(0.2126 * $r + 0.7152 * $g + 0.0722 * $b);		if($gray==0){		return '.';	}		if($gray'.$char."
相关标签: PHP IMG2TXT