Skip to content

Cant detect a pattern #31

Description

@p1r473

I am trying to anonymise a document for printing
I cant seem to detect my pattern
Ive tried printing my calibration test page and scanning it many times, with bmp tiff and png. Ive tried 300 600 1200 dpi. Ive tried all sorts of margins. No matter what I do I cant detect the pattern

I am able to zoom in on my image and indeed see the yellow marks with my own eyes
I am also able to detect the tracking dot with deda_extract_yd Detected tracking dot pattern

Is there any way to turn a unknown pattern into a recognized pattern @timojuez

❯ /home/pi/deda/deda_bin/deda_anonmask_create_img.py -r Image\ \(5\).png
Traceback (most recent call last):
  File "/home/pi/deda/deda_bin/deda_anonmask_create_img.py", line 46, in <module>
    Main()()
  File "/home/pi/deda/deda_bin/deda_anonmask_create_img.py", line 39, in __call__
    mask = calibrationScan2Anonmask(image_data, self.args.copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/libdeda/privacy.py", line 273, in calibrationScan2Anonmask
    return AnonmaskCreator(imbin,verbose)(copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/libdeda/privacy.py", line 105, in __call__
    self.restoreSkewByDots()
  File "/root/.local/lib/python3.11/site-packages/libdeda/privacy.py", line 184, in restoreSkewByDots
    pp = PrintParser(self.im,ydxArgs=dict(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/libdeda/print_parser.py", line 78, in __init__
    raise exceptions[0]
  File "/root/.local/lib/python3.11/site-packages/libdeda/print_parser.py", line 68, in __init__
    self.pattern = self._calcPattern()
                   ^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/libdeda/print_parser.py", line 145, in _calcPattern
    raise YD_Parsing_Error("Cannot detect pattern.",self.yd)
libdeda.print_parser.YD_Parsing_Error: Cannot detect pattern.   

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