import sys
sys.path.append('../../../../')
import os
from moviegoer.tables import load_film_object, film_id_and_scene_id_from_scene_directory
film_id, scene_id = film_id_and_scene_id_from_scene_directory()
scene_id
'd_1234_1344'
film_obj = load_film_object(film_id)
scene_obj = film_obj.scene_object(scene_id)
scene_obj.print_context_clues()
*Plot Context*
Context Themes: Counter({'dining': 156, 'drinking': 5, 'violence': 1})
Potential Common Locations: Counter({'restaurant': 114})
Establishing Shot Locations: Counter({'building': 7})
Named Participants: Counter({'announcer on radlo': 1, 'hell': 1, 'man': 1, 'wgn chicago': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cup': 11, 'coffee cup': 5, 'knife': 1, 'coffee pot': 1, 'cell phone': 1})
Active Actions: Counter({'eating': 41, 'drinking': 5, 'cut': 4, 'held': 2, 'getting': 1, 'brushing': 1, 'handed': 1, 'pouring': 1})
Left Wearing: Counter({'black jacket': 12})
Right Wearing: Counter({'black shirt': 9, 'suit': 5, 'shirt and a white tie': 3, 'tie': 3, 'tie and a black shirt': 1})
scene_obj.display_anchor_shots()
scene_obj.display_scene_frames_large()
scene_obj.print_info()
*Scene Information* Scene ID: d_1234_1344 Start Frame: 1234~75 End Frame: 1344~75 Scene Time: 00:20:34 - 00:22:24 Scene Runtime: 0:01:51 *Technical Details* Aspect Ratio: 1.78 Avg. Shot Duration: 13.78 Avg. Brightness: 20 Avg. Contrast: 21 *Dialogue Cadence* Sentences Per Minute: 15 Words Per Sentence 6.22 Questions Per Minute: 2.70 Pct. Questions: 19% *Emotion* Laughs Per Minute: 0.00 Profanity Per Minute: 0.54 Words Per Profanity: 168 Exclamations Per Minute: 0.00
scene_obj.display_cutaway_shots()
scene_obj.display_qna_frames()
scene_obj.display_first_p_sentence_frames()
scene_obj.display_second_p_address_frames()
scene_obj.display_exclamations()
scene_obj.display_laughs()
[]
scene_obj.display_unintelligible_language()
scene_obj.display_long_take_shots()
[]
scene_obj.display_color_shots()