How can I extrude only the black part from a QR-code?

If you have a “crisp” image in BMP format. you can use this plugin to import it into SketchUp. As @DaveR points out, you will need to extrude each appropriate region after deleting the ones you don’t want. More discussion can be found here:

Here’s an example model created from a 1658 x 1658 QR code:

qr.skp (211.3 KB)

1 Like