Skip to content

Failed to parse NetParameter file: textbox.prototxt #1444

@protsenkovi

Description

@protsenkovi
System information (version)
  • OpenCV => 3.3
  • Operating System / Platform => CentOS 7.2
  • Python => Python 3.6.3 :: Anaconda, Inc.
  • Python package => opencv-contrib-python 3.3.0.10
Detailed description

File textbox.prototxt included in samples directory of opencv_contrib is not readable by cv2.dnn.readNetFromCaffe.

This file works: https://github.com/sghoshcvc/TextBox-Models/blob/master/textbox_deploy.prototxt

Error is probably because of additional_y_offset: true.

Steps to reproduce
import cv2
textDetectorNet = cv2.dnn.readNetFromCaffe('textbox.prototxt',  'TextBoxes_icdar13.caffemodel')

you should get an error

error: /io/opencv/modules/dnn/src/caffe/caffe_io.cpp:1137: error: (-2) FAILED: ReadProtoFromTextFile(param_file, param). Failed to parse NetParameter file: /home/user/textbox.prototxt in function ReadNetParamsFromTextFileOrDie

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions