二维码的黑白主题是一个标准吗?

时间:2020-11-30 07:08:46

I'm developing a QR Code generator and would like to understand if it is okay to have a different color combination for the QRC image other than the black and white?

我正在开发一个二维码生成器,想知道除了黑白图像外,QRC图像是否可以有不同的颜色组合?

Will it cause any difference in the amount of data that can be stored or in the error correction levels?

它会在可存储的数据量或错误纠正级别上造成任何差异吗?

4 个解决方案

#1


7  

No hard and fast rules - you can have a QR code in other colours, provided the contrast between dark and light is sufficient to be interpreted. No difference in the amount of data that can be stored or any error correction possibility, just in the ability to separate dark from light in order to decode.

没有硬性和快速的规则——你可以有一个其他颜色的二维码,只要黑暗和光明的对比足够被解释。可以存储的数据量或任何错误校正的可能性,都没有区别,只是为了解码的能力。

#2


3  

Yes, you can use other colors. But black/white provides the best contrast and so you receive best results.

是的,你可以用其他颜色。但是黑色/白色是最好的对比,所以你会得到最好的结果。

#3


3  

A normal QR-Code-App (like Zxing) is converting the image into a greyscale image before scanning it for QR-Codes.
So you can use any color you want, just make sure the contrast between your colors is as strong as possible.

一个普通的qr - code应用程序(如Zxing)将图像转换为灰度图像,然后再扫描它以获取qr - code。所以你可以使用任何你想要的颜色,只要确保你的颜色之间的对比尽可能强烈。

#4


2  

Yes, you can use colors (see for instance the wikipedia article for QR Code), you may even round corners and do other artistic stuff with your QR code.

是的,你可以使用颜色(比如*上关于二维码的文章),你甚至可以用二维码圆角或者做其他艺术的事情。

You can store the same amount of data, but I suspect black and white gives you a bit better chance of working (as it gives the best contrast).

您可以存储相同数量的数据,但我怀疑黑白会给您更好的工作机会(因为它提供了最好的对比)。

#1


7  

No hard and fast rules - you can have a QR code in other colours, provided the contrast between dark and light is sufficient to be interpreted. No difference in the amount of data that can be stored or any error correction possibility, just in the ability to separate dark from light in order to decode.

没有硬性和快速的规则——你可以有一个其他颜色的二维码,只要黑暗和光明的对比足够被解释。可以存储的数据量或任何错误校正的可能性,都没有区别,只是为了解码的能力。

#2


3  

Yes, you can use other colors. But black/white provides the best contrast and so you receive best results.

是的,你可以用其他颜色。但是黑色/白色是最好的对比,所以你会得到最好的结果。

#3


3  

A normal QR-Code-App (like Zxing) is converting the image into a greyscale image before scanning it for QR-Codes.
So you can use any color you want, just make sure the contrast between your colors is as strong as possible.

一个普通的qr - code应用程序(如Zxing)将图像转换为灰度图像,然后再扫描它以获取qr - code。所以你可以使用任何你想要的颜色,只要确保你的颜色之间的对比尽可能强烈。

#4


2  

Yes, you can use colors (see for instance the wikipedia article for QR Code), you may even round corners and do other artistic stuff with your QR code.

是的,你可以使用颜色(比如*上关于二维码的文章),你甚至可以用二维码圆角或者做其他艺术的事情。

You can store the same amount of data, but I suspect black and white gives you a bit better chance of working (as it gives the best contrast).

您可以存储相同数量的数据,但我怀疑黑白会给您更好的工作机会(因为它提供了最好的对比)。