Search code examples
pythonalgorithmlibraries

is there any other function for from lesson_function import * to use for vehicle detection


hello guys i am trying to write an algorithm for vehicle detection but cant go from importing libraries because i get an error which is

ModuleNotFoundError: No module named 'lesson_functions' and cant find any information at somewhere about the lesson_functions

while importing libs bellow in notebook

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

also i am using python 3.7


Solution

  • lesson_functions is a custom user module which you are not importing, try checking the file from where you are referring there should be a module named lesson_functions.py. Download that and save it in the same directory as that of the file in which your main code is there. Then just import it by writing

    import lesson_functions