Skip to content

Commit

Permalink
Merge pull request #25 from kendryte/dev
Browse files Browse the repository at this point in the history
merge dev
  • Loading branch information
wycwyhwyq authored May 20, 2022
2 parents c296cc0 + 3e5303f commit 0698fb3
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

首先感谢您参与本开源项目,在您提交issue和pull request之前请认真阅读本指南

在提交pull request时一定要关联相应的issue,如果没有相应issue,请先创建issue
在提交pull request时一定要关联相应的issue,如果没有相应issue,请先创建issue
关于pull request关联issue,GitHub支持自动和手动关联,具体操作请参考[Link PR to issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)

issue和pull request填写时都支持Markdown,关于GitHub的Markdown语法和扩展请参考[GitHub Flavored Markdown](https://docs.github.com/en/get-started/writing-on-github)
Expand All @@ -29,6 +29,6 @@ issue和pull request填写时都支持Markdown,关于GitHub的Markdown语法
## Markdown检查

本项目会对上传的Markdown文件进行格式化检查和内部引用链接检查,如果不符合格式要求或存在不能访问的链接,CI会报异常,导致PR不能被merge,因此提交PR前请确保您已在本地进行过检查
格式检查工具使用的是`markdownlint`,规则配置文件是[markdownlint.json](../.markdownlint.json)。本地可使用`vscode`安装`markdownlint`来进行在线检查和格式化
您也可以在提交PR之前,先push到您GitHub仓库的`check`分支进行CI检查,避免重复修改PR
本项目会对上传的Markdown文件进行格式化检查和内部引用链接检查,如果不符合格式要求或存在不能访问的链接,CI会报异常,导致PR不能被merge,因此提交PR前请确保您已在本地进行过检查
格式检查工具使用的是`markdownlint`,规则配置文件是[markdownlint.json](../.markdownlint.json)。本地可使用`vscode`安装`markdownlint`来进行在线检查和格式化
您也可以在提交PR之前,先push到您GitHub仓库的`check`分支进行CI检查,避免重复修改PR
25 changes: 25 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (c) 2022, Canaan Bright Sight Co., Ltd

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![](https://github.com/wycwyhwyq/k510_docs/actions/workflows/markdown_check.yml/badge.svg)
[![Gitee repository](https://img.shields.io/badge/gitee-repository-blue?logo=gitee&style=plastic)](https://gitee.com/kendryte/k510_docs)
[![GitHub release](https://img.shields.io/github/v/release/kendryte/k510_docs?color=brightgreen&display_name=tag&logo=github&style=plastic)](https://github.com/kendryte/k510_docs/releases)

# 文档概述

Expand Down Expand Up @@ -28,6 +29,6 @@ k510 相关文档如下:

## 联系我们

北京嘉楠捷思信息技术有限公司
网址:[canaan-creative.com](https://canaan-creative.com/)
北京嘉楠捷思信息技术有限公司
网址:[canaan-creative.com](https://canaan-creative.com/)
商务垂询:[salesAI@canaan-creative.com](mailto:salesAI@canaan-creative.com)
2 changes: 1 addition & 1 deletion zh/K510_Multimedia_Developer_Guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ rtmp推流前需要部署rtmp服务器,将数据流推送到服务器上。支
ffmpeg运行命令示例:

```shell
ffmpeg -f v4l2 -s 1920x1080 -conf "video_sample.conf" -isp 1 -buf_type 2 -r 30 -i /dev/video3 -vcodec libk510_h264 -an -f flv rtmp://10.100.232.11/live/1
ffmpeg -f v4l2 -s 1920x1080 -conf "video_sample.conf" -isp 1 -buf_type 2 -r 30 -i /dev/video3 -vcodec libk510_h264 -f flv rtmp://10.100.232.11/live/1
```

- `rtmp://10.100.232.11/live/1`为向rtmp服务器推流的url地址
Expand Down
2 changes: 1 addition & 1 deletion zh/K510_SDK_Application_Guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ v4l2_drm demo展示了摄像头输入和显示的功能。

```shell
cd /app/mediactl_lib
./v4l2_drm.out -f video_drm_1080x1920.conf
./v4l2_drm.out -f video_drm_1080x1920.conf -e 1
或者
./v4l2_drm.out -f video_drm_1920x1080.conf
```
Expand Down
5 changes: 3 additions & 2 deletions zh/K510_V4l2_Developer_Guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,13 @@ isp_modules:

程序放在`/app/mediactl_lib`目录下:

- `v4l2_drm.out`:v4l2和drm联动case,添加了-f 修改输入配置文件的名字。可以使用-h 查看帮助。
- `v4l2_drm.out`:v4l2和drm联动case,添加了-f 修改输入配置文件的名字, -e 打开isp ae 功能。可以使用-h 查看帮助。

运行v4l2_drm.out

- -e:0 关闭所有ae,1打开 f-2k ae,2打开r-2k ae,3打开所有ae。默认情况下可以不指定-e 就是关闭所有ae。
- 该demo 需要video配置文件及对应的sensor配置文件在当前目录下。
- 该demo通过更改配置文件,可以演示单双摄。
- 该demo演示单摄全屏:./v4l2_drm.out -f video_drm_1080x1920.conf
- 该demo演示单摄全屏:./v4l2_drm.out -e 1 -f video_drm_1080x1920.conf
- 该demo演示双摄:./v4l2_drm.out -f video_drm_1920x1080.conf
- 该demo必须保证video_drm_1920x1080.conf,imx219_0.conf及imx219_1.conf三个配置文件存在

0 comments on commit 0698fb3

Please sign in to comment.