Skip to content

getting error in "identify_parking_spots.ipynb"  #1

@L0GESHWARAN

Description

@L0GESHWARAN

im getting error in "identify_block" method


KeyError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_6172/7358980.py in
31 rect_coords = []
32 for image, lines in zip(input_image, list_of_lines):
---> 33 new_image, rects = identify_blocks(image, lines)
34 rect_image.append(new_image)
35 rect_coords.append(rects)

~\AppData\Local\Temp/ipykernel_6172/864313665.py in identify_blocks(image, lines, make_copy)
113 avg_x1 = min(avg_x1, tup[0])
114 avg_x2 = max(avg_x2, tup[2])
--> 115 avg_x1 = avg_x1 + c.adjust_dict[i+1][0]
116 avg_y1 = avg_y1 + c.adjust_dict[i+1][1]
117 avg_x2 = avg_x2 + c.adjust_dict[i+1][2]

KeyError: 6

thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions