WO2022217877A1 - Map generation method and apparatus, and electronic device and storage medium - Google Patents

Map generation method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2022217877A1
WO2022217877A1 PCT/CN2021/125027 CN2021125027W WO2022217877A1 WO 2022217877 A1 WO2022217877 A1 WO 2022217877A1 CN 2021125027 W CN2021125027 W CN 2021125027W WO 2022217877 A1 WO2022217877 A1 WO 2022217877A1
Authority
WO
WIPO (PCT)
Prior art keywords
shooting
area
acquisition
information
devices
Prior art date
Application number
PCT/CN2021/125027
Other languages
French (fr)
Chinese (zh)
Other versions
WO2022217877A9 (en
Inventor
许文航
吴佳飞
张广程
闫俊杰
Original Assignee
浙江商汤科技开发有限公司
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 浙江商汤科技开发有限公司 filed Critical 浙江商汤科技开发有限公司
Publication of WO2022217877A1 publication Critical patent/WO2022217877A1/en
Publication of WO2022217877A9 publication Critical patent/WO2022217877A9/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Definitions

  • the present disclosure relates to the field of security technologies, and in particular, to a map generation method and device, an electronic device and a storage medium.
  • multiple acquisition devices can be set in the current scene, so that images of the current scene can be acquired in multiple directions.
  • multiple cameras can be arranged in parks and streets, and images can be taken through multiple cameras, so as to realize the security protection of parks and streets.
  • the present disclosure provides a technical solution for map generation.
  • a map generation method comprising:
  • the method further includes: sending an acquisition request in a broadcast manner, so that the plurality of acquisition devices return the pose information and the shooting field of view information based on the acquisition request; Alternatively, an acquisition request is sent to the multiple acquisition devices, so that the multiple acquisition devices return the pose information and the shooting field of view information based on the acquisition request.
  • the pose information includes a geographic location and an orientation
  • the shooting field of view information includes a field of view
  • the shooting area of each collecting device includes: determining the shooting angle range of the collecting device according to the orientation of the collecting device and the angle of view; according to the geographical position of the collecting device and the shooting angle range, A photographing area for each of the acquisition devices is determined.
  • the photographing field of view information further includes an optimal photographing distance, and determining the photographing area of the collecting device according to the geographic location of the collecting device and the photographing angle range, including : According to the geographic location of the collection device, the shooting angle range and the best shooting distance, determine a fan-shaped area formed with the geographic location of the collection device as a vertex; determine the fan-shaped area as the collection device shooting area.
  • the method further includes: determining at least one of a shooting blind area and a non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices, wherein, The non-optimal shooting area is an area in the target scene that exceeds the optimal shooting distance of the multiple collection devices; at least one of the shooting blind area and the non-optimal shooting area is prompted in the deployment map. item.
  • the method further includes: in the case where it is determined that the shooting blind spot exists, generating a rotation instruction based on the position information of the shooting blind spot; sending a rotation instruction to at least one of the multiple collection devices A collection device sends the rotation instruction, so that the at least one collection device rotates toward the shooting blind area.
  • the method further includes: in the case that it is determined that the non-optimal shooting area exists, generating a parameter adjustment instruction; sending a parameter adjustment instruction to at least one acquisition device among the plurality of acquisition devices The parameter adjustment instruction is used to expand the photographing area of the at least one acquisition device.
  • a method for generating a map is provided, which is applied to a collection device, including:
  • the server device Sending the pose information and the shooting field of view information to the server device, wherein the server device is used to determine the shooting area of each collection device according to the pose information and shooting field information of each collection device , draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
  • the method further includes: receiving a rotation instruction sent by a server device; acquiring position information of a shooting blind spot in the target scene according to the rotation instruction; information, and rotate toward the shooting blind spot.
  • the method further includes: receiving a parameter adjustment instruction sent by a server device; and adjusting camera parameters according to the parameter adjustment instruction to expand the shooting area.
  • a map generating apparatus comprising:
  • an acquisition part configured to acquire the pose information and the shooting field of view information corresponding to the multiple acquisition devices in the target scene respectively;
  • a determining part configured to determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices;
  • the generating part is configured to draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a layout map of the target scene.
  • the apparatus further includes a first sending part configured to send an acquisition request in a broadcast manner, so that the plurality of acquisition devices return the pose information and the pose information based on the acquisition request. the shooting field of view information; or, sending an acquisition request to the multiple collection devices, so that the multiple collection devices return the pose information and the shooting field of view information based on the acquisition request.
  • the pose information includes a geographic location and an orientation
  • the shooting field of view information includes a viewing angle
  • the determining part is configured to be based on the orientation of the collecting device and the viewing angle , determine the shooting angle range of the collecting device; determine the shooting area of each collecting device according to the geographic location of the collecting device and the shooting angle range.
  • the photographing field of view information further includes an optimal photographing distance
  • the determining part is configured to be based on the geographic location of the collecting device, the photographing angle range and the optimal photographing distance
  • the distance is determined as a fan-shaped area formed by taking the geographic location of the collecting device as a vertex; the fan-shaped area is determined as the shooting area of the collecting device.
  • the determining part is further configured to determine at least one of a shooting blind area and a non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices, wherein, the non-optimal shooting area is an area in the target scene that exceeds the optimal shooting distance of the plurality of collection devices; in the deployment map, the shooting blind area and the non-optimal shooting area are prompted. at least one.
  • the apparatus further includes: a second sending part, configured to generate a rotation instruction based on the position information of the shooting blind spot when it is determined that the shooting blind spot exists; At least one acquisition device among the plurality of acquisition devices sends the rotation instruction, so that the at least one acquisition device rotates toward the shooting blind area.
  • the apparatus further includes: a third sending part, configured to generate a parameter adjustment instruction when it is determined that the non-optimal shooting area exists; At least one of the acquisition devices sends the parameter adjustment instruction to expand the shooting area of the at least one acquisition device.
  • a map generating apparatus comprising:
  • the acquisition part is configured to acquire the current pose information and the shooting field of view information
  • the sending part is configured to send the pose information and the shooting field of view information to the server device, wherein the server device is configured to determine each of the The shooting area of the acquisition device is drawn on the electronic map of the target scene, and the shooting area of each acquisition device is drawn to generate a deployment map of the target scene.
  • the apparatus further includes: a rotating part, configured to receive a rotation instruction sent by the server device; obtain the location information of the shooting blind spot in the target scene according to the rotation instruction; position information of the shooting blind spot, and rotate toward the shooting blind spot.
  • a rotating part configured to receive a rotation instruction sent by the server device; obtain the location information of the shooting blind spot in the target scene according to the rotation instruction; position information of the shooting blind spot, and rotate toward the shooting blind spot.
  • the apparatus further includes: an adjustment part, configured to receive a parameter adjustment instruction sent by a server device; and adjust camera parameters according to the parameter adjustment instruction to expand the shooting area .
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
  • a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
  • a computer program comprising computer-readable code, which, when the computer-readable code is executed in an electronic device and executed by a processor in the electronic device, realizes the above-mentioned map Generate method.
  • a computer program product which, when run on a computer, causes the computer to execute the above-described map generation method.
  • the pose information and shooting field of view information corresponding to multiple collection devices in the target scene may be obtained, and then the shooting of each collection device is determined according to the pose information and shooting field of view information of each collection device.
  • the shooting area of each acquisition device can be drawn on the electronic map of the target scene, and a layout map of the target scene can be generated.
  • the information of multiple collection devices in the target scene can be integrated, the information of multiple collection devices can be effectively associated, and the information of the target scene can be provided to the user in real time and intuitively by placing the map, saving security personnel human resources to provide effective support for the security protection of target scenarios.
  • FIG. 1 shows a flowchart of a map generation method according to an embodiment of the present disclosure.
  • FIG. 2 shows a scene diagram of interaction between a server device and multiple collection devices according to an embodiment of the present disclosure.
  • FIG. 3 shows a flowchart of a map generation method according to an embodiment of the present disclosure.
  • FIG. 4 shows a flowchart of an example of a map generation method according to an embodiment of the present disclosure.
  • FIG. 5 shows a schematic diagram of an example of a deployment map according to an embodiment of the present disclosure.
  • FIG. 6 shows a block diagram of a map generating apparatus according to an embodiment of the present disclosure.
  • FIG. 7 shows a block diagram of a map generating apparatus according to an embodiment of the present disclosure.
  • FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 9 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • At least one of A and B in this document is only an association relationship to describe the associated objects, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • at least one herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
  • edge node products the concept of the Internet of Things is introduced, and the cloud/device center is used to connect edge nodes.
  • edge devices due to the lack of edge devices' own perception capabilities, various edge intelligent terminal devices In fact, it is still in a state of information island, which leads to the fact that the information of various edge devices cannot be effectively correlated for data mining and utilization.
  • the second aspect is that in the design of the current park/city street monitoring system, the selection of camera points and the evaluation of the monitoring effect after installation are extremely dependent on the monitoring plan during the construction phase/the experience of the construction personnel. Insufficient understanding of the park/monitoring area, the following problems are prone to occur: 1) The installation angle or installation point of the surveillance camera is missing, resulting in a monitoring dead angle. 2) The installation distance of the monitoring camera is not suitable, which will cause the shooting target to exceed the optimal monitoring distance, which will cause the target image to be unclear.
  • the security personnel cannot dynamically, intuitively and quickly understand the monitoring coverage status of the current park by the monitoring system. It is still necessary to rely on long-term experience to judge or increase manual patrol coverage.
  • the embodiments of the present disclosure provide a map generation solution, by acquiring the pose information and shooting field information corresponding to multiple collection devices in the target scene, and then according to the pose information of each collection device Information and shooting field of view information, determine the shooting area of each acquisition device, so that the shooting area of each acquisition device can be drawn on the electronic map of the target scene, and the layout map of the target scene can be generated.
  • It can be used in security systems, multi-camera networking, edge nodes and other scenarios. For example, in open scenes such as squares, parks, classrooms, etc., multiple cameras can be set up, and by obtaining the pose information and shooting field information of multiple cameras, a cloth drawing the shooting areas of each camera in the scene can be generated in real time.
  • the map generation method provided by the embodiments of the present disclosure may be executed by a terminal device, a server, or other types of electronic devices, where the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless Phones, Personal Digital Assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
  • the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless Phones, Personal Digital Assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
  • PDAs Personal Digital Assistants
  • the map generation method may be implemented by a processor invoking computer-readable instructions stored in a memory.
  • the method may be performed by a server.
  • FIG. 1 shows a flowchart of a map generation method according to an embodiment of the present disclosure. As shown in FIG. 1 , the map generation method can be applied to a server device, including:
  • Step S11 acquiring the pose information and the shooting field of view information corresponding to the plurality of collecting devices in the target scene respectively.
  • multiple collection devices may be set in the target scene.
  • the collection device may be a device with an image collection function, for example, the collection device may be a terminal device, a server, etc. with a shooting function, and each collection device may shoot a target scene.
  • Multiple acquisition devices can communicate with each other to form a camera network, and information from different acquisition devices can be shared.
  • the server device can obtain the pose information and shooting field information corresponding to the multiple collection devices in the target scene respectively, that is, obtain the pose information and shooting field information of each collection device in the target scene.
  • the server device may obtain the pose information and shooting field information of each acquisition device from each acquisition device through the network.
  • the server device may pre-store the pose information of each collection device and at least part of the shooting field of view information. For example, the server device may pre-store the geographic location of each capture device, and then obtain the information from each capture device. Other information other than the geographic location in the pose information and the shooting field of view information.
  • the pose information may include geographic location and orientation, wherein the geographic location may indicate the location of the collection device in the electronic map of the target scene, and the geographic location may be latitude and longitude coordinates or location coordinates in the coordinate system of the electronic map.
  • the orientation can indicate the orientation of the collection device. Each collection device can be rotated within a preset angle range. The orientation is different, and the pictures captured by the collection device are also different. The orientation can be expressed as a geographic direction or in the coordinate system of the electronic map. direction.
  • the shooting field of view information may indicate the shooting field of view of the collection device, and the shooting field of view information may include a field of view angle, which may be relative to the orientation of the collection device.
  • the field of view may indicate a deviation from the orientation. For example, if the azimuth of the acquisition device is 0 and the field of view is (-30°, 30°), it can indicate that the field of view of the acquisition device is within an angular range of ⁇ 30° from the azimuth of the acquisition device.
  • the server device may be a control device used to manage multiple collection devices, for example, a server, a control terminal, etc.
  • the server device may summarize the information of multiple collection devices and issue some control commands to the multiple collection devices .
  • the server device may be any one of the multiple collection devices, so that one of the multiple collection devices can aggregate the information of the multiple collection devices and control other collection devices. In this way, it can be applied to various application scenarios.
  • FIG. 2 shows a scene diagram of interaction between a server device and multiple collection devices according to an embodiment of the present disclosure.
  • the connection of each edge device can be realized through the cloud device/central device (server device), and the cloud device/central device can aggregate multiple edge devices information, and issue control commands, such as rotation commands or parameter adjustment commands, to multiple edge devices (collection device 1-collection device 5), so as to reduce the influence of the lack of the edge device's own perception ability, and realize the Effective association of information.
  • Step S12 Determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices.
  • the server device can determine the area corresponding to the field of view that can be captured by each capture device according to the pose information and the shooting field of view information of each capture device, and the region can be the capture area of the capture device.
  • the shooting area can be a general area.
  • the geographic location of the capture device can be used as the center point, and a plurality of straight lines can be set through the center point. These straight lines can evenly divide the target scene into several areas. At least one area that may be located in the photographing field of view of the collecting device is roughly determined according to the orientation and viewing angle of the collecting device, and these areas can be used as the photographing area of the collecting device.
  • the shooting area corresponding to the shooting field of view of each collecting device may also be accurately determined according to the pose information and shooting field information of each collecting device.
  • the server device can determine the shooting angle range of the acquisition device according to the azimuth and field of view of the acquisition device.
  • the azimuth of the acquisition device can be used to transform the field of view, such as increasing or decreasing the azimuth of the acquisition device based on the field of view.
  • the shooting angle range of the acquisition device can be obtained. Assuming that the azimuth of the acquisition device is 90° (with true north as 0°) and the viewing angle is (-30°, 30°), the shooting angle range is (60°) , 120°).
  • the shooting angle range may be the range of the shooting field of view of the acquisition device that corresponds to the geographic azimuth or the range that corresponds to the azimuth under the target scene coordinate system.
  • the shooting area of each collecting device can be determined according to the geographic location of the collecting device and the shooting angle range. For example, two rays can be drawn with the geographic location of the collecting device as the center and the azimuth formed by the shooting angle range as the side. The area formed by the rays can be determined as the shooting area of the acquisition device. In this way, the shooting area corresponding to each collecting device can be determined more accurately.
  • Step S13 Draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
  • the shooting area of each acquisition device can be drawn on the electronic map of the target scene.
  • the shooting area of each acquisition device can be drawn on the electronic map by using different colors or indicators to generate a layout map of the target scene.
  • the shooting areas of different collection devices can be distinguished by color or indicator.
  • the overlapping areas can also be marked on the electronic map. mark.
  • the generated deployment map can be displayed, so that the deployment map can display the deployment situation of the target scene in real time, and the user can intuitively and quickly understand the security status of the target scene, which provides a basis for the security protection of the target scene.
  • the generated deployment map can also be sent to the web page or client, so that the user can view the deployment map of the target scene by logging in to the corresponding web page or client, so that the user can quickly understand the deployment status of the target scene. Reduce deployment dead spots and loopholes.
  • the server device can repeatedly acquire the pose information and shooting field information of multiple acquisition devices in the target scene periodically or non-periodically, so that the pose information of multiple acquisition devices in the target scene can be continuously acquired according to the continuous acquisition.
  • Information and shooting field of view information update the deployment map in real time, so that the security status of the target scene can be displayed in real time.
  • the electronic map of the target scene can be a map established in the world coordinate system
  • the coordinate points in the electronic map can be expressed as latitude and longitude coordinates
  • the geographic location of the acquisition device can also be latitude and longitude coordinates, so that the shooting area of the acquisition device can be directly drawn on the electronic map.
  • the electronic map may also be a map established in a relative coordinate system, and the coordinate points in the electronic map may be expressed as relative coordinates in the relative coordinate system.
  • the geographic location of the collection device is the latitude and longitude coordinates
  • the geographic location of the acquisition device is transformed from the latitude and longitude coordinates to the relative coordinate system of the electronic map, and the shooting area of the acquisition device is further drawn in the electronic map.
  • the embodiments of the present disclosure can draw the shooting areas of the multiple collecting devices on the electronic map of the target scene through the pose information and shooting field information of the multiple collecting devices, obtain the deployment map of the target scene, and realize the security protection of the target scene.
  • the acquisition device can be used as an edge node in the edge device scenario, so that the information of each edge device can be effectively associated, compared with some solutions in the related art that are difficult to effectively utilize the information of the edge device due to the lack of the edge device's own perception ability. , which can enhance the effective use of information from edge devices.
  • the server device may send the acquisition request in a broadcast manner, so that the multiple acquisition devices return based on the acquisition request. pose information and the shooting field of view information.
  • the server device may send an acquisition request to multiple acquisition devices, so that the multiple acquisition devices return the pose information and the shooting field of view information based on the acquisition request.
  • the acquisition device can monitor the server device.
  • the acquisition device returns itself to the server device according to the acquisition request. pose information and shooting field of view information.
  • the server device may not need to store the device list of the acquisition device in advance.
  • the server device can obtain the device lists of multiple collection devices in advance, and then send an acquisition request according to the collection device indicated in the device list.
  • the collection device receives the acquisition request, it can return itself to the server device. pose information and shooting field of view information.
  • the acquisition device may not need to monitor the server device in real time.
  • a global navigation satellite system Global Navigation Satellite System, GNSS
  • an electronic compass sensor may be configured in the acquisition device, so that the acquisition device may have the ability to perceive its own geographic location and orientation.
  • the acquisition device can obtain high-precision latitude and longitude coordinates through GPS differential or static positioning algorithms.
  • the location of the acquisition device can no longer be changed, so that after the acquisition device is installed, the logical location of the acquisition device can be saved in the acquisition device or in the in the server device.
  • the coordinates of the electronic map can also be longitude and latitude coordinates, so that the acquired location information and the location information of the electronic map can be unified, which is convenient for other devices to use.
  • the acquisition device determines the field of view and the optimal shooting distance by using camera parameters such as the size, resolution, and focal length of the photosensitive device.
  • the imaging quality of the acquisition camera is relatively high in the case of photographing the angle of view of the acquisition camera and the photographing pair within the optimal shooting distance.
  • the acquisition device can record its own viewing angle and optimal shooting distance.
  • the server device may determine the shooting area of each collecting device according to the pose information and the shooting field of view information of each collecting device.
  • the shooting field information may also include the best shooting distance.
  • a fan-shaped area formed with the geographical location of the acquisition device as the vertex can be determined according to the geographical location of the acquisition device, the range of the shooting angle, and the optimal shooting distance, and the fan-shaped area can be determined as the acquisition The shooting area of the device.
  • the optimal shooting distance may represent the maximum distance between the shooting object in the target scene and the acquisition device under the condition that the imaging of the acquisition device is clear.
  • the acquisition device can clearly capture the subject within the optimal shooting distance, and the subject can be a person or object in the target scene. If the optimal shooting distance is exceeded, the shooting picture of the capture device may be blurred. Therefore, in order to improve the clarity of the image captured by the capture device, the optimal capture distance of the capture device may also be considered when the capture area of each capture device is determined. For example, a sector may be formed with the geographic location of the collection device as the center, the optimal shooting distance as the radius, and the shooting angle range as the vertex angle, and the fan-shaped area may be the shooting area of the collection device. The shooting area determined in this way takes into account the optimal shooting distance of each collection device, and the people or objects captured in the shooting area can be clearly imaged, thereby improving the clarity of the image captured by the collection device.
  • At least one of the shooting blind area and the non-optimal shooting area of the target scene may also be determined according to the shooting areas of multiple acquisition devices, and further At least one of the determined shooting blind area and the non-optimal shooting area is prompted in the generated deployment map.
  • the shooting blind area may be an area in the target scene that cannot be photographed by multiple acquisition devices.
  • the server device can determine the shooting blind spots in the target scene that cannot be captured by multiple acquisition devices according to the shooting angle range corresponding to the shooting area of each acquisition device and the occlusion of the buildings and infrastructure in the target scene to the shooting field of view of the acquisition device. .
  • the non-optimal shooting area may be an area in the target scene that exceeds the optimal shooting distances of the multiple capture devices.
  • the server device can determine that it is within the shooting field of view of multiple collection devices but exceeds the shooting field of view of multiple collection devices according to the optimal shooting distance corresponding to the shooting area of each collection device and the occlusion of buildings and infrastructure in the target scene to the shooting field of view of the collection device. Capture the area where the device's best shooting distance is.
  • At least one of the shooting blind area and the non-optimal shooting area can be prompted in the deployment map, for example, by Graphics such as arrows and circles can indicate at least one of shooting blind spots and non-optimal shooting areas, or you can draw at least one of shooting blind spots and non-optimal shooting areas in the layout map, so that you can Better provide users with the deployment situation of the target scene by deploying the map.
  • the server device may generate a rotation instruction based on the position information of the shooting blind spot, and send the rotation instruction to at least one of the multiple collection devices, so that at least One acquisition device is rotated toward the shooting blind area, thereby changing the orientation of at least one acquisition device.
  • the server device can pre-store the maximum shooting field of view of each acquisition device, and the maximum shooting field of view is the largest area that can be covered by the shooting area of the acquisition device when the acquisition device is rotatable, that is, the shooting area of the acquisition device follows the acquisition device. The maximum area that can be reached by changing the orientation.
  • the maximum shooting field of view of each collection device may also be stored in the respective collection device, and the server device may obtain the maximum shooting field of view of each collection device from each collection device.
  • the server device can determine one or more acquisition devices whose maximum shooting field of view includes the shooting blind area according to the location of the maximum shooting field of view of each acquisition device and the location of the shooting blind area, and then can send rotation to the determined one or more acquisition devices. an instruction to rotate the determined one or more acquisition devices toward the shooting blind spot. In this way, when there is a shooting blind spot in the target scene, the acquisition device can be adjusted in orientation, and the existence of the shooting blind spot can be reduced.
  • the acquisition device can receive the rotation instruction sent by the server device, and then can obtain the position information of the shooting blind spot in the target scene according to the rotation instruction, and can further determine the rotation direction and rotation angle according to the position information of the shooting blind spot, and then according to the determined position information.
  • the rotation direction and rotation angle are rotated towards the shooting blind spot, so that the shooting blind spot can enter the shooting field of view, thereby reducing the existence of the shooting blind spot.
  • the optimal shooting distance of the acquisition device can be changed with the adjustment of the camera parameters, and correspondingly, the maximum shooting field of view of the acquisition device can be changed according to the optimal shooting distance and change.
  • the maximum shooting field of view of the acquisition device may also be marked, for example, a dotted line may be used to mark the maximum shooting field of view of the acquisition device.
  • the server device may generate a parameter adjustment instruction, and send the parameter adjustment instruction to at least one acquisition device among the plurality of acquisition devices, so as to expand at least one of the acquisition devices.
  • a shooting area of a capture device which can reduce the existence of non-optimal shooting areas in the target scene and improve the deployment effect.
  • the parameter adjustment instruction may instruct the acquisition device to adjust the camera parameters
  • the camera parameters may include parameters such as focal length, aperture, and exposure value.
  • the acquisition device After the acquisition device receives the parameter adjustment instruction sent by the server device, it can adjust the camera parameters according to the parameter adjustment instruction to expand the current shooting area, so that the image of the target scene captured by the acquisition device is as clear as possible, reducing the most The existence of the best shooting area.
  • the server device may further determine the position of the shooting object in the captured image in the target scene according to the images captured by multiple collection devices.
  • a tracking instruction can also be sent to one or more acquisition devices according to the position of the shooting object in the target scene, so that one or more acquisition devices in the target scene can track the shooting object and determine the shooting object. motion estimation.
  • the running track of the shooting object can be marked in the deployment map, so that more information can be provided through the deployment map, which is convenient for users to view or evaluate and analyze the current security solution.
  • the embodiments of the present disclosure can draw the shooting areas of the multiple collecting devices on the electronic map of the target scene by using the pose information and the shooting field information of the multiple collecting devices to generate a real-time visualized deployment map of the target scene.
  • the deployment map allows users to intuitively and quickly understand the deployment of the current target scene, which can help users quickly identify shooting loopholes in the target scene, such as at least one of shooting blind spots and non-optimal shooting areas. Put the map to conduct more targeted inspections to improve the security protection of the target scene.
  • FIG. 3 shows a flowchart of a map generation method according to an embodiment of the present disclosure, which is applied to a collection device.
  • the map generation method includes:
  • Step S21 acquiring current pose information and photographing field of view information.
  • Step S22 Send the pose information and the shooting field of view information to the server device.
  • the acquisition device may acquire an acquisition request sent by the server device in a broadcast manner, or the acquisition device may receive an acquisition request sent by the server device, where the acquisition request is used to request acquisition of current pose information and shooting field of view information.
  • the acquisition device acquires the current pose information and the shooting field of view information, and then sends the current pose information and the shooting field of view information to the server device.
  • the server device can integrate the pose information and shooting field of view information of multiple acquisition devices to determine the shooting area of each acquisition device, and draw the shooting area of each acquisition device on the electronic map of the target scene to generate a deployment map of the target scene.
  • the collection device may also receive a rotation instruction sent by the server device, obtain location information of the shooting blind spot in the target scene according to the received rotation instruction, and further rotate toward the shooting blind area according to the location information of the shooting blind area.
  • the collection device may also receive a parameter adjustment instruction sent by the server device, and further adjust the camera parameters according to the parameter adjustment instruction to expand the shooting area.
  • FIG. 4 shows a flowchart of an example of a map generation method according to an embodiment of the present disclosure, including the following steps:
  • the server device sends an acquisition request.
  • Sending the acquisition request can be implemented in the following two ways: 1. Send the acquisition request by broadcasting; 2.
  • the server device uses the pre-acquired device list to send the acquisition request to the acquisition device in the device list.
  • the acquisition device receives the acquisition request, and returns the pose information and the shooting field of view information to the server device.
  • the server device receives the pose information and the shooting field of view information sent by each collection device.
  • the server device determines the shooting area of each collecting device according to the pose information and shooting field of view information of each collecting device.
  • the server device generates a deployment map of the target scene in the shooting area of each collection device in the electronic map.
  • the server device displays the generated deployment map in the interface.
  • the server device can repeatedly send the acquisition request periodically or aperiodically, so that the pose information and shooting field of view information sent by each acquisition device can be acquired in real time, and the above S31 to S36 can be repeatedly executed to correct the distribution. Put the map to update in real time.
  • the server device can send an acquisition request, and the acquisition request can carry instructions for acquiring the pose information and shooting field of view information in real time. , periodically or non-periodically return the pose information and shooting field of view information to the server device, and the server device can update the deployment map in real time according to the pose information and shooting field of view information of each collection device.
  • FIG. 5 shows a schematic diagram of an example of a deployment map according to an embodiment of the present disclosure.
  • the shooting area considers the best shooting distance, and the target scene can be a park.
  • the shooting area of each acquisition device is marked in the layout map. Different acquisition devices can be distinguished by device numbers. There are 6 acquisition devices in the figure, and the acquisition devices can be marked by numbers 1-6. There are 2 buildings marked in the figure (Building 1 and Building 2). Each acquisition device has a corresponding shooting area (a shadow sector area corresponding to each acquisition device in the figure).
  • the shooting blind spot (shooting blind spot) is also marked in the deployment map, indicating that there is a shooting blind spot, and there is no shooting blind spot at the entrance of the park.
  • the non-optimal shooting area beyond the optimum shooting distance can also indicate the non-optimal shooting area beyond the optimum shooting distance, such as indicating that the image is not clear beyond the optimum shooting distance.
  • zoom rotation can also be supported in the deployment map, and the maximum shooting field of view of the acquisition device is marked by a dotted line.
  • the dotted line area corresponding to acquisition device 4 is the maximum shooting field of view of the acquisition device.
  • the present disclosure also provides a map generation device, electronic device, computer-readable storage medium, and program, all of which can be used to implement any map generation method provided by the present disclosure.
  • a map generation device electronic device, computer-readable storage medium, and program, all of which can be used to implement any map generation method provided by the present disclosure.
  • Fig. 6 shows a block diagram of a map generating apparatus according to an embodiment of the present disclosure.
  • the map generating apparatus may be configured as a server device. As shown in Fig. 6 , the apparatus includes:
  • the acquisition part 41 is configured to acquire the pose information and the shooting field of view information corresponding to the plurality of acquisition devices in the target scene respectively;
  • the determination part 42 is configured to determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices;
  • the generating part 43 is configured to draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
  • the apparatus further includes: a first sending part 44, configured to send an acquisition request in a broadcast manner, so that the multiple acquisition devices return the pose based on the acquisition request information and the shooting field of view information; or, sending an acquisition request to the multiple collection devices, so that the multiple collection devices return the pose information and the shooting field of view information based on the acquisition request.
  • a first sending part 44 configured to send an acquisition request in a broadcast manner, so that the multiple acquisition devices return the pose based on the acquisition request information and the shooting field of view information
  • sending an acquisition request to the multiple collection devices so that the multiple collection devices return the pose information and the shooting field of view information based on the acquisition request.
  • the pose information includes geographic location and orientation
  • the photographing field of view information includes an angle of view
  • the determining part 42 is configured to be based on the orientation of the acquisition device and the field of view
  • the shooting angle range of the collecting device is determined; the shooting area of each collecting device is determined according to the geographical position of the collecting device and the shooting angle range.
  • the photographing field of view information further includes an optimal photographing distance
  • the determining part 42 is configured to be based on the geographic location of the collecting device, the photographing angle range, and the optimal photographing distance.
  • the shooting distance a fan-shaped area formed by taking the geographic location of the collecting device as a vertex is determined; and the fan-shaped area is determined as the shooting area of the collecting device.
  • the determining part 42 is further configured to determine at least one of the shooting blind area and the non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices , wherein, the non-optimal shooting area is an area in the target scene that exceeds the optimal shooting distance of the multiple collection devices; in the deployment map, it is indicated that the shooting blind area and the non-optimal shooting area are in the at least one of.
  • the apparatus further includes: a second sending part 45, configured to generate a rotation instruction based on the position information of the shooting blind spot when it is determined that the shooting blind spot exists; At least one acquisition device among the plurality of acquisition devices sends the rotation instruction, so that the at least one acquisition device rotates toward the shooting blind area.
  • the apparatus further includes: a third sending part 46, configured to generate a parameter adjustment instruction when it is determined that the non-optimal shooting area exists; At least one acquisition device in the devices sends the parameter adjustment instruction to expand the shooting area of the at least one acquisition device.
  • FIG. 7 shows a block diagram of an apparatus for generating a map according to an embodiment of the present disclosure.
  • the apparatus for generating a map can be applied to a collection device. As shown in FIG. 7 , the apparatus includes:
  • an acquisition part 51 configured to acquire current pose information and shooting field of view information
  • the sending part 52 is configured to send the pose information and the shooting field of view information to the server device, wherein the server device is configured to determine the position and attitude information and shooting field of view information of each collection device.
  • the shooting area of the acquisition device is drawn, and the shooting area of each acquisition device is drawn on the electronic map of the target scene to generate a deployment map of the target scene.
  • the apparatus further includes: a rotating part 53 configured to receive a rotation instruction sent by the server device; obtain location information of the shooting blind spot in the target scene according to the rotation instruction; The position information of the shooting blind spot is rotated toward the shooting blind spot.
  • the apparatus further includes: an adjustment part 54 configured to receive a parameter adjustment instruction sent by the server device; adjust camera parameters according to the parameter adjustment instruction to expand the shooting area.
  • the functions or included parts of the apparatus provided in the embodiments of the present disclosure may be configured to execute the methods described in the above method embodiments, and the specific implementation may refer to the descriptions in the above method embodiments. No longer.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
  • Embodiments of the present disclosure also provide a computer program product, including computer-readable codes.
  • a processor in the device executes a method for implementing the map generation method provided by any of the above embodiments. instruction.
  • Embodiments of the present disclosure further provide another computer program product for storing computer-readable instructions, which, when executed, cause the computer to perform the operations of the map generation method provided by any of the foregoing embodiments.
  • the electronic device may be provided as a terminal, server or other form of device.
  • FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
  • an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 , and the communication component 816 .
  • the processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • Power supply assembly 806 provides power to various components of electronic device 800 .
  • Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
  • Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • the multimedia component 808 includes at least one of a front-facing camera and a rear-facing camera.
  • At least one of the front camera and the rear camera may receive external multimedia data.
  • Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
  • Audio component 810 is configured to at least one of output and input audio signals.
  • audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 .
  • the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications.
  • CMOS complementary metal oxide semiconductor
  • CCD charge coupled device
  • the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
  • the electronic device 800 may access a wireless network based on a communication standard, such as wireless network (WiFi), second generation mobile communication technology (2G) or third generation mobile communication technology (3G), or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A programmed gate array
  • controller microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • a non-volatile computer-readable storage medium such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
  • FIG. 9 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device 1900 may be provided as a server.
  • electronic device 1900 includes processing component 1922, which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922, such as applications.
  • An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above-described methods.
  • the electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
  • the electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows ServerTM), a graphical user interface based operating system (Mac OS XTM) introduced by Apple, a multi-user multi-process computer operating system (UnixTM). ), Free and Open Source Unix-like Operating System (LinuxTM), Open Source Unix-like Operating System (FreeBSDTM) or similar.
  • a non-volatile computer-readable storage medium such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.
  • the present disclosure may be at least one of systems, methods and computer program products.
  • the computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disk read only memory
  • DVD digital versatile disk
  • memory sticks floppy disks
  • mechanically coded devices such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
  • the computer readable program instructions described herein may be downloaded from a computer readable storage medium to various computing/processing devices, or to an external computer or external storage device over a network such as at least one of the Internet, a local area network, a wide area network, and a wireless network .
  • the network may include at least one of copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages.
  • Source or object code written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages.
  • the computer readable program instructions 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 implement.
  • 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 the Internet connect).
  • LAN local area network
  • WAN wide area network
  • custom electronic circuits such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) can be personalized by utilizing state information of computer readable program instructions.
  • Computer readable program instructions are executed to implement various aspects of the present disclosure.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of at least one of the flowcharts and block diagrams.
  • These computer-readable program instructions may also be stored in a computer-readable storage medium, the instructions causing at least one of a computer, programmable data processing apparatus, and other devices to operate in a particular manner, so that the computer-readable storage medium with the instructions
  • the medium then includes an article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of at least one of the flowcharts and block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of at least one of the flowcharts and block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks 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.
  • each block of at least one of the block diagrams and flowchart illustrations, and combinations of blocks in at least one of the block diagrams and flowchart illustrations can be used with special purpose It is implemented in a hardware-based system, or can be implemented in a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically implemented by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
  • a software development kit Software Development Kit, SDK
  • the pose information and the shooting field of view information corresponding to the plurality of collection devices in the target scene are obtained respectively; according to the pose information and the shooting field of view information of each of the collection devices, each collection device is determined. drawing the shooting area of each of the collection devices on the electronic map of the target scene to generate a deployment map of the target scene.
  • the above solution can provide the user with the situation of the target scene by deploying the map.

Abstract

The present disclosure relates to a map generation method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring pose information and photographing field of view information in a target scene that respectively correspond to a plurality of collection devices; determining a photographing region of each collection device according to the pose information and the photographing field of view information of each collection device; and drawing the photographing region of each collection device on an electronic map of the target scene, so as to generate a layout map of the target scene. By means of the embodiments of the present disclosure, the situation of a target scene can be provided for a user by means of a layout map.

Description

地图生成方法及装置、电子设备和存储介质Map generation method and device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于申请号为202110390593.7、申请日为2021年04月12日、申请名称为“地图生成方法及装置、电子设备和存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The present disclosure is based on the Chinese patent application with the application number of 202110390593.7, the application date of April 12, 2021, and the application title of "Map Generation Method and Device, Electronic Device and Storage Medium", and claims the priority of the Chinese patent application, The entire contents of this Chinese patent application are hereby incorporated by reference into the present disclosure.
技术领域technical field
本公开涉及安防技术领域,尤其涉及一种地图生成方法及装置、电子设备和存储介质。The present disclosure relates to the field of security technologies, and in particular, to a map generation method and device, an electronic device and a storage medium.
背景技术Background technique
在安防领域中,可以在当前场景中设置多个采集装置,从而可以在多个方位对当前场景进行图像采集。例如,可以在园区、街道中布置多个相机,通过多个相机进行图像,从而实现园区、街道的安全防护。In the security field, multiple acquisition devices can be set in the current scene, so that images of the current scene can be acquired in multiple directions. For example, multiple cameras can be arranged in parks and streets, and images can be taken through multiple cameras, so as to realize the security protection of parks and streets.
发明内容SUMMARY OF THE INVENTION
本公开公开提出了一种地图生成技术方案。The present disclosure provides a technical solution for map generation.
根据本公开的一方面,提供了一种地图生成方法,包括:According to an aspect of the present disclosure, a map generation method is provided, comprising:
获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息;根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域;在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。Obtaining the pose information and shooting field of view information corresponding to the multiple collection devices in the target scene respectively; determining the shooting area of each of the collection devices according to the pose information and shooting field of view information of each of the collection devices; The shooting area of each of the collection devices is drawn on the electronic map of the target scene, and a deployment map of the target scene is generated.
在一个或多个可能的实现方式中,所述方法还包括:采用广播方式发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息;或者,向所述多个采集设备发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息。In one or more possible implementations, the method further includes: sending an acquisition request in a broadcast manner, so that the plurality of acquisition devices return the pose information and the shooting field of view information based on the acquisition request; Alternatively, an acquisition request is sent to the multiple acquisition devices, so that the multiple acquisition devices return the pose information and the shooting field of view information based on the acquisition request.
在一个或多个可能的实现方式中,所述位姿信息包括地理位置和方位,所述拍摄视野信息包括视野角;所述根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,包括:根据所述采集设备的方位以及所述视野角,确定所述采集设备的拍摄角度范围;根据所述采集设备的地理位置和所述拍摄角度范围,确定每个所述采集设备的拍摄区域。In one or more possible implementations, the pose information includes a geographic location and an orientation, and the shooting field of view information includes a field of view; the determining according to the pose information and shooting field of view information of each of the collection devices The shooting area of each collecting device includes: determining the shooting angle range of the collecting device according to the orientation of the collecting device and the angle of view; according to the geographical position of the collecting device and the shooting angle range, A photographing area for each of the acquisition devices is determined.
在一个或多个可能的实现方式中,所述拍摄视野信息还包括最佳拍摄距离,所述根据所述采集设备的地理位置和所述拍摄角度范围,确定所述采集设备的拍摄区域,包括:根据所述采集设备的地理位置、所述拍摄角度范围以及所述最佳拍摄距离,确定以所述采集设备的地理位置为顶点形成的扇形区域;将所述扇形区域确定为所述采集设备的拍摄区域。In one or more possible implementations, the photographing field of view information further includes an optimal photographing distance, and determining the photographing area of the collecting device according to the geographic location of the collecting device and the photographing angle range, including : According to the geographic location of the collection device, the shooting angle range and the best shooting distance, determine a fan-shaped area formed with the geographic location of the collection device as a vertex; determine the fan-shaped area as the collection device shooting area.
在一个或多个可能的实现方式中,所述方法还包括:根据每个所述采集设备的拍摄区域,确定所述目标场景的拍摄盲区和非最佳拍摄区中的至少一项,其中,所述非最佳拍摄区为所述目标场景中超出所述多个采集设备的最佳拍摄距离的区域;在所述布放地图中提示所述拍摄盲区和非最佳拍摄区中的至少一项。In one or more possible implementation manners, the method further includes: determining at least one of a shooting blind area and a non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices, wherein, The non-optimal shooting area is an area in the target scene that exceeds the optimal shooting distance of the multiple collection devices; at least one of the shooting blind area and the non-optimal shooting area is prompted in the deployment map. item.
在一个或多个可能的实现方式中,所述方法还包括:在确定存在所述拍摄盲区的情况下,基于所述拍摄盲区的位置信息生成旋转指令;向所述多个采集设备中的至少一个采集设备发送所述旋转指令,以使所述至少一个采集设备朝向所述拍摄盲区旋转。In one or more possible implementation manners, the method further includes: in the case where it is determined that the shooting blind spot exists, generating a rotation instruction based on the position information of the shooting blind spot; sending a rotation instruction to at least one of the multiple collection devices A collection device sends the rotation instruction, so that the at least one collection device rotates toward the shooting blind area.
在一个或多个可能的实现方式中,所述方法还包括:在确定存在所述非最佳拍摄区的情况下,生成参数调节指令;向所述多个采集设备中的至少一个采集设备发送所述参数调 节指令,以扩大所述至少一个采集设备的拍摄区域。In one or more possible implementation manners, the method further includes: in the case that it is determined that the non-optimal shooting area exists, generating a parameter adjustment instruction; sending a parameter adjustment instruction to at least one acquisition device among the plurality of acquisition devices The parameter adjustment instruction is used to expand the photographing area of the at least one acquisition device.
根据本公开的一方面,提供了一种地图生成方法,应用于采集设备中,包括:According to an aspect of the present disclosure, a method for generating a map is provided, which is applied to a collection device, including:
获取当前的位姿信息以及拍摄视野信息;Obtain the current pose information and shooting field of view information;
向服务端设备发送所述位姿信息以及所述拍摄视野信息,其中,所述服务端设备用于根据每个采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。Sending the pose information and the shooting field of view information to the server device, wherein the server device is used to determine the shooting area of each collection device according to the pose information and shooting field information of each collection device , draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
在一个或多个可能的实现方式中,所述方法还包括:接收服务端设备发送的旋转指令;根据所述旋转指令获取所述目标场景中拍摄盲区的位置信息;根据所述拍摄盲区的位置信息,朝向所述拍摄盲区进行旋转。In one or more possible implementations, the method further includes: receiving a rotation instruction sent by a server device; acquiring position information of a shooting blind spot in the target scene according to the rotation instruction; information, and rotate toward the shooting blind spot.
在一个或多个可能的实现方式中,所述方法还包括:接收服务端设备发送的参数调节指令;根据所述参数调节指令对相机参数进行调节,以扩大所述拍摄区域。In one or more possible implementation manners, the method further includes: receiving a parameter adjustment instruction sent by a server device; and adjusting camera parameters according to the parameter adjustment instruction to expand the shooting area.
根据本公开的一方面,提供了一种地图生成装置,包括:According to an aspect of the present disclosure, a map generating apparatus is provided, comprising:
获取部分,配置为获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息;an acquisition part, configured to acquire the pose information and the shooting field of view information corresponding to the multiple acquisition devices in the target scene respectively;
确定部分,配置为根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域;a determining part, configured to determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices;
生成部分,配置为在目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。The generating part is configured to draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a layout map of the target scene.
在一个或多个可能的实现方式中,所述装置还包括第一发送部分,配置为采用广播方式发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息;或者,向所述多个采集设备发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息。In one or more possible implementation manners, the apparatus further includes a first sending part configured to send an acquisition request in a broadcast manner, so that the plurality of acquisition devices return the pose information and the pose information based on the acquisition request. the shooting field of view information; or, sending an acquisition request to the multiple collection devices, so that the multiple collection devices return the pose information and the shooting field of view information based on the acquisition request.
在一个或多个可能的实现方式中,所述位姿信息包括地理位置和方位,所述拍摄视野信息包括视野角;所述确定部分,配置为根据所述采集设备的方位以及所述视野角,确定所述采集设备的拍摄角度范围;根据所述采集设备的地理位置和所述拍摄角度范围,确定每个所述采集设备的拍摄区域。In one or more possible implementation manners, the pose information includes a geographic location and an orientation, and the shooting field of view information includes a viewing angle; the determining part is configured to be based on the orientation of the collecting device and the viewing angle , determine the shooting angle range of the collecting device; determine the shooting area of each collecting device according to the geographic location of the collecting device and the shooting angle range.
在一个或多个可能的实现方式中,所述拍摄视野信息还包括最佳拍摄距离,所述确定部分,配置为根据所述采集设备的地理位置、所述拍摄角度范围以及所述最佳拍摄距离,确定以所述采集设备的地理位置为顶点形成的扇形区域;将所述扇形区域确定为所述采集设备的拍摄区域。In one or more possible implementations, the photographing field of view information further includes an optimal photographing distance, and the determining part is configured to be based on the geographic location of the collecting device, the photographing angle range and the optimal photographing distance The distance is determined as a fan-shaped area formed by taking the geographic location of the collecting device as a vertex; the fan-shaped area is determined as the shooting area of the collecting device.
在一个或多个可能的实现方式中,所述确定部分,还配置为根据每个所述采集设备的拍摄区域,确定所述目标场景的拍摄盲区和非最佳拍摄区中的至少一项,其中,所述非最佳拍摄区为所述目标场景中超出所述多个采集设备的最佳拍摄距离的区域;在所述布放地图中提示所述拍摄盲区和非最佳拍摄区中的至少一项。In one or more possible implementation manners, the determining part is further configured to determine at least one of a shooting blind area and a non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices, Wherein, the non-optimal shooting area is an area in the target scene that exceeds the optimal shooting distance of the plurality of collection devices; in the deployment map, the shooting blind area and the non-optimal shooting area are prompted. at least one.
在一个或多个可能的实现方式中,所述装置还包括:第二发送部分,配置为在确定存在所述拍摄盲区的情况下,基于所述拍摄盲区的位置信息生成旋转指令;向所述多个采集设备中的至少一个采集设备发送所述旋转指令,以使所述至少一个采集设备朝向所述拍摄盲区旋转。In one or more possible implementation manners, the apparatus further includes: a second sending part, configured to generate a rotation instruction based on the position information of the shooting blind spot when it is determined that the shooting blind spot exists; At least one acquisition device among the plurality of acquisition devices sends the rotation instruction, so that the at least one acquisition device rotates toward the shooting blind area.
在一个或多个可能的实现方式中,所述装置还包括:第三发送部分,配置为在确定存在所述非最佳拍摄区的情况下,生成参数调节指令;向所述多个采集设备中的至少一个采集设备发送所述参数调节指令,以扩大所述至少一个采集设备的拍摄区域。In one or more possible implementations, the apparatus further includes: a third sending part, configured to generate a parameter adjustment instruction when it is determined that the non-optimal shooting area exists; At least one of the acquisition devices sends the parameter adjustment instruction to expand the shooting area of the at least one acquisition device.
根据本公开的一方面,提供了一种地图生成装置,包括:According to an aspect of the present disclosure, a map generating apparatus is provided, comprising:
获取部分,配置为获取当前的位姿信息以及拍摄视野信息;The acquisition part is configured to acquire the current pose information and the shooting field of view information;
发送部分,配置为向服务端设备发送所述位姿信息以及所述拍摄视野信息,其中,所 述服务端设备配置为根据每个采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,在目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。The sending part is configured to send the pose information and the shooting field of view information to the server device, wherein the server device is configured to determine each of the The shooting area of the acquisition device is drawn on the electronic map of the target scene, and the shooting area of each acquisition device is drawn to generate a deployment map of the target scene.
在一个或多个可能的实现方式中,所述装置还包括:转动部分,配置为接收服务端设备发送的旋转指令;根据所述旋转指令获取所述目标场景中拍摄盲区的位置信息;根据所述拍摄盲区的位置信息,朝向所述拍摄盲区进行旋转。In one or more possible implementation manners, the apparatus further includes: a rotating part, configured to receive a rotation instruction sent by the server device; obtain the location information of the shooting blind spot in the target scene according to the rotation instruction; position information of the shooting blind spot, and rotate toward the shooting blind spot.
在一个或多个可能的实现方式中,所述装置还包括:调节部分,配置为接收服务端设备发送的参数调节指令;根据所述参数调节指令对相机参数进行调节,以扩大所述拍摄区域。In one or more possible implementations, the apparatus further includes: an adjustment part, configured to receive a parameter adjustment instruction sent by a server device; and adjust camera parameters according to the parameter adjustment instruction to expand the shooting area .
根据本公开的一方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to an aspect of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to an aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
根据本公开的一方面,提供了一种计算机程序,包括计算机可读代码,在所述计算机可读代码在电子设备中运行,被所述电子设备中的处理器执行的情况下,实现上述地图生成方法。According to an aspect of the present disclosure, there is provided a computer program, comprising computer-readable code, which, when the computer-readable code is executed in an electronic device and executed by a processor in the electronic device, realizes the above-mentioned map Generate method.
根据本公开的一方面,提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行上述地图生成方法。According to an aspect of the present disclosure, there is provided a computer program product which, when run on a computer, causes the computer to execute the above-described map generation method.
在本公开实施例中,可以获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息,然后根据每个采集设备的位姿信息以及拍摄视野信息,确定每个采集设备的拍摄区域,从而可以在目标场景的电子地图上绘制各个采集设备的拍摄区域,生成目标场景的布放地图。通过这种方式,可以整合目标场景中多个采集设备的信息,对多个采集装置的信息进行有效地关联,通过布放地图可为用户实时、可直观地提供目标场景的情况,节省安保人员的人力资源,为目标场景的安全防护提供有效支撑。In the embodiment of the present disclosure, the pose information and shooting field of view information corresponding to multiple collection devices in the target scene may be obtained, and then the shooting of each collection device is determined according to the pose information and shooting field of view information of each collection device. In this way, the shooting area of each acquisition device can be drawn on the electronic map of the target scene, and a layout map of the target scene can be generated. In this way, the information of multiple collection devices in the target scene can be integrated, the information of multiple collection devices can be effectively associated, and the information of the target scene can be provided to the user in real time and intuitively by placing the map, saving security personnel human resources to provide effective support for the security protection of target scenarios.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.
图1示出根据本公开实施例的地图生成方法的流程图。FIG. 1 shows a flowchart of a map generation method according to an embodiment of the present disclosure.
图2示出根据本公开实施例的服务端设备与多个采集设备交互的场景图。FIG. 2 shows a scene diagram of interaction between a server device and multiple collection devices according to an embodiment of the present disclosure.
图3示出根据本公开实施例的地图生成方法的流程图。FIG. 3 shows a flowchart of a map generation method according to an embodiment of the present disclosure.
图4示出根据本公开实施例的地图生成方法一示例的流程图。FIG. 4 shows a flowchart of an example of a map generation method according to an embodiment of the present disclosure.
图5示出根据本公开实施例的布放地图一示例的示意图。FIG. 5 shows a schematic diagram of an example of a deployment map according to an embodiment of the present disclosure.
图6示出根据本公开实施例的地图生成装置的框图。FIG. 6 shows a block diagram of a map generating apparatus according to an embodiment of the present disclosure.
图7示出根据本公开实施例的地图生成装置的框图。FIG. 7 shows a block diagram of a map generating apparatus according to an embodiment of the present disclosure.
图8示出根据本公开实施例的一种电子设备的框图。FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
图9示出根据本公开实施例的一种电子设备的框图。FIG. 9 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
本文中术语“A和B中的至少一项”,仅仅是一种描述关联对象的关联关系,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "at least one of A and B" in this document is only an association relationship to describe the associated objects, which can mean that A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are set forth in the following detailed description. It will be understood by those skilled in the art that the present disclosure may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.
目前,在安防领域中采用以下三种安全防护方式进行园区以及街道的安全防护时主要存在以下问题:At present, in the field of security protection, the following three security protection methods are used for the security protection of parks and streets, and there are mainly the following problems:
第一方面,在当前智能边缘节点产品的使用场景中,引入了物联网概念,使用云/设备中心将各边缘节点进行了连接,但是由于边缘设备自身感知能力的不足,各种边缘智能终端设备事实上仍然处于一种信息孤岛状态,导致各种边缘设备的信息不能被有效的关联,从而进行数据挖掘和利用。First, in the current usage scenarios of intelligent edge node products, the concept of the Internet of Things is introduced, and the cloud/device center is used to connect edge nodes. However, due to the lack of edge devices' own perception capabilities, various edge intelligent terminal devices In fact, it is still in a state of information island, which leads to the fact that the information of various edge devices cannot be effectively correlated for data mining and utilization.
第二方面,由于在当前园区/城市街道监控系统的布防方案设计中,相机点位的选择,安装后监控效果的评估极度依赖于施工阶段监控方案/施工人员的经验,如果设计、施工人员对园区/监控区域了解不足,极易出现以下问题:1)监控相机安装角度或者安装点位缺失,导致出现监控死角。2)监控相机安装距离不合适,导致拍摄目标超出最佳监控距离,将导致目标图像画面不清晰。The second aspect is that in the design of the current park/city street monitoring system, the selection of camera points and the evaluation of the monitoring effect after installation are extremely dependent on the monitoring plan during the construction phase/the experience of the construction personnel. Insufficient understanding of the park/monitoring area, the following problems are prone to occur: 1) The installation angle or installation point of the surveillance camera is missing, resulting in a monitoring dead angle. 2) The installation distance of the monitoring camera is not suitable, which will cause the shooting target to exceed the optimal monitoring distance, which will cause the target image to be unclear.
第三方面,在园区日常监控工作中,尤其是当监控系统中存在球机等可动态移动的设备时,安保人员无法动态实时、直观快速的了解监控系统对当前园区的监控覆盖状态。仍需凭借长期经验判断或增加人工巡逻覆盖。On the third aspect, in the daily monitoring work of the park, especially when there are dynamic mobile devices such as ball machines in the monitoring system, the security personnel cannot dynamically, intuitively and quickly understand the monitoring coverage status of the current park by the monitoring system. It is still necessary to rely on long-term experience to judge or increase manual patrol coverage.
针对上述安防领域存在的问题,本公开实施例提供了一种地图生成方案,通过获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息,然后根据每个采集设备的位姿信息以及拍摄视野信息,确定每个采集设备的拍摄区域,从而可以在目标场景的电子地图上绘制各个采集设备的拍摄区域,生成目标场景的布放地图。可以应用于安防系统、多相机组网、边缘节点等场景中。例如,在广场、园区、教室等较开阔场景下,可在设置多个相机,通过获取多个相机的位姿信息和拍摄视野信息,可以实时地生成绘制有场景中各个相机的拍摄区域的布放地图。可以整合目标场景中多个采集设备的信息,对多个采集装置的信息进行有效地关联,通过布放地图可为用户实时、可直观地提供目标场景的情况,节省安保人员的人力资源,为目标场景的安全防护提供有效支撑In view of the above problems in the security field, the embodiments of the present disclosure provide a map generation solution, by acquiring the pose information and shooting field information corresponding to multiple collection devices in the target scene, and then according to the pose information of each collection device Information and shooting field of view information, determine the shooting area of each acquisition device, so that the shooting area of each acquisition device can be drawn on the electronic map of the target scene, and the layout map of the target scene can be generated. It can be used in security systems, multi-camera networking, edge nodes and other scenarios. For example, in open scenes such as squares, parks, classrooms, etc., multiple cameras can be set up, and by obtaining the pose information and shooting field information of multiple cameras, a cloth drawing the shooting areas of each camera in the scene can be generated in real time. Put a map. It can integrate the information of multiple collection devices in the target scene, effectively correlate the information of multiple collection devices, and provide users with real-time and intuitive information about the target scene by deploying the map, saving the human resources of security personnel, providing Provide effective support for the security protection of target scenarios
本公开实施例提供的地图生成方法可以由终端设备、服务器或其它类型的电子设备执行,其中,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该地图生成方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。或者,可通过服务器执行所述方法。The map generation method provided by the embodiments of the present disclosure may be executed by a terminal device, a server, or other types of electronic devices, where the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless Phones, Personal Digital Assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc. In some possible implementations, the map generation method may be implemented by a processor invoking computer-readable instructions stored in a memory. Alternatively, the method may be performed by a server.
图1示出根据本公开实施例的地图生成方法的流程图,如图1所示,所述地图生成方法可应用于服务端设备中,包括:FIG. 1 shows a flowchart of a map generation method according to an embodiment of the present disclosure. As shown in FIG. 1 , the map generation method can be applied to a server device, including:
步骤S11,获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息。Step S11 , acquiring the pose information and the shooting field of view information corresponding to the plurality of collecting devices in the target scene respectively.
在本公开实施例中,目标场景中可以设置有多个采集设备。采集设备可以是具有图像采集功能的设备,例如,采集设备可以是具有拍摄功能的终端设备、服务器等,每个采集设备可以针对目标场景进行拍摄。多个采集设备之间可以进行通信,可形成相机组网,不同采集设备的信息可以共享。服务端设备可以获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息,即获取目标场景中各个采集设备的位姿信息以及拍摄视野信息。一些实现方式中,服务端设备可以通过网络从各个采集设备处获取每个采集设备的位 姿信息和拍摄视野信息。一些实现方式中,服务端设备可以预先存储各个采集设备的位姿信息以及拍摄视野信息中的至少部分信息,例如,服务端设备可以预先存储各个采集设备的地理位置,再从各个采集设备处获取位姿信息和拍摄视野信息中除地理位置之外的其他信息。In this embodiment of the present disclosure, multiple collection devices may be set in the target scene. The collection device may be a device with an image collection function, for example, the collection device may be a terminal device, a server, etc. with a shooting function, and each collection device may shoot a target scene. Multiple acquisition devices can communicate with each other to form a camera network, and information from different acquisition devices can be shared. The server device can obtain the pose information and shooting field information corresponding to the multiple collection devices in the target scene respectively, that is, obtain the pose information and shooting field information of each collection device in the target scene. In some implementation manners, the server device may obtain the pose information and shooting field information of each acquisition device from each acquisition device through the network. In some implementation manners, the server device may pre-store the pose information of each collection device and at least part of the shooting field of view information. For example, the server device may pre-store the geographic location of each capture device, and then obtain the information from each capture device. Other information other than the geographic location in the pose information and the shooting field of view information.
这里,位姿信息可以包括地理位置和方位,其中,地理位置可以指示采集设备在目标场景的电子地图中的位置,地理位置可以是经纬度坐标或在电子地图的坐标系下的位置坐标。方位可以指示采集设备的朝向,每个采集设备可以在预设的角度范围内进行旋转,方位不同,采集设备拍摄到的画面也不同,方位可以表示为地理方向或在电子地图的坐标系下的方向。拍摄视野信息可以指示采集设备的拍摄视野,拍摄视野信息可以包括视野角,该视野角可以是相对采集设备的方位而言的,例如,以采集设备的方位为基准,视野角可以表示偏离该方位的角度范围,如以采集设备的方位为0,视野角为(-30°,30°),可以表明采集设备的拍摄视野为偏离采集设备的方位±30°的角度范围内。Here, the pose information may include geographic location and orientation, wherein the geographic location may indicate the location of the collection device in the electronic map of the target scene, and the geographic location may be latitude and longitude coordinates or location coordinates in the coordinate system of the electronic map. The orientation can indicate the orientation of the collection device. Each collection device can be rotated within a preset angle range. The orientation is different, and the pictures captured by the collection device are also different. The orientation can be expressed as a geographic direction or in the coordinate system of the electronic map. direction. The shooting field of view information may indicate the shooting field of view of the collection device, and the shooting field of view information may include a field of view angle, which may be relative to the orientation of the collection device. For example, based on the orientation of the collection device, the field of view may indicate a deviation from the orientation. For example, if the azimuth of the acquisition device is 0 and the field of view is (-30°, 30°), it can indicate that the field of view of the acquisition device is within an angular range of ±30° from the azimuth of the acquisition device.
这里,服务端设备可以是用于管理多个采集设备的控制设备,例如,服务器、控制终端等设备,服务端设备可以汇总多个采集设备的信息,并向多个采集设备下发一些控制指令。一些实现方式中,服务端设备可以是多个采集设备中的任意一个采集设备,从而可以通过多个采集设备中的一个采集设备汇总多个采集设备的信息,并实现对其他采集设备的控制。这样,可适用于多样的应用场景。Here, the server device may be a control device used to manage multiple collection devices, for example, a server, a control terminal, etc. The server device may summarize the information of multiple collection devices and issue some control commands to the multiple collection devices . In some implementation manners, the server device may be any one of the multiple collection devices, so that one of the multiple collection devices can aggregate the information of the multiple collection devices and control other collection devices. In this way, it can be applied to various application scenarios.
图2示出根据本公开实施例的服务端设备与多个采集设备交互的场景图。在一些示例中,例如,在边缘设备的使用场景中,通过云设备/中心设备(服务端设备)可以实现各边缘设备(采集设备)的连接,云设备/中心设备可以汇总多个各边缘设备的信息,并向多个边缘设备(采集设备1-采集设备5)下发控制指令,如旋转指令或参数调节指令,从而可以减少由于边缘设备自身感知能力的不足的影响,实现各边缘设备的信息的有效关联。FIG. 2 shows a scene diagram of interaction between a server device and multiple collection devices according to an embodiment of the present disclosure. In some examples, for example, in the usage scenario of edge devices, the connection of each edge device (collection device) can be realized through the cloud device/central device (server device), and the cloud device/central device can aggregate multiple edge devices information, and issue control commands, such as rotation commands or parameter adjustment commands, to multiple edge devices (collection device 1-collection device 5), so as to reduce the influence of the lack of the edge device's own perception ability, and realize the Effective association of information.
步骤S12,根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域。Step S12: Determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices.
在本公开实施例中,服务端设备可以根据每个采集设备的位姿信息以及拍摄视野信息,确定每个采集设备可拍摄到的视野所对应的区域,该区域可以是采集设备的拍摄区域。一些实现方式中,拍摄区域可以是一个大致区域,例如,可以将采集设备的地理位置作为中心点,设置多条穿过中心点的直线,这些直线可以将目标场景平均划分为若干个区域,再根据采集设备的方位以及视野角,粗略确定可能位于采集设备的拍摄视野内的至少一个区域,这些区域可以作为采集设备的拍摄区域。In the embodiment of the present disclosure, the server device can determine the area corresponding to the field of view that can be captured by each capture device according to the pose information and the shooting field of view information of each capture device, and the region can be the capture area of the capture device. In some implementations, the shooting area can be a general area. For example, the geographic location of the capture device can be used as the center point, and a plurality of straight lines can be set through the center point. These straight lines can evenly divide the target scene into several areas. At least one area that may be located in the photographing field of view of the collecting device is roughly determined according to the orientation and viewing angle of the collecting device, and these areas can be used as the photographing area of the collecting device.
一些实现方式中,也可以根据每个采集设备的位姿信息以及拍摄视野信息,准确地确定该采集设备的拍摄视野对应的拍摄区域。服务端设备可以根据采集设备的方位以及视野角,确定采集设备的拍摄角度范围,例如,可以利用采集设备的方位对视野角进行变换,如在视野角的基础上增加或减少采集设备的方位所对应的角度,可得到采集设备的拍摄角度范围,假设采集设备的方位为90°(以正北方为0°),视野角为(-30°,30°),则拍摄角度范围为(60°,120°)。拍摄角度范围可以是采集设备的拍摄视野对应于地理方位角的范围或对应于目标场景坐标系下方位角的范围。进一步可以根据采集设备的地理位置和拍摄角度范围,确定各个采集设备的拍摄区域,例如,可以以采集设备的地理位置为中心,以拍摄角度范围形成的方位角为边引出两条射线,这两条射线形成的区域可以确定为采集设备的拍摄区域。通过这种方式,可以较为准确地确定每个采集设备对应的拍摄区域。In some implementation manners, the shooting area corresponding to the shooting field of view of each collecting device may also be accurately determined according to the pose information and shooting field information of each collecting device. The server device can determine the shooting angle range of the acquisition device according to the azimuth and field of view of the acquisition device. For example, the azimuth of the acquisition device can be used to transform the field of view, such as increasing or decreasing the azimuth of the acquisition device based on the field of view. Corresponding angle, the shooting angle range of the acquisition device can be obtained. Assuming that the azimuth of the acquisition device is 90° (with true north as 0°) and the viewing angle is (-30°, 30°), the shooting angle range is (60°) , 120°). The shooting angle range may be the range of the shooting field of view of the acquisition device that corresponds to the geographic azimuth or the range that corresponds to the azimuth under the target scene coordinate system. Further, the shooting area of each collecting device can be determined according to the geographic location of the collecting device and the shooting angle range. For example, two rays can be drawn with the geographic location of the collecting device as the center and the azimuth formed by the shooting angle range as the side. The area formed by the rays can be determined as the shooting area of the acquisition device. In this way, the shooting area corresponding to each collecting device can be determined more accurately.
步骤S13,在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。Step S13: Draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
本公开实施例中,可以在目标场景的电子地图上绘制各个采集设备的拍摄区域,例如,可以通过不同颜色或指示标识在电子地图上绘制各个采集设备的拍摄区域,生成目标场景的布放地图,不同采集设备的拍摄区域可以通过颜色或指示标识进行区分。一些实现方式 中,如果不同的拍摄区域存在交叠,还可以在电子地图上对存在交叠的交叠区域进行标记,例如,可以通过不同于拍摄区域的纹理、颜色或标识对交叠区域进行标记。In the embodiment of the present disclosure, the shooting area of each acquisition device can be drawn on the electronic map of the target scene. For example, the shooting area of each acquisition device can be drawn on the electronic map by using different colors or indicators to generate a layout map of the target scene. , the shooting areas of different collection devices can be distinguished by color or indicator. In some implementations, if different shooting areas overlap, the overlapping areas can also be marked on the electronic map. mark.
进一步还可以展示生成的布放地图,从而布放地图可实时展示目标场景的布放情况,用户可以直观快速的了解目标场景的安防状态,为目标场景的安全防护提供基础。一些实现方式中,还可以将生成的布放地图发送至网页或客户端,从而用户可以通过登录相应的网页或客户端查看目标场景的布放地图,方便用户快速了解目标场景的布放状态,减少布放死角和漏洞。Furthermore, the generated deployment map can be displayed, so that the deployment map can display the deployment situation of the target scene in real time, and the user can intuitively and quickly understand the security status of the target scene, which provides a basis for the security protection of the target scene. In some implementations, the generated deployment map can also be sent to the web page or client, so that the user can view the deployment map of the target scene by logging in to the corresponding web page or client, so that the user can quickly understand the deployment status of the target scene. Reduce deployment dead spots and loopholes.
一些实现方式中,服务端设备可以周期地或非周期性地不断重复获取目标场景中多个采集设备的位姿信息以及拍摄视野信息,从而可以根据不断获取目标场景中多个采集设备的位姿信息以及拍摄视野信息,实时对布放地图进行更新,从而可以实时展示目标场景的安防状态。In some implementations, the server device can repeatedly acquire the pose information and shooting field information of multiple acquisition devices in the target scene periodically or non-periodically, so that the pose information of multiple acquisition devices in the target scene can be continuously acquired according to the continuous acquisition. Information and shooting field of view information, update the deployment map in real time, so that the security status of the target scene can be displayed in real time.
这里,目标场景的电子地图可以是以世界坐标系建立的地图,电子地图中的坐标点可以表示为经纬度坐标,采集设备的地理位置也可以是经纬度坐标,这样,采集设备的拍摄区域可以直接绘制在电子地图上。一些实现方式中,电子地图也可以是以相对坐标系建立的地图,电子地图中的坐标点可以表示为在相对坐标系下的相对坐标,这种情况下,如果采集设备的地理位置是经纬度坐标,则可以根据相对坐标系与世界坐标系的坐标变换关系,将采集设备的地理位置是经纬度坐标变换到电子地图的相对坐标系下,进一步将采集设备的拍摄区域绘制在电子地图中。Here, the electronic map of the target scene can be a map established in the world coordinate system, the coordinate points in the electronic map can be expressed as latitude and longitude coordinates, and the geographic location of the acquisition device can also be latitude and longitude coordinates, so that the shooting area of the acquisition device can be directly drawn on the electronic map. In some implementations, the electronic map may also be a map established in a relative coordinate system, and the coordinate points in the electronic map may be expressed as relative coordinates in the relative coordinate system. In this case, if the geographic location of the collection device is the latitude and longitude coordinates , then according to the coordinate transformation relationship between the relative coordinate system and the world coordinate system, the geographic location of the acquisition device is transformed from the latitude and longitude coordinates to the relative coordinate system of the electronic map, and the shooting area of the acquisition device is further drawn in the electronic map.
本公开实施例可以通过多个采集设备的位姿信息以及拍摄视野信息,在目标场景的电子地图上绘制多个采集设备的拍摄区域,得到目标场景的布放地图,实现目标场景的安全防护。采集设备可作为边缘节点应用在边缘设备场景中,从而各个边缘设备的信息可以被有效的关联,与相关技术中由于边缘设备自身感知能力的不足而难以有效利用边缘设备的信息的一些方案相比,可以增强边缘设备的信息的有效利用。The embodiments of the present disclosure can draw the shooting areas of the multiple collecting devices on the electronic map of the target scene through the pose information and shooting field information of the multiple collecting devices, obtain the deployment map of the target scene, and realize the security protection of the target scene. The acquisition device can be used as an edge node in the edge device scenario, so that the information of each edge device can be effectively associated, compared with some solutions in the related art that are difficult to effectively utilize the information of the edge device due to the lack of the edge device's own perception ability. , which can enhance the effective use of information from edge devices.
在一些实现方式中,在服务端设备从多个采集设备处获取位姿信息以及拍摄视野信息的情况下,服务端设备可以采用广播方式发送获取请求,以使多个采集设备基于该获取请求返回位姿信息和所述拍摄视野信息。或者,服务端设备可以向多个采集设备发送获取请求,以使多个采集设备基于获取请求返回位姿信息和拍摄视野信息。In some implementations, when the server device acquires the pose information and the shooting field of view information from multiple collection devices, the server device may send the acquisition request in a broadcast manner, so that the multiple acquisition devices return based on the acquisition request. pose information and the shooting field of view information. Alternatively, the server device may send an acquisition request to multiple acquisition devices, so that the multiple acquisition devices return the pose information and the shooting field of view information based on the acquisition request.
这里,服务端设备采用广播方式发送获取请求的情况下,采集设备可以对服务端设备进行监听,在监听到服务端设备发送获取请求的情况下,采集设备根据该获取请求向服务端设备返回自身的位姿信息和拍摄视野信息。这种情况下,服务端设备可以无需预先存储采集设备的设备列表。一些实现方式中,服务端设备可以预先获取多个采集设备的设备列表,然后根据设备列表中指示的采集设备发送获取请求,采集设备在接收到获取请求的情况下,可以向服务端设备返回自身的位姿信息和拍摄视野信息。这种情况下,采集设备可以无需对服务端设备进行实时监听。Here, in the case where the server device sends the acquisition request by broadcasting, the acquisition device can monitor the server device. In the case of monitoring the acquisition request sent by the server device, the acquisition device returns itself to the server device according to the acquisition request. pose information and shooting field of view information. In this case, the server device may not need to store the device list of the acquisition device in advance. In some implementation manners, the server device can obtain the device lists of multiple collection devices in advance, and then send an acquisition request according to the collection device indicated in the device list. When the collection device receives the acquisition request, it can return itself to the server device. pose information and shooting field of view information. In this case, the acquisition device may not need to monitor the server device in real time.
在一些实现方式中,采集设备中可以配置有全球导航卫星系统(Global Navigation Satellite System,GNSS)和电子罗盘传感器,从而采集设备可以具有感知自身的地理位置和方位的能力。采集设备可通过全球定位系统差分或静态定位算法可以得到高精度的经纬度坐标。一些实现方式中,相机组网中的采集设备在安装完成后,采集设备的位置可以不再发生改变,从而在采集设备在安装完成后,采集设备的道理位置可以保存在采集设备中或者保存在服务端设备中。相应地,电子地图的坐标也可以是经纬度坐标,从而可以使获取的位置信息和电子地图的位置信息得到统一,便于其他设备使用。In some implementations, a global navigation satellite system (Global Navigation Satellite System, GNSS) and an electronic compass sensor may be configured in the acquisition device, so that the acquisition device may have the ability to perceive its own geographic location and orientation. The acquisition device can obtain high-precision latitude and longitude coordinates through GPS differential or static positioning algorithms. In some implementations, after the installation of the acquisition device in the camera network is completed, the location of the acquisition device can no longer be changed, so that after the acquisition device is installed, the logical location of the acquisition device can be saved in the acquisition device or in the in the server device. Correspondingly, the coordinates of the electronic map can also be longitude and latitude coordinates, so that the acquired location information and the location information of the electronic map can be unified, which is convenient for other devices to use.
在一些实现方式中,采集设备通过感光器件的尺寸、分辨率、焦距等相机参数,确定拍摄的视野角和最佳拍摄距离。在拍摄采集相机的视野角和最佳拍摄距离内的拍摄对相的情况下,采集相机的成像质量较高。采集设备可以记录自身的视野角和最佳拍摄距离。In some implementations, the acquisition device determines the field of view and the optimal shooting distance by using camera parameters such as the size, resolution, and focal length of the photosensitive device. The imaging quality of the acquisition camera is relatively high in the case of photographing the angle of view of the acquisition camera and the photographing pair within the optimal shooting distance. The acquisition device can record its own viewing angle and optimal shooting distance.
在上述步骤S12中,服务端设备可以根据每个采集设备的位姿信息以及拍摄视野信息, 确定每个采集设备的拍摄区域,一些实现方式中,拍摄视野信息还可以包括最佳拍摄距离,在确定每个采集设备的拍摄区域时,可以根据采集设备的地理位置、拍摄角度范围以及最佳拍摄距离,确定以采集设备的地理位置为顶点形成的扇形区域,可以将该扇形区域确定为该采集设备的拍摄区域。In the above step S12, the server device may determine the shooting area of each collecting device according to the pose information and the shooting field of view information of each collecting device. In some implementations, the shooting field information may also include the best shooting distance. When determining the shooting area of each acquisition device, a fan-shaped area formed with the geographical location of the acquisition device as the vertex can be determined according to the geographical location of the acquisition device, the range of the shooting angle, and the optimal shooting distance, and the fan-shaped area can be determined as the acquisition The shooting area of the device.
这里,最佳拍摄距离可以表示在采集设备成像清晰的情况下,目标场景中的拍摄对象与采集设备之间的最大距离。采集设备可以清晰拍摄最佳拍摄距离内的拍摄对象,拍摄对象可以是目标场景中的人或物。如果超出该最佳拍摄距离,采集设备的拍摄画面可能会出现模糊的情况。从而为了提高采集设备的拍摄画面的清晰度,还可以在确定每个采集设备的拍摄区域的情况下,考虑采集设备的最佳拍摄距离。例如,可以以采集设备的地理位置为圆心,以最佳拍摄距离为半径,以拍摄角度范围为顶角,形成一个扇形区域,该扇形区域可以是采集设备的拍摄区域。通过这种方式确定的拍摄区域,考虑了各采集设备的最佳拍摄距离,在拍摄区域内拍摄到的人或物可以清晰成像,从而提高采集设备拍摄画面的清晰度。Here, the optimal shooting distance may represent the maximum distance between the shooting object in the target scene and the acquisition device under the condition that the imaging of the acquisition device is clear. The acquisition device can clearly capture the subject within the optimal shooting distance, and the subject can be a person or object in the target scene. If the optimal shooting distance is exceeded, the shooting picture of the capture device may be blurred. Therefore, in order to improve the clarity of the image captured by the capture device, the optimal capture distance of the capture device may also be considered when the capture area of each capture device is determined. For example, a sector may be formed with the geographic location of the collection device as the center, the optimal shooting distance as the radius, and the shooting angle range as the vertex angle, and the fan-shaped area may be the shooting area of the collection device. The shooting area determined in this way takes into account the optimal shooting distance of each collection device, and the people or objects captured in the shooting area can be clearly imaged, thereby improving the clarity of the image captured by the collection device.
在一些实现方式中,为了更好地为用户提供目标场景的布放情况,还可以根据多个采集设备的拍摄区域,确定目标场景的拍摄盲区和非最佳拍摄区中的至少一项,进一步在生成的布放地图中提示确定的拍摄盲区和非最佳拍摄区中的至少一项。这里,拍摄盲区可以是目标场景中多个采集设备均无法拍摄到的区域。服务端设备可以根据各个采集设备的拍摄区域对应的拍摄角度范围以及目标场景中建筑物、基础设施对采集设备的拍摄视野的遮挡情况,确定目标场景中多个采集设备均无法拍摄到的拍摄盲区。相应地,非最佳拍摄区可以为目标场景中超出多个采集设备的最佳拍摄距离的区域。服务端设备可以根据各个采集设备的拍摄区域对应的最佳拍摄距离以及目标场景中建筑物、基础设施对采集设备的拍摄视野的遮挡情况,确定位于多个采集设备的拍摄视野内却超出多个采集设备的最佳拍摄距离的区域。在确定目标场景中存在拍摄盲区和非最佳拍摄区中的至少一项的情况下,可以在布放地图中对拍摄盲区和非最佳拍摄区中的至少一项进行提示,例如,可以通过箭头、圆形等图形对拍摄盲区和非最佳拍摄区中的至少一项进行提示,或者,还可以在布放地图中绘制出拍摄盲区和非最佳拍摄区中的至少一项,从而可以通过布放地图更好地为用户提供目标场景的布放情况。In some implementation manners, in order to better provide users with the deployment situation of the target scene, at least one of the shooting blind area and the non-optimal shooting area of the target scene may also be determined according to the shooting areas of multiple acquisition devices, and further At least one of the determined shooting blind area and the non-optimal shooting area is prompted in the generated deployment map. Here, the shooting blind area may be an area in the target scene that cannot be photographed by multiple acquisition devices. The server device can determine the shooting blind spots in the target scene that cannot be captured by multiple acquisition devices according to the shooting angle range corresponding to the shooting area of each acquisition device and the occlusion of the buildings and infrastructure in the target scene to the shooting field of view of the acquisition device. . Correspondingly, the non-optimal shooting area may be an area in the target scene that exceeds the optimal shooting distances of the multiple capture devices. The server device can determine that it is within the shooting field of view of multiple collection devices but exceeds the shooting field of view of multiple collection devices according to the optimal shooting distance corresponding to the shooting area of each collection device and the occlusion of buildings and infrastructure in the target scene to the shooting field of view of the collection device. Capture the area where the device's best shooting distance is. When it is determined that there is at least one of a shooting blind spot and a non-optimal shooting area in the target scene, at least one of the shooting blind area and the non-optimal shooting area can be prompted in the deployment map, for example, by Graphics such as arrows and circles can indicate at least one of shooting blind spots and non-optimal shooting areas, or you can draw at least one of shooting blind spots and non-optimal shooting areas in the layout map, so that you can Better provide users with the deployment situation of the target scene by deploying the map.
在一些示例中,在确定目标场景中存在拍摄盲区的情况下,服务端设备可以基于拍摄盲区的位置信息生成旋转指令,并向多个采集设备中的至少一个采集设备发送旋转指令,以使至少一个采集设备朝向拍摄盲区旋转,从而改变至少一个采集设备的方位。这里,服务端设备可以预先存储各个采集设备的最大拍摄视野,该最大拍摄视野是采集设备在可旋转的情况下,采集设备的拍摄区域可覆盖的最大区域,即采集设备的拍摄区域随采集设备的方位的改变而可到达的最大区域。一些实现方式中,每个采集设备的最大拍摄视野也可以存储在各自的采集设备中,服务端设备可以各个采集设备处获取各个采集设备的最大拍摄视野。服务端设备可以根据各个采集设备的最大拍摄视野所在的位置以及拍摄盲区所在的位置,确定最大拍摄视野包括拍摄盲区的一个或多个采集设备,然后可以向确定的一个或多个采集设备发送旋转指令,以使确定的一个或多个采集设备朝向拍摄盲区旋转。这样,可以在目标场景中存在拍摄盲区的情况下,使采集设备调整方位,减少拍摄盲区的存在。In some examples, when it is determined that there is a shooting blind spot in the target scene, the server device may generate a rotation instruction based on the position information of the shooting blind spot, and send the rotation instruction to at least one of the multiple collection devices, so that at least One acquisition device is rotated toward the shooting blind area, thereby changing the orientation of at least one acquisition device. Here, the server device can pre-store the maximum shooting field of view of each acquisition device, and the maximum shooting field of view is the largest area that can be covered by the shooting area of the acquisition device when the acquisition device is rotatable, that is, the shooting area of the acquisition device follows the acquisition device. The maximum area that can be reached by changing the orientation. In some implementation manners, the maximum shooting field of view of each collection device may also be stored in the respective collection device, and the server device may obtain the maximum shooting field of view of each collection device from each collection device. The server device can determine one or more acquisition devices whose maximum shooting field of view includes the shooting blind area according to the location of the maximum shooting field of view of each acquisition device and the location of the shooting blind area, and then can send rotation to the determined one or more acquisition devices. an instruction to rotate the determined one or more acquisition devices toward the shooting blind spot. In this way, when there is a shooting blind spot in the target scene, the acquisition device can be adjusted in orientation, and the existence of the shooting blind spot can be reduced.
相应地,采集设备可以接收服务端设备发送的旋转指令,然后根据旋转指令可以获取目标场景中拍摄盲区的位置信息,进一步可以根据拍摄盲区的位置信息,确定旋转方向以及旋转角度,然后根据确定的旋转方向和旋转角度,朝向拍摄盲区进行旋转,使拍摄盲区进入拍摄视野,从而减少拍摄盲区的存在。Correspondingly, the acquisition device can receive the rotation instruction sent by the server device, and then can obtain the position information of the shooting blind spot in the target scene according to the rotation instruction, and can further determine the rotation direction and rotation angle according to the position information of the shooting blind spot, and then according to the determined position information. The rotation direction and rotation angle are rotated towards the shooting blind spot, so that the shooting blind spot can enter the shooting field of view, thereby reducing the existence of the shooting blind spot.
在一些示例中,在采集设备的相机参数可调的情况下,采集设备的最佳拍摄距离可以随相机参数的调节而改变,相应地,采集设备的最大拍摄视野可以根据最佳拍摄距离的改变而改变。一些示例中,还可以对采集设备的最大拍摄视野进行标记,例如,可以使用虚 线标记采集设备的最大拍摄视野。In some examples, when the camera parameters of the acquisition device are adjustable, the optimal shooting distance of the acquisition device can be changed with the adjustment of the camera parameters, and correspondingly, the maximum shooting field of view of the acquisition device can be changed according to the optimal shooting distance and change. In some examples, the maximum shooting field of view of the acquisition device may also be marked, for example, a dotted line may be used to mark the maximum shooting field of view of the acquisition device.
在一些示例中,在确定目标场景中存在非最佳拍摄区的情况下,服务端设备可以生成参数调节指令,并向多个采集设备中的至少一个采集设备发送该参数调节指令,以扩大至少一个采集设备的拍摄区域,从而可以减少目标场景中非最佳拍摄区的存在,提高布放效果。In some examples, when it is determined that there is a non-optimal shooting area in the target scene, the server device may generate a parameter adjustment instruction, and send the parameter adjustment instruction to at least one acquisition device among the plurality of acquisition devices, so as to expand at least one of the acquisition devices. A shooting area of a capture device, which can reduce the existence of non-optimal shooting areas in the target scene and improve the deployment effect.
这里,参数调节指令可以指示采集设备对相机参数进行调节,相机参数可以包括焦距、光圈、曝光值等参数。采集设备在接收到服务端设备发送的参数调节指令之后,可以根据参数调节指令对相机参数进行调节,使当前的拍摄区域扩大,从而使采集设备拍摄目标场景的画面尽可能地清晰,减少非最佳拍摄区的存在。Here, the parameter adjustment instruction may instruct the acquisition device to adjust the camera parameters, and the camera parameters may include parameters such as focal length, aperture, and exposure value. After the acquisition device receives the parameter adjustment instruction sent by the server device, it can adjust the camera parameters according to the parameter adjustment instruction to expand the current shooting area, so that the image of the target scene captured by the acquisition device is as clear as possible, reducing the most The existence of the best shooting area.
在一些实现方式中,服务端设备还可以根据多个采集设备拍摄到的图像,确定拍摄到的图像中的拍摄对象在目标场景中的位置。一些实现方式中,还可以根据拍摄对象在目标场景中的位置,向一个或多个采集设备发送跟踪指令,使目标场景中的一个或多个采集设备针对该拍摄对象进行跟踪拍摄,确定拍摄对象的运动估计。进一步可以将拍摄对象的运行轨迹在布放地图中进行标记,从而可以通过布放地图提供更多的信息,便于用户查看或对当前安防方案进行评估和分析。In some implementation manners, the server device may further determine the position of the shooting object in the captured image in the target scene according to the images captured by multiple collection devices. In some implementations, a tracking instruction can also be sent to one or more acquisition devices according to the position of the shooting object in the target scene, so that one or more acquisition devices in the target scene can track the shooting object and determine the shooting object. motion estimation. Further, the running track of the shooting object can be marked in the deployment map, so that more information can be provided through the deployment map, which is convenient for users to view or evaluate and analyze the current security solution.
本公开实施例可以通过多个采集设备的位姿信息以及拍摄视野信息,在目标场景的电子地图上绘制多个采集设备的拍摄区域,生成目标场景实时可视化的布放地图。布放地图可使用户直观快速地了解当前目标场景的布放情况,可方便用户快速识别目标场景中的拍摄漏洞,如拍摄盲区和非最佳拍摄区中的至少一项,方便用于根据布放地图进行更有针对性的巡查,提高目标场景的安全防护。The embodiments of the present disclosure can draw the shooting areas of the multiple collecting devices on the electronic map of the target scene by using the pose information and the shooting field information of the multiple collecting devices to generate a real-time visualized deployment map of the target scene. The deployment map allows users to intuitively and quickly understand the deployment of the current target scene, which can help users quickly identify shooting loopholes in the target scene, such as at least one of shooting blind spots and non-optimal shooting areas. Put the map to conduct more targeted inspections to improve the security protection of the target scene.
图3示出根据本公开实施例的地图生成方法的流程图,应用于采集设备中。如图3所示,所述地图生成方法包括:FIG. 3 shows a flowchart of a map generation method according to an embodiment of the present disclosure, which is applied to a collection device. As shown in Figure 3, the map generation method includes:
步骤S21,获取当前的位姿信息以及拍摄视野信息。Step S21, acquiring current pose information and photographing field of view information.
步骤S22,向服务端设备发送所述位姿信息以及所述拍摄视野信息。Step S22: Send the pose information and the shooting field of view information to the server device.
本公开实施例中,采集设备可以获取服务端设备通过广播方式发送的获取请求,或者,采集设备可以接收服务端设备发送的获取请求,该获取请求用于请求获取当前的位姿信息和拍摄视野信息。采集设备响应于该获取请求,获取当前的位姿信息以及拍摄视野信息,然后向服务端设备发送当前的位姿信息以及拍摄视野信息。In this embodiment of the present disclosure, the acquisition device may acquire an acquisition request sent by the server device in a broadcast manner, or the acquisition device may receive an acquisition request sent by the server device, where the acquisition request is used to request acquisition of current pose information and shooting field of view information. In response to the acquisition request, the acquisition device acquires the current pose information and the shooting field of view information, and then sends the current pose information and the shooting field of view information to the server device.
服务端设备可以综合多个采集设备的位姿信息以及拍摄视野信息,确定各个采集设备的拍摄区域,并在目标场景的电子地图上绘制各个采集设备的拍摄区域,生成目标场景的布放地图。The server device can integrate the pose information and shooting field of view information of multiple acquisition devices to determine the shooting area of each acquisition device, and draw the shooting area of each acquisition device on the electronic map of the target scene to generate a deployment map of the target scene.
在一些实现方式中,采集设备还可以接收服务端设备发送的旋转指令,根据接收的旋转指令获取目标场景中拍摄盲区的位置信息,进一步根据拍摄盲区的位置信息,朝向拍摄盲区进行旋转。In some implementations, the collection device may also receive a rotation instruction sent by the server device, obtain location information of the shooting blind spot in the target scene according to the received rotation instruction, and further rotate toward the shooting blind area according to the location information of the shooting blind area.
在一些实现方式中,采集设备还可以接收服务端设备发送的参数调节指令,进一步根据参数调节指令对相机参数进行调节,以扩大拍摄区域。In some implementation manners, the collection device may also receive a parameter adjustment instruction sent by the server device, and further adjust the camera parameters according to the parameter adjustment instruction to expand the shooting area.
需要说明的是,采集设备执行的步骤可以参见上文的叙述内容,这里不再赘述。It should be noted that, for the steps performed by the collection device, reference may be made to the above description, which will not be repeated here.
下面通过一个示例对本公开提供的地图生成方案进行说明。图4示出根据本公开实施例的地图生成方法一示例的流程图,包括以下步骤:The map generation solution provided by the present disclosure is described below through an example. FIG. 4 shows a flowchart of an example of a map generation method according to an embodiment of the present disclosure, including the following steps:
S31,服务端设备发送获取请求。S31, the server device sends an acquisition request.
发送获取请求可以通过以下2种方式实现:1、采用广播方式发送获取请求;2、服务端设备利用预先获取的设备列表,向设备列表中的采集设备发送获取请求。Sending the acquisition request can be implemented in the following two ways: 1. Send the acquisition request by broadcasting; 2. The server device uses the pre-acquired device list to send the acquisition request to the acquisition device in the device list.
S32,采集设备接收获取请求,并向服务端设备返回位姿信息和拍摄视野信息。S32, the acquisition device receives the acquisition request, and returns the pose information and the shooting field of view information to the server device.
S33,服务端设备接收各个采集设备发送的位姿信息和拍摄视野信息。S33, the server device receives the pose information and the shooting field of view information sent by each collection device.
S34,服务端设备根据各个采集设备的位姿信息和拍摄视野信息,确定各个采集设备 的拍摄区域。S34, the server device determines the shooting area of each collecting device according to the pose information and shooting field of view information of each collecting device.
S35,服务端设备在电子地图中各个采集设备的拍摄区域,生成目标场景的布放地图。S35, the server device generates a deployment map of the target scene in the shooting area of each collection device in the electronic map.
S36,服务端设备在界面中显示生成的布放地图。S36, the server device displays the generated deployment map in the interface.
一些实现方式中,服务端设备可以周期性或非周期性地重复发送获取请求,从而可实时获取各个采集设备发送的位姿信息和拍摄视野信息,即可重复执行上述S31至S36,以对布放地图进行实时更新。一些实现方式中,服务端设备可以发送一次获取请求,获取请求中可携带实时获取位姿信息和拍摄视野信息的指示,各个采集设备可以根据获取请求中实时获取位姿信息和拍摄视野信息的指示,周期性或非周期性地重复向服务端设备返回位姿信息和拍摄视野信息,服务端设备可以根据各个采集设备的位姿信息和拍摄视野信息,对布放地图进行实时更新。In some implementation manners, the server device can repeatedly send the acquisition request periodically or aperiodically, so that the pose information and shooting field of view information sent by each acquisition device can be acquired in real time, and the above S31 to S36 can be repeatedly executed to correct the distribution. Put the map to update in real time. In some implementations, the server device can send an acquisition request, and the acquisition request can carry instructions for acquiring the pose information and shooting field of view information in real time. , periodically or non-periodically return the pose information and shooting field of view information to the server device, and the server device can update the deployment map in real time according to the pose information and shooting field of view information of each collection device.
图5示出根据本公开实施例的布放地图一示例的示意图。在本示例中,拍摄区域考虑最佳拍摄距离,目标场景可以为园区。如图5所示,布放地图中标记有各个采集设备的拍摄区域,不同采集设备可以通过设备编号进行区分,图中共有6个采集设备,可以通过1-6的编号对采集设备进行标记,图中标记有2个建筑物(建筑物1和建筑物2)。每个采集设备具有相应的拍摄区域(图中每个采集设备对应的阴影扇形区域)。布放地图中还对拍摄死角(拍摄盲区)进行标记,指示当前存在拍摄盲区,其中,园区入口处不存在拍摄死角。还可以对超出最佳拍摄距离的非最佳拍摄区进行指示,如指示超出最佳拍摄距离,成像不清晰。对于焦距可变且方位可变的情况,布放地图中还可以支持变焦旋转,通过虚线标记采集设备的最大拍摄视野,如采集设备4对应的虚线区域为该采集设备的最大拍摄视野。通过布放地图可以动态实时地展示园区、街道等目标场景中的布放情况,为目标场景的安全提供保障。FIG. 5 shows a schematic diagram of an example of a deployment map according to an embodiment of the present disclosure. In this example, the shooting area considers the best shooting distance, and the target scene can be a park. As shown in Figure 5, the shooting area of each acquisition device is marked in the layout map. Different acquisition devices can be distinguished by device numbers. There are 6 acquisition devices in the figure, and the acquisition devices can be marked by numbers 1-6. There are 2 buildings marked in the figure (Building 1 and Building 2). Each acquisition device has a corresponding shooting area (a shadow sector area corresponding to each acquisition device in the figure). The shooting blind spot (shooting blind spot) is also marked in the deployment map, indicating that there is a shooting blind spot, and there is no shooting blind spot at the entrance of the park. It can also indicate the non-optimal shooting area beyond the optimum shooting distance, such as indicating that the image is not clear beyond the optimum shooting distance. For variable focal length and variable orientation, zoom rotation can also be supported in the deployment map, and the maximum shooting field of view of the acquisition device is marked by a dotted line. For example, the dotted line area corresponding to acquisition device 4 is the maximum shooting field of view of the acquisition device. Through the deployment map, the deployment situation in the target scene such as the park and the street can be dynamically displayed in real time, so as to provide guarantee for the safety of the target scene.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method of the specific embodiment, the specific execution order of each step should be determined by its function and possible internal logic.
此外,本公开还提供了地图生成装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种地图生成方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides a map generation device, electronic device, computer-readable storage medium, and program, all of which can be used to implement any map generation method provided by the present disclosure. For the corresponding technical solutions and descriptions, refer to the corresponding records in the method section. ,No longer.
图6示出根据本公开实施例的地图生成装置的框图,该地图生成装置可应配置为服务端设备,如图6所示,所述装置包括:Fig. 6 shows a block diagram of a map generating apparatus according to an embodiment of the present disclosure. The map generating apparatus may be configured as a server device. As shown in Fig. 6 , the apparatus includes:
获取部分41,配置为获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息;The acquisition part 41 is configured to acquire the pose information and the shooting field of view information corresponding to the plurality of acquisition devices in the target scene respectively;
确定部分42,配置为根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域;The determination part 42 is configured to determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices;
生成部分43,配置为在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。The generating part 43 is configured to draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
在一个或多个可能的实现方式中,所述装置还包括:第一发送部分44,配置为采用广播方式发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息;或者,向所述多个采集设备发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息。In one or more possible implementations, the apparatus further includes: a first sending part 44, configured to send an acquisition request in a broadcast manner, so that the multiple acquisition devices return the pose based on the acquisition request information and the shooting field of view information; or, sending an acquisition request to the multiple collection devices, so that the multiple collection devices return the pose information and the shooting field of view information based on the acquisition request.
在一个或多个可能的实现方式中,所述位姿信息包括地理位置和方位,所述拍摄视野信息包括视野角;所述确定部分42,配置为根据所述采集设备的方位以及所述视野角,确定所述采集设备的拍摄角度范围;根据所述采集设备的地理位置和所述拍摄角度范围,确定每个所述采集设备的拍摄区域。In one or more possible implementation manners, the pose information includes geographic location and orientation, and the photographing field of view information includes an angle of view; the determining part 42 is configured to be based on the orientation of the acquisition device and the field of view The shooting angle range of the collecting device is determined; the shooting area of each collecting device is determined according to the geographical position of the collecting device and the shooting angle range.
在一个或多个可能的实现方式中,所述拍摄视野信息还包括最佳拍摄距离,所述确定 部分42,配置为根据所述采集设备的地理位置、所述拍摄角度范围以及所述最佳拍摄距离,确定以所述采集设备的地理位置为顶点形成的扇形区域;将所述扇形区域确定为所述采集设备的拍摄区域。In one or more possible implementation manners, the photographing field of view information further includes an optimal photographing distance, and the determining part 42 is configured to be based on the geographic location of the collecting device, the photographing angle range, and the optimal photographing distance. For the shooting distance, a fan-shaped area formed by taking the geographic location of the collecting device as a vertex is determined; and the fan-shaped area is determined as the shooting area of the collecting device.
在一个或多个可能的实现方式中,所述确定部分42,还配置为根据每个所述采集设备的拍摄区域,确定所述目标场景的拍摄盲区和非最佳拍摄区中的至少一项,其中,所述非最佳拍摄区为所述目标场景中超出所述多个采集设备的最佳拍摄距离的区域;在所述布放地图中提示所述拍摄盲区和非最佳拍摄区中的至少一项。In one or more possible implementations, the determining part 42 is further configured to determine at least one of the shooting blind area and the non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices , wherein, the non-optimal shooting area is an area in the target scene that exceeds the optimal shooting distance of the multiple collection devices; in the deployment map, it is indicated that the shooting blind area and the non-optimal shooting area are in the at least one of.
在一个或多个可能的实现方式中,所述装置还包括:第二发送部分45,配置为在确定存在所述拍摄盲区的情况下,基于所述拍摄盲区的位置信息生成旋转指令;向所述多个采集设备中的至少一个采集设备发送所述旋转指令,以使所述至少一个采集设备朝向所述拍摄盲区旋转。In one or more possible implementation manners, the apparatus further includes: a second sending part 45, configured to generate a rotation instruction based on the position information of the shooting blind spot when it is determined that the shooting blind spot exists; At least one acquisition device among the plurality of acquisition devices sends the rotation instruction, so that the at least one acquisition device rotates toward the shooting blind area.
在一个或多个可能的实现方式中,所述装置还包括:第三发送部分46,配置为在确定存在所述非最佳拍摄区的情况下,生成参数调节指令;向所述多个采集设备中的至少一个采集设备发送所述参数调节指令,以扩大所述至少一个采集设备的拍摄区域。In one or more possible implementation manners, the apparatus further includes: a third sending part 46, configured to generate a parameter adjustment instruction when it is determined that the non-optimal shooting area exists; At least one acquisition device in the devices sends the parameter adjustment instruction to expand the shooting area of the at least one acquisition device.
图7示出根据本公开实施例的地图生成装置的框图,该地图生成装置可应用于采集设备,如图7所示,所述装置包括:FIG. 7 shows a block diagram of an apparatus for generating a map according to an embodiment of the present disclosure. The apparatus for generating a map can be applied to a collection device. As shown in FIG. 7 , the apparatus includes:
获取部分51,配置为获取当前的位姿信息以及拍摄视野信息;an acquisition part 51, configured to acquire current pose information and shooting field of view information;
发送部分52,配置为向服务端设备发送所述位姿信息以及所述拍摄视野信息,其中,所述服务端设备配置为根据每个采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,在目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。The sending part 52 is configured to send the pose information and the shooting field of view information to the server device, wherein the server device is configured to determine the position and attitude information and shooting field of view information of each collection device. The shooting area of the acquisition device is drawn, and the shooting area of each acquisition device is drawn on the electronic map of the target scene to generate a deployment map of the target scene.
在一个或多个可能的实现方式中,所述装置还包括:转动部分53,配置为接收服务端设备发送的旋转指令;根据所述旋转指令获取所述目标场景中拍摄盲区的位置信息;根据所述拍摄盲区的位置信息,朝向所述拍摄盲区进行旋转。In one or more possible implementation manners, the apparatus further includes: a rotating part 53 configured to receive a rotation instruction sent by the server device; obtain location information of the shooting blind spot in the target scene according to the rotation instruction; The position information of the shooting blind spot is rotated toward the shooting blind spot.
在一个或多个可能的实现方式中,所述装置还包括:调节部分54,配置为接收服务端设备发送的参数调节指令;根据所述参数调节指令对相机参数进行调节,以扩大所述拍摄区域。In one or more possible implementation manners, the apparatus further includes: an adjustment part 54 configured to receive a parameter adjustment instruction sent by the server device; adjust camera parameters according to the parameter adjustment instruction to expand the shooting area.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的部分可以配置为执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or included parts of the apparatus provided in the embodiments of the present disclosure may be configured to execute the methods described in the above method embodiments, and the specific implementation may refer to the descriptions in the above method embodiments. No longer.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是非易失性计算机可读存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,当计算机可读代码在设备上运行时,设备中的处理器执行用于实现如上任一实施例提供的地图生成方法的指令。Embodiments of the present disclosure also provide a computer program product, including computer-readable codes. When the computer-readable codes are run on a device, a processor in the device executes a method for implementing the map generation method provided by any of the above embodiments. instruction.
本公开实施例还提供了另一种计算机程序产品,用于存储计算机可读指令,指令被执行时使得计算机执行上述任一实施例提供的地图生成方法的操作。Embodiments of the present disclosure further provide another computer program product for storing computer-readable instructions, which, when executed, cause the computer to perform the operations of the map generation method provided by any of the foregoing embodiments.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device may be provided as a terminal, server or other form of device.
图8示出根据本公开实施例的一种电子设备的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
参照图8,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804, 电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 , and the communication component 816 .
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。 Power supply assembly 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和后置摄像头中的至少一项。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和后置摄像头中的至少一项可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes at least one of a front-facing camera and a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, at least one of the front camera and the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和输入音频信号中的至少一项。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to at least one of output and input audio signals. For example, audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 . For example, the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(WiFi),第二代移动通信技术(2G)或第三代移动通信技术(3G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例 性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as wireless network (WiFi), second generation mobile communication technology (2G) or third generation mobile communication technology (3G), or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium, such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
图9示出根据本公开实施例的一种电子设备的框图。例如,电子设备1900可以被提供为一服务器。参照图9,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 9 shows a block diagram of an electronic device according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 9, electronic device 1900 includes processing component 1922, which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922, such as applications. An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the above-described methods.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OS XTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。The electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 . The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows ServerTM), a graphical user interface based operating system (Mac OS XTM) introduced by Apple, a multi-user multi-process computer operating system (UnixTM). ), Free and Open Source Unix-like Operating System (LinuxTM), Open Source Unix-like Operating System (FreeBSDTM) or similar.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.
本公开可以是系统、方法和计算机程序产品中的至少一项。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be at least one of systems, methods and computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和无线网中的至少一项下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和边缘服务器中的至少一项。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded from a computer readable storage medium to various computing/processing devices, or to an external computer or external storage device over a network such as at least one of the Internet, a local area network, a wide area network, and a wireless network . The network may include at least one of copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语 言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions 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 implement. 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 the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和框图中的至少一项描述了本公开的各个方面。应当理解,流程图和框图中的至少一项的每个方框以及流程图和/框图中中的至少一项各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to at least one of flowchart illustrations and block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of at least one of the flowchart illustrations and block diagrams, and combinations of blocks in at least one of the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和框图中的至少一项中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和其他设备中的至少一项以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和框图中的至少一项中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of at least one of the flowcharts and block diagrams. These computer-readable program instructions may also be stored in a computer-readable storage medium, the instructions causing at least one of a computer, programmable data processing apparatus, and other devices to operate in a particular manner, so that the computer-readable storage medium with the instructions The medium then includes an article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of at least one of the flowcharts and block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和框图中的至少一项中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of at least one of the flowcharts and block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和流程图中的至少一项中的每个方框、以及框图和流程图中的至少一项中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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 disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks 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 at least one of the block diagrams and flowchart illustrations, and combinations of blocks in at least one of the block diagrams and flowchart illustrations, can be used with special purpose It is implemented in a hardware-based system, or can be implemented in a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.
工业实用性Industrial Applicability
本公开实施例中,通过获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息;根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域;在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述 目标场景的布放地图。上述方案,能够可通过布放地图为用户提供目标场景的情况。In the embodiment of the present disclosure, the pose information and the shooting field of view information corresponding to the plurality of collection devices in the target scene are obtained respectively; according to the pose information and the shooting field of view information of each of the collection devices, each collection device is determined. drawing the shooting area of each of the collection devices on the electronic map of the target scene to generate a deployment map of the target scene. The above solution can provide the user with the situation of the target scene by deploying the map.

Claims (24)

  1. 一种地图生成方法,包括:A map generation method, including:
    获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息;Obtain the pose information and shooting field information corresponding to the multiple acquisition devices in the target scene respectively;
    根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域;According to the pose information and the shooting field of view information of each of the collecting devices, determine the shooting area of each of the collecting devices;
    在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。The shooting area of each collection device is drawn on the electronic map of the target scene, and a deployment map of the target scene is generated.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    采用广播方式发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息;或者,Send the acquisition request in a broadcast manner, so that the multiple acquisition devices return the pose information and the shooting field of view information based on the acquisition request; or,
    向所述多个采集设备发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息。An acquisition request is sent to the plurality of acquisition devices, so that the plurality of acquisition devices return the pose information and the shooting field of view information based on the acquisition request.
  3. 根据权利要求1或2所述的方法,其中,所述位姿信息包括地理位置和方位,所述拍摄视野信息包括视野角;所述根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,包括:The method according to claim 1 or 2, wherein the pose information includes geographic location and orientation, and the shooting field of view information includes a field of view; the pose information and shooting field of view information according to each of the collection devices , determine the shooting area of each of the acquisition devices, including:
    根据所述采集设备的方位以及所述视野角,确定所述采集设备的拍摄角度范围;Determine the shooting angle range of the collecting device according to the orientation of the collecting device and the viewing angle;
    根据所述采集设备的地理位置和所述拍摄角度范围,确定每个所述采集设备的拍摄区域。According to the geographic location of the collection device and the range of the shooting angle, the shooting area of each of the collection devices is determined.
  4. 根据权利要求3所述的方法,其中,所述拍摄视野信息还包括最佳拍摄距离,所述根据所述采集设备的地理位置和所述拍摄角度范围,确定每个所述采集设备的拍摄区域,包括:The method according to claim 3, wherein the photographing field of view information further includes an optimal photographing distance, and the photographing area of each collecting device is determined according to the geographic location of the collecting device and the photographing angle range ,include:
    根据所述采集设备的地理位置、所述拍摄角度范围以及所述最佳拍摄距离,确定以所述采集设备的地理位置为顶点形成的扇形区域;According to the geographic location of the collecting device, the shooting angle range and the optimal shooting distance, determine a fan-shaped area formed with the geographic location of the collecting device as a vertex;
    将所述扇形区域确定为每个所述采集设备的拍摄区域。The fan-shaped area is determined as a shooting area of each of the collecting devices.
  5. 根据权利要求1至4任意一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    根据每个所述采集设备的拍摄区域,确定所述目标场景的拍摄盲区和非最佳拍摄区中的至少一项,其中,所述非最佳拍摄区为所述目标场景中超出所述多个采集设备的最佳拍摄距离的区域;At least one of a shooting blind area and a non-optimal shooting area of the target scene is determined according to the shooting area of each of the collecting devices, wherein the non-optimal shooting area is the excess shooting area in the target scene. The area of the best shooting distance of each acquisition device;
    在所述布放地图中提示所述拍摄盲区和所述非最佳拍摄区中的至少一项。At least one of the shooting blind area and the non-optimal shooting area is prompted in the deployment map.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5, wherein the method further comprises:
    在确定存在所述拍摄盲区的情况下,基于所述拍摄盲区的位置信息生成旋转指令;In the case that it is determined that the shooting blind spot exists, a rotation instruction is generated based on the position information of the shooting blind spot;
    向所述多个采集设备中的至少一个采集设备发送所述旋转指令,以使所述至少一个采集设备朝向所述拍摄盲区旋转。The rotation instruction is sent to at least one acquisition device among the plurality of acquisition devices, so that the at least one acquisition device rotates toward the shooting blind area.
  7. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5, wherein the method further comprises:
    在确定存在所述非最佳拍摄区的情况下,生成参数调节指令;In the case of determining that the non-optimal shooting area exists, generating a parameter adjustment instruction;
    向所述多个采集设备中的至少一个采集设备发送所述参数调节指令,以扩大所述至少一个采集设备的拍摄区域。The parameter adjustment instruction is sent to at least one of the plurality of acquisition devices, so as to expand the shooting area of the at least one acquisition device.
  8. 一种地图生成方法,应用于采集设备中,包括:A map generation method, applied to a collection device, includes:
    获取当前的位姿信息以及拍摄视野信息;Obtain the current pose information and shooting field of view information;
    向服务端设备发送所述位姿信息以及所述拍摄视野信息,其中,所述服务端设备用于根据每个采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,在目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。Sending the pose information and the shooting field of view information to the server device, wherein the server device is used to determine the shooting area of each collection device according to the pose information and shooting field information of each collection device , draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a deployment map of the target scene.
  9. 根据权利要求8所述的方法,其中,所述方法还包括:The method of claim 8, wherein the method further comprises:
    接收所述服务端设备发送的旋转指令;receiving a rotation instruction sent by the server device;
    根据所述旋转指令获取所述目标场景中拍摄盲区的位置信息;Acquire location information of the shooting blind spot in the target scene according to the rotation instruction;
    根据所述拍摄盲区的位置信息,朝向所述拍摄盲区进行旋转。According to the position information of the shooting blind area, the rotation is performed toward the shooting blind area.
  10. 根据权利要求8所述的方法,其中,所述方法还包括:The method of claim 8, wherein the method further comprises:
    接收所述服务端设备发送的参数调节指令;receiving a parameter adjustment instruction sent by the server device;
    根据所述参数调节指令对相机参数进行调节,以扩大所述拍摄区域。The camera parameters are adjusted according to the parameter adjustment instruction to expand the shooting area.
  11. 一种图像处理装置,包括:An image processing device, comprising:
    获取部分,配置为获取目标场景中与多个采集设备分别对应的位姿信息以及拍摄视野信息;an acquisition part, configured to acquire the pose information and the shooting field of view information corresponding to the multiple acquisition devices in the target scene respectively;
    确定部分,配置为根据每个所述采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域;a determining part, configured to determine the shooting area of each of the collection devices according to the pose information and the shooting field of view information of each of the collection devices;
    生成部分,配置为在所述目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述目标场景的布放地图。The generating part is configured to draw the shooting area of each of the collection devices on the electronic map of the target scene, and generate a layout map of the target scene.
  12. 根据权利要求11所述的图像处理装置,其中,所述装置还包括:The image processing apparatus according to claim 11, wherein the apparatus further comprises:
    第一发送部分,配置为采用广播方式发送获取请求,以使所述多个采集设备基于所述 获取请求返回所述位姿信息和所述拍摄视野信息;或者,向所述多个采集设备发送获取请求,以使所述多个采集设备基于所述获取请求返回所述位姿信息和所述拍摄视野信息。a first sending part, configured to send an acquisition request in a broadcast manner, so that the plurality of acquisition devices return the pose information and the shooting field of view information based on the acquisition request; or, send the acquisition request to the plurality of acquisition devices Obtaining a request, so that the plurality of collecting devices return the pose information and the shooting field of view information based on the obtaining request.
  13. 根据权利要求11或12所述的图像处理装置,其中,所述位姿信息包括地理位置和方位,所述拍摄视野信息包括视野角;The image processing device according to claim 11 or 12, wherein the pose information includes a geographic location and an orientation, and the photographing field of view information includes a field of view;
    所述确定部分,还配置为根据所述采集设备的方位以及所述视野角,确定所述采集设备的拍摄角度范围;以及根据所述采集设备的地理位置和所述拍摄角度范围,确定每个所述采集设备的拍摄区域。The determining part is further configured to determine the shooting angle range of the collecting device according to the orientation of the collecting device and the angle of view; and determine each the shooting area of the acquisition device.
  14. 根据权利要求13所述的图像处理装置,其中,所述拍摄视野信息还包括最佳拍摄距离;The image processing apparatus according to claim 13, wherein the shooting field of view information further includes an optimal shooting distance;
    所述确定部分,还配置为根据所述采集设备的地理位置、所述拍摄角度范围以及所述最佳拍摄距离,确定以所述采集设备的地理位置为顶点形成的扇形区域;以及将所述扇形区域确定为每个所述采集设备的拍摄区域。The determining part is further configured to determine, according to the geographic location of the collecting device, the shooting angle range and the optimal shooting distance, a fan-shaped area formed with the geographic location of the collecting device as a vertex; and The fan-shaped area is determined as the shooting area of each of the acquisition devices.
  15. 根据权利要求11至14任意一项所述的图像处理装置,其中,The image processing apparatus according to any one of claims 11 to 14, wherein,
    所述确定部分,还配置为根据每个所述采集设备的拍摄区域,确定所述目标场景的拍摄盲区和非最佳拍摄区中的至少一项,其中,所述非最佳拍摄区为所述目标场景中超出所述多个采集设备的最佳拍摄距离的区域;以及在所述布放地图中提示所述拍摄盲区和所述非最佳拍摄区中的至少一项。The determining part is further configured to determine at least one of a shooting blind area and a non-optimal shooting area of the target scene according to the shooting area of each of the collecting devices, wherein the non-optimal shooting area is the and indicating at least one of the shooting blind area and the non-optimal shooting area in the deployment map.
  16. 根据权利要求15所述的图像处理装置,其中,所述装置还包括:The image processing apparatus according to claim 15, wherein the apparatus further comprises:
    第二发送部分,配置为在确定存在所述拍摄盲区的情况下,基于所述拍摄盲区的位置信息生成旋转指令;以及向所述多个采集设备中的至少一个采集设备发送所述旋转指令,以使所述至少一个采集设备朝向所述拍摄盲区旋转。The second sending part is configured to generate a rotation instruction based on the position information of the shooting blind area when it is determined that the shooting blind area exists; and send the rotation instruction to at least one acquisition device in the plurality of acquisition devices, so that the at least one acquisition device is rotated toward the shooting blind area.
  17. 根据权利要求15所述的图像处理装置,其中,所述装置还包括:The image processing apparatus according to claim 15, wherein the apparatus further comprises:
    第三发送部分,配置为在确定存在所述非最佳拍摄区的情况下,生成参数调节指令;以及向所述多个采集设备中的至少一个采集设备发送所述参数调节指令,以扩大所述至少一个采集设备的拍摄区域。The third sending part is configured to generate a parameter adjustment instruction when it is determined that the non-optimal shooting area exists; and send the parameter adjustment instruction to at least one collection device among the plurality of collection devices, so as to expand the The shooting area of the at least one acquisition device is described.
  18. 一种图像处理装置,包括:An image processing device, comprising:
    获取部分,配置为获取当前的位姿信息以及拍摄视野信息;The acquisition part is configured to acquire the current pose information and the shooting field of view information;
    发送部分,配置为向服务端设备发送所述位姿信息以及所述拍摄视野信息,其中,所述服务端设备配置为根据每个采集设备的位姿信息以及拍摄视野信息,确定每个所述采集设备的拍摄区域,在目标场景的电子地图上绘制每个所述采集设备的拍摄区域,生成所述 目标场景的布放地图。The sending part is configured to send the pose information and the shooting field of view information to the server device, wherein the server device is configured to determine each of the The shooting area of the acquisition device is drawn on the electronic map of the target scene, and the shooting area of each acquisition device is drawn to generate a deployment map of the target scene.
  19. 根据权利要求18所述的图像处理装置,其中,所述装置还包括:The image processing apparatus according to claim 18, wherein the apparatus further comprises:
    转动部分,配置为接收所述服务端设备发送的旋转指令;以及根据所述旋转指令获取所述目标场景中拍摄盲区的位置信息;以及根据所述拍摄盲区的位置信息,朝向所述拍摄盲区进行旋转。a rotating part, configured to receive a rotation instruction sent by the server device; and obtain the position information of the shooting blind spot in the target scene according to the rotation instruction; rotate.
  20. 根据权利要求18所述的图像处理装置,其中,所述装置还包括:The image processing apparatus according to claim 18, wherein the apparatus further comprises:
    调节模块,配置为接收服务端设备发送的参数调节指令;以及根据所述参数调节指令对相机参数进行调节,以扩大所述拍摄区域。The adjustment module is configured to receive a parameter adjustment instruction sent by the server device; and adjust camera parameters according to the parameter adjustment instruction to expand the shooting area.
  21. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    配置为存储处理器可执行指令的存储器;memory configured to store processor executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至7中任意一项所述的方法,或者,以执行权利要求8至10中任意一项所述的方法。wherein the processor is configured to invoke the instructions stored in the memory to perform the method of any one of claims 1 to 7, or, to perform the method of any one of claims 8 to 10 .
  22. 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至7中任意一项所述的方法,或者,实现权利要求8至10中任意一项所述的方法。A computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the method described in any one of claims 1 to 7, or implement the method in claims 8 to 10 any of the methods described.
  23. 一种计算机程序,包括计算机可读代码,在所述计算机可读代码在电子设备中运行,被所述电子设备中的处理器执行的情况下,实现权利要求1至7中任意一项所述的方法,或者,以执行权利要求8至10中任意一项所述的方法。A computer program, comprising computer-readable codes, in the case that the computer-readable codes are executed in an electronic device and executed by a processor in the electronic device, to implement any one of claims 1 to 7. method, or, to perform the method of any one of claims 8 to 10.
  24. 一种计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1至7中任意一项所述的方法,或者,以执行权利要求8至10中任意一项所述的方法。A computer program product which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 7, or, to perform the method of any one of claims 8 to 10.
PCT/CN2021/125027 2021-04-12 2021-10-20 Map generation method and apparatus, and electronic device and storage medium WO2022217877A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110390593.7 2021-04-12
CN202110390593.7A CN113115000B (en) 2021-04-12 2021-04-12 Map generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
WO2022217877A1 true WO2022217877A1 (en) 2022-10-20
WO2022217877A9 WO2022217877A9 (en) 2022-11-24

Family

ID=76716039

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/125027 WO2022217877A1 (en) 2021-04-12 2021-10-20 Map generation method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN113115000B (en)
WO (1) WO2022217877A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113362392A (en) * 2020-03-05 2021-09-07 杭州海康威视数字技术股份有限公司 Visual field generation method and device, computing equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115000B (en) * 2021-04-12 2022-06-17 浙江商汤科技开发有限公司 Map generation method and device, electronic equipment and storage medium
CN115297315A (en) * 2022-07-18 2022-11-04 北京城市网邻信息技术有限公司 Correction method and device for shooting central point in circular shooting and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039693A1 (en) * 2004-08-20 2006-02-23 Samsung Electronics Co., Ltd. Photographing device and method for panoramic imaging
CN103391422A (en) * 2012-05-10 2013-11-13 中国移动通信集团公司 Method and device for video monitoring
US20140300637A1 (en) * 2013-04-05 2014-10-09 Nokia Corporation Method and apparatus for determining camera location information and/or camera pose information according to a global coordinate system
US20190149730A1 (en) * 2017-11-16 2019-05-16 Canon Kabushiki Kaisha Image capturing control apparatus and control method therefor
CN209913914U (en) * 2019-06-10 2020-01-07 深圳市华意达智能电子技术有限公司 Embedded equipment for simultaneously sampling multiple cameras
CN113115000A (en) * 2021-04-12 2021-07-13 浙江商汤科技开发有限公司 Map generation method and device, electronic equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4181372B2 (en) * 2002-09-27 2008-11-12 富士フイルム株式会社 Display device, image information management terminal, image information management system, and image display method
JP2010206475A (en) * 2009-03-03 2010-09-16 Fujitsu Ltd Monitoring support device, method thereof, and program
DE112012001464T5 (en) * 2011-03-28 2013-12-24 Panasonic Corporation Image display device
CN104639824B (en) * 2013-11-13 2018-02-02 杭州海康威视系统技术有限公司 Video camera control method and device based on electronic map
KR102282456B1 (en) * 2014-12-05 2021-07-28 한화테크윈 주식회사 Device and Method for displaying heatmap on the floor plan
JP6611531B2 (en) * 2015-09-16 2019-11-27 キヤノン株式会社 Image processing apparatus, image processing apparatus control method, and program
CN106331618B (en) * 2016-08-22 2019-07-16 浙江宇视科技有限公司 A kind of method and device automatically confirming that video camera visible range
CN109348119B (en) * 2018-09-18 2021-03-09 成都易瞳科技有限公司 Panoramic monitoring system
CN109886995B (en) * 2019-01-15 2023-05-23 深圳职业技术学院 Multi-target tracking method in complex environment
CN112422886B (en) * 2019-08-22 2022-08-30 杭州海康威视数字技术股份有限公司 Visual domain three-dimensional control display system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039693A1 (en) * 2004-08-20 2006-02-23 Samsung Electronics Co., Ltd. Photographing device and method for panoramic imaging
CN103391422A (en) * 2012-05-10 2013-11-13 中国移动通信集团公司 Method and device for video monitoring
US20140300637A1 (en) * 2013-04-05 2014-10-09 Nokia Corporation Method and apparatus for determining camera location information and/or camera pose information according to a global coordinate system
US20190149730A1 (en) * 2017-11-16 2019-05-16 Canon Kabushiki Kaisha Image capturing control apparatus and control method therefor
CN209913914U (en) * 2019-06-10 2020-01-07 深圳市华意达智能电子技术有限公司 Embedded equipment for simultaneously sampling multiple cameras
CN113115000A (en) * 2021-04-12 2021-07-13 浙江商汤科技开发有限公司 Map generation method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113362392A (en) * 2020-03-05 2021-09-07 杭州海康威视数字技术股份有限公司 Visual field generation method and device, computing equipment and storage medium
CN113362392B (en) * 2020-03-05 2024-04-23 杭州海康威视数字技术股份有限公司 Visual field generation method, device, computing equipment and storage medium

Also Published As

Publication number Publication date
WO2022217877A9 (en) 2022-11-24
CN113115000B (en) 2022-06-17
CN113115000A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
WO2022217877A1 (en) Map generation method and apparatus, and electronic device and storage medium
US11108953B2 (en) Panoramic photo shooting method and apparatus
US11516377B2 (en) Terminal, focusing method and apparatus, and computer readable storage medium
JP5607759B2 (en) Image identification using trajectory-based location determination
EP3352453A1 (en) Photographing method for intelligent flight device and intelligent flight device
CN105959587B (en) Shutter speed acquisition methods and device
WO2017071562A1 (en) Positioning information processing method and apparatus
KR101788496B1 (en) Method and apparatus for controlling video image and terminal
KR20120012259A (en) Apparatus and Method for Providing Road View
WO2022110776A1 (en) Positioning method and apparatus, electronic device, storage medium, computer program product, and computer program
CN112149659B (en) Positioning method and device, electronic equipment and storage medium
JP6145563B2 (en) Information display device
CN114466308B (en) Positioning method and electronic equipment
CN111176338B (en) Navigation method, electronic device and storage medium
WO2022237071A1 (en) Locating method and apparatus, and electronic device, storage medium and computer program
WO2023142755A1 (en) Device control method, apparatus, user device, and computer-readable storage medium
CN111754564A (en) Video display method, device, equipment and storage medium
WO2022110801A1 (en) Data processing method and apparatus, electronic device, and storage medium
CN112432636B (en) Positioning method and device, electronic equipment and storage medium
EP4161054A1 (en) Anchor point information processing method, apparatus and device and storage medium
CN112804481B (en) Method and device for determining position of monitoring point and computer storage medium
CN110060355B (en) Interface display method, device, equipment and storage medium
CN110633335B (en) Method, terminal and readable storage medium for acquiring POI data
CN113724382A (en) Map generation method and device and electronic equipment

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022530738

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21936744

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21936744

Country of ref document: EP

Kind code of ref document: A1