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_4115_4221'
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({'violence': 57, 'dining': 8})
Potential Other Locations: Counter({'doorway': 8, 'booth': 8})
Establishing Shot Locations: Counter({'train': 15})
Named Participants: Counter({'frankie': 1, 'miles': 1})
Descriptors: ['indoors']
Held Items: Counter({'gun': 57, 'key': 4, 'cell phone': 2, 'bottle of wine': 1, 'bat': 1, 'bunch of keys': 1, 'cigarette': 1, 'wrench': 1, 'metal door handle': 1, 'door knob with a thumb': 1})
Active Actions: Counter({'laughing': 7, 'open': 4, 'making': 4, 'yelling': 2, 'singing': 1, 'adjusting': 1, 'opening': 1, 'touching': 1, 'putting': 1})
Left Wearing: Counter({'suit': 34})
Right Wearing: Counter({'suit': 177})
scene_obj.display_anchor_shots()
scene_obj.display_scene_frames_large()
scene_obj.print_info()
*Scene Information* Scene ID: d_4115_4221 Start Frame: 4115~00 End Frame: 4221~25 Scene Time: 01:08:35 - 01:10:21 Scene Runtime: 0:01:47 *Technical Details* Aspect Ratio: 1.78 Avg. Shot Duration: 9.26 Avg. Brightness: 50 Avg. Contrast: 40 *Dialogue Cadence* Sentences Per Minute: 23 Words Per Sentence 6.21 Questions Per Minute: 1.12 Pct. Questions: 5% *Emotion* Laughs Per Minute: 0.56 Profanity Per Minute: 3.36 Words Per Profanity: 44 Exclamations Per Minute: 10.07
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()