ГОСТ Р 70268.2—2022
5.2.2 Кодирование ограничивающего прямоугольника
Ограничивающие прямоугольники — самый простой механизм пространственной аннотации субъ
екта сбора биометрических данных. Большая и малая оси должны быть параллельны осям изобра
жения. Ограничивающие прямоугольники должны быть закодированы в соответствии со схемой XSD,
приведенной на рисунке 1.
<xs:import namespace="
https://tk098.ru/gostr/58668/-3
"
schemaLocation="gostr-58668-3-ed-l-vl.xsd" />
<xs:element name="regionData" type="RegionType">
<xs:annotation>
<xs:documentation> </xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="RegionType">
<xs:sequence>
<xs:element name="bounding" type="BoundingType" />
<xs:element name="objectClass" type="ObjectClassType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BoundingType">
<xs:choice>
<xs:element name="boundingBox" type="BoundingBoxType" />
<xs:element name="boundingPolygon" type="BoundingPolygonType" />
</xs:choice>
</xs:complexType>
<xs:complexType name="BoundingBoxType">
<xs:sequence>
<xs:element name="boundingBoxCoordinates" type="BoundingBoxCoordinatesType" />
<xs:element name="localisationMethod" type="LocalisationMethodType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BoundingBoxCoordinatesType">
<xs:sequence>
<xs:element name="leftTopCoordinates" type="CartesianCoordinateType"/>
<xs:element name="boxWidth" type="xs:unsignedInt"/>
<xs:element name="boxHeight" type="xs:unsignedInt"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CartesianCoordinateType">
<xs:sequence>
<xs:element
name="x"
type="xs:int"/>
<xs:element
name="y"
type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CartesianCoordinateListType">
<xs:sequence>
<xs:element name="cartesianCoordinate" type="CartesianCoordinateType" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
3