Commit 1ef251c4 authored by tihmels's avatar tihmels

Readme aktualisiert

parent 72c87157
......@@ -9,7 +9,7 @@ Topic H - What mood expression is this?
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::
......@@ -34,3 +34,4 @@ Setup
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
import glob
import logging
import random
import cv2.face
import cv2
import cv2.face
import numpy as np
import sys
......@@ -103,11 +103,13 @@ def make_sets():
def run_recognizer():
training_data, training_labels, prediction_data, prediction_labels = make_sets()
logging.debug('Training...')
fishface.train(training_data, np.asarray(training_labels))
cnt = 0
correct = 0
incorrect = 0
logging.debug('Prediction...')
for image in prediction_data:
pred, conf = fishface.predict(image)
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