@@ -610,14 +610,14 @@ def get_video_projection_config(self, image :np.ndarray, projection: str) -> dic
610610 if image .shape [0 ] > 3000 or image .shape [1 ] > 3000 :
611611 image = cv2 .resize (image , None , fx = 0.5 , fy = 0.5 )
612612
613- ui_texte = []
613+ ui_texte = {}
614614 if "keys" in config .keys ():
615615 for param in config ['keys' ].keys ():
616616 if param in config ['parameter' ].keys () and all (item in config ["keys" ][param ].keys () for item in ["increase" , "decrease" ]):
617- ui_texte . append ( "Use '{}', '{}' to increase/decrease {}" .format (
617+ ui_texte [ param ] = "Use '{}', '{}' to increase/decrease {} = ${{val} }" .format (
618618 config ["keys" ][param ]["increase" ],
619619 config ["keys" ][param ]["decrease" ],
620- param )
620+ param
621621 )
622622
623623 self .clear_keypress_queue ()
@@ -633,7 +633,8 @@ def get_video_projection_config(self, image :np.ndarray, projection: str) -> dic
633633 self .set_background_image (preview )
634634 self .print_text ("Press 'space' or 'enter' to use current viewpoint" )
635635 self .print_text ("Press '0' (NULL) to reset view" )
636- self .print_text (ui_texte )
636+ final_ui_texte = [ui_texte [k ].replace ('${val}' , str (config ['parameter' ][k ])) for k in ui_texte .keys ()]
637+ self .print_text (final_ui_texte )
637638
638639 ret = self .show ()
639640 if ret in [ord (' ' ), 13 ]:
0 commit comments