This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import os | |
| import re | |
| import time | |
| from collections import deque | |
| from html.parser import HTMLParser | |
| from pathlib import Path | |
| from urllib.parse import unquote, urldefrag, urljoin, urlparse | |
| from urllib.request import Request, urlopen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script standalone generat din setarile PhotoScape: batch - font albastru senin. | |
| Citeste imaginile din INPUT_DIR si scrie JPG in OUTPUT_DIR. | |
| Setarile originale sunt embeduite in SETTINGS. | |
| Corectii importante fata de generarea anterioara: | |
| - multe valori PhotoScape la 100 sunt valori de lucru/neutre pentru acel control, | |
| nu comenzi de colorare agresiva; | |
| - in Curves se aplica doar curba RGB/master, fiindca in PhotoScape canalele | |
| Red/Green/Blue nu sunt bifate in presetul de referinta; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script standalone generat din setarile PhotoScape: batch - font albastru senin. | |
| Citeste imaginile din INPUT_DIR si scrie JPG in OUTPUT_DIR. | |
| Setarile originale sunt embeduite in SETTINGS. | |
| Corectii importante fata de generarea anterioara: | |
| - multe valori PhotoScape la 100 sunt valori de lucru/neutre pentru acel control, | |
| nu comenzi de colorare agresiva; | |
| - in Curves se aplica doar curba RGB/master, fiindca in PhotoScape canalele | |
| Red/Green/Blue nu sunt bifate in presetul de referinta; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script standalone "Inchis" - face textul gri / slab contrast mai NEGRU. | |
| Pipeline minimalist (fara CLAHE/unsharp -> fara umbre/halouri): | |
| 1. Median 3x3 - praf fin | |
| 2. LEVELS Photoshop: BP=80, WP=240, gamma=0.65 | |
| -> bg >240 devine alb pur, text gri (100) -> dark (~12) | |
| PASTREAZA anti-aliasing (italice, serife) - NU binarizeaza. | |
| """ | |
| import cv2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import numpy as np | |
| from pathlib import Path | |
| INPUT_DIR = Path(r"g:\Colectia EMINESCIANA") | |
| OUTPUT_DIR = Path(r"g:\Colectia EMINESCIANA\Output") | |
| OUTPUT_DIR.mkdir(parents=True, exist_ok=True) | |
| def procesare_reconstructie_statistica(img_path): | |
| # 1. Citire imagine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import numpy as np | |
| from pathlib import Path | |
| INPUT_DIR = Path(r"g:\Colectia EMINESCIANA") | |
| OUTPUT_DIR = Path(r"g:\Colectia EMINESCIANA\Output") | |
| OUTPUT_DIR.mkdir(parents=True, exist_ok=True) | |
| def procesare_rocada_continuitate(img_path): | |
| # 1. Citire si trecere in NEGATIV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import numpy as np | |
| from pathlib import Path | |
| INPUT_DIR = Path(r"g:\Colectia EMINESCIANA") | |
| OUTPUT_DIR = Path(r"g:\Colectia EMINESCIANA\Output") | |
| OUTPUT_DIR.mkdir(parents=True, exist_ok=True) | |
| def procesare_ultra_rapida(img_path): | |
| # 1. Citire imagine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import numpy as np | |
| from pathlib import Path | |
| INPUT_DIR = Path(r"g:\Colectia EMINESCIANA") | |
| OUTPUT_DIR = Path(r"g:\Colectia EMINESCIANA\Output") | |
| OUTPUT_DIR.mkdir(parents=True, exist_ok=True) | |
| def procesare_structura_continua(img_path): | |
| # 1. Citire si Inversare (lucram cu text alb pe negru pentru procesare) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| import datetime as dt | |
| import time | |
| from pathlib import Path | |
| import pyautogui | |
| from pywinauto import Desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| import argparse | |
| import datetime as dt | |
| import os | |
| import subprocess | |
| import sys | |
| import time | |
| from pathlib import Path |
NewerOlder