/home/pi/opencv_contrib-4.4.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:44: error: template argument 2 is invalid
[100%] Built target example_tutorial_Remap_Demo
[100%] Built target example_tutorial_Sobel_Demo
[100%] Built target example_tutorial_filter2D_demo
[100%] Built target example_tutorial_imageSegmentation
[100%] Built target example_tutorial_generalContours_demo2
[100%] Built target example_tutorial_houghcircles
[100%] Built target example_tutorial_camshift
[100%] Built target example_tutorial_LATCH_match
[100%] Built target example_tutorial_file_input_output
[100%] Built target example_tutorial_HoughLines_Demo
[100%] Built target example_tutorial_compareHist_Demo
[100%] Built target example_tutorial_hull_demo
[100%] Built target example_tutorial_Drawing_2
[100%] Built target example_tutorial_cornerDetector_Demo
[100%] Built target example_tutorial_cornerHarris_Demo
[100%] Built target example_tutorial_goodFeaturesToTrack_Demo
[100%] Built target example_tutorial_how_to_scan_images
[100%] Built target example_cpp_image_alignment
[100%] Built target example_tutorial_SURF_FLANN_matching_homography_Demo
[100%] Built target example_tutorial_AddingImages
/home/pi/opencv-4.4.0/modules/python/src2/cv2.cpp: In instantiation of ‘bool pyopencv_to(PyObject*, T&, const ArgInfo&) [with T = cv::line_descriptor::KeyLine; PyObject = _object]’:
/home/pi/opencv-4.4.0/modules/python/src2/cv2.cpp:1464:24: required from ‘bool pyopencv_to_generic_vec(PyObject*, std::vector<_Tp>&, const ArgInfo&) [with _Tp = cv::line_descriptor::KeyLine; PyObject = _object]’
/home/pi/opencv_contrib-4.4.0/modules/line_descriptor/misc/python/pyopencv_LSDDetector.hpp:7:56: required from here
/home/pi/opencv-4.4.0/modules/python/src2/cv2.cpp:71:94: error: ‘to’ is not a member of ‘PyOpenCV_Converter<cv::line_descriptor::KeyLine, void>’
71 | bool pyopencv_to(PyObject* obj, T& p, const ArgInfo& info) { return PyOpenCV_Converter::to(obj, p, info); }
| ~~~~~~~~~~~~~~^
/home/pi/opencv-4.4.0/modules/python/src2/cv2.cpp: In instantiation of ‘PyObject* pyopencv_from(const T&) [with T = cv::line_descriptor::KeyLine; PyObject = _object]’:
/home/pi/opencv-4.4.0/modules/python/src2/cv2.cpp:1476:39: required from ‘PyObject* pyopencv_from_generic_vec(const std::vector<_Tp>&) [with _Tp = cv::line_descriptor::KeyLine; PyObject = _object]’
/home/pi/opencv_contrib-4.4.0/modules/line_descriptor/misc/python/pyopencv_LSDDetector.hpp:12:47: required from here
/home/pi/opencv-4.4.0/modules/python/src2/cv2.cpp:74:75: error: ‘from’ is not a member of ‘PyOpenCV_Converter<cv::line_descriptor::KeyLine, void>’
74 | PyObject* pyopencv_from(const T& src) { return PyOpenCV_Converter::from(src); }
| ~~~~~~~~~~~~~~~~~~~~~~~^
make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:82: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:16838: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
make: *** [Makefile:182: all] Error 2
Hello community!! I’m new here nice to meet you. So I try to download opencv it reaches around 100% and then said make: *** [Makefile:163: all] Error 2, so I use the code make -j $(nproc), but it still said the same thing so I try to redo it several times but the result is still the same, what could I have done wrong? This is where I found the instruction Object and Animal Recognition With Raspberry Pi and OpenCV - Tutorial Australia