lhemerly commited on
Commit
a43e5e5
1 Parent(s): 7aaf0e7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -6
README.md CHANGED
@@ -2,14 +2,60 @@
2
  license: mit
3
  pipeline_tag: image-classification
4
  ---
5
- # WOW Spell Identificator
6
 
7
- <!-- Provide a quick summary of what the model is/does. -->
8
 
9
- This model is a lightweight image classification model trained to identify wow spells images. If receive a 56x56 image and outputs spell id probabilities.
 
 
 
 
10
 
11
  ## Model Details
12
 
13
- - **Developed by:** Luiz Hemerly
14
- - **Model type:** Image Classification
15
- - **License:** MIT
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: mit
3
  pipeline_tag: image-classification
4
  ---
 
5
 
6
+ # WOW Spell Identifier
7
 
8
+ This model is a specialized image classification model trained to identify World of Warcraft (WoW) spell images. It accepts a 56x56 pixel image as input and outputs the probabilities for various spell IDs.
9
+
10
+ ## Model Description
11
+
12
+ The WOW Spell Identifier is designed to assist gamers by automating the recognition of spell icons during gameplay. By processing 56x56 pixel images, the model predicts the likelihood of each spell ID, enabling the integration of this functionality into gaming tools for acessibility.
13
 
14
  ## Model Details
15
 
16
+ - **Developer:** Luiz Hemerly
17
+ - **Model Type:** Convolutional Neural Network (CNN) for Image Classification
18
+ - **Framework:** TensorFlow/Keras
19
+ - **Input:** 56x56 pixel image
20
+ - **Output:** Probabilities for spell IDs
21
+ - **License:** MIT
22
+
23
+ ## Usage
24
+
25
+ The model can be integrated into gaming interfaces or used in standalone applications to enhance the gaming experience by providing real-time spell identification.
26
+
27
+ ```python
28
+ import tensorflow as tf
29
+
30
+ # Load the trained model
31
+ model = tf.keras.models.load_model('path_to_model/spell_identifier_model.h5')
32
+
33
+ # Load the list of spell IDs from classes.txt
34
+ with open('path_to_classes/classes.txt', 'r') as file:
35
+ classes = file.read().splitlines()
36
+
37
+ # Function to preprocess the input image
38
+ def preprocess_image(image_path):
39
+ # Implement preprocessing steps (e.g., resizing, normalization)
40
+ pass
41
+
42
+ # Function to predict the spell ID
43
+ def predict_spell_id(image_path):
44
+ processed_image = preprocess_image(image_path)
45
+ predictions = model.predict(processed_image)
46
+ predicted_class_index = np.argmax(predictions)
47
+ predicted_spell_id = classes[predicted_class_index]
48
+ return predicted_spell_id
49
+
50
+ # Example usage
51
+ spell_id = predict_spell_id('path_to_image/spell_image.png')
52
+ print(spell_id)
53
+ ```
54
+
55
+ In this example, classes.txt contains the list of spell IDs corresponding to the model’s output classes. The predict_spell_id function processes the image, makes a prediction, and then maps the predicted class index to the actual spell ID using the classes list.
56
+
57
+ ## Contributions
58
+ Contributions to the model and its development are welcome.
59
+
60
+ ## License
61
+ This project is licensed under the MIT License.