Code Monkey home page Code Monkey logo

pi-macroscope's Introduction

pi-macroscope

Simple GUI for pi camera that allows you to select an ROI for recording. Uses the picamera python library

Image of camera mount

Install

Download or clone this repo onto a raspberry pi running debian buster. The newer camera stack is incompatible with picamera.

As of November 2020 you also need to manually update the picamera python module for compatability with the new HQ camera. Clone leoscholl/picamera and install with pip3 install picamera

Install pynput with pip3 install pynput

Set the resolution of your display to 720p.

Copy the shortcut

In the file manager, under Edit/Preferences/General, check the box for "Don't ask options on launch executable file".
Drag macroscope.desktop to the desktop while holding ctrlalt to make a copy.

Use

You will need a mouse and keyboard if you want to make recordings and set the ROI. Make a copy of the shortcut into /etc/xdg/autostart/ if you want it to start automatically.

  • Create a "recordings" folder in your home directory.
  • Double click the shortcut. Enter a session name for the recordings.
  • Click and drag the mouse to set the ROI. Click anywhere to reset to the full frame.
  • Scroll up or down to increase or decrease exposure compensation. One scroll is 1/6 of a stop.
  • Press P to show/hide the preview.
  • Press R to rotate the image by 90 degrees.
  • Click the red circle at the top left or press Space to begin recording. The resolution of the recordings is currently defined by the resolution of the screen. What you see is what you get, minus the GUI overlays.
  • Press Enter to take a still image.
  • Press Esc to exit. This will stop recording if it is on.

pi-macroscope's People

Contributors

leoscholl avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.