Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
284111d8
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
284111d8
编写于
3月 16, 2021
作者:
A
Andrey Zhavoronkov
提交者:
GitHub
3月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed image quality for tasks created from images (#2963)
* fixed image quality for images * updated changelog
上级
983e765f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
2 deletion
+4
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
cvat/apps/engine/media_extractors.py
cvat/apps/engine/media_extractors.py
+3
-2
未找到文件。
CHANGELOG.md
浏览文件 @
284111d8
...
...
@@ -66,6 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
An error about track shapes outside of the task frames during export (
<https://github.com/openvinotoolkit/cvat/pull/2890>
)
-
Fixed project search field updating (
<https://github.com/openvinotoolkit/cvat/pull/2901>
)
-
Fixed export error when invalid polygons are present in overlapping frames (
<https://github.com/openvinotoolkit/cvat/pull/2852>
)
-
Fixed image quality option for tasks created from images (
<https://github.com/openvinotoolkit/cvat/pull/2963>
)
### Security
...
...
cvat/apps/engine/media_extractors.py
浏览文件 @
284111d8
...
...
@@ -313,8 +313,7 @@ class VideoReader(IMediaReader):
class
IChunkWriter
(
ABC
):
def
__init__
(
self
,
quality
,
dimension
=
DimensionType
.
DIM_2D
):
# translate inversed range [1:100] to [0:51]
self
.
_image_quality
=
round
(
51
*
(
100
-
quality
)
/
99
)
self
.
_image_quality
=
quality
self
.
_dimension
=
dimension
@
staticmethod
...
...
@@ -375,6 +374,8 @@ class ZipCompressedChunkWriter(IChunkWriter):
class
Mpeg4ChunkWriter
(
IChunkWriter
):
def
__init__
(
self
,
quality
=
67
):
# translate inversed range [1:100] to [0:51]
quality
=
round
(
51
*
(
100
-
quality
)
/
99
)
super
().
__init__
(
quality
)
self
.
_output_fps
=
25
try
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录