Ask Your Question

zed961's profile - activity

2017-02-16 13:41:11 -0600 commented answer Background Subtraction problem

Hello Kevin, Thanks a lot for your fast reply.

I am mainly trying to detect any new object in the scene. I can use a neural network to detect every single object (car, humans, etc...) but i fear it's going to be costly as this requires a lot of data. For this reason i thought of identifying the background and any change in the background will be considered as an intruder or "change".

2017-02-16 12:10:35 -0600 asked a question Background Subtraction problem

Hello all,

I am trying to build a system that could identify changes in images taken every day (24h delay between each image). My approach was to use backgroundsubtractionMOG2 but it's failing when the weather changes dramatically (sunny to cloudy day) and learning the background is taking a lot of time.

Do you recommend any algorithm or method to solve this?

Thanks.

2017-02-06 05:44:56 -0600 asked a question Opencv extra modules error

I am trying to download opencv with its extra modules. I am on windows 7, using Cmake-gui for the setup and mingw32 as a compiler.

I exactly followed the github tutorial to add and configure the modules in Cmake-gui.

After setting up the extra module's path and hitting Configure, I get the following error:

CMake Error at opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:23 (ocv_download): Unknown CMake command "ocv_download". Call Stack (most recent call first): opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:51 (ocv_protobuf_download) opencv_contrib-3.2.0/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:30 (include) opencv_contrib-3.2.0/modules/dnn/CMakeLists.txt:35 (include) Blockquote Blockquote

The only thing i want from the entire library is the tracking module but this requires dnn which is the module giving the error.

How can i solve this?

2016-12-05 03:18:45 -0600 asked a question Loading large images - OpenCV Error: Insufficient memory

Hello all,

I am trying to read a large image in OpenCV & Qt 5.7 (32bit). This is the code I'm running:

#include <opencv2/opencv.hpp>

using namespace cv;

int main(int argc, char *argv[]){

    Mat mat = imread("C://Users//Z//Documents//test//3_dsm_ortho//2_mosaic//test_transparent_mosaic_group1.tif");
    return 0;
}

When I run it, I get the following error:

OpenCV Error: Insufficient memory (Failed to allocate 1116737892 bytes) in OutOfMemoryError

How can I read large images in OpenCV?

Bellow are additional information about my image & PC.

Image Specs

  • Size: 18806 x 19794
  • Bit Depth: 32
  • Memory size: 467 MB
  • Type: TIFF Image
  • Photometric Interpretation: RGB

PC Specs

  • RAM: 6GB
  • RAM used before running the code: 2.62 GB
  • 64 bit