Victrid / splatplost

A software-based SplatPost plotter.
GNU General Public License v3.0
191 stars 18 forks source link

TypeError: 'type' object is not subscriptable #39

Closed shenghejun closed 1 year ago

shenghejun commented 1 year ago

i use this command "sudo splatplan -i 1.jpeg -o 111" then

Traceback (most recent call last): File "/usr/local/bin/splatplan", line 9, in from splatplost.generate_route import ResetPosition, divide_image, generate_block_visit, generate_order_file, find_nearest_reset_position, \ File "/usr/local/lib/python3.8/dist-packages/splatplost/generate_route.py", line 98, in def get_label(image: np.ndarray) -> tuple[np.ndarray, int]: TypeError: 'type' object is not subscriptable

Victrid commented 1 year ago

Read this page: https://github.com/Victrid/splatplost/blob/master/docs/image.md