Giter VIP home page Giter VIP logo

ny_laser_project's Introduction

NY_Laser_Project

レーザーポインターでプロジェクターを製作する。

Features

Python + OpenCV を使用して画像/動画の座標データを取り出す。
データを.txtデータでSDカードに書き込み
書き込んだデータをTeensy3.6で読み込む。
x/yの値をanalog Outputし、20Kps Galvos に出力する事で、レーザーを制御し絵を描く。

20Kpps galvo galvanometerについて
https://www.instructables.com/id/DIY-STEPDIR-LASER-GALVO-CONTROLLER/

ny_laser_project's People

Contributors

nishi10000 avatar

Watchers

 avatar

ny_laser_project's Issues

通信仕様変更

通信仕様変更したほうがいい気がする。
コマンド系は、改行コードのみ
frame_start\n
lazer_off\n

座標系は、,カンマ区切りと改行
23,285\n
24,284\n

基本は改行コードで切り分けていき、カンマ区切りで座標のx,yを分ける。

python 重いファイル?を処理しようとすると途中で下記エラーがでてしまう。

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\WinPython\WPy64-3760\python-3.7.6.amd64\lib\tkinter_init_.py", line 1705, in call
return self.func(*args)
File "c:/Users/nishiharay/Desktop/NY_Laser_Project/trunk/Python/test3.py", line 61, in Change
m_MovieToTxt.Output()
File "c:\Users\nishiharay\Desktop\NY_Laser_Project\trunk\Python\movie_to_txt.py", line 61, in Output
scaled_img=self.scale_box(frame,Image_Scale_X,Image_Scale_Y)
File "c:\Users\nishiharay\Desktop\NY_Laser_Project\trunk\Python\movie_to_txt.py", line 31, in scale_box
scale = min(width / img.shape[1], height / img.shape[0])
AttributeError: 'NoneType' object has no attribute 'shape'

【Teensy】SDカードを読み込んだ時ファイルが見つけれない。

Teensyで読み取った時にファイル名が変わってしまっている??
下記保存ファイル  
BOOT (E_) 2020_03_11 16_11_17
下記指定ファイル名  
main cpp - 未設定 (ワークスペース) - Visual Studio Code 2020_03_11 16_12_51  
下記読み込めない為、SDカード内のファイルを確認した結果
main cpp - 未設定 (ワークスペース) - Visual Studio Code 2020_03_11 16_12_03 (2)

MOVIE~1.TXTに変換されてる。
この名前にすれば、Open()する事ができる。

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.