Skip to content

Commit

Permalink
added tutorial images
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Schrapel committed Oct 14, 2020
1 parent def8ae5 commit 2fe1c8a
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 3 deletions.
Binary file added Tutorial/Step_01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_06.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_07.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_09.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tutorial/Step_11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions emoji_webcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import cv2
import math


"""returns center of marker"""
def getCenter(prev_res):
xm=0
Expand Down Expand Up @@ -129,8 +130,12 @@ def isMarker(img , marker):
prev_res=[]

"""Aruco markers"""
dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_6X6_250)
parameters = cv2.aruco.DetectorParameters_create()
try:
dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_6X6_250)
parameters = cv2.aruco.DetectorParameters_create()
except:
print("Please install module opencv-contrib-python via pip!")
exit()
imgemoji= np.zeros([80,80,3])


Expand Down Expand Up @@ -180,7 +185,7 @@ def isMarker(img , marker):
frame=emojiOverlay(frame , img_emoji , pos=center,scale=scale)
break

cv2.imshow('frame',frame)
cv2.imshow('Webcam',frame)

"""press q to stop webcam recording"""
k = cv2.waitKey(1) % 256
Expand Down

0 comments on commit 2fe1c8a

Please sign in to comment.