Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Raspberry photobooth

0 votes
Hello, does anyone already done an automatic Photobooth with a Rasperry ?

For example it takes a picture when a face is recognized ?

And as extra it could send an email automatically to the person it recognize

I will search by myself and keep updated when my project will be near usable !

Many thanks
asked Mar 2, 2019 in Misc Questions by Xpop (120 points)

1 Answer

0 votes

Have a look at http://jevois.org/tutorials/ProgrammerPythonSaveImages.html

If you are using JeVois Inventor, you can skip many of the steps which are now much easier with the Inventor, but have a look at the Python code:

import libjevois as jevois

import cv2

import numpy as np

class SaveImages:

  ## Constructor

  def __init__(self):

    self.frame = 0

  ## Process function with no USB output

  def processNoUSB(self, inframe):

    img = inframe.getCvBGR()

    cv2.imwrite("/jevois/data/saveimages{}.png".format(self.frame), img)

    self.frame += 1

Then check out http://jevois.org/moddoc/PyDetectionDNN/modinfo.html

It detects faces in Python. You can add the cv2.imwrite() command into that code maybe? Note that you would need new code and training data to do identification.

answered Mar 4, 2019 by JeVois (46,580 points)
I did a project to take a picture and text it to myself when a person is recognized. You could do something similar: https://hackaday.io/project/163391-front-door-cam
Many thanks JeVois and PeterQuinn for your answers !
...