Lines Matching full:scene

55 _INT_STR_DICT = {'11': '1_1', '12': '1_2'}  # recover replaced '_' in scene def
58 # Notes on scene names:
59 # scene*_1/2/... are same scene split to load balance run times for scenes
60 # scene*_a/b/... are similar scenes that share one or more tests
82 # Scene requirements for manual testing.
85 'scene1_1': 'A grey card covering at least the middle 30% of the scene',
86 'scene1_2': 'A grey card covering at least the middle 30% of the scene',
94 'the scene. See tests/scene4/scene4.png',
168 for scene in results:
169 if RESULT_KEY not in results[scene]:
170 raise ValueError(f'ITS result not found for {scene}')
171 if results[scene][RESULT_KEY] not in RESULT_VALUES:
172 raise ValueError(f'Unknown ITS result for {scene}: {results[RESULT_KEY]}')
173 if SUMMARY_KEY in results[scene]:
174 device_summary_path = f'/sdcard/its_camera{camera_id}_{scene}.txt'
176 (adb, results[scene][SUMMARY_KEY], device_summary_path))
177 results[scene][SUMMARY_KEY] = device_summary_path
188 def load_scenes_on_tablet(scene, tablet_id): argument
192 scene: Name of the scene to copy image files.
197 os.path.join(os.environ['CAMERA_ITS_TOP'], 'tests', scene))
201 scene, file_name)
208 def check_manual_scenes(device_id, camera_id, scene, out_path): argument
214 scene: Name of the scene to copy image files.
225 f'{scene}.\n The scene setup should be: \n {_SCENE_REQ[scene]}\n')
227 if scene == 'scene5':
233 logging.info('Capturing an image to check the test scene')
236 img_name = os.path.join(out_path, f'test_{scene}.jpg')
237 logging.info('Please check scene setup in %s', img_name)
239 choice = input('Is the image okay for ITS {scene}? (Y/N)').lower()
343 scenes: the test scene(s) to be executed. Use comma to separate
346 where X is scene name minus 'scene')
378 scenes = str(test_params_content['scene']).split(',')
396 # Prepend 'scene' if not specified at cmd line
398 if (not s.startswith('scene') and
399 not s.startswith(('sensor_fusion', '<scene-name>'))):
400 scenes[i] = f'scene{s}'
407 logging.info('Running ITS on device: %s, camera(s): %s, scene(s): %s',
422 # have specific scene name listed.
430 if '<scene-name>' in scenes:
433 # Validate user input scene names
439 raise ValueError('No valid scene specified for this camera.')
441 logging.info('camera: %s, scene(s): %s', camera_id, per_camera_scenes)
444 # A subdir in topdir will be created for each camera_id. All scene test
453 test_params_content['scene'] = s
462 # Copy scene images onto the tablet
496 # Run tests for scene
580 logging.info('scene tests: %s, Total tests passed: %s', tot_tests,
596 # Delete temporary yml file after scene run.