Closed zhou1591 closed 1 year ago
{ "objects": [ { "objectid": 5394, "originId": 5394, "label": "car", "center": { "x": 16.941925048828125, "y": -53.46790313720703, "z": -1.1151456832885742 }, "rotation": { "x": 0, "y": 0, "z": 1.6158190965652475 }, "dimensions": { "width": 1.889937162399292, "height": 1.9773865938186646, "length": 4.970026969909668 }, "box2d": { "camera2": { "x": 674.093, "y": 1231.96253, "width": 184.561, "height": 137.337, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": true, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "car", "from_detection": "true" } }, { "objectid": 5392, "originId": 5392, "label": "car", "center": { "x": 41.64017105102539, "y": -25.719345092773438, "z": -1.9146158695220947 }, "rotation": { "x": 0, "y": 0, "z": 3.1233174800872736 }, "dimensions": { "width": 1.9057060480117798, "height": 1.5843268632888794, "length": 4.584221363067627 }, "box2d": { "camera1": { "x": 591.717, "y": 535.715, "width": 93.55094, "height": 47.071, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera2": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": true, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "car", "from_detection": "true" } }, { "objectid": 1002, "originId": 1002, "label": "car", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 0, "y": 1179.8892, "width": 944.056, "height": 851.44308, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "x": 1215.222, "y": 414.16068, "width": 494.996, "height": 331.97707, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "car" } }, { "objectid": 100018, "originId": 100018, "label": "car", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 1692.94172, "y": 1246.86082, "width": 17.56589, "height": 13.98102, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "car" } }, { "objectid": 100019, "originId": 100019, "label": "van", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 1772.0911, "y": 1240.24039, "width": 14.98478, "height": 18.27092, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "van" } }, { "objectid": 100020, "originId": 100020, "label": "truck", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 1780.52707, "y": 1221.51709, "width": 19.01443, "height": 25.89897, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "truck" } }, { "objectid": 1196, "originId": 1196, "label": "open-tricycle", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 2251.84148, "y": 1250.50264, "width": 54.0098, "height": 86.44092, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera3": { "x": 135.90902, "y": 647.92114, "width": 14.49389, "height": 29.68794, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "open-tricycle" } }, { "objectid": 100025, "originId": 100025, "label": "truck", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 1889.06123, "y": 1225.62725, "width": 10.85303, "height": 16.31596, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "truck" } }, { "objectid": 100027, "originId": 100027, "label": "bicycle", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 2193.9048, "y": 1287.71302, "width": 12.25182, "height": 27.96095, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "bicycle" } }, { "objectid": 100031, "originId": 100031, "label": "traffic-cone", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera2": { "x": 2415.40897, "y": 1297.95309, "width": 4.87668, "height": 37.75493, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "traffic-cone" } }, { "objectid": 1243, "originId": 1243, "label": "rider-motorcycle", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera4": { "x": 860.228, "y": 465.083, "width": 230.855, "height": 256.236, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera2": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "rider-motorcycle" } }, { "objectid": 100024, "originId": 100024, "label": "van", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera4": { "x": 1912.88832, "y": 566.41356, "width": 7.11168, "height": 27.7924, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera2": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera5": { "generateMode": 1 }, "camera6": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "van" } }, { "objectid": 1004, "originId": 1004, "label": "car", "center": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 }, "dimensions": { "width": 2.2512364387512207, "height": 2.799426485300064, "length": 3.8433685302734375 }, "box2d": { "camera6": { "x": 582.11416, "y": 316.343, "width": 1337.88584, "height": 763.657, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": {} }, "camera1": { "generateMode": 1 }, "camera2": { "generateMode": 1 }, "camera3": { "generateMode": 1 }, "camera4": { "generateMode": 1 }, "camera5": { "generateMode": 1 } }, "isExist": false, "generateMode": 2, "attGenerateMode": 2, "coordiGenerateMode": 2, "content": { "label": "car" } } ], "keyFrame": true, "preHasLabeled": false }
还有这种没有内外参的情况 我怎么计算得到 矩阵呀 大佬们能不能给个公式 谢谢
各位大佬 请问这种内参转换成矩阵 能帮忙提供一个公式吗 谢谢
%YAML:1.0
model_type: PINHOLE camera_name: frontWindow3 image_width: 1920 image_height: 1080 distortion_parameters: k1: -6.1400756066801088e-01 k2: 6.4464634727176529e-01 p1: 9.5271445099686658e-03 p2: -2.4673396242808681e-03 projection_parameters: fx: 1.9380892876141004e+03 fy: 1.9564437438038885e+03 cx: 9.2698781499162908e+02 cy: 4.9802960777168624e+02