opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

wechat_qrcode,Unable to recognize white and black QR code.

Open pei625569 opened this issue 2 years ago • 1 comments

System information (version)
  • OpenCV => 4.x branch with commit:97c021b17af1d40a11515c3b8e7a491a36aa4d6c
  • Operating System / Platform => MacOS Monterey 12.6
  • Compiler => xcode:14.2 (14C18); python:3.9.6;CMake:3.24.0
Detailed description

qrcode Pic address: https://github.com/pei625569/pictures/blob/master/qrcode_white.png?raw=true

I use this shell to compiler: python3 opencv/platforms/ios/build_framework.py ios --without=video --disable-swift --disable-bitcode --iphoneos_deployment_target 12.0 --iphoneos_archs arm64 --build_only_specified_archs --debug

Compile log output:

Using IPHONEOS_DEPLOYMENT_TARGET=12.0
Using iPhoneOS ARCHS=['arm64']
Using iPhoneSimulator ARCHS=None

=================================
CMake
=================================

Executing: ['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Debug', '-DOPENCV_INCLUDE_INSTALL_PATH=include', '-DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty', '-DFRAMEWORK_NAME=opencv2', '-DBUILD_opencv_video=OFF', '-DIOS_ARCH=arm64', '-DCMAKE_TOOLCHAIN_FILE=~/Desktop/openCV/source/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '~/Desktop/openCV/source/opencv'] in ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos
Executing: cmake -GXcode -DAPPLE_FRAMEWORK=ON -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug -DOPENCV_INCLUDE_INSTALL_PATH=include -DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty -DFRAMEWORK_NAME=opencv2 -DBUILD_opencv_video=OFF -DIOS_ARCH=arm64 -DCMAKE_TOOLCHAIN_FILE=~/Desktop/openCV/source/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake -DCPU_BASELINE=DETECT ~/Desktop/openCV/source/opencv
-- Setting up iPhoneOS toolchain for IOS_ARCH='arm64'
-- iPhoneOS toolchain loaded
-- Setting up iPhoneOS toolchain for IOS_ARCH='arm64'
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- The C compiler identification is AppleClang 14.0.0.14000029
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected processor: arm64
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WRETURN_TYPE
-- Performing Test HAVE_CXX_WRETURN_TYPE - Success
-- Performing Test HAVE_C_WRETURN_TYPE
-- Performing Test HAVE_C_WRETURN_TYPE - Success
-- Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WADDRESS
-- Performing Test HAVE_CXX_WADDRESS - Success
-- Performing Test HAVE_C_WADDRESS
-- Performing Test HAVE_C_WADDRESS - Success
-- Performing Test HAVE_CXX_WSEQUENCE_POINT
-- Performing Test HAVE_CXX_WSEQUENCE_POINT - Success
-- Performing Test HAVE_C_WSEQUENCE_POINT
-- Performing Test HAVE_C_WSEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WFORMAT_SECURITY
-- Performing Test HAVE_CXX_WFORMAT_SECURITY - Success
-- Performing Test HAVE_C_WFORMAT_SECURITY
-- Performing Test HAVE_C_WFORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Success
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_CXX_WNO_SEMICOLON_BEFORE_METHOD_BODY
-- Performing Test HAVE_CXX_WNO_SEMICOLON_BEFORE_METHOD_BODY - Success
-- Performing Test HAVE_C_WNO_SEMICOLON_BEFORE_METHOD_BODY
-- Performing Test HAVE_C_WNO_SEMICOLON_BEFORE_METHOD_BODY - Success
-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CPU_NEON_SUPPORT - Success
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Success
-- Performing Test HAVE_CPU_NEON_DOTPROD_SUPPORT (check file: cmake/checks/cpu_dotprod.cpp)
-- Performing Test HAVE_CPU_NEON_DOTPROD_SUPPORT - Failed
-- Performing Test HAVE_CXX_MARCH_ARMV8_2_A+DOTPROD (check file: cmake/checks/cpu_dotprod.cpp)
-- Performing Test HAVE_CXX_MARCH_ARMV8_2_A+DOTPROD - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_LINK_AS_NEEDED
-- Performing Test HAVE_LINK_AS_NEEDED - Failed
-- Performing Test HAVE_LINK_NO_UNDEFINED
-- Performing Test HAVE_LINK_NO_UNDEFINED - Failed
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Success
-- Performing Test HAVE_C_WNO_ATTRIBUTES
-- Performing Test HAVE_C_WNO_ATTRIBUTES - Success
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE
-- Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE - Success
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- libjpeg-turbo: VERSION = 2.1.3, BUILD = opencv-4.7.0-dev-libjpeg-turbo-debug
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Performing Test HAVE_VLD1_S16_X3
-- Performing Test HAVE_VLD1_S16_X3 - Success
-- Performing Test HAVE_VLD1_U16_X2
-- Performing Test HAVE_VLD1_U16_X2 - Success
-- Performing Test HAVE_VLD1Q_U8_X4
-- Performing Test HAVE_VLD1Q_U8_X4 - Success
-- Use full Neon SIMD intrinsics implementation (NEON_INTRINSICS = ON)
-- SIMD extensions: arm64 (WITH_SIMD = 1)
-- Performing Test HAVE_C_STD_C99
-- Performing Test HAVE_C_STD_C99 - Success
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Failed
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAVE_C_WNO_CAST_ALIGN
-- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
-- Performing Test HAVE_C_WNO_NULL_POINTER_SUBTRACTION
-- Performing Test HAVE_C_WNO_NULL_POINTER_SUBTRACTION - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Success
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
-- ADE: Downloading v0.1.2a.zip from https://github.com/opencv/ade/archive/v0.1.2a.zip
-- Performing Test HAVE_CXX_WNO_DEPRECATED_COPY
-- Performing Test HAVE_CXX_WNO_DEPRECATED_COPY - Success
-- Processing WORLD modules...
--     module opencv_core...
-- Allocator metrics storage type: 'int'
--     module opencv_flann...
--     module opencv_imgproc...
--     module opencv_ml...
--     module opencv_photo...
--     module opencv_dnn...
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': ~/Desktop/openCV/source/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out ocl4dnn source code
-- opencv_dnn: filter out cuda4dnn source code
--     module opencv_features2d...
--     module opencv_imgcodecs...
--     module opencv_videoio...
--     module opencv_calib3d...
--     module opencv_gapi...
--     module opencv_highgui...
-- highgui: using builtin backend: NONE
--     module opencv_objdetect...
--     module opencv_stitching...
-- Processing WORLD modules... DONE
-- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_block.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_block.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_winograd_f63.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_winograd_f63.avx2.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- Performing Test HAVE_CXX_FOBJC_EXCEPTIONS
-- Performing Test HAVE_CXX_FOBJC_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- 
Executing: ['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Debug', '-DOPENCV_INCLUDE_INSTALL_PATH=include', '-DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty', '-DFRAMEWORK_NAME=opencv2', '-DBUILD_opencv_video=OFF', '-DIOS_ARCH=arm64', '-DCMAKE_TOOLCHAIN_FILE=/Users/peiqirui/Desktop/openCV/source/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '/Users/peiqirui/Desktop/openCV/source/opencv'] in /Users/peiqirui/Desktop/openCV/source/ios/build/build-arm64-iphoneos
Executing: cmake -GXcode -DAPPLE_FRAMEWORK=ON -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug -DOPENCV_INCLUDE_INSTALL_PATH=include -DOPENCV_3P_LIB_INSTALL_PATH=lib/3rdparty -DFRAMEWORK_NAME=opencv2 -DBUILD_opencv_video=OFF -DIOS_ARCH=arm64 -DCMAKE_TOOLCHAIN_FILE=/Users/peiqirui/Desktop/openCV/source/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake -DCPU_BASELINE=DETECT /Users/peiqirui/Desktop/openCV/source/opencv
-- Setting up iPhoneOS toolchain for IOS_ARCH='arm64'
-- iPhoneOS toolchain loaded
-- Detected processor: arm64
-- Looking for ccache - not found
-- libjpeg-turbo: VERSION = 2.1.3, BUILD = opencv-4.7.0-dev-libjpeg-turbo-debug
-- Use full Neon SIMD intrinsics implementation (NEON_INTRINSICS = ON)
-- SIMD extensions: arm64 (WITH_SIMD = 1)
-- Processing WORLD modules...
--     module opencv_core...
-- Allocator metrics storage type: 'int'
--     module opencv_flann...
--     module opencv_imgproc...
--     module opencv_ml...
--     module opencv_photo...
--     module opencv_dnn...
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /Users/peiqirui/Desktop/openCV/source/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out ocl4dnn source code
-- opencv_dnn: filter out cuda4dnn source code
--     module opencv_features2d...
--     module opencv_imgcodecs...
--     module opencv_videoio...
--     module opencv_calib3d...
--     module opencv_gapi...
--     module opencv_highgui...
-- highgui: using builtin backend: NONE
--     module opencv_objdetect...
--     module opencv_stitching...
--     module opencv_wechat_qrcode...
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Failed
-- wechat_qrcode: Downloading detect.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.caffemodel
-- wechat_qrcode: Downloading detect.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.prototxt
-- wechat_qrcode: Downloading sr.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel
-- wechat_qrcode: Downloading sr.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.prototxt
-- Processing WORLD modules... DONE
-- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/world/int8layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_block.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_block.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_depthwise.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_winograd_f63.avx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/cpu_kernels/conv_winograd_f63.avx2.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- General configuration for OpenCV 4.7.0-dev =====================================
--   Version control:               4.7.0-451-gf2f00259da-dirty
-- 
--   Platform:
--     Timestamp:                   2023-06-17T12:32:48Z
--     Host:                        Darwin 21.6.0 x86_64
--     Target:                      iOS 12.0 arm64
--     CMake:                       3.24.0
--     CMake generator:             Xcode
--     CMake build tool:            ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/xcodebuild_wrapper
--     Xcode:                       14.2
--     Configuration:               Debug Release
-- 
--   CPU/HW features:
--     Baseline:                    NEON FP16
--       requested:                 DETECT
-- 
--   C/C++:
--     Built as dynamic libs?:      NO
--     C++ standard:                11
--     C++ Compiler:                /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  (ver 14.0.0.14000029)
--     C++ flags (Release):         -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body  -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-copy -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body  -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-copy -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
--     C flags (Release):           -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body  -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body  -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      
--     Linker flags (Debug):        
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          -framework UIKit -framework Accelerate -framework CoreGraphics -framework QuartzCore
--     3rdparty dependencies:       libprotobuf libjpeg-turbo libwebp libpng zlib ade quirc
-- 
--   OpenCV modules:
--     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objc objdetect photo stitching videoio world
--     Disabled:                    video
--     Disabled by dependency:      -
--     Unavailable:                 java python2 python3 ts
--     Applications:                -
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   GUI: 
-- 
--   Media I/O: 
--     ZLib:                        build (ver 1.2.13)
--     JPEG:                        build-libjpeg-turbo (ver 2.1.3-62)
--       SIMD Support Request:      YES
--       SIMD Support:              YES
--     WEBP:                        build (ver encoder: 0x020f)
--     PNG:                         build (ver 1.6.37)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
--     PFM:                         YES
-- 
--   Video I/O:
--     AVFoundation:                YES
--     iOS capture:                 YES
-- 
--   Parallel framework:            GCD
-- 
--   Trace:                         YES (built-in)
-- 
--   Other third-party libraries:
--     Custom HAL:                  NO
--     Protobuf:                    build (3.19.1)
--     Flatbuffers:                 builtin/3rdparty (23.5.9)
-- 
--   Python (for build):            NO
-- 
--   Objective-C wrappers:          YES
-- 
--   Install to:                    ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/install
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos

=================================
Xcodebuild
=================================

Executing: ['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=12.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Debug', '-parallelizeTargets', '-jobs', '12', '-target', 'ALL_BUILD', 'build'] in ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos
Executing: xcodebuild IPHONEOS_DEPLOYMENT_TARGET=12.0 ARCHS=arm64 -sdk iphoneos -configuration Debug -parallelizeTargets -jobs 12 -target ALL_BUILD build
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild IPHONEOS_DEPLOYMENT_TARGET=12.0 ARCHS=arm64 -sdk iphoneos -configuration Debug -parallelizeTargets -jobs 12 -target ALL_BUILD build

User defaults from command line:
    IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 12
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = arm64
    IPHONEOS_DEPLOYMENT_TARGET = 12.0
    SDKROOT = iphoneos16.2

Build Preparation
Build task concurrency set to 12 via user default IDEBuildOperationMaxNumberOfConcurrentCompileTasks

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: b465f10031f69a9c84ba83998727d630
Build description path: ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/build/XCBuildData/b465f10031f69a9c84ba83998727d630-desc.xcbuild

note: Building targets in dependency order
CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/world
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/world

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/zlib
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/zlib

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/quirc
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/quirc

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/protobuf
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/protobuf

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libwebp
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libwebp

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libpng
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libpng

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/lib/Debug
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/lib/Debug

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/Debug-iphoneos
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/Debug-iphoneos

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/lib/Debug
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/lib/Debug

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/zlib/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/zlib/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/quirc/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/quirc/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/protobuf/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/protobuf/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libpng/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libpng/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/src/simd
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/src/simd

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libwebp/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libwebp/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/Debug-iphoneos
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/Debug-iphoneos

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/world/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/world/EagerLinkingTBDs

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc/Debug-iphoneos
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc/Debug-iphoneos

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/src/simd/OpenCV.build/Debug/jsimd.build
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/src/simd/OpenCV.build/Debug/jsimd.build

CreateBuildDirectory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/src/simd/EagerLinkingTBDs
    cd ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.xcodeproj
    builtin-create-build-directory ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/libjpeg-turbo/src/simd/EagerLinkingTBDs

WriteAuxiliaryFile ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.build/Debug-iphoneos/ZERO_CHECK.build/Script-D80FDD97698913B01F11BB53.sh (in target 'ZERO_CHECK' from project 'OpenCV')
    cd ~/Desktop/openCV/source/opencv
    write-file ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.build/Debug-iphoneos/ZERO_CHECK.build/Script-D80FDD97698913B01F11BB53.sh

WriteAuxiliaryFile ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/OpenCV.build/Debug-iphoneos/gen_opencv_objc_source_ios.build/Script-FBF5985C78A3D3667E7068E5.sh (in target 'gen_opencv_objc_source_ios' from project 'OpenCV')
    cd ~/Desktop/openCV/source/opencv
    write-file ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/OpenCV.build/Debug-iphoneos/gen_opencv_objc_source_ios.build/Script-FBF5985C78A3D3667E7068E5.sh

PhaseScriptExecution Generate\ CMakeFiles/dephelper/gen_opencv_objc_source_ios ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/OpenCV.build/Debug-iphoneos/gen_opencv_objc_source_ios.build/Script-FBF5985C78A3D3667E7068E5.sh (in target 'gen_opencv_objc_source_ios' from project 'OpenCV')
    cd ~/Desktop/openCV/source/opencv
    /bin/sh -c ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/modules/objc_bindings_generator/OpenCV.build/Debug-iphoneos/gen_opencv_objc_source_ios.build/Script-FBF5985C78A3D3667E7068E5.sh
duplicated: CLASS cv::.Algorithm : 
SKIP:void cv::Algorithm::write(FileStorage fs)	 due to ARG type FileStorage/I
SKIP:void cv::Algorithm::write(FileStorage fs, String name)	 due to ARG type FileStorage/I
SKIP:void cv::Algorithm::read(FileNode fn)	 due to ARG type FileNode/I
SKIP:void cv::cuda::nonLocalMeans(GpuMat src, GpuMat& dst, float h, int search_window = 21, int block_size = 7, int borderMode = BORDER_DEFAULT,  _hidden_  stream = Stream::Null())	 due to ARG type GpuMat/I
SKIP:void cv::cuda::fastNlMeansDenoising(GpuMat src, GpuMat& dst, float h, int search_window = 21, int block_size = 7, Stream stream = Stream::Null())	 due to ARG type GpuMat/I
SKIP:void cv::cuda::fastNlMeansDenoisingColored(GpuMat src, GpuMat& dst, float h_luminance, float photo_render, int search_window = 21, int block_size = 7, Stream stream = Stream::Null())	 due to ARG type GpuMat/I
SKIP:vector_Target cv::dnn::getAvailableTargets(dnn_Backend be)	 due to RET type vector_Target
SKIP:AsyncArray cv::dnn::Net::forwardAsync(String outputName = String())	 due to RET type AsyncArray
SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher)	 due to ARG type Ptr_DescriptorExtractor/I
SKIP:void cv::DescriptorMatcher::read(FileNode arg1)	 due to ARG type FileNode/I
SKIP:void cv::DescriptorMatcher::write(FileStorage fs, String name)	 due to ARG type FileStorage/I
SKIP:void cv::Feature2D::read(FileNode arg1)	 due to ARG type FileNode/I
SKIP:void cv::Feature2D::write(FileStorage fs, String name)	 due to ARG type FileStorage/I
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends()	 due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends()	 due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends()	 due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends()	 due to RET type vector_VideoCaptureAPIs
SKIP:static bool cv::VideoCapture::waitAny(vector_VideoCapture streams, vector_int& readyIndex, int64 timeoutNs = 0)	 due to ARG type vector_VideoCapture/I
duplicated: CONST CALIB_USE_INTRINSIC_GUESS=1 << 0
duplicated: CONST CALIB_FIX_K1=1 << 4
duplicated: CONST CALIB_FIX_K2=1 << 5
duplicated: CONST CALIB_FIX_K3=1 << 6
duplicated: CONST CALIB_FIX_K4=1 << 7
duplicated: CONST CALIB_FIX_INTRINSIC=1 << 8
duplicated: CONST CALIB_FIX_PRINCIPAL_POINT=1 << 9
duplicated: CONST CALIB_ZERO_DISPARITY=1 << 10
duplicated: CONST CALIB_FIX_FOCAL_LENGTH=1 << 11
SKIP:bool cv::CascadeClassifier::read(FileNode node)	 due to ARG type FileNode/I
SKIP:aruco_DetectorParameters cv::QRCodeDetectorAruco::getArucoParameters()	 due to RET type aruco_DetectorParameters
SKIP:void cv::QRCodeDetectorAruco::setArucoParameters(aruco_DetectorParameters params)	 due to ARG type aruco_DetectorParameters/I
SKIP:void cv::aruco::ArucoDetector::write(FileStorage fs, String name)	 due to ARG type FileStorage/I
SKIP:void cv::aruco::ArucoDetector::read(FileNode fn)	 due to ARG type FileNode/I
SKIP:bool cv::aruco::DetectorParameters::readDetectorParameters(FileNode fn)	 due to ARG type FileNode/I
SKIP:bool cv::aruco::DetectorParameters::writeDetectorParameters(FileStorage fs, String name = String())	 due to ARG type FileStorage/I
SKIP:bool cv::aruco::Dictionary::readDictionary(FileNode fn)	 due to ARG type FileNode/I
SKIP:void cv::aruco::Dictionary::writeDictionary(FileStorage fs, String name = String())	 due to ARG type FileStorage/I
SKIP:bool cv::aruco::RefineParameters::readRefineParameters(FileNode fn)	 due to ARG type FileNode/I
SKIP:bool cv::aruco::RefineParameters::writeRefineParameters(FileStorage fs, String name = String())	 due to ARG type FileStorage/I
Objective-C: Processing OpenCV modules: 10
Generated files: 369 (updated 369)

PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.build/Debug-iphoneos/ZERO_CHECK.build/Script-D80FDD97698913B01F11BB53.sh (in target 'ZERO_CHECK' from project 'OpenCV')
    cd ~/Desktop/openCV/source/opencv
    /bin/sh -c ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/OpenCV.build/Debug-iphoneos/ZERO_CHECK.build/Script-D80FDD97698913B01F11BB53.sh
make: `~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/CMakeFiles/cmake.check_cache' is up to date.

CompileC ~/Desktop/openCV/source/ios/build/build-arm64-iphoneos/3rdparty/zlib/OpenCV.build/Debug-iphoneos/zlib.build/Objects-normal/arm64/trees.o ~/Desktop/openCV/source/opencv/3rdparty/zlib/trees.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'zlib' from project 'OpenCV')
...............
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'opencv2')
** BUILD SUCCEEDED **

After compiling, I got opencv2.framework,that can be used on the iOS platform,and then I use it to recognize the QR code , But I found that it cannot recognize the QR code with white and black background.

qrcode Pic address: https://github.com/pei625569/pictures/blob/master/qrcode_white.png?raw=true

Steps to reproduce
Issue submission checklist
  • [x] I report the issue, it's not a question
  • [x] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • [x] I updated to the latest OpenCV version and the issue is still there
  • [x] There is reproducer code and related data files: videos, images, onnx, etc

pei625569 avatar Jun 18 '23 06:06 pei625569

I use the following code to realize QR code recognition:

    NSString *detector_prototxt_path = [bundle pathForResource:@"detect" ofType:@"prototxt"];
    NSString *detector_caffe_model_path = [bundle pathForResource:@"detect" ofType:@"caffemodel"];
    NSString *super_resolution_prototxt_path = [bundle pathForResource:@"sr" ofType:@"prototxt"];
    NSString *super_resolution_caffe_model_path = [bundle pathForResource:@"sr" ofType:@"caffemodel"];
    _detector = cv::makePtr<cv::wechat_qrcode::WeChatQRCode>(detector_prototxt_path.UTF8String, detector_caffe_model_path.UTF8String, super_resolution_prototxt_path.UTF8String, super_resolution_caffe_model_path.UTF8String);

than,the AVCaptureVideoDataOutputSampleBufferDelegate callback:

- (void)captureOutput:(AVCaptureOutput *)output didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection {
    CVImageBufferRef imgBuf = CMSampleBufferGetImageBuffer(sampleBuffer);
    CVPixelBufferLockBaseAddress(imgBuf, 0);
    void *imgBufAddr = CVPixelBufferGetBaseAddressOfPlane(imgBuf, 0);
    int w = (int)CVPixelBufferGetWidth(imgBuf);
    int h = (int)CVPixelBufferGetHeight(imgBuf);
    cv::Mat mat(h, w, CV_8UC4, imgBufAddr, 0);
    cv::Mat transMat;
    cv::transpose(mat, transMat);
    cv::Mat flipMat;
    cv::flip(transMat, flipMat, 1);
    CVPixelBufferUnlockBaseAddress(imgBuf, 0);
    NSTimeInterval start = CACurrentMediaTime();
    std::vector<cv::Mat> points;
    std::vector<std::string> res = self.detector->detectAndDecode(flipMat, points);
}

pei625569 avatar Jun 18 '23 06:06 pei625569