Commit 1ef251c4 authored by tihmels's avatar tihmels

Readme aktualisiert

parent 72c87157
...@@ -9,7 +9,7 @@ Topic H - What mood expression is this? ...@@ -9,7 +9,7 @@ Topic H - What mood expression is this?
Setup Setup
===== =====
1. Falls nicht vorhanden, pip installieren .. Müsste mit python3 bereits installiert sein. 1. Falls nicht vorhanden, _pip installieren .. Müsste mit python3 bereits installiert sein.
2. Falls nicht vorhanden, pip3 installieren:: 2. Falls nicht vorhanden, pip3 installieren::
...@@ -34,3 +34,4 @@ Setup ...@@ -34,3 +34,4 @@ Setup
pip3 install -r requirements.txt pip3 install -r requirements.txt
.. _pip: https://pip.pypa.io/en/stable/installing/
\ No newline at end of file
...@@ -5,8 +5,8 @@ import argparse ...@@ -5,8 +5,8 @@ import argparse
import glob import glob
import logging import logging
import random import random
import cv2.face
import cv2 import cv2
import cv2.face
import numpy as np import numpy as np
import sys import sys
...@@ -103,11 +103,13 @@ def make_sets(): ...@@ -103,11 +103,13 @@ def make_sets():
def run_recognizer(): def run_recognizer():
training_data, training_labels, prediction_data, prediction_labels = make_sets() training_data, training_labels, prediction_data, prediction_labels = make_sets()
logging.debug('Training...')
fishface.train(training_data, np.asarray(training_labels)) fishface.train(training_data, np.asarray(training_labels))
cnt = 0 cnt = 0
correct = 0 correct = 0
incorrect = 0 incorrect = 0
logging.debug('Prediction...')
for image in prediction_data: for image in prediction_data:
pred, conf = fishface.predict(image) pred, conf = fishface.predict(image)
if pred == prediction_labels[cnt]: if pred == prediction_labels[cnt]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment