Troubleshooting

Q: What are the values that can be set in inferenceoverlay property?

The inferenceoverlay element exposes the following properties to control the boxes’ thickness, color, etc. These properties are documented in the following table:

Property

Value

Description

font-scale

Double [0,100]

Scale of the font used on the overlay. 0 turns off the overlay

style

enum (0):classic, (1):dotted, (2):dashed

Line style of rectangle

thickness

Double [1,100]

Thickness in pixels used for the lines

Q: What to do to avoid “warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]” when compiling r2inference & gst-inference?

Edit r2inference/build/build.ninja or gst-inference/build/build.ninja for which library you choose to build. Add -O flag After -D_FORTIFY_SOURCE=2 for c_COMPILER rule (r²inference only has this) and cpp_COMPILER rule.