#pragma once

#include <maps/wikimap/mapspro/services/autocart/pipeline/libs/config/include/config.h>
#include <maps/wikimap/mapspro/services/autocart/pipeline/libs/yt_utils/include/batch.h>

#include <mapreduce/yt/interface/client.h>

namespace maps::wiki::autocart::pipeline {

// Download image for each bbox and detect building
//
// Detected buildings are saved in geodetic coordinates (lat, lon)
//
void detectBuildingsInCells(
    NYT::IClientBasePtr client,
    const TString& inputYTTablePath,
    const DetectorConfig& config,
    const TString& outputYTTablePath);

} // namespace maps::wiki::autocart::pipeline
