Tôi muốn đánh giá hộp kiểm được chọn hay không từ hình ảnh được quét. Tôi đã tìm thấy mô-đun nút như node-dv và node-fv cho điều này. Nhưng khi cài đặt này tôi nhận được lỗi sau trên mac.Đánh giá hộp kiểm từ hình ảnh được quét trong hộp thoại node.js
../deps/opencv/modules/core/src/arithm1.cpp:444:51: error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'int' [-Wc++11-narrowing]
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
^~~~~~~~~~
../deps/opencv/modules/core/src/arithm1.cpp:444:51: note: insert an explicit cast to silence this issue
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
^~~~~~~~~~
static_cast<int>()
../deps/opencv/modules/core/src/arithm1.cpp:444:75: error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'int' [-Wc++11-narrowing]
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
^~~~~~~~~~
../deps/opencv/modules/core/src/arithm1.cpp:444:75: note: insert an explicit cast to silence this issue
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
^~~~~~~~~~
static_cast<int>()
2 errors generated.
make: *** [Release/obj.target/libopencv/deps/opencv/modules/core/src/arithm1.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/entapzian/.nvm/versions/node/v4.3.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
Phụ thuộc ở trên có phải là giải pháp tốt nhất cho vấn đề của tôi không? Nếu không xin vui lòng cho tôi một giải pháp tốt.
Are các hộp kiểm bên trong chính xác cùng một vị trí trong mỗi hình ảnh được quét? Nếu vậy, tôi rất sẵn lòng đăng một phương pháp đơn giản để xác định trạng thái của họ. – aecend
@aecend yeah hộp kiểm có cùng một mẫu trong tất cả các hình ảnh – azhar