当前位置:网站首页>Maixll dock camera usage
Maixll dock camera usage
2022-07-06 18:15:00 【Salted fish shell】
Maixll-Dock Camera use
I play V831 The order is , First test a single hardware , Know how to use , Combined use later . So if you want to see a complete case, you can leave it alone The use of cameras and Use of screen These two articles . Just look at the following cases directly .
How the camera works
image sensor - camera
camera (CAMERA or WEBCAM) Also known as computer cameras 、 Computer eyes 、 Electronic eye, etc , It's a video input device , It is widely used in video conferencing 、 Telemedicine and real-time monitoring . Ordinary people can also have images of each other on the Internet through cameras 、 Talking and communicating with voices .
principle : The scene passes through the lens (LENS) The generated optical image is projected onto the surface of the image sensor , To an electrical signal , after A/D( A / D conversion ) Then it becomes a digital signal .
Then it is transmitted to the digital signal processing chip (DSP) In the process of processing , adopt USB The interface is transmitted to the computer for processing , Images can be seen through the display .
PS: Don't delve into the principle , We don't design cameras , Just get to know
camera modular
PS: Simply talking about the use of a module , Other modules will be used in combination after the later discussion .
- The import module
from maix import camera
- Method statement
Method | explain |
---|---|
camera.width() | Returns the width of the image configured by the current camera |
camera.height() | Returns the height of the image configured by the current camera |
camera.config(size=(240, 240)) | It is mainly used to configure cameras , Set the size of the acquired image |
camera.capture() | Capture an image and return _maix_image.image |
camera.close() | close 、 Release the current device |
- Method demonstration
Camera usage is not difficult , We will talk about whichever case we use later .
Take pictures and save
There are many comprehensive cases of cameras , We will only do one of the simplest , Is to take photos and save . With this function , We can do personnel identification later ( Face recognition , The person in the identification library takes the next step ).
Our preservation goal is our U disc , Convenient for our subsequent extraction . The address is root/app/ Set up pictures . Format
from maix import camera
img = camera.capture()
img.save('root/app/xianyu.jpg')
Put the above code in the IDE On
Before running the code , open U disc
ADB Get into root/app(U disc ) route
[email protected]:/# cd root/app
cd root/app
[email protected]:~/app# ls
main.py maixhub main.py.log run.py
After running the code, I found U There are no pictures on the disk .
ADB perform ls after , You can see root/app
I already have the photos we want to save . It means that the photos have been saved , however U Disk is not displayed .
[email protected]sipeed:~/app# ls
main.py maixhub main.py.log run.py xianyu.jpg
Execute at this time reboot Restart it
Here comes the photo .~
Next , Use of screen , With the combination of screen and camera, we can do more
边栏推荐
- ASEMI整流桥DB207的导通时间与参数选择
- It doesn't make sense without a distributed gateway
- TCP packet sticking problem
- C language exchanges two numbers through pointers
- Jielizhi obtains the customized background information corresponding to the specified dial [chapter]
- 2022 Summer Project Training (II)
- Scratch epidemic isolation and nucleic acid detection Analog Electronics Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
- Grafana 9.0 正式发布!堪称最强!
- MarkDown语法——更好地写博客
- 偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
猜你喜欢
MS-TCT:Inria&SBU提出用于动作检测的多尺度时间Transformer,效果SOTA!已开源!(CVPR2022)...
【Swoole系列2.1】先把Swoole跑起来
Maixll-Dock 摄像头使用
1700C - Helping the Nature
从交互模型中蒸馏知识!中科大&美团提出VIRT,兼具双塔模型的效率和交互模型的性能,在文本匹配上实现性能和效率的平衡!...
30 分钟看懂 PCA 主成分分析
【Android】Kotlin代码编写规范化文档
The integrated real-time HTAP database stonedb, how to replace MySQL and achieve nearly a hundredfold performance improvement
C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
On time and parameter selection of asemi rectifier bridge db207
随机推荐
编译原理——自上而下分析与递归下降分析构造(笔记)
The third season of Baidu online AI competition is coming in midsummer, looking for you who love AI!
Jerry's access to additional information on the dial [article]
Five data structures of redis
VR panoramic wedding helps couples record romantic and beautiful scenes
Distiller les connaissances du modèle interactif! L'Université de technologie de Chine & meituan propose Virt, qui a à la fois l'efficacité du modèle à deux tours et la performance du modèle interacti
There is a gap in traditional home decoration. VR panoramic home decoration allows you to experience the completion effect of your new house
Declval (example of return value of guidance function)
node の SQLite
In terms of byte measurement with an annual salary of 30W, automated testing can be learned in this way
FMT开源自驾仪 | FMT中间件:一种高实时的分布式日志模块Mlog
Four processes of program operation
推荐好用的后台管理脚手架,人人开源
Getting started with pytest ----- allow generate report
C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
UDP协议:因性善而简单,难免碰到“城会玩”
简单易用的PDF转SVG程序
Jerry's watch deletes the existing dial file [chapter]
Jerry's setting currently uses the dial. Switch the dial through this function [chapter]
Cool Lehman has a variety of AI digital human images to create a vr virtual exhibition hall with a sense of technology