ODM icon indicating copy to clipboard operation
ODM copied to clipboard

OpenCV error when running odm_texturing

Open naktinis opened this issue 11 years ago • 14 comments

I'm running OpenDroneMap (simply run.pl without any parameters) on the "boruszyn_kap" sample data (https://github.com/OpenDroneMap/odm_data) and I get the following error:

<...>

  - running meshing - Wed Mar 25 15:59:58 GMT 2015

  - running texturing - Wed Mar 25 16:00:32 GMT 2015


OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /foo/code/opencv/modules/core/src/matrix.cpp, line 323
Error in OdmTexturing:
/foo/code/opencv/modules/core/src/matrix.cpp:323: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat

For more detailed information, see log file.


quitting cause: 
    "/foo/code/OpenDroneMap/bin/odm_texturing" -bundleFile /foo/programs/odm_data/boruszyn_kap/reconstruction-with-image-size-2400/pmvs/bundle.rd.out -imagesPath /foo/programs/odm_data/boruszyn_kap/ -imagesListPath /foo/programs/odm_data/boruszyn_kap/reconstruction-with-image-size-2400/pmvs/list.rd.txt -inputModelPath /foo/programs/odm_data/boruszyn_kap/reconstruction-with-image-size-2400-results/odm_mesh-0000.ply -outputFolder /foo/programs/odm_data/boruszyn_kap/reconstruction-with-image-size-2400-results/odm_texturing/ -textureResolution 4096 -bundleResizedTo 2400 -textureWithSize 3600 -logFile /foo/programs/odm_data/boruszyn_kap/reconstruction-with-image-size-2400/odm_texturing/odm_texturing_log.txt
returned with code 256

naktinis avatar Mar 25 '15 16:03 naktinis

What are the specs (memory, OS version) on your setup? See this as it may help:

https://github.com/OpenDroneMap/OpenDroneMap/issues/74

dbaldwin avatar Mar 25 '15 20:03 dbaldwin

Got the same error, but can provide some more infos:

CPU: AMD FX-8320 RAM: approx. 10GB

Linux Mint 17.1 (based on Ubuntu 14.04) 64-bit Kernel: 3.16.2

OpenCV Version: 2.4.8

Full log from run.pl: http://pastebin.com/X39ji9ES

Full log from "Texturing": http://pastebin.com/ehSD11MH

Memory and CPU usage (created with "sar -ru"): http://pastebin.com/uhUrdjhA

TL;DR: In the texturing step Memory occupation does not exceed 65%.

Fi156 avatar Apr 16 '15 13:04 Fi156

I got the same error, any solutions?

burakaydn avatar May 21 '15 09:05 burakaydn

Can you post your mesh and ply file?

smathermather avatar May 21 '15 17:05 smathermather

Log Files: odm_texturing_log.txt http://ge.tt/7CTxfqG2/v/0 odm_meshing_log.txt http://ge.tt/2p9NhqG2/v/0

ply file under results folder http://ge.tt/4tHQhqG2/v/0

I can't figure out with which file you mentioned as mesh, sorry.

burakaydn avatar May 21 '15 18:05 burakaydn

Ok, a couple things to try, but let's start with this one:

  1. Bring that ply into MeshLab and remove non-manifold edges. Save back out as a ply, and continue running ODM from the texturing step with run.pl --start-with odm_texturing.

smathermather avatar May 22 '15 02:05 smathermather

Same error :(

burakaydn avatar May 22 '15 10:05 burakaydn

Weird. Try rerunning with resize set to 1200.

smathermather avatar May 25 '15 17:05 smathermather

Actually, @burakaydn I should check -- are images named with a .JPG extension or lower case .jpg?

smathermather avatar May 26 '15 16:05 smathermather

lower case actually i showed Meshlab screen as proof of concept and its enough for me, thank you so much.

burakaydn avatar May 26 '15 19:05 burakaydn

I still wish I knew why it was causing you problems. I'll close the ticket, but may dive into this more when I get the chance.

smathermather avatar May 27 '15 02:05 smathermather

@burakaydn @smathermather I have got the same error, Could you give me some advice. Thank U.

SimFaris avatar Aug 15 '15 07:08 SimFaris

Just a quick update:

A fresh version of the python branch was pulled before.

Dataset: boruszyn_kap Started with --resize 1200 and Meshlab did not find any non-manifold edges.

Got the same error...

Other datasets are working fine.

Fi156 avatar Aug 28 '15 10:08 Fi156

maybe you can rotate the pic img_4909.jpg. good luck.

SimFaris avatar Oct 15 '15 00:10 SimFaris