OCR4all / LAREX

A semi-automatic open-source tool for Layout Analysis and Region EXtraction on early printed books.
MIT License
179 stars 33 forks source link

edit segments: tool for moving a region #192

Closed bertsky closed 4 years ago

bertsky commented 4 years ago

I sometimes have (complex) polygons (from PAGE import) that have an offset against the canvas (e.g. from dewarped or deskewed pages). Then I have to manually drag each vertex to shift the whole region. This is both inprecise and tiresome.

So it would help to have yet another tool which allows moving an existing region (as in GIMP's "move selection").

Note: this could also be helpful as an auxiliary when two regions overlap heavily, and I want to edit them individually without having difficulty focussing (selecting) either one.

bertsky commented 4 years ago

@chreul just explained to me how to easily do this without an extra tool:

  1. (select the region to edit)
  2. holding shift, and clicking outside the region, drag a rectangle encompassing the whole region – this selects all vertices together
  3. click and drag to move the region as a whole
maxnth commented 4 years ago

dev now contains a mode for moving segments and textlines since 371bf5f949b4dca6f558a015d63aacc8dbff0fe0