Back to Tensorflow

tflite_support.metadata_schema_py_generated.ImageProperties

tensorflow/lite/g3doc/api_docs/python/tflite_support/metadata_schema_py_generated/ImageProperties.md

2.21.03.5 KB
Original Source

page_type: reference

<link rel="stylesheet" href="/site-assets/css/style.css"> <!-- DO NOT EDIT! Automatically generated file. --> <div itemscope itemtype="http://developers.google.com/ReferenceObject"> <meta itemprop="name" content="tflite_support.metadata_schema_py_generated.ImageProperties" /> <meta itemprop="path" content="Stable" /> <meta itemprop="property" content="ColorSpace"/> <meta itemprop="property" content="DefaultSize"/> <meta itemprop="property" content="GetRootAs"/> <meta itemprop="property" content="GetRootAsImageProperties"/> <meta itemprop="property" content="ImagePropertiesBufferHasIdentifier"/> <meta itemprop="property" content="Init"/> </div>

tflite_support.metadata_schema_py_generated.ImageProperties

<!-- Insert buttons and diff --> <table class="tfo-notebook-buttons tfo-api nocontent" align="left"> <td> <a target="_blank" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L390-L427">
View source on GitHub
</a> </td> </table> <!-- Placeholder for "Used in" -->

Methods

<h3 id="ColorSpace"><code>ColorSpace</code></h3>

<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L413-L417">View source</a>

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>ColorSpace() </code></pre> <h3 id="DefaultSize"><code>DefaultSize</code></h3>

<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L420-L427">View source</a>

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>DefaultSize() </code></pre> <h3 id="GetRootAs"><code>GetRootAs</code></h3>

<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L393-L398">View source</a>

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>@classmethod</code> <code>GetRootAs( buf, offset=0 ) </code></pre> <h3 id="GetRootAsImageProperties"><code>GetRootAsImageProperties</code></h3>

<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L400-L403">View source</a>

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>@classmethod</code> <code>GetRootAsImageProperties( buf, offset=0 ) </code></pre>

This method is deprecated. Please switch to GetRootAs.

<h3 id="ImagePropertiesBufferHasIdentifier"><code>ImagePropertiesBufferHasIdentifier</code></h3>

<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L404-L406">View source</a>

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>@classmethod</code> <code>ImagePropertiesBufferHasIdentifier( buf, offset, size_prefixed=False ) </code></pre> <h3 id="Init"><code>Init</code></h3>

<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L409-L410">View source</a>

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>Init( buf, pos ) </code></pre>