I get the following error when running OpenCV via nodejs in a Docker container on GKE, but don't experience the issue when running the same container on my Mac.
在GKE上的Docker容器中通过nodejs运行OpenCV时出现以下错误,但在Mac上运行相同容器时没有遇到此问题。
Is this some sort of memory issue? Only the node process crashes.
这是某种内存问题吗?只有节点进程崩溃。
OpenCV Error: Bad argument (Invalid cascade pointer) in cvRunHaarClassifierCascadeSum, file /tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp, line 838 OpenCV Error: Bad argument (Invalid cascade pointer) in cvRunHaarClassifierCascadeSum, file /tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp, line 838 OpenCV Error: Null pointer (Hidden cascade has not been created. Use cvSetImagesForHaarClassifierCascade) in cvRunHaarClassifierCascadeSum, file /tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp, line 843 OpenCV Error: Bad argument (Invalid cascade pointer) in cvRunHaarClassifierCascadeSum, file /tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp, line 838 terminate called after throwing an instance of 'tbb::captured_exception' what(): /tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp:838: error: (-5) Invalid cascade pointer in function cvRunHaarClassifierCascadeSum
OpenCV错误:cvRunHaarClassifierCascadeSum中的错误参数(无效的级联指针),文件/tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp,第838行OpenCV错误:cvRunHaarClassifierCascadeSum中的错误参数(无效的级联指针),文件/ tmp / opencv-2.4.11 / modules / objdetect / src / haar.cpp,第838行OpenCV错误:cvRunHaarClassifierCascadeSum中的空指针(尚未创建隐藏级联。使用cvSetImagesForHaarClassifierCascade),文件/tmp/opencv-2.4.11/modules /objdetect/src/haar.cpp,第843行OpenCV错误:cvRunHaarClassifierCascadeSum中的错误参数(无效的级联指针),文件/tmp/opencv-2.4.11/modules/objdetect/src/haar.cpp,第838行终止后调用'tbb :: captured_exception'的实例what():/ tmp / opencv-2.4.11 / modules / objdetect / src / haar.cpp:838:错误:( - 5)函数cvRunHaarClassifierCascadeSum中的无效级联指针
1 个解决方案
#1
0
The issue was with the NodeJS library Faced. I used the Node OpenCV library instead.
问题出在NodeJS库Faced上。我使用的是Node OpenCV库。
#1
0
The issue was with the NodeJS library Faced. I used the Node OpenCV library instead.
问题出在NodeJS库Faced上。我使用的是Node OpenCV库。