从lesson_function import *是否还有其他功能可用于车辆检测

问题描述

大家好,我正在尝试编写一种用于车辆检测的算法,但不能从导入库中删除 因为我得到的错误

ModuleNotFoundError:没有名为“ lesson_functions”的模块 并且在某处找不到有关lesson_functions的任何信息

在笔记本中导入libs时

import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import cv2
import glob
import time
from sklearn.svm import LinearSVC
from sklearn.preprocessing import StandardScaler
from skimage.feature import hog
from lesson_functions import *
from sklearn.model_selection import train_test_split

我也在使用python 3.7

解决方法

lesson_functions是您不导入的自定义用户模块,请尝试从您所引用的位置检查文件,其中应有一个名为lesson_functions.py的模块。下载该文件并将其保存在与主代码所在文件相同的目录中。然后只需编写即可导入

import lesson_functions