@@ -153,57 +153,10 @@ let labelTool = {
153
153
* Define these functions in the labeling tools.
154
154
**************************************************/
155
155
156
- // onLoadData: function (dataType, f) {
157
- // this.localOnLoadData[dataType] = f;
158
- // },
159
-
160
156
onInitialize : function ( dataType , f ) {
161
157
this . localOnInitialize [ dataType ] = f ;
162
158
} ,
163
159
164
- /****************** Private functions **************/
165
-
166
- // localOnLoadData: {
167
- // "CAM_FRONT_LEFT":
168
- // function () {
169
- // }
170
- // ,
171
- // "CAM_FRONT":
172
- //
173
- // function () {
174
- // }
175
- //
176
- // ,
177
- // "CAM_FRONT_RIGHT":
178
- //
179
- // function () {
180
- // }
181
- //
182
- // ,
183
- // "CAM_BACK_RIGHT":
184
- //
185
- // function () {
186
- // }
187
- //
188
- // ,
189
- // "CAM_BACK":
190
- //
191
- // function () {
192
- // }
193
- //
194
- // ,
195
- // "CAM_BACK_LEFT":
196
- //
197
- // function () {
198
- // }
199
- //
200
- // ,
201
- // "PCD":
202
- //
203
- // function () {
204
- // }
205
- // },
206
-
207
160
localOnLoadAnnotation : {
208
161
"CAM_FRONT_LEFT" :
209
162
@@ -887,60 +840,6 @@ let labelTool = {
887
840
break ;
888
841
}
889
842
} ,
890
- // changeCamChannel: function (currentChannelNumber, nextChannelNumber) {
891
- // // if (this.dataTypes.indexOf("PCD") >= 0) {
892
- // // // remove all folder of current channel
893
- // // for (var k = 0; k < annotationObjects.contents.length; k++) {
894
- // // guiOptions.removeFolder(annotationObjects.contents[k]["class"] + ' ' + annotationObjects.contents[k]["trackId"]);
895
- // // }
896
- // // }
897
- // if (this.hasLoadedPCD) {
898
- // cFlag = false;
899
- // rFlag = false;
900
- // this.bboxes = [];
901
- // // do not delete bounding boxes that were set previously
902
- // // this.cubeArray[this.currentFileIndex][this.currentCameraChannelIndex] = [];
903
- // numbertagList = [];
904
- // folderBoundingBox3DArray = [];
905
- // guiTag = [];
906
- // numbertagList = [];
907
- // folderPositionArray = [];
908
- // folderSizeArray = [];
909
- // this.bboxIndexArray[labelTool.currentFileIndex][labelTool.currentCameraChannelIndex] = [];
910
- // }
911
- // var previousChannelNumber = currentChannelNumber - 1;
912
- // if (previousChannelNumber < 0) {
913
- // previousChannelNumber = 5;
914
- // }
915
- // this.hasLoadedImage[labelTool.camChannels.indexOf(previousChannelNumber)] = false;
916
- // this.hasLoadedImage[labelTool.camChannels.indexOf(currentChannelNumber)] = false;
917
- // this.hasLoadedImage[labelTool.camChannels.indexOf(nextChannelNumber)] = false;
918
- // this.hasLoadedPCD = false;
919
- // this.showData();
920
- //
921
- // // render labels
922
- // // hold flag not set
923
- // if (this.savedFrames[this.currentFileIndex][this.currentCameraChannelIndex] == true) {
924
- //
925
- // } else {
926
- // // load annotations from file for all three camera views if they exist, otherwise show blank image
927
- // if (annotationFileExist(this.currentFileIndex)) {
928
- // this.getAnnotations(this.currentFileIndex);
929
- // } else {
930
- // // no annotations are loaded
931
- // annotationObjects.clear();
932
- // }
933
- // }
934
- //
935
- // // change FOV of camera
936
- // this.removeObject('rightplane');
937
- // this.removeObject('leftplane');
938
- // this.removeObject('prism');
939
- // this.drawFieldOfView();
940
- //
941
- //
942
- // }
943
- // ,
944
843
changeFrame : function ( newFileIndex ) {
945
844
if ( newFileIndex === labelTool . numFrames - 1 && labelTool . playSequence === true ) {
946
845
// last frame will be shown
@@ -1272,39 +1171,6 @@ let labelTool = {
1272
1171
}
1273
1172
} ,
1274
1173
1275
- // selectYes() {
1276
- // $(function () {
1277
- // $("#label-tool-dialogue-overlay").remove();
1278
- // });
1279
- // if (updateFlag)
1280
- // return;
1281
- // updateFlag = true;
1282
- // document.getElementById("overlay-text").innerHTML = "Updating Database...";
1283
- // $(function () {
1284
- // $("#label-tool-status-overlay").fadeIn();
1285
- // });
1286
- // this.setAnnotations();
1287
- // $.ajax({
1288
- // url: '/labeling_tool/update_database/',
1289
- // type: 'POST',
1290
- // dataType: 'json',
1291
- // data: {
1292
- // images: this.fileNames.length,
1293
- // label_id: this.labelId
1294
- // },
1295
- // complete: function (res) {
1296
- // location.href = "label_select";
1297
- // }.bind(this)
1298
- // })
1299
- // },
1300
- //
1301
- // selectNo() {
1302
- // $(function () {
1303
- // $("#label-tool-dialogue-overlay").fadeOut();
1304
- // });
1305
- // },
1306
-
1307
-
1308
1174
handlePressKey : function ( code , value ) {
1309
1175
if ( code === 13 ) {
1310
1176
this . jumpFrame ( ) ;
0 commit comments