News for hackers. Stuff that matters.
Re:Show HN: Sorting Two Metric Tons of Lego by jacquesm on Saturday April 29, 2017 @02:47PM (#14228064)
That 5% is based on a relatively small set of images that is expanding rapidly (4K or so per run), so I expect that error to get lower quickly. Also, these images are stitched and so are far from perfect, the colors are all over the map due to discoloration and so on. Then there are certain nasty aliasing effects where a part will look exactly like another part from the angles the camera can look at the part. This is fixable but will require (yet) another redesign of the optics.

Dropout is at .5 both for conv and connected layers.

All those things you mention have already been done and yet the error is as high as it is. But this does not surprise me at all, the difference is that the pre-trained models actually do very poorly on this dataset and so I'm having to train them up from scratch. That's getting there though, another week or two and I should be in the tens of thousands of images to train with and then life will get a lot easier.

Data augmentation works well and has been enabled right from the get-go.

I'll definitely do another write-up in a while about the software end of things, once it crystalizes to something a bit more stable, I'm still hacking on it daily.

I will post the training set at some point, first it needs to become large enough. But with the machine helping now that is getting there, rapidly.

Re:Show HN: Sorting Two Metric Tons of Lego by sorenjan on Saturday April 29, 2017 @07:13PM (#14229298)
> Also, these images are stitched and so are far from perfect

Maybe you could use a push broom scanner? I don't know if there's any hardware available for consumers, otherwise that seems ideal for a conveyor belt application.

Re:Show HN: Sorting Two Metric Tons of Lego by jacquesm on Saturday April 29, 2017 @07:42PM (#14229422)
This is a very rough equivalent of that. The area outside the stitched part is used to keep the belt synchronized if there are not parts in view, hence that wavy line on the belt in the video.
Re:Show HN: Sorting Two Metric Tons of Lego by grogenaut on Sunday April 30, 2017 @01:37AM (#14230282)
thoughts on tumbling/turning the parts on the belt once identified for more pictures? It wouldn't add anything to the sort speed but it'd get you way more pictures. Thinking of that machine that tumbled dice automatically. Does the addition/removal of the belt in the background come into the recognition? Otherwise in air shots from a tumble tower or belt with trip on it would get you a lot more images.
Re:Show HN: Sorting Two Metric Tons of Lego by jacquesm on Sunday April 30, 2017 @08:19AM (#14231203)
The belt movement is continuous, parts that do roll around on the belt are coming out crazily warped because in each image the belt has moved 3 to 5 mm and the part has moved the same but probably in a different direction than the one the belt is moving in. Those images are useless. This scheme would work if you could always get the parts out of a single frame on the camera but they're much too long for that (24 studs long is the maximum).
Re:Show HN: Sorting Two Metric Tons of Lego by grogenaut on Sunday April 30, 2017 @01:51PM (#14232842)
What cameras are you using? I couldn't see it very well in the writeup. Also thanks very much for this post it's very cool. You should cross post to hackaday blog.
Re:Show HN: Sorting Two Metric Tons of Lego by jacquesm on Sunday April 30, 2017 @02:31PM (#14233084)
http://aggregator.foolab.org/node/73382

> You should cross post to hackaday blog.

I post my own stuff on my own blog, I don't feel like making accounts in 20 different places. HN and Twitter are my exceptions.

Re:Show HN: Sorting Two Metric Tons of Lego by grogenaut on Sunday April 30, 2017 @03:42PM (#14233443)
I only mentioned them as they're very hardware focused.

So why micro imaging instead of macro?

I haven't done any of the nn cv stuff yet, can you pair different image sources of the same item?

Re:Show HN: Sorting Two Metric Tons of Lego by jacquesm on Sunday April 30, 2017 @07:26PM (#14234481)
> So why micro imaging instead of macro?

Because the details between some of the parts are only very minor and yet that can the difference between the part in its normal version or (for instance) its technic version.

> I haven't done any of the nn cv stuff yet, can you pair different image sources of the same item?

I took a chance on that and it seems to work. I just stack the images and present them as one larger image. Quite possibly that's 'wrong' and I should present the two images separately to two different nets which are then recombined at the end but this trick seems to work.

Re:Show HN: Sorting Two Metric Tons of Lego by grogenaut on Monday May 01, 2017 @12:44PM (#14239125)
Huh I would have tried a 20mp dslr with a nice lens instead figuring it could pick up the differences. You can get Canon ones for about $450 on cl with lenses now.

Good to know it worked on the composite. Thanks for the info!