dov / hirsch

A python binding to MVTec's proprietory library HALCON.
Other
49 stars 16 forks source link

Automatic casting to HTuple #3

Open dov opened 10 years ago

dov commented 10 years ago

The binding should transparantly try to translate any python sequence and scalar to HTuple if there is a matching function.

E.g. currently it is necessary to write:

canvas = HImageArray(Images).TileImagesOffset(HTuple(OffsetRow),
                                              HTuple(OffsetCol),
                                              HTuple([0]*len(Images)),      # row1
                                              HTuple([0]*len(Images)),      # col1
                                              HTuple([i.Height() for i in Images]),
                                              HTuple([i.Width() for i in Images]),
                                              HTuple(Width),
                                              HTuple(Height))

Requested is to get rid of all the explicit HTuple() calls.