Spaces:
Sleeping
Sleeping
Update pilecaps_adr.py
Browse files- pilecaps_adr.py +2 -2
pilecaps_adr.py
CHANGED
|
@@ -903,7 +903,7 @@ def drawAllContours(dataDoc,img,number,finalColorArray,ratioarea,ratioperim , pa
|
|
| 903 |
|
| 904 |
annot11 = page.add_polyline_annot( points=shapee) # 'Polygon'
|
| 905 |
annot11.set_border(width=0.2, dashes=[3])
|
| 906 |
-
|
| 907 |
if len(alltxts)>0:
|
| 908 |
annot11.set_info(content='Perimeter='+str(round((p[4]-1)*ratioperim,3))+' m',subject='ADR Team',title=str(alltxts[contour]))
|
| 909 |
# annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
|
|
@@ -931,7 +931,7 @@ def drawAllContours(dataDoc,img,number,finalColorArray,ratioarea,ratioperim , pa
|
|
| 931 |
# annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
|
| 932 |
annot.update()
|
| 933 |
|
| 934 |
-
annot11 = page.add_polyline_annot( points=
|
| 935 |
annot11.set_border(width=0.2, dashes=[3])
|
| 936 |
annot1.set_colors(stroke=color ,fill=None)
|
| 937 |
|
|
|
|
| 903 |
|
| 904 |
annot11 = page.add_polyline_annot( points=shapee) # 'Polygon'
|
| 905 |
annot11.set_border(width=0.2, dashes=[3])
|
| 906 |
+
annot11.set_colors(stroke=color ,fill=None)
|
| 907 |
if len(alltxts)>0:
|
| 908 |
annot11.set_info(content='Perimeter='+str(round((p[4]-1)*ratioperim,3))+' m',subject='ADR Team',title=str(alltxts[contour]))
|
| 909 |
# annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
|
|
|
|
| 931 |
# annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
|
| 932 |
annot.update()
|
| 933 |
|
| 934 |
+
annot11 = page.add_polyline_annot( points=shape) # 'Polygon'
|
| 935 |
annot11.set_border(width=0.2, dashes=[3])
|
| 936 |
annot1.set_colors(stroke=color ,fill=None)
|
| 937 |
|