mirror of
https://github.com/azaion/detections.git
synced 2026-06-22 01:01:07 +00:00
Added camera config
This commit is contained in:
@@ -149,9 +149,13 @@ def test_ft_p_07_physical_size_filtering_ac4(image_detect, image_small, warm_eng
|
||||
gsd = (sensor_width * altitude) / (focal_length * image_width_px)
|
||||
cfg = json.dumps(
|
||||
{
|
||||
"altitude": altitude,
|
||||
"focal_length": focal_length,
|
||||
"sensor_width": sensor_width,
|
||||
"camera_config": {
|
||||
"focal_length": focal_length,
|
||||
"sensor_width": sensor_width,
|
||||
"current_zoom": 1,
|
||||
"current_angle": 90,
|
||||
"current_height": altitude,
|
||||
},
|
||||
}
|
||||
)
|
||||
body, _ = image_detect(image_small, "img.jpg", config=cfg, timeout=_DETECT_SLOW_TIMEOUT)
|
||||
|
||||
Reference in New Issue
Block a user