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/
gitはじめ
License: MIT License
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/
通信仕様変更したほうがいい気がする。
コマンド系は、改行コードのみ
frame_start\n
lazer_off\n
座標系は、,カンマ区切りと改行
23,285\n
24,284\n
基本は改行コードで切り分けていき、カンマ区切りで座標のx,yを分ける。
main_img_fileoutput_canma.py
main.cpp
main_img_fileoutput_canma.py
main_img_fileoutput_canma.py
Python側で修正する。
レビューしてもらったのを細かくしてTODOリストっぽくします。
main_img_fileoutput_canma.py
main_img_fileoutput_canma.py
main_img_fileoutput_canma.py
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'
NY_Laser_Project / Teensy / Teensy_Laser /src/
main_img_fileoutput_canma.py
何度もループしていうちに落ちる。
Serial.println("Can not open file!");が表示される。
SerialコマンドをMax8から出力し、受信データに応じて、動作を行う。
今のところ、
リプレイのオン・オフ
頭出し・
再生スタート
を実装したい。
main.cpp
main_img_fileoutput_canma.py
main.cpp
main.cpp
main.cpp
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.