I have two scripts in Python but now I want to do just one, finishing calling one method then I want to call the other one but it tells me
name 'readImage' is not defined
This is how I'm calling the methods:
def decoder(image):
#code
def main():
#code
decoder(frame)
if __name__ == '__main__':
main()#se ejecuta correctamente
readImage(frame)#esta me da el error anterior
def readImage(img):
#code
The last method readImage()
is from another script and I want to unify it with what is already there in the first script.
Clarifying this is the first time I'm using Python, maybe it's something simple for someone with some experience in this language, I'm still looking for information on San Google :)
Modify the order of your functions:
A function must be above your call.