win10安装ipython_win10环境 ipython app.py 8080 这里为什么是ipython 这步无法启动
发布日期:2021-06-24 11:23:38 浏览次数:3 分类:技术文章

本文共 1277 字,大约阅读时间需要 4 分钟。

ipython/python均可以,或者你可以将model.py 第5行注释掉,看能不能启动

#! /usr/bin/env python

# -*- coding: utf-8 -*-

from detector.detectors import TextDetector

from detector.other import get_boxes

#import darknet_detect

import opencv_dnn_detect ##opencv dnn model for darknet

import numpy as np

from PIL import Image

import numpy as np

import time

import cv2

from glob import glob

from crnn.crnn import crnnOcr as crnnOcr

注释掉第5行还是一样的错误:

ImportError Traceback (most recent call last)

~/chineseocr/app.py in ()

16 web.config.debug = True

17 from apphelper.image import convert_image,read_url_img,string_to_array,array_to_string,base64_to_array

---> 18 import model

19 render = web.template.render('templates', base='base')

20

~/chineseocr/model.py in ()

1 #! /usr/bin/env python

2 # -- coding: utf-8 --

----> 3 from detector.detectors import TextDetector

4 from detector.other import get_boxes

5 #import darknet_detect

~/chineseocr/detector/detectors.py in ()

3 import numpy as np

4 import numpy as np

----> 5 from detector.utils.cython_nms import nms as cython_nms

6 try:

7 from detector.utils.gpu_nms import gpu_nms

~/chineseocr/detector/utils/init.py in ()

----> 1 from . import cython_nms

2 try:

3 from . import gpu_nms

4 except:

5 gpu_nms = cython_nms

ImportError: cannot import name 'cython_nms'

转载地址:https://blog.csdn.net/weixin_32473663/article/details/113549677 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:statelesswidget 初始化执行方法_Spring的初始化回调你真的搞懂了吗?
下一篇:2020word替换所有文本_Excel字符函数(5):REPLACE、SUBSTITUTE查找替换函数之区别...

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年03月29日 18时45分41秒