<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; latest</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">See the code<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/opencv/opencv/blob/fa66c6b797416292e2c6befb60b34b6ba0420499/modules/core/include/opencv2/core/check.hpp#L137-L153">opencv/modules/core/include/opencv2/core/check.hpp</a>
    </p>
    <p class="mb-0 color-fg-muted">
        Lines 137 to 153
      in
      <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/fa66c6b797416292e2c6befb60b34b6ba0420499">fa66c6b</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L137" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="137"></td>
          <td id="LC137" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">ifndef</span> NDEBUG </td>
        </tr>

        <tr class="border-0">
          <td id="L138" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="138"></td>
          <td id="LC138" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheck</span>(<span class="pl-v">v, test_expr, msg</span>)  CV__CHECK_CUSTOM_TEST(_, <span class="pl-k">auto</span>, v, (test_expr), #v, #test_expr, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L139" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="139"></td>
          <td id="LC139" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckEQ</span>(<span class="pl-v">v1, v2, msg</span>)  CV__CHECK(_, EQ, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L140" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="140"></td>
          <td id="LC140" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckNE</span>(<span class="pl-v">v1, v2, msg</span>)  CV__CHECK(_, NE, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L141" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="141"></td>
          <td id="LC141" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLE</span>(<span class="pl-v">v1, v2, msg</span>)  CV__CHECK(_, LE, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L142" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="142"></td>
          <td id="LC142" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLT</span>(<span class="pl-v">v1, v2, msg</span>)  CV__CHECK(_, LT, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L143" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="143"></td>
          <td id="LC143" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGE</span>(<span class="pl-v">v1, v2, msg</span>)  CV__CHECK(_, GE, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L144" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="144"></td>
          <td id="LC144" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGT</span>(<span class="pl-v">v1, v2, msg</span>)  CV__CHECK(_, GT, <span class="pl-k">auto</span>, v1, v2, #v1, #v2, msg) </td>
        </tr>

        <tr class="border-0">
          <td id="L145" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="145"></td>
          <td id="LC145" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">else</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L146" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="146"></td>
          <td id="LC146" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheck</span>(<span class="pl-v">v, test_expr, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L147" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="147"></td>
          <td id="LC147" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckEQ</span>(<span class="pl-v">v1, v2, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L148" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="148"></td>
          <td id="LC148" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckNE</span>(<span class="pl-v">v1, v2, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L149" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="149"></td>
          <td id="LC149" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLE</span>(<span class="pl-v">v1, v2, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L150" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="150"></td>
          <td id="LC150" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckLT</span>(<span class="pl-v">v1, v2, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L151" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="151"></td>
          <td id="LC151" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGE</span>(<span class="pl-v">v1, v2, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L152" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="152"></td>
          <td id="LC152" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_DbgCheckGT</span>(<span class="pl-v">v1, v2, msg</span>)  <span class="pl-k">do</span> { } <span class="pl-k">while</span> (<span class="pl-c1">0</span>) </td>
        </tr>

        <tr class="border-0">
          <td id="L153" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="153"></td>
          <td id="LC153" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">endif</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">The following macros</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CV_DbgCheckTypeEQ
CV_DbgCheckDepthEQ
CV_DbgCheckChannelsEQ
CV_DbgCheckType
CV_DbgCheckDepth"><pre class="notranslate">CV_DbgCheckTypeEQ
CV_DbgCheckDepthEQ
CV_DbgCheckChannelsEQ
CV_DbgCheckType
CV_DbgCheckDepth</pre></div>
<p dir="auto">are missing.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/2534312/pipeline.zip">pipeline.zip</a><br>
I trained an object detection example model of pets by tensorflow (ubuntu 16.04 python 3.5 tensorflow 1.11.0).<br>
I am trying to convert is to opencv.<br>
I get the error<br>
Scales:            [0.25, 0.5, 1.0, 2.0]<br>
Aspect ratios:     [0.5, 1.0, 2.0]<br>
Width stride:      16.000000<br>
Height stride:     16.000000<br>
Features stride:   16.000000<br>
2018-10-31 12:34:02.608202: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying sort_by_execution_order<br>
Traceback (most recent call last):<br>
File "D:\TFS\LPR\IP\MAIN\SRC\PythonProjects\TensorFlow\UseModelZoo\tf_text_graph_faster_rcnn.py", line 228, in <br>
createFasterRCNNGraph(args.input, args.config, args.output)<br>
File "D:\TFS\LPR\IP\MAIN\SRC\PythonProjects\TensorFlow\UseModelZoo\tf_text_graph_faster_rcnn.py", line 56, in createFasterRCNNGraph<br>
assert(graph_def.node[0].op == 'Placeholder')<br>
AssertionError</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/2534318/faster_rcnn_resnet50_pets_shay.zip">faster_rcnn_resnet50_pets_shay.zip</a></p>