Skip to content

Commit 18d1550

Browse files
committed
Readme authors
1 parent 99eb24e commit 18d1550

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

DeepLabStream.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def __init__(self):
115115
self.frame_index = 0
116116
self._fps_counter = []
117117
self._fps = 0
118+
self.greetings()
118119

119120
@ staticmethod
120121
def set_camera_manager():
@@ -513,6 +514,11 @@ def create_dataframes(self):
513514
######
514515
# meta
515516
######
517+
@staticmethod
518+
def greetings():
519+
print("This is DeepLabStream")
520+
print("Developed by: Jens Schweihoff and Matvey Loshakov")
521+
516522
def get_camera_manager(self):
517523
return self._camera_manager
518524

Readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,8 @@ killall -9 python
127127
```
128128

129129
## License
130+
131+
## Authors
132+
Lead Researcher: Jens Schweihoff, [email protected]
133+
134+
Lead Developer: Matvey Loshakov, [email protected]

utils/configloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ def get_script_path():
4444
RECORD_EXP = dsc_config['Experiment'].getboolean('RECORD_EXP')
4545

4646
START_TIME = time.time()
47+
EGG = "".join(format(ord(x), 'b') for x in "Hello there!")

utils/plotter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import cv2
2+
import random
3+
from utils.configloader import EGG
24

35

46
def plot_dots(image, coordinates, color, cond=False):
@@ -63,3 +65,8 @@ def plot_triggers_response(image, response):
6365
cv2.circle(image, **plot['circle'], thickness=2)
6466
if 'square' in plot:
6567
cv2.rectangle(image, **plot['square'], thickness=2)
68+
69+
70+
def plot_special_peak():
71+
if random.randint(0, 100000) == 1:
72+
print(EGG)

utils/poser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44
from itertools import product, combinations
55
from utils.analysis import calculate_distance
6+
from utils.plotter import plot_special_peak
67
from skimage.feature import peak_local_max
78
from scipy.ndimage.measurements import label, maximum_position
89
from scipy.ndimage.morphology import generate_binary_structure, binary_erosion
@@ -67,6 +68,7 @@ def find_local_peaks_new(scoremap: np.ndarray, local_reference: np.ndarray, anim
6768
6869
:returns all_joints dictionary with coordinates as list of tuples for each joint
6970
"""
71+
7072
# loading animal joints from config
7173
all_joints_names = config['all_joints_names']
7274
# critical_joints = ['neck', 'tailroot']
@@ -75,6 +77,7 @@ def find_local_peaks_new(scoremap: np.ndarray, local_reference: np.ndarray, anim
7577
stride = config['stride']
7678
# filtering scoremap
7779
scoremap[scoremap < 0.1] = 0
80+
plot_special_peak()
7881
for joint_num, joint in enumerate(all_joints_names):
7982
all_peaks[joint] = []
8083
# selecting the joint in scoremap and locref

0 commit comments

Comments
 (0)