Web Application to identify LEGO sets

Is it possible to write an algorithm to sort LEGO?

Building on from the Java based application I aimed to create a web based application of my system in the hopes of one day deploying it online for ease of use

This version of the system is built using React.js for the front end and a back end built with Spring Boot.

Structure of final system

Testing

To test the system I used a small bag of parts from an unsorted box, I had previously analysed these parts and believe them to have 3 distinct sets

The parts in the Yellow box I believe to have come from the Legends of Chima set “Gorzan’s Gorilla Striker”. The parts surrounded in red I think match to the Ninjago set “Warrior Bike” and the Dark Blue parts I have guessed came from another Ninjago set, “Cole’s Earth Driller”. The light blue parts do not match with any other parts in the bag and are also each in a large number of sets. Therefore not able to identify any other sets.