Traceback (most recent call last): File "/Users/cadenlang/Documents/Harris Corners.py", line 9, in row = image.shape[0] AttributeError: 'NoneType' object has no attribute 'shape' >>> 0) and (r 0) and...


I keep getting this error: AttributeError: 'NoneType' object has no attribute 'shape'. I do not know how to fix it. I attached my code and error as well.


Traceback (most recent call last):<br>File
row = image.shape[0] AttributeError: 'NoneType' object has no attribute 'shape' >>> "/>
Extracted text: Traceback (most recent call last): File "/Users/cadenlang/Documents/Harris Corners.py", line 9, in row = image.shape[0] AttributeError: 'NoneType' object has no attribute 'shape' >>>
import cv2<br>import numpy<br>image = cv2.imread ('checkers.png')<br>threshold1 = cv2.imread (
0) and (r < row-1)="" and="" (c=""> 0) and (c < column-1):="" ix[r][c]="float(origingrayscale[r+1][c])" iy[r][c]="float(origingrayscale[r][c+1])" ixix[r][c]="Ix[r][c]*Ix[r][c]" iyiy[r][c]="" ixiy[r][c]="" float="" (origingrayscale[r-1][c])="" float(origingrayscale[r][c-1])="" iy[r][c]*iy[r][c]="" ix[r][c]*iy[r][c]="" %3d="" %3d="" il="" ||="" ||="" "/="">
Extracted text: import cv2 import numpy image = cv2.imread ('checkers.png') threshold1 = cv2.imread ("checkers.png") threshold2 = cv2.imread("checkers.png") origingrayscale = cv2.imread ("checkers.png", 0) row = image.shape[0] column = image.shape[1] Ix = numpy.zeros ( (row, column), numpy.float32) Iy = numpy .zeros ( (row,column), numpy.float32) IxIx = numpy.zeros ((row,column), numpy.float32) IyIy = numpy.zeros( (row, column), numpy.float32) IxIy = numpy.zeros( (row, column), numpy.float32) Cornerness = numpy.zeros((row,column), numpy.float32) CornernessRange = numpy.zeros ((row,column), numpy.float32) for r in range (row): for c in range(column): if (r > 0) and (r < row-1)="" and="" (c=""> 0) and (c < column-1):="" ix[r][c]="float(origingrayscale[r+1][c])" iy[r][c]="float(origingrayscale[r][c+1])" ixix[r][c]="Ix[r][c]*Ix[r][c]" iyiy[r][c]="" ixiy[r][c]="" float="" (origingrayscale[r-1][c])="" float(origingrayscale[r][c-1])="" iy[r][c]*iy[r][c]="" ix[r][c]*iy[r][c]="" %3d="" %3d="" il="" ||="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here