Fologram Docs

Get QR Codes

Get QR Codes

 
The Get QR Codes component returns a datatree of QR codes that have been detected by connected mixed reality devices. The datatree is structured such that branches define devices, and list indexes define codes tracked by that device. Detected codes are cached by the component and output even if not currently visible to the device. To return only currently visible codes, enable the filter on the component or Cull the output list based on the code Age parameter. The Deconstruct QR Code component returns:
  • Device - the device that detected the QR code.
  • Rectangle - a curve indicating the position, orientation and size of the QR Code.
  • Label - QR code data as text
  • Age - time in milliseconds since the QR Code was last detected by the device. Can be used to filter for only currently visible QR codes.
You can generate QR codes with dynamic labels using app.fologram.com/markers?qr=label,label2,label3 where the label for each code is separated by a comma. If you need to create large collections of codes (for instance to upgrade a definition that previously used Aruco markers) you can generate this string in Grasshopper using this example.
💡
QR code detection is affected by the code size, lighting, orientation to camera, code materiality, print margins and other factors. See this article for help with improving QR code detection.