![]() ![]() ![]() Prediccion = ttk.Label(self.root, text=pred_label, font=("Arial Bold", 12)) Pred = model.predict(np.expand_dims(imagen/255, 0)) Imagen = tf.image.resize(imagen, (224,224), preserve_aspect_ratio=True) Output = tk.Label(self.root, text=file_path.name, image=self.image) Img = ImageTk.PhotoImage(Image.open(file_path.name)) Titulo = ttk.Label(self.root, text="Detector de Melanomas", font=("Arial Bold", 12))įile_upload = ttk.Button(self.root, text="seleccione la imagen sospechosa",įile_path = fd.askopenfile(mode='r', filetypes=[('jpg files', '*.jpg'), # set the position of the window to the center of the screen Screen_height = _screenheight()Ĭenter_x = int(screen_width/2 - window_width / 2)Ĭenter_y = int(screen_height/2 - window_height / 2) Model = load_model(os.path.join('models', 'detectormelanomas-NuevasImagenesMelanoma2. SK99 Asks: How to get the path to the directory where the. exe file is located after Pyinstaller compiles python script Syncplay value error time data how to# txt files that contains user data from a subdirectory where the. After Pyinstaller is used to compile the. The page takes input from users through input type date when the specifi. We gather website safety and reputation data and compare it with. exe file the path changed to AppData\Local\Temp_MEI185962 when I print the path. I'm working on a project in which when users mention a specific date range from and to, the corresponding data gets printed. If Syncplay does not load on Windows then you probably need to install the Microsoft. My question is how do I come up with the path to where the. exe file is all the time, because I want to make my program be distributeable so I don't want to use a hardcoded path or if I move the folder around. So for example if I have my program.exe in the directory C:/Users//Desktop/project then how do I access te subdirectory C:/Users//Desktop/project/data. To get the path, but it is still pointing to the C:\User\AppData\Local\Temp_MEI185962.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |