Answers.Body: <p>I am not aware of any open public databases, but it might be worth contacting <a href="http://peeron.com" rel="noreferrer">Peeron</a> and <a href="http://bricklink.com" rel="noreferrer">BrickLink</a> to see if they would grant access to their libraries of user submitted photos of parts. I have no idea if either of them would actually grant the access, but it couldn't hurt to ask either.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-11T14:24:57.773Z
Answers.LastActivityDate: 2021-06-11T14:24:57.773Z
Answers.UserDisplayName: Nathan Stohlmann
Body: <p>I'm working on an app to identify LEGO elements from a photo using machine learning. I've completed a crude <a href="https://github.com/jncraton/brick-classifier" rel="nofollow noreferrer">prototype</a> that only supports the most common 10 elements.</p>
  <p>I'm currently rendering images for the dataset using LeoCAD, but this isn't ideal, as I'd like the training data to look as much like real-world photos as possible to improve accuracy. I'm aware that I could get better renders using Blender or other tools, but that wouldn't provide all the elements of real photos (odd backgrounds, shadows, poor lighting, etc).</p>
  <p>Is there an open dataset of LEGO part photos suitable for machine learning applications? I'm aware of a <a href="https://www.kaggle.com/joosthazelzet/lego-brick-images" rel="nofollow noreferrer">Kaggle dataset</a>, but it uses renders rather than photos. I'm also aware of a couple of folks (<a href="https://twitter.com/JustASquid" rel="nofollow noreferrer">Daniel West</a> and <a href="https://jacquesmattheij.com/sorting-lego-many-questions-and-this-is-what-the-result-looks-like/" rel="nofollow noreferrer">Jacques Mattheij</a>) who have used a dataset like the one I'm looking for, but I believe they <a href="https://towardsdatascience.com/how-i-created-over-100-000-labeled-lego-training-images-ec74191bb4ef" rel="nofollow noreferrer">created it themselves</a> and did not share it for public use.</p>
  <p>Update:</p>
  <p>I've heard from both Daniel and Jacques. Daniel's dataset has already been exclusively licensed. Jacques wouldn't be easy to generalize due the optics used (mirrors to capture multiple angles), and has already been deleted.</p>
  <p>Update 2:</p>
  <p>There is now a <a href="https://www.kaggle.com/datasets/ronanpickell/b200c-lego-classification-dataset" rel="nofollow noreferrer">larger rendered dataset on Kaggle</a>.</p>
  
Tags: <part-database>
Title: Is there an open dataset of LEGO part photos suitable for machine learning?
UserDisplayName: jncraton
ThreadText: # Is there an open dataset of LEGO part photos suitable for machine learning?
  
  (Asked by: username_0 on 2021-06-11)
  
  I'm working on an app to identify LEGO elements from a photo using machine learning. I've completed a crude [prototype](https://github.com/jncraton/brick-classifier) that only supports the most common 10 elements.
  
  I'm currently rendering images for the dataset using LeoCAD, but this isn't ideal, as I'd like the training data to look as much like real-world photos as possible to improve accuracy. I'm aware that I could get better renders using Blender or other tools, but that wouldn't provide all the elements of real photos (odd backgrounds, shadows, poor lighting, etc).
  
  Is there an open dataset of LEGO part photos suitable for machine learning applications? I'm aware of a [Kaggle dataset](https://www.kaggle.com/joosthazelzet/lego-brick-images), but it uses renders rather than photos. I'm also aware of a couple of folks ([Daniel West](https://twitter.com/JustASquid) and [Jacques Mattheij](https://jacquesmattheij.com/sorting-lego-many-questions-and-this-is-what-the-result-looks-like/)) who have used a dataset like the one I'm looking for, but I believe they [created it themselves](https://towardsdatascience.com/how-i-created-over-100-000-labeled-lego-training-images-ec74191bb4ef) and did not share it for public use.
  
  Update:
  
  I've heard from both Daniel and Jacques. Daniel's dataset has already been exclusively licensed. Jacques wouldn't be easy to generalize due the optics used (mirrors to capture multiple angles), and has already been deleted.
  
  Update 2:
  
  There is now a [larger rendered dataset on Kaggle](https://www.kaggle.com/datasets/ronanpickell/b200c-lego-classification-dataset).
  
  **Tags:** part-database
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-06-11. Score: 5
  
  I am not aware of any open public databases, but it might be worth contacting [Peeron](http://peeron.com) and [BrickLink](http://bricklink.com) to see if they would grant access to their libraries of user submitted photos of parts. I have no idea if either of them would actually grant the access, but it couldn't hurt to ask either.
  
  
  ---
  
  