ออฟฟิศเมท (OfficeMate)
| Dernière version | 5.0.36 | |
| Mise à jour | Jan,06/2026 | |
| Développeur | COL Public Company Limited | |
| Système d'exploitation | Android 5.1 or later | |
| Catégorie | Achats | |
| Taille | 16.80M | |
| Mots clés: | Achats |
-
Dernière version
5.0.36
-
Mise à jour
Jan,06/2026
-
Développeur
COL Public Company Limited
-
Système d'exploitation
Android 5.1 or later
-
Catégorie
Achats
-
Taille
16.80M
Points forts de ออฟฟิศเมท (OfficeMate) :
⭐ Large catalogue : Plus de 15 000 produits, des fournitures de base aux équipements informatiques, meubles et fournitures industrielles. Tout ce dont votre entreprise a besoin en un seul endroit.
⭐ Achats pratiques : Passez commande à toute heure du jour ou de la nuit via l'application, garantissant une flexibilité totale pour vos achats.
⭐ Livraison sans frais : Livraison gratuite sur l'ensemble du territoire thaïlandais, rendant vos achats encore plus économiques et pratiques.
⭐ Avantages exclusifs : Bénéficiez de remises spéciales et d'offres personnalisées avec les principaux détaillants via l'application.
Conseils aux utilisateurs :
⭐ Activez les notifications : Restez informé sur les nouvelles promotions et les nouveautés en activant les notifications de l'application.
⭐ Explorez les avantages : Profitez au maximum des privilèges exclusifs réservés aux utilisateurs de l'app OfficeMate.
⭐ Localisateur de magasins : Trouvez facilement la succursale la plus proche grâce à la fonction de géolocalisation.
⭐ Achetez et retirez : Optez pour le retrait en magasin pour les achats effectués via l'app, disponible à Bangkok et en région métropolitaine.
Conclusion#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/get_pet_labels.py
#
# PROGRAMMER: Viveka A. Singh
# DATE CREATED: 08 NOVEMBER 2021
# REVISED DATE: 18 NOVEMBER 2021
# PURPOSE: Create the function get_pet_labels that creates the pet labels from
# the image's filename. This function inputs:
# - The Image Folder as image_dir within get_pet_labels function and
# as in_arg.dir for the function call within the main function.
# This function creates and returns the results dictionary as results_dic
# within get_pet_labels function and as results within main.
# The results_dic dictionary has a 'key' that's the image filename and
# a 'value' that's a list. This list will contain the following item
# at index 0 : pet image label (string).
#
##
# Imports python modules
from os import listdir
TODO 2: Define get_pet_labels function below please be certain to replace None
in the return statement with results_dic dictionary that you create
with this function
def get_pet_labels(image_dir): """ Creates a dictionary of pet labels (results_dic) based upon the filenames of the image files. These pet image labels are used to check the accuracy of the labels that are returned by the classifier function, since the filenames of the images contain the true identity of the pet in the image. Be sure to format the pet labels so that they are in all lower case letters and with leading and trailing whitespace characters stripped from them. (ex. filename = 'Boston_terrier_02259.jpg' Pet label = 'boston terrier') Parameters: image_dir - The (full) path to the folder of images that are to be classified by the classifier function (string) Returns: results_dic - Dictionary with 'key' as image filename and 'value' as a List. The list contains for following item: index 0 = pet image label (string) """
# Create list of files in directory
in_files = listdir(image_dir)
# Create empty dictionary for the results (pet labels, etc.)
pet_labels_dic = dict()
# process each filename to create pet image label
for idx in range(0, len(in_files), 1):
# skip files if starts with . (like .DS_Store of Mac OSX) because it
# isn't an pet image file
if in_files[idx][0] != ".":
# extract the pet label from the image filename
label = in_files[idx].lower().replace("_", " ").replace("-", " ").replace(".jpg", "")
# trim whitespace from the beginning and end of the label
label = label.strip()
# update the dictionary only if the key doesn't already exist in
# the dictionary to avoid duplicates
if in_files[idx] not in pet_labels_dic:
# add to dictionary
pet_labels_dic[in_files[idx]] = [label]
else:
print("** Warning: Key=", in_files[idx], "already exists in pet_labels_dic with value =", pet_labels_dic[in_files[idx]])
# Replace None with the results_dic dictionary that you created with this
# function
return pet_labels_dic
