Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error in Assertion failed (!empty()) mean. the file is empty becasue you didn't add to data parameter.

def callback(self,**data**)

But how do you called function of callback This doesn't do anything.

if __name__ == '__main__':
    main(sys.argv)

You need filename like this:

if __name__ == '__main__':
    x= image_converter()
    filename = x.callback(filename)

Error in Assertion failed (!empty()) mean. the file is empty becasue you didn't add to data parameter.

def callback(self,**data**)
callback(self,data)

But how do you called function of callback This doesn't do anything.

if __name__ == '__main__':
    main(sys.argv)

You need filename like this:

if __name__ == '__main__':
    x= image_converter()
    filename = x.callback(filename)

Error in Assertion failed (!empty()) mean. the file is empty becasue you didn't add to data parameter.

def callback(self,data)

But how do you called function of callback This doesn't do anything.

if __name__ == '__main__':
    main(sys.argv)

You need filename like this:

if __name__ == '__main__':
    x= image_converter()
    filename = x.callback(filename)

I also noticed you will have to changed cv_image2 to cv_image. The cv_image2 doesn't draw circle.