Methods To Sense The 3D Surface/Structure Of A Book

DIY Book Scanner Skunk Works. Share your crazy ideas and novel approaches. Home of the "3D structure of a book" thread.

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby Anonymous1 » 21 Feb 2011, 21:31

And with a little GIMP magic, I corrected for the lens distortion beforehand, so the results look even better than before:
canvas.png
Correction for radial distortion helps a lot.
canvas.png (691.3 KiB) Viewed 564 times


That keystoning on the top is due to the camera's position. It's not perfectly centered (that's basically impossible to do), so I'll have to live with it. I think BSW could correct these really quickly, as I am not going to make a complete remake of ST in Python (although I have made a page splitter with OpenCV, which works fairly well).
Anonymous1
 

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby steve1066d » 21 Feb 2011, 22:13

Very cool.. I'm in the process of getting OpenCV installed on my linux system to give it a spin.
Steve Devore
BookScanWizard, a flexible book post-processor.
steve1066d
 
Posts: 236
Joined: 27 Nov 2010, 02:26
Location: Minneapolis, MN

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby steve1066d » 22 Feb 2011, 00:02

Anonymous,

I've taken a good look at your code, and I like your approach (as much as I can figure out anyways).

Could you add some comments to your code? I'm going to try to move some of that into java, but since I don't know much about OpenCV, Python or the math involved, I'm at a bit of a disadvantage as I try to follow it :)
Steve Devore
BookScanWizard, a flexible book post-processor.
steve1066d
 
Posts: 236
Joined: 27 Nov 2010, 02:26
Location: Minneapolis, MN

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby Anonymous1 » 22 Feb 2011, 01:36

I've added tons of comments. My commit should show up in a minute or so.
Anonymous1
 

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby Gerard » 22 Feb 2011, 03:26

hi maybe a photo slide projector http://www.instructables.com/id/Photo-s ... patches-t/ could be more flexible way to project lines, qr-codes or grids on the book
or an mini led beamer
User avatar
Gerard
 
Posts: 153
Joined: 17 Oct 2010, 07:15
Location: Berlin (Germany)

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby U235 » 22 Feb 2011, 10:25

Hi everybody.
I have easy idea 3D surface reconstruction. No lasers.
drawing_u235.jpg

P.S.
Sorry, i've got some problems with my English.
U235
 
Posts: 2
Joined: 22 Feb 2011, 09:30
Location: Russia

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby daniel_reetz » 22 Feb 2011, 11:10

Hey U235, that is a cool idea. It resembles an idea that Spamsickle proposed before, except that he suggested to have two cameras looking at the edge of the book. With your method, you would only need one camera, and the mirrors could fold flat.

I think the same software that we are writing for the laser method could be adapted to this method.

Thanks for sharing your idea. Don't worry about your English here.
User avatar
daniel_reetz
 
Posts: 2485
Joined: 03 Jun 2009, 13:56

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby daniel_reetz » 22 Feb 2011, 11:11

Also, Gerard, I bought one of those laser grid projectors you mentioned earlier... I'll post my results with it soon, I hope.
User avatar
daniel_reetz
 
Posts: 2485
Joined: 03 Jun 2009, 13:56

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby steve1066d » 22 Feb 2011, 11:58

Anonymous,

Thanks for the comments. It definitely helped clarify a few things.

I'm going to combine our two approaches. I'm going to use the 3d model approach that you are using, but do it backwards. By converting the source image to a bunch of small plane segments, then determining which plane segment intersects the line that passes through the camera to the destination pixel, I should be able to get the source location accurately.

Using the source warp has advantage that you can use interpolation to keep things smooth.

FYI, here's my existing code. I probably won't have time to work on this for a couple of days:
https://bookscanwizard.svn.sourceforge.net/svnroot/bookscanwizard/src/net/sourceforge/bookscanwizard/dewarp/LaserUnwarp.java
Steve Devore
BookScanWizard, a flexible book post-processor.
steve1066d
 
Posts: 236
Joined: 27 Nov 2010, 02:26
Location: Minneapolis, MN

Re: Methods To Sense The 3D Surface/Structure Of A Book

Postby daniel_reetz » 22 Feb 2011, 13:56

Atarkri, Steve, Anonymous,

I mailed your systems this morning. Unfortunately, I had to use the real post office instead of my shipping system because my laptop died. I hate the post office! The cost of shipping was almost as much as building the things themselves, and they are not "guaranteed" to arrive until 3/1. I'm only complaining because my own shipping system apparently has a steep discount relative to shipping in the office itself. I apologize for taking so long in getting these things out.

That said, I'm glad that there's some hardware winging your way and I hope it works well. Steve and Atarkri's units are CHDK compatible, and Anonymous's has a 3.5mm stereo jack (and cable) with the ground and tip connected to the second switch. All are powered purely on AC and don't need any batteries.
User avatar
daniel_reetz
 
Posts: 2485
Joined: 03 Jun 2009, 13:56

PreviousNext

Return to R&D and New Technologies

Who is online

Users browsing this forum: No registered users and 0 guests