Once upon a time, LEGO made a digital camera for the LEGO Studios and Mindstorms line. Internally it's an old USB Logitech repackaged in a LEGO housing.

enter image description here

It could also be used with the old LEGO Mindstorms software, to do some very weak video recognition when connected to a PC.

Fast forward some years, and Mindstorms are much more powerful, and even have a USB port, which this camera can be attached to, as some people have done.

enter image description here

When used with ev3dev, it's even possible to take some low-res pictures with it using a CLI tool like fswebcam.

However, I'd like to use is a a webcam, and capture a constant video stream from it, so I can use it in competitions where only official LEGO parts are allowed. Seems easy enough, but I've so far been unsuccessful.

It seems that OpenCV doesn't support the camera, because it uses an unusual pixel format encoding. Has anyone found a good solution for capturing a constant video stream? Something better than repeatedly calling fswebcam and parsing the output file (which would be unnecessarily slow).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.