Marthee commited on
Commit
e6e81e8
·
verified ·
1 Parent(s): 8ec3986

Update pilecaps_adr.py

Browse files
Files changed (1) hide show
  1. pilecaps_adr.py +2 -3
pilecaps_adr.py CHANGED
@@ -874,15 +874,14 @@ def drawAllContours(dataDoc,img,number,finalColorArray,ratioarea,ratioperim,flag
874
  # cv2.circle (imgtransparent1, (img.shape[0],img.shape[0]1), 5, 255, 5)
875
  alpha = 0.4 # Transparency factor.
876
  image_new1 = cv2.addWeighted(imgArea1, alpha, imgtransparent1, 1 - alpha, 0)
 
877
  if rotationOld==90:
878
  image_new1 = cv2.rotate(image_new1, cv2.ROTATE_90_CLOCKWISE)
879
  if rotationOld==180:
880
  image_new1 = cv2.rotate(image_new1, cv2.ROTATE_180)
881
  if rotationOld==270:
882
  image_new1 = cv2.rotate(image_new1, cv2.ROTATE_90_COUNTERCLOCKWISE)
883
- alpha = 0.4 # Transparency factor.
884
- image_new1 = cv2.addWeighted(imgArea1, alpha, imgtransparent1, 1 - alpha, 0)
885
-
886
  dbPath='/TSA Team Folder/ADR Test'+pdfpath+'Measured Plan/'
887
  pdflink= tsadropboxretrieval.uploadanyFile(doc=doc,path=dbPath,pdfname=path) #doc=doc,pdfname=path,pdfpath=pdfpath+'Measured Plan/'
888
  dbxTeam=tsadropboxretrieval.ADR_Access_DropboxTeam('user')
 
874
  # cv2.circle (imgtransparent1, (img.shape[0],img.shape[0]1), 5, 255, 5)
875
  alpha = 0.4 # Transparency factor.
876
  image_new1 = cv2.addWeighted(imgArea1, alpha, imgtransparent1, 1 - alpha, 0)
877
+
878
  if rotationOld==90:
879
  image_new1 = cv2.rotate(image_new1, cv2.ROTATE_90_CLOCKWISE)
880
  if rotationOld==180:
881
  image_new1 = cv2.rotate(image_new1, cv2.ROTATE_180)
882
  if rotationOld==270:
883
  image_new1 = cv2.rotate(image_new1, cv2.ROTATE_90_COUNTERCLOCKWISE)
884
+ page.set_rotation(rotationOld)
 
 
885
  dbPath='/TSA Team Folder/ADR Test'+pdfpath+'Measured Plan/'
886
  pdflink= tsadropboxretrieval.uploadanyFile(doc=doc,path=dbPath,pdfname=path) #doc=doc,pdfname=path,pdfpath=pdfpath+'Measured Plan/'
887
  dbxTeam=tsadropboxretrieval.ADR_Access_DropboxTeam('user')