16 Коммитов

Автор SHA1 Сообщение Дата
Dominic Kempf
f99d15cf40
Restrict the scope of facial expression recognition by thresholding likelihood (#38)
* Apply thresholding to restrict the scope of facial expression recognition

* fix test dict faces

* remove approx

* do not ignore data in subdirs

* where does test_display come from

* remove face analysis duplication

* imageai sneaked into ci

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2022-12-13 13:15:56 +01:00
Inga Ulusoy
6e7df1eb9f
fix code smells (#39)
* fix code smells

* circumvent code coverage
2022-10-27 13:35:37 +02:00
Inga Ulusoy
37d07da98a
Accuracy test (#32)
* Create ci.yml

* include pytest

* Update pyproject.toml

* include pytest-cov

* use approx in pytest

* Update test_faces.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add coverage yaml

* reduce passing grade

* use copy instead of symlink on windows

* crude attempt at calculating deviations

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-13 14:32:45 +02:00
xiaohemaikoo
fdcb228294
M objdect (#23)
* colors expression by KMean algorithm

* object detection by imageai

* object detection by cvlib

* add encapsulation of object detection

* remove encapsulation of objdetect v0

* objects expression to dict

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* added imageai to requirements

* add objects to dictionary

* update for AnalysisMethod baseline

* add objects dection support explore_analysis display

* extend python version of misinf to allow imageai

* account for older python

* use global functionality for dict to csv convert

* update for docker build

* docker will build now but ipywidgets still not working

* test code

* include test data folder in repo

* add some sample images

* load cvs labels to dict

* add test data

* retrigger checks

* add map to human coding

* get orders from dict, missing dep

* add module to test accuracy

* retrigger checks

* retrigger checks

* now removing imageai

* removed imageai

* move labelmanager to analyse

* multiple faces in mydict

* fix pre-commit issues

* map mydict

* hide imageai

* objects default using cvlib, isolate and disable imageai

* correct python version

* refactor faces tests

* refactor objects tests

* sonarcloud issues

* refactor utils tests

* address code smells

* update readme

* update notebook without imageai

Co-authored-by: Ma Xianghe <825074348@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: iulusoy <inga.ulusoy@uni-heidelberg.de>
2022-10-04 11:34:44 +02:00
Inga Ulusoy
d4cda187e3
Facial expression dict (#24)
* convert into dict output

* faces class

* return cleaned dict

* empty methods that are required

* with dict updates

* with dominant emotion confidence as tuple

* multiple images

* update notebook
2022-08-17 23:00:46 +02:00
Inga Ulusoy
995cfec923
dict handling down to and from analysis routines (#19) 2022-08-07 20:48:21 +02:00
Inga Ulusoy
446da693e3
Text on image 1 (#4)
* read image into nb

* test

* added keras-ocr and google vision

* google cloud vision by far the best

* setting up docker for text 1

* move widgets and analysis to display module

* move widgets and analysis to display module - 2

* text on image through widgets
2022-07-27 22:41:13 +02:00
Dominic Kempf
9b1a980a76 Detect up to 3 faces 2022-07-18 13:35:54 +02:00
Dominic Kempf
a6a4d4aff0 Add a prefetching mechanism for trained models 2022-07-14 14:52:54 +02:00
Dominic Kempf
547e31a1c7 Use pooch instead of bundling pre-trained model 2022-07-14 11:30:12 +02:00
Dominic Kempf
81f8f91bc0 Include a face mask detection model 2022-07-13 17:20:01 +02:00
Dominic Kempf
2d06cd290a Use a widget layout for exploration that shows all filenames 2022-07-13 16:22:26 +02:00
Dominic Kempf
0c5f716827 Move find_files into utility module 2022-07-13 13:54:19 +02:00
Dominic Kempf
3a1e7aa94d Precompute all the results in exploration 2022-07-13 10:33:53 +02:00
Dominic Kempf
d2c68da482 Restrict to using the biggest face if multiple faces are present in the image 2022-07-13 10:26:20 +02:00
Dominic Kempf
2d3ea26007 Add DeepFace exploration notebook and Python package 2022-07-12 16:52:58 +02:00