Giter Site home page Giter Site logo

magical857 / color_track Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heng-w/color_track

0.0 0.0 0.0 9.61 MB

Color recognition and tracking based on STM32F407, android app use bluetooth to connect MCU. 基于STM32F407的颜色识别与目标跟踪,安卓APP通过蓝牙连接单片机

License: Apache License 2.0

Java 1.99% C 97.12% Assembly 0.88% Batchfile 0.01%

color_track's Introduction

color_track

Color recognition and tracking based on STM32F407, including android app using bluetooth to communicate.

基于STM32F407的颜色识别与目标跟踪,包括蓝牙连接通讯的安卓APP

简述

对摄像头采集的图像进行颜色识别,通过二自由度舵机云台实现颜色跟踪以保持目标物体位于视野**,利用手机APP发出控制指令实现交互。

具体内容

  1. 微控制器采用STM32F407VET6单片机,采集CMOS摄像头(OV7670带FIFO)的图像数据并实时送至SPI LCD显示。
  2. 用两个180度舵机搭建一个旋转云台,分别控制摄像头的水平和垂直两个自由度的旋转,利用PD控制算法调整舵机的角度。
  3. 将采集到的RGB565像素数据转换成HSL颜色空间,根据HSL阈值条件通过识别算法迭代计算出目标物体的坐标和大小。
  4. 预定义颜色通过人为调整阈值改善识别效果,自定义颜色可设定任意RGB,或通过拍照采集方式自动计算判定条件,以适应光源复杂性。
  5. 手机APP设定三个Fragment:工作模式、颜色设定、状态监测,连接单片机上的HC05蓝牙模块,发送控制的指令并接收运行的状态信息。

硬件清单

  • STM32F407VET6最小系统板
  • 带FIFO的OV7670摄像头
  • TFT SPI液晶屏(分辨率320×240)
  • HC-05蓝牙模块
  • MG996R舵机两个
  • 舵机云台支架
  • 7.4V锂电池组
  • LM2596S可调DC-DC降压模块(舵机供电)
  • AMS1117-5.0 LDO稳压模块
  • 万能PCB板等

整体预览

text

yuntab

识别效果

recogn1

recogn2

硬件架构

hw

软件架构

sw

APP界面

color_track's People

Contributors

heng-w avatar

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.