<?xml version="1.0" encoding="UTF-8" ?>
<!--Generated by Turbo XML 2.3.0.100. Conforms to w3c http://www.w3.org/2001/XMLSchema-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:element name="InspectionFrame">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="FrameRegion" />
				<xsd:element ref="Base64Encoding" minOccurs="0" />
			</xsd:sequence>
			<xsd:attribute name="dateTime" use="required" type="xsd:timeInstant" />
			<xsd:attribute name="itemInstanceId" use="required" type="xsd:string" />
			<xsd:attribute name="sessionRef" use="required" type="xsd:string" />
			<xsd:attribute name="itemProcessRef" use="required" type="xsd:string" />
			<xsd:attribute name="imageId" type="xsd:string" />
			<xsd:attribute name="frameId" use="required" type="xsd:string" />
			<xsd:attribute name="frameStatus">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="PASSED" />
						<xsd:enumeration value="FAILED" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
			<xsd:attribute name="layer" use="required" type="xsd:string" />
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="FrameRegion">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="Orientation" minOccurs="0" />
			</xsd:sequence>
			<xsd:attribute name="point1X" use="required" type="xsd:double" />
			<xsd:attribute name="point1Y" use="required" type="xsd:double" />
			<xsd:attribute name="point2X" type="xsd:double" />
			<xsd:attribute name="point2Y" type="xsd:double" />
			<xsd:attribute name="diameter" type="xsd:double" />
			<xsd:attribute name="units" use="default" value="MM">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="MM" />
						<xsd:enumeration value="INCH" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
			<xsd:attribute name="decade" type="xsd:string" />
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="Orientation">
		<xsd:complexType>
			<xsd:attribute name="value" use="required" type="xsd:byte" />
			<xsd:attribute name="units" use="required">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="DEGREES" />
						<xsd:enumeration value="RADIANS" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="Base64Encoding">
		<xsd:complexType>
			<xsd:attribute name="name" use="required" type="xsd:string" />
			<xsd:attribute name="mimeType" use="required" type="xsd:string" />
			<xsd:attribute name="encoding" use="required" type="xsd:string" />
		</xsd:complexType>
	</xsd:element>
</xsd:schema>