question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

text-recognition-0012 processing error

See original GitHub issue
import cv2

tr = cv2.dnn.readNet('./text-recognition-0012.xml', 'text-recognition-0012.bin')
img = cv2.imread('word.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
blob_r = cv2.dnn.blobFromImage(gray, 1, (120, 32))
tr.setInput(blob_r)
tr.forward()

Above code produces an error: >>> op_inf_engine.cpp:555: error: (-215:Assertion failed) Failed to initialize Inference Engine backend: Incorrect number of input edges for layer shadow/Squeeze in function 'initPlugin'

OpenCV 4.0.1 Inference Engine 2018.R5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
snosov1commented, Mar 27, 2019

Yeah, for both models you should wait for the upcoming R1 release (should be posted this or next week). Sorry for the inconvenience.

0reactions
banderlogcommented, May 8, 2019

On OpenCV ‘4.1.0-dev’ with 2019_R1_0.1 all is ok

Read more comments on GitHub >

github_iconTop Results From Across the Web

text-recognition-0012 processing error · Issue #62 - GitHub
I have met a similar problem when I was using "vehicle-detection-adas-binary-0001"model. cv2.error: OpenCV(4.0.1-openvino) /home/jenkins ...
Read more >
dexter - Luxonis
I have been looking for a device to offload networks that aren't directly connected to a camera for added processing power. First I...
Read more >
Model Downloader and other automation tools
When running the model downloader with Python 3.5.x on macOS, you may encounter an error similar to the following: requests.exceptions.SSLError: [.
Read more >
Re:DL Workbench inference with single channel Network
Hi Niclas, Apologies for the delayed response. I've tested further using grayscale images with text-recognition-0012 and found an issue with ...
Read more >
Intel Neural Compute Stick 2 - Review - element14 Community
Processor: Intel Movidius Myriad X Vision Processing Unit (VPU) 4GB; Processor Base Frequency: ... Error Code: MEDIA_ERR_SRC_NOT_SUPPORTED.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found