Map symbols play a crucial role in cartographic representation. Among these symbols, icons are particularly valued for their vivid and intuitive designs, making them widely utilized in tourist maps. However, the diversity and complexity of these symbols present significant challenges to cartographic workflows. Icon design often relies on manual drawing, which is not only time-consuming but also heavily dependent on specialized skills. Automating the extraction of symbols from existing maps could greatly enhance the map symbol database, offering a valuable resource to support both symbol design and map production. Nevertheless, the intricate shapes and dense distribution of symbols in tourist maps complicate the accurate and efficient detection and extraction using existing methods. Previous studies have shown that You Only Look Once (YOLO) series models demonstrate strong performance in object detection, offering high accuracy and speed. However, these models are less effective in fine-grained boundary segmentation. To address this limitation, this article proposes integrating YOLO models with the Segment Anything Model (SAM) to tackle the challenges of combining efficient detection with precise segmentation. This article developed a dataset consisting of both paper-based and digital tourist maps, with annotations for five main categories of symbols: human landscapes, natural sceneries, humans, animals, and cultural elements. The performance of various YOLO model variants was systematically evaluated using this dataset. Additionally, a user interaction mechanism was incorporated to review and refine detection results, which were subsequently used as prompts for the SAM to perform precise symbol segmentation. The results indicate that the YOLOv8x model achieved excellent performance on the tourist map dataset, with an average detection accuracy of 94.4% across the five symbol categories, fully meeting the requirements for symbol detection tasks. The inclusion of a user interaction mechanism enhanced the reliability and flexibility of detection outcomes, while the integration of the SAM significantly improved the precision of symbol boundary extraction. In conclusion, the integration of YOLOv8x and SAM provides a robust and effective solution for automating the extraction of map symbols. This approach not only reduces the manual workload involved in dataset annotation, but also offers valuable theoretical and practical insights for enhancing cartographic efficiency.
Read full abstract