Giter VIP home page Giter VIP logo

cubeana's Introduction

cubeAna

分析摄像头拍摄晶格阵列

整个项目是将文件以8进制的方式读取,并分别用多个8色晶格阵列显示,每个晶格的颜色表示一个位,通过摄像头识别阵列并还原为原文件。

因为写的很乱,整理了最重要的部分,即是对图片识别,就是自动读取一张图片并获得其记录的数据 图片示例见demo.png,摄像头拍摄的图片情况

主要的方法

  • 确定第一个晶格的位置 从左上角向右下角遍历,当遇到可识别的颜色,则分别向左向上识别,直到颜色均无法识别位置,即可确定第一个晶格的左上角,其它3个位置和中点同理

  • 颜色适应 因为图片为摄像头拍摄,可能颜色与标准颜色有偏差,开始时应该拿一张包括8种颜色和背景灰色的表格让程序识别出当前环境下各个颜色的RGB值(为了方便观察,9种颜色的RGB分别放在\src\color目录下,txt保存)

  • 读取/输出信息 读取出图片晶格颜色,并输出

没怎么整理好,代码有点乱

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.