Skip to content

LET: Thresholding causes an exception #6

@bot1131357

Description

@bot1131357

I tried clicking on the scissor icon labeled "Toggles if the threshold for the image is shown or not" but it gave me the following:

Calculating density model...
Traceback (most recent call last):
  File "/home/ytan/Dev/handwriting/helit/handwriting/let/let.py", line 743, in __threshold_visible
    self.run_threshold()
  File "/home/ytan/Dev/handwriting/helit/handwriting/let/let.py", line 684, in run_threshold
    _, self.density = threshold.cluster_colour(image, size=self.threshold_cluster_size, halves=self.threshold_cluster_halves)
  File "/home/ytan/Dev/handwriting/helit/handwriting/let/threshold.py", line 352, in cluster_colour
    tps.learn(dm_x * scale, dm_y)
  File "/home/ytan/Dev/handwriting/helit/handwriting/let/misc/tps.py", line 47, in learn
    assert(y!=None or (a!=None and b!=None))
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

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