我在ubuntu安装好了,用以下程序提示出错Fatal error: Call to undefined function puzzle_fill_cvec_from_file() in /var/www/11.php on line 4<?php# Compute signatures for two images
$cvec1 = puzzle_fill_cvec_from_file('3.png');
$cvec2 = puzzle_fill_cvec_from_file('4.png');# Compute the distance between both signatures
$d = puzzle_vector_normalized_distance($cvec1, $cvec2);# Are pictures similar?
if ($d < PUZZLE_CVEC_SIMILARITY_LOWER_THRESHOLD) {
echo "Pictures are looking similar\n";
} else {
echo "Pictures are different, distance=$d\n";
}# Compress the signatures for database storage
$compress_cvec1 = puzzle_compress_cvec($cvec1);
$compress_cvec2 = puzzle_compress_cvec($cvec2);
?>
$cvec1 = puzzle_fill_cvec_from_file('3.png');
$cvec2 = puzzle_fill_cvec_from_file('4.png');# Compute the distance between both signatures
$d = puzzle_vector_normalized_distance($cvec1, $cvec2);# Are pictures similar?
if ($d < PUZZLE_CVEC_SIMILARITY_LOWER_THRESHOLD) {
echo "Pictures are looking similar\n";
} else {
echo "Pictures are different, distance=$d\n";
}# Compress the signatures for database storage
$compress_cvec1 = puzzle_compress_cvec($cvec1);
$compress_cvec2 = puzzle_compress_cvec($cvec2);
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货