parameters: (array,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0,sort_by_confidences=True,validNumPoints=[],validate_cw=True)
return_statement: return pointsList,confidencesList,transcriptionsList
docstring: Returns all points, confindences and transcriptions of a file in lists. Valid dict formats:
      {"points":[[x1,y1],[x2,y2],[x3,x3],..,[xn,yn]],"transcription":"###","confidence":0.4}
docstring_summary: Returns all points, confindences and transcriptions of a file in lists. Valid dict formats:
      {"points":[[x1,y1],[x2,y2],[x3,x3],..,[xn,yn]],"transcription":"###","confidence":0.4}
docstring_tokens: Returns all points confindences and transcriptions of a file in lists . Valid dict formats : { points : [[ x1 y1 ] [ x2 y2 ] [ x3 x3 ] .. [ xn yn ]] transcription : ### confidence : 0 . 4 }
function: def get_tl_dict_values_from_array(array,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0,sort_by_confidences=True,validNumPoints=[],validate_cw=True):
      """
      Returns all points, confindences and transcriptions of a file in lists. Valid dict formats:
      {"points":[[x1,y1],[x2,y2],[x3,x3],..,[xn,yn]],"transcription":"###","confidence":0.4}
      """
      pointsList = []
      transcriptionsList = []
      confidencesList = []
      
      for n in range(len(array)):
          objectDict = array[n]
          points, confidence, transcription = get_tl_dict_values(objectDict,withTranscription,withConfidence,imWidth,imHeight,validNumPoints,validate_cw);
          pointsList.append(points)
          transcriptionsList.append(transcription)
          confidencesList.append(confidence)
  
      if withConfidence and len(confidencesList)>0 and sort_by_confidences:
          import numpy as np
          sorted_ind = np.argsort(-np.array(confidencesList))
          confidencesList = [confidencesList[i] for i in sorted_ind]
          pointsList = [pointsList[i] for i in sorted_ind]
          transcriptionsList = [transcriptionsList[i] for i in sorted_ind]        
          
      return pointsList,confidencesList,transcriptionsList
function_tokens: def get_tl_dict_values_from_array ( array , withTranscription = False , withConfidence = False , imWidth = 0 , imHeight = 0 , sort_by_confidences = True , validNumPoints = [ ] , validate_cw = True ) : pointsList = [ ] transcriptionsList = [ ] confidencesList = [ ] for n in range ( len ( array ) ) : objectDict = array [ n ] points , confidence , transcription = get_tl_dict_values ( objectDict , withTranscription , withConfidence , imWidth , imHeight , validNumPoints , validate_cw ) pointsList . append ( points ) transcriptionsList . append ( transcription ) confidencesList . append ( confidence ) if withConfidence and len ( confidencesList ) > 0 and sort_by_confidences : import numpy as np sorted_ind = np . argsort ( - np . array ( confidencesList ) ) confidencesList = [ confidencesList [ i ] for i in sorted_ind ] pointsList = [ pointsList [ i ] for i in sorted_ind ] transcriptionsList = [ transcriptionsList [ i ] for i in sorted_ind ] return pointsList , confidencesList , transcriptionsList