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

<ul dir="auto">
<li>OpenCV =&gt;  2.4.11</li>
<li>Operating System / Platform =&gt;Windows 64 Bit</li>
<li>Compiler =&gt; python</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">Much thanks to anyone who may help,</p>
<p dir="auto">I am using the cv2.findcirclesgrid() in python script to detect the centers of images of calibration board, but the results appear to be existing a shift between the detected centers and visual  centers(from my own point of view). As follows:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44866138/56272117-a66b0e80-612c-11e9-8902-2eb719aa09bd.png"><img src="https://user-images.githubusercontent.com/44866138/56272117-a66b0e80-612c-11e9-8902-2eb719aa09bd.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I checked the blob detector this morning, it successfully extracted the circles in my pictures. So maybe this shift is not because of the blob parameters(I think so). As follows:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44866138/56272236-e03c1500-612c-11e9-8ecb-4f326bce3f5c.jpg"><img src="https://user-images.githubusercontent.com/44866138/56272236-e03c1500-612c-11e9-8ecb-4f326bce3f5c.jpg" alt="checkedImg0" style="max-width: 100%;"></a></p>
<p dir="auto">Anyhow, I wonder:</p>
<ol dir="auto">
<li>Whether this should happen? apparent bias of extracted centers between real position.</li>
<li>If the answer is 'it should not be like this', then what should I do?</li>
</ol>
<h5 dir="auto">Steps to reproduce</h5>

<p dir="auto">here is my code in python, appreciation for any information you may supply to me<br>
<a href="https://github.com/opencv/opencv/files/3088604/findCircleGridAsymmetric.txt">findCircleGridAsymmetric.txt</a></p>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.2.0-dev <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/5265db82c7ed0880117634cc723ed1bc91333b1b/hovercard" href="https://github.com/opencv/opencv/commit/5265db82c7ed0880117634cc723ed1bc91333b1b"><tt>5265db8</tt></a></li>
<li>Operating System / Platform =&gt; Windows 10 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">I have a Caffe model with <a href="https://caffe.berkeleyvision.org/tutorial/layers/slice.html" rel="nofollow"><code class="notranslate">Slice</code></a> layers. However, I'm not able to access the "implicit" outputs of the layer.</p>
<h5 dir="auto">Steps to reproduce</h5>

<p dir="auto">Here is a MWE:</p>
<p dir="auto">Model definition and weights: <a href="https://github.com/BVLC/caffe/tree/master/models/bvlc_reference_caffenet">https://github.com/BVLC/caffe/tree/master/models/bvlc_reference_caffenet</a></p>
<p dir="auto">By adding a Slice layer after the final <code class="notranslate">prob</code> layer:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="layer {
  name: &quot;split&quot;
  type: &quot;Slice&quot;
  bottom: &quot;prob&quot;
  top: &quot;out1&quot;
  top: &quot;out2&quot;
  slice_param {
    axis: 1
    slice_point: 100
  }
}"><pre class="notranslate"><code class="notranslate">layer {
  name: "split"
  type: "Slice"
  bottom: "prob"
  top: "out1"
  top: "out2"
  slice_param {
    axis: 1
    slice_point: 100
  }
}
</code></pre></div>
<p dir="auto">the outputs <code class="notranslate">out1</code> / <code class="notranslate">out2</code> can be accessed in Caffe by</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net.forward()['out1']"><pre class="notranslate"><code class="notranslate">net.forward()['out1']
</code></pre></div>
<p dir="auto">In OpenCV, though, I got the error:<br>
<code class="notranslate">OpenCV(4.2.0-dev) Error: Unspecified error (Requested layer "out1" not found) in cv::dnn::dnn4_v20191202::Net::Impl::getLayerData, file C:\src\opencv\modules\dnn\src\dnn.cpp, line 1473</code><br>
with the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net = cv::dnn::readNetFromCaffe(&quot;deploy.prototxt&quot;, &quot;bvlc_alexnet.caffemodel&quot;);
net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);
cv::Mat blob, img = cv::imread(&quot;examples/images/cat.jpg&quot;);
cv::dnn::blobFromImage(img, blob, 1, cv::Size(227, 227), cv::Scalar(104, 117, 123), false/*swapRB*/, false/*crop*/);
net.setInput(blob, &quot;data&quot;);
cv::Mat detection = net.forward(&quot;out1&quot;);"><pre class="notranslate"><code class="notranslate">net = cv::dnn::readNetFromCaffe("deploy.prototxt", "bvlc_alexnet.caffemodel");
net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);
cv::Mat blob, img = cv::imread("examples/images/cat.jpg");
cv::dnn::blobFromImage(img, blob, 1, cv::Size(227, 227), cv::Scalar(104, 117, 123), false/*swapRB*/, false/*crop*/);
net.setInput(blob, "data");
cv::Mat detection = net.forward("out1");
</code></pre></div>
<p dir="auto">Note:</p>
<ul dir="auto">
<li>There is no problem executing <code class="notranslate">net.forward("prob")</code>.</li>
<li>Both on CPU and CUDA backend.</li>
</ul>
<p dir="auto">I'm not sure if this is a bug or not. <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></p>