QR Code image generator with customizable image formats, error correction levels, and styling options
{
"context": "This evaluation assesses how effectively an engineer uses the qrcode package's make_image() method and related configuration options to generate styled QR codes. The focus is on proper usage of the QRCode class, its configuration parameters, and the make_image() method with different image factories.",
"type": "weighted_checklist",
"checklist": [
{
"name": "QRCode instantiation",
"description": "Creates a QRCode instance using qrcode.QRCode() with appropriate configuration parameters",
"max_score": 15
},
{
"name": "Error correction level",
"description": "Correctly sets error_correction parameter to qrcode.constants.ERROR_CORRECT_H (high/30% recovery) when creating the QRCode instance",
"max_score": 15
},
{
"name": "Border configuration",
"description": "Correctly sets the border parameter to 5 modules when creating the QRCode instance",
"max_score": 10
},
{
"name": "Box size configuration",
"description": "Correctly sets the box_size parameter to 10 pixels when creating the QRCode instance",
"max_score": 10
},
{
"name": "Data addition",
"description": "Uses the add_data() method to add text data to the QRCode instance before generating the image",
"max_score": 10
},
{
"name": "QR compilation",
"description": "Calls the make() method with fit=True or appropriate parameters to compile the QR code data before image generation",
"max_score": 10
},
{
"name": "Custom colored images",
"description": "Uses make_image() method with fill_color and back_color parameters to generate PIL images with custom colors",
"max_score": 15
},
{
"name": "SVG image factory",
"description": "Uses make_image() method with image_factory parameter set to qrcode.image.svg.SvgPathImage (or similar SVG factory) to generate SVG output",
"max_score": 15
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10