Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate setup on the bottom panel #294

Merged
merged 3 commits into from
Jan 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- OpenVINO auto annotation: it is possible to upload a custom model and annotate images automatically.

### Changed
-
- Propagation setup has been moved from settings to bottom player panel
- Additional events like "Debug Info" or "Fit Image" have been added for analitics

### Deprecated
-
Expand Down
4 changes: 4 additions & 0 deletions cvat/apps/engine/static/engine/js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,10 @@ var Logger = {
sendException: 22,
// dumped as "Change frame". There are no additional required fields.
changeFrame: 23,
// dumped as "Debug info". There are no additional required fields.
debugInfo: 24,
// dumped as "Fit image". There are no additional required fields.
fitImage: 25,
},

/**
Expand Down Expand Up @@ -517,6 +520,7 @@ var Logger = {
case this.EventType.sendException: return 'Send exception';
case this.EventType.changeFrame: return 'Change frame';
case this.EventType.debugInfo: return 'Debug info';
case this.EventType.fitImage: return 'Fit image';
default: return 'Unknown';
}
},
Expand Down
1 change: 1 addition & 0 deletions cvat/apps/engine/static/engine/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ class PlayerController {
}

fit() {
Logger.addEvent(Logger.EventType.fitImage)
this._model.fit();
}

Expand Down
1 change: 1 addition & 0 deletions cvat/apps/engine/static/engine/js/shapeBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class ShapeBufferController {
let propagateDialogShowed = false;
let propagateHandler = Logger.shortkeyLogDecorator(function() {
if (!propagateDialogShowed) {
blurAllElements();
if (this._model.copyToBuffer()) {
let curFrame = window.cvat.player.frames.current;
let startFrame = window.cvat.player.frames.start;
Expand Down
24 changes: 11 additions & 13 deletions cvat/apps/engine/templates/engine/annotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,21 @@
<input type = "range" id = "playerProgress"/>
</div> <!-- END of PLAYER PANEL -->
<div style="margin-top: 20px">
<button id="menuButton" class="regular h1"> Open Menu </button>
<label class="regular h1" style="margin-left: 50px"> Filter: </label>
<button id="menuButton" class="regular h2"> Open Menu </button>
<label class="regular h2" style="margin-left: 50px"> Filter: </label>
<datalist id="filterSubmitList" style="display: none;"> </datalist>
<input type="text" list="filterSubmitList" id="filterInputString" class="regular h2" placeholder='car[attr/model=/"mazda"'/>
<button id="resetFilterButton" class="regular h1"> Reset </button>
<button class="regular h1" id="undoButton" disabled> &#x27F2; </button>
<button id="resetFilterButton" class="regular h2"> Reset </button>
<button class="regular h2" id="undoButton" disabled> &#x27F2; </button>
<select size="2" class="regular" style="overflow: hidden; width: 15%; top: 0.5em; position: relative;" disabled>
<option id="lastUndoText" title="Undo Action" selected> None </option>
<option id="lastRedoText" title="Redo Action"> None </option>
</select>
<button class="regular h1" id="redoButton" disabled> &#10227; </button>
<button class="regular h2" id="redoButton" disabled> &#10227; </button>
<label class="regular h2" style="margin-left: 15px;"> Propagation: </label>
<input type ="number" id="propagateFramesInput" style="width: 3em" min="1" max="10000" value="50" class="regular h2"/>
<div style="float: right;">
<label class="regular h1"> Frame </label>
<label class="regular h2"> Frame </label>
<input class="regular h2" style="width: 3.5em;" type="number" id="frameNumber">
</div>
<hr>
Expand Down Expand Up @@ -263,15 +265,15 @@
</td>
</tr>
<tr>
<td> <label class="regular h2" for="playerBrightnessRange"> Brightness: </label> </td>
<td> <label for="playerBrightnessRange"> Brightness: </label> </td>
<td> <input type="range" min="50" max="200" value="100" id="playerBrightnessRange"> </td>
</tr>
<tr>
<td> <label class="regular h2" for="playerContrastRange"> Contrast: </label> </td>
<td> <label for="playerContrastRange"> Contrast: </label> </td>
<td> <input type="range" min="50" max="200" value="100" id="playerContrastRange"> </td>
</tr>
<tr>
<td> <label class="regular h2" for="playerSaturationRange"> Saturation: </label> </td>
<td> <label for="playerSaturationRange"> Saturation: </label> </td>
<td> <input type="range" min="0" max="300" value="100" id="playerSaturationRange"> </td>
</tr>
<tr>
Expand Down Expand Up @@ -301,10 +303,6 @@
<td> <label> Auto Saving Interval (Min) </label> </td>
<td> <input type = "number" id="autoSaveTime" style="width: 3em" min="5" max="60" value="15" class="regular h2"/> </td>
</tr>
<tr>
<td> <label> Propagate Frames </label> </td>
<td> <input type = "number" id="propagateFramesInput" style="width: 3em" min="1" max="10000" value="50" class="regular h2"/> </td>
</tr>
</table>
</div>

Expand Down
19 changes: 19 additions & 0 deletions cvat/apps/git/migrations/0002_auto_20190123_1305.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.1.3 on 2019-01-23 10:05

import cvat.apps.git.models
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('git', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='gitdata',
name='status',
field=models.CharField(default=cvat.apps.git.models.GitStatusChoice('!sync'), max_length=20),
),
]