Nekshay commited on
Commit
ea67a8d
·
verified ·
1 Parent(s): 52d7e11

Update table_deskew.py

Browse files
Files changed (1) hide show
  1. table_deskew.py +20 -0
table_deskew.py CHANGED
@@ -103,3 +103,23 @@ if __name__ == "__main__":
103
  out_img = fix_orientation_and_deskew(img)
104
  cv2.imwrite("out_img_fixed.png", out_img)
105
  print("Image processing complete. Saved as 'out_img_fixed.png'.")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  out_img = fix_orientation_and_deskew(img)
104
  cv2.imwrite("out_img_fixed.png", out_img)
105
  print("Image processing complete. Saved as 'out_img_fixed.png'.")
106
+
107
+
108
+ import subprocess
109
+
110
+ cert_file = "certis3.crt"
111
+
112
+ try:
113
+ result = subprocess.run(
114
+ ["openssl", "x509", "-in", cert_file, "-text", "-noout"],
115
+ capture_output=True,
116
+ text=True,
117
+ check=True
118
+ )
119
+ print("Certificate Details:\n")
120
+ print(result.stdout)
121
+ except subprocess.CalledProcessError as e:
122
+ print("Error running openssl command:")
123
+ print(e.stderr)
124
+ except FileNotFoundError:
125
+ print("OpenSSL executable not found. Ensure it's installed and in PATH.")