Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frank Tjado Ihmels
medienverarbeitung17.projectmood
Commits
05057645
Commit
05057645
authored
Oct 26, 2017
by
Arne Gerdes
Browse files
Ersten Test mit Face Detection durchgeführt
parent
5b8380fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
.idea/inspectionProfiles/Project_Default.xml
0 → 100644
View file @
05057645
<component
name=
"InspectionProjectProfileManager"
>
<profile
version=
"1.0"
>
<option
name=
"myName"
value=
"Project Default"
/>
<inspection_tool
class=
"PyUnresolvedReferencesInspection"
enabled=
"true"
level=
"WARNING"
enabled_by_default=
"true"
>
<option
name=
"ignoredIdentifiers"
>
<list>
<option
value=
"ErsterTest.quot"
/>
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
.idea/medienverarbeitung17.projectmood.iml
View file @
05057645
...
...
@@ -4,7 +4,7 @@
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/projectmood"
isTestSource=
"false"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.6.3 virtualenv at
~/Jetbrains/PyCharm/Medienverarbeitung/medienverarbeitung17.projectmood/
venv"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.6.3 virtualenv at
C:\Users\arne8\
venv"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
<component
name=
"PackageRequirementsSettings"
>
...
...
.idea/misc.xml
View file @
05057645
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6.3 virtualenv at
~/Jetbrains/PyCharm/Medienverarbeitung/medienverarbeitung17.projectmood/
venv"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6.3 virtualenv at
C:\Users\arne8\
venv"
project-jdk-type=
"Python SDK"
/>
</project>
\ No newline at end of file
projectmood/ErsterTest
0 → 100644
View file @
05057645
import numpy as np
import cv2
detector = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
cap = cv2.VideoCapture(0)
while (True):
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = detector.detectMultiScale(gray, 1.3, 5)
for (x, y, w, h) in faces:
cv2.rectangle(img, (x, y), (x + w, y + h), (255, 0, 0), 2)
cv2.imshow('frame', img)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
projectmood/main.py
View file @
05057645
import
cv2
import
numpy
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment