내가 GitHub의에서이 OpenCV의 프로젝트에 적용하기 위해 노력하고있어 : https://github.com/andrewssobral/simple_vehicle_countingImportError를 : 없음 모듈 이름이 인쇄 회로 보드 어셈블리
나는 리눅스에서 파이썬 방법을 갔다를이 내가에 문제가있어 수입 라인입니다 :
the error messageTraceback (most recent call last):
File "./build/python/demo.py", line 6, in <module>
import bgs.pbas as pbas
File "/home/user/Downloads/simple_vehicle_counting-master/build/python/bgs/pbas/__init__.py", line 1, in <module>
from pbas import *
ImportError: No module named pbas
과 :
from __future__ import print_function
import cv2
import analysis
import tracking
import bgs.pbas as pbas
마지막 줄이 오류를 일으키는 하나입니다
from pbas import *
# noinspection PyUnresolvedReferences
import pyboostcvconverter as pbcvt
참고 : 인쇄 회로 보드 어셈블리의 init 파일 내부의 코드는
from analysis import *
# noinspection PyUnresolvedReferences
import cvb
# noinspection PyUnresolvedReferences
import pyboostcvconverter as pbcvt
: 초기화 파일은 매우 유사하며,이 분석의 init 파일 경우에도
import analysis
이 잘 작동 첫 번째와 같은 다른 수입
내가 볼 때 bgs.pbas의'__init__' 안에 정확히하지 즉 : 모듈은 여기 가져 오기위한 파이썬 보이는 위치에 대한 자세한. 나는'import _pbas'를 본다. 왜 당신이 다른 것을 가지고 있는지 확신 할 수 없지만 그 작은 밑줄은 사물을 설명 할 수 있습니다. – RobertB