Skip to content

NADA-ELECTRONICS/DitherCamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DitherCamera

DitherCamera for Raspberry Pi Zero W

ディザカメラ

AS-289R2 Thermal Printer Shield
Raspberry Pi Zero W
Raspberry Pi Camera Module V2

DitherCamera

配線

RPi Zero W (TxD) -> (RxD) AS-289R2
RPi Zero W (GND) -- (GND) AS-289R2
RPi Zero W (GPIO18) -- (N.O.) シャッターSW
RPi Zero W (GND) -- (COM) シャッターSW

処理

シャッターが押されるとカメラで撮影、画像の回転とリサイズを行いimage.bmpを生成します。   次にimagemagickを使ってimage.bmpをグレースケールに変換、ディザリング処理により画像を2値化変換しimage1.bmp(横384px、縦512px、1bpp)を生成します。   最後にimage1.bmpをAS-289R2に出力します。  

imagemagickのインストール

sudo apt-get update
sudo apt-get install imagemagick

UARTを使用するには

シリアルコンソールとBluetoothを止めて、汎用UARTとして利用するには下記作業が必要です。
/boot/cmdline.txt中の「console=serial0,115200」を削除
/boot/config.txtに「enable_uart=1」と「dtoverlay=pi3-disable-bt」を追加

Lisence

Dither Camera for RPi Zero W
NADA ELECTRONICS, LTD.
Copyright (c) 2017 Takehiro Yamaguchi, MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

DitherCamera for Raspberry Pi Zero W

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages