[go: up one dir, main page]

CN109214342B - Method and apparatus for acquiring images - Google Patents

Method and apparatus for acquiring images Download PDF

Info

Publication number
CN109214342B
CN109214342B CN201811069767.4A CN201811069767A CN109214342B CN 109214342 B CN109214342 B CN 109214342B CN 201811069767 A CN201811069767 A CN 201811069767A CN 109214342 B CN109214342 B CN 109214342B
Authority
CN
China
Prior art keywords
point
image
intersection
target
target intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811069767.4A
Other languages
Chinese (zh)
Other versions
CN109214342A (en
Inventor
邵胜均
孙晔
郭欣
朱举章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu International Technology Shenzhen Co Ltd
Original Assignee
Baidu International Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baidu International Technology Shenzhen Co Ltd filed Critical Baidu International Technology Shenzhen Co Ltd
Priority to CN201811069767.4A priority Critical patent/CN109214342B/en
Publication of CN109214342A publication Critical patent/CN109214342A/en
Application granted granted Critical
Publication of CN109214342B publication Critical patent/CN109214342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/35Categorising the entire scene, e.g. birthday party or wedding scene
    • G06V20/38Outdoor scenes
    • G06V20/39Urban scenes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/245Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Traffic Control Systems (AREA)
  • Navigation (AREA)

Abstract

本申请实施例公开了用于获取图像的方法和装置。该方法的一具体实施方式包括:获取目标路口的路口信息,其中,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构;根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点;响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点;获取以成像环境中点为图像中心的目标路口的图像。该实施方式丰富了图像的获取方式,有助于通过路口图像呈现路口的转向信息和拓扑结构。

Figure 201811069767

The embodiments of the present application disclose methods and apparatuses for acquiring images. A specific implementation of the method includes: acquiring the intersection information of the target intersection, wherein the intersection information is used to represent the topology structure of the road section passing through the target intersection at the target intersection; The entry point and exit point of the user at the target intersection; in response to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the road segment that the target user passes through at the target intersection, determine the entry point, the exit point, and the passing road segment The center point of the point on the image is taken as the imaging environment midpoint of the image to be acquired; acquire the image of the target intersection with the imaging environment midpoint as the image center. This embodiment enriches the way of acquiring images, and helps to present the turning information and topology of the intersection through the intersection image.

Figure 201811069767

Description

用于获取图像的方法和装置Method and apparatus for acquiring images

技术领域technical field

本申请实施例涉及计算机技术领域,具体涉及用于获取图像的方法和装置。The embodiments of the present application relate to the field of computer technologies, and in particular, to methods and apparatuses for acquiring images.

背景技术Background technique

计算机领域的发展对人们的衣、食、住、行等方面产生了深远的影响。例如在出行方面,在不熟悉路线的情况下,可以通过各种电子设备的导航功能,实现路径规划、场景图呈现,以指引出行者到达目的地。The development of the computer field has had a profound impact on people's clothing, food, housing and transportation. For example, in terms of travel, in the case of unfamiliar routes, route planning and scene graph presentation can be implemented through the navigation functions of various electronic devices to guide travelers to their destinations.

然而,在一些道路环境里,路口的形态往往多种多样。在此场景下,场景图所呈现的路口的图像,决定着出行者获知路口的拓扑结构以及路口的转向信息的丰富程度。However, in some road environments, the shapes of intersections are often varied. In this scenario, the image of the intersection presented by the scene graph determines the richness of the traveler's knowledge of the topology of the intersection and the steering information of the intersection.

发明内容SUMMARY OF THE INVENTION

本申请实施例提出了用于获取图像的方法和装置。The embodiments of the present application propose a method and apparatus for acquiring an image.

第一方面,本申请实施例提供了一种用于获取图像的方法,该方法包括:获取目标路口的路口信息,其中,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构;根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点;响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点;获取以成像环境中点为图像中心的目标路口的图像。In a first aspect, an embodiment of the present application provides a method for acquiring an image, the method comprising: acquiring intersection information of a target intersection, wherein the intersection information is used to represent the topology structure of a road segment passing through the target intersection at the target intersection; The travel direction and intersection information of the target user at the target intersection, determine the entry point and exit point of the target user at the target intersection; in response to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine that the target user is at the target intersection For the passing section of the intersection, determine the entry point, the exit point and the center point of the points on the passing section as the imaging environment midpoint of the image to be acquired; acquire the image of the target intersection with the imaging environment midpoint as the image center.

在一些实施例中,在确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点,包括:根据行进方向和路口信息,确定目标用户在目标路口的离开路段;响应于确定在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。In some embodiments, determining the entry point, the exit point, and the center point of the point on the passing road section as the point in the imaging environment of the image to be acquired includes: determining the exit section of the target user at the target intersection according to the travel direction and intersection information ; In response to determining that there is no road segment with an included angle less than a preset angle value formed with the leaving road segment in the road segment of the target intersection, determine the entry point, the exit point and the center point of the points on the passing road segment as the imaging environment for the image to be acquired midpoint.

在一些实施例中,获取以成像环境中点为图像中心的目标路口的图像之前,该方法还包括:响应于确定进入点与离开点之间的距离小于距离阈值,将进入点与离开点的中点确定为待获取图像的成像环境中点。In some embodiments, before acquiring the image of the target intersection with the point in the imaging environment as the center of the image, the method further includes: in response to determining that the distance between the entry point and the exit point is less than a distance threshold, comparing the distance between the entry point and the exit point The midpoint is determined as the midpoint of the imaging environment of the image to be acquired.

在一些实施例中,在获取以成像环境中点为图像中心的目标路口的图像之前,该方法还包括:根据行进方向和路口信息,确定目标用户在目标路口的离开路段;响应于确定进入点与离开点之间的距离小于距离阈值,并且在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段,将进入点与离开点的中点确定为待获取图像的成像环境中点。In some embodiments, before acquiring the image of the target intersection with the point in the imaging environment as the center of the image, the method further includes: determining the exit section of the target user at the target intersection according to the travel direction and the intersection information; in response to determining the entry point The distance between the exit point and the exit point is less than the distance threshold, and there is no road segment whose angle formed with the exit road segment is smaller than the preset angle value in the road segments of the target intersection, and the midpoint between the entry point and the exit point is determined as the image to be acquired the midpoint of the imaging environment.

在一些实施例中,该方法还包括:响应于确定在目标路口的路段中存在与离开路段形成的夹角小于预设的角度值的路段,确定位于离开路段的路段边界上的、目标路口的分叉点,确定分叉点、进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。In some embodiments, the method further includes: in response to determining that there is a road segment in the road segment of the target intersection and the included angle formed with the exit road segment is less than a preset angle value, determining a segment boundary of the target intersection located on the boundary of the road segment of the exit road segment. For the bifurcation point, the center point of the bifurcation point, the entry point, the departure point, and the points on the passing road section is determined as the imaging environment midpoint of the image to be acquired.

在一些实施例中,获取以成像环境中点为图像中心的目标路口的图像,包括:确定分叉点、进入点、离开点和经过路段上的点的最小外接矩形的宽度和长度;确定目标用户在目标路口的进入路段的宽度;根据进入路段的宽度和最小外接矩形的宽度,确定待获取图像的显示范围宽度;根据进入路段的长度,确定待获取图像的显示范围长度;根据显示范围宽度、显示范围长度、最小外接矩形的宽度和长度的比值,确定成像环境中点到待获取图像的下边沿对应的道路的距离;获取以成像环境中点为图像中心,并且,图像下边沿对应的路线与成像环境中点的距离为所确定的距离的目标路口的图像。In some embodiments, acquiring an image of a target intersection with a point in the imaging environment as the center of the image includes: determining a bifurcation point, an entry point, an exit point, and the width and length of a minimum circumscribed rectangle passing through a point on the road segment; determining the target The width of the entry section of the user at the target intersection; the width of the display range of the image to be acquired is determined according to the width of the entry section and the width of the minimum circumscribed rectangle; the length of the display range of the image to be acquired is determined according to the length of the entry section; the width of the display range is determined according to the width of the entry section. , the length of the display range, the ratio of the width and length of the minimum circumscribed rectangle, and determine the distance from the point in the imaging environment to the road corresponding to the lower edge of the image to be acquired; the acquisition takes the point in the imaging environment as the center of the image, and the lower edge of the image corresponds to The distance of the route from the point in the imaging environment is the image of the target intersection where the distance is determined.

在一些实施例中,获取以成像环境中点为图像中心的目标路口的图像,包括:根据成像环境中点的位置,确定待获取图像的图像获取位置;控制目标图像采集装置在图像获取位置获取以成像环境中点为图像中心的目标路口的图像。In some embodiments, acquiring an image of a target intersection with a point in the imaging environment as the image center includes: determining an image acquisition position of the image to be acquired according to the position of the point in the imaging environment; controlling the target image acquisition device to acquire the image at the image acquisition position An image of a target intersection with a point in the imaging environment as the center of the image.

第二方面,本申请实施例提供了一种用于获取图像的装置,该装置包括:第一获取单元,被配置成获取目标路口的路口信息,其中,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构;第一确定单元,被配置成根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点;第二确定单元,被配置成响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点;第二获取单元,被配置成获取以成像环境中点为图像中心的目标路口的图像。In a second aspect, an embodiment of the present application provides an apparatus for acquiring an image, the apparatus comprising: a first acquiring unit configured to acquire intersection information of a target intersection, wherein the intersection information is used to represent a road segment passing through the target intersection The topology structure at the target intersection; the first determining unit is configured to determine the entry point and the exit point of the target user at the target intersection according to the travel direction and intersection information of the target user at the target intersection; the second determining unit is configured to respond In order to determine that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the road segment that the target user passes through at the target intersection, and determine the center point of the entry point, the exit point, and the point on the passing road segment as the imaging of the image to be acquired. a midpoint of the environment; a second acquisition unit configured to acquire an image of the target intersection with the midpoint of the imaging environment as the center of the image.

在一些实施例中,第二确定单元包括:第一确定模块,被配置成根据行进方向和路口信息,确定目标用户在目标路口的离开路段;第二确定模块,被配置成响应于确定在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。In some embodiments, the second determination unit includes: a first determination module configured to determine the departure section of the target user at the target intersection according to the travel direction and intersection information; a second determination module configured to respond to the determination that the target user is at the target intersection If there is no road segment with an angle less than a preset angle value formed with the exiting road segment in the road segment at the intersection, the center point of the entry point, the exit point and the points on the passing road segment is determined as the imaging environment midpoint of the image to be acquired.

在一些实施例中,该装置还包括:第三确定单元,被配置成响应于确定进入点与离开点之间的距离小于距离阈值,将进入点与离开点的中点确定为待获取图像的成像环境中点。In some embodiments, the apparatus further includes: a third determination unit configured to, in response to determining that the distance between the entry point and the exit point is less than the distance threshold, determine the midpoint of the entry point and the exit point as the midpoint of the image to be acquired midpoint of the imaging environment.

在一些实施例中,该装置还包括:第四确定单元,被配置成根据行进方向和路口信息,确定目标用户在目标路口的离开路段;第五确定单元,被配置成响应于确定进入点与离开点之间的距离小于距离阈值,并且在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段,将进入点与离开点的中点确定为待获取图像的成像环境中点。In some embodiments, the apparatus further includes: a fourth determination unit, configured to determine, according to the travel direction and the intersection information, the exit section of the target user at the target intersection; a fifth determination unit, configured to respond to determining the entry point and the intersection information. The distance between the exit points is less than the distance threshold, and there is no road segment whose angle formed with the exit road segment is less than the preset angle value in the road segments of the target intersection, and the midpoint of the entry point and the exit point is determined as the image to be acquired. midpoint of the imaging environment.

在一些实施例中,该装置还包括:第六确定单元,被配置成响应于确定在目标路口的路段中存在与离开路段形成的夹角小于预设的角度值的路段,确定位于离开路段的路段边界上的、目标路口的分叉点,确定分叉点、进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。In some embodiments, the apparatus further includes: a sixth determination unit, configured to, in response to determining that there is a road section in the road section of the target intersection and the angle formed with the departure road section is smaller than a preset angle value, determine the road section located in the departure road section For the bifurcation point of the target intersection on the boundary of the road segment, the center point of the bifurcation point, the entry point, the departure point and the points on the passing road segment is determined as the imaging environment midpoint of the image to be acquired.

在一些实施例中,第二获取单元包括:第三确定模块,被配置成确定分叉点、进入点、离开点和经过路段上的点的最小外接矩形的宽度和长度;第四确定模块,被配置成确定目标用户在目标路口的进入路段的宽度;第五确定模块,被配置成根据进入路段的宽度和最小外接矩形的宽度,确定待获取图像的显示范围宽度;第六确定模块,被配置成根据进入路段的长度,确定待获取图像的显示范围长度;第七确定模块,被配置成根据显示范围宽度、显示范围长度、最小外接矩形的宽度和长度的比值,确定成像环境中点到待获取图像的下边沿对应的道路的距离;获取模块,被配置成获取以成像环境中点为图像中心,并且,图像下边沿对应的路线与成像环境中点的距离为所确定的距离的目标路口的图像。In some embodiments, the second acquisition unit includes: a third determination module configured to determine the width and length of the smallest circumscribed rectangle of the bifurcation point, the entry point, the departure point and the point passing through the road segment; the fourth determination module, is configured to determine the width of the entry road segment of the target user at the target intersection; the fifth determination module is configured to determine the width of the display range of the image to be acquired according to the width of the entry road segment and the width of the minimum circumscribed rectangle; It is configured to determine the length of the display range of the image to be acquired according to the length of the entering road section; the seventh determination module is configured to determine the point to the point in the imaging environment according to the width of the display range, the length of the display range, and the ratio of the width and length of the minimum circumscribed rectangle. the distance of the road corresponding to the lower edge of the image to be acquired; the acquisition module is configured to acquire the target with the midpoint of the imaging environment as the center of the image, and the distance between the route corresponding to the lower edge of the image and the midpoint of the imaging environment is the determined distance Image of intersection.

在一些实施例中,第二获取单元包括:第八确定模块,被配置成根据成像环境中点的位置,确定待获取图像的图像获取位置;控制模块,被配置成控制目标图像采集装置在图像获取位置获取以成像环境中点为图像中心的目标路口的图像。In some embodiments, the second acquisition unit includes: an eighth determination module, configured to determine an image acquisition position of the image to be acquired according to the position of a point in the imaging environment; a control module, configured to control the target image acquisition device in the image The acquisition position acquires an image of the target intersection with a point in the imaging environment as the center of the image.

第三方面,本申请实施例提供了一种用于获取图像的电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行,使得该一个或多个处理器实现如上述用于获取图像的方法中任一实施例的方法。In a third aspect, an embodiment of the present application provides an electronic device for acquiring an image, including: one or more processors; a storage device on which one or more programs are stored, when the one or more programs are The one or more processors described above execute such that the one or more processors implement the method of any of the embodiments of the above-described method for acquiring an image.

第四方面,本申请实施例提供了一种用于获取图像的计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上述用于获取图像的方法中任一实施例的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium for acquiring an image, on which a computer program is stored, and when the program is executed by a processor, implements any one of the above-mentioned methods for acquiring an image Methods.

本申请实施例提供的用于获取图像的方法和装置,通过获取目标路口的路口信息,然后,根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点,之后,响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点,最后,获取以成像环境中点为图像中心的目标路口的图像,从而丰富了图像的获取方式,有助于提高呈现路口的转向信息和拓扑结构的丰富性。The method and device for acquiring an image provided by the embodiments of the present application obtain the intersection information of the target intersection, and then determine the entry point and the exit point of the target user at the target intersection according to the travel direction and intersection information of the target user at the target intersection. , and then, in response to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the road segment that the target user passes through at the target intersection, and determine the entry point, the exit point, and the center point of the points on the passing road segment as the waiting point. The midpoint of the imaging environment of the image is acquired, and finally, the image of the target intersection with the midpoint of the imaging environment as the center of the image is acquired, thereby enriching the acquisition method of the image and helping to improve the richness of the turning information and topology of the intersection.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application may be applied;

图2是根据本申请的用于获取图像的方法的一个实施例的流程图;Figure 2 is a flowchart of one embodiment of a method for acquiring an image according to the present application;

图3A、图3B、图3C、图3D是根据本申请的用于获取图像的方法的一个应用场景的示意图;3A, 3B, 3C, and 3D are schematic diagrams of an application scenario of the method for acquiring an image according to the present application;

图4是根据本申请的用于获取图像的方法的又一个实施例的流程图;FIG. 4 is a flowchart of yet another embodiment of a method for acquiring an image according to the present application;

图5A和图5B是根据本申请的一个实施例的图像获取示意图;5A and 5B are schematic diagrams of image acquisition according to an embodiment of the present application;

图6是根据本申请的用于获取图像的装置的一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of an apparatus for acquiring an image according to the present application;

图7是适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing the electronic device according to the embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

图1示出了可以应用本申请实施例的用于获取图像的方法或用于获取图像的装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 of an embodiment of a method for acquiring an image or an apparatus for acquiring an image to which embodiments of the present application may be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 may include terminal devices 101 , 102 , and 103 , a network 104 and a server 105 . The network 104 is a medium used to provide a communication link between the terminal devices 101 , 102 , 103 and the server 105 . The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息(例如路口信息)等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如电子地图类应用、导航类应用、网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages (eg, intersection information) and the like. Various communication client applications can be installed on the terminal devices 101 , 102 and 103 , such as electronic map applications, navigation applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102 and 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) Players, Laptops and Desktops, etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as a plurality of software or software modules (eg, software or software modules for providing distributed services), or can be implemented as a single software or software module. There is no specific limitation here.

服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103发送的导航请求提供支持的后台服务器。后台服务器可以对接收到的导航请求等数据进行分析等处理,并将处理结果(例如路径规划信息或路径图像)反馈给终端设备。The server 105 may be a server that provides various services, for example, a background server that provides support for the navigation requests sent by the terminal devices 101 , 102 , and 103 . The background server can analyze and process the received navigation request and other data, and feed back the processing results (such as route planning information or route images) to the terminal device.

需要说明的是,本申请实施例所提供的用于获取图像的方法可以由服务器105执行,相应地,用于获取图像的装置可以设置于服务器105中。此外,本申请实施例所提供的用于获取图像的方法也可以由终端设备101、102、103执行,相应地,用于获取图像的装置也可以设置于终端设备101、102、103中。It should be noted that the method for acquiring an image provided by the embodiment of the present application may be executed by the server 105 , and correspondingly, the apparatus for acquiring an image may be provided in the server 105 . In addition, the methods for acquiring images provided in the embodiments of the present application may also be executed by the terminal devices 101 , 102 , and 103 , and correspondingly, the apparatuses for acquiring images may also be provided in the terminal devices 101 , 102 , and 103 .

需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or can be implemented as a single server. When the server is software, it can be implemented as a plurality of software or software modules (for example, software or software modules for providing distributed services), or can be implemented as a single software or software module. There is no specific limitation here.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。当用于获取图像的方法运行于其上的电子设备不需要与其他电子设备进行数据传输时,该系统架构可以仅包括用于获取图像的方法运行于其上的电子设备。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs. When the electronic device on which the method for acquiring an image operates does not require data transmission with other electronic devices, the system architecture may only include the electronic device on which the method for acquiring an image operates.

继续参考图2,示出了根据本申请的用于获取图像的方法的一个实施例的流程200。该用于获取图像的方法,包括以下步骤:With continued reference to FIG. 2 , a flow 200 of one embodiment of a method for acquiring an image according to the present application is shown. The method for acquiring an image includes the following steps:

步骤201,获取目标路口的路口信息。Step 201, obtaining intersection information of the target intersection.

在本实施例中,用于获取图像的方法的执行主体(例如图1所示的服务器或终端设备)可以通过有线连接方式或者无线连接方式获取目标路口的路口信息。其中,上述目标路口可以是用户即将进入的路口。例如在用户通过手机或者车辆的导航功能行进,且该用户在距离路口预定距离(例如5米,10米等)并且向该路口行进时,该路口可以作为上述目标路口。路口可以是道路(或者路段)交汇处。上述路口信息可以用于表征经过目标路口的路段在目标路口的拓扑结构。In this embodiment, the execution body of the method for acquiring an image (for example, the server or the terminal device shown in FIG. 1 ) can acquire the intersection information of the target intersection through a wired connection or a wireless connection. The above-mentioned target intersection may be an intersection that the user is about to enter. For example, when a user travels through the navigation function of a mobile phone or a vehicle, and the user is at a predetermined distance from an intersection (eg, 5 meters, 10 meters, etc.) and travels to the intersection, the intersection can be used as the target intersection. A junction may be a road (or road segment) junction. The above-mentioned intersection information can be used to characterize the topology structure of the road segment passing through the target intersection at the target intersection.

步骤202,根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点。Step 202: Determine the entry point and the exit point of the target user at the target intersection according to the travel direction and intersection information of the target user at the target intersection.

在本实施例中,根据目标用户在目标路口的行进方向和步骤201获取的路口信息,上述执行主体可以确定目标用户在目标路口的进入点和离开点。其中,当上述执行主体为终端设备时,上述目标用户可以是上述执行主体的使用者;当上述执行主体不是终端设备(例如是服务器)时,上述目标用户可以是通过其所使用的终端设备与上述执行主体进行交互的用户。上述进入点可以是指示进入上述目标路口的点。上述离开点可以是指示离开上述目标路口的点。In this embodiment, according to the traveling direction of the target user at the target intersection and the intersection information obtained in step 201, the above-mentioned execution subject can determine the entry point and the exit point of the target user at the target intersection. Wherein, when the execution body is a terminal device, the target user may be the user of the execution body; when the execution body is not a terminal device (for example, a server), the target user may be the terminal device used by the target user and the user of the execution body. The user who interacts with the above execution body. The aforementioned entry point may be a point indicating entry into the aforementioned target intersection. The above-mentioned departure point may be a point instructing to leave the above-mentioned target intersection.

实践中,在OpenGL(Open Graphics Library,开放图形库)的相机模型中,上述进入点可以是进入LINK(又称驶入LINK)的终点(即进入LINK指向的NODE(节点或结点)),上述离开点可以是退出LINK(又称驶出LINK)的起点(即退出LINK的起始NODE)。其中,上述NODE(结点或节点)可以是用于表示道路连通网络而虚拟出来的节点对象。上述LINK可以用于表示NODE与NODE之间通路的线型对象,可以由两个NODE和若干形状点组成。可以近似的理解为现实道路连接两个路口的一段道路。In practice, in the camera model of OpenGL (Open Graphics Library), the above entry point can be the end point of entering the LINK (also known as entering the LINK) (that is, entering the NODE (node or node) pointed to by the LINK), The above-mentioned departure point may be the starting point for exiting the LINK (also known as exiting the LINK) (ie, the starting NODE for exiting the LINK). Wherein, the above-mentioned NODE (node or node) may be a virtual node object used to represent a road connected network. The above LINK can be used to represent the line object of the path between NODE and NODE, which can be composed of two NODEs and several shape points. It can be approximated as a section of road connecting two intersections by a real road.

作为示例,请参考图3A。在图3A中,路口信息表征目标路口为二分歧路口。在这里,上述执行主体将进入LINK(即进入路段)的终点确定为进入点,将退出LINK(即离开路段)的起点确定为离开点。由此,上述执行主体根据目标用户在目标路口的行进方向(如图中的箭头304所示)与路口信息,确定出了目标用户在目标路口的进入点302和离开点302(进入点和离开点为同一点)。可以理解,点303到点302的有向线段可以为进入LINK(即进入路段),点302到点301的有向线段可以为退出LINK(即离开路段)。As an example, please refer to Figure 3A. In FIG. 3A , the intersection information indicates that the target intersection is a two-branch intersection. Here, the above-mentioned executive body determines the end point of entering the LINK (ie, entering the link) as the entry point, and the starting point of exiting the LINK (ie, leaving the link) as the exit point. Thus, the above executive body determines the entry point 302 and the exit point 302 (the entry point and the exit point 302 (the entry point and the exit point) of the target user at the target intersection according to the traveling direction of the target user at the target intersection (as shown by the arrow 304 in the figure) and the intersection information. the same point). It can be understood that the directed line segment from point 303 to point 302 may be an entry LINK (ie, entering the road segment), and the directed line segment from point 302 to point 301 may be an exit LINK (ie, leaving the road segment).

作为又一示例,请参考图3B。在图3B中,路口信息表征目标路口为十字路口。在这里,上述执行主体同样将进入LINK的终点确定为进入点,将退出LINK的起点确定为离开点。由此,上述执行主体根据目标用户在目标路口的行进方向(如图中的箭头305所示)与路口信息,确定出了目标用户在目标路口的进入点309和离开点307。可以理解,点310到点309的有向线段可以为进入LINK,点307到点306的有向线段可以为退出LINK。As yet another example, please refer to Figure 3B. In FIG. 3B, the intersection information indicates that the target intersection is an intersection. Here, the above-mentioned executive body also determines the end point of entering the LINK as the entry point, and the starting point of exiting the LINK as the exit point. Thus, the above-mentioned executive body determines the entry point 309 and the exit point 307 of the target user at the target intersection according to the travel direction of the target user at the target intersection (as shown by the arrow 305 in the figure) and the intersection information. It can be understood that the directed line segment from point 310 to point 309 may be the entry LINK, and the directed line segment from point 307 to point 306 may be the exit LINK.

下面返回图2。Return to Figure 2 below.

步骤203,响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。Step 203, in response to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the road segment that the target user passes through at the target intersection, and determine the entry point, the exit point, and the center point of the points on the road segment to be passed. Acquire the imaging environment midpoint of the image.

在本实施例中,在确定进入点与离开点之间的距离大于等于预设的距离阈值的情况下,上述执行主体可以确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。其中,上述距离阈值可以是用户或技术人员预先设置的各种距离值。例如,距离阈值可以是1(米)、3(米)等等。上述距离阈值可以是用户或技术人员根据实际需求而设置的。上述经过路段可以是以进入点为起点,或者,以离开点为终点的路段。In this embodiment, when it is determined that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, the above-mentioned execution subject may determine the segment of the target user's passing through the target intersection, determine the entry point, the exit point and the passing point. The center point of the points on the road section is used as the imaging environment center point of the image to be acquired. The above distance threshold may be various distance values preset by a user or a technician. For example, the distance threshold may be 1 (meter), 3 (meter), and so on. The above distance threshold may be set by a user or a technician according to actual needs. The above-mentioned passing road segment may be a road segment starting from the entry point or ending at the exit point.

作为示例,请继续参考图3A。在图3A中,由于进入点和离开点为同一点,因而,在图3A所示的二分歧路口中可以不包括经过路段(由于此时进入点与离开点之间的距离小于预设的距离阈值,因而无需确定目标用户在目标路口的经过路段)。As an example, please continue to refer to Figure 3A. In FIG. 3A, since the entry point and the exit point are the same point, the two-branch intersection shown in FIG. 3A may not include the passing road segment (because the distance between the entry point and the exit point is smaller than the preset distance at this time) threshold, so there is no need to determine the road segment that the target user passes through at the target intersection).

作为又一示例,请继续参考图3B。在图3B中,进入点与离开点之间的距离大于等于预设的距离阈值,上述执行主体可以确定目标用户在目标路口的经过路段为点309到点308的有向线段,以及点308到点307的有向线段。As yet another example, please continue to refer to FIG. 3B. In FIG. 3B , the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, and the above-mentioned executive body can determine that the road segment that the target user passes through at the target intersection is a directional line segment from point 309 to point 308 , and a directional line segment from point 308 to point 308 Directed segment of point 307.

接下来,上述执行主体可以确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。在这里,上述经过路段上的点可以是经过路段的形状点(即OpenGL中的经过LINK的形状点),也可以是上述经过路段上预设数量的点。上述成像环境中点是上述目标路口中的一个点,该成像环境中点对应待获取图像的中间点。Next, the above-mentioned executive body may determine the entry point, the exit point, and the center point of the points on the passing road section as the imaging environment center point of the image to be acquired. Here, the points on the passing road section may be shape points of the passing road section (ie, the shape points passing through LINK in OpenGL), or may be a preset number of points on the passing road section. The above-mentioned midpoint of the imaging environment is a point in the above-mentioned target intersection, and the midpoint of the imaging environment corresponds to the middle point of the image to be acquired.

在本实施例的一些可选的实现方式中,对于步骤203中的步骤:确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点,上述执行主体还可以按照如下步骤执行:In some optional implementations of this embodiment, for the step in step 203: determining the entry point, the exit point, and the center point of the point on the passing road section as the imaging environment center point of the image to be acquired, the above-mentioned execution subject may also Follow the steps below:

首先,上述执行主体可以根据行进方向和路口信息,确定目标用户在目标路口的离开路段。其中,上述离开路段可以是以离开点为起点的路段,离开路段的长度可以是预先设置的。First of all, the above-mentioned executive body may determine, according to the traveling direction and the intersection information, the section of the target user's departure at the target intersection. Wherein, the above-mentioned departure road segment may be a road segment starting from the departure point, and the length of the departure road segment may be preset.

在OpenGL的相机模型中,上述离开路段可以是退出LINK。In OpenGL's camera model, the above-mentioned exit link may be an exit LINK.

作为示例,请继续参考图3A。上述执行主体根据行进方向304和路口信息,确定出了目标用户在目标路口的离开路段为点302到点301的有向线段。As an example, please continue to refer to Figure 3A. According to the travel direction 304 and the intersection information, the above executive body determines that the target user's departure section at the target intersection is a directed line segment from point 302 to point 301 .

作为又一示例,请继续参考图3B。上述执行主体根据行进方向305和路口信息,确定出了目标用户在目标路口的离开路段为点307到点306的有向线段。As yet another example, please continue to refer to FIG. 3B. According to the travel direction 305 and the intersection information, the above executive body determines that the target user's departure section at the target intersection is a directed line segment from point 307 to point 306 .

然后,在确定在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段的情况下,上述执行主体可以确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。Then, when it is determined that there is no road segment whose included angle with the leaving road segment is smaller than the preset angle value in the road segment of the target intersection, the above-mentioned executive body may determine the entry point, the exit point, and the center point of the points on the passing road segment as the midpoint of the imaging environment for the image to be acquired.

作为示例,上述执行主体或者其他电子设备,可以按照如下步骤确定在目标路口的路段中是否存在与离开路段形成的夹角小于预设的角度值的路段:请继续参考图3A。在图3A中,目标路口的路段中存在与离开路段形成的夹角小于预设的角度值(例如45度)的路段(例如驶入路段的延伸方向的路段和驶出路段形成的夹角小于预设的角度值(例如45度))。As an example, the above-mentioned executive body or other electronic device may determine whether there is a road segment in the road segment of the target intersection whose angle formed with the leaving road segment is smaller than the preset angle value according to the following steps: please continue to refer to FIG. 3A . In FIG. 3A , there are road sections in the target intersection whose included angle formed with the exiting section is smaller than a preset angle value (for example, 45 degrees) (for example, the included angle formed by the extending direction of the incoming section and the outgoing section is less than a preset angle value (eg 45 degrees).

作为又一示例,请继续参考图3B。在图3B中,目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值(例如45度)的路段(在这里,目标路口的路段与离开路段形成的夹角均为90度)。As yet another example, please continue to refer to FIG. 3B. In FIG. 3B , there is no road segment in the segment of the target intersection whose included angle with the leaving road segment is smaller than a preset angle value (for example, 45 degrees) (here, the included angle formed by the segment at the target intersection and the leaving road segment is both 90° Spend).

在本实施例的一些可选的实现方式中,在确定进入点与离开点之间的距离小于距离阈值的情况下,上述执行主体还可以将进入点与离开点的中点确定为待获取图像的成像环境中点。In some optional implementations of this embodiment, in the case where it is determined that the distance between the entry point and the exit point is less than the distance threshold, the above-mentioned execution body may also determine the midpoint of the entry point and the exit point as the image to be acquired the midpoint of the imaging environment.

在本实施例的一些可选的实现方式中,上述执行主体还可以:In some optional implementation manners of this embodiment, the foregoing executive body may also:

首先,根据行进方向和路口信息,确定目标用户在目标路口的离开路段。First, according to the travel direction and the intersection information, determine the departure section of the target user at the target intersection.

然后,在确定进入点与离开点之间的距离小于距离阈值,并且在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段的情况下,将进入点与离开点的中点确定为待获取图像的成像环境中点。Then, when it is determined that the distance between the entry point and the exit point is less than the distance threshold, and there is no road segment with an included angle less than the preset angle value formed with the exit road segment in the road segments of the target intersection, the entry point and the exit point are compared with each other. The midpoint of the point is determined as the midpoint of the imaging environment of the image to be acquired.

在本实施例的一些可选的实现方式中,在确定在目标路口的路段中存在与离开路段形成的夹角小于预设的角度值的路段的情况下,上述执行主体还可以确定位于离开路段的路段边界上的、目标路口的分叉点,确定分叉点、进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。其中,上述分叉点可以是离开路段与其他路段的边界交点。作为示例,请参考图3A。上述执行主体确定出了位于离开路段的路段边界上的、目标路口的分叉点为点300。In some optional implementations of this embodiment, when it is determined that there is a road segment in the road segment of the target intersection whose angle formed with the leaving road segment is smaller than a preset angle value, the above-mentioned executive body may also determine that the road segment is located at the leaving road segment The bifurcation point of the target intersection on the boundary of the road segment is determined, and the center point of the bifurcation point, the entry point, the departure point and the points on the passing road segment is determined as the imaging environment midpoint of the image to be acquired. Wherein, the above-mentioned bifurcation point may be the boundary intersection point between the leaving road section and other road sections. As an example, please refer to Figure 3A. The above executive body determines that the bifurcation point of the target intersection located on the boundary of the road segment leaving the road segment is point 300 .

步骤204,获取以成像环境中点为图像中心的目标路口的图像。Step 204 , acquiring an image of the target intersection with the point in the imaging environment as the center of the image.

在本实施例中,上述执行主体可以获取以成像环境中点为图像中心的目标路口的图像。In this embodiment, the above-mentioned execution subject may acquire an image of a target intersection with a point in the imaging environment as the center of the image.

可以理解,上述执行主体在步骤204获取的图像的中点对应的实际环境中的点即为上述成像环境中点。由此,获取以成像环境中点为图像中心的目标路口的图像,可以使得上述目标路口的转向信息和拓扑结构更丰富地呈现在上述图像上,进而,可以帮助用户了解目标路口的情况,利于用户出行,一定程度上降低了交通事故的发生概率。It can be understood that the point in the actual environment corresponding to the midpoint of the image acquired by the above-mentioned execution subject in step 204 is the above-mentioned midpoint of the imaging environment. Therefore, acquiring the image of the target intersection with the midpoint of the imaging environment as the center of the image can make the steering information and topology of the target intersection more abundantly presented on the above image, and further, it can help the user to understand the situation of the target intersection, which is beneficial to When users travel, the probability of traffic accidents is reduced to a certain extent.

继续参见图3A-图3D,图3A-图3D是根据本申请的用于获取图像的方法的一个应用场景的示意图。在图3A的应用场景中,终端设备首先获取目标路口的路口信息。在这里,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构(在图3A中路口信息表征经过目标路口为二分歧路的路口)。然后,上述终端设备根据目标用户在目标路口的行进方向(如图中的箭头304所示)和上述路口信息,确定出目标用户在目标路口的进入点302和离开点302。在这里,由于进入点302和离开点302为同一点,进入点302和离开点302之间的距离小于预设的距离阈值(例如1米)。上述终端设备将点302确定为待获取图像的成像环境中点,以成像环境中点为图像中心的目标路口的图像(如图3C所示,其中,图像的中点302对应上述成像环境中点)。接着,上述目标用户继续前行,来到如图3B所示的路口(即目标路口)。在这里,终端设备首先获取目标路口的路口信息。在这里,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构(在图3B中路口信息表征经过目标路口为十字路口)。然后,上述终端设备根据目标用户在目标路口的行进方向(如图中的箭头305所示)和上述路口信息,确定出目标用户在目标路口的进入点309和离开点307。在这里,由于进入点309和离开点307之间的距离大于等于预设的距离阈值(例如1米)。上述终端设备确定目标用户在目标路口的经过路段(例如点309到点308的有向线段和点308到点307的有向线段),确定进入点309、离开点307和经过路段(点309到点308的有向线段和点308到点307的有向线段)上的点的中心点作为待获取图像的成像环境中点,以成像环境中点为图像中心的目标路口的图像(如图3D所示,其中,图像的中点311对应上述成像环境中点)。Continue to refer to FIG. 3A-FIG. 3D, FIG. 3A-FIG. 3D are schematic diagrams of an application scenario of the method for acquiring an image according to the present application. In the application scenario of FIG. 3A , the terminal device first obtains the intersection information of the target intersection. Here, the intersection information is used to represent the topological structure of the road segment passing through the target intersection at the target intersection (in FIG. 3A , the intersection information represents an intersection with two branch roads passing through the target intersection). Then, the terminal device determines the entry point 302 and the exit point 302 of the target user at the target intersection according to the travel direction of the target user at the target intersection (as shown by the arrow 304 in the figure) and the intersection information. Here, since the entry point 302 and the exit point 302 are the same point, the distance between the entry point 302 and the exit point 302 is less than a preset distance threshold (eg, 1 meter). The above-mentioned terminal device determines the point 302 as the midpoint of the imaging environment of the image to be acquired, and the image of the target intersection with the midpoint of the imaging environment as the center of the image (as shown in FIG. 3C , wherein the midpoint 302 of the image corresponds to the midpoint of the above-mentioned imaging environment. ). Next, the above-mentioned target user continues to move forward and arrives at the intersection (ie, the target intersection) as shown in FIG. 3B . Here, the terminal device first obtains the intersection information of the target intersection. Here, the intersection information is used to represent the topology structure of the road segment passing through the target intersection at the target intersection (in FIG. 3B , the intersection information indicates that passing through the target intersection is an intersection). Then, the terminal device determines the entry point 309 and the exit point 307 of the target user at the target intersection according to the travel direction of the target user at the target intersection (as shown by the arrow 305 in the figure) and the intersection information. Here, because the distance between the entry point 309 and the exit point 307 is greater than or equal to a preset distance threshold (for example, 1 meter). The above-mentioned terminal device determines the road segment that the target user passes through at the target intersection (for example, the directed line segment from point 309 to point 308 and the directed line segment from point 308 to point 307), and determines the entry point 309, the exit point 307, and the passing road segment (point 309 to The center point of the point on the directional line segment of point 308 and the directional line segment from point 308 to point 307) is taken as the midpoint of the imaging environment of the image to be acquired, and the image of the target intersection with the midpoint of the imaging environment as the center of the image (as shown in Figure 3D shown, wherein the midpoint 311 of the image corresponds to the above-mentioned midpoint of the imaging environment).

本申请的上述实施例提供的方法,通过获取目标路口的路口信息,然后,根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点,之后,在确定进入点与离开点之间的距离大于等于预设的距离阈值的情况下,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点,最后,获取以成像环境中点为图像中心的目标路口的图像,从而丰富了图像的获取方式,有助于提高呈现路口的转向信息和拓扑结构的丰富性。In the method provided by the above-mentioned embodiments of the present application, the intersection information of the target intersection is obtained, and then, according to the travel direction and intersection information of the target user at the target intersection, the entry point and the exit point of the target user at the target intersection are determined. When the distance between the entry point and the exit point is greater than or equal to the preset distance threshold, determine the road segment that the target user passes through at the target intersection, and determine the center point of the entry point, the exit point, and the points on the passing road segment as the image to be acquired. The midpoint of the imaging environment, and finally, the image of the target intersection with the midpoint of the imaging environment as the center of the image is obtained, thereby enriching the acquisition method of the image and helping to improve the richness of the turning information and topology of the intersection.

进一步参考图4,其示出了用于获取图像的方法的又一个实施例的流程400。该用于获取图像的方法的流程400,包括以下步骤:With further reference to Figure 4, a flow 400 of yet another embodiment of a method for acquiring an image is shown. The process 400 of the method for acquiring an image includes the following steps:

步骤401,获取目标路口的路口信息。之后,执行步骤402。Step 401, obtaining intersection information of a target intersection. After that, step 402 is performed.

在本实施例中,步骤401与图2对应实施例中的步骤201基本一致,这里不再赘述。In this embodiment, step 401 is basically the same as step 201 in the embodiment corresponding to FIG. 2 , and details are not repeated here.

步骤402,根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点。之后,执行步骤403。Step 402: Determine the entry point and the exit point of the target user at the target intersection according to the travel direction and intersection information of the target user at the target intersection. After that, step 403 is executed.

在本实施例中,步骤402与图2对应实施例中的步骤202基本一致,这里不再赘述。In this embodiment, step 402 is basically the same as step 202 in the embodiment corresponding to FIG. 2 , and details are not repeated here.

步骤403,确定进入点与离开点之间的距离是否小于预设距离阈值。之后,若是,则执行步骤405;若否,则执行步骤404。Step 403: Determine whether the distance between the entry point and the exit point is less than a preset distance threshold. After that, if yes, go to step 405; if not, go to step 404.

在本实施例中,用于获取图像的方法的执行主体(例如图1所示的服务器或终端设备)可以确定进入点与离开点之间的距离是否小于预设距离阈值。其中,上述距离阈值可以是用户或技术人员预先设置的各种距离值。上述距离阈值可以是用户或技术人员根据实际需求而设置的。In this embodiment, the executing subject of the method for acquiring an image (eg, the server or the terminal device shown in FIG. 1 ) may determine whether the distance between the entry point and the exit point is less than a preset distance threshold. The above distance threshold may be various distance values preset by a user or a technician. The above distance threshold may be set by a user or a technician according to actual needs.

步骤404,根据行进方向和路口信息,确定目标用户在目标路口的离开路段。之后,执行步骤406。Step 404 , according to the traveling direction and the intersection information, determine the section of the target user's departure at the target intersection. After that, step 406 is performed.

在本实施例中,上述执行主体可以根据行进方向和路口信息,确定目标用户在目标路口的离开路段。其中,上述离开路段可以是以离开点为起点的路段,离开路段的长度可以是预先设置的。In this embodiment, the above-mentioned execution subject may determine the section of the target user's departure at the target intersection according to the traveling direction and the intersection information. Wherein, the above-mentioned departure road segment may be a road segment starting from the departure point, and the length of the departure road segment may be preset.

步骤405,根据行进方向和路口信息,确定目标用户在目标路口的离开路段。之后,执行步骤407。Step 405 , according to the travel direction and the intersection information, determine the section of the target user's departure at the target intersection. After that, step 407 is performed.

在本实施例中,上述执行主体可以根据行进方向和路口信息,确定目标用户在目标路口的离开路段。其中,上述离开路段可以是以离开点为起点的路段,离开路段的长度可以是预先设置的。In this embodiment, the above-mentioned execution subject may determine the section of the target user's departure at the target intersection according to the traveling direction and the intersection information. Wherein, the above-mentioned departure road segment may be a road segment starting from the departure point, and the length of the departure road segment may be preset.

步骤406,确定在目标路口的路段中是否存在与离开路段形成的夹角小于预设的角度值的路段。之后,若是,则执行步骤410;若否,则执行步骤408。Step 406 , determine whether there is a road segment in the road segment of the target intersection and the angle formed with the leaving road segment is smaller than a preset angle value. After that, if yes, go to step 410; if not, go to step 408.

在本实施例中,上述执行主体可以确定在目标路口的路段中是否存在与离开路段形成的夹角小于预设的角度值的路段。In this embodiment, the above-mentioned executive body may determine whether there is a road segment in the road segment of the target intersection and the angle formed with the leaving road segment is smaller than a preset angle value.

步骤407,确定在目标路口的路段中是否存在与离开路段形成的夹角小于预设的角度值的路段。之后,若是,则执行步骤410;若否,则执行步骤409。Step 407 , determine whether there is a road segment in the road segment of the target intersection and the angle formed with the leaving road segment is smaller than a preset angle value. After that, if yes, go to step 410; if not, go to step 409.

在本实施例中,上述执行主体可以确定在目标路口的路段中是否存在与离开路段形成的夹角小于预设的角度值的路段。In this embodiment, the above-mentioned executive body may determine whether there is a road segment in the road segment of the target intersection and the angle formed with the leaving road segment is smaller than a preset angle value.

步骤408,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。之后,执行步骤412。Step 408: Determine the entry point, the exit point, and the center point of the points on the passing road section as the imaging environment center point of the image to be acquired. After that, step 412 is performed.

在本实施例中,上述执行主体可以确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。其中,上述经过路段可以是以进入点为起点,或者,以离开点为终点的路段。In this embodiment, the above-mentioned execution subject may determine the entry point, the exit point, and the center point of the points on the passing road section as the midpoint of the imaging environment of the image to be acquired. Wherein, the above-mentioned passing road section may be a road section with the entry point as the starting point or the exit point as the end point.

步骤409,将进入点与离开点的中点确定为待获取图像的成像环境中点。之后,执行步骤412。Step 409: Determine the midpoint of the entry point and the exit point as the midpoint of the imaging environment of the image to be acquired. After that, step 412 is performed.

在本实施例中,上述执行主体可以将进入点与离开点的中点确定为待获取图像的成像环境中点。In this embodiment, the above-mentioned execution subject may determine the midpoint of the entry point and the exit point as the midpoint of the imaging environment of the image to be acquired.

步骤410,确定位于离开路段的路段边界上的、目标路口的分叉点。之后,执行步骤411。Step 410, determining the bifurcation point of the target intersection located on the boundary of the road segment leaving the road segment. After that, step 411 is performed.

在本实施例中,上述执行主体可以确定位于离开路段的路段边界上的、目标路口的分叉点。其中,上述分叉点可以是离开路段与其他路段的边界交点。In this embodiment, the above-mentioned executive body may determine the bifurcation point of the target intersection located on the boundary of the road segment leaving the road segment. Wherein, the above-mentioned bifurcation point may be the boundary intersection point between the leaving road section and other road sections.

步骤411,确定分叉点、进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。之后,执行步骤412。Step 411: Determine the bifurcation point, the entry point, the exit point, and the center point of the points on the passing road section as the midpoint of the imaging environment of the image to be acquired. After that, step 412 is performed.

在本实施例中,上述执行主体可以确定分叉点、进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。In this embodiment, the above-mentioned execution subject may determine the bifurcation point, the entry point, the exit point, and the center point of the points on the passing road section as the midpoint of the imaging environment of the image to be acquired.

步骤412,获取以成像环境中点为图像中心的目标路口的图像。Step 412 , acquiring an image of the target intersection with the point in the imaging environment as the center of the image.

在本实施例中,步骤412与图2对应实施例中的步骤204基本一致,这里不再赘述。In this embodiment, step 412 is basically the same as step 204 in the embodiment corresponding to FIG. 2 , and details are not repeated here.

在本实施例的一些可选的实现方式中,对于上述步骤:获取以成像环境中点为图像中心的目标路口的图像,上述执行主体可以按照如下步骤执行:In some optional implementation manners of this embodiment, for the above steps: acquiring an image of a target intersection with a point in the imaging environment as the image center, the execution subject may execute the following steps:

第一步,上述执行主体可以确定分叉点、进入点、离开点和经过路段上的点的最小外接矩形的宽度和长度。其中,上述最小外接矩形可以是最小面积外接矩形(Minimum AreaBounding Rectangle,MABR),也可以是最小周长外接矩形(Minimum Perimter BoundingRectangle,MPBR)。In the first step, the above-mentioned executive body can determine the width and length of the minimum circumscribed rectangle of the bifurcation point, the entry point, the exit point and the point passing through the road segment. Wherein, the above-mentioned minimum circumscribed rectangle may be a minimum area bounding rectangle (Minimum Area Bounding Rectangle, MABR), or may be a minimum perimeter bounding rectangle (Minimum Perimter Bounding Rectangle, MPBR).

在这里,上述执行主体可以按照现有的各种确定最小外接矩形的方法来确定分叉点、进入点、离开点和经过路段上的点的最小外接矩形,进而得到最小外接矩形的宽度和长度。Here, the above-mentioned executive body can determine the minimum enclosing rectangle of the bifurcation point, the entry point, the exit point and the point on the passing road section according to various existing methods for determining the minimum enclosing rectangle, and then obtain the width and length of the minimum enclosing rectangle. .

第二步,上述执行主体可以确定目标用户在目标路口的进入路段的宽度。其中,上述进入路段可以是以进入点为终点的路段。In the second step, the above-mentioned executive body may determine the width of the entry section of the target user at the target intersection. Wherein, the above-mentioned entry road section may be a road section with the entry point as the end point.

在这里,上述进入路段的宽度可以是进入路段的实际宽度。例如,可以将车道数目与每个车道的宽度的乘积作为进入路段的宽度。Here, the above-mentioned width of the entry section may be the actual width of the entry section. For example, the product of the number of lanes and the width of each lane may be used as the width of the incoming road segment.

第三步,上述执行主体可以根据进入路段的宽度和最小外接矩形的宽度,确定待获取图像的显示范围宽度。其中,显示范围宽度可以是实际环境(即上述目标路口)被拍摄到图像中的宽度。In the third step, the above-mentioned execution body may determine the width of the display range of the image to be acquired according to the width of the entering road section and the width of the minimum circumscribed rectangle. Wherein, the width of the display range may be the width of the actual environment (ie, the above-mentioned target intersection) captured in the image.

在这里,上述执行主体可以将进入路段的宽度和最小外接矩形的宽度二者之中较大的,确定为待获取图像的显示范围宽度。可选的,上述执行主体也可以将进入路段的宽度和最小外接矩形的宽度二者之中较大的宽度的预设倍数(例如1.4倍),确定为待获取图像的显示范围宽度。Here, the above-mentioned execution body may determine the larger of the width of the entering road section and the width of the minimum circumscribed rectangle as the width of the display range of the image to be acquired. Optionally, the above-mentioned execution body may also determine the larger preset multiple (eg 1.4 times) of the width of the entering road section and the width of the minimum circumscribed rectangle as the width of the display range of the image to be acquired.

第四步,上述执行主体可以根据进入路段的长度,确定待获取图像的显示范围长度。其中,显示范围长度可以是实际环境(即上述目标路口)被拍摄到图像中的长度。In the fourth step, the above-mentioned execution body may determine the length of the display range of the image to be acquired according to the length of the entering road section. The length of the display range may be the length of the actual environment (ie, the above-mentioned target intersection) captured in the image.

在这里,上述执行主体可以将进入路段的长度,确定为待获取图像的显示范围长度。可选的,上述执行主体也可以将进入路段的长度与第一预设数值(例如15)中较大的数值与第二预设数值(例如0.7)的商,确定为待获取图像的显示范围长度。Here, the above-mentioned executive body may determine the length of the entering road section as the length of the display range of the image to be acquired. Optionally, the above-mentioned execution body may also determine the quotient of the length of the entering road section and the first preset value (eg, 15) and the second preset value (eg, 0.7), which is the larger value, as the display range of the image to be acquired. length.

第五步,上述执行主体可以根据显示范围宽度、显示范围长度、最小外接矩形的宽度和长度的比值,确定成像环境中点到待获取图像的下边沿对应的道路的距离。In the fifth step, the above-mentioned executive body can determine the distance from the point in the imaging environment to the road corresponding to the lower edge of the image to be acquired according to the width of the display range, the length of the display range, and the ratio of the width and length of the minimum circumscribed rectangle.

作为示例,上述执行主体可以通过如下公式(1)来确定成像环境中点到待获取图像的下边沿对应的道路的距离:As an example, the above-mentioned executive body can use the following formula (1) to determine the distance from the point in the imaging environment to the road corresponding to the lower edge of the image to be acquired:

d=idear_w×(screen_h÷screen_w)÷2÷sin(downlooking_angle) (1)d=idear_w×(screen_h÷screen_w)÷2÷sin(downlooking_angle) (1)

其中,d用于表征成像环境中点到待获取图像的下边沿对应的道路的距离,idear_w用于表征显示范围宽度,screen_h用于表征最小外接矩形的长度,screen_w用于表征最小外接矩形的宽度,downlooking_angle用于表征俯视角,其中,俯视角用于表征图像采集点(例如图5B中的位置505)所在的水平线(即位置505与位置506间的连线),与图像采集点(例如图5B中的位置505)到成像环境中点(例如图5B中的位置502)的连线之间的角度。Among them, d is used to characterize the distance from the point in the imaging environment to the road corresponding to the lower edge of the image to be acquired, ideal_w is used to characterize the width of the display range, screen_h is used to characterize the length of the minimum circumscribed rectangle, and screen_w is used to characterize the width of the minimum circumscribed rectangle , downlooking_angle is used to characterize the looking down angle, wherein the looking down angle is used to characterize the horizontal line (ie, the connection between the position 505 and the position 506 ) where the image capture point (for example, the position 505 in FIG. 5B) to the point in the imaging environment (eg, position 502 in FIG. 5B).

需要说明的是,上述角度可以根据图5B中的几何关系推倒得出。在图5B中,位置505、位置501所在的直线,与位置505、位置503所在的直线,所称成角度为45度。位置503为待获取图像的下边沿对应的道路上的点,位置501为待获取图像的上边沿对应的道路上的点。位置505、位置501所在的直线,与位置505、位置502所在的直线所成角度,与位置505、位置503所在的直线,与位置505、位置502所在的直线所成角度相等。It should be noted that the above angle can be obtained by deduction according to the geometric relationship in FIG. 5B . In FIG. 5B , the straight line where the position 505 and the position 501 are located and the straight line where the position 505 and the position 503 are located form an angle of 45 degrees. Position 503 is a point on the road corresponding to the lower edge of the image to be acquired, and position 501 is a point on the road corresponding to the upper edge of the image to be acquired. The straight line where position 505 and position 501 are located forms an angle with the straight line where position 505 and position 502 are located, and the straight line where position 505 and position 503 are located is at the same angle with the straight line where position 505 and position 502 are located.

可选的,上述执行主体还可以将通过上述公式(1)求得的结果,与显示范围长度二者中较大的,确定为成像环境中点到待获取图像的下边沿对应的道路的距离。Optionally, the above-mentioned execution body may also determine the larger of the result obtained by the above formula (1) and the length of the display range as the distance from the point in the imaging environment to the road corresponding to the lower edge of the image to be acquired. .

第六步,上述执行主体可以获取以成像环境中点为图像中心,并且,图像下边沿对应的路线与成像环境中点的距离为所确定的距离的目标路口的图像。In the sixth step, the execution subject may acquire an image of the target intersection with the midpoint of the imaging environment as the image center, and the distance between the route corresponding to the lower edge of the image and the midpoint of the imaging environment is the determined distance.

作为示例,请参考图5A。在图5A中,上述执行主体获取到了以成像环境中点502为图像中心,并且,图像下边沿对应的路线与成像环境中点的距离(即点502与点503之间的距离)为所确定的距离的目标路口的图像。As an example, please refer to Figure 5A. In FIG. 5A , the above-mentioned execution subject has obtained the image center with point 502 in the imaging environment, and the distance between the route corresponding to the lower edge of the image and the point in the imaging environment (that is, the distance between point 502 and point 503 ) is determined by The distance to the image of the target intersection.

在本实施例的一些可选的实现方式中,对于上述步骤:获取以成像环境中点为图像中心的目标路口的图像,上述执行主体也可以按照如下步骤执行:In some optional implementations of this embodiment, for the above steps: acquiring an image of a target intersection with a point in the imaging environment as the center of the image, the execution subject may also perform the following steps:

首先,上述执行主体可以根据成像环境中点的位置,确定待获取图像的图像获取位置。First, the above-mentioned execution subject may determine the image acquisition position of the to-be-acquired image according to the position of the point in the imaging environment.

请继续参考图5B,上述图像获取位置可以是目标图像采集装置所在的位置505。该图像获取位置可以通过该位置的高度(即点504与点505之间的距离)、点504与点502间的距离来确定,通常图像获取位置505,点501-点504、点506位于同一平面内。由此,上述执行主体可以通过上述第一步至第六步得到成像环境中点,以及图像下边沿对应的路线与成像环境中点的距离,然后,根据图5B中的几何关系推倒得出待获取图像的图像获取位置。Please continue to refer to FIG. 5B , the above-mentioned image acquisition location may be the location 505 where the target image acquisition device is located. The image acquisition position can be determined by the height of the position (that is, the distance between point 504 and point 505) and the distance between point 504 and point 502. Usually, the image acquisition position 505, point 501-point 504, and point 506 are located at the same point in plane. Therefore, the above-mentioned execution subject can obtain the midpoint of the imaging environment and the distance between the route corresponding to the lower edge of the image and the midpoint of the imaging environment through the above-mentioned first to sixth steps, and then, according to the geometric relationship in FIG. The image acquisition location where the image was acquired.

然后,上述执行主体可以控制目标图像采集装置在图像获取位置获取以成像环境中点为图像中心的目标路口的图像,上述图像。其中,上述目标图像采集装置可以是用于采集上述目标路口的图像的图像采集装置,也可以是OpenGL中的虚拟相机。Then, the above-mentioned executive body can control the target image acquisition device to acquire the image of the target intersection with the image center point as the image center at the image acquisition position, the above-mentioned image. Wherein, the above-mentioned target image acquisition device may be an image acquisition device for acquiring images of the above-mentioned target intersection, and may also be a virtual camera in OpenGL.

从图4中可以看出,与图2对应的实施例相比,本实施例中的用于获取图像的方法的流程400突出了在不同情况下,确定成像环境中点的步骤。由此,本实施例描述的方案可以更灵活的确定出成像环境中点,由此,进一步丰富了图像的获取方式,提高了在不同情况下,通过路口图像呈现路口的转向信息和拓扑结构的灵活性。As can be seen from FIG. 4 , compared with the embodiment corresponding to FIG. 2 , the flow 400 of the method for acquiring an image in this embodiment highlights the steps of determining the midpoint of the imaging environment under different circumstances. Therefore, the solution described in this embodiment can more flexibly determine the midpoint of the imaging environment, thereby further enriching the image acquisition method, and improving the ability to present the turning information and topology of the intersection through the intersection image under different circumstances. flexibility.

进一步参考图6,作为对上述各图所示方法的实现,本申请提供了一种用于获取图像的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,除下面所记载的特征外,该装置实施例还可以包括与图2所示的方法实施例相同或相应的特征。该装置具体可以应用于各种电子设备中。Further referring to FIG. 6 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of an apparatus for acquiring an image. The apparatus embodiment corresponds to the method embodiment shown in FIG. 2 , except In addition to the features described below, the apparatus embodiment may also include the same or corresponding features as the method embodiment shown in FIG. 2 . Specifically, the device can be applied to various electronic devices.

如图6所示,本实施例的用于获取图像的装置600包括:第一获取单元601、第一确定单元602、第二确定单元603和第二获取单元604。其中,第一获取单元601被配置成获取目标路口的路口信息,其中,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构;第一确定单元602被配置成根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点;第二确定单元603被配置成响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点;第二获取单元604被配置成获取以成像环境中点为图像中心的目标路口的图像。As shown in FIG. 6 , the apparatus 600 for acquiring an image in this embodiment includes: a first acquiring unit 601 , a first determining unit 602 , a second determining unit 603 and a second acquiring unit 604 . Wherein, the first obtaining unit 601 is configured to obtain the intersection information of the target intersection, wherein the intersection information is used to represent the topology structure of the road segment passing through the target intersection at the target intersection; the first determining unit 602 is configured to be based on the target user at the target intersection The travel direction and intersection information of the target user are determined to determine the entry point and exit point of the target user at the target intersection; the second determination unit 603 is configured to respond to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the target The user determines the entry point, the exit point and the center point of the points on the passing road segment at the target intersection as the imaging environment midpoint of the image to be acquired; the second acquisition unit 604 is configured to acquire the image center with the imaging environment midpoint as the image center image of the target intersection.

在本实施例中,用于获取图像的装置600的第一获取单元601可以通过有线连接方式或者无线连接方式获取目标路口的路口信息。其中,上述目标路口可以是用户即将进入的路口。例如在用户通过手机或者车辆的导航功能行进时,当该用户在距离路口预定距离(例如5米,10米等)并且向该路口行进时,该路口可以作为上述目标路口。路口可以是道路(或者路段)交汇处。上述路口信息可以用于表征经过目标路口的路段在目标路口的拓扑结构。In this embodiment, the first acquiring unit 601 of the apparatus 600 for acquiring an image may acquire the intersection information of the target intersection through a wired connection or a wireless connection. The above-mentioned target intersection may be an intersection that the user is about to enter. For example, when the user travels through the navigation function of the mobile phone or the vehicle, when the user is at a predetermined distance from the intersection (eg, 5 meters, 10 meters, etc.) and goes to the intersection, the intersection can be used as the above-mentioned target intersection. A junction may be a road (or road segment) junction. The above-mentioned intersection information can be used to characterize the topology structure of the road segment passing through the target intersection at the target intersection.

在本实施例中,上述第一确定单元602可以根据目标用户在目标路口的行进方向和第一获取单元601获取的路口信息,确定目标用户在目标路口的进入点和离开点。其中,当上述执行主体为终端设备时,上述目标用户可以是上述执行主体的使用者;当上述执行主体不是终端设备(例如是服务器)时,上述目标用户可以是通过其所使用的终端设备与上述执行主体进行交互的用户。上述进入点可以是用于表征用于进入上述目标路口的点。上述离开点可以是用于表征用于离开上述目标路口的点。In this embodiment, the first determining unit 602 may determine the entry point and the exit point of the target user at the target intersection according to the traveling direction of the target user at the target intersection and the intersection information obtained by the first obtaining unit 601 . Wherein, when the execution body is a terminal device, the target user may be the user of the execution body; when the execution body is not a terminal device (for example, a server), the target user may be the terminal device used by the target user and the user of the execution body. The user who interacts with the above execution body. The aforementioned entry point may be a point used to characterize the aforementioned target intersection. The above-mentioned departure point may be a point used to characterize a point for leaving the above-mentioned target intersection.

在本实施例中,上述第二确定单元603可以确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。其中,上述距离阈值可以是用户或技术人员预先设置的各种距离值。上述距离阈值可以是用户或技术人员根据实际需求而设置的。上述经过路段可以是以进入点为起点,或者,以离开点为终点的路段。In this embodiment, the above-mentioned second determining unit 603 may determine the road segment passed by the target user at the target intersection, and determine the entry point, the exit point, and the center point of the points on the passing road segment as the imaging environment midpoint of the image to be acquired. The above distance threshold may be various distance values preset by a user or a technician. The above distance threshold may be set by a user or a technician according to actual needs. The above-mentioned passing road segment may be a road segment starting from the entry point or ending at the exit point.

在本实施例中,上述第二获取单元604可以获取以成像环境中点为图像中心的目标路口的图像。In this embodiment, the above-mentioned second acquiring unit 604 may acquire an image of a target intersection with a point in the imaging environment as the center of the image.

在本实施例的一些可选的实现方式中,第二确定单元603包括:第一确定模块(图中未示出)被配置成根据行进方向和路口信息,确定目标用户在目标路口的离开路段;第二确定模块(图中未示出)被配置成响应于确定在目标路口的路段中存在与离开路段形成的夹角小于预设的角度值的路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。其中,上述离开路段可以是以离开点为起点的路段,离开路段的长度可以是预先设置的。In some optional implementations of this embodiment, the second determining unit 603 includes: a first determining module (not shown in the figure) configured to determine, according to the traveling direction and the intersection information, the segment of the target user's departure at the target intersection ; the second determination module (not shown in the figure) is configured to determine the entry point, the exit point and the passing road segment in response to determining that there is a road segment in the road segment of the target intersection whose angle formed with the exit road segment is smaller than a preset angle value The center point of the point above is taken as the midpoint of the imaging environment of the image to be acquired. Wherein, the above-mentioned departure road segment may be a road segment starting from the departure point, and the length of the departure road segment may be preset.

在本实施例的一些可选的实现方式中,该装置600还包括:第三确定单元(图中未示出)被配置成响应于确定进入点与离开点之间的距离小于距离阈值,将进入点与离开点的中点确定为待获取图像的成像环境中点。In some optional implementations of this embodiment, the apparatus 600 further includes: a third determining unit (not shown in the figure) configured to, in response to determining that the distance between the entry point and the exit point is less than the distance threshold, determine The midpoint of the entry point and the exit point is determined as the midpoint of the imaging environment of the image to be acquired.

在本实施例的一些可选的实现方式中,该装置600还包括:第四确定单元(图中未示出)被配置成根据行进方向和路口信息,确定目标用户在目标路口的离开路段;第五确定单元(图中未示出)被配置成响应于确定进入点与离开点之间的距离小于距离阈值,并且在目标路口的路段中存在与离开路段形成的夹角小于预设的角度值的路段,将进入点与离开点的中点确定为待获取图像的成像环境中点。In some optional implementations of this embodiment, the apparatus 600 further includes: a fourth determining unit (not shown in the figure) configured to determine, according to the traveling direction and the intersection information, the segment of the target user's departure at the target intersection; The fifth determination unit (not shown in the figure) is configured to respond to determining that the distance between the entry point and the exit point is less than the distance threshold, and that there is an included angle formed with the exit road segment in the road segment of the target intersection that is less than a preset angle The midpoint of the entry point and the exit point is determined as the midpoint of the imaging environment of the image to be acquired.

在本实施例的一些可选的实现方式中,该装置600还包括:第六确定单元(图中未示出)被配置成响应于确定在目标路口的路段中不存在与离开路段形成的夹角小于预设的角度值的路段,确定位于离开路段的路段边界上的、目标路口的分叉点,确定分叉点、进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点。其中,上述分叉点可以是离开路段与其他路段的边界交点。In some optional implementations of this embodiment, the apparatus 600 further includes: a sixth determining unit (not shown in the figure) configured to respond to determining that there is no clip formed with the leaving road segment in the road segment of the target intersection For the road segment whose angle is less than the preset angle value, determine the bifurcation point of the target intersection located on the boundary of the road segment leaving the road segment, and determine the center point of the bifurcation point, the entry point, the departure point and the points on the passing road segment as the image to be acquired the midpoint of the imaging environment. Wherein, the above-mentioned bifurcation point may be the boundary intersection point between the leaving road section and other road sections.

在本实施例的一些可选的实现方式中,第二获取单元604包括:第三确定模块(图中未示出)被配置成确定分叉点、进入点、离开点和经过路段上的点的最小外接矩形的宽度和长度;第四确定模块(图中未示出)被配置成确定目标用户在目标路口的进入路段的宽度;第五确定模块(图中未示出)被配置成根据进入路段的宽度和最小外接矩形的宽度,确定待获取图像的显示范围宽度;第六确定模块(图中未示出)被配置成根据进入路段的长度,确定待获取图像的显示范围长度;第七确定模块(图中未示出)被配置成根据显示范围宽度、显示范围长度、最小外接矩形的宽度和长度的比值,确定成像环境中点到待获取图像的下边沿对应的道路的距离;获取模块(图中未示出)被配置成获取以成像环境中点为图像中心,并且,图像下边沿对应的路线与成像环境中点的距离为所确定的距离的目标路口的图像。其中,上述最小外接矩形可以是最小面积外接矩形,也可以是最小周长外接矩形。上述进入路段的宽度可以是进入路段的实际宽度。显示范围宽度可以是实际环境(即上述目标路口)被拍摄到图像中的宽度。In some optional implementations of this embodiment, the second obtaining unit 604 includes: a third determining module (not shown in the figure) configured to determine a bifurcation point, an entry point, an exit point, and a point on a passing road segment The width and length of the minimum circumscribed rectangle of The width of the entry road section and the width of the minimum circumscribed rectangle determine the width of the display range of the image to be acquired; the sixth determination module (not shown in the figure) is configured to determine the length of the display range of the image to be acquired according to the length of the entry road segment; 7. The determining module (not shown in the figure) is configured to determine the distance from the point in the imaging environment to the road corresponding to the lower edge of the image to be acquired according to the width of the display range, the length of the display range, and the ratio of the width and length of the minimum circumscribed rectangle; The acquisition module (not shown in the figure) is configured to acquire the image of the target intersection with the midpoint of the imaging environment as the image center, and the distance between the route corresponding to the lower edge of the image and the midpoint of the imaging environment is the determined distance. Wherein, the above-mentioned minimum circumscribed rectangle may be a minimum area circumscribed rectangle, or may be a minimum perimeter circumscribed rectangle. The width of the above-mentioned entering road section may be the actual width of the entering road section. The width of the display range may be the width of the actual environment (ie, the above-mentioned target intersection) captured in the image.

在本实施例的一些可选的实现方式中,第二获取单元604包括:第八确定模块(图中未示出)被配置成根据成像环境中点的位置,确定待获取图像的图像获取位置;控制模块(图中未示出)被配置成控制目标图像采集装置在图像获取位置获取以成像环境中点为图像中心的目标路口的图像。In some optional implementations of this embodiment, the second acquisition unit 604 includes: an eighth determination module (not shown in the figure) configured to determine the image acquisition position of the image to be acquired according to the position of the point in the imaging environment ; The control module (not shown in the figure) is configured to control the target image acquisition device to acquire the image of the target intersection with the point in the imaging environment as the image center at the image acquisition position.

本申请的上述实施例提供的装置,通过第一获取单元601获取目标路口的路口信息,然后,第一确定单元602根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点,之后,在确定进入点与离开点之间的距离大于等于预设距离阈值的情况下,第二确定单元603确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点,最后,第二获取单元604获取以成像环境中点为图像中心的目标路口的图像,从而丰富了图像的获取方式,有助于提高呈现路口的转向信息和拓扑结构的丰富性。In the device provided by the above-mentioned embodiments of the present application, the intersection information of the target intersection is obtained by the first obtaining unit 601, and then the first determining unit 602 determines the target user's junction at the target intersection according to the travel direction and intersection information of the target user at the target intersection. The entry point and the exit point, and then, when it is determined that the distance between the entry point and the exit point is greater than or equal to the preset distance threshold, the second determining unit 603 determines the road segment that the target user passes through at the target intersection, and determines the entry point and the exit point. and the center point of the point on the passing road section is used as the imaging environment midpoint of the image to be acquired, and finally, the second acquisition unit 604 acquires the image of the target intersection with the imaging environment midpoint as the image center, thereby enriching the acquisition method of the image. Helps to improve the richness of the steering information and topology of the presented intersection.

下面参考图7,其示出了适于用来实现本申请实施例的电子设备的计算机系统700的结构示意图。图7示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring next to FIG. 7 , it shows a schematic structural diagram of a computer system 700 suitable for implementing the electronic device of the embodiment of the present application. The electronic device shown in FIG. 7 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.

如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, a computer system 700 includes a central processing unit (CPU) 701 which can be loaded into a random access memory (RAM) 703 according to a program stored in a read only memory (ROM) 702 or a program from a storage section 708 Instead, various appropriate actions and processes are performed. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701 , the ROM 702 , and the RAM 703 are connected to each other through a bus 704 . An input/output (I/O) interface 705 is also connected to bus 704 .

以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 709 and/or installed from the removable medium 711 . When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the method of the present application are performed.

需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向目标的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional procedural programming language - such as "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一获取单元、第一确定单元、第二确定单元和第二获取单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取目标路口的路口信息的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit may also be provided in the processor, for example, it may be described as: a processor includes a first obtaining unit, a first determining unit, a second determining unit and a second obtaining unit. Wherein, the names of these units do not constitute a limitation of the unit itself in some cases, for example, the first acquisition unit may also be described as "a unit for acquiring intersection information of a target intersection".

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取目标路口的路口信息,其中,路口信息用于表征经过目标路口的路段在目标路口的拓扑结构;根据目标用户在目标路口的行进方向和路口信息,确定目标用户在目标路口的进入点和离开点;响应于确定进入点与离开点之间的距离大于等于预设的距离阈值,确定目标用户在目标路口的经过路段,确定进入点、离开点和经过路段上的点的中心点作为待获取图像的成像环境中点;获取以成像环境中点为图像中心的目标路口的图像。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires the intersection information of the target intersection, wherein the intersection information is used to represent the intersection information passing through the target intersection. Topological structure of the road segment at the target intersection; according to the target user's travel direction and intersection information at the target intersection, determine the target user's entry point and exit point at the target intersection; in response to determining that the distance between the entry point and the exit point is greater than or equal to a preset Determine the distance threshold of the target user at the target intersection, determine the entry point, departure point and the center point of the point on the passing road section as the imaging environment midpoint of the image to be acquired; acquire the target with the imaging environment midpoint as the image center Image of intersection.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (16)

1.一种用于获取图像的方法,包括:1. A method for acquiring an image, comprising: 获取目标路口的路口信息,其中,所述路口信息用于表征经过所述目标路口的路段在所述目标路口的拓扑结构;obtaining the intersection information of the target intersection, wherein the intersection information is used to represent the topology structure of the road segment passing through the target intersection at the target intersection; 根据目标用户在所述目标路口的行进方向和所述路口信息,确定所述目标用户在所述目标路口的进入点和离开点;According to the travel direction of the target user at the target intersection and the intersection information, determine the entry point and the exit point of the target user at the target intersection; 响应于确定所述进入点与所述离开点之间的距离大于等于预设的距离阈值,确定所述目标用户在所述目标路口的经过路段,确定所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点;In response to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the road segment passed by the target user at the target intersection, determine the entry point, the exit point and the The center point of the points on the passing road section is taken as the imaging environment center point of the image to be acquired; 获取以所述成像环境中点为图像中心的所述目标路口的图像。An image of the target intersection with the midpoint of the imaging environment as the image center is acquired. 2.根据权利要求1所述的方法,其中,所述确定所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点,包括:2. The method according to claim 1, wherein the determining the center point of the entry point, the exit point and the point on the passing road section as the imaging environment midpoint of the image to be acquired comprises: 根据所述行进方向和所述路口信息,确定所述目标用户在所述目标路口的离开路段;According to the travel direction and the intersection information, determine the departure section of the target user at the target intersection; 响应于确定在所述目标路口的路段中不存在与所述离开路段形成的夹角小于预设的角度值的路段,确定所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点。In response to determining that there is no road segment with an included angle less than a preset angle value with the exit road segment in the road segment of the target intersection, determining the distance between the entry point, the exit point, and the points on the passing road segment. The center point is the midpoint of the imaging environment of the image to be acquired. 3.根据权利要求1所述的方法,其中,在所述获取以所述成像环境中点为图像中心的所述目标路口的图像之前,所述方法还包括:3. The method according to claim 1, wherein before the acquiring the image of the target intersection with the image center point as the image center, the method further comprises: 响应于确定所述进入点与所述离开点之间的距离小于所述距离阈值,将所述进入点与所述离开点的中点确定为待获取图像的成像环境中点。In response to determining that the distance between the entry point and the exit point is less than the distance threshold, a midpoint of the entry point and the exit point is determined as the imaging environment midpoint of the image to be acquired. 4.根据权利要求1所述的方法,其中,在所述获取以所述成像环境中点为图像中心的所述目标路口的图像之前,所述方法还包括:4. The method according to claim 1, wherein before the acquiring the image of the target intersection with the image center point as the image center, the method further comprises: 根据所述行进方向和所述路口信息,确定所述目标用户在所述目标路口的离开路段;According to the travel direction and the intersection information, determine the departure section of the target user at the target intersection; 响应于确定所述进入点与所述离开点之间的距离小于所述距离阈值,并且在所述目标路口的路段中不存在与所述离开路段形成的夹角小于预设的角度值的路段,将所述进入点与所述离开点的中点确定为待获取图像的成像环境中点。In response to determining that the distance between the entry point and the exit point is less than the distance threshold, and there is no road segment in the road segment of the target intersection whose angle formed with the exit road segment is less than a preset angle value , and the midpoint of the entry point and the exit point is determined as the midpoint of the imaging environment of the image to be acquired. 5.根据权利要求1-4之一所述的方法,其中,所述方法还包括:5. The method of one of claims 1-4, wherein the method further comprises: 响应于确定在所述目标路口的路段中存在与所述离开路段形成的夹角小于预设的角度值的路段,确定位于所述离开路段的路段边界上的、所述目标路口的分叉点,确定所述分叉点、所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点。In response to determining that there is a road section in the road section of the target intersection with the departure road section forming an angle smaller than a preset angle value, determining a bifurcation point of the target intersection located on the boundary of the road section of the departure road section , and determine the center point of the bifurcation point, the entry point, the exit point, and the points on the passing road section as the midpoint of the imaging environment of the image to be acquired. 6.根据权利要求5所述的方法,所述获取以所述成像环境中点为图像中心的所述目标路口的图像,包括:6. The method according to claim 5, wherein the acquiring an image of the target intersection with a point in the imaging environment as an image center comprises: 确定所述分叉点、所述进入点、所述离开点和所述经过路段上的点的最小外接矩形的宽度和长度;determining the width and length of the smallest circumscribed rectangle of the bifurcation point, the entry point, the exit point and the point on the passing road segment; 确定所述目标用户在所述目标路口的进入路段的宽度;determining the width of the entry section of the target user at the target intersection; 根据所述进入路段的宽度和所述最小外接矩形的宽度,确定待获取图像的显示范围宽度;determining the width of the display range of the image to be acquired according to the width of the entering road section and the width of the minimum circumscribed rectangle; 根据所述进入路段的长度,确定所述待获取图像的显示范围长度;determining the length of the display range of the to-be-obtained image according to the length of the entering road section; 根据所述显示范围宽度、所述显示范围长度、所述最小外接矩形的宽度和长度的比值,确定所述成像环境中点到所述待获取图像的下边沿对应的道路的距离;determining the distance from the midpoint of the imaging environment to the road corresponding to the lower edge of the image to be acquired according to the width of the display range, the length of the display range, and the ratio of the width to the length of the minimum circumscribed rectangle; 获取以所述成像环境中点为图像中心,并且,图像下边沿对应的路线与所述成像环境中点的距离为所确定的距离的所述目标路口的图像。An image of the target intersection is acquired with the midpoint of the imaging environment as the image center, and the distance between the route corresponding to the lower edge of the image and the midpoint of the imaging environment is the determined distance. 7.根据权利要求5所述的方法,所述获取以所述成像环境中点为图像中心的所述目标路口的图像,包括:7. The method according to claim 5, wherein the acquiring an image of the target intersection with a point in the imaging environment as an image center comprises: 根据所述成像环境中点的位置,确定所述待获取图像的图像获取位置;Determine the image acquisition position of the to-be-acquired image according to the position of the point in the imaging environment; 控制目标图像采集装置在所述图像获取位置获取以所述成像环境中点为图像中心的所述目标路口的图像。The target image acquisition device is controlled to acquire the image of the target intersection with the image center point as the image center at the image acquisition position. 8.一种用于获取图像的装置,包括:8. An apparatus for acquiring an image, comprising: 第一获取单元,被配置成获取目标路口的路口信息,其中,所述路口信息用于表征经过所述目标路口的路段在所述目标路口的拓扑结构;a first obtaining unit, configured to obtain intersection information of a target intersection, wherein the intersection information is used to represent a topology structure of a road segment passing through the target intersection at the target intersection; 第一确定单元,被配置成根据目标用户在所述目标路口的行进方向和所述路口信息,确定所述目标用户在所述目标路口的进入点和离开点;a first determining unit, configured to determine the entry point and the exit point of the target user at the target intersection according to the travel direction of the target user at the target intersection and the intersection information; 第二确定单元,被配置成响应于确定所述进入点与所述离开点之间的距离大于等于预设的距离阈值,确定所述目标用户在所述目标路口的经过路段,确定所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点;The second determination unit is configured to, in response to determining that the distance between the entry point and the exit point is greater than or equal to a preset distance threshold, determine the road segment passed by the target user at the target intersection, and determine the entry point. The center point of the point, the departure point and the point on the passing road section is taken as the imaging environment midpoint of the image to be acquired; 第二获取单元,被配置成获取以所述成像环境中点为图像中心的所述目标路口的图像。The second acquisition unit is configured to acquire an image of the target intersection with a point in the imaging environment as the center of the image. 9.根据权利要求8所述的装置,其中,所述第二确定单元包括:9. The apparatus of claim 8, wherein the second determining unit comprises: 第一确定模块,被配置成根据所述行进方向和所述路口信息,确定所述目标用户在所述目标路口的离开路段;a first determination module, configured to determine, according to the travel direction and the intersection information, the departure section of the target user at the target intersection; 第二确定模块,被配置成响应于确定在所述目标路口的路段中不存在与所述离开路段形成的夹角小于预设的角度值的路段,确定所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点。The second determination module is configured to determine the entry point, the departure point and The center point of the points on the passing road section is used as the imaging environment center point of the image to be acquired. 10.根据权利要求8所述的装置,其中,所述装置还包括:10. The apparatus of claim 8, wherein the apparatus further comprises: 第三确定单元,被配置成响应于确定所述进入点与所述离开点之间的距离小于所述距离阈值,将所述进入点与所述离开点的中点确定为待获取图像的成像环境中点。A third determination unit configured to, in response to determining that the distance between the entry point and the exit point is less than the distance threshold, determine the midpoint of the entry point and the exit point as the imaging of the image to be acquired midpoint of the environment. 11.根据权利要求8所述的装置,其中,所述装置还包括:11. The apparatus of claim 8, wherein the apparatus further comprises: 第四确定单元,被配置成根据所述行进方向和所述路口信息,确定所述目标用户在所述目标路口的离开路段;a fourth determining unit, configured to determine, according to the traveling direction and the intersection information, the departure section of the target user at the target intersection; 第五确定单元,被配置成响应于确定所述进入点与所述离开点之间的距离小于所述距离阈值,并且在所述目标路口的路段中不存在与所述离开路段形成的夹角小于预设的角度值的路段,将所述进入点与所述离开点的中点确定为待获取图像的成像环境中点。a fifth determination unit, configured in response to determining that the distance between the entry point and the exit point is less than the distance threshold, and there is no included angle formed with the exit segment in the segment of the target intersection For a road segment smaller than a preset angle value, the midpoint of the entry point and the exit point is determined as the midpoint of the imaging environment of the image to be acquired. 12.根据权利要求8-11之一所述的装置,其中,所述装置还包括:12. The apparatus of one of claims 8-11, wherein the apparatus further comprises: 第六确定单元,被配置成响应于确定在所述目标路口的路段中存在与所述离开路段形成的夹角小于预设的角度值的路段,确定位于所述离开路段的路段边界上的、所述目标路口的分叉点,确定所述分叉点、所述进入点、所述离开点和所述经过路段上的点的中心点作为待获取图像的成像环境中点。A sixth determining unit is configured to, in response to determining that there is a road segment with an included angle formed with the departure road segment smaller than a preset angle value in the road segment of the target intersection, determine, in response to determining that a road segment located on the boundary of the road segment of the departure road segment exists, For the bifurcation point of the target intersection, the center point of the bifurcation point, the entry point, the departure point and the points on the passing road section is determined as the imaging environment midpoint of the image to be acquired. 13.根据权利要求12所述的装置,所述第二获取单元包括:13. The apparatus according to claim 12, the second obtaining unit comprising: 第三确定模块,被配置成确定所述分叉点、所述进入点、所述离开点和所述经过路段上的点的最小外接矩形的宽度和长度;a third determining module configured to determine the width and length of the smallest circumscribed rectangle of the bifurcation point, the entry point, the exit point and the point on the passing road segment; 第四确定模块,被配置成确定所述目标用户在所述目标路口的进入路段的宽度;a fourth determining module, configured to determine the width of the entry section of the target user at the target intersection; 第五确定模块,被配置成根据所述进入路段的宽度和所述最小外接矩形的宽度,确定待获取图像的显示范围宽度;a fifth determining module, configured to determine the width of the display range of the image to be acquired according to the width of the entering road section and the width of the minimum circumscribed rectangle; 第六确定模块,被配置成根据所述进入路段的长度,确定所述待获取图像的显示范围长度;a sixth determining module, configured to determine the length of the display range of the to-be-obtained image according to the length of the entering road section; 第七确定模块,被配置成根据所述显示范围宽度、所述显示范围长度、所述最小外接矩形的宽度和长度的比值,确定所述成像环境中点到所述待获取图像的下边沿对应的道路的距离;A seventh determining module, configured to determine the correspondence between a point in the imaging environment and the lower edge of the to-be-acquired image according to the width of the display range, the length of the display range, and the ratio of the width to the length of the minimum circumscribed rectangle the distance of the road; 获取模块,被配置成获取以所述成像环境中点为图像中心,并且,图像下边沿对应的路线与所述成像环境中点的距离为所确定的距离的所述目标路口的图像。The acquisition module is configured to acquire the image of the target intersection with the midpoint of the imaging environment as the center of the image, and the distance between the route corresponding to the lower edge of the image and the midpoint of the imaging environment is the determined distance. 14.根据权利要求12所述的装置,所述第二获取单元包括:14. The apparatus according to claim 12, the second obtaining unit comprising: 第八确定模块,被配置成根据所述成像环境中点的位置,确定所述待获取图像的图像获取位置;an eighth determination module, configured to determine the image acquisition position of the to-be-acquired image according to the position of the point in the imaging environment; 控制模块,被配置成控制目标图像采集装置在所述图像获取位置获取以所述成像环境中点为图像中心的所述目标路口的图像。The control module is configured to control the target image acquisition device to acquire the image of the target intersection with the midpoint of the imaging environment as the image center at the image acquisition position. 15.一种电子设备,包括:15. An electronic device comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序,a storage device on which one or more programs are stored, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7. 16.一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-7中任一所述的方法。16. A computer-readable medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN201811069767.4A 2018-09-13 2018-09-13 Method and apparatus for acquiring images Active CN109214342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811069767.4A CN109214342B (en) 2018-09-13 2018-09-13 Method and apparatus for acquiring images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811069767.4A CN109214342B (en) 2018-09-13 2018-09-13 Method and apparatus for acquiring images

Publications (2)

Publication Number Publication Date
CN109214342A CN109214342A (en) 2019-01-15
CN109214342B true CN109214342B (en) 2022-04-29

Family

ID=64983451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811069767.4A Active CN109214342B (en) 2018-09-13 2018-09-13 Method and apparatus for acquiring images

Country Status (1)

Country Link
CN (1) CN109214342B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162050B (en) * 2019-05-22 2022-04-15 腾讯科技(深圳)有限公司 Travel control method and travel control system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100815153B1 (en) * 2006-11-08 2008-03-19 한국전자통신연구원 Intersection guidance device and navigation method of vehicle navigation using camera
CN104613973A (en) * 2014-05-07 2015-05-13 腾讯科技(深圳)有限公司 Picture generation, display method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4345255B2 (en) * 2001-12-11 2009-10-14 株式会社エクォス・リサーチ Navigation center apparatus and navigation apparatus
KR100819047B1 (en) * 2006-11-27 2008-04-02 한국전자통신연구원 Intersection Centerline Prediction Device and Method
CA2726333A1 (en) * 2008-07-30 2010-02-04 Tele Atlas B.V. Method of and computer implemented system for generating a junction view image
CA2689743C (en) * 2008-11-26 2015-07-28 Transoft Solutions, Inc. Method and apparatus for displaying a representation of a traffic intersection
JP5864130B2 (en) * 2011-05-18 2016-02-17 アルパイン株式会社 Navigation device
JP6015227B2 (en) * 2012-08-10 2016-10-26 アイシン・エィ・ダブリュ株式会社 Intersection guidance system, method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100815153B1 (en) * 2006-11-08 2008-03-19 한국전자통신연구원 Intersection guidance device and navigation method of vehicle navigation using camera
CN104613973A (en) * 2014-05-07 2015-05-13 腾讯科技(深圳)有限公司 Picture generation, display method and device

Also Published As

Publication number Publication date
CN109214342A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN106643774B (en) Navigation route generation method and terminal
CN109374002B (en) Navigation method and system, computer readable storage medium
US20190049265A1 (en) Method and system for navigation using video call
US10614621B2 (en) Method and apparatus for presenting information
CN111678527B (en) Path network graph generation method and device, electronic equipment and storage medium
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN107765691B (en) Method and apparatus for controlling unmanned vehicle
CN111709856A (en) House source information processing method and device and electronic equipment
CN112918487B (en) Unmanned vehicle starting method and device, electronic equipment and computer readable medium
CN115061386B (en) Automated simulation test system and related equipment for intelligent driving
CN110543943A (en) A network fusion method and device, electronic equipment, and storage medium
CN112700636A (en) Method and apparatus for updating information
CN114598824A (en) Method, device, device and storage medium for generating special effects video
KR102225175B1 (en) Method and system for navigation using video call
CN109214342B (en) Method and apparatus for acquiring images
CN113673446B (en) Image recognition method, device, electronic device and computer readable medium
US20240371065A1 (en) Methods, apparatuses, electronic device, medium and program product for presenting an animation
CN114035787A (en) Web page construction method, device, electronic device, storage medium and product
CN116954439A (en) Information processing method and device and electronic equipment
CN113761086B (en) Automatic guiding transport vehicle track display method and device
CN115588180A (en) Map generation method, map generation device, electronic apparatus, map generation medium, and program product
CN114090058A (en) Service verification method, device, equipment, computer readable storage medium and product
CN114822062A (en) Method, device and storage medium for prompting traffic stop
CN108509635B (en) Method and apparatus for generating information
CN114898059B (en) Topological method, device and computer program product for scattered-point panorama

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant