图像相似度 Image Similarity
图片差异度 Image Dissimilarity
puzzle-diff
pacman -S autoconf automake base-devel libtool
pacman -S mingw-w64-x86_64-libgd
autogen
/opt/admin/libpuzzle>./configure
configure: loading site script /etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... no, using cp -pR
checking whether make sets $(MAKE)... (cached) yes
checking for gdlib-config... no
./configure: line 5863: --cflags: command not found
./configure: line 5864: --ldflags: command not found
./configure: line 5865: --libs: command not found
checking for gdImageCreateFromGd2 in -lgd... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw64/bin/nm -B
checking the name lister (/mingw64/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-w64-mingw32 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
checking how to convert x86_64-w64-mingw32 file names to toolchain format... func_convert_file_msys_to_w32
checking for D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking command to parse /mingw64/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for limits.h... yes
checking for memory.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ssize_t... yes
checking for off_t... yes
checking for GNU libc compatible malloc... yes
checking for GNU libc compatible realloc... yes
checking for working memcmp... yes
checking for floor... yes
checking for round... yes
checking for strtoul... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating src/pics/Makefile
config.status: creating php/Makefile
config.status: creating php/libpuzzle/Makefile
config.status: creating php/libpuzzle/include/Makefile
config.status: creating php/libpuzzle/modules/Makefile
config.status: creating php/libpuzzle/build/Makefile
config.status: creating php/libpuzzle/tests/Makefile
config.status: creating php/libpuzzle/tests/pics/Makefile
config.status: creating php/examples/Makefile
config.status: creating php/examples/similar/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: +-------------------------------------------------------+
configure: | You can subscribe to the Libpuzzle users mailing-list |
configure: | to ask for help and to stay informed of new releases. |
configure: | Go to http://libpuzzle.pureftpd.org/ml/ now! |
configure: +-------------------------------------------------------+
configure
/opt/admin/libpuzzle>./configure
configure: loading site script /etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... no, using cp -pR
checking whether make sets $(MAKE)... (cached) yes
checking for gdlib-config... no
./configure: line 5863: --cflags: command not found
./configure: line 5864: --ldflags: command not found
./configure: line 5865: --libs: command not found
checking for gdImageCreateFromGd2 in -lgd... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw64/bin/nm -B
checking the name lister (/mingw64/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-w64-mingw32 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
checking how to convert x86_64-w64-mingw32 file names to toolchain format... func_convert_file_msys_to_w32
checking for D:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking command to parse /mingw64/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... no
checking for objdir... .libs
make
/opt/admin/libpuzzle>make
make all-recursive
make[1]: Entering directory '/opt/admin/libpuzzle'
Making all in src
make[2]: Entering directory '/opt/admin/libpuzzle/src'
Making all in pics
make[3]: Entering directory '/opt/admin/libpuzzle/src/pics'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/opt/admin/libpuzzle/src/pics'
make[3]: Entering directory '/opt/admin/libpuzzle/src'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/opt/admin/libpuzzle/src'
make[2]: Leaving directory '/opt/admin/libpuzzle/src'
Making all in man
make[2]: Entering directory '/opt/admin/libpuzzle/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/opt/admin/libpuzzle/man'
Making all in php
make[2]: Entering directory '/opt/admin/libpuzzle/php'
Making all in libpuzzle
make[3]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle'
Making all in build
make[4]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle/build'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle/build'
Making all in include
make[4]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle/include'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle/include'
Making all in modules
make[4]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle/modules'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle/modules'
Making all in tests
make[4]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle/tests'
Making all in pics
make[5]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle/tests/pics'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle/tests/pics'
make[5]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle/tests'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle/tests'
make[4]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle/tests'
make[4]: Entering directory '/opt/admin/libpuzzle/php/libpuzzle'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle'
make[3]: Leaving directory '/opt/admin/libpuzzle/php/libpuzzle'
Making all in examples
make[3]: Entering directory '/opt/admin/libpuzzle/php/examples'
Making all in similar
make[4]: Entering directory '/opt/admin/libpuzzle/php/examples/similar'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/opt/admin/libpuzzle/php/examples/similar'
make[4]: Entering directory '/opt/admin/libpuzzle/php/examples'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/opt/admin/libpuzzle/php/examples'
make[3]: Leaving directory '/opt/admin/libpuzzle/php/examples'
make[3]: Entering directory '/opt/admin/libpuzzle/php'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/opt/admin/libpuzzle/php'
make[2]: Leaving directory '/opt/admin/libpuzzle/php'
make[2]: Entering directory '/opt/admin/libpuzzle'
make[2]: Leaving directory '/opt/admin/libpuzzle'
make[1]: Leaving directory '/opt/admin/libpuzzle'
Comparison of Image Dissimilarity
/opt/admin/mqtt>puzzle-diff 11.22.33.44@_01_20241113230656282_INTRUSION_DETECTION.jpg 11.22.33.44@_01_20241113233448920_INTRUSION_DETECTION.jpg
0.143629/opt/admin/mqtt>./diff-image 11.22.33.44@_01_20241113230656282_INTRUSION_DETECTION.jpg 11.22.33.44@_01_20241113233448920_INTRUSION_DETECTION.jpg
NG (0.14 < 0.20)