Draw Rectangle
Add-On Required: This feature requires the SoC Blockset Support Package for AMD FPGA and SoC Devices add-on.
Libraries:
Find this block in the YOLO v2 Vehicle Detector with Live Camera Input on
Zynq-Based Hardware example
Description
The Draw Rectangle block overlays a rectangle onto a video frame stored in external memory. For instance, you can use this block to display bounding boxes around identified objects. The block uses the processor-FPGA interface and the memory map for this reference design to read and modify the specified pixels in the frame.
You can use this block only once per model. Your design should provide the
points values and set valid to
true
once video frames are available in memory. The YOLO v2 Vehicle Detector with Live Camera Input on Zynq-Based Hardware (Vision HDL Toolbox) example shows how to use
this block in the postprocessing model that is targeted to the ARM® processor.
Examples
Limitations
To use this block, in the hardware setup, set Hardware Board to
Xilinx Zynq UltraScale+ MPSoC ZCU102 Evaluation Kit
and set Add-on Card toFMC-HDMI-CAM
.Use the IP core workflow to generate HDL code. This block does not support using the SoC Builder tool. For more information on workflows, see SoC Generation Workflows.
In the HDL Workflow Advisor tool, in step 1.1, set Target platform to
Xilinx Zynq Ultrascale+ MPSoC ZCU102 Evaluation Kit
. In step 1.2, set Reference design toRGB with DL Processor
.
Ports
Input
Parameters
Extended Capabilities
Version History
Introduced in R2023a