Dear DAVID Community,

As you are probably aware, the entire DAVID company, team and product range has been integrated into HP Inc.
This forum is now read-only. Relevant content has been migrated to HP and merged into HP's Support Forums on November 1, 2016.

To start new discussions for 3D Scanning, please register and post your new topic at the HP Support Forums

Image grabber projection calibration failed

Problems, solutions and discussion about scanning with a video projector and stripe patterns.

Image grabber projection calibration failed

Postby vvs » Mon Dec 21, 2015 8:56 pm

Hello

I am using a Canon EOS 550D camera (supported by EDSSDK.dll) and the image grabber. When I calibrate the camera / projector using the live view, calibration works and I am able to do scans. I want to use the image grabber (and take photos through Lets Scan or my own tool) to get higher quality textures and scans. But I'm not able to get calibration to work. NOTE: the exact same setup calibrates fine under live view, but when I switch to Image grabber it does not work. Here are the images used for the image grabber:

https://drive.google.com/file/d/0B2aExW ... sp=sharing
https://drive.google.com/file/d/0B2aExW ... sp=sharing

Here is the error message:
"Projector calibration failed. Could not find a valid mapping between measured points and model parameters."

Here is the output from the debug console.
Image

Any ideas? I've spent a bit of time on this and not sure how to fix it.

Thank you very much.
vvs
 
Posts: 16
Joined: Sat Dec 19, 2015 3:42 am

Re: Image grabber projection calibration failed

Postby Curiousjeff » Mon Dec 21, 2015 9:12 pm

Yes, Image grabber is harder to calibrate then live view. Don't know why.

Have you looked at this video from Narmella ?

https://www.youtube.com/watch?v=HGImPTMMpq8

and this thread:

http://forum.david-3d.com/viewtopic.php?f=15&t=5708&p=27378

Are the images loading like in the video ?

Maybe you are not naming them correctly. See above.

If you still cannot calibrate, then provide more information:

Version of David
Setup horizontal, vertical or both
Number of patterns

Jeff
Panasonic GH4 4K with lens 12-35, Inogeni 4K to USB3 hdmi capture device, projectors: Acer K135/Acer K11/NEC V260X, Canon 60D, macro 60 mm, MagicLantern
Curiousjeff
 
Posts: 230
Joined: Fri Feb 27, 2015 2:17 pm
Location: Geneva, Swizerland

Re: Image grabber projection calibration failed

Postby Curiousjeff » Mon Dec 21, 2015 9:17 pm

Sven:

Camera Calibration image: filename should contain "cam_calib"


You don't have a file named like that !
Panasonic GH4 4K with lens 12-35, Inogeni 4K to USB3 hdmi capture device, projectors: Acer K135/Acer K11/NEC V260X, Canon 60D, macro 60 mm, MagicLantern
Curiousjeff
 
Posts: 230
Joined: Fri Feb 27, 2015 2:17 pm
Location: Geneva, Swizerland

Re: Image grabber projection calibration failed

Postby vvs » Mon Dec 21, 2015 10:19 pm

Hi Jeff

Thanks for the response. I saw Sven's thread earlier. I have actually used the exact save images sequence in that thread: cam_calib and image001 -> image00n, but it didn't make a difference. The folders I shared have the same image names as the "Save Pattern Sequence" option within David.
vvs
 
Posts: 16
Joined: Sat Dec 19, 2015 3:42 am

Re: Image grabber projection calibration failed

Postby vvs » Mon Dec 21, 2015 10:25 pm

One weird thing is that the Save Pattern Sequence images saved by David are different in number than the ones in Narmella's video. The save pattern sequence contains one calibration image, 22 pattern images, 1 setup, 1 white texture, 1 black texture. But Narmella's video contains 1 camera calibration, and 26 pattern images.
vvs
 
Posts: 16
Joined: Sat Dec 19, 2015 3:42 am

Re: Image grabber projection calibration failed

Postby Curiousjeff » Mon Dec 21, 2015 11:12 pm

The video is using 26 patterns (this is an adjustment in David: Speed, Default, Quality or your own configuration).

The video is using image grabber without texture.

From memory, I don't think the "setup" image should be loaded.
Panasonic GH4 4K with lens 12-35, Inogeni 4K to USB3 hdmi capture device, projectors: Acer K135/Acer K11/NEC V260X, Canon 60D, macro 60 mm, MagicLantern
Curiousjeff
 
Posts: 230
Joined: Fri Feb 27, 2015 2:17 pm
Location: Geneva, Swizerland

Re: Image grabber projection calibration failed

Postby vvs » Mon Dec 21, 2015 11:52 pm

I used the "Speed" setting which produces 22 patterns.
vvs
 
Posts: 16
Joined: Sat Dec 19, 2015 3:42 am

Re: Image grabber projection calibration failed

Postby vvs » Tue Dec 22, 2015 4:11 am

I managed to get calibration to succeed by positioning the camera and projector differently. Now when I try to scan, David crashes. Can a David developer please have a look? Using the latest version of David 4 (trial version). Here is the exception text:

Code: Select all
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at v3d.ClientWnd.WndFunc(⊎* , ⊺* , UInt32* , UInt32* , Int32* )
   at ⅇ.⇬.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
DAVID4_Win32
    Assembly Version: 0.0.0.0
    Win32 Version: 4.4.0.686
    CodeBase: file:///C:/Program%20Files%20(x86)/DAVID%203D%20SCANNER%204/DAVID4_Win32.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
PresentationFramework
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1063.1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
PresentationCore
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xaml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
Ookii.Dialogs.Wpf
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files%20(x86)/DAVID%203D%20SCANNER%204/Ookii.Dialogs.Wpf.DLL
----------------------------------------
PresentationFramework.Luna
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Luna/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Luna.dll
----------------------------------------
System.Deployment
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
AppUtils
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/DAVID%203D%20SCANNER%204/AppUtils.DLL
----------------------------------------
PresentationFramework-SystemXml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
----------------------------------------
PresentationFramework.Aero2
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
----------------------------------------
PresentationFramework-SystemData
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemData/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemData.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
WindowsFormsIntegration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
UIAutomationTypes
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
UIAutomationProvider
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


vvs
 
Posts: 16
Joined: Sat Dec 19, 2015 3:42 am

Re: Image grabber projection calibration failed

Postby vvs » Tue Dec 22, 2015 6:29 am

Fixed the crash by using 64 bit David. I think it crashed because 32 bit David ran out of memory
vvs
 
Posts: 16
Joined: Sat Dec 19, 2015 3:42 am


Return to Structured Light Scanning

Who is online

Users browsing this forum: No registered users and 1 guest

cron