openmv learning diary (a) acquaintance openmv

Due to the recent need to use openmv, online resources is relatively small, the learning process can be sent to the learning process, we hope that more guidance! !

What is openmv

openmv is a Micropython support pyboard board , built-in python interpreter , after power is performed automatically inside the main.py file on microcontroller. Probably means, read the chip runtime python interpreter main.py inside the program (similar to the python interpreter to compile the program main.py file)

So to see this, we know we are in a program Micropython language, then Micropython what language is it?

MicroPython is running in the microcontroller Python on compliance with the MIT license. Micro Python is a simple and fast implementation programming language Python 3, optimized to run on a microcontroller. It is based on ANSIC, grammar with 3 Python is consistent with its own parser, compiler, virtual machine and class libraries.

So we have to develop first of all have to learn to develop language MicroPython, grammar and python3 almost, if learned python can get started quickly, never learned do not lose heart, this entry is relatively simple language, you can refer to the blog

So pyboard board what is it?

pyboard is the official MicroPython microcontroller board, fully supported software features.

OpenMV camera is a compact, low-power, low-cost circuit board, it helps you to easily complete machine vision (machine vision) applications. Full control over OpenMV, including the IO pins. You can easily shoot or use an external trigger terminal or execution algorithm, it can also be the result of the algorithm used to control the IO pins.

Machine vision algorithms on OpenMV include looking color, face detection, eye tracking, edge detection, tracking and other signs. It can be used to implement intrusion detection, screening the product defective products, fixed tracking markers and the like. Users only need to write some simple Python code, you can easily complete a variety of machine vision-related tasks. Compact design, making OpenMV can use many innovative products. For example, the robot can provide to their surrounding environment awareness; to increase the visual line patrol intelligent car features; smart toys to increase face recognition function, improve product and other interesting; even can give the plant a defective product line increased filtering capabilities Wait.

OpenMV employed STM32F427 rich hardware resources, lead UART, I2C, SPI, PWM, ADC, DAC and GPIO interfaces to facilitate expansion of peripheral functions. USB interface for connecting the integrated development environment OpenMVIDE on your computer to help complete the programming, debugging and updating firmware and so on. TF card slot supports large-capacity TF card, can be used to store programs and save photos.

OpenMV position is "with machine vision functions of the Arduino . It can UART I2C, SPI, AsyncSerial and the GPIO, like the control of other hardware, even when the microcontroller module, such as Arduino, RaspberryPi (Raspberry Pi) and the like. It may also be other single-chip control module. this feature makes it really flexible and other popular modules cooperate to achieve complex product features.

Summary about the characteristics of openmv:

1. The compact machine vision module
2. completely open source software and hardware
3.STM32F4 MCU, low power, high
4.OV7725 camera chip
5. Provide Python programming interface, does not require knowledge of the C language, to facilitate the development
6. provide a lot of Python examples
7. provide integrated development environment (OpenMVIDE), facilitate the development, debugging code and firmware updates
, and so on ...

So, OpenMV provides machine vision functions most central and most complex part (including hardware and core algorithm), so that users can put their focus on their own ideas and product design, to realize their creative ideas.

Learning Website

Library functions: https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.sensor.html?highlight=sensor

Getting Started Tutorial: https://book.openmv.cc/image/

Official forum: https://forum.singtown.com/

Some pit entry openmv: https://blog.csdn.net/a18156289516/article/details/78577359

installation

Official Download: https://openmv.io/pages/download

windows system Click on the button to download other operating systems, please download the corresponding system software
Here Insert Picture Description

Subsequent installations only need to point the next step and receive the license on the line! ! !

Installed to use

IDE there are a lot of routine, we can choose to try a
Here Insert Picture Description
plug in openmv, bottom left, click the Connect button
Here Insert Picture Description
after when connected, run the following button will turn green means that the connection is successful, click start running
Here Insert Picture Description
after the start of operation, remember opened the lid of the camera, and then we can see the image in the upper right portion of the video box, of course, if the image is not clear , remember to rotate tune the focal length
Here Insert Picture Description
information in the following image we can see in real time the picture, of course, we need to choose the color space may be
Here Insert Picture Description

Today on the introduction to this, we have a problem message more exchanges! ! !

Published 12 original articles · won praise 43 · views 7822

Guess you like

Origin blog.csdn.net/qq_42398342/article/details/105103582