![]() ![]() > 13 img = cv2.resize(img, None, fx=0.7, fy=0.7)ġ4 # Here we are applying gaussian blur to image with kernel size 3 and sigma 0.8 as per paperġ5 smooth_img = graph_obj.gaussian_filter(img, 3, 0.8)Įrror: OpenCV(4.5.1) C:UsersappveyorAppDataLocalTemp1pip-req-build-oduouqigopencvmodulesimgprocsrcresize.cpp:4051: error: (-215:Assertion failed) !ssize. Bijay Kumar Entrepreneur, Founder, Author, Blogger, Trainer, and more. Print(' : building graph complete')ġ1 # img = cv2.imread('data/panda.jpg', 0)ġ2 # img = cv2.imread('data/people.jpg', 0) This is how to solve Python nameerror: name is not defined or NameError: name ‘values’ is not defined in python. Hi all, I’m trying to work on the Constellations project (Data Science Career Path) in Jupyter Notebook but I get two errors when I try to run my code. Smooth_img = graph_obj.gaussian_filter(img, 3, 0.8)Ĭh1_G, ch1_E = graph_obj.image_to_grid_graph(smooth_img) I am doing a project on image segmentation using graphs, using Jupyter Notebook, I have defined a class name GraphSegmentation and in another cell creating an object of GraphSegmentation class, running the class definition cell is not giving any error but in the next cell, I am getting the name error.
0 Comments
Leave a Reply. |