original_docstring: 
          Takes a certain n amount of pictures in order to provide pictures to train the AI
          :param number_of_picture_to_take: int
          :return:
          
docstring: Takes a certain n amount of pictures in order to provide pictures to train the AI
docstring_tokens: Takes a certain n amount of pictures in order to provide pictures to train the AI
code: def take_pics_from_camera(self, number_of_picture_to_take=50):
          """
          Takes a certain n amount of pictures in order to provide pictures to train the AI
          :param number_of_picture_to_take: int
          :return:
          """
          interrupt = 0.2
          start_in = list(range(0, 7))
          start_in.sort(reverse=True)
          self.mirto.clear_lcd()
          for s in start_in:
              self.mirto.set_lcd_message("Start training in: %s sec" % s, 1)
              sleep(1)
          self.mirto.clear_lcd()
          for picture in range(0, number_of_picture_to_take):
              try:
                  self.camera.capture(self.train_images_directory + 'capture_%s.jpg' % picture)
                  sleep(interrupt)
                  self.mirto.set_lcd_message("Picture taken: %s" % picture, 0)
                  print("Picture taken: %s" % picture)
                  sleep(interrupt)
              except KeyboardInterrupt:
                  print('Keyboard interrupt exiting')
                  sys.exit(0)
          print("Finish training")
          del self.mirto
          sys.exit(0)
code_tokens: def take_pics_from_camera ( self , number_of_picture_to_take = 50 ) : interrupt = 0.2 start_in = list ( range ( 0 , 7 ) ) start_in . sort ( reverse = True ) self . mirto . clear_lcd ( ) for s in start_in : self . mirto . set_lcd_message ( "Start training in: %s sec" % s , 1 ) sleep ( 1 ) self . mirto . clear_lcd ( ) for picture in range ( 0 , number_of_picture_to_take ) : try : self . camera . capture ( self . train_images_directory + 'capture_%s.jpg' % picture ) sleep ( interrupt ) self . mirto . set_lcd_message ( "Picture taken: %s" % picture , 0 ) print ( "Picture taken: %s" % picture ) sleep ( interrupt ) except KeyboardInterrupt : print ( 'Keyboard interrupt exiting' ) sys . exit ( 0 ) print ( "Finish training" ) del self . mirto sys . exit ( 0 )
short_docstring: Takes a certain n amount of pictures in order to provide pictures to train the AI
short_docstring_tokens: Takes a certain n amount of pictures in order to provide pictures to train the AI
comment: """
          Takes a certain n amount of pictures in order to provide pictures to train the AI
          :param number_of_picture_to_take: int
          :return:
          """