<commit_before><NAME> Beepscore LLC

# Purpose
Record info about using Raspberry Pi camera with Python.

# References

### Python picamera
https://www.raspberrypi.org/documentation/usage/camera/python/README.md

### Motion sensor
https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-12-sensing-movement

## Equipment

### Raspberry Pi 2 - Model B - ARMv7 with 1G RAM
http://www.adafruit.com/products/2358

### Camera
Raspberry Pi NoIR Camera Board - Infrared-sensitive Camera
http://www.adafruit.com/products/1567

### PIR (motion) sensor
Vetco VUPN5943  
TODO check output voltage
similar to Adafruit 189  
http://www.adafruit.com/products/189  
Adafruit sensor output is 3.3 V, compatible with pi


# Results

## install python camera module
    sudo apt-get install python3-picamera

python3-picamera was already installed.
May have been installed by raspi-config when I enabled camera.

## Run unit tests
To run tests in terminal, cd to top level directory that contains subdirectory test

    pi@pika:~/beepscore/pi_cam $ python3 -m unittest discover test
    .......
    ----------------------------------------------------------------------
    Ran 7 tests in 1.174s
<commit_msg>In README.md add info about copy images from pi to mac<commit_after><NAME> Beepscore LLC

# Purpose
Record info about using Raspberry Pi camera with Python.

# References

### Python picamera
https://www.raspberrypi.org/documentation/usage/camera/python/README.md

### Motion sensor
https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-12-sensing-movement

## Equipment

### Raspberry Pi 2 - Model B - ARMv7 with 1G RAM
http://www.adafruit.com/products/2358

### Camera
Raspberry Pi NoIR Camera Board - Infrared-sensitive Camera
http://www.adafruit.com/products/1567

### PIR (motion) sensor
Vetco VUPN5943  
TODO check output voltage
similar to Adafruit 189  
http://www.adafruit.com/products/189  
Adafruit sensor output is 3.3 V, compatible with pi


# Results

## install python camera module
    sudo apt-get install python3-picamera

python3-picamera was already installed.
May have been installed by raspi-config when I enabled camera.

## Run unit tests
To run tests in terminal, cd to top level directory that contains subdirectory test

    pi@pika:~/beepscore/pi_cam $ python3 -m unittest discover test
    .......
    ----------------------------------------------------------------------
    Ran 7 tests in 1.174s

## Copy files from pi images directory to mac
From macOS terminal

    cd ~/Desktop
    scp -r pi@192.168.2.3:~/beepscore/pi_cam/images .
{'fraction_non_alphanumeric': 0.14333210195788695, 'fraction_numerical': 0.027336534909493906, 'mean_word_length': 2.9823529411764707, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1706335', 'n_tokens_mistral': 905, 'n_tokens_neox': 813, 'n_words': 256}