- Labels Detection
- Faces Detection
- Faces Comparison
- Faces Indexing
- Faces Search
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
SOLR_CONTEXT="https://${SOLR_TOMCAT_HOST}:${SOLR_TOMCAT_PORT}/${SOLR_TOMCAT_CONTEXT}" | |
REPO_CERT=$SSL_BASE/certs/client.pem | |
CURL_PARAMS=( -k -s --cert "$REPO_CERT":"$REPO_CERT_PW" ) | |
# get indexing status | |
curl "${CURL_PARAMS[@]}" "$SOLR_CONTEXT/admin/cores?action=SUMMARY&wt=json" |jq -r '.Summary | keys_unsorted[] as $k | "\($k), \(.[$k]."TX Duration"), \(.[$k]."Id for last TX in index")/\(.[$k]."Id for last TX on server") tx, \(.[$k]."On disk (GB)") GB, \(.[$k]."Approx transaction indexing time remaining")"' | |
# Show numDocs,maxDoc and deletedDocs for each Alfresco core | |
curl "${CURL_PARAMS[@]}" "$SOLR_CONTEXT/admin/cores?action=SUMMARY&wt=json"| \ | |
jq '.Summary[].Searcher' | jq -r '"\(.searcherName),\(.numDocs),\(.maxDoc),\(.deletedDocs)"' |
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 pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
from pdfminer.converter import TextConverter, XMLConverter, HTMLConverter | |
from pdfminer.layout import LAParams | |
from pdfminer.pdfpage import PDFPage | |
from io import BytesIO | |
def convert_pdf(path, format='text', codec='utf-8', password=''): | |
rsrcmgr = PDFResourceManager() | |
retstr = BytesIO() | |
laparams = LAParams() |
Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112
For older versions of Spark and ipython, please, see also previous version of text.
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
### Locating UI elements ### | |
# By ID | |
<div id="coolestWidgetEvah">...</div> | |
element = driver.find_element_by_id("coolestWidgetEvah") | |
or | |
from selenium.webdriver.common.by import By | |
element = driver.find_element(by=By.ID, value="coolestWidgetEvah") | |
# By class name: |