Ask Your Question
0

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

asked 2019-03-10 10:20:57 -0600

jo-won gravatar image

code

https://github.com/Jo-won/BOW-Train/b...

OpenCV Error: Insufficient memory (Failed to allocate 1440004 bytes) in cv::OutOfMemoryError, file C:\build\2_4_winpack-build-win32-vc14\opencv\modules\core\src\alloc.cpp, line 52

-> this error was shown

In code, between line 407 and line 429, this error is blocking me. Somebody help me..

edit retag flag offensive close merge delete

Comments

btw: https://github.com/Jo-won/BOW-Train/b... : bowExtractor->getVocabulary().cols ?

berak gravatar imageberak ( 2019-03-11 02:44:57 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-11 02:14:32 -0600

berak gravatar image

updated 2019-03-11 04:42:59 -0600

  • 32bit
  • outdated opencv version
  • probably an old (weak) machine

you're running out of memory (bow / kmeans clustering is quite a memory hog)

obvious remedy: either try with less data, or buy a machine with a 64bit os and more memory...

edit flag offensive delete link more

Comments

sidenote: do you need rotation invariance ? using SURF or AKAZE with UPRIGHT flag will need only half of the feature space (64 instead of 128 floats)

berak gravatar imageberak ( 2019-03-11 02:40:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-03-10 10:20:57 -0600

Seen: 9,473 times

Last updated: Mar 11 '19