fabiocarrara / meye

A deep-learning-based web tool for translational and real-time pupillometry
https://www.pupillometry.it
GNU General Public License v3.0
40 stars 10 forks source link

[enhancement] Toggle button to invert images #26

Closed LeonardoLupori closed 3 years ago

LeonardoLupori commented 3 years ago

Hey, The model is having some difficulties predicting the pupil on a small subset of 2P mouse eyes. I'm collecting images from those movies to improve the training dataset, but in the meantime, I found it to be extremely effective to simply invert the images that I feed to the net with:

import cv2 as cv
invertedFrame = cv.bitwise_not(frame)

It may be useful to add a toggle button to the webapp to invert images in case one is having problems.