8000 GitHub - astef/termcam: Camera in your terminal · GitHub
[go: up one dir, main page]

Skip to content
< 7FFF script type="application/json" data-target="react-partial.embeddedData">{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2FGitHub.com%2Fastef%2Ftermcam","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=astef%2Ftermcam","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://GitHub.com/astef/termcam\",\"user_id\":null}}","auth_hydro_click_hmac":"a274e2fae00cefee9a409346d12401a7ef697d2b61a2906d40853343e065a8dc"}}
astefPublic

About

Camera in your terminal

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • Install GoCV, full instruction here:
go get -u -d gocv.io/x/gocv

$GOPATH may be not set, but the rest of the path is fine (search for the right path on your system):

cd $GOPATH/src/gocv.io/x/gocv

This takes a few minutes:

make install
  • Ensure your terminal support 24-bit colors, you can use tools/ for testing

Usage

go build . && ./termcam 0

  • Replace 0 with the index of your video device (usually, from 0 to 6), or with a full path to it

screenshot

Features

  • Picture size and quality adjust to your terminal size
  • '▀' (Unicode 0x2580) is used to maximize vertical resolution, but any other symbol can be used (check in source code)

Limitations

  • It's video rendering in terminal - entire screen is refilled 33 times a second, so it may be slow
  • Looks like there's no good way to avoid extra line below the picture, otherwise scrolling happens
  • Periodically I'm receiving empty frames from my devices (tested with two cameras): see error reading from webcam: empty frame. You may want to remove the line, which prints this error to avoid flickering. I've left it for diagnostic purposes.

About

Camera in your terminal

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0