WO2022161080A1 - Photographic method and apparatus - Google Patents
Photographic method and apparatus Download PDFInfo
- Publication number
- WO2022161080A1 WO2022161080A1 PCT/CN2021/142238 CN2021142238W WO2022161080A1 WO 2022161080 A1 WO2022161080 A1 WO 2022161080A1 CN 2021142238 W CN2021142238 W CN 2021142238W WO 2022161080 A1 WO2022161080 A1 WO 2022161080A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- scene
- service
- time period
- camera
- moment
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 91
- 238000001514 detection method Methods 0.000 claims description 187
- 238000013507 mapping Methods 0.000 claims description 83
- 238000012545 processing Methods 0.000 claims description 32
- 230000004044 response Effects 0.000 claims description 17
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000003384 imaging method Methods 0.000 claims description 7
- 206010042772 syncope Diseases 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 description 64
- 238000010586 diagram Methods 0.000 description 16
- 230000003111 delayed effect Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 239000002699 waste material Substances 0.000 description 6
- 230000001934 delay Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000000926 separation method Methods 0.000 description 2
- 241001544487 Macromiidae Species 0.000 description 1
- 206010039203 Road traffic accident Diseases 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004091 panning Methods 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/69—Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/183—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/188—Capturing isolated or intermittent images triggered by the occurrence of a predetermined event, e.g. an object reaching a predetermined position
Definitions
- the present application relates to the field of cameras, and in particular, to a camera method and device.
- the ball camera has an irreplaceable role.
- the ball camera refers to a rotatable spherical camera.
- the ball camera is usually installed in various public places such as streets and parks. It is also different. Common services include: face detection, vehicle detection, personnel intrusion detection, illegal parking detection, etc.
- the cruise setting of the dome camera makes a dome camera take turns to perform the same business at different points (corresponding to different scenarios) within the valid time period to complete the cruise task.
- the embodiment of the present application discloses a camera method and device, which can realize the time-sharing and point-by-point execution of various services by the camera in a complex scene, improve the utilization rate of the camera, and reduce the waste of resources in the complex scene.
- an embodiment of the present application provides a camera method, which is applied to a camera.
- the method includes: the camera collects a first image at a first moment, and performs a first service on the first image; and the camera collects a first image at a second moment. two images, and perform a second service on the second image, the second moment is different from the first moment, and the first service and the second service are different.
- the camera can perform the first service on the first image collected at the first moment, and can also perform the second service on the second image collected at the second moment, thereby realizing the time-sharing of the camera in a complex scene. It can perform a variety of different services, improve the utilization rate of cameras, and effectively reduce the waste of resources in complex scenarios.
- the method before the camera captures the second image at the second moment, the method further includes: adjusting the first shooting field of view of the camera at the first moment to the second image at the second moment Shoot the field of view.
- the camera captures the first image with the first shooting field of view at the first moment, and captures the second image with the second shooting field of view at the second moment.
- Execute a variety of different services improve the utilization rate of cameras, and effectively reduce the waste of resources in complex scenarios.
- the shooting field of view of the camera can be adjusted by adjusting one or more of the following parameters of the pan/tilt of the camera: Pan Pan, Tilt Tilt, and Zoom Zoom, so that the camera can move from the first
- the first photographing field of view at one moment is adjusted to the second photographing field of view at the second moment.
- the camera's shooting field of view (or point) can be adjusted by adjusting the three parameters of the camera's panning Pan, tilting Tilt and zooming Zoom, so that the camera can collect images with different shooting fields of view at different times, effectively improving the performance of the camera. camera usage.
- the method before the camera captures the second image at the second moment, the method further includes: receiving an instruction to adjust the field of view; continuing to capture the first image with the first shooting field of view, when the first When the image acquisition is completed, enter the step of adjusting the shooting field of view of the camera.
- the camera after receiving the instruction to adjust the field of view, the camera may be shooting the first image or in the process of performing the first service on the first image. In this case, the camera may first wait for the first image to be captured or After processing, adjust your shooting field of view at the second moment. In this way, the flexibility of the camera to perform the shooting process is improved, and the dynamic switching of the shooting field of view of the camera in a complex scene is realized.
- the first service includes at least one of the following services: face recognition, vehicle recognition, non-human detection, parking violation detection, speeding detection, red light running detection, intrusion detection, pedestrian detection Faint detection, vehicle collision detection, car theft detection and fight detection.
- the cameras can perform various services and rich functions, which is beneficial to improve the usage rate of the cameras and meet the service requirements in different scenarios.
- the method before the camera captures the second image at the second moment and performs the second service on the second image, the method further includes: sending a switching request to the server;
- the handover request response includes the identifier of the second service, or the switch request response includes the identifier of the second service and the second shooting field of view, and the identifier of the second service and the second shooting field of view correspond to the second moment respectively.
- the method before the camera captures the first image at the first moment, the method further includes: receiving a binding relationship between the first time period and the first service, wherein the first moment belongs to the first time A time period; receiving the binding relationship between the second time period and the second service, wherein the second moment belongs to the second time period.
- mapping relationship between the first time period and the identifier of the first service is pre-stored in the camera
- mapping relationship between the second time period and the identifier of the second service is pre-stored in the camera
- mapping relationship between the first time period and the first shooting field of view is pre-stored in the camera, and the mapping relationship between the second time period and the second shooting field of view is pre-stored in the camera.
- an embodiment of the present application provides a method for configuring a camera, which is applied to a server.
- the method includes: setting a first time period, binding the first time period with a first shooting field of view and a first service; setting a first time period Two time periods, binding the second time period with the second shooting field of view and the second service; sending configuration information to the camera, where the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the first time The mapping relationship between the segment and the identifier of the first service, and the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service.
- the service and shooting field of view (or called the point position) corresponding to the camera at different times are different, thereby realizing the different time-sharing and point-by-point execution of the camera. It is beneficial to improve the utilization rate of cameras and reduce the waste of hardware resources in complex scenarios.
- the first mapping relationship further includes: a mapping relationship between the first time period and the first shooting field of view; the second mapping relationship further includes: a mapping relationship between the second time period and the second shooting field of view Mapping relations.
- the first mapping relationship is the mapping relationship between the first time period, the identification of the first business and the first shooting field of view
- the second mapping relationship is the second time period, the identification of the second business and the second shooting The mapping relationship between fields of view. It should be noted that the business and the shooting field of view determine the scene, that is, the first time period and the second time period correspond to different scenes.
- the method further includes: receiving a cruising time period input through a user interface, and dividing the cruising time period into a plurality of time periods, the plurality of time periods including a first time period and a first time period Two time periods, the multiple time periods further include: alternately executing time periods corresponding to the first time period and the second time period according to the length of the first time period and the length of the second time period.
- the cruise time period and the first time period and the second time period correspond to different scenes, and the scenes are determined by the business and the shooting field of view (or referred to as the point).
- an embodiment of the present application provides a device for imaging, the device includes: a collection unit, configured to collect a first image at a first moment, and a processing unit configured to perform a first service on the first image; collecting The unit is further configured to collect a second image at the second moment, and the processing unit is further configured to perform a second service on the second image, the second moment is different from the first moment, and the second service is different from the first service.
- the processing unit is further configured to: adjust the first shooting field of view of the camera at the first moment to the second shooting field of view at the second moment.
- the processing unit is specifically configured to adjust the shooting field of view of the camera by adjusting one or more of the following parameters of the pan/tilt of the camera: Pan Pan, Tilt Tilt, and Zoom Zoom.
- the device further includes: a receiving unit, configured to receive an instruction to adjust the field of view; the processing unit is configured to continue to collect the first image with the first shooting field of view, and when the first image collection is completed , go to the step of adjusting the camera's shooting field of view.
- the first service includes at least one of the following services: face recognition, vehicle recognition, non-human detection, parking violation detection, speeding detection, red light running detection, intrusion detection, pedestrian detection Faint detection, vehicle collision detection, car theft detection and fight detection.
- the apparatus further includes: a sending unit, configured to send a handover request to the server; a receiving unit, further configured to receive a handover request response sent by the server, wherein the handover request response includes the first The identifier of the second service; or, the switching request response includes the identifier of the second service and the second shooting field of view, and the identifier of the second service and the second shooting field of view correspond to the second moment respectively.
- an embodiment of the present application provides an apparatus for camera configuration
- the apparatus includes: a configuration unit, configured to set a first time period, and bind the first time period with the first shooting field of view and the first service
- the configuration unit is also used to set the second time period, and bind the second time period with the second shooting field of view and the second service
- the sending unit is used to send configuration information to the camera, and the configuration information includes the first mapping relationship and the first mapping relationship.
- Two mapping relationships wherein the first mapping relationship is the mapping relationship between the first time period and the identifier of the first service, and the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service.
- the first mapping relationship further includes: a mapping relationship between the first time period and the first shooting field of view; the second mapping relationship further includes: a mapping relationship between the second time period and the second shooting field of view Mapping relations.
- the receiving unit is further configured to: receive a cruise time period input through a user interface, and divide the cruise time period into multiple time periods, where the multiple time periods include the first time period and The second time period, the plurality of time periods further include: alternately executing time periods corresponding to the first time period and the second time period according to the length of the first time period and the length of the second time period.
- an embodiment of the present application provides a camera, which includes a lens, a sensor, and a processor, wherein the lens is used to collect the first light at the first moment, and the sensor is used to perform photoelectric conversion on the first light to generate the first light. an image; the lens is also used to collect the second light at the second moment, and the sensor is also used to perform photoelectric conversion on the second light to generate a second image, the first moment and the second moment are different; processor: used for the first image A first service is performed, and a second service is performed on the second image, the first service and the second service being different.
- the camera further includes: a pan/tilt head for adjusting the shooting field of view of the camera, specifically including: adjusting the first shooting field of view corresponding to the first moment to be the same as the second moment The corresponding second shooting field of view.
- an embodiment of the present application provides a device, the device includes a display screen, a processor, and a communication module, wherein the display screen is used to display a user interface, the processor is used to receive user operations, configure a camera on the user interface, and communicate The module is used to send the camera's configuration information to the camera.
- embodiments of the present application provide a computer-readable storage medium, where the computer-readable medium stores program codes for device execution, where the program codes include the first aspect or any possible implementation of the first aspect.
- a directive for a method in a method is provided.
- an embodiment of the present application provides a computer-readable storage medium, where the computer-readable medium stores program codes for execution by the apparatus, and the program codes include the second aspect or any possible implementation of the second aspect.
- a directive for a method in a method is provided.
- an embodiment of the present application provides a computer software product.
- the computer program software product includes program instructions.
- the device executes the first aspect or any possibility of the first aspect.
- the computer software product may be a software installation package, and if the method provided by any of the possible designs of the foregoing first aspect needs to be used, the computer software product may be downloaded and executed on the device to achieve The method in the first aspect or any possible embodiment of the first aspect.
- an embodiment of the present application provides a computer software product
- the computer program software product includes program instructions
- the device executes the second aspect or any possibility of the second aspect.
- the computer software product may be a software installation package, and if the method provided by any of the possible designs of the foregoing first aspect needs to be used, the computer software product may be downloaded and executed on the device to achieve The method of the second aspect or any possible embodiment of the second aspect.
- FIG. 1A is a schematic diagram of a system architecture provided by an embodiment of the present application.
- FIG. 1B is a schematic diagram of another system architecture provided by an embodiment of the present application.
- FIG. 2 is a flowchart of a method for configuring a dome cruiser according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a scene configuration interface provided by an embodiment of the present application.
- 4A is a schematic diagram of a cruise configuration interface provided by an embodiment of the present application.
- 4B is a schematic diagram of another cruise configuration interface provided by an embodiment of the present application.
- FIG. 5 is a flowchart of a camera method provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of a cruise schedule provided by an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of a device provided in this embodiment of the present application.
- FIG. 9 is a schematic structural diagram of a camera provided in this embodiment of the present application.
- FIG. 10 is a schematic functional structure diagram of another device provided in this embodiment of the present application.
- FIG. 11 is a schematic functional structure diagram of an apparatus provided in this embodiment of the present application.
- the dome camera is also known as a spherical camera. It integrates an integrated camera (including a zoom lens), a PTZ, a decoder, a protective cover and other functions. Among them, the PTZ can also be called a turntable, which is the support for installing and fixing the camera.
- Equipment the gimbal can be divided into fixed gimbal and electric gimbal. The fixed gimbal will lock the position after adjusting the horizontal angle and pitch angle of the camera. Therefore, the monitoring range corresponding to the fixed gimbal is fixed and limited; electric cloud The platform can control the camera to rotate horizontally or vertically through the program or keyboard to change the monitoring range. Therefore, the monitoring range corresponding to the electric PTZ is wide and changeable. It should be noted that the dome camera in the embodiment of the present application selects a rotatable pan/tilt.
- PTZ is the abbreviation of Pan/Tilt/Zoom, which means PTZ azimuth (horizontal/vertical) movement and lens zoom control, referred to as PTZ control.
- Pan represents the horizontal movement control of the PTZ
- Tilt represents the vertical movement control of the PTZ
- Zoom represents the zoom control of the lens.
- Adjusting the field of view includes adjusting the horizontal field of view of the camera, adjusting the vertical field of view, or adjusting the zoom of the lens.
- the point position includes one or more of the horizontal angle, the tilt angle and the focal length of the lens.
- the so-called point position setting its essence refers to setting the PTZ parameters of the dome camera, that is, setting at least one of the three parameters of the dome camera lens's horizontal angle, pitch angle and lens focal length at this point, among which, the horizontal angle Corresponds to the parameter P (translation) in the above PTZ, the pitch angle corresponds to the parameter T (tilt) in the above PTZ, and the focal length of the lens corresponds to the parameter Z (zoom) in the above PTZ.
- a dome camera can set multiple points, and the dome camera can switch points through its own PTZ. It should be noted that a point of the dome camera represents a shooting field of view. Therefore, switching the point of the dome camera is equivalent to adjusting the shooting field of the dome camera.
- the dome camera is widely used in the monitoring of open areas.
- the cruise setting of the dome camera is usually: setting multiple points for the dome camera and the cruise time period corresponding to each point, wherein each point corresponds to a scene, and multiple Points are bound to the same service (for example, face detection), so that the dome camera can perform the same service by time and by point to complete the cruise task.
- three points are set for the ball machine, namely: point 1, the entrance of the park; point 2, the road in the park; point 3, the edge of the park wall.
- the dome camera will sequentially collect images at the three points set above according to the set schedule and perform face detection on the images. Inspection business.
- domes need to be deployed. Dome 1 is used for face detection at point 1
- dome 2 is responsible for illegal parking detection at point 2
- dome 3 is used for face detection at point 2.
- intrusion detection at point 3 to meet user needs. It can be seen from this that when there are multiple business requirements in a certain scenario or different business requirements in different scenarios, it is necessary to increase the number of deployed domes to meet user needs. Although the number of domes used increases, the utilization rate of each dome is low, which not only increases hardware cost, but also wastes resources.
- the embodiments of the present application provide a dome camera cruise method, which can realize the use of as few domes as possible to meet various business requirements in the same scenario or different business requirements in different scenarios, which not only saves hardware costs, but also saves hardware costs. Improve resource utilization.
- FIG. 1A is a system architecture diagram provided by an embodiment of the present application.
- the system includes a camera and a server, wherein the camera can communicate with the server in a wireless or wired manner.
- the server provides a user interface, which can be used by the user to configure the camera for cruise tasks in advance.
- the cruise task configuration specifically includes: configuring multiple scenes to be cruised in sequence, so that each scene is bound to a point and at least one Business: Perform cruise configuration for each scenario to determine the cruise time period corresponding to each scenario and the monitoring duration corresponding to each scenario. It can be understood that each point corresponds to a shooting field of view (or referred to as a monitoring field of view) of the camera.
- the stored scene parameter information and cruise time information are sent to the camera, wherein the scene parameter information includes the identifier of each scene in the multiple scenes to be cruised, the point corresponding to each scene and each scene.
- the cruise time information includes the identifier of each scene in the multiple scenes of the cruise, the cruise time period corresponding to each scene, and the monitoring duration corresponding to each scene. It should be noted that, in some possible embodiments, the scene parameter information and the cruise time information may also be combined into one piece of information, for example, cruise configuration information, which is not specifically limited in this application.
- the user can directly access the web address of the configuration interface corresponding to the camera on the server, so that the configuration interface of the camera is displayed on the user interface of the server. After the relevant configuration of the camera is performed on the configuration interface, the relevant configuration information is directly stored. local to the camera.
- a client for camera configuration can be installed in the server, and the user can configure the camera by clicking on the client. After completing the configuration, the camera can automatically store scene parameter information and cruise time information, or can be configured by The server sends the scene parameter information and cruise time information of the camera to the camera.
- the server may be a computing device in a cloud environment or a computing device in an edge environment, which is not specifically limited in this application.
- the camera is a camera with a PTZ and has business processing functions.
- the lens of the camera can rotate with the PTZ.
- the camera is used to collect scene images from a monitoring perspective corresponding to a point and perform related business processing on the scene images.
- the camera device is installed on the PTZ, and the PTZ can control the horizontal rotation or vertical rotation of the camera device to change the monitoring range of the camera device.
- the camera may be a dome camera, a PTZ camera, a PTZ camera, or other camera equipment with a turntable, which is not specifically limited in this application.
- the camera When the camera is used to determine that the current moment is the scene switching moment according to the cruise time information, if the current moment corresponds to the next scene, the service corresponding to the previous scene (if the previous scene exists) will be closed, and the corresponding service of the next scene will be activated. , and adjust the point corresponding to the previous scene to the point corresponding to the next scene.
- the scene parameter information also includes the priority information corresponding to the scene, when the next scene exists, if the priority corresponding to the previous scene (in the case of the previous scene) is detection First, in this case, if a target object is detected in the scene image corresponding to the previous scene, the camera can delay switching to the next scene until the detection task of the previous scene ends.
- a scene management module, a cruise module and a business module are deployed in the camera, wherein the scene management module is used to receive a scene switch request sent by the cruise module and determine whether to perform a scene switch currently. When it is determined to perform a scene switch, the scene The management module is used to instruct the service module to close the service corresponding to the previous scene (if the previous scene exists) and to open the service corresponding to the next scene, and the scene management module is also used to send the point corresponding to the next scene to the cruise module .
- the cruise module is used to determine whether the current moment is the scene switching moment according to the cruise time information of the scene, and when it is determined that the current moment is the scene switching moment, it sends a scene switching request to the scene management module to obtain the point corresponding to the next scene. It is also used to adjust its own camera device to the point corresponding to the next scene after receiving the point corresponding to the next scene sent by the scene management module.
- the business module is used to close or open a business corresponding to a certain scene according to the instruction information issued by the scene management module.
- FIG. 1B exemplarily shows another system architecture diagram in the present application.
- the system includes a camera and a server, wherein the camera can communicate with the server in a wireless or wired manner.
- the camera is a camera device with a PTZ and a business processing function, and the camera is used to collect scene images from a monitoring perspective corresponding to a point and perform related business processing on the scene images.
- the camera device is installed on the PTZ, and the PTZ can control the horizontal rotation or vertical rotation of the camera device to change the monitoring range of the camera device.
- the camera may be a dome camera, a PTZ camera, a PTZ camera, or other camera equipment with a turntable, which is not specifically limited in this application.
- a cruise module and a service module are deployed in the camera.
- the cruise module is used to obtain cruise time information from the server.
- the cruise module detects that the current moment is the scene switching moment according to the cruise time information, and sends a scene switching request to the server, where the scene switching request includes the identifier of the next scene.
- the cruise module is further configured to receive the point corresponding to the next scene sent by the server and adjust its own camera device to the point corresponding to the next scene.
- the service module is used for receiving the instruction information sent by the server and closing or opening the service corresponding to a certain scene according to the instruction information.
- the cruise module is further configured to determine whether to perform scene switching at the current moment when the current moment is the scene switching moment, and send the scene switching process to the server when it is determined that the scene switching is performed at the current moment.
- the scene switching process please refer to the following description.
- the server is provided with a user interface, which allows the user to configure the camera in advance for cruise tasks.
- the server can obtain the cruise time information and the scene parameter information.
- the server is also used to send cruise time information to the camera.
- a scene management module is deployed in the server, and the scene management module is configured to send first information to the camera after receiving a scene switching request from the camera, where the first information includes the point corresponding to the next scene and the service identifier corresponding to the next scene.
- the scene management module is configured to determine whether the camera satisfies the scene switching condition at the current moment when receiving the scene switching request from the camera. , send instruction information to the camera, the instruction information includes the point corresponding to the next scene and the service corresponding to the scene, and in some possible embodiments, the instruction information also includes an instruction to close the service corresponding to the current scene. information.
- both the service module and the cruise module are deployed in the camera, that is to say, the service processing of the scene images collected by the camera is performed in the camera, while FIG. 1A
- the judgment of whether the scene switching conditions are met is performed by the camera itself
- the judgment of whether the scene switching conditions are met can be performed by the camera or by the server. No specific limitation is made.
- the camera may take the ball camera as an example to illustrate the solution, but the embodiment of the present application does not limit the camera to be only the ball camera.
- FIG. 2 is a flowchart of a method for configuring a cruise control of a ball aircraft provided by an embodiment of the present application. The method includes but is not limited to the following steps:
- S101 Set multiple scenarios on which the dome camera is to be cruising on a user interface, and perform scenario configuration for each of the multiple scenarios.
- multiple scenarios for the dome camera to be cruised are set on the user interface, and scenario configuration is performed for each scenario in the multiple scenarios, wherein the so-called scenario configuration for each scenario refers to: for each scenario Each scene is bound to a point (or called a shooting field of view) and at least one business.
- scene parameter information can be obtained, where the scene parameter information includes the identifier of each scene in the multiple scenes to be cruised, the point corresponding to each scene, and the service identifier corresponding to each scene. It should be noted that the scene is jointly determined by the point and the business.
- the two scenarios For any two scenarios, if and only if the points corresponding to the two scenarios are the same and the services corresponding to the two scenarios are also the same, then the two scenarios for the same scene. If the points corresponding to the two scenarios are different or the services corresponding to the two scenarios are different, the two scenarios are different scenarios.
- the point position represents the shooting angle of the dome camera (or called the shooting field of view), and setting the point position of the dome camera refers to setting the PTZ coordinates of the dome camera, that is, the horizontal angle, pitch angle and focal length of the dome camera.
- the range can be [0, 2 ⁇ ], and the range of the pitch angle can be (- ⁇ , 0).
- the focal length determines the imaging size, field angle, depth of field, etc. of the subject captured by the lens, and the shorter the focal length, the better the imaging. Smaller, the larger the field of view, the longer the depth of field.
- the point position further includes an aperture value, a zoom value, and the like.
- a service represents an algorithm or program for detecting objects or object events in a surveillance environment, such as recognizing objects in images, or recognizing object events in images.
- the target body can be a person, a face, a vehicle, etc.
- the target event can be a vehicle parking illegally, a vehicle speeding, a vehicle running a red light, a person stealing a car, a vehicle collision, a pedestrian fighting, a pedestrian fainting, a pedestrian intrusion, etc.
- the business can be face detection, face recognition, vehicle detection, illegal parking detection, speeding detection, intrusion detection, non-human detection, red light running detection, vehicle collision detection, pedestrian fainting detection, car theft detection, etc. No specific limitation is made.
- Service parameters can be set for the service, for example, preset detection frame size, snapshot mode, image brightness compensation coefficient, etc. Taking the service bound to a scene as face detection as an example, you can set the service parameters of the service in the scene, such as the preset detection frame size, snapshot mode, face sensitivity, and face brightness compensation coefficient. Taking the preset detection frame size as an example, when performing face detection processing on the scene image collected by the dome camera at this point, when the size of the detected face frame is smaller than the above-mentioned preset detection frame size, the person The face frame is not used as a detected face. It should be noted that the service parameters of different services may be different.
- the preset detection frame size of face detection may be set to 20*20
- the preset detection frame size of vehicle detection may be set to 30*30. It can be seen that by binding multiple services to a certain scenario and configuring the service parameters of the multiple services respectively, the configuration separation of different services in different scenarios can be realized.
- the same service may also have different service parameters in different scenarios.
- face detection Take face detection as an example.
- the dome camera is installed in the park, scene 1 corresponds to a road in the park, and scene 2 corresponds to the square outside the park. If scene 1 and scene 2 are both bound to the face detection service, Since the distance from the square outside the park to the dome camera is greater than the distance from the road in the park to the dome camera, the size of the preset detection frame corresponding to the face detection service in scenario 2 is smaller than the preset detection frame corresponding to the face detection service in scenario 1 size, thus realizing the configuration separation of the same service in different scenarios.
- the so-called scenario configuration for each scenario also includes setting the priority of the service corresponding to each of the above scenarios, wherein the priority Including detection priority and non-detection priority, the priority can be used to determine whether the dome camera meets the scene switching conditions.
- the dome camera satisfies the scene switching condition; if the dome camera has the next scene, the service corresponding to the previous scene The priority of the dome camera is "Detection Priority" and the target object is detected in the scene image corresponding to the previous scene, the dome camera does not meet the scene switching conditions; if the dome camera has the next scene, the priority of the service corresponding to the previous scene is "Detection priority” and no target is detected in the scene image corresponding to the previous scene, the dome camera meets the scene switching conditions.
- the user interface may be provided by the server.
- the user interface can be a configuration interface generated by the server in response to the operation of the user accessing the configuration URL of the dome machine.
- the user interface of the server is the configuration webpage of the dome camera.
- the user interface can also be a configuration interface provided by a client installed in the server for ball machine configuration. Specifically, the client used for ball machine configuration is installed in the server, and the user clicks the client. , in this case, the user interface of the server is the configuration interface provided by the client.
- the user interface may be the interface shown in FIG. 3 .
- the interface shown in FIG. 3 may also be called a scene configuration interface.
- FIG. 3 is only an example of a scene configuration interface, and does not limit the scene of the present application.
- the configuration interface is only as shown in FIG. 3
- the scene configuration interface may be any interface that implements the above-mentioned scene configuration function.
- Figure 3 is the dome camera ID-scene configuration interface, where ID represents the dome camera's identification, and multiple functional modules are listed on the interface, such as point binding module, business binding module, Add a scene module and a monitoring perspective module.
- the point binding module is used for point setting, and the point binding module lists the input boxes of the horizontal angle, the pitch angle and the focal length in turn.
- an input box of aperture can also be added in the point binding module;
- the business binding module is used for business setting, and the business binding module lists "face detection 1", “vehicle detection 2" " and other business options, take “Face Detection 1" as an example, "1" is the identity of face detection, which uniquely represents face detection, in addition, you can also set business parameters, such as the preset detection frame size;
- the monitoring angle module is used to display the scene images currently collected at the points set on the interface, which can assist the user to set the scene point binding.
- a scene module has been added to display the relevant parameters of the currently set scene.
- the added scene module in Figure 3 shows "scene 1: point (40°, -40°, 50), face recognition 3 and vehicle detection 2, detection priority”.
- scene 1 point (40°, -40°, 50)
- face recognition 3 face recognition 3
- vehicle detection 2 detection priority
- a priority setting module may also be set on the interface shown in FIG. 3 , and the priority setting module is used to set a priority for the service selected in the service binding module.
- the service binding module is separated from the priority setting module, so that when multiple services are selected in the service binding module, if the selected multiple services are preferentially set, they will be selected by the priority setting module. Multiple selected services have the same priority setting, for example, the same as "Detection Priority" or "Non-Detection Priority".
- the priority setting module can also be set in the service binding module (not shown in FIG.
- the user configures the scene 2 on the user interface shown in FIG. 3.
- the user can input the horizontal angle, pitch angle and focal length of the point through the keyboard.
- the scene 2 corresponds to The point position is "horizontal angle 60°, pitch angle -30°, focal length 85mm".
- a progress bar (not shown in Figure 3) can also be set next to the horizontal angle, the pitch angle and the focal length in the point binding module, and the horizontal angle, the pitch angle and the focal length can be set respectively by dragging the corresponding progress bar. , and the value corresponding to the current position is displayed next to the progress bar.
- the point binding module can also be provided with two adjustment keys, namely a "+” key and a "-" key, which can be used to adjust the horizontal angle, the pitch angle or the focal length. For example, set the horizontal angle, assuming that the current horizontal angle is 50°, according to the scene image displayed by the monitoring viewing angle module on the right side, it is found that the angle is a little to the left, and the scene image displayed in combination with the monitoring viewing angle module can be increased by clicking the "+” button. Horizontal angle up to a suitable value.
- configure the service for scenario 2 check the "face detection 1" service, and set the default detection frame size to 20*20.
- the priority of the service "face detection 1" may also be set.
- checking "non-detection priority” means that the priority of the corresponding service is set to non-detection priority.
- the scene configuration information of scene 2 is stored, and the The added scene module will add a message "Scene 2: Point (60°, -30°, 85), face detection 1, non-detection priority", which means that two scenes have been configured for the dome camera. : Scenario 1 and Scenario 2 respectively.
- the scene configuration method according to the above-mentioned scene 2 can be used to configure other scenes required by the dome camera, which will not be repeated here.
- the embodiments of the present application do not limit the execution order of setting the point corresponding to the scenario, setting the service corresponding to the scenario, and setting the priority of the service corresponding to the scenario.
- the so-called cruise configuration for each scenario refers to: for each scenario The scene sets the cruise time period.
- the monitoring duration corresponding to each scenario can also be set.
- the cruise time period indicates the working time period of the dome camera
- the cruise time period of the scene indicates that the scene is valid during the cruise period.
- the cruise time period of scene 1 is only 8:00AM to 10:00AM
- the intra-segment dome camera can collect scene images at the points corresponding to scene 1 and perform services corresponding to scene 1 on the scene images.
- the monitoring time corresponding to the scene refers to the duration or stay time of the dome camera in the scene each time, and it also means the time the dome camera continuously monitors the scene each time.
- scenario 1 and scenario 2 For example, if there are two scenarios corresponding to the cruise period from 8:00AM to 9:00AM, namely scenario 1 and scenario 2, and setting the monitoring duration of scenario 1 to 30 minutes and the monitoring duration of scenario 2 to 30 minutes, it means that, From 8:00AM to 9:00AM, you can monitor scene 1 from 8:00AM-8:30AM and monitor scene 2 from 8:31AM-9:00AM, or monitor scene 2 from 8:00AM-8:30AM and monitor scene 2 from 8:00AM to 8:30AM. 8:31AM-9:00AM Monitoring Scenario 1, which is not specifically limited in this application.
- the cruise sequence of each scene in the cruise time period can also be set, so that the dome camera can cruise according to the cruise time of each scene during the cruise time period. Sequentially take turns cruising. For example, if there are scene 1 and scene 2 between 8:00AM and 9:00AM, the monitoring duration of scene 1 is 30 minutes and the monitoring duration of scene 2 is 30 minutes, and the cruise sequence of scene 1 is 1 and the cruise sequence of scene 2 is 2. From 8:00AM to 9:00AM, monitor scene 1 from 8:00AM-8:30AM first, and monitor scene 2 from 8:31AM-9:00AM later.
- the monitoring duration of each scene in the multiple scenes determines the number of alternate cruises of each scene within the cruise period. For example, if Scenario 1 and Scenario 2 are set between 8:00AM and 9:00AM, and the monitoring duration of Scenario 1 is 30 minutes and the monitoring duration of Scenario 2 is 30 minutes, then from 8:00AM to 9:00AM, the scenarios can be monitored separately. 1 once and scene 2 once.
- Scenario 1 and Scenario 2 are set from 8:00AM to 9:00AM, and the monitoring duration of Scenario 1 is 15min and the monitoring duration of Scenario 2 is 15min, then from 8:00AM to 9:00AM, Scenario 1 can be monitored separately Twice and Scenario 2 twice, if the cruise sequence of Scenario 1 is set as the first and the cruise sequence of Scenario 2 as the second, the cruise process from 8:00AM to 9:00AM is as follows: Scenario 1 (8:00AM to 8 :15AM) - Scene 2 (8:15AM to 8:30AM) - Scene 1 (8:30AM to 8:45AM) - Scene 2 (8:45AM to 9:00AM), that is to monitor scene 1 and scene 2 twice in turn .
- the scene corresponding to the cruise time period can be determined from the cruise time period and the monitoring duration of the scene. switch time. For example, if the cruise process from 8:00AM to 9:00AM is: scene 1 (15min) - scene 2 (15min) - scene 1 (15min) - scene 2 (15min), then the scene corresponding to 8:00AM to 9:00AM There are four switching times, namely 8:00AM, 8:15AM, 8:30AM and 8:45AM. When a certain cruise period corresponds to only one scene, the start moment of the cruise period is a scene switching moment of the scene.
- the cruise time period is automatically divided into multiple time periods, which improves the configuration efficiency of the dome camera. It may be assumed that multiple time periods include a first time period and a second time period, where the first time period is set to be bound to the first shooting field of view (or the first point) and the first business, and the second time period is set. Binding with the second shooting field of view (or called the second point) and the second business.
- the server sends configuration information to the dome camera, and the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the first time period, the identifier of the first service, and the first mapping relationship.
- a mapping relationship between the shooting fields of view, and the second mapping relationship is a mapping relationship between the second time period, the identifier of the second service, and the second shooting field of view.
- the first mapping relationship is equivalent to representing the scene corresponding to the first time period and the first time period
- the second mapping relationship is equivalent to representing the second time period and the second time period. The scene corresponding to the time period. In this way, the ball machine can be located at different points at different times to execute different services or at different times at the same point to execute different services.
- the first time period is the monitoring duration of the scene determined by the first shooting field of view and the first service
- the second time period is the monitoring time period of the scene determined by the second shooting field of view and the second service.
- the above-mentioned multiple time periods further include: alternately executing the first time period and the length of the second time period with the first time period.
- the first time period and the second time period correspond to the time period of the service.
- the cruise time period corresponds to scene 1 and scene 2.
- the cruise sequence of scene 1 is prior to the cruise sequence of scene 2, and the monitoring time of scene 1 is 10 minutes.
- the monitoring duration of 2 is 20 minutes.
- Scenario 1 is bound to point 1, business 1 and business 2, and scene 2 is bound to point 2 and business 3.
- the cruise time period 9:00AM-10:00AM is automatically divided into four time periods, namely 9:00AM-9:10AM monitoring scene 1, 9:10AM-9 :30AM monitoring scenario 2, 9:30AM-9:40AM monitoring scenario 1, 9:40AM-10:00AM monitoring scenario 2, in this case, for example, 9:00AM-9:10AM can be the first time period, 9 :10AM-9:30AM or 9:40AM-10:00AM may be the second time period.
- the first time period may be 9:30AM-9:40AM
- the second time period may be 9:40AM-10:00AM.
- the cruising configuration for each scene may also be: first setting a certain cruising time period, and then adding each set scene to each cruising time period as needed.
- the monitoring duration of each scene within the cruise period can also be set in turn.
- FIG. 4A is an example of a cruise configuration interface provided by the present application.
- the interface lists a cruise time period module, a scene identification module, a cruise path module, etc., wherein the cruise time period module includes a time scale bar and a sliding bar, the length of the sliding bar can be adjusted, and a cruise time period can be set by dragging the sliding bar;
- the scene identification module displays the currently created scenes, and also lists the input boxes for the monitoring duration of each scene and the The input box of the cruise sequence corresponding to the scene, the scene identification module allows the user to select the scene to be added to the cruise time period set in the cruise time period module and the monitoring duration corresponding to the set scene;
- the cruise path module is used to display the current
- the mapping relationship between the set cruise time period and the added scene can also be displayed, and the monitoring duration and cruise sequence corresponding to the scene can also be displayed.
- a cruise time period can be set first on this interface, for example, drag the slider to select the cruise time period of 9:00AM-10:00AM, and then select the cruise time period from the created scene
- scenario 1 and scenario 2 in the created scenario shown in FIG. 4A are checked, and the monitoring duration of scenario 1 is set to 10 minutes and the monitoring duration of scenario 2 is set to 20 minutes.
- the cruise sequence of each scene in the cruise time period can also be set.
- the scene 1 is set at 9:00AM-10: The cruise order within 00AM is 1 and the cruise order of scene 2 within 9:00AM-10:00AM is 2.
- the cruise path module in Figure 4A will add a record such as "cruise time period 9:00AM-10:00AM, Scenario 1 (monitoring duration 10min cruise sequence 1), scenario 2 (monitoring duration 20min cruise sequence 2)", from which you can clearly see the cruise time period corresponding to each scene, the monitoring duration corresponding to each scene, and where each scene is located. Corresponds to the cruise sequence in the cruise time period.
- the cruise configuration can be performed on other scenarios in the cruise path according to the above method, and details are not described herein again.
- the interface shown in FIG. 4A can be used to set the cruise time period of each day of the dome camera.
- a date may also be added on the interface shown in FIG. 4A to implement cruise configuration of the dome camera in units of weeks.
- the daily cruise configuration of the ball machine may be the same or different, which is not specifically limited in the embodiment of the present application.
- Fig. 4B is an example of another cruise configuration interface provided by this application
- Fig. 4B is a ball machine ID-cruise configuration interface
- ID represents the identification of the ball machine
- the interface is listed with scene identification input box, cruise time Segment module, monitoring duration input box, cruise path module, etc.
- there is a drop-down box under the scene ID input box and the drop-down box lists the currently created scenes, and the user can select a scene from the drop-down box each time for cruise time
- the monitoring duration corresponding to the scenario can be set in the monitoring duration input box.
- the cruise time period module includes a time scale bar and a slide bar. The length of the slide bar can be adjusted. A cruise time period can be set by dragging the slide bar; the cruise path module is used to display the time between the set scene and the cruise time period. It can also display the monitoring duration and cruise sequence corresponding to the scene.
- there is also a "Save” button On the interface shown in Figure 4B, there is also a "Save” button. After completing the settings of the cruise time period module, scene identification, monitoring duration, etc., click the "Save” button to save the current selected scene and the set cruise period. The mapping relationship between them is added to the above cruise path module.
- the cruise path module in Figure 4B will add a new A message saying "The scene ID is 3, the cruise time period is 14:00PM-18:00PM, and the monitoring time is 20min".
- the cruise sequence of a certain scene in the corresponding cruise time period can also be set.
- both scene 1 and scene 2 that have been set in the cruise path correspond to the cruise time period from 9:00AM to 10:00AM, and within the cruise time period, the cruise sequence of scene 1 is 1, and the cruise sequence of scene 2 is 2, that is, scene 1 is monitored first and then scene 2 is monitored.
- FIG. 4A or FIG. 4B is only an example of a cruise configuration interface, but the present application does not limit the cruise configuration interface to the one shown in FIG. 4A or FIG. 4B , which can be any one of the above cruise configuration functions.
- User Interface is only an example of a cruise configuration interface, but the present application does not limit the cruise configuration interface to the one shown in FIG. 4A or FIG. 4B , which can be any one of the above cruise configuration functions.
- the interface shown in FIG. 3 and the interface shown in FIG. 4A (or FIG. 4B ) may be two separate and independent interfaces, and the interface shown in FIG. 3 is switched to that shown in FIG. 4A (or FIG. 4B ).
- the condition of the interface can be after the scene configuration is completed, or it can be derived from the jump key to enter the cruise configuration interface.
- the interface shown in FIG. 3 and the interface shown in FIG. 4A (or FIG. 4B ) can also be combined into one interface, on which scene configuration can be performed for newly added scenes while scene configuration for existing scenes can be performed on the interface. Add a good scene for cruise configuration.
- the embodiments of the present application do not specifically limit the display forms of the interface shown in FIG. 3 and the interface shown in FIG. 4A (or FIG. 4B ).
- this application does not specifically limit the execution order of S101 and S102, that is to say, the scene configuration (S101) may be performed first and then the cruise configuration (S102) may be performed, or the cruise configuration (S102) may be performed first and then the cruise configuration (S102).
- the scene configuration ( S101 ), the scene configuration ( S101 ) and the cruise configuration ( S102 ) can also be performed at the same time.
- the server sends the related configuration information of the ball machine to the ball machine.
- the dome camera After completing the cruise task configuration of the dome camera by the method described in the above-mentioned embodiment of FIG. 2, the dome camera can execute the preset cruise task based on the stored relevant configuration information, so as to realize the switching of different scenes and the acquisition of scene images. Perform at least one business process.
- FIG. 5 is a camera method provided by an embodiment of the present application, and the method includes but is not limited to the following steps:
- the dome camera detects that the current time is the time to switch to the second scene.
- the cruise time information includes the identification of each scene in the multiple scenes to be cruised by the dome camera and the cruise time period corresponding to each scene, and the dome camera detects that the current moment is the scene switching moment according to the cruise time information, And the current moment corresponds to the second scene, in addition, the ball camera is located at the first point at the last moment of the current moment.
- the second scenario is bound to the second point and the second service.
- the second point represents a shooting field of view (or shooting angle) of the dome camera
- the second service can be face detection, face recognition, vehicle detection, illegal parking detection, speeding detection, intrusion detection, and non-human detection. , red light running detection, vehicle collision detection, pedestrian fainting detection, car theft detection, etc.
- the cruise time information when a certain cruise time period corresponds to multiple scenarios, the cruise time information further includes the monitoring duration corresponding to each scenario and the cruise sequence corresponding to each scenario.
- the cruise time information may be pre-stored in the dome machine, or may be acquired by the dome machine from a server, which is not specifically limited in this application.
- the dome camera in addition to the cruise time information, the dome camera also stores scene parameter information.
- the scene parameter information includes the points corresponding to each scene in the multiple scenes to be cruised and the services bound to each scene.
- the scene parameter information can also be obtained by the dome camera from the server.
- the cruise time information and the scene parameter information may be two separate pieces of information or a combined piece of information, which is not specifically limited in this application.
- the last moment of the current moment can be any moment within the preset time interval before the current moment, and the preset time interval can be 20ms, 50ms, 100ms, 200ms, 350ms, 1s, 4s or other values.
- the previous moment of the current moment is simply referred to as the previous moment.
- the cruise time information can be the cruise schedule shown in Table 2. As shown in Table 2, assuming that the cruise time period on a certain day is only 9:00AM-10:00AM, the cruise time period corresponds to two scenarios, respectively Scenario 1 and Scenario 2, where the monitoring duration corresponding to Scenario 1 is 10 minutes, and the monitoring duration corresponding to Scenario 2 is 20 minutes. You can also set the cruise sequence of Scenario 1 to be the first in the cruise time period of 9:00AM-10:00AM. in the cruise sequence of Scenario 2. See Table 3. Table 3 is an example of scene parameter information.
- Table 3 It can be seen from Table 3 that scene 1 is bound to point 1 and service 1, where point 1 represents the shooting field of the dome camera in scene 1; scene 2 is bound Point 2 and business 2, where point 2 represents the shooting field of view of the dome camera in scene 2, and business 1 and business 2 are different.
- Table 2 and Table 3 can also be combined into one table. It can be understood that during the cruising time period of 9:00AM-10:00AM, the ball will cruise in turn according to scene 1-scene 2-scene 1-scene 2. In this case, the scene switching times may be 9:00AM, 9:10AM, 9:30AM, and 9:40AM. Take the current moment as 9:00AM as an example, then the scene corresponding to the current moment is scene 1. In this case, the last moment can be 8:59:00AM, 8:59:30AM, etc., which is not specifically limited in this application .
- the camera is the dome camera.
- the scene management module obtains the cruise time information and scene parameter information from the memory of the dome camera, and will cruise the camera.
- the time information is sent to the cruise module. Based on the cruise time information, the cruise module in the dome camera detects that the current moment is the scene switching moment and the current moment corresponds to the second scene.
- each point in Table 3 represents a shooting field of view.
- the dome camera performs scene switching at the moment of scene switching. kind:
- the first one is that the dome camera detects that the current moment is the moment to switch to scene 2.
- Scene 2 is determined by point 2 and service 2.
- the dome camera switches directly at the current moment, that is, adjusts itself to point 2 to collect the second image, and Perform processing corresponding to service 2 on the second image.
- this situation specifically includes situation A and situation B:
- Scenario B The dome camera collected the first image at point 1 at the last moment and processed the first image with service 1, then when the dome camera detects that the current moment is the moment to switch to scene 2, the dome camera is at the current moment switch directly.
- the dome camera collected the first image at point 1 at the last moment and processed the first image in service 1.
- the dome camera detects that the current moment is the moment to switch to scene 2, and scene 2 consists of point 2 and Service 2 is confirmed, but the first image is being collected at the current moment or the first image has not been processed yet.
- the dome camera waits for the first image to be processed before performing the switch, that is, adjusts itself to point 2 to collect the second image , and perform processing corresponding to service 2 on the second image.
- the third type is that the dome camera collected the first image at point 1 at the last moment and processed the first image in service 1.
- the dome camera detects that the current moment is the moment to switch to scene 2, but the dome camera has collected the first image at the first moment.
- the target object or target event is detected in the first image of When the target body and/or target event is detected, the dome camera will perform switching, that is, adjust itself to point 2 to collect a second image, and perform processing corresponding to service 2 on the second image.
- first case A includes the following example in S202-S206 where there is no corresponding scene at the last moment
- first case B includes the following S202-S206 in the first scene corresponding to the last moment
- the priority is set to non-detection priority
- the priority of the first scene corresponding to the previous moment is set to detection priority, but no target or target event is detected in the first image.
- the second method includes the following In S202-S206, the dome machine waits for the first service to be processed before executing the scene switching.
- the judging process of the above three scene switching modes is specifically described below through S202-S206:
- the dome camera when the dome camera detects that the current moment is the scene switching moment and the current moment corresponds to the second scene, the dome camera also needs to determine whether there is a corresponding scene at the previous moment, and determines that there is no corresponding scene at the previous moment. , it means that the dome machine is at the first point at the last moment, but the dome machine has not started to work, and execute S203; when it is determined that there is a corresponding scene at the last moment, execute S204.
- the last moment is within any cruise time period in the cruise time information, and if the last moment is not within any cruise time period in the cruise time information, it is determined that there is no corresponding scene at the last moment; If a moment is within a certain cruise time period in the cruise time information, it is determined that there is a corresponding scene at the previous moment.
- the scene switching time can be It is 9:00AM, 9:10AM, 9:30AM and 9:40AM. If the current time is 9:00AM and the last time is 8:59AM, it is easy to know that the last time is not within the only cruise time period of 9:00AM-10:00AM shown in Table 2. The corresponding scene; if the current time is 9:10AM, assuming that the previous time is 9:09AM, since 9:09AM is within the cruise time period of 9:00AM-10:00AM, it is determined that there is a corresponding scene at the previous time. And the last moment corresponds to scene 1.
- the cruise module detects that the current moment is the scene switching moment based on the cruise time information and the current moment corresponds to the second scene, the cruise module sends a scene switching request to the scene management module.
- the scene switching request includes the identifier of the second scene.
- the scene management module receives the scene switching request from the cruise module, it judges whether there is a corresponding scene at the last moment in combination with the cruise time information. When it is determined that there is no corresponding scene at the last moment, the scene management module sends the second point to the cruise module.
- the processing procedure of the scene management module may refer to the following description.
- the identifiers of the second point and the second service may be found by the dome camera from the scene parameter information according to the identifier of the second scene, and the scene parameter information may be pre-stored in the dome camera.
- the dome camera determines to switch the scene at the current moment. According to Table 3, the dome camera can know that scene 1 corresponds to point 1 and service 1. In this case, the dome camera starts service 1 and switches its own point Adjust to point 1 to collect the first image, and within the monitoring duration corresponding to scene 1, that is, 9:00AM-9:10AM, the dome camera will process the first image collected at point 1 for service 1.
- the multiple services can be performed on the second image at the same time, or the second image can be sequentially performed on the second image.
- Each of the multiple services is not specifically limited in this application. For example, if 9:00AM-9:10AM corresponds to scene 1, assuming that scene 1 is bound to point 1, service 1 and service 2, after the scene image is collected on point 1, the scene image can be used for services at the same time
- the detection corresponding to 1 and the detection corresponding to service 2 can also be performed on the scene image first, and then the detection corresponding to service 2 can be performed. : 05AM-9:10AM for the detection of service 1.
- the service module receives the first instruction sent by the scene management module, the first instruction includes the identifier of the second service, and the cruise module receives the second point sent by the scene management module. bit, the service module starts the second service according to the identifier of the second service in the first instruction, and the cruise module switches the dome camera from the first point at the last moment to the second point.
- the last moment corresponds to the first scene, and the first scene is bound to the first point and the first service, in this case, the first service is closed, the second service is activated, and the slave The first point is switched to the second point to capture the second image.
- the ball machine may refer to the above-mentioned description of S203 for details.
- the embodiment of the present application does not specifically limit the execution order of the three of closing the first service, starting the second service, and switching from the first point to the second point. For example, it can be executed one by one. , can also be executed simultaneously.
- the current time is 9:10AM (scene switching time)
- the current time corresponds to Scene 2
- the previous time for example, 9:09AM
- the dome camera determines to switch the scene at the current moment, and the dome camera knows that scene 2 corresponds to point 2 and service 2 according to Table 2 and Table 3.
- the machine can turn off service 1, then turn on service 2, and adjust itself from point 1 to point 2 to collect a good image of the scene.
- the dome camera detects that the current moment is the moment to switch to the second scene, and the second The scene corresponds to the second point and the second service, but at the current moment the first image is being collected or the first service is being performed on the first image. In this case, the dome camera waits for the first image to finish processing before The first service is turned off, the second service is started, and the second image is collected by switching from the first point to the second point. It can be understood that this example corresponds to the second manner described above.
- the scene management module determines that the last moment corresponds to the first scene, and the scene management module determines that the first scene is bound to the first service and the first point based on the scene parameter information. Therefore, the second instruction is sent to the service module.
- the second instruction includes the identifier of the first service.
- the second instruction is used to instruct the service module to close the first service.
- the scene management module also sends the first point to the cruise module and sends it to the cruise module.
- the service module sends a first instruction, where the first instruction includes an identifier of the second service, and the first instruction is used to instruct the service module to start the second service.
- the service module closes the first service according to the second instruction, and after receiving the first instruction, starts the second service according to the first instruction, and switches the dome camera from the first The point is switched to the second point.
- the scenario parameter information also includes a priority corresponding to each scenario, the priority includes a detection priority and a non-detection priority, and the priority corresponding to each scenario represents the service corresponding to each scenario. priority.
- the dome camera determines that the last moment corresponds to the first scene, it also needs to determine whether the priority corresponding to the first scene is detection priority, and if it is determined that the priority corresponding to the first scene is detection priority , since the first scene is bound to the first point and the first service, it is also necessary to determine whether the target object or target event is detected after the first service is performed on the first image. Collected at a point.
- the first service is used to detect the target body, it only needs to judge whether the target body is detected in the second image; if the first service is used to detect the target event, it only needs to judge whether the target body is detected in the first image.
- the target event is detected; if the first service is used to detect the target body and the target event, it is necessary to determine whether the target body or the target event is detected in the first image.
- the dome camera does not detect the target body or the target event or the target body and the target event in the first image, execute the above S204; if the dome camera detects the target body or the target in the first image event, execute S206.
- the so-called ball camera does not detect the target body in the first image, including the following situations: (1) The first image only includes a single frame image, and the single frame image is executed. The first service is used for detection processing, and the target body is not detected; (2) the first image includes multiple frames of images, and the first service is performed on each frame of the multiple frames of images. A target body is detected; (3) the first image includes multiple frames of images, the first service is performed on each frame of the multiple frames of images, and no target body is detected in each of the multiple frames of images.
- the target event not detected in the first image, or the target object and target event not detected in the first image reference may be made to the above description about the target object not detected in the first image.
- the target body and the target event correspond to the business.
- the target body is a face
- the target body is a vehicle
- the target body is a vehicle
- the business is machine non-person detection, the target body is motor vehicles, non-motor vehicles and pedestrians
- the business is Vehicle illegal parking detection, the target event is vehicle illegal parking
- the business is vehicle collision detection, the target event is vehicle collision.
- the target body includes faces and vehicles.
- the services are illegal parking detection and face detection, the target body is a human face and the target event is a vehicle illegal parking.
- the ball machine when the ball machine detects that the current moment is the moment to switch to the second scene, and the second scene is bound to the second point and the second service, if the previous moment corresponds to the first scene, The first scenario is bound to the first point and the first service. If the priority of the first service is non-detection priority, the above S204 is executed, that is, the first service is turned off, the second service is started, and the switch from the first point to the first service is performed. A second image is acquired at the second point. It can be understood that this example corresponds to the case B in the first manner above.
- the priority settings of these multiple services can be the same, and the priority corresponding to the scenario is either detection priority or non-detection priority.
- the priority settings of the multiple services may also be different, and the priorities corresponding to the scenario include detection priority and non-detection priority.
- the above-mentioned condition of determining that the priority corresponding to the first scene is detection priority refers to determining that the priority corresponding to the first scene has detection priority.
- the first scene is bound to the first point and the first service. If a target object or a target event is detected in the first image collected at the first point, the first service is delayed and the first service is delayed and switched to the second scene, where the delayed switch to the second scene refers to delayed startup
- the second service and delay are switched from the first point to the second point to capture the second image.
- the closing of the first service may be delayed until no target body and/or target event is detected in the first image again collected by the dome camera at the first point. It can be understood that this example corresponds to the third manner described above.
- the moment when the dome camera switches to the second scene will also be delayed. If the current time reaches the stop time of a certain cruise time period and there is no corresponding scene at the current time, the running service of the dome camera will be closed, and the dome camera will stop working until the start time of the next cruise time period.
- Table 4 adds "priority" setting information on the basis of Table 3. It can be seen from Table 4 that the priority of service 1 is “detection priority”, and the priority of service 2 is “non-detection priority” . S205 and S206 are further described in conjunction with Table 2 and Table 4. If the current moment is the moment of switching to scene 2 at 9:10AM (scene switching moment), the previous moment (for example, 9:09AM) corresponding to scene 1 is detected, according to the table 4 Obtain the priority corresponding to scene 1 as detection priority, assuming that business 1 is face detection, that is, the target body is a face:
- the dome camera checks whether a face is detected in the first image collected at point 1 at the nearest time from 9:10AM to the current time. If the dome camera detects a face in the first image Face, in this case, the dome camera will not close service 1 for the time being, and the dome camera will continue to collect the first image at point 1 and perform face detection on the first image, assuming that the first image collected until 9:12AM In other words, from 9:10AM to 9:12AM, the dome camera has been located at point 1 to collect the first image, and the face detection is performed on the first image and the detection results are all detections.
- the dome can close service 1 at 9:12AM, start service 2, and remove the dome from the point. 1 is adjusted to point 2, that is to say, the dome camera is delayed until 9:12AM to switch from scene 1 to scene 2;
- the dome camera checks whether a human face is detected in the first image collected at point 1 at the nearest time of 9:10AM from the current time. If no human face is detected in the first image, then The dome camera can perform the scene switching operation at 9:10AM, that is, first close service 1, then open service 2, and adjust itself from point 1 to point 2 to collect the second image.
- the cruise time period is 9:00AM-10:00AM
- the sum of the monitoring duration (10min) corresponding to scenario 1 and the monitoring duration (20min) corresponding to scenario 2 is less than
- the duration (1h) corresponding to the cruise time period 9:00AM-10:00AM see (1) in Figure 6.
- Figure 6 (1) shows the time when scene switching occurs without delay within the cruise time period , that is, during 9:00AM-10:00AM, you can take turns cruising scene 1-scene 2-scene 1-scene 2, and the corresponding times are 9:00AM, 9:10AM, 9:30AM and 9:40AM in sequence.
- the form of subsequent scene switching is mainly implemented in the following two ways:
- the switching time of other scenes is automatically delayed, that is, the next scene switching
- the time changes from 9:30AM to 9:32AM. Since the priority corresponding to scene 2 is non-detection priority, it switches to scene 1 at 9:32AM; if there is no delay when switching from scene 1 to scene 2 for the second time, that is If it is 9:42AM, from 9:42AM, the dome camera is located at point 2.
- the monitoring time corresponding to scene 2 is 20min
- the stop time of the cruise time period 9:00AM-10:00AM is 10:00AM and 10:00AM.
- business 2 is closed at 10:00AM, and the dome camera stops working;
- S205 and S206 will be described in conjunction with each module in the camera in FIG. 1A , when the scene management module determines that the first scene corresponds to the last moment, it determines whether the priority corresponding to the first scene is detection priority, if the first scene corresponds to the first scene.
- the priority is non-detection priority, you can refer to the relevant description of the above S204, which will not be repeated here; if the priority corresponding to the first scene is detection priority, it is further judged that the first image collected at the first point is in the first image.
- the dome camera does not detect the target body or target event in the first image, you can refer to the relevant description of the above S204, which will not be repeated here; if it is determined that the target is detected in the first image. body or target event, then delay sending the second instruction to the service module, the second instruction is used to instruct the service module to close the first service, and delay sending the first instruction to the service module, the first instruction is used to instruct the service module to open the second service service and delay sending the second point to the cruise module.
- the dome camera executes the service corresponding to the scene on the scene image collected at the point corresponding to each scene, and after obtaining the detection result, can also send the detection result to the server for display.
- the time-division multiplexing of the ball camera can be realized, that is, the ball camera is located at different points at different times to perform different services.
- the ball machine can also perform different services at the same point at different times.
- the dome camera collects the first image at the first moment and performs the first service on the first image; the dome camera collects the second image at the second moment and performs the second service on the second image.
- the second time is different, and the first business and the second business are different. It should be noted that the dome camera is located at the same geographic location at the first moment and the second moment.
- the first service and the second service are both algorithms or programs for detecting target objects or target events in the monitoring environment.
- the first service includes at least one of the following services: face detection, face recognition, vehicle detection, illegal parking detection, speeding detection, intrusion detection, non-human detection, red light running detection, and driver's irregular driving detection (driver's hands off the steering wheel) , the driver is not wearing a seat belt in the cockpit, etc.), traffic accident detection (vehicle collision, vehicle collision, vehicle collision with public facilities, etc.), pedestrian fainting detection, car theft detection, etc.
- the second service also includes at least one of the above services. It should be noted that the first service is different from the second service.
- the first service may be face detection
- the second service may include face detection and vehicle detection
- the second service may be illegal parking detection.
- the dome camera before the dome camera collects the second image at the second moment, the dome camera needs to adjust its first shooting field of view at the first moment to the second shooting field of view at the second moment, in other words, Before the dome camera collects the second image at the second moment, it can adjust its own shooting field of view.
- the shooting field of view can also be called a point
- the shooting field of view of the dome camera can be adjusted by adjusting one or more of the following parameters of the PTZ of the dome camera: Pan Pan, Tilt Tilt and Zoom Zoom.
- Pan Pan Pan, Tilt Tilt and Zoom Zoom.
- the dome camera before the dome camera collects the first image at the first moment, the dome camera pre-receives the binding relationship between the first time period and the first service, and receives the binding relationship between the second time period and the second service in advance.
- a binding relationship wherein the first moment belongs to the first time period, and the second moment belongs to the second time period.
- first moment is any moment in the first period of time (including the start moment and the end moment of the first period of time), and the second moment is any moment in the second period of time (including the second period of time). start time and end time).
- the first time period and the second time period may be two adjacent time periods, or may be two spaced time periods, which are not specifically limited in this application.
- 8:00AM-8:20AM is bound with the first shooting field of view and the first service
- 8:30AM-8:40AM is bound with the second shooting field of view
- the second shooting field is the second shooting field
- the first time period and the second time period are the interval two time periods.
- 8:00AM-8:10AM is bound with the first shooting field of view and the first service
- 8:10AM-8:30AM is bound with the second shooting field of view and the second service after the configuration shown in Figure 3 above.
- 8:00AM-8:10AM is the first time period
- 8:10AM-8:30AM is the second time period.
- the first time period and the second time period are two adjacent time periods. a time period.
- the first time period and the second time period may also be two adjacent time periods within the same cruise time period.
- the first shooting field of view and the first business determine a scene
- the second The shooting field of view and the second service determine a scene. It can be understood that since the first time period corresponds to the first shooting field of view and the first service, and the second time period corresponds to the second shooting field of view and the second service, the scene corresponding to the first time period The scene corresponding to the second time period is different.
- the ball machine can also perform different services at the same point in time-sharing.
- the dome camera collects the first image with the first shooting field of view at the first moment, and performs the first service on the first image; the dome camera collects the third image with the first shooting field of view at the second moment, and performs the third image Execute the second service, the first moment is different from the second moment, and the first service and the third service are different.
- the first image and the third image correspond to the same shooting field of view, but the first image and the third image correspond to different services.
- the scene is jointly determined by the shooting field of view and the service
- the first time period corresponds to The scene is different from the scene corresponding to the second time period. It realizes that the ball machine performs different services at the same point in time-sharing, improves the utilization rate of the ball machine, and reduces the waste of hardware resources in a complex environment.
- the adjustment of the dome camera from the first shooting field of view at the first moment to the second shooting field of view at the second moment may be triggered unconditionally.
- the dome camera detects that the current moment is the scene switching time, it enters the step of adjusting the shooting field of view of the dome camera, that is, adjusting at least one of the three parameters of the dome camera's pan/tilt.
- the related descriptions of S203 and S204 in the embodiment of FIG. 5 that is, it is equivalent to switching the dome camera from the second point to the first point.
- details are not repeated here.
- trigger conditions may also be set for the dome camera to adjust its own shooting field of view. Before the dome camera collects the second image at the second moment, the dome camera receives the instruction to adjust the field of view, and the dome camera continues to capture the first image with the first shooting field of view. Vision steps.
- the scene management module of the dome camera receives the command sent by the cruise module to adjust the field of view at the scene switching time, and the scene management module detects that the first image is currently being captured with the first shooting field of view or The first image collected with the first shooting field of view is in the process of performing business processing.
- the dome camera will enter the step of adjusting the shooting field of view.
- the first shooting field of view at the first moment is adjusted to the second shooting field of view at the second moment, that is, the scene management module sends the relevant parameter information of the second shooting field of view to the cruise module.
- the scene switching module of the dome camera receives the command to adjust the field of view sent by the cruise module at the scene switching moment, and the scene switching module detects that the priority of the first service is detection priority and detects a target or target in the first image. event, in this case, the dome camera continues to collect the first image with the first shooting field of view and executes the first service on the first image until the target object and target event are no longer detected in the collected first image, which is equivalent to the first
- the dome camera enters the step of adjusting its own shooting field of view, that is, adjusting the first shooting field of view at the first moment to the second shooting field of view at the second moment.
- the identifier of the second service may be obtained by the dome camera from the server.
- the dome camera can also send a switching request to the server, and the switching request can carry an instruction indicating the second time period
- the server receives the switching request and searches the pre-stored configuration information from the pre-stored configuration information according to the switching request.
- the server sends the switching request to the dome camera.
- the switching request response includes the identification of the second service, or the switching request response includes the identification of the second service and the second shooting field of view, so that the dome camera adjusts according to the second shooting field of view in the switching request response.
- the configuration information of the dome machine is pre-stored in the dome machine, and the dome machine itself can directly acquire the identifier of the second service from the memory.
- the dome camera stores a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the mapping relationship between the first time period and the identifier of the first service, and the second mapping relationship is the second time period and the mapping relationship between the identifier of the second service.
- the first mapping relationship further includes a mapping relationship between the first time period and the first shooting field of view
- the second mapping relationship further includes a mapping relationship between the second time period and the second shooting field of view.
- the dome camera determines that it needs to adjust the shooting field of view
- the dome camera searches for the second shooting field of view corresponding to the second time period and the identification of the second service according to the second time period, and never adjusts its own shooting field of view to the second shooting field of view and according to The identification of the second service activates the second service.
- the dome camera realizes switching of different scenarios according to the pre-stored configuration information and performs the business processing corresponding to the scene on the scene image collected at the corresponding point of each scene, in other words, It is realized that the ball machine is located at different points at different times to perform different services, or at the same point at different times to perform different services or perform different services at a certain point, which improves the use efficiency of the ball machine and realizes the best possible use of the ball machine.
- FIG. 7 shows yet another imaging method provided by an embodiment of the present application.
- the difference from the embodiment of FIG. 5 is that the identification of the second service and the second shooting field of view in the imaging method shown in FIG. 7 are obtained by the dome camera from the server, and the embodiment of FIG. 7 requires the dome camera and the server to interact and participate,
- the embodiment of FIG. 5 may only be executed by one side of the dome camera.
- the embodiment in FIG. 7 may be independent of the embodiment in FIG. 5 , or may be a supplement to the embodiment in FIG. 5 .
- the method includes but is not limited to the following steps:
- the dome camera acquires cruise time information.
- the dome machine after the dome machine is powered on, the dome machine obtains cruising time information, and the cruising time information includes the identifiers of the multiple scenes the dome machine is to cruise and the cruising time period corresponding to each scene.
- the cruise time information when a certain cruise time period corresponds to multiple scenarios, the cruise time information further includes the monitoring duration corresponding to each scenario and the cruise sequence corresponding to each scenario. It should be noted that the so-called acquisition of cruising time information can be the cruising time sent by the dome camera receiving the server, or the dome camera fetching pre-stored cruising time information from its own memory.
- the dome camera detects that the current time is the time to switch to the second scene, and determines whether the scene switching condition is satisfied at the current time.
- the ball camera is located at the first point at the last moment of the current moment (referred to as the last moment), and the last moment is any moment within the preset time interval before the current moment.
- the dome camera detects that the current moment is the moment to switch to the second scene based on the cruise time information. In this case, the dome camera needs to determine whether the current moment satisfies the scene switching condition. If the current moment satisfies the scene switching condition, execute S303; If the time does not satisfy the scene switching condition, execute S307.
- the scene switching condition can be any of the following:
- the first moment does not belong to any cruise time period in the cruise time information. Therefore, there is no corresponding scene at the first moment, that is, the dome camera stops working at the first moment.
- Condition B The dome camera collected the first image at the first point at the last moment and processed the first service for the first image, and the priority corresponding to the first service is non-detection priority.
- the last moment belongs to a certain cruise time period in the cruise time information, and the last moment corresponds to the first scene, and the first scene is bound to the first point and the first service.
- Condition C The dome camera collected the first image at the first point at the last moment and processed the first service for the first image.
- the priority corresponding to the first service is detection priority, but no target is detected in the first image. body or target event.
- the dome camera is judged whether it satisfies any one of the above three conditions (ie, condition A, condition B and condition C). If satisfied, execute S307.
- the dome camera sends a scene switching request to the server.
- the dome camera when it is determined that the dome camera satisfies the scene switching condition, the dome camera sends a scene switching request to the server to obtain the identifier of the second point and the second service corresponding to the second scene.
- the scene switching request carries the identifier of the second scene.
- the server receives the scene switching request sent by the dome camera.
- the scene switching request is further used to obtain the priority corresponding to the second scene from the server.
- the priority For the description of the priority, reference may be made to the relevant description in the above-mentioned embodiment in FIG. 5 , which will not be repeated here.
- S304 The server determines, according to the identifier of the second scenario, the identifier of the second point and the second service corresponding to the second scenario.
- the server after receiving the scene switching request sent by the dome camera, the server searches the scene parameter information for the second point corresponding to the second scene and the information of the second service according to the identifier of the second scene in the scene switching request. logo.
- the scene parameter information is pre-stored in the server, and the scene parameter information includes a point corresponding to each scene in the multiple scenes to be cruised and a service bound to each scene.
- the scene parameter information may further include a priority corresponding to each scene. It should be noted that the scene parameter information and the above cruise time information may be included in one piece of information, for example, the cruise configuration information, or may be two separate pieces of information, which are not specifically limited in this application.
- the cruise time information and scene parameter information may be automatically stored in the server after the user completes the cruise task configuration of the dome camera on the user interface provided by the server in advance.
- the server sends the first information to the ball machine.
- the server after obtaining the identifiers of the second point and the second service, the server sends the first information to the dome camera, where the first information includes the identifiers of the second point and the second service.
- the ball machine receives the first information sent by the server.
- the first information sent by the server to the ball machine further includes the priority corresponding to the second scene.
- the priority corresponding to the second scenario may be included in the same message together with the identifier of the second point and the second service.
- the first message may also belong to two messages. This application does not Specific restrictions.
- the dome camera performs a scene switching operation.
- the dome camera when the dome camera determines that it meets the scene switching conditions at the current moment, after the dome camera receives the first information sent by the server, the dome camera can use the second point in the first information at the current moment.
- the bit and the identity of the second service perform scene switching.
- the so-called scene switching performed by the dome camera at the current moment means: starting the second service according to the identifier of the second service, and switching the dome camera from the first point to the second A second image was acquired at two points.
- the so-called scene switching performed by the dome camera at the current moment means: closing the first service, starting the second service according to the second service identifier, And, the dome camera switches from the first point to the second point to collect the second image.
- the dome camera delays performing S303 until no target body or target event is detected in the first image collected at the first point at the target moment.
- the dome camera determines that it does not meet the scene switching conditions at the current moment, that is, the dome camera does not meet the three conditions described in S302 at the current moment, it means that the dome camera is at the first point at the current moment.
- the dome camera continues to collect the first image at the first point and detects whether the above-mentioned target or target event still exists in the first image.
- the dome camera delays sending a scene switching request to the server until the dome camera does not detect a target object or target event in the first image collected at the first point at the target time, where the target time is later than the current time (that is, a certain scene switching time).
- the dome camera if the dome camera no longer detects the target object or the target event in the first image collected at the second point at the target moment, the dome camera sends a scene switching request to the server at the target moment, and accordingly, the dome camera sends a scene switching request to the server at the target moment.
- the camera also performs scene switching at the target time, that is, the first service is turned off, the second service is activated according to the identifier of the second service, and the dome camera switches from the first point to the second point to collect the second image.
- the delay between when the dome camera sends a scene switching request to the server and when the dome camera receives the first information sent by the server is negligible.
- the dome camera executes the service corresponding to the scene on the scene image collected at the point corresponding to each scene, and after obtaining the detection result, can also send the detection result to the server for display.
- the cruise module in the dome camera obtains the cruise time information from the server, and the cruise module detects the current time based on the cruise time information to switch to the second
- the cruise module detects the current time based on the cruise time information to switch to the second
- the cruise module determines whether the current moment satisfies the scene switching condition, that is, whether any one of the conditions described in S302 is met.
- the cruise module determines that the current moment meets the scene switching condition
- the cruise module sends a scene switching request to the server, and the scene switching request includes the identifier of the second scene.
- the scene management module of the server responds to the scene.
- the scene management module searches the scene parameter information for the second point corresponding to the second scene, the identification of the second service, and the priority of the second service according to the identification of the second scene, and then the scene management module sends a message to the dome camera.
- the second point, the identifier of the second service, and the priority of the second service After receiving the identification of the second service sent by the server, the service management module of the ball camera closes the first service (when the service corresponding to the first scene is turned on) and opens the second service. Adjust the position to the second point. If the cruise module determines that the scene switching condition is not met at the current moment, it delays sending a scene switching request to the server until it is determined that no target object or target event is detected in the first image collected at the first point at the target moment.
- the process of judging whether the scene switching conditions are met and the business processing process all take place inside the dome camera.
- the dome camera determines that it meets the scene switching conditions, it sends a scene switching request to the server to obtain the target scene.
- the judging process of whether the scene switching condition is satisfied may also be performed by the server.
- the dome camera obtains the cruise time information from the server, and based on the cruise time information, it detects that the current time is the moment to switch to the second scene, the dome camera was at the first point at the previous moment, and the dome camera sends the first request to the server,
- the first request includes the identifier of the second scene.
- the server After the server receives the first request, it determines whether the dome camera satisfies the scene switching conditions at the current moment, that is, whether it satisfies any one of the conditions described in S302. For details, please refer to S302. Relevant descriptions are not repeated here.
- the dome camera when the dome camera is located at each point, the dome camera will send the scene image collected at each moment at the point and the detection result of the scene image to the server, so the server can be based on the detection result of the scene image. Judging whether a target object or target event is detected in the scene image, if the server determines that the dome camera satisfies the scene switching condition at the current moment, in response to the first request, it sends first information to the dome camera, and the first information includes the corresponding data of the second scene. The second point, the identifier of the second service and the priority of the second service, the dome camera performs scene switching at the current moment according to the received first information. For the specific process of scene switching, please refer to the relevant description of the above S305. Repeat. If the server determines that the dome camera does not meet the scene switching conditions at the current moment, it delays responding to the first request until it is determined that no target object or target event is detected in the first image collected by the dome camera at the first point at the target moment.
- the dome camera obtains from the server the identifier of each scene in the multiple scenes to be cruised and the cruise time period corresponding to each scene to switch between different scenes, wherein each scene is associated with one scene.
- the point is bound to at least one business, so as to meet different business needs in different scenarios or multiple business needs in the same scene with as few domes as possible, improve the use efficiency of domes, and effectively reduce the use of domes. deployment cost.
- FIG. 8 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.
- the apparatus 30 includes at least a processor 301, a memory 302, a communication interface 303, an input/output interface 304, an input/output device 305 and a bus 300, wherein the memory 302, the input/output interface 304, the input/output interface
- the devices 305 are connected to the processor 301 through the bus 300, respectively.
- Device 30 may be the server in FIG. 1A.
- the bus 300 is used to transmit information between the components of the device 30 , and the bus 300 may use a wired connection manner or a wireless connection manner, which is not limited in this application.
- the processor 301 may be composed of one or more general-purpose processors, such as a central processing unit (Central Processing Unit, CPU), or a combination of a CPU and a hardware chip.
- the above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof.
- the above-mentioned PLD can be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a field programmable gate array (Field-Programmable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.
- the apparatus 30 may also be the server in FIG. 1B .
- the processor 301 is further configured to determine whether the dome camera satisfies the scene switching condition at the current moment.
- the memory 302 may include a volatile memory (Volatile Memory), such as a random access memory (Random Access Memory, RAM); the memory 302 may also include a non-volatile memory (Non-Volatile Memory), such as a read-only memory (Read- Only Memory (ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); the memory 302 may also include a combination of the above types.
- the memory 302 may store programs and data, wherein the stored programs include cruise configuration programs, and the like, and the stored data include cruise time information, scene parameter information, scene images, and the like.
- the memory 302 may exist alone, or may be integrated inside the processor 301 .
- the program stored in the memory 302 further includes a program for judging whether the scene switching condition is satisfied.
- the communication interface 303 uses a transceiver device such as but not limited to a transceiver to realize the communication with the camera 40 shown in FIG. 9 .
- the communication interface 303 can be interconnected with the camera 40 in a wired or wireless form, and can be used to send the camera to the camera 40 .
- 40 Send cruise time information, or cruise time information and scene parameter information.
- the communication interface 303 is further configured to receive a scene switching request sent by the camera 40 and send first information to the camera 40 , where the first information includes the second point corresponding to the second scene (ie, the first 2 shooting field of view), the identification of the second service, and the priority of the second service.
- the input/output interface 304 is connected to the input/output device 305 for receiving input information and outputting the operation result.
- the input/output device can be a mouse, a keyboard, a display screen, etc., wherein the display screen is used to display the configuration user interface of the dome camera, so that the user can complete the cruise configuration of the dome camera through the mouse, keyboard, etc.
- the display screen may also be a touch display screen, which is not specifically limited in this application.
- FIG. 8 is only an example of an apparatus 30, and the apparatus 30 may include more or less components than those shown in FIG. 8, or have different configurations of the components. Meanwhile, various components shown in FIG. 8 may be implemented in hardware, software, or a combination of hardware and software.
- the apparatus 30 is configured to implement the method described in the foregoing embodiment in FIG. 2 and the server-side method described in the embodiment in FIG. 7 .
- FIG. 9 is a schematic structural diagram of a camera provided by an embodiment of the present application.
- the camera 40 includes at least a lens 400 , a sensor 401 , a processor 402 and a pan/tilt 403 , wherein the lens 400 , the sensor 401 , and the pan/tilt 403 are respectively connected to the processor 402 , and the pan/tilt 403 is also connected to the lens.
- the camera 40 may be the camera in FIG. 1A or FIG. 1B .
- the lens 400 is used to collect light, and image the external scene on the sensor 401.
- the lens 400 may be threaded, and usually consists of a set of lenses and a diaphragm.
- the lens 400 may be a standard lens, a telephoto lens, a variable magnification lens or a variable focus lens, etc.
- the material of the lens 400 may be glass or plastic, which is not specifically limited in this application.
- the sensor 401 is used to perform photoelectric conversion on the light collected by the lens 400, specifically, perform photoelectric conversion on the first light collected at the first moment to generate a first image, and perform photoelectric conversion on the second light collected at the second moment. Photoelectric conversion generates a second image.
- the sensor 401 may be an image sensor, such as a charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
- CCD charge coupled device
- CMOS complementary metal oxide semiconductor
- the processor 402 is configured to execute the first service on the first image and execute the second service on the second image.
- the processor 402 may be composed of one or more general-purpose processors, such as a central processing unit (Central Processing Unit, CPU), or a combination of a CPU and a hardware chip.
- the above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof.
- the above-mentioned PLD can be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a field programmable gate array (Field-Programmable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.
- CPLD Complex Programmable Logic Device
- FPGA Field-Programmable Gate Array
- GAL General array logic
- the pan/tilt 403 is used for adjusting the shooting field of view of the camera 40 , that is, adjusting the first shooting field of view corresponding to the first moment to the second shooting field of view corresponding to the second moment.
- FIG. 9 is only an example of a camera 40, and the camera 40 may contain more or less components than those shown in FIG. 9, or have a different arrangement of components. Meanwhile, various components shown in FIG. 9 may be implemented in hardware, software, or a combination of hardware and software.
- the camera 40 is used to implement the method described in the embodiment of FIG. 5 and the method described in the embodiment of FIG. 7 on the dome side.
- FIG. 10 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application.
- the apparatus 31 includes a collection unit 310 and a processing unit 311 .
- the device 31 may be implemented by hardware, software or a combination of software and hardware.
- the acquisition unit 310 is configured to acquire the first image at the first moment, and the processing unit 311 is configured to perform the first service on the first image; the acquisition unit 310 is further configured to acquire the second image at the second moment, and the processing unit 311 It is also used to execute a second service on the second image, the first moment is different from the second moment, and the first service is different from the second service.
- Each functional module of the apparatus 31 can be used to implement the method described in the embodiment of FIG. 5 .
- the collection unit 310 can be used to execute S203 and S204, and the processing unit 311 can be used to execute S201-S206.
- Each functional module of the device 31 can also be used to implement the method described in the embodiment of FIG. 7 , which is not repeated here for the sake of brevity of the description.
- FIG. 11 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application.
- the apparatus 41 includes a configuration unit 410 and a sending unit 411 .
- the apparatus 41 further includes a receiving unit 412 .
- the device 41 can be implemented by hardware, software or a combination of software and hardware.
- the configuration unit 410 is used for setting the first time period, and the first time period is bound with the first shooting field of view and the first service; the configuration unit 410 is also used for setting the configuration unit, and is also used for the second time period, Bind the second time period with the second shooting field of view and the second service; the sending unit 411 is configured to send configuration information to the camera, where the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the first mapping relationship.
- a mapping relationship between the time period and the identifier of the first service, and the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service.
- the receiving unit 412 is configured to receive the cruising time period input through the user interface, and divide the cruising time period into a plurality of time periods, the plurality of time periods include a first time period and a second time period, and a plurality of time periods.
- the time periods further include: alternately performing time periods in which services corresponding to the first time period and the second time period are performed according to the length of the first time period and the length of the second time period.
- Each functional module of the apparatus 41 can be used to implement the method described in the embodiment of FIG. 2 .
- the configuration unit 410 may be used to perform S101 and S102.
- the storage medium includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory ( Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
- Read-Only Memory Read-Only Memory
- RAM Random Access Memory
- PROM Programmable Read-only Memory
- PROM Programmable Read-only Memory
- EPROM Erasable Programmable Read Only Memory
- OTPROM One-time Programmable Read-Only Memory
- EEPROM Electronically-Erasable Programmable Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
- the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution.
- the computer software product is stored in a storage medium, including a number of instructions for So that a device (which may be a personal computer, a server, or a network device, a robot, a single-chip microcomputer, a chip, a robot, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
A photographic method and apparatus, the method comprising: a single camera adjusting different poses at different moments and executing different services, such that the camera executes a plurality of different services in a time-sharing mode at different point locations in a complex scene.
Description
本申请要求于2021年01月28日提交的申请号为202110120236.9、发明名称为“一种摄像方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number of 202110120236.9 and the invention titled "A camera method and device" filed on January 28, 2021, the entire contents of which are incorporated into this application by reference.
本申请涉及摄像机领域,尤其涉及一种摄像方法及装置。The present application relates to the field of cameras, and in particular, to a camera method and device.
随着物联网、人工智能等技术的发展,智能安防在小区安防、平安城市、智慧城市等领域被广泛应用。在智能安防中,球机有着不可替代的作用,球机指可转动的球形摄像机,球机通常被安装在街道、园区等各类公共场所,且球机的安装场所不同,球机执行的业务也不同,常见的业务有:人脸检测、车辆检测、人员入侵检测、违停检测等。With the development of technologies such as the Internet of Things and artificial intelligence, smart security has been widely used in residential security, safe cities, smart cities and other fields. In intelligent security, the ball camera has an irreplaceable role. The ball camera refers to a rotatable spherical camera. The ball camera is usually installed in various public places such as streets and parks. It is also different. Common services include: face detection, vehicle detection, personnel intrusion detection, illegal parking detection, etc.
通常情况下,球机的巡航设置使得一个球机在有效时间段内轮流在不同点位(其对应着不同的场景)执行同一业务以完成巡航任务,然而当某一场景下有多种业务需求或者不同场景下有不同的业务需求时,在此情况下,需要部署多个球机且使不同的球机执行不同的业务以满足某一场景下的多种业务需求或不同场景下的不同业务需求,消耗的硬件成本高、资源的利用率低。Normally, the cruise setting of the dome camera makes a dome camera take turns to perform the same business at different points (corresponding to different scenarios) within the valid time period to complete the cruise task. However, when there are multiple business requirements in a certain scenario Or when there are different business requirements in different scenarios, in this case, it is necessary to deploy multiple dome cameras and make different dome cameras perform different services to meet various business needs in a certain scenario or different services in different scenarios. demand, high hardware cost and low resource utilization.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种摄像方法及装置,能够实现复杂场景下摄像机分时、分点位执行多种不同的业务,提升了摄像机的利用率,减少了复杂场景下资源的浪费。The embodiment of the present application discloses a camera method and device, which can realize the time-sharing and point-by-point execution of various services by the camera in a complex scene, improve the utilization rate of the camera, and reduce the waste of resources in the complex scene.
第一方面,本申请实施例提供了一种摄像方法,应用于摄像机,该方法包括:摄像机在第一时刻采集第一图像,并对第一图像执行第一业务;摄像机在第二时刻采集第二图像,并对第二图像执行第二业务,第二时刻与第一时刻不同,第一业务和第二业务不同。In a first aspect, an embodiment of the present application provides a camera method, which is applied to a camera. The method includes: the camera collects a first image at a first moment, and performs a first service on the first image; and the camera collects a first image at a second moment. two images, and perform a second service on the second image, the second moment is different from the first moment, and the first service and the second service are different.
上述方法中,摄像机可对第一时刻采集到的第一图像执行第一业务,也可以对第二时刻时刻采集到的第二图像执行第二业务,由此实现了摄像机在复杂场景下分时地执行多种不同的业务,提高了摄像机的利用率,有效了减少了复杂场景下资源的浪费。In the above method, the camera can perform the first service on the first image collected at the first moment, and can also perform the second service on the second image collected at the second moment, thereby realizing the time-sharing of the camera in a complex scene. It can perform a variety of different services, improve the utilization rate of cameras, and effectively reduce the waste of resources in complex scenarios.
在第一方面的一种可能的实现方式中,在摄像机在第二时刻采集第二图像之前,该方法还包括:将摄像机在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野。In a possible implementation manner of the first aspect, before the camera captures the second image at the second moment, the method further includes: adjusting the first shooting field of view of the camera at the first moment to the second image at the second moment Shoot the field of view.
实施上述实现方式,摄像机在第一时刻以第一拍摄视野采集第一图像,在第二时刻以第二拍摄视野采集第二图像,由此实现了摄像机在复杂场景下分时、分点位地执行多种不同的业务,提高了摄像机的利用率,有效了减少了复杂场景下资源的浪费。Implementing the above implementation manner, the camera captures the first image with the first shooting field of view at the first moment, and captures the second image with the second shooting field of view at the second moment. Execute a variety of different services, improve the utilization rate of cameras, and effectively reduce the waste of resources in complex scenarios.
在第一方面的一种可能的实现方式中,可以通过调整摄像机的云台下述参数中的一个或者多个,调整摄像机的拍摄视野:平移Pan、倾斜Tilt和缩放Zoom,从而使得摄像机从第一时刻的第一拍摄视野调整为第二时刻的第二拍摄视野。In a possible implementation manner of the first aspect, the shooting field of view of the camera can be adjusted by adjusting one or more of the following parameters of the pan/tilt of the camera: Pan Pan, Tilt Tilt, and Zoom Zoom, so that the camera can move from the first The first photographing field of view at one moment is adjusted to the second photographing field of view at the second moment.
实施上述实现方式,通过调整摄像机的平移Pan、倾斜Tilt和缩放Zoom这三个参数可以调整摄像机的拍摄视野(或者点位),以实现摄像机可以在不同时刻以不同的拍摄视野采集图像,有效提高了摄像机的使用率。By implementing the above implementation, the camera's shooting field of view (or point) can be adjusted by adjusting the three parameters of the camera's panning Pan, tilting Tilt and zooming Zoom, so that the camera can collect images with different shooting fields of view at different times, effectively improving the performance of the camera. camera usage.
在第一方面的一种可能的实现方式中,在摄像机在第二时刻采集第二图像之前,该方法还包括:接收调整视野的指令;继续以第一拍摄视野采集第一图像,当第一图像采集完毕时,进入调整摄像机的拍摄视野的步骤。In a possible implementation manner of the first aspect, before the camera captures the second image at the second moment, the method further includes: receiving an instruction to adjust the field of view; continuing to capture the first image with the first shooting field of view, when the first When the image acquisition is completed, enter the step of adjusting the shooting field of view of the camera.
实施上述实现方式,在接收到调整视野的指令后,摄像机可能正在拍摄第一图像或者正处于对第一图像执行第一业务的过程中,在此情况下,摄像机可以先等第一图像采集或者处理完毕后,再于第二时刻调整自己的拍摄视野。如此,提高了摄像机执行摄像流程的灵活性,实现了摄像机在复杂场景下的拍摄视野的动态切换。Implementing the above implementation manner, after receiving the instruction to adjust the field of view, the camera may be shooting the first image or in the process of performing the first service on the first image. In this case, the camera may first wait for the first image to be captured or After processing, adjust your shooting field of view at the second moment. In this way, the flexibility of the camera to perform the shooting process is improved, and the dynamic switching of the shooting field of view of the camera in a complex scene is realized.
在第一方面的一种可能的实现方式中,第一业务包括以下业务中的至少一个:人脸识别、车辆识别、机非人检测、违停检测、超速检测、闯红灯检测、入侵检测、行人晕倒检测、车辆碰撞检测、偷车检测和打架斗殴检测。In a possible implementation manner of the first aspect, the first service includes at least one of the following services: face recognition, vehicle recognition, non-human detection, parking violation detection, speeding detection, red light running detection, intrusion detection, pedestrian detection Faint detection, vehicle collision detection, car theft detection and fight detection.
实施上述实现方式,可以看出,摄像机可执行的业务种类繁多、功能丰富,有利于提高摄像机的使用率以及满足不同场景下的业务需求。By implementing the above implementation manner, it can be seen that the cameras can perform various services and rich functions, which is beneficial to improve the usage rate of the cameras and meet the service requirements in different scenarios.
在第一方面的一种可能的实现方式中,在摄像机在第二时刻采集第二图像,并对第二图像执行第二业务之前,该方法还包括:向服务器发送切换请求;接收服务器发送的切换请求响应,切换请求响应包括第二业务的标识,或者,切换请求响应包括第二业务的标识和第二拍摄视野,第二业务的标识、所述第二拍摄视野分别与第二时刻对应。In a possible implementation manner of the first aspect, before the camera captures the second image at the second moment and performs the second service on the second image, the method further includes: sending a switching request to the server; The handover request response includes the identifier of the second service, or the switch request response includes the identifier of the second service and the second shooting field of view, and the identifier of the second service and the second shooting field of view correspond to the second moment respectively.
实施上述实现方式,将与第二时间段、第二业务的标识、第一时间段、第一拍摄视野等相关的映射关系存储于服务器中,使得摄像机在需要调整视野时,向服务器发送切换请求以获取相应的业务的标识或拍摄视野的参数,有效节省了摄像机内部的存储资源。Implement the above implementation manner, and store the mapping relationship related to the second time period, the identifier of the second service, the first time period, the first shooting field of view, etc. in the server, so that the camera sends a switching request to the server when the field of view needs to be adjusted. In order to obtain the identification of the corresponding service or the parameters of the shooting field of view, the storage resources inside the camera are effectively saved.
在第一方面的一种可能的实现方式中,摄像机在第一时刻采集第一图像之前,该方法还包括:接收第一时间段和第一业务的绑定关系,其中,第一时刻属于第一时间段;接收第二时间段和第二业务的绑定关系,其中,第二时刻属于第二时间段。In a possible implementation manner of the first aspect, before the camera captures the first image at the first moment, the method further includes: receiving a binding relationship between the first time period and the first service, wherein the first moment belongs to the first time A time period; receiving the binding relationship between the second time period and the second service, wherein the second moment belongs to the second time period.
在第一方面的一种可能的实现方式中,第一时间段和第一业务的标识的映射关系预先存储于摄像机,第二时间段和第二业务的标识的映射关系预先存储于摄像机。In a possible implementation manner of the first aspect, the mapping relationship between the first time period and the identifier of the first service is pre-stored in the camera, and the mapping relationship between the second time period and the identifier of the second service is pre-stored in the camera.
在第一方面的一种可能的实现方式中,第一时间段和第一拍摄视野的映射关系预先存储于摄像机,第二时间段和第二拍摄视野的映射关系预先存储于摄像机。In a possible implementation manner of the first aspect, the mapping relationship between the first time period and the first shooting field of view is pre-stored in the camera, and the mapping relationship between the second time period and the second shooting field of view is pre-stored in the camera.
实施上述实现方式,将第一时间段、第一拍摄视野和第一业务的标识之间的映射关系以及将第二时间段、第二拍摄视野和第二业务的标识之间的映射关系存储于摄像机中,有效节省了用于控制摄像机的指令的消耗,为服务器分担了部分存储压力。Implement the above-mentioned implementation manner, and store the mapping relationship between the first time period, the first shooting field of view and the identification of the first service and the mapping relationship between the second time period, the second shooting field of view and the identification of the second service in the In the camera, the consumption of the instructions for controlling the camera is effectively saved, and part of the storage pressure is shared for the server.
第二方面,本申请实施例提供了一种摄像机的配置方法,应用于服务器,该方法包括:设置第一时间段,将第一时间段与第一拍摄视野和第一业务绑定;设置第二时间段,将第二时间段与第二拍摄视野和第二业务绑定;向摄像机发送配置信息,配置信息包括第一映射关系和第二映射关系,其中,第一映射关系为第一时间段和第一业务的标识之间的映射关系,第二映射关系为第二时间段和第二业务的标识之间的映射关系。In a second aspect, an embodiment of the present application provides a method for configuring a camera, which is applied to a server. The method includes: setting a first time period, binding the first time period with a first shooting field of view and a first service; setting a first time period Two time periods, binding the second time period with the second shooting field of view and the second service; sending configuration information to the camera, where the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the first time The mapping relationship between the segment and the identifier of the first service, and the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service.
上述方法中,通过设置时间段以及该时间段对应的业务,使得摄像机在不同时刻对应的业务、拍摄视野(或者称为点位)不同,由此实现了摄像机分时、分点位地执行不同的业务,有利于提高摄像机的利用率、减少复杂场景下硬件资源的浪费。In the above method, by setting the time period and the service corresponding to the time period, the service and shooting field of view (or called the point position) corresponding to the camera at different times are different, thereby realizing the different time-sharing and point-by-point execution of the camera. It is beneficial to improve the utilization rate of cameras and reduce the waste of hardware resources in complex scenarios.
在第二方面的一种可能的实现方式中,第一映射关系还包括:第一时间段和第一拍摄视野的映射关系;第二映射关系还包括:第二时间段和第二拍摄视野的映射关系。In a possible implementation manner of the second aspect, the first mapping relationship further includes: a mapping relationship between the first time period and the first shooting field of view; the second mapping relationship further includes: a mapping relationship between the second time period and the second shooting field of view Mapping relations.
实施上述实现方式,第一映射关系为第一时间段、第一业务的标识和第一拍摄视野之间的映射关系,第二映射关系为第二时间段、第二业务的标识和第二拍摄视野之间的映射关系。需要说明的是,业务和拍摄视野决定场景,也就是说,第一时间段和第二时间段对应不同的场景。Implement the above implementation manner, the first mapping relationship is the mapping relationship between the first time period, the identification of the first business and the first shooting field of view, and the second mapping relationship is the second time period, the identification of the second business and the second shooting The mapping relationship between fields of view. It should be noted that the business and the shooting field of view determine the scene, that is, the first time period and the second time period correspond to different scenes.
在第二方面的一种可能的实现方式中,该方法还包括:接收通过用户界面输入的巡航时 间段,把巡航时间段划分为多个时间段,多个时间段包括第一时间段和第二时间段,多个时间段还包括:交替按照第一时间段的长度、第二时间段的长度执行与第一时间段、第二时间段对应业务的时间段。In a possible implementation manner of the second aspect, the method further includes: receiving a cruising time period input through a user interface, and dividing the cruising time period into a plurality of time periods, the plurality of time periods including a first time period and a first time period Two time periods, the multiple time periods further include: alternately executing time periods corresponding to the first time period and the second time period according to the length of the first time period and the length of the second time period.
实施上述实现方式,仅在用户界面设置巡航时间段以及该巡航时间段内的第一时间段和第二时间段,即可实现在巡航时间段内交替轮流执行第一时间段对应的业务和第二时间段对应的业务,有利于节省摄像机的配置时间、提高摄像机的配置效率。其中,第一时间段和第二时间段对应不同的场景,且场景由业务和拍摄视野(或称为点位)决定。By implementing the above-mentioned implementation manner, only by setting the cruise time period and the first time period and the second time period within the cruise time period on the user interface, it is possible to alternately execute the business corresponding to the first time period and the second time period in the cruise time period. The services corresponding to the two time periods are beneficial to save camera configuration time and improve camera configuration efficiency. Wherein, the first time period and the second time period correspond to different scenes, and the scenes are determined by the business and the shooting field of view (or referred to as the point).
第三方面,本申请实施例提供了一种用于摄像的装置,该装置包括:采集单元,用于在第一时刻采集第一图像,处理单元用于对第一图像执行第一业务;采集单元,还用于在第二时刻采集第二图像,处理单元还用于对第二图像执行第二业务,第二时刻和第一时刻不同,第二业务和第一业务不同。In a third aspect, an embodiment of the present application provides a device for imaging, the device includes: a collection unit, configured to collect a first image at a first moment, and a processing unit configured to perform a first service on the first image; collecting The unit is further configured to collect a second image at the second moment, and the processing unit is further configured to perform a second service on the second image, the second moment is different from the first moment, and the second service is different from the first service.
在第三方面的一种可能的实现方式中,处理单元还用于:将摄像机在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野。In a possible implementation manner of the third aspect, the processing unit is further configured to: adjust the first shooting field of view of the camera at the first moment to the second shooting field of view at the second moment.
在第三方面的一种可能的实现方式中,处理单元具体用于:通过调整摄像机的云台下述参数中的一个或者多个,调整摄像机的拍摄视野:平移Pan、倾斜Tilt和缩放Zoom。In a possible implementation manner of the third aspect, the processing unit is specifically configured to adjust the shooting field of view of the camera by adjusting one or more of the following parameters of the pan/tilt of the camera: Pan Pan, Tilt Tilt, and Zoom Zoom.
在第三方面的一种可能的实现方式中,该装置还包括:接收单元,用于接收调整视野的指令;处理单元用于继续以第一拍摄视野采集第一图像,当第一图像采集完毕时,进入调整摄像机的拍摄视野的步骤。In a possible implementation manner of the third aspect, the device further includes: a receiving unit, configured to receive an instruction to adjust the field of view; the processing unit is configured to continue to collect the first image with the first shooting field of view, and when the first image collection is completed , go to the step of adjusting the camera's shooting field of view.
在第三方面的一种可能的实现方式中,第一业务包括以下业务中的至少一个:人脸识别、车辆识别、机非人检测、违停检测、超速检测、闯红灯检测、入侵检测、行人晕倒检测、车辆碰撞检测、偷车检测和打架斗殴检测。In a possible implementation manner of the third aspect, the first service includes at least one of the following services: face recognition, vehicle recognition, non-human detection, parking violation detection, speeding detection, red light running detection, intrusion detection, pedestrian detection Faint detection, vehicle collision detection, car theft detection and fight detection.
在第三方面的一种可能的实现方式中,该装置还包括:发送单元,用于向服务器发送切换请求;接收单元,还用于接收服务器发送的切换请求响应,其中,切换请求响应包括第二业务的标识;或者,切换请求响应包括第二业务的标识和第二拍摄视野,第二业务的标识、第二拍摄视野分别与第二时刻对应。In a possible implementation manner of the third aspect, the apparatus further includes: a sending unit, configured to send a handover request to the server; a receiving unit, further configured to receive a handover request response sent by the server, wherein the handover request response includes the first The identifier of the second service; or, the switching request response includes the identifier of the second service and the second shooting field of view, and the identifier of the second service and the second shooting field of view correspond to the second moment respectively.
第四方面,本申请实施例提供了一种用于摄像机配置的装置,该装置包括:配置单元,用于设置第一时间段,将第一时间段与第一拍摄视野和第一业务绑定;配置单元,还用于设置第二时间段,将第二时间段与第二拍摄视野和第二业务绑定;发送单元,用于向摄像机发送配置信息,配置信息包括第一映射关系和第二映射关系,其中,第一映射关系为第一时间段和第一业务的标识之间的映射关系,第二映射关系为第二时间段和第二业务的标识之间的映射关系。In a fourth aspect, an embodiment of the present application provides an apparatus for camera configuration, the apparatus includes: a configuration unit, configured to set a first time period, and bind the first time period with the first shooting field of view and the first service The configuration unit is also used to set the second time period, and bind the second time period with the second shooting field of view and the second service; the sending unit is used to send configuration information to the camera, and the configuration information includes the first mapping relationship and the first mapping relationship. Two mapping relationships, wherein the first mapping relationship is the mapping relationship between the first time period and the identifier of the first service, and the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service.
在第四方面的一种可能的实现方式中,第一映射关系还包括:第一时间段和第一拍摄视野的映射关系;第二映射关系还包括:第二时间段和第二拍摄视野的映射关系。In a possible implementation manner of the fourth aspect, the first mapping relationship further includes: a mapping relationship between the first time period and the first shooting field of view; the second mapping relationship further includes: a mapping relationship between the second time period and the second shooting field of view Mapping relations.
在第四方面的一种可能的实现方式中,接收单元还用于:接收通过用户界面输入的巡航时间段,把巡航时间段划分为多个时间段,多个时间段包括第一时间段和第二时间段,多个时间段还包括:交替按照第一时间段的长度、第二时间段的长度执行与第一时间段、第二时间段对应业务的时间段。In a possible implementation manner of the fourth aspect, the receiving unit is further configured to: receive a cruise time period input through a user interface, and divide the cruise time period into multiple time periods, where the multiple time periods include the first time period and The second time period, the plurality of time periods further include: alternately executing time periods corresponding to the first time period and the second time period according to the length of the first time period and the length of the second time period.
第五方面,本申请实施例提供了一种摄像机,该摄像机包括镜头、传感器和处理器,其中,镜头用于在第一时刻采集第一光线,传感器用于对第一光线进行光电转换生成第一图像;镜头还用于在第二时刻采集第二光线,传感器还用于对第二光线进行光电转换生成第二图像,第一时刻和第二时刻不同;处理器:用于对第一图像执行第一业务,以及对第二图像执行第 二业务,第一业务和第二业务不同。In a fifth aspect, an embodiment of the present application provides a camera, which includes a lens, a sensor, and a processor, wherein the lens is used to collect the first light at the first moment, and the sensor is used to perform photoelectric conversion on the first light to generate the first light. an image; the lens is also used to collect the second light at the second moment, and the sensor is also used to perform photoelectric conversion on the second light to generate a second image, the first moment and the second moment are different; processor: used for the first image A first service is performed, and a second service is performed on the second image, the first service and the second service being different.
在第五方面的一种可能的实施例中,所述摄像机还包括:云台,用于调整摄像机的拍摄视野,具体包括:把与第一时刻对应的第一拍摄视野调整为与第二时刻对应的第二拍摄视野。In a possible embodiment of the fifth aspect, the camera further includes: a pan/tilt head for adjusting the shooting field of view of the camera, specifically including: adjusting the first shooting field of view corresponding to the first moment to be the same as the second moment The corresponding second shooting field of view.
第六方面,本申请实施例提供了一种装置,该装置包括显示屏、处理器和通信模块,其中,显示屏用于显示用户界面,处理器用于接收用户操作在用户界面上配置摄像机,通信模块用于将摄像机的配置信息发送给摄像机。In a sixth aspect, an embodiment of the present application provides a device, the device includes a display screen, a processor, and a communication module, wherein the display screen is used to display a user interface, the processor is used to receive user operations, configure a camera on the user interface, and communicate The module is used to send the camera's configuration information to the camera.
第七方面,本申请实施例提供了一种计算机可读存储介质,计算机可读介质存储用于装置执行的程序代码,程序代码包括用于执行第一方面或者第一方面的任一可能的实现方式中的方法的指令。In a seventh aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable medium stores program codes for device execution, where the program codes include the first aspect or any possible implementation of the first aspect. A directive for a method in a method.
第八方面,本申请实施例提供了一种计算机可读存储介质,计算机可读介质存储用于装置执行的程序代码,程序代码包括用于执行第二方面或者第二方面的任一可能的实现方式中的方法的指令。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable medium stores program codes for execution by the apparatus, and the program codes include the second aspect or any possible implementation of the second aspect. A directive for a method in a method.
第九方面,本申请实施例提供了一种计算机软件产品,该计算机程序软件产品包括程序指令,当该计算机软件产品被装置执行时,该装置执行前述第一方面或者第一方面的任一可能的实施例中的方法。该计算机软件产品可以为一个软件安装包,在需要使用前述第一方面的任一种可能的设计提供的方法的情况下,可以下载该计算机软件产品并在装置上执行该计算机软件产品,以实现第一方面或者第一方面的任一可能的实施例中的方法。In a ninth aspect, an embodiment of the present application provides a computer software product. The computer program software product includes program instructions. When the computer software product is executed by a device, the device executes the first aspect or any possibility of the first aspect. method in the examples. The computer software product may be a software installation package, and if the method provided by any of the possible designs of the foregoing first aspect needs to be used, the computer software product may be downloaded and executed on the device to achieve The method in the first aspect or any possible embodiment of the first aspect.
第十方面,本申请实施例提供了一种计算机软件产品,该计算机程序软件产品包括程序指令,当该计算机软件产品被装置执行时,该装置执行前述第二方面或者第二方面的任一可能的实施例中的方法。该计算机软件产品可以为一个软件安装包,在需要使用前述第一方面的任一种可能的设计提供的方法的情况下,可以下载该计算机软件产品并在装置上执行该计算机软件产品,以实现第二方面或者第二方面的任一可能的实施例中的方法。In a tenth aspect, an embodiment of the present application provides a computer software product, the computer program software product includes program instructions, and when the computer software product is executed by a device, the device executes the second aspect or any possibility of the second aspect. method in the examples. The computer software product may be a software installation package, and if the method provided by any of the possible designs of the foregoing first aspect needs to be used, the computer software product may be downloaded and executed on the device to achieve The method of the second aspect or any possible embodiment of the second aspect.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1A是本申请实施例提供的一种系统架构示意图;1A is a schematic diagram of a system architecture provided by an embodiment of the present application;
图1B是本申请实施例提供的又一种系统架构示意图;FIG. 1B is a schematic diagram of another system architecture provided by an embodiment of the present application;
图2是本申请实施例提供的一种球机巡航配置方法的流程图;FIG. 2 is a flowchart of a method for configuring a dome cruiser according to an embodiment of the present application;
图3是本申请实施例提供的一种场景配置界面的示意图;3 is a schematic diagram of a scene configuration interface provided by an embodiment of the present application;
图4A是本申请实施例提供的一种巡航配置界面的示意图;4A is a schematic diagram of a cruise configuration interface provided by an embodiment of the present application;
图4B是本申请实施例提供的又一种巡航配置界面的示意图;4B is a schematic diagram of another cruise configuration interface provided by an embodiment of the present application;
图5是本申请实施例提供的一种摄像方法的流程图;5 is a flowchart of a camera method provided by an embodiment of the present application;
图6是本申请实施例提供的一种巡航时间表的示意图;6 is a schematic diagram of a cruise schedule provided by an embodiment of the present application;
图7是本申请本实施例提供的又一种摄像方法的流程图;7 is a flowchart of another imaging method provided by this embodiment of the present application;
图8是本申请本实施例提供的一种装置的结构示意图;FIG. 8 is a schematic structural diagram of a device provided in this embodiment of the present application;
图9是本申请本实施例提供的一种摄像机的结构示意图;FIG. 9 is a schematic structural diagram of a camera provided in this embodiment of the present application;
图10是本申请本实施例提供的又一种装置的功能结构示意图;FIG. 10 is a schematic functional structure diagram of another device provided in this embodiment of the present application;
图11是本申请本实施例提供的一种装置的功能结构示意图。FIG. 11 is a schematic functional structure diagram of an apparatus provided in this embodiment of the present application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。本申请实施例中的说明书和权利要求书中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The terms "first", "second" and the like in the description and the claims in the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order.
为了便于理解,下面先对本申请实施例可能涉及的相关术语等进行介绍。For ease of understanding, related terms and the like that may be involved in the embodiments of the present application are first introduced below.
(1)球机(1) Ball machine
球机也称作球形摄像机,它集成一体化摄像机(含变焦镜头)、云台、解码器、防护罩等多功能于一体,其中,云台也可以称作转台,是安装和固定摄像机的支撑设备,云台可以分为固定云台和电动云台,固定云台在调整好摄像机的水平角度和俯仰角度后会进行位置的锁定,因此,固定云台对应的监控范围固定且局限;电动云台可以通过程序或者键盘控制摄像机水平转动或垂直转动以改变监控范围,因此,电动云台对应的监控范围广阔且可改变。需要说明的是,本申请实施例中的球机选取的可转动的云台。The dome camera is also known as a spherical camera. It integrates an integrated camera (including a zoom lens), a PTZ, a decoder, a protective cover and other functions. Among them, the PTZ can also be called a turntable, which is the support for installing and fixing the camera. Equipment, the gimbal can be divided into fixed gimbal and electric gimbal. The fixed gimbal will lock the position after adjusting the horizontal angle and pitch angle of the camera. Therefore, the monitoring range corresponding to the fixed gimbal is fixed and limited; electric cloud The platform can control the camera to rotate horizontally or vertically through the program or keyboard to change the monitoring range. Therefore, the monitoring range corresponding to the electric PTZ is wide and changeable. It should be noted that the dome camera in the embodiment of the present application selects a rotatable pan/tilt.
在安防监控应用中,PTZ是Pan/Tilt/Zoom的简称,表示云台方位(水平/垂直)移动和镜头变倍变焦控制,简称云台控制。其中,Pan表示云台水平方向移动控制,Tilt表示云台垂直方向移动控制,Zoom表示镜头变倍变焦控制。In security monitoring applications, PTZ is the abbreviation of Pan/Tilt/Zoom, which means PTZ azimuth (horizontal/vertical) movement and lens zoom control, referred to as PTZ control. Among them, Pan represents the horizontal movement control of the PTZ, Tilt represents the vertical movement control of the PTZ, and Zoom represents the zoom control of the lens.
本发明实施例除了适用于球机,还适用于其他可以调整视野的摄像机,调整视野包括对摄像机水平视野调整、垂直视野调整或者镜头变倍调整,为了方便介绍,后文以球机进行举例。The embodiments of the present invention are not only applicable to the dome camera, but also applicable to other cameras that can adjust the field of view. Adjusting the field of view includes adjusting the horizontal field of view of the camera, adjusting the vertical field of view, or adjusting the zoom of the lens.
(2)点位(point)(2) point (point)
点位包括水平角度、俯仰角度和镜头的焦距中的一项或者多项。所谓对点位进行设置:其实质是指设置球机的PTZ参数,即设置在该点位上球机镜头的水平角度、俯仰角度和镜头的焦距三个参数中的至少一个,其中,水平角度与上述PTZ中的参数P(平移)对应,俯仰角度与上述PTZ中的参数T(倾斜)对应,镜头的焦距与上述PTZ中的参数Z(缩放)对应。一个球机可以设置多个点位,球机可以通过自身的云台实现点位的切换。需要说明的是,球机的一个点位表示一个拍摄视野,因此,切换球机的点位等同于调整球机的拍摄视野。The point position includes one or more of the horizontal angle, the tilt angle and the focal length of the lens. The so-called point position setting: its essence refers to setting the PTZ parameters of the dome camera, that is, setting at least one of the three parameters of the dome camera lens's horizontal angle, pitch angle and lens focal length at this point, among which, the horizontal angle Corresponds to the parameter P (translation) in the above PTZ, the pitch angle corresponds to the parameter T (tilt) in the above PTZ, and the focal length of the lens corresponds to the parameter Z (zoom) in the above PTZ. A dome camera can set multiple points, and the dome camera can switch points through its own PTZ. It should be noted that a point of the dome camera represents a shooting field of view. Therefore, switching the point of the dome camera is equivalent to adjusting the shooting field of the dome camera.
球机广泛应用于开阔区域的监控,球机的巡航设置通常是:为球机设置多个点位以及每个点位对应的巡航时间段,其中,每个点位对应一个场景,且多个点位与同一个业务(例如,人脸检测)绑定,从而球机可以分时、分点位的执行同一业务以完成巡航任务。例如,在某一园区内,为球机设置了三个点位,分别为:点位1、园区入口;点位2、园区内道路;点位3、园区围墙边缘。另外,设置点位1对应的巡航时间段位为8:00AM至9:30AM,点位2对应的时间段为10:00AM至17:00PM,点位3对应的时间段为19:00PM至22:00PM,且三个点位分别与人脸检测这个业务绑定,在设置完成后,该球机根据设置好的时间表依次在上述设置好的三个点位上采集图像并对图像执行人脸检测业务。The dome camera is widely used in the monitoring of open areas. The cruise setting of the dome camera is usually: setting multiple points for the dome camera and the cruise time period corresponding to each point, wherein each point corresponds to a scene, and multiple Points are bound to the same service (for example, face detection), so that the dome camera can perform the same service by time and by point to complete the cruise task. For example, in a certain park, three points are set for the ball machine, namely: point 1, the entrance of the park; point 2, the road in the park; point 3, the edge of the park wall. In addition, set the cruise time period corresponding to point 1 from 8:00AM to 9:30AM, the time period corresponding to point 2 from 10:00AM to 17:00PM, and the time period corresponding to point 3 from 19:00PM to 22: 00PM, and the three points are respectively bound to the face detection service. After the setting is completed, the dome camera will sequentially collect images at the three points set above according to the set schedule and perform face detection on the images. Inspection business.
但若用户需求为:在点位1(园区入口)处既执行人脸检测又执行车辆检测、点位2(园区内道路)处执行人脸检测、点位3(园区围墙边缘)处执行人脸检测,三个点位对应的时间段不变。在此情况下,则需要部署两个球机,其中球机2的巡航设置与上述相同,且为球机2设置点位1(园区入口)、对应的时间段仍为8:00AM至9:30AM且点位1与车辆检测这个业务绑定,以满足用户需求。However, if the user needs: perform both face detection and vehicle detection at point 1 (the entrance of the park), perform face detection at point 2 (the road in the park), and execute the human at point 3 (the edge of the park wall). For face detection, the time period corresponding to the three points remains unchanged. In this case, two domes need to be deployed. The cruise setting of dome 2 is the same as above, and point 1 (park entrance) is set for dome 2, and the corresponding time period is still from 8:00AM to 9: 30AM and point 1 is bound to the service of vehicle detection to meet user needs.
但若用户需求为:在点位1(园区入口)处执行人脸检测(8:00AM至9:30AM)、在点位2(园区内道路)处执行违停检测(10:00AM至17:00PM)、在点位3(园区围墙边缘)处执 行入侵检测(19:00PM至22:00PM)。在此情况下,则需要部署3个球机,其中,球机1用于负责点位1处的人脸检测,球机2用于负责点位2处的违停检测,球机3用于负责点位3处的入侵检测,以满足用户需求。由此可以看出,当某一场景下有多种业务需求或者不同场景下有不同的业务需求时,需要增加部署的球机数量以满足用户需求。尽管球机的使用数量增加,但每个球机的使用率低,不仅造成硬件成本的消耗增加,还造成了资源的浪费。However, if the user needs are: face detection at point 1 (entrance of the park) (8:00AM to 9:30AM), and illegal parking detection at point 2 (road in the park) (10:00AM to 17:00AM) 00PM), perform intrusion detection (19:00PM to 22:00PM) at point 3 (the edge of the campus wall). In this case, 3 domes need to be deployed. Dome 1 is used for face detection at point 1, dome 2 is responsible for illegal parking detection at point 2, and dome 3 is used for face detection at point 2. Responsible for intrusion detection at point 3 to meet user needs. It can be seen from this that when there are multiple business requirements in a certain scenario or different business requirements in different scenarios, it is necessary to increase the number of deployed domes to meet user needs. Although the number of domes used increases, the utilization rate of each dome is low, which not only increases hardware cost, but also wastes resources.
针对上述存在的问题,本申请实施例提供了一种球机巡航方法,能实现采用尽量少的球机满足同一场景下多种业务需求或不同场景下不同业务需求,不仅节省了硬件成本,还提升了资源的利用率。In view of the above-mentioned existing problems, the embodiments of the present application provide a dome camera cruise method, which can realize the use of as few domes as possible to meet various business requirements in the same scenario or different business requirements in different scenarios, which not only saves hardware costs, but also saves hardware costs. Improve resource utilization.
下面描述本申请实施例所提供的一种系统架构。参见图1A,图1A是本申请实施例提供的一种系统架构图。如图1A所示,该系统包括摄像机和服务器,其中,摄像机可以通过无线或者有线的方式与服务器进行通信。The following describes a system architecture provided by the embodiments of the present application. Referring to FIG. 1A , FIG. 1A is a system architecture diagram provided by an embodiment of the present application. As shown in FIG. 1A , the system includes a camera and a server, wherein the camera can communicate with the server in a wireless or wired manner.
服务器提供有用户界面,该用户界面可供用户预先对摄像机进行巡航任务配置,巡航任务配置具体包括:对待巡航的多个场景依次进行场景配置,以使每个场景绑定一个点位和至少一个业务;对每个场景进行巡航配置,以确定每个场景对应的巡航时间段以及每个场景对应的监控时长。可以理解,每个点位对应摄像机的一个拍摄视野(或称为监控视角)。在配置完成后,将已存储的场景参数信息和巡航时间信息发送给摄像机,其中,场景参数信息包括待巡航的多个场景中每个场景的标识、每个场景对应的点位和每个场景对应的业务标识,巡航时间信息包括巡航的多个场景中每个场景的标识、每个场景对应的巡航时间段和每个场景对应的监控时长。需要说明的是,在一些可能的实施例中,场景参数信息和巡航时间信息也可以合并为一条信息,例如,巡航配置信息,本申请不作具体限定。The server provides a user interface, which can be used by the user to configure the camera for cruise tasks in advance. The cruise task configuration specifically includes: configuring multiple scenes to be cruised in sequence, so that each scene is bound to a point and at least one Business: Perform cruise configuration for each scenario to determine the cruise time period corresponding to each scenario and the monitoring duration corresponding to each scenario. It can be understood that each point corresponds to a shooting field of view (or referred to as a monitoring field of view) of the camera. After the configuration is completed, the stored scene parameter information and cruise time information are sent to the camera, wherein the scene parameter information includes the identifier of each scene in the multiple scenes to be cruised, the point corresponding to each scene and each scene. Corresponding service identifier, the cruise time information includes the identifier of each scene in the multiple scenes of the cruise, the cruise time period corresponding to each scene, and the monitoring duration corresponding to each scene. It should be noted that, in some possible embodiments, the scene parameter information and the cruise time information may also be combined into one piece of information, for example, cruise configuration information, which is not specifically limited in this application.
一具体实施中,用户可以在服务器上直接访问摄像机对应的配置界面的网址,从而服务器的用户界面上显示摄像机的配置界面,在该配置界面上对摄像机进行相关配置后,相关的配置信息直接存储于摄像机本地。另一具体实施中,服务器中可以安装用于摄像机配置的客户端,用户可以通过点击客户端对摄像机进行相关配置,在完成配置后,摄像机可以自动存储场景参数信息和巡航时间信息,也可以由服务器将摄像机的场景参数信息和巡航时间信息发送给摄像机。需要说明的是,服务器可以是云环境中的计算设备,也可以是边缘环境中的计算设备,本申请不做具体限定。In a specific implementation, the user can directly access the web address of the configuration interface corresponding to the camera on the server, so that the configuration interface of the camera is displayed on the user interface of the server. After the relevant configuration of the camera is performed on the configuration interface, the relevant configuration information is directly stored. local to the camera. In another specific implementation, a client for camera configuration can be installed in the server, and the user can configure the camera by clicking on the client. After completing the configuration, the camera can automatically store scene parameter information and cruise time information, or can be configured by The server sends the scene parameter information and cruise time information of the camera to the camera. It should be noted that the server may be a computing device in a cloud environment or a computing device in an edge environment, which is not specifically limited in this application.
摄像机为带有云台且具有业务处理功能的摄像装置,摄像装置的镜头可随着云台转动,摄像机用于采集点位对应的监控视角下的场景图像并对场景图像进行相关的业务处理。其中,摄像装置安装于云台上,云台可控制摄像装置水平转动或垂直转动以改变摄像装置的监控范围。摄像机可以是球机、云台摄像机、PTZ摄像机或者其他带有转台的摄像设备,本申请不做具体限定。摄像机用于根据巡航时间信息确定当前时刻为场景切换时刻时,若当前时刻对应有下一场景,则关闭上一场景(在存在上一场景的情况下)对应的业务,并启动下一场景对应的业务以及将上一场景对应的点位调整至下一场景对应的点位。在一些可能的实施例中,若场景参数信息中还包括场景对应的优先级信息时,在存在下一场景时,若上一场景(在存在上一场景的情况下)对应的优先级为检测优先,在此情况下,若上一场景对应的场景图像中检测到目标体时,摄像机可以延迟切换至下一场景直至上一场景的检测任务结束。The camera is a camera with a PTZ and has business processing functions. The lens of the camera can rotate with the PTZ. The camera is used to collect scene images from a monitoring perspective corresponding to a point and perform related business processing on the scene images. Wherein, the camera device is installed on the PTZ, and the PTZ can control the horizontal rotation or vertical rotation of the camera device to change the monitoring range of the camera device. The camera may be a dome camera, a PTZ camera, a PTZ camera, or other camera equipment with a turntable, which is not specifically limited in this application. When the camera is used to determine that the current moment is the scene switching moment according to the cruise time information, if the current moment corresponds to the next scene, the service corresponding to the previous scene (if the previous scene exists) will be closed, and the corresponding service of the next scene will be activated. , and adjust the point corresponding to the previous scene to the point corresponding to the next scene. In some possible embodiments, if the scene parameter information also includes the priority information corresponding to the scene, when the next scene exists, if the priority corresponding to the previous scene (in the case of the previous scene) is detection First, in this case, if a target object is detected in the scene image corresponding to the previous scene, the camera can delay switching to the next scene until the detection task of the previous scene ends.
一具体实施中,摄像机中部署有场景管理模块、巡航模块和业务模块,其中,场景管理模块用于接收巡航模块发送的场景切换请求并判断当前是否进行场景切换,在确定进行场景切换时,场景管理模块用于指示业务模块关闭上一场景对应的业务(在存在上一场景的情况 下)以及开启下一场景对应的业务,场景管理模块还用于向巡航模块发送下一场景对应的点位。巡航模块用于根据场景的巡航时间信息判断当前时刻是否为场景切换时刻,并在确定当前时刻为场景切换时刻时,向场景管理模块发送场景切换请求以获取下一场景对应的点位,巡航模块还用于在接收到场景管理模块发送的下一场景对应的点位后,将自身的摄像装置调整至下一场景对应的点位。业务模块用于根据场景管理模块下发的指令信息关闭或开启某一场景对应的业务。In a specific implementation, a scene management module, a cruise module and a business module are deployed in the camera, wherein the scene management module is used to receive a scene switch request sent by the cruise module and determine whether to perform a scene switch currently. When it is determined to perform a scene switch, the scene The management module is used to instruct the service module to close the service corresponding to the previous scene (if the previous scene exists) and to open the service corresponding to the next scene, and the scene management module is also used to send the point corresponding to the next scene to the cruise module . The cruise module is used to determine whether the current moment is the scene switching moment according to the cruise time information of the scene, and when it is determined that the current moment is the scene switching moment, it sends a scene switching request to the scene management module to obtain the point corresponding to the next scene. It is also used to adjust its own camera device to the point corresponding to the next scene after receiving the point corresponding to the next scene sent by the scene management module. The business module is used to close or open a business corresponding to a certain scene according to the instruction information issued by the scene management module.
参见图1B,图1B示例性地给出了本申请中的又一种系统架构图。如图1B所示,该系统包括摄像机和服务器,其中,摄像机可以通过无线或者有线的方式与服务器进行通信。Referring to FIG. 1B, FIG. 1B exemplarily shows another system architecture diagram in the present application. As shown in FIG. 1B , the system includes a camera and a server, wherein the camera can communicate with the server in a wireless or wired manner.
在图1B中,摄像机为带有云台且具有业务处理功能的摄像装置,摄像机用于采集点位对应的监控视角下的场景图像并对场景图像进行相关业务处理。其中,摄像装置安装于云台上,云台可控制摄像装置水平转动或垂直转动以改变摄像装置的监控范围。摄像机可以是球机、云台摄像机、PTZ摄像机或者其他带有转台的摄像设备,本申请不做具体限定。In FIG. 1B , the camera is a camera device with a PTZ and a business processing function, and the camera is used to collect scene images from a monitoring perspective corresponding to a point and perform related business processing on the scene images. Wherein, the camera device is installed on the PTZ, and the PTZ can control the horizontal rotation or vertical rotation of the camera device to change the monitoring range of the camera device. The camera may be a dome camera, a PTZ camera, a PTZ camera, or other camera equipment with a turntable, which is not specifically limited in this application.
在图1B中,摄像机中部署有巡航模块和业务模块,其中,巡航模块用于从服务器获取巡航时间信息,巡航时间信息的说明可参考上述图1A中的相关描述,在此不再赘述。巡航模块根据巡航时间信息检测到当前时刻为场景切换时刻,向服务器发送场景切换请求,场景切换请求包括下一场景的标识。巡航模块还用于接收服务器发送的下一场景对应的点位并将自身的摄像装置调整至下一场景对应的点位。业务模块用于接收服务器发送的指令信息以及根据该指令信息关闭或开启某一场景对应的业务。在一些可能的实施例中,巡航模块还用于在当前时刻为场景切换时刻时,判断在当前时刻是否进行场景切换,在确定在当前时刻进行场景切换时,向服务器发送场景切换过程。具体的判断过程可参考下文叙述。In FIG. 1B , a cruise module and a service module are deployed in the camera. The cruise module is used to obtain cruise time information from the server. For the description of the cruise time information, please refer to the relevant description in FIG. 1A above, which will not be repeated here. The cruise module detects that the current moment is the scene switching moment according to the cruise time information, and sends a scene switching request to the server, where the scene switching request includes the identifier of the next scene. The cruise module is further configured to receive the point corresponding to the next scene sent by the server and adjust its own camera device to the point corresponding to the next scene. The service module is used for receiving the instruction information sent by the server and closing or opening the service corresponding to a certain scene according to the instruction information. In some possible embodiments, the cruise module is further configured to determine whether to perform scene switching at the current moment when the current moment is the scene switching moment, and send the scene switching process to the server when it is determined that the scene switching is performed at the current moment. For the specific judgment process, please refer to the following description.
在图1B中,服务器提供有用户界面,该用户界面可供用户预先对摄像机进行巡航任务配置,巡航任务配置的内容具体可参考上述图1A中关于服务器的相关叙述,在此不再赘述,在配置完成后,服务器可获得巡航时间信息和场景参数信息,巡航时间信息和场景参数信息的说明可参考上文描述,在此不再赘述。服务器还用于将巡航时间信息发送给摄像机。服务器中部署场景管理模块,场景管理模块用于在接收到来自摄像机的场景切换请求后,向摄像机发送第一信息,第一信息包括下一场景对应的点位和下一场景对应的业务标识。在一些可能的实施例中,场景管理模块用于在接收到来自摄像机的场景切换请求时判断摄像机在当前时刻是否满足场景切换条件,场景切换条件具体可参考下文的描述,在满足场景切换条件时,向摄像机发送指令信息,该指令信息中包括下一场景对应的点位和该场景对应的业务,在一些可能的实施例中,该指令信息中还包括用于指示关闭当前场景对应的业务的信息。In FIG. 1B , the server is provided with a user interface, which allows the user to configure the camera in advance for cruise tasks. For details of the cruise task configuration, please refer to the relevant description of the server in FIG. 1A above, which will not be repeated here. After the configuration is completed, the server can obtain the cruise time information and the scene parameter information. For the description of the cruise time information and the scene parameter information, reference may be made to the above description, which will not be repeated here. The server is also used to send cruise time information to the camera. A scene management module is deployed in the server, and the scene management module is configured to send first information to the camera after receiving a scene switching request from the camera, where the first information includes the point corresponding to the next scene and the service identifier corresponding to the next scene. In some possible embodiments, the scene management module is configured to determine whether the camera satisfies the scene switching condition at the current moment when receiving the scene switching request from the camera. , send instruction information to the camera, the instruction information includes the point corresponding to the next scene and the service corresponding to the scene, and in some possible embodiments, the instruction information also includes an instruction to close the service corresponding to the current scene. information.
可以看出,在图1A中的摄像机或图1B中的摄像机中,摄像机中均部署有业务模块和巡航模块,即说明对摄像机采集的场景图像的业务处理过程均在摄像机内执行,而图1A所示的系统架构中,是否满足场景切换条件的判断由摄像机自身执行,而在图1B所示的系统架构中,是否满足场景切换条件的判断既可以由摄像机执行也可以由服务器执行,本申请不做具体限定。It can be seen that in the camera in FIG. 1A or the camera in FIG. 1B , both the service module and the cruise module are deployed in the camera, that is to say, the service processing of the scene images collected by the camera is performed in the camera, while FIG. 1A In the system architecture shown, the judgment of whether the scene switching conditions are met is performed by the camera itself, while in the system architecture shown in FIG. 1B, the judgment of whether the scene switching conditions are met can be performed by the camera or by the server. No specific limitation is made.
下述中,摄像机不妨以球机为例进行方案的示例性阐述,但本申请实施例并不限定摄像机仅为球机。In the following, the camera may take the ball camera as an example to illustrate the solution, but the embodiment of the present application does not limit the camera to be only the ball camera.
需要说明的是,在球机执行巡航任务前,需要先对球机进行巡航任务配置,使得巡航路径中的每个场景绑定一个拍摄视野和至少一个业务,其中,场景由拍摄视野和业务共同决定,不同的场景绑定的业务可以是不同的,从而实现以尽可能少的球机满足同一场景下的不同业 务需求或不同场景下的不同业务需求。参见图2,图2是本申请实施例提供的一种球机巡航配置方法的流程图,该方法包括但不限于以下步骤:It should be noted that, before the dome camera performs the cruise task, the dome camera needs to be configured for the cruise task, so that each scene in the cruise path is bound to a shooting field of view and at least one business, where the scene is jointly determined by the shooting field of view and the business. It is decided that the services bound to different scenarios can be different, so that as few domes as possible can meet different business requirements in the same scenario or different business requirements in different scenarios. Referring to FIG. 2, FIG. 2 is a flowchart of a method for configuring a cruise control of a ball aircraft provided by an embodiment of the present application. The method includes but is not limited to the following steps:
S101、在用户界面设置球机待巡航的多个场景,并对多个场景中的每个场景进行场景配置。S101. Set multiple scenarios on which the dome camera is to be cruising on a user interface, and perform scenario configuration for each of the multiple scenarios.
在本申请实施例中,在用户界面上设置球机待巡航的多个场景,并对多个场景中的每个场景进行场景配置,其中,所谓对每个场景进行场景配置是指:为每个场景绑定一个点位(或称为拍摄视野)和至少一个业务。在完成场景配置后,可以获得场景参数信息,场景参数信息包括待巡航的多个场景中每个场景的标识、每个场景对应的点位和每个场景对应的业务标识。需要说明的是,场景由点位和业务共同决定,对于任意两个场景,当且仅当这两个场景对应的点位相同且这两个场景对应的业务也相同时,则这两个场景为同一个场景。若这两个场景对应的点位不同或者这两个场景对应的业务不同,则这两个场景是不同的场景。In the embodiment of the present application, multiple scenarios for the dome camera to be cruised are set on the user interface, and scenario configuration is performed for each scenario in the multiple scenarios, wherein the so-called scenario configuration for each scenario refers to: for each scenario Each scene is bound to a point (or called a shooting field of view) and at least one business. After the scene configuration is completed, scene parameter information can be obtained, where the scene parameter information includes the identifier of each scene in the multiple scenes to be cruised, the point corresponding to each scene, and the service identifier corresponding to each scene. It should be noted that the scene is jointly determined by the point and the business. For any two scenarios, if and only if the points corresponding to the two scenarios are the same and the services corresponding to the two scenarios are also the same, then the two scenarios for the same scene. If the points corresponding to the two scenarios are different or the services corresponding to the two scenarios are different, the two scenarios are different scenarios.
其中,点位表示球机的拍摄视角(或称为拍摄视野),设置球机的点位是指设置球机的PTZ坐标,即球机的水平角度、俯仰角度和焦距,其中,水平角度的范围可以为[0,2π],俯仰角度的范围可以为(-π,0),焦距决定镜头拍摄的被摄体的成像大小、视场角大小,景深大小等,且焦距越短,成像越小、视场角越大、景深越长。在一些可能的实施例中,点位还包括光圈值、变倍值等。Among them, the point position represents the shooting angle of the dome camera (or called the shooting field of view), and setting the point position of the dome camera refers to setting the PTZ coordinates of the dome camera, that is, the horizontal angle, pitch angle and focal length of the dome camera. The range can be [0, 2π], and the range of the pitch angle can be (-π, 0). The focal length determines the imaging size, field angle, depth of field, etc. of the subject captured by the lens, and the shorter the focal length, the better the imaging. Smaller, the larger the field of view, the longer the depth of field. In some possible embodiments, the point position further includes an aperture value, a zoom value, and the like.
业务表示用于检测监控环境中的目标体或目标事件的算法或程序,例如识别图像中的目标体,或者识别图像中的目标事件。其中,目标体可以是人、人脸、车辆等,目标事件可以是车辆违停、车辆超速、车辆闯红灯、人偷车、车辆碰撞、行人打架斗殴、行人晕倒、行人入侵等。例如,业务可以是人脸检测、人脸识别、车辆检测、违停检测、超速检测、入侵检测、机非人检测、闯红灯检测、车辆碰撞检测、行人晕倒检测、偷车检测等,本申请不做具体限定。可以为业务设置业务参数,例如,预设检测框尺寸、抓拍模式、图像亮度补偿系数等。以某一场景绑定的业务为人脸检测为例,可以设置该业务在场景下的业务参数,例如,预设检测框尺寸、抓拍模式、人脸灵敏度、人脸亮度补偿系数等。以预设检测框尺寸为例,当对球机在该点位采集到的场景图像进行人脸检测处理时,当检测出的人脸框的尺寸小于上述预设检测框尺寸时,则该人脸框不作为检测到的人脸。需要说明的是,不同业务的业务参数可以不同,例如,人脸检测的预设检测框尺寸设置为20*20,而车辆检测的预设检测框尺寸可以设置为30*30。可以看出,给某一场景绑定多个业务并对这多个业务的业务参数分别进行配置,由此可实现不同场景下不同业务的配置分离。A service represents an algorithm or program for detecting objects or object events in a surveillance environment, such as recognizing objects in images, or recognizing object events in images. Among them, the target body can be a person, a face, a vehicle, etc., and the target event can be a vehicle parking illegally, a vehicle speeding, a vehicle running a red light, a person stealing a car, a vehicle collision, a pedestrian fighting, a pedestrian fainting, a pedestrian intrusion, etc. For example, the business can be face detection, face recognition, vehicle detection, illegal parking detection, speeding detection, intrusion detection, non-human detection, red light running detection, vehicle collision detection, pedestrian fainting detection, car theft detection, etc. No specific limitation is made. Service parameters can be set for the service, for example, preset detection frame size, snapshot mode, image brightness compensation coefficient, etc. Taking the service bound to a scene as face detection as an example, you can set the service parameters of the service in the scene, such as the preset detection frame size, snapshot mode, face sensitivity, and face brightness compensation coefficient. Taking the preset detection frame size as an example, when performing face detection processing on the scene image collected by the dome camera at this point, when the size of the detected face frame is smaller than the above-mentioned preset detection frame size, the person The face frame is not used as a detected face. It should be noted that the service parameters of different services may be different. For example, the preset detection frame size of face detection may be set to 20*20, and the preset detection frame size of vehicle detection may be set to 30*30. It can be seen that by binding multiple services to a certain scenario and configuring the service parameters of the multiple services respectively, the configuration separation of different services in different scenarios can be realized.
在一些可能的实施例中,不同场景下同一业务也可以有不同的业务参数。不妨以人脸检测为例,假设球机设置在园区内,场景1对应园区内的某条道路,场景2对应园区外的广场,若场景1、场景2均与人脸检测这个业务绑定,由于园区外的广场距离球机的距离大于园区内的道路距离球机的距离,故场景2中人脸检测业务对应的预设检测框尺寸小于场景1中人脸检测业务对应的预设检测框尺寸,由此实现了不同场景下同种业务的配置分离。In some possible embodiments, the same service may also have different service parameters in different scenarios. Take face detection as an example. Suppose the dome camera is installed in the park, scene 1 corresponds to a road in the park, and scene 2 corresponds to the square outside the park. If scene 1 and scene 2 are both bound to the face detection service, Since the distance from the square outside the park to the dome camera is greater than the distance from the road in the park to the dome camera, the size of the preset detection frame corresponding to the face detection service in scenario 2 is smaller than the preset detection frame corresponding to the face detection service in scenario 1 size, thus realizing the configuration separation of the same service in different scenarios.
在一些可能的实施例中,除了为每个场景绑定一个点位和至少一个业务外,所谓对每个场景进行场景配置还包括设置上述每个场景对应的业务的优先级,其中,优先级包括检测优先和非检测优先,优先级可用于后续判断球机是否满足场景切换条件。具体地,若球机存在下一场景,且上一场景对应的业务的优先级为“非检测优先”,则球机满足场景切换条件;若球机存在下一场景,上一场景对应的业务的优先级为“检测优先”且在上一场景对应的场景图像中检测到目标体,则球机不满足场景切换条件;若球机存在下一场景,上一场景对应的业务的优先级为“检测优先”且在上一场景对应的场景图像中未检测到目标体,则球机满足 场景切换条件。In some possible embodiments, in addition to binding one point and at least one service for each scenario, the so-called scenario configuration for each scenario also includes setting the priority of the service corresponding to each of the above scenarios, wherein the priority Including detection priority and non-detection priority, the priority can be used to determine whether the dome camera meets the scene switching conditions. Specifically, if the dome camera has the next scene, and the priority of the service corresponding to the previous scene is "non-detection priority", the dome camera satisfies the scene switching condition; if the dome camera has the next scene, the service corresponding to the previous scene The priority of the dome camera is "Detection Priority" and the target object is detected in the scene image corresponding to the previous scene, the dome camera does not meet the scene switching conditions; if the dome camera has the next scene, the priority of the service corresponding to the previous scene is "Detection priority" and no target is detected in the scene image corresponding to the previous scene, the dome camera meets the scene switching conditions.
需要说明的是,用户界面可以由服务器提供。一具体实施中,用户界面可以是服务器响应于用户访问球机的配置网址这一操作生成的配置界面,具体地,球机和服务器通过无线连接,用户在服务器中输入球机的配置网址,在此情况下,服务器的用户界面即为球机的配置网页。另一具体实施中,用户界面还可以是安装于服务器中的用于球机配置的客户端提供的配置界面,具体地,用于球机配置的客户端安装于服务器中,用户点击该客户端,在此情况下,服务器的用户界面即为客户端提供的配置界面。It should be noted that the user interface may be provided by the server. In a specific implementation, the user interface can be a configuration interface generated by the server in response to the operation of the user accessing the configuration URL of the dome machine. In this case, the user interface of the server is the configuration webpage of the dome camera. In another specific implementation, the user interface can also be a configuration interface provided by a client installed in the server for ball machine configuration. Specifically, the client used for ball machine configuration is installed in the server, and the user clicks the client. , in this case, the user interface of the server is the configuration interface provided by the client.
例如,用户界面可以是图3所示的界面,需要说明的是,图3所示的界面也可以称为场景配置界面,图3只是一种场景配置界面的示例,并不限定本申请的场景配置界面仅为图3所示样子,场景配置界面可以是实现上述场景配置功能的任意一个界面。如图3所示,图3为球机ID-场景配置界面,其中,ID表示球机的标识,该界面上罗列有多个功能模块,例如,点位绑定模块、业务绑定模块、已添加场景模块和监控视角模块等,其中,点位绑定模块用于点位设置,点位绑定模块中依次罗列有水平角、俯仰角和焦距的输入框。在一些可能的实施例中,还可以在点位绑定模块中增加光圈的输入框;业务绑定模块用于业务设置,业务绑定模块中罗列有“人脸检测1”、“车辆检测2”等业务选项,以“人脸检测1”为例,“1”为人脸检测的标识,其唯一表示人脸检测,除此之外,还可以设置业务参数,例如,预设检测框尺寸;监控视角模块用于显示当前在界面上设置的点位上采集的场景图像,可辅助用户进行场景的点位绑定设置。已添加场景模块用于显示当前已设置好的场景的相关参数。例如,图3中已添加场景模块中显示有“场景1:点位(40°,-40°,50),人脸识别3和车辆检测2,检测优先”。图3所示界面上,还设置有“添加”键,在完成上述点位绑定模块、业务绑定模块以及优先级设置模块对应的设置后,点击“添加”键,则将当前设置好的场景的相关配置添加至上述的已添加场景模块。For example, the user interface may be the interface shown in FIG. 3 . It should be noted that the interface shown in FIG. 3 may also be called a scene configuration interface. FIG. 3 is only an example of a scene configuration interface, and does not limit the scene of the present application. The configuration interface is only as shown in FIG. 3 , and the scene configuration interface may be any interface that implements the above-mentioned scene configuration function. As shown in Figure 3, Figure 3 is the dome camera ID-scene configuration interface, where ID represents the dome camera's identification, and multiple functional modules are listed on the interface, such as point binding module, business binding module, Add a scene module and a monitoring perspective module. Among them, the point binding module is used for point setting, and the point binding module lists the input boxes of the horizontal angle, the pitch angle and the focal length in turn. In some possible embodiments, an input box of aperture can also be added in the point binding module; the business binding module is used for business setting, and the business binding module lists "face detection 1", "vehicle detection 2" " and other business options, take "Face Detection 1" as an example, "1" is the identity of face detection, which uniquely represents face detection, in addition, you can also set business parameters, such as the preset detection frame size; The monitoring angle module is used to display the scene images currently collected at the points set on the interface, which can assist the user to set the scene point binding. A scene module has been added to display the relevant parameters of the currently set scene. For example, the added scene module in Figure 3 shows "scene 1: point (40°, -40°, 50), face recognition 3 and vehicle detection 2, detection priority". On the interface shown in Figure 3, there is also an "Add" button. After completing the settings corresponding to the above point binding module, business binding module and priority setting module, click the "Add" button to add the currently set The relevant configuration of the scene is added to the added scene module above.
可选地,图3所示的界面上还可以设置优先级设置模块,优先级设置模块用于为业务绑定模块中选中的业务设置优先级。可以理解,在图3所示界面中,业务绑定模块与优先级设置模块分开,从而当业务绑定模块中选中了多个业务时,若对这选中的多个业务进行优先设置,则被选中的多个业务具有相同的优先级设置,例如,同为“检测优先”或“非检测优先”。在一些可能的实施例中,优先级设置模块还可以设置在业务绑定模块中(图3未示),从而可以对业务绑定模块中选中的多个业务分别进行优先设置,由此不同的业务可以有不同的优先级设置。需要说明的是,当优先级设置为“检测优先”时,在判断是否满足场景切换条件时需考虑在当前采集到的场景图像中是否检测到目标。Optionally, a priority setting module may also be set on the interface shown in FIG. 3 , and the priority setting module is used to set a priority for the service selected in the service binding module. It can be understood that in the interface shown in FIG. 3 , the service binding module is separated from the priority setting module, so that when multiple services are selected in the service binding module, if the selected multiple services are preferentially set, they will be selected by the priority setting module. Multiple selected services have the same priority setting, for example, the same as "Detection Priority" or "Non-Detection Priority". In some possible embodiments, the priority setting module can also be set in the service binding module (not shown in FIG. 3 ), so that multiple services selected in the service binding module can be set with priority respectively, so that different Businesses can have different priority settings. It should be noted that when the priority is set to "detection priority", it is necessary to consider whether a target is detected in the currently collected scene image when judging whether the scene switching condition is satisfied.
具体地,用户在图3所示的用户界面上对场景2进行场景配置,在点位绑定模块中,用户可以通过键盘输入该点位的水平角、俯仰角和焦距,例如,场景2对应的点位为“水平角60°、俯仰角-30°、焦距85mm”。一具体实施中,还可以在点位绑定模块中水平角、俯仰角和焦距旁各设置一个进度条(图3未示),通过拖动对应的进度条分别设置水平角、俯仰角和焦距,且进度条旁边显示当前位置对应的数值。另一具体实施中,点位绑定模块中还可以设置两个调节键,分别为“+”键和“-”键,可用于调整水平角或俯仰角或焦距的大小。例如,对水平角进行设置,假设当前的水平角为50°,根据右侧的监控视角模块显示的场景图像发现角度有些偏左,结合监控视角模块显示的场景图像可通过点击“+”键增加水平角直至合适的值。在业务绑定模块中,对场景2进行业务配置,勾选了“人脸检测1”这个业务,并将预设检测框尺寸设置为20*20。可选地,还可以设置“人脸检测1”这个业务的优先级,例如,勾选“非检测优先”即表示对应业务的优先级设置为非检测优先。综上,在完成场景2的点 位绑定、业务绑定以及优先级设置(若存在)后,点击右侧的“添加”按钮后,场景2的场景配置信息被存储,且图3中的已添加场景模块中将新增一条“场景2:点位(60°,-30°,85),人脸检测1,非检测优先”的信息,即说明当前已给球机配置好两个场景:分别为场景1和场景2。依据上述场景2的场景配置方法可以为球机所需的其他场景进行配置,在此不再赘述。Specifically, the user configures the scene 2 on the user interface shown in FIG. 3. In the point binding module, the user can input the horizontal angle, pitch angle and focal length of the point through the keyboard. For example, the scene 2 corresponds to The point position is "horizontal angle 60°, pitch angle -30°, focal length 85mm". In a specific implementation, a progress bar (not shown in Figure 3) can also be set next to the horizontal angle, the pitch angle and the focal length in the point binding module, and the horizontal angle, the pitch angle and the focal length can be set respectively by dragging the corresponding progress bar. , and the value corresponding to the current position is displayed next to the progress bar. In another specific implementation, the point binding module can also be provided with two adjustment keys, namely a "+" key and a "-" key, which can be used to adjust the horizontal angle, the pitch angle or the focal length. For example, set the horizontal angle, assuming that the current horizontal angle is 50°, according to the scene image displayed by the monitoring viewing angle module on the right side, it is found that the angle is a little to the left, and the scene image displayed in combination with the monitoring viewing angle module can be increased by clicking the "+" button. Horizontal angle up to a suitable value. In the service binding module, configure the service for scenario 2, check the "face detection 1" service, and set the default detection frame size to 20*20. Optionally, the priority of the service "face detection 1" may also be set. For example, checking "non-detection priority" means that the priority of the corresponding service is set to non-detection priority. To sum up, after completing the point binding, service binding and priority setting (if any) of scene 2, click the "Add" button on the right side, the scene configuration information of scene 2 is stored, and the The added scene module will add a message "Scene 2: Point (60°, -30°, 85), face detection 1, non-detection priority", which means that two scenes have been configured for the dome camera. : Scenario 1 and Scenario 2 respectively. The scene configuration method according to the above-mentioned scene 2 can be used to configure other scenes required by the dome camera, which will not be repeated here.
需要说明的是,对于上述场景配置过程,本申请实施例并不限定设置场景对应的点位、设置场景对应的业务以及设置场景对应的业务的优先级三者的执行顺序。It should be noted that, for the above scenario configuration process, the embodiments of the present application do not limit the execution order of setting the point corresponding to the scenario, setting the service corresponding to the scenario, and setting the priority of the service corresponding to the scenario.
S102、在用户界面对多个场景中的每个场景进行巡航配置。S102. Perform cruise configuration on each of the multiple scenarios on the user interface.
在本申请实施例中,在为球机设置了多个场景后,还需在用户界面对多个场景中的每个场景进行巡航配置,所谓对每个场景进行巡航配置是指:为每个场景设置巡航时间段。在一些可能的实施例中,当同一巡航时间段对应有多个场景时,在此情况下,还可以设置每个场景对应的监控时长。关于用户界面的相关叙述可参考S101的相关叙述,在此不再赘述。In the embodiment of the present application, after multiple scenarios are set for the dome camera, it is necessary to perform cruise configuration on each of the multiple scenarios on the user interface. The so-called cruise configuration for each scenario refers to: for each scenario The scene sets the cruise time period. In some possible embodiments, when there are multiple scenarios corresponding to the same cruise time period, in this case, the monitoring duration corresponding to each scenario can also be set. For the relevant description of the user interface, reference may be made to the relevant description of S101 , which will not be repeated here.
其中,巡航时间段表示球机的工作时间段,场景的巡航时间段表示该场景在该巡航时间段内是生效的。例如,假设设置场景1的巡航时间段仅为8:00AM至10:00AM,则说明在8:00AM至10:00AM这个时间段监控场景1,具体是指在8:00AM至10:00AM这个时间段内球机可以在场景1对应的点位上采集场景图像以及对该场景图像执行场景1对应的业务。场景对应的监控时长是指球机在该场景每次的持续时间或停留时间,也表示球机每次持续监控该场景的时长。例如,若8:00AM至9:00AM这个巡航时间段内对应有两个场景,分别为场景1和场景2,设置场景1的监控时长为30min以及场景2的监控时长为30min,其意味着,在8:00AM至9:00AM内,可以于8:00AM-8:30AM监控场景1且于8:31AM-9:00AM监控场景2,也可以于8:00AM-8:30AM监控场景2且于8:31AM-9:00AM监控场景1,本申请不做具体限定。Among them, the cruise time period indicates the working time period of the dome camera, and the cruise time period of the scene indicates that the scene is valid during the cruise period. For example, assuming that the cruise time period of scene 1 is only 8:00AM to 10:00AM, it means that scene 1 is monitored during the time period from 8:00AM to 10:00AM, specifically from 8:00AM to 10:00AM The intra-segment dome camera can collect scene images at the points corresponding to scene 1 and perform services corresponding to scene 1 on the scene images. The monitoring time corresponding to the scene refers to the duration or stay time of the dome camera in the scene each time, and it also means the time the dome camera continuously monitors the scene each time. For example, if there are two scenarios corresponding to the cruise period from 8:00AM to 9:00AM, namely scenario 1 and scenario 2, and setting the monitoring duration of scenario 1 to 30 minutes and the monitoring duration of scenario 2 to 30 minutes, it means that, From 8:00AM to 9:00AM, you can monitor scene 1 from 8:00AM-8:30AM and monitor scene 2 from 8:31AM-9:00AM, or monitor scene 2 from 8:00AM-8:30AM and monitor scene 2 from 8:00AM to 8:30AM. 8:31AM-9:00AM Monitoring Scenario 1, which is not specifically limited in this application.
一具体实施中,当某一巡航时间段内有多个场景时,还可以设置每个场景在该巡航时间段内的巡航顺序,以使球机在该巡航时间段内按照每个场景的巡航顺序轮流巡航。例如,若8:00AM至9:00AM内对应有场景1和场景2,场景1的监控时长为30min以及场景2的监控时长为30min,且场景1的巡航顺序为1以及场景2的巡航顺序为2,则在8:00AM至9:00AM内,先于8:00AM-8:30AM监控场景1,后于8:31AM-9:00AM监控场景2。In a specific implementation, when there are multiple scenes in a certain cruise time period, the cruise sequence of each scene in the cruise time period can also be set, so that the dome camera can cruise according to the cruise time of each scene during the cruise time period. Sequentially take turns cruising. For example, if there are scene 1 and scene 2 between 8:00AM and 9:00AM, the monitoring duration of scene 1 is 30 minutes and the monitoring duration of scene 2 is 30 minutes, and the cruise sequence of scene 1 is 1 and the cruise sequence of scene 2 is 2. From 8:00AM to 9:00AM, monitor scene 1 from 8:00AM-8:30AM first, and monitor scene 2 from 8:31AM-9:00AM later.
一具体实施中,当某一巡航时间段内有多个场景时,多个场景中各个场景的监控时长决定了该巡航时间内的各场景轮流巡航的次数。例如,若8:00AM至9:00AM内设置有场景1和场景2,场景1的监控时长为30min以及场景2的监控时长为30min,则在8:00AM至9:00AM内,可以分别监控场景1一次和场景2一次。若8:00AM至9:00AM内设置有场景1和场景2,且场景1的监控时长为15min以及场景2的监控时长为15min,则在8:00AM至9:00AM内,可以分别监控场景1两次和场景2两次,若设置了场景1的巡航顺序为第一以及场景2的巡航顺序为第二,则8:00AM至9:00AM内巡航过程为:场景1(8:00AM至8:15AM)-场景2(8:15AM至8:30AM)-场景1(8:30AM至8:45AM)-场景2(8:45AM至9:00AM),即轮流监控场景1和场景2两次。In a specific implementation, when there are multiple scenes within a certain cruise time period, the monitoring duration of each scene in the multiple scenes determines the number of alternate cruises of each scene within the cruise period. For example, if Scenario 1 and Scenario 2 are set between 8:00AM and 9:00AM, and the monitoring duration of Scenario 1 is 30 minutes and the monitoring duration of Scenario 2 is 30 minutes, then from 8:00AM to 9:00AM, the scenarios can be monitored separately. 1 once and scene 2 once. If Scenario 1 and Scenario 2 are set from 8:00AM to 9:00AM, and the monitoring duration of Scenario 1 is 15min and the monitoring duration of Scenario 2 is 15min, then from 8:00AM to 9:00AM, Scenario 1 can be monitored separately Twice and Scenario 2 twice, if the cruise sequence of Scenario 1 is set as the first and the cruise sequence of Scenario 2 as the second, the cruise process from 8:00AM to 9:00AM is as follows: Scenario 1 (8:00AM to 8 :15AM) - Scene 2 (8:15AM to 8:30AM) - Scene 1 (8:30AM to 8:45AM) - Scene 2 (8:45AM to 9:00AM), that is to monitor scene 1 and scene 2 twice in turn .
由此可以看出,在设置好巡航时间段以及该巡航时间段对应的多个场景中每个场景对应的监控时长后,由巡航时间段和场景的监控时长可以确定该巡航时间段对应的场景切换时刻。例如,若8:00AM至9:00AM内巡航过程为:场景1(15min)-场景2(15min)-场景1(15min)-场景2(15min),则8:00AM至9:00AM对应的场景切换时刻有四个,分别为8:00AM、8:15AM、8:30AM和8:45AM。在某一巡航时间段仅对应一个场景时,该巡航时间段的起始时刻即为该 场景的一个场景切换时刻。It can be seen from this that after setting the cruise time period and the monitoring duration corresponding to each scene in the multiple scenarios corresponding to the cruise time period, the scene corresponding to the cruise time period can be determined from the cruise time period and the monitoring duration of the scene. switch time. For example, if the cruise process from 8:00AM to 9:00AM is: scene 1 (15min) - scene 2 (15min) - scene 1 (15min) - scene 2 (15min), then the scene corresponding to 8:00AM to 9:00AM There are four switching times, namely 8:00AM, 8:15AM, 8:30AM and 8:45AM. When a certain cruise period corresponds to only one scene, the start moment of the cruise period is a scene switching moment of the scene.
在一些可能的实施例中,在设置好巡航时间段以及该巡航时间段内各个场景监控时长后,该巡航时间段自动被划分成多个时间段,提高了球机的配置效率。不妨假设多个时间段包括第一时间段和第二时间段,其中,设置第一时间段与第一拍摄视野(或称为第一点位)、第一业务绑定,设置第二时间段与第二拍摄视野(或称为第二点位)、第二业务绑定。需要说明的是,在配置完成后,服务器向球机发送配置信息,配置信息包括第一映射关系和第二映射关系,其中,第一映射关系为第一时间段、第一业务的标识和第一拍摄视野之间的映射关系,第二映射关系为第二时间段、第二业务的标识和第二拍摄视野之间的映射关系。需要说明的是,由于拍摄视野和业务共同确定场景,因此,第一映射关系相当于表示第一时间段与第一时间段对应的场景,第二映射关系相当于表示第二时间段与第二时间段对应的场景。由此,可使球机实现在不同的时刻位于不同的点位执行不同的业务或者在不同的时刻于同一点位执行不同的业务。In some possible embodiments, after the cruise time period and the monitoring duration of each scene in the cruise time period are set, the cruise time period is automatically divided into multiple time periods, which improves the configuration efficiency of the dome camera. It may be assumed that multiple time periods include a first time period and a second time period, where the first time period is set to be bound to the first shooting field of view (or the first point) and the first business, and the second time period is set. Binding with the second shooting field of view (or called the second point) and the second business. It should be noted that after the configuration is completed, the server sends configuration information to the dome camera, and the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the first time period, the identifier of the first service, and the first mapping relationship. A mapping relationship between the shooting fields of view, and the second mapping relationship is a mapping relationship between the second time period, the identifier of the second service, and the second shooting field of view. It should be noted that since the shooting field of view and the business jointly determine the scene, the first mapping relationship is equivalent to representing the scene corresponding to the first time period and the first time period, and the second mapping relationship is equivalent to representing the second time period and the second time period. The scene corresponding to the time period. In this way, the ball machine can be located at different points at different times to execute different services or at different times at the same point to execute different services.
可以理解,第一时间段即为第一拍摄视野和第一业务确定的场景的监控时长,第二时间段即为第二拍摄视野和第二业务确定的场景的监控时长。当第一时间段的长度与第二时间段的长度之和小于巡航时间段的长度时,上述多个时间段还包括:交替按照第一时间段的长度、第二时间段的长度执行与第一时间段、第二时间段对应业务的时间段。It can be understood that the first time period is the monitoring duration of the scene determined by the first shooting field of view and the first service, and the second time period is the monitoring time period of the scene determined by the second shooting field of view and the second service. When the sum of the length of the first time period and the length of the second time period is less than the length of the cruising time period, the above-mentioned multiple time periods further include: alternately executing the first time period and the length of the second time period with the first time period. The first time period and the second time period correspond to the time period of the service.
例如,假设设置巡航时间段为9:00AM-10:00AM,该巡航时间段对应场景1和场景2,其中,场景1的巡航顺序先于场景2的巡航顺序,场景1的监控时长10min,场景2的监控时长20min,场景1与点位1、业务1和业务2绑定,场景2与点位2和业务3绑定。由表1可以看出,在完成上述配置后,巡航时间段9:00AM-10:00AM被自动划分为四个时间段,分别为9:00AM-9:10AM监控场景1,9:10AM-9:30AM监控场景2,9:30AM-9:40AM监控场景1,9:40AM-10:00AM监控场景2,在此情况下,例如,9:00AM-9:10AM可以是第一时间段、9:10AM-9:30AM或9:40AM-10:00AM可以是第二时间段。又例如,第一时间段可以是9:30AM-9:40AM、第二时间段可以是9:40AM-10:00AM。For example, assuming that the cruise time period is set to be 9:00AM-10:00AM, the cruise time period corresponds to scene 1 and scene 2. The cruise sequence of scene 1 is prior to the cruise sequence of scene 2, and the monitoring time of scene 1 is 10 minutes. The monitoring duration of 2 is 20 minutes. Scenario 1 is bound to point 1, business 1 and business 2, and scene 2 is bound to point 2 and business 3. As can be seen from Table 1, after completing the above configuration, the cruise time period 9:00AM-10:00AM is automatically divided into four time periods, namely 9:00AM-9:10AM monitoring scene 1, 9:10AM-9 :30AM monitoring scenario 2, 9:30AM-9:40AM monitoring scenario 1, 9:40AM-10:00AM monitoring scenario 2, in this case, for example, 9:00AM-9:10AM can be the first time period, 9 :10AM-9:30AM or 9:40AM-10:00AM may be the second time period. For another example, the first time period may be 9:30AM-9:40AM, and the second time period may be 9:40AM-10:00AM.
表1Table 1
在一些可能的实施例中,对每个场景进行巡航配置也可以是:先设置某一巡航时间段,再将设置好的各个场景按需添加至各个巡航时间段内。在某一巡航时间段内添加有多个场景时,还可以依次设置该巡航时间内每个场景的监控时长。In some possible embodiments, the cruising configuration for each scene may also be: first setting a certain cruising time period, and then adding each set scene to each cruising time period as needed. When multiple scenes are added within a certain cruise time period, the monitoring duration of each scene within the cruise period can also be set in turn.
例如,参见图4A,图4A是本申请提供的一种巡航配置界面的示例,该界面上罗列有巡航时间段模块、场景标识模块和巡航路径模块等,其中,巡航时间段模块包括一个时间刻度条和一个滑动条,滑动条的长度可调整,通过拖动滑动条设置一个巡航时间段;场景标识模块中显示了当前已创建的各个场景,还罗列有各个场景的监控时长的输入框以及该场景对应的巡航顺序的输入框,场景标识模块可供用户选择欲添加至巡航时间段模块中设置的那一巡航时间段的场景以及设置场景对应的监控时长等;巡航路径模块用于显示当前已设置好的巡航时间段和已添加的场景之间的映射关系,还可以显示场景对应的监控时长以及巡航顺序等。图4A所示界面上,还设置有“保存”键,在完成上述巡航时间段模块、场景标识模块对应的 设置后,点击“保存”键,则将当前设置的巡航时间段和已选择的场景之间的映射关系等添加至上述的巡航路径模块。For example, referring to FIG. 4A, FIG. 4A is an example of a cruise configuration interface provided by the present application. The interface lists a cruise time period module, a scene identification module, a cruise path module, etc., wherein the cruise time period module includes a time scale bar and a sliding bar, the length of the sliding bar can be adjusted, and a cruise time period can be set by dragging the sliding bar; the scene identification module displays the currently created scenes, and also lists the input boxes for the monitoring duration of each scene and the The input box of the cruise sequence corresponding to the scene, the scene identification module allows the user to select the scene to be added to the cruise time period set in the cruise time period module and the monitoring duration corresponding to the set scene; the cruise path module is used to display the current The mapping relationship between the set cruise time period and the added scene can also be displayed, and the monitoring duration and cruise sequence corresponding to the scene can also be displayed. On the interface shown in Figure 4A, there is also a "Save" button. After completing the settings corresponding to the cruise time period module and the scene identification module, click the "Save" button to save the currently set cruise period and the selected scene. The mapping relationship between them is added to the above cruise path module.
如图4A所示,可以在该界面上先设置一个巡航时间段,例如,拖动滑动条以选择9:00AM-10:00AM这个巡航时间段,然后从已创建的场景中选择该巡航时间段对应的场景,例如,勾选了图4A显示的已创建的场景中的场景1和场景2,并设置场景1的监控时长为10min以及场景2的监控时长为20min。在一些可能的实施例中,当同一巡航时间段内设置有多个场景时,还可以设置该巡航时间段内各个场景的巡航顺序,例如,图4A中设置场景1在9:00AM-10:00AM内的巡航顺序为1以及场景2在在9:00AM-10:00AM内的巡航顺序为2。在完成上述9:00AM-10:00AM这一巡航时间段内的巡航配置后,点击“保存”键,图4A中巡航路径模块会增加一条记录如“巡航时间段9:00AM-10:00AM,场景1(监控时长10min巡航顺序1),场景2(监控时长20min巡航顺序2)”,由此可以清晰看到每个场景对应的巡航时间段、每个场景对应的监控时长以及每个场景在对应巡航时间段内的巡航顺序。依据上述方式可以对巡航路径中的其他场景进行巡航配置,在此不再赘述。As shown in Figure 4A, a cruise time period can be set first on this interface, for example, drag the slider to select the cruise time period of 9:00AM-10:00AM, and then select the cruise time period from the created scene For the corresponding scenario, for example, scenario 1 and scenario 2 in the created scenario shown in FIG. 4A are checked, and the monitoring duration of scenario 1 is set to 10 minutes and the monitoring duration of scenario 2 is set to 20 minutes. In some possible embodiments, when multiple scenes are set in the same cruise time period, the cruise sequence of each scene in the cruise time period can also be set. For example, in FIG. 4A, the scene 1 is set at 9:00AM-10: The cruise order within 00AM is 1 and the cruise order of scene 2 within 9:00AM-10:00AM is 2. After completing the cruise configuration in the cruise time period of 9:00AM-10:00AM, click the "Save" button, the cruise path module in Figure 4A will add a record such as "cruise time period 9:00AM-10:00AM, Scenario 1 (monitoring duration 10min cruise sequence 1), scenario 2 (monitoring duration 20min cruise sequence 2)", from which you can clearly see the cruise time period corresponding to each scene, the monitoring duration corresponding to each scene, and where each scene is located. Corresponds to the cruise sequence in the cruise time period. The cruise configuration can be performed on other scenarios in the cruise path according to the above method, and details are not described herein again.
需要说明的是,图4A所示界面可用于设置球机每一天的巡航时间段。在一些可能的实施例中,图4A所示界面上还可以添加日期,以实现以周为单位对球机进行巡航配置。需要说明的是,球机每天的巡航配置可以相同也可以不同,本申请实施例不做具体限定。It should be noted that the interface shown in FIG. 4A can be used to set the cruise time period of each day of the dome camera. In some possible embodiments, a date may also be added on the interface shown in FIG. 4A to implement cruise configuration of the dome camera in units of weeks. It should be noted that the daily cruise configuration of the ball machine may be the same or different, which is not specifically limited in the embodiment of the present application.
参见图4B,图4B是本申请提供的又一种巡航配置界面的示例,图4B为球机ID-巡航配置界面,ID表示球机的标识,该界面上罗列有场景标识输入框、巡航时间段模块、监控时长输入框和巡航路径模块等,其中,场景标识输入框下有下拉框,下拉框中罗列有当前已创建的各个场景,用户每次可从下拉框中选择一个场景进行巡航时间段、监控时长等的配置,在用户选定场景后,可在监控时长的输入框中设置该场景对应的监控时长。在一些可能的实施例中,图4B所示界面还可以增加巡航顺序的输入框,以供用户设置对应场景在巡航时间段内的巡航顺序。巡航时间段模块包括一个时刻刻度条和一个滑动条,滑动条的长度可调整,通过拖动滑动条可设置一个巡航时间段;巡航路径模块用于显示已设置好的场景与巡航时间段之间的映射关系,还可以显示场景对应的监控时长以及巡航顺序等。图4B所示界面上,还设置有“保存”键,在完成上述巡航时间段模块、场景标识、监控时长等设置后,点击“保存”键,则将当前选择场景和设置的巡航时间段之间的映射关系等添加至上述的巡航路径模块。Referring to Fig. 4B, Fig. 4B is an example of another cruise configuration interface provided by this application, Fig. 4B is a ball machine ID-cruise configuration interface, ID represents the identification of the ball machine, and the interface is listed with scene identification input box, cruise time Segment module, monitoring duration input box, cruise path module, etc. Among them, there is a drop-down box under the scene ID input box, and the drop-down box lists the currently created scenes, and the user can select a scene from the drop-down box each time for cruise time After the user selects a scenario, the monitoring duration corresponding to the scenario can be set in the monitoring duration input box. In some possible embodiments, the interface shown in FIG. 4B may also add an input box for a cruise sequence, so that the user can set the cruise sequence of the corresponding scene in the cruise time period. The cruise time period module includes a time scale bar and a slide bar. The length of the slide bar can be adjusted. A cruise time period can be set by dragging the slide bar; the cruise path module is used to display the time between the set scene and the cruise time period. It can also display the monitoring duration and cruise sequence corresponding to the scene. On the interface shown in Figure 4B, there is also a "Save" button. After completing the settings of the cruise time period module, scene identification, monitoring duration, etc., click the "Save" button to save the current selected scene and the set cruise period. The mapping relationship between them is added to the above cruise path module.
如图4B所示,可以在该界面上选择待设置的场景,例如,场景3,拖动滑动条设置场景3对应的巡航时间段,例如,拖动滑动条占据14:00-18:00这个时间段,以及设置场景3的监控时长为20min,最后点击“保存”键,由此完成了对场景3的巡航配置,在点击“保存”键后,图4B中的巡航路径模块中将新增一条“场景标识为3,巡航时间段为14:00PM-18:00PM,监控时长为20min”的信息。在一些可能的实施例中,图4B所示的界面上巡航时间段的设置除了可以通过拖动滑动条外,还可以通过键盘输入预设的时间段,本申请不做具体限定。需要说明的是,在图4B所示界面还可以设置某场景在对应的巡航时间段内的巡航顺序。例如,图4B中,可以看到,巡航路径中已设置好的场景1和场景2都对应9:00AM至10:00AM这一巡航时间段,且在该巡航时间段内,场景1的巡航顺序为1,场景2的巡航顺序为2,即先监控场景1后监控场景2。As shown in FIG. 4B , you can select a scene to be set on the interface, for example, scene 3, and drag the slider to set the cruise time period corresponding to scene 3. For example, drag the slider to occupy the time between 14:00 and 18:00. Time period, and set the monitoring duration of scene 3 to 20min, and finally click the "Save" button, thus completing the cruise configuration for scene 3. After clicking the "Save" button, the cruise path module in Figure 4B will add a new A message saying "The scene ID is 3, the cruise time period is 14:00PM-18:00PM, and the monitoring time is 20min". In some possible embodiments, the setting of the cruise time period on the interface shown in FIG. 4B can not only be set by dragging the slider, but also a preset time period may be input through the keyboard, which is not specifically limited in this application. It should be noted that, on the interface shown in FIG. 4B , the cruise sequence of a certain scene in the corresponding cruise time period can also be set. For example, in FIG. 4B , it can be seen that both scene 1 and scene 2 that have been set in the cruise path correspond to the cruise time period from 9:00AM to 10:00AM, and within the cruise time period, the cruise sequence of scene 1 is 1, and the cruise sequence of scene 2 is 2, that is, scene 1 is monitored first and then scene 2 is monitored.
需要说明的是,图4A或图4B只是一种巡航配置界面的示例,但本申请并不限定巡航配置界面仅为图4A或图4B所示样子,其可以是实现上述巡航配置功能的任意一个用户界面。It should be noted that FIG. 4A or FIG. 4B is only an example of a cruise configuration interface, but the present application does not limit the cruise configuration interface to the one shown in FIG. 4A or FIG. 4B , which can be any one of the above cruise configuration functions. User Interface.
需要说明的是,图3所示的界面和图4A(或图4B)所示的界面可以是分开、独立的两 个界面,图3所示的界面切换至图4A(或图4B)所示界面的条件可以是在完成场景配置后,也可以是源于进入巡航配置界面的跳转键。在一些可能的实施例中,图3所示的界面和图4A(或图4B)所示的界面也可以合并为一个界面,在该界面上可以一边为新增场景进行场景配置,一边为已添加好的场景进行巡航配置。本申请实施例对图3所示界面和图4A(或图4B)所示界面的显示形式不做具体限定。It should be noted that the interface shown in FIG. 3 and the interface shown in FIG. 4A (or FIG. 4B ) may be two separate and independent interfaces, and the interface shown in FIG. 3 is switched to that shown in FIG. 4A (or FIG. 4B ). The condition of the interface can be after the scene configuration is completed, or it can be derived from the jump key to enter the cruise configuration interface. In some possible embodiments, the interface shown in FIG. 3 and the interface shown in FIG. 4A (or FIG. 4B ) can also be combined into one interface, on which scene configuration can be performed for newly added scenes while scene configuration for existing scenes can be performed on the interface. Add a good scene for cruise configuration. The embodiments of the present application do not specifically limit the display forms of the interface shown in FIG. 3 and the interface shown in FIG. 4A (or FIG. 4B ).
需要说明的是,本申请对S101和S102的执行顺序不做具体限定,也就是说,可以先进行场景配置(S101)后进行巡航配置(S102),也可以先进行巡航配置(S102)后进行场景配置(S101),也可以同时进行场景配置(S101)和巡航配置(S102)。It should be noted that this application does not specifically limit the execution order of S101 and S102, that is to say, the scene configuration (S101) may be performed first and then the cruise configuration (S102) may be performed, or the cruise configuration (S102) may be performed first and then the cruise configuration (S102). The scene configuration ( S101 ), the scene configuration ( S101 ) and the cruise configuration ( S102 ) can also be performed at the same time.
需要说明的是,在完成上述S101和S102的配置后,服务器将球机的相关配置信息发送给球机。It should be noted that, after the configuration of the above S101 and S102 is completed, the server sends the related configuration information of the ball machine to the ball machine.
可以看到,实施上述球机的巡航配置方法,通过为球机巡航监控的多个场景中的每个场景绑定一个点位和至少一个业务,以及为每个场景设置巡航时间段等,实现以尽可能的少的球机满足同一场景下的不同业务需求或者不同场景下的不同业务需求,提高单个球机的使用率。It can be seen that, by implementing the cruise configuration method of the dome camera, binding a point and at least one service to each of the multiple scenarios monitored by the dome camera, and setting a cruise time period for each scene, etc. Use as few domes as possible to meet different business needs in the same scenario or different business needs in different scenarios, and improve the utilization rate of a single dome.
通过上述图2实施例所描述的方法完成对球机的巡航任务配置后,球机即可基于已存储的相关配置信息执行预设的巡航任务,实现不同场景的切换以及对采集到的场景图像执行至少一种业务处理。After completing the cruise task configuration of the dome camera by the method described in the above-mentioned embodiment of FIG. 2, the dome camera can execute the preset cruise task based on the stored relevant configuration information, so as to realize the switching of different scenes and the acquisition of scene images. Perform at least one business process.
参见图5,图5是本申请实施例提供的一种摄像方法,下该方法包括但不限于以下步骤:Referring to FIG. 5, FIG. 5 is a camera method provided by an embodiment of the present application, and the method includes but is not limited to the following steps:
S201、球机检测到当前时刻为切换至第二场景的时刻。S201. The dome camera detects that the current time is the time to switch to the second scene.
在本申请实施例中,巡航时间信息包括球机待巡航的多个场景中每个场景的标识和每个场景对应的巡航时间段,球机根据巡航时间信息检测到当前时刻为场景切换时刻,且当前时刻对应第二场景,另外,球机在当前时刻的上一时刻位于第一点位。需要说明的是,第二场景绑定了第二点位和第二业务。In the embodiment of the present application, the cruise time information includes the identification of each scene in the multiple scenes to be cruised by the dome camera and the cruise time period corresponding to each scene, and the dome camera detects that the current moment is the scene switching moment according to the cruise time information, And the current moment corresponds to the second scene, in addition, the ball camera is located at the first point at the last moment of the current moment. It should be noted that the second scenario is bound to the second point and the second service.
其中,第二点位表示球机的一种拍摄视野(或拍摄视角),第二业务可以是人脸检测、人脸识别、车辆检测、违停检测、超速检测、入侵检测、机非人检测、闯红灯检测、车辆碰撞检测、行人晕倒检测、偷车检测等。Among them, the second point represents a shooting field of view (or shooting angle) of the dome camera, and the second service can be face detection, face recognition, vehicle detection, illegal parking detection, speeding detection, intrusion detection, and non-human detection. , red light running detection, vehicle collision detection, pedestrian fainting detection, car theft detection, etc.
在一些可能的实施例中,在某一巡航时间段对应有多个场景时,巡航时间信息还包括每个场景对应的监控时长以及每个场景对应的巡航顺序。需要说明的是,巡航时间信息可以是预先存储于球机中,也可以是球机从服务器获取的,本申请不做具体限定。需要说明的是,除了巡航时间信息外,球机内还存储有场景参数信息,场景参数信息包括待巡航的多个场景中每个场景对应的点位和每个场景绑定的业务,当然,场景参数信息也可以是球机从服务器获取的。在一些可能的实施例中,巡航时间信息和场景参数信息除了可以是分开的两条信息,也可以是合并的一条信息,本申请不做具体限定。In some possible embodiments, when a certain cruise time period corresponds to multiple scenarios, the cruise time information further includes the monitoring duration corresponding to each scenario and the cruise sequence corresponding to each scenario. It should be noted that the cruise time information may be pre-stored in the dome machine, or may be acquired by the dome machine from a server, which is not specifically limited in this application. It should be noted that in addition to the cruise time information, the dome camera also stores scene parameter information. The scene parameter information includes the points corresponding to each scene in the multiple scenes to be cruised and the services bound to each scene. Of course, The scene parameter information can also be obtained by the dome camera from the server. In some possible embodiments, the cruise time information and the scene parameter information may be two separate pieces of information or a combined piece of information, which is not specifically limited in this application.
其中,当前时刻的上一时刻可以是当前时刻之前的预设时间间隔内的任意时刻,预设时间间隔可以是20ms、50ms、100ms、200ms、350ms、1s、4s或其他值,为了叙述方便,下文中当前时刻的上一时刻简称为上一时刻。Among them, the last moment of the current moment can be any moment within the preset time interval before the current moment, and the preset time interval can be 20ms, 50ms, 100ms, 200ms, 350ms, 1s, 4s or other values. For the convenience of description, Hereinafter, the previous moment of the current moment is simply referred to as the previous moment.
例如,巡航时间信息可以为表2所示的巡航时间表,如表2所示,假设某天的巡航时间段仅为9:00AM-10:00AM,该巡航时间段对应有两个场景,分别为场景1和场景2,其中,场景1对应的监控时长为10min,场景2对应的监控时长为20min,还可以设置在9:00AM-10:00AM这一巡航时间段内场景1的巡航顺序先于场景2的巡航顺序。参见表3,表 3是一种场景参数信息的示例,由表3可知,场景1绑定点位1和业务1,其中,点位1表示球机在场景1的拍摄视野;场景2绑定点位2和业务2,其中,点位2表示球机在场景2的拍摄视野,业务1和业务2不同。当然,在一些可能的实施例中,表2和表3也可以合并为一个表格。可以理解,在9:00AM-10:00AM这一巡航时间段内,球机会按照场景1-场景2-场景1-场景2轮流巡航。在此情况下,场景切换时刻可以是9:00AM、9:10AM、9:30AM和9:40AM。不妨以当前时刻为9:00AM为例,则当前时刻对应的场景为场景1,在此情况下,上一时刻可以是8:59:00AM、8:59:30AM等,本申请不做具体限定。For example, the cruise time information can be the cruise schedule shown in Table 2. As shown in Table 2, assuming that the cruise time period on a certain day is only 9:00AM-10:00AM, the cruise time period corresponds to two scenarios, respectively Scenario 1 and Scenario 2, where the monitoring duration corresponding to Scenario 1 is 10 minutes, and the monitoring duration corresponding to Scenario 2 is 20 minutes. You can also set the cruise sequence of Scenario 1 to be the first in the cruise time period of 9:00AM-10:00AM. in the cruise sequence of Scenario 2. See Table 3. Table 3 is an example of scene parameter information. It can be seen from Table 3 that scene 1 is bound to point 1 and service 1, where point 1 represents the shooting field of the dome camera in scene 1; scene 2 is bound Point 2 and business 2, where point 2 represents the shooting field of view of the dome camera in scene 2, and business 1 and business 2 are different. Of course, in some possible embodiments, Table 2 and Table 3 can also be combined into one table. It can be understood that during the cruising time period of 9:00AM-10:00AM, the ball will cruise in turn according to scene 1-scene 2-scene 1-scene 2. In this case, the scene switching times may be 9:00AM, 9:10AM, 9:30AM, and 9:40AM. Take the current moment as 9:00AM as an example, then the scene corresponding to the current moment is scene 1. In this case, the last moment can be 8:59:00AM, 8:59:30AM, etc., which is not specifically limited in this application .
结合上述图1A中摄像机内的各模块对该步骤进行说明,摄像机即为球机,在球机开机启动后,场景管理模块从球机的存储器中获取巡航时间信息和场景参数信息,并将巡航时间信息发送给巡航模块。球机中的巡航模块基于巡航时间信息检测到当前时刻为场景切换时刻且当前时刻与第二场景对应。This step will be described with reference to the modules in the camera in the above-mentioned FIG. 1A. The camera is the dome camera. After the dome camera is turned on, the scene management module obtains the cruise time information and scene parameter information from the memory of the dome camera, and will cruise the camera. The time information is sent to the cruise module. Based on the cruise time information, the cruise module in the dome camera detects that the current moment is the scene switching moment and the current moment corresponds to the second scene.
表2Table 2
表3table 3
场景标识Scene ID |
点位 | 业务business |
场景1scene 1 |
点位1 |
业务1 |
场景2 |
点位2 |
业务2 |
需要说明的是,表3中每个点位表示一个拍摄视野,基于上述表2和表3所示的配置信息,本申请实施例中球机在场景切换时刻执行场景切换的方式经概括主要有三种:It should be noted that each point in Table 3 represents a shooting field of view. Based on the configuration information shown in Tables 2 and 3 above, in this embodiment of the present application, the dome camera performs scene switching at the moment of scene switching. kind:
第一种、球机检测到当前时刻为切换至场景2的时刻,场景2由点位2和业务2确定,球机在当前时刻直接切换,即将自身调整至点位2采集第二图像,并对第二图像做业务2对应的处理。The first one is that the dome camera detects that the current moment is the moment to switch to scene 2. Scene 2 is determined by point 2 and service 2. The dome camera switches directly at the current moment, that is, adjusts itself to point 2 to collect the second image, and Perform processing corresponding to service 2 on the second image.
其中,这种情况具体包括情况A和情况B:Among them, this situation specifically includes situation A and situation B:
情况A:球机在上一时刻虽位于点位1,但球机并未启动工作(即未在点位1上采集图像以及未对点位1上采集的图像进行处理),则当球机检测到当前时刻为切换至场景2的时刻时,球机在当前时刻直接切换;Situation A: Although the dome camera was located at point 1 at the last moment, but the dome camera did not start to work (that is, the dome camera did not collect images at point 1 and did not process the images collected at point 1), the dome camera is When it is detected that the current moment is the moment to switch to scene 2, the dome camera will switch directly at the current moment;
情况B:球机在上一时刻于点位1采集第一图像并对第一图像做业务1的处理,则当球机检测到当前时刻为切换至场景2的时刻时,球机在当前时刻直接切换。Scenario B: The dome camera collected the first image at point 1 at the last moment and processed the first image with service 1, then when the dome camera detects that the current moment is the moment to switch to scene 2, the dome camera is at the current moment switch directly.
第二种、球机在上一时刻于点位1采集第一图像并对第一图像做业务1的处理,球机检测到当前时刻为切换至场景2的时刻,场景2由点位2和业务2确定,但当前时刻第一图像正在采集或者第一图像还未处理完,在此情况下,球机等待第一图像处理完毕后才执行切换,即将自身调整至点位2采集第二图像,并对第二图像做业务2对应的处理。Second, the dome camera collected the first image at point 1 at the last moment and processed the first image in service 1. The dome camera detects that the current moment is the moment to switch to scene 2, and scene 2 consists of point 2 and Service 2 is confirmed, but the first image is being collected at the current moment or the first image has not been processed yet. In this case, the dome camera waits for the first image to be processed before performing the switch, that is, adjusts itself to point 2 to collect the second image , and perform processing corresponding to service 2 on the second image.
第三种、球机在上一时刻于点位1采集第一图像并对第一图像做业务1的处理,球机检测到当前时刻为切换至场景2的时刻,但在第一时刻采集到的第一图像中检测到目标体或目标事件,在此情况下,球机继续在点位1采集第一图像以及对第一图像做业务1的处理,直至再次采集到的第一图像中未检测到目标体和/或目标事件时,球机才执行切换,即将自身调整至点位2采集第二图像,并对第二图像做业务2对应的处理。The third type is that the dome camera collected the first image at point 1 at the last moment and processed the first image in service 1. The dome camera detects that the current moment is the moment to switch to scene 2, but the dome camera has collected the first image at the first moment. The target object or target event is detected in the first image of When the target body and/or target event is detected, the dome camera will perform switching, that is, adjust itself to point 2 to collect a second image, and perform processing corresponding to service 2 on the second image.
需要说明的是,上述第一种的情况A包括下述S202-S206中上一时刻无对应的场景这个举例,第一种的情况B包括下述S202-S206中上一时刻对应的第一场景的优先级设置为非检 测优先这个举例以及上一时刻对应的第一场景的优先级设置为检测优先但第一图像中未检测到目标体或目标事件这个举例,上述第二种方式包括下述S202-S206中球机等待第一业务处理完毕再执行场景切换的举例,上述第三种方式包括下述S202-S206中上一时刻对应的第一场景的优先级设置为检测优先且第一图像中检测到目标体或目标事件导致延迟切换场景的举例。下面通过S202-S206具体说明上述三种场景切换方式的判断过程:It should be noted that the above-mentioned first case A includes the following example in S202-S206 where there is no corresponding scene at the last moment, and the first case B includes the following S202-S206 in the first scene corresponding to the last moment The priority is set to non-detection priority, and the priority of the first scene corresponding to the previous moment is set to detection priority, but no target or target event is detected in the first image. The second method includes the following In S202-S206, the dome machine waits for the first service to be processed before executing the scene switching. An example of a delayed switching scenario caused by a target object or target event detected in . The judging process of the above three scene switching modes is specifically described below through S202-S206:
S202、判断上一时刻是否有对应的场景。S202. Determine whether there is a corresponding scene at the last moment.
在本申请实施例中,球机在检测到当前时刻为场景切换时刻且当前时刻对应第二场景时,球机还需判断上一时刻是否有对应的场景,在确定上一时刻无对应的场景时,即说明球机在上一时刻虽位于第一点位,但球机并未启动工作,执行S203;在确定上一时刻有对应的场景时,执行S204。In the embodiment of the present application, when the dome camera detects that the current moment is the scene switching moment and the current moment corresponds to the second scene, the dome camera also needs to determine whether there is a corresponding scene at the previous moment, and determines that there is no corresponding scene at the previous moment. , it means that the dome machine is at the first point at the last moment, but the dome machine has not started to work, and execute S203; when it is determined that there is a corresponding scene at the last moment, execute S204.
具体地,判断上一时刻是否在巡航时间信息中的任意一个巡航时间段内,若上一时刻不在巡航时间信息中的任意一个巡航时间段内,则确定上一时刻无对应的场景;若上一时刻位于巡航时间信息中的某一个巡航时间段内,则确定上一时刻有对应的场景。Specifically, it is determined whether the last moment is within any cruise time period in the cruise time information, and if the last moment is not within any cruise time period in the cruise time information, it is determined that there is no corresponding scene at the last moment; If a moment is within a certain cruise time period in the cruise time information, it is determined that there is a corresponding scene at the previous moment.
例如,以上述表2所示的巡航时间信息为例说明上一时刻是否有对应的场景的判断过程:在9:00AM-10:00AM这一巡航时间段内,可以看出,场景切换时刻可以是9:00AM、9:10AM、9:30AM和9:40AM。若当前时刻为9:00AM,假设上一时刻为8:59AM,易知上一时刻不位于表2所示的9:00AM-10:00AM这唯一的巡航时间段内,故确定上一时刻无对应的场景;若当前时刻为9:10AM,假设上一时刻为9:09AM,由于9:09AM位于9:00AM-10:00AM这一巡航时间段内,故确定上一时刻有对应的场景,且上一时刻对应场景1。For example, take the cruise time information shown in Table 2 above as an example to illustrate the process of judging whether there is a corresponding scene at the last moment: in the cruise time period of 9:00AM-10:00AM, it can be seen that the scene switching time can be It is 9:00AM, 9:10AM, 9:30AM and 9:40AM. If the current time is 9:00AM and the last time is 8:59AM, it is easy to know that the last time is not within the only cruise time period of 9:00AM-10:00AM shown in Table 2. The corresponding scene; if the current time is 9:10AM, assuming that the previous time is 9:09AM, since 9:09AM is within the cruise time period of 9:00AM-10:00AM, it is determined that there is a corresponding scene at the previous time. And the last moment corresponds to scene 1.
结合上述图1A中摄像机内的各模块对该步骤进行说明,在巡航模块基于巡航时间信息检测到当前时刻为场景切换时刻且当前时刻对应第二场景时,巡航模块向场景管理模块发送场景切换请求以获取第二场景对应的第二点位和第二业务的标识,场景切换请求包括第二场景的标识。场景管理模块接收到来自巡航模块的场景切换切请求后,结合巡航时间信息判断上一时刻是否有对应的场景,在确定上一时刻无对应的场景时,场景管理模块向巡航模块发送第二点位以及向业务管理模块发送第一指令,第一指令包括第二业务的标识,第一指令用于指示业务模块根据第二业务的标识开启第二业务。需要说明的是,第二点位和第二业务的标识是场景管理模块从场景参数信息中根据第二场景的标识查找到的。在确定上一时刻有对应的场景时,例如,第一场景,场景管理模块的处理过程可参考下述描述。This step will be described in conjunction with the modules in the camera in the above-mentioned FIG. 1A. When the cruise module detects that the current moment is the scene switching moment based on the cruise time information and the current moment corresponds to the second scene, the cruise module sends a scene switching request to the scene management module. In order to obtain the identifier of the second point and the second service corresponding to the second scene, the scene switching request includes the identifier of the second scene. After the scene management module receives the scene switching request from the cruise module, it judges whether there is a corresponding scene at the last moment in combination with the cruise time information. When it is determined that there is no corresponding scene at the last moment, the scene management module sends the second point to the cruise module. bit and send a first instruction to the service management module, where the first instruction includes the identifier of the second service, and the first instruction is used to instruct the service module to start the second service according to the identifier of the second service. It should be noted that the identifiers of the second point and the second service are found by the scenario management module from the scenario parameter information according to the identifiers of the second scenario. When it is determined that there is a corresponding scene at the last moment, for example, the first scene, the processing procedure of the scene management module may refer to the following description.
S203、启动第二业务以及从第一点位切换至第二点位采集第二图像。S203, start the second service and switch from the first point to the second point to collect the second image.
在本申请实施例中,在确定上一时刻无对应的场景时,即说明球机在上一时刻虽位于第一点位,但球机并未启动工作,球机确定在当前时刻进行场景切换操作,即启动第二业务以及从第一点位切换至第二点位采集第二图像。可以理解,该例子相当于与上述第一种方式中的情况A对应。In the embodiment of the present application, when it is determined that there is no corresponding scene at the last moment, it means that the dome camera is at the first point at the last moment, but the dome camera has not started to work, and the dome camera is determined to perform scene switching at the current moment. operation, that is, starting the second service and switching from the first point to the second point to capture the second image. It can be understood that this example corresponds to the case A in the first manner above.
需要说明的是,第二点位和第二业务的标识可以是球机从场景参数信息中根据第二场景的标识查找到的,场景参数信息可以预先存储于球机中。It should be noted that the identifiers of the second point and the second service may be found by the dome camera from the scene parameter information according to the identifier of the second scene, and the scene parameter information may be pre-stored in the dome camera.
例如,以上述表2和表3为例,若当前时刻为9:00AM(场景切换时刻),则当前时刻对应场景1,且依据表2所示的巡航时间信息易知上一时刻无对应的场景,在此情况下,球机确定在当前时刻进行场景切换,球机根据表3可知场景1对应点位1和业务1,在此情况下,球机启动业务1,并将自身的点位调整至点位1采集第一图像,且在场景1对应的监控时长内,即9:00AM-9:10AM,球机对于点位1处采集到的第一图像做业务1的处理。For example, taking the above Table 2 and Table 3 as examples, if the current time is 9:00AM (scene switching time), the current time corresponds to Scene 1, and it is easy to know that there is no corresponding time at the previous time according to the cruise time information shown in Table 2. Scenario, in this case, the dome camera determines to switch the scene at the current moment. According to Table 3, the dome camera can know that scene 1 corresponds to point 1 and service 1. In this case, the dome camera starts service 1 and switches its own point Adjust to point 1 to collect the first image, and within the monitoring duration corresponding to scene 1, that is, 9:00AM-9:10AM, the dome camera will process the first image collected at point 1 for service 1.
需要说明的是,在第二业务包括多个业务的情况下,在第二点位上采集到第二图像后, 可以对第二图像同时执行这多个业务,也可以对第二图像依次执行这多个业务中的每个业务,本申请不做具体限定。例如,若9:00AM-9:10AM对应场景1,假设场景1绑定了点位1、业务1和业务2,则在点位1上采集到场景图像后,可以对该场景图像同时进行业务1对应的检测和业务2对应的检测,也可以对该场景图像先进行业务1对应的检测后执行业务2对应的检测,还可以在9:00AM-9:05AM进行业务2的检测且于9:05AM-9:10AM进行业务1的检测。It should be noted that, in the case where the second service includes multiple services, after the second image is collected at the second point, the multiple services can be performed on the second image at the same time, or the second image can be sequentially performed on the second image. Each of the multiple services is not specifically limited in this application. For example, if 9:00AM-9:10AM corresponds to scene 1, assuming that scene 1 is bound to point 1, service 1 and service 2, after the scene image is collected on point 1, the scene image can be used for services at the same time The detection corresponding to 1 and the detection corresponding to service 2 can also be performed on the scene image first, and then the detection corresponding to service 2 can be performed. : 05AM-9:10AM for the detection of service 1.
结合图1A中摄像机内的各模块对该步骤进行说明,业务模块接收场景管理模块发送的第一指令,第一指令包括第二业务的标识,且巡航模块接收到场景管理模块发送的第二点位,则业务模块根据第一指令中第二业务的标识启动第二业务,巡航模块将球机从上一时刻的第一点位切换至第二点位。This step will be described in conjunction with each module in the camera in FIG. 1A , the service module receives the first instruction sent by the scene management module, the first instruction includes the identifier of the second service, and the cruise module receives the second point sent by the scene management module. bit, the service module starts the second service according to the identifier of the second service in the first instruction, and the cruise module switches the dome camera from the first point at the last moment to the second point.
需要说明的是,对于球机从第二点位切换至第一点位的时延,本申请实施例可忽略不计。It should be noted that, for the time delay of the ball camera switching from the second point to the first point, the embodiment of the present application can be ignored.
S204、当上一时刻对应第一场景时,关闭第一业务,启动第二业务以及从第一点位切换至第二点位采集第二图像。S204. When the last moment corresponds to the first scene, close the first service, start the second service, and switch from the first point to the second point to collect the second image.
在本申请实施例中,若上一时刻与第一场景对应,且第一场景与第一点位和第一业务绑定,在此情况下,关闭第一业务,并启动第二业务以及从第一点位切换至第二点位采集第二图像。In the embodiment of the present application, if the last moment corresponds to the first scene, and the first scene is bound to the first point and the first service, in this case, the first service is closed, the second service is activated, and the slave The first point is switched to the second point to capture the second image.
需要说明的是,球机开启第二业务以及切换至第二点位的过程具体可参考上述S203相关描述,为例说明书的简洁,在此不再赘述。It should be noted that, for the process of enabling the second service and switching to the second point, the ball machine may refer to the above-mentioned description of S203 for details.
需要说明的是,本申请实施例对关闭第一业务、启动第二业务以及从第一点位切换至第二点位这三者的执行顺序不做具体限定,例如,可以一先一后执行,也可以同时执行。It should be noted that, the embodiment of the present application does not specifically limit the execution order of the three of closing the first service, starting the second service, and switching from the first point to the second point. For example, it can be executed one by one. , can also be executed simultaneously.
例如,以上述表2和表3为例,若当前时刻为9:10AM(场景切换时刻),根据表2可知当前时刻对应场景2,假设上一时刻(例如9:09AM),依据表2易知上一时刻对应场景1以及场景1与点位1和业务1绑定,球机确定在当前时刻进行场景切换,球机根据表2和表3知晓场景2对应点位2和业务2,球机可以关闭业务1,然后开启业务2,并将自身从点位1调整至点位2采集场景好图像。For example, taking the above Tables 2 and 3 as examples, if the current time is 9:10AM (scene switching time), it can be seen from Table 2 that the current time corresponds to Scene 2, assuming the previous time (for example, 9:09AM), according to Table 2 Knowing that the last moment corresponds to scene 1 and that scene 1 is bound to point 1 and service 1, the dome camera determines to switch the scene at the current moment, and the dome camera knows that scene 2 corresponds to point 2 and service 2 according to Table 2 and Table 3. The machine can turn off service 1, then turn on service 2, and adjust itself from point 1 to point 2 to collect a good image of the scene.
在一些可能的实施例中,若上一时刻与第一场景对应,第一场景与第一点位、第一业务绑定,球机检测到当前时刻为切换至第二场景的时刻,第二场景与第二点位、第二业务对应,但当前时刻第一图像正在采集或者正在对第一图像执行第一业务的过程中,在此情况下,球机等待第一图像处理完毕后,才关闭第一业务,启动第二业务以及从第一点位切换至第二点位采集第二图像。可以理解,该例子相当于与上述第二种方式对应。In some possible embodiments, if the last moment corresponds to the first scene, the first scene is bound to the first point and the first service, the dome camera detects that the current moment is the moment to switch to the second scene, and the second The scene corresponds to the second point and the second service, but at the current moment the first image is being collected or the first service is being performed on the first image. In this case, the dome camera waits for the first image to finish processing before The first service is turned off, the second service is started, and the second image is collected by switching from the first point to the second point. It can be understood that this example corresponds to the second manner described above.
结合图1A中摄像机内的各模块对该步骤进行说明,场景管理模块在确定上一时刻与第一场景对应,场景管理模块基于场景参数信息确定第一场景与第一业务和第一点位绑定,故向业务模块发送第二指令,第二指令包括第一业务的标识,第二指令用于指示业务模块关闭第一业务,另外,场景管理模块还向巡航模块发送第一点位以及向业务模块发送第一指令,第一指令包括第二业务的标识,第一指令用于指示业务模块启动第二业务。相应地,业务模块接收到第二指令后,根据第二指令关闭第一业务,以及在接收到第一指令后,根据第一指令启动第二业务,并将球机从上一时刻的第一点位切换至第二点位。This step will be described in conjunction with each module in the camera in FIG. 1A . The scene management module determines that the last moment corresponds to the first scene, and the scene management module determines that the first scene is bound to the first service and the first point based on the scene parameter information. Therefore, the second instruction is sent to the service module. The second instruction includes the identifier of the first service. The second instruction is used to instruct the service module to close the first service. In addition, the scene management module also sends the first point to the cruise module and sends it to the cruise module. The service module sends a first instruction, where the first instruction includes an identifier of the second service, and the first instruction is used to instruct the service module to start the second service. Correspondingly, after receiving the second instruction, the service module closes the first service according to the second instruction, and after receiving the first instruction, starts the second service according to the first instruction, and switches the dome camera from the first The point is switched to the second point.
需要说明的是,业务的启动或关闭耗时导致的时延,本申请实施例对该时延忽略不计。It should be noted that, the delay caused by the time-consuming start or shutdown of the service is ignored in this embodiment of the present application.
S205、在第一场景对应的优先级为检测优先时,判断在第一图像中是否检测到目标体或目标事件。S205. When the priority corresponding to the first scene is detection priority, determine whether a target object or a target event is detected in the first image.
可选地,在一些可能的实施例中,场景参数信息中还包括每个场景对应的优先级,优先 级包括检测优先和非检测优先,每个场景对应的优先级表示每个场景对应的业务的优先级。在此情况下,球机在确定上一时刻对应第一场景的情况下,还需判断第一场景对应的优先级是否为检测优先,在确定第一场景对应的优先级为检测优先的情况下,由于第一场景与第一点位、第一业务绑定,还需判断对第一图像执行第一业务后是否检测到目标体或目标事件,第一图像为球机于上一时刻在第一点位处采集到的。需要说明的是,若第一业务用于检测目标体,则只需判断在第二图像中是否检测到目标体;若第一业务用于检测目标事件,则只需判断在第一图像中是否检测到目标事件;若第一业务用于检测目标体和目标事件,则需判断第一图像中是否检测到目标体或目标事件。综上,若球机在第一图像中未检测到目标体或未检测到目标事件或者未检测目标体和目标事件,则执行上述S204;若球机在第一图像中检测到目标体或目标事件,则执行S206。Optionally, in some possible embodiments, the scenario parameter information also includes a priority corresponding to each scenario, the priority includes a detection priority and a non-detection priority, and the priority corresponding to each scenario represents the service corresponding to each scenario. priority. In this case, when the dome camera determines that the last moment corresponds to the first scene, it also needs to determine whether the priority corresponding to the first scene is detection priority, and if it is determined that the priority corresponding to the first scene is detection priority , since the first scene is bound to the first point and the first service, it is also necessary to determine whether the target object or target event is detected after the first service is performed on the first image. Collected at a point. It should be noted that if the first service is used to detect the target body, it only needs to judge whether the target body is detected in the second image; if the first service is used to detect the target event, it only needs to judge whether the target body is detected in the first image. The target event is detected; if the first service is used to detect the target body and the target event, it is necessary to determine whether the target body or the target event is detected in the first image. To sum up, if the dome camera does not detect the target body or the target event or the target body and the target event in the first image, execute the above S204; if the dome camera detects the target body or the target in the first image event, execute S206.
以第一图像中未检测到目标体为例,所谓球机在第一图像中未检测到目标体包含以下几种情况:(1)第一图像仅包括单帧图像,对该单帧图像执行第一业务以进行检测处理,未检测到目标体;(2)第一图像包括多帧图像,对多帧图像中的每帧图像执行第一业务,多帧图像中的最后一帧图像中未检测到目标体;(3)第一图像包括多帧图像,对多帧图像中的每帧图像执行第一业务,多帧图像中的每帧图像中均未检测到目标体。同理,关于第一图像中未检测到目标事件,或者,第一图像中未检测到目标体和目标事件可参考上述关于第一图像中未检测到目标体的相关叙述。Taking the target body not detected in the first image as an example, the so-called ball camera does not detect the target body in the first image, including the following situations: (1) The first image only includes a single frame image, and the single frame image is executed. The first service is used for detection processing, and the target body is not detected; (2) the first image includes multiple frames of images, and the first service is performed on each frame of the multiple frames of images. A target body is detected; (3) the first image includes multiple frames of images, the first service is performed on each frame of the multiple frames of images, and no target body is detected in each of the multiple frames of images. Similarly, for the target event not detected in the first image, or the target object and target event not detected in the first image, reference may be made to the above description about the target object not detected in the first image.
其中,目标体、目标事件与业务对应。例如,若业务为人脸检测,则目标体为人脸;若业务为车辆检测,则目标体为车辆;若业务为机非人检测,则目标体为机动车、非机动车和行人;若业务为车辆违停检测,则目标事件为车辆违停;若业务为车辆碰撞检测,则目标事件为车辆碰撞。若业务包括人脸检测和车辆检测,则目标体包括人脸和车辆。在一些可能的实施例中,若业务为违停检测和人脸检测,则目标体为人脸以及目标事件为车辆违停。关于目标体和目标事件的说明具体可参考S101中的相关叙述,在此不再赘述。Among them, the target body and the target event correspond to the business. For example, if the business is face detection, the target body is a face; if the business is vehicle detection, the target body is a vehicle; if the business is machine non-person detection, the target body is motor vehicles, non-motor vehicles and pedestrians; if the business is Vehicle illegal parking detection, the target event is vehicle illegal parking; if the business is vehicle collision detection, the target event is vehicle collision. If the business includes face detection and vehicle detection, the target body includes faces and vehicles. In some possible embodiments, if the services are illegal parking detection and face detection, the target body is a human face and the target event is a vehicle illegal parking. For the description of the target body and the target event, reference may be made to the relevant description in S101 , which will not be repeated here.
在一些可能的实施例中,当球机检测到当前时刻为切换至第二场景的时刻,且第二场景与第二点位、第二业务绑定,若上一时刻与第一场景对应,第一场景与第一点位、第一业务绑定,若第一业务的优先级为非检测优先,则执行上述S204,即关闭第一业务,启动第二业务以及从第一点位切换至第二点位采集第二图像。可以理解,该例子相当于与上述第一种方式中的情况B对应。In some possible embodiments, when the ball machine detects that the current moment is the moment to switch to the second scene, and the second scene is bound to the second point and the second service, if the previous moment corresponds to the first scene, The first scenario is bound to the first point and the first service. If the priority of the first service is non-detection priority, the above S204 is executed, that is, the first service is turned off, the second service is started, and the switch from the first point to the first service is performed. A second image is acquired at the second point. It can be understood that this example corresponds to the case B in the first manner above.
需要说明的是,在某一场景与多个业务绑定的情况下,这多个业务的优先级设置可以是相同的,则该场景对应的优先级为检测优先或非检测优先中的任意一个。在一些可能的实施例,在某一场景与多个业务绑定的情况下,这多个业务的优先级设置也可以是不同的,则该场景对应的优先级包括检测优先和非检测优先,在此情况下,上述确定第一场景对应的优先级为检测优先这一条件是指确定第一场景对应的优先级中有检测优先。It should be noted that when a scenario is bound to multiple services, the priority settings of these multiple services can be the same, and the priority corresponding to the scenario is either detection priority or non-detection priority. . In some possible embodiments, when a certain scenario is bound to multiple services, the priority settings of the multiple services may also be different, and the priorities corresponding to the scenario include detection priority and non-detection priority. In this case, the above-mentioned condition of determining that the priority corresponding to the first scene is detection priority refers to determining that the priority corresponding to the first scene has detection priority.
S206、延迟关闭第一业务以及延迟切换至第二场景。S206. Delay closing the first service and delay switching to the second scenario.
可选地,在本申请实施例中,球机在确定上一时刻对应第一场景且第一场景对应的优先级为检测优先的情况下,第一场景与第一点位和第一业务绑定,若在第一点位处采集到的第一图像中检测到目标体或目标事件,则延迟关闭第一业务以及延迟切换至第二场景,其中,延迟切换至第二场景是指延迟启动第二业务以及延迟从第一点位切换至第二点位采集第二图像。一具体实施中,可以延迟关闭第一业务直至球机于第一点位处再次采集到的第一图像中未检测到目标体和/或目标事件。可以理解,该例子相当于与上述第三种方式对应。Optionally, in this embodiment of the present application, when the dome camera determines that the last moment corresponds to the first scene and the priority corresponding to the first scene is detection priority, the first scene is bound to the first point and the first service. If a target object or a target event is detected in the first image collected at the first point, the first service is delayed and the first service is delayed and switched to the second scene, where the delayed switch to the second scene refers to delayed startup The second service and delay are switched from the first point to the second point to capture the second image. In a specific implementation, the closing of the first service may be delayed until no target body and/or target event is detected in the first image again collected by the dome camera at the first point. It can be understood that this example corresponds to the third manner described above.
需要说明的是,由于第一业务延迟关闭,故球机切换至第二场景的时刻也会延迟。若当 前时刻达到某巡航时间段的停止时刻且当前时刻无对应的场景时,则关闭球机正在运行的业务,球机停止工作直至下一个巡航时间段的起始时刻。It should be noted that since the first service is delayed and closed, the moment when the dome camera switches to the second scene will also be delayed. If the current time reaches the stop time of a certain cruise time period and there is no corresponding scene at the current time, the running service of the dome camera will be closed, and the dome camera will stop working until the start time of the next cruise time period.
例如,参见表4,表4在表3的基础上增加了“优先级”设置信息,由表4可知,业务1的优先级为“检测优先”,业务2的优先级为“非检测优先”。结合表2和表4对S205和S206进行进一步说明,若当前时刻为切换至场景2的时刻9:10AM(场景切换时刻),检测到上一时刻(例如9:09AM)对应场景1,依据表4获得场景1对应的优先级为检测优先,假设业务1为人脸检测即目标体为人脸:For example, referring to Table 4, Table 4 adds "priority" setting information on the basis of Table 3. It can be seen from Table 4 that the priority of service 1 is "detection priority", and the priority of service 2 is "non-detection priority" . S205 and S206 are further described in conjunction with Table 2 and Table 4. If the current moment is the moment of switching to scene 2 at 9:10AM (scene switching moment), the previous moment (for example, 9:09AM) corresponding to scene 1 is detected, according to the table 4 Obtain the priority corresponding to scene 1 as detection priority, assuming that business 1 is face detection, that is, the target body is a face:
在此情况下,一具体实施中,球机查看距离当前时刻9:10AM的最近时间在点位1处采集到的第一图像中是否检测到人脸,若球机在第一图像中检测到人脸,在此情况下,球机暂不关闭业务1,球机仍继续在点位1上采集第一图像并对第一图像进行人脸检测,假设直至9:12AM采集到的第一图像中未检测人脸,换句话说,即从9:10AM开始至9:12AM之间,球机一直位于点位1采集第一图像,且对第一图像进行人脸检测且检测结果均为检测到人脸,但于9:12AM在点位1处采集的第一图像中未检测到人脸,则球机即可在9:12AM关闭业务1,并启动业务2以及将球机从点位1调整至点位2,也就是说,球机延迟至9:12AM完成由场景1切换至场景2;In this case, in a specific implementation, the dome camera checks whether a face is detected in the first image collected at point 1 at the nearest time from 9:10AM to the current time. If the dome camera detects a face in the first image Face, in this case, the dome camera will not close service 1 for the time being, and the dome camera will continue to collect the first image at point 1 and perform face detection on the first image, assuming that the first image collected until 9:12AM In other words, from 9:10AM to 9:12AM, the dome camera has been located at point 1 to collect the first image, and the face detection is performed on the first image and the detection results are all detections. To the face, but no face is detected in the first image collected at point 1 at 9:12AM, the dome can close service 1 at 9:12AM, start service 2, and remove the dome from the point. 1 is adjusted to point 2, that is to say, the dome camera is delayed until 9:12AM to switch from scene 1 to scene 2;
另一具体实施中,球机查看距离当前时刻9:10AM的最近时间在点位1处采集到的第一图像中是否检测到人脸,若在该第一图像中未检测到人脸,则球机可在9:10AM进行场景切换操作,即先关闭业务1,然后开启业务2,并将自身从点位1调整至点位2采集第二图像。In another specific implementation, the dome camera checks whether a human face is detected in the first image collected at point 1 at the nearest time of 9:10AM from the current time. If no human face is detected in the first image, then The dome camera can perform the scene switching operation at 9:10AM, that is, first close service 1, then open service 2, and adjust itself from point 1 to point 2 to collect the second image.
又例如,结合表2和表4进行说明,由表2可知巡航时间段为9:00AM-10:00AM,场景1对应的监控时长(10min)与场景2对应的监控时长(20min)之和小于巡航时间段9:00AM-10:00AM对应的时长(1h),参见图6的(1),图6的(1)所示的为该巡航时间段内在不延迟的情况下发生场景切换的时刻,即在9:00AM-10:00AM内可以轮流巡航场景1-场景2-场景1-场景2,对应的时刻依次为9:00AM、9:10AM、9:30AM和9:40AM。当某一场景的切换发生延迟时,后续场景切换的形式主要由以下两种实施方式:For another example, in conjunction with Table 2 and Table 4, it can be seen from Table 2 that the cruise time period is 9:00AM-10:00AM, and the sum of the monitoring duration (10min) corresponding to scenario 1 and the monitoring duration (20min) corresponding to scenario 2 is less than The duration (1h) corresponding to the cruise time period 9:00AM-10:00AM, see (1) in Figure 6. Figure 6 (1) shows the time when scene switching occurs without delay within the cruise time period , that is, during 9:00AM-10:00AM, you can take turns cruising scene 1-scene 2-scene 1-scene 2, and the corresponding times are 9:00AM, 9:10AM, 9:30AM and 9:40AM in sequence. When the switching of a certain scene is delayed, the form of subsequent scene switching is mainly implemented in the following two ways:
一具体实施中,参见图6的(2),若第一次从场景1切换至场景2的时刻由9:10AM延迟至9:12AM,则其他场景切换时刻自动后延,即下一个场景切换时刻由9:30AM变为9:32AM,由于场景2对应的优先级为非检测优先,故9:32AM切换至场景1;若第二次从场景1切换至场景2的时刻不发生延迟,即为9:42AM,则从9:42AM起,球机位于点位2,虽然场景2对应的监控时长为20min,但巡航时间段9:00AM-10:00AM的停止时刻为10:00AM且10:00AM无对应的场景,故在10:00AM关闭业务2,球机停止工作;In a specific implementation, referring to (2) in FIG. 6 , if the moment of switching from scene 1 to scene 2 for the first time is delayed from 9:10AM to 9:12AM, the switching time of other scenes is automatically delayed, that is, the next scene switching The time changes from 9:30AM to 9:32AM. Since the priority corresponding to scene 2 is non-detection priority, it switches to scene 1 at 9:32AM; if there is no delay when switching from scene 1 to scene 2 for the second time, that is If it is 9:42AM, from 9:42AM, the dome camera is located at point 2. Although the monitoring time corresponding to scene 2 is 20min, the stop time of the cruise time period 9:00AM-10:00AM is 10:00AM and 10:00AM. There is no corresponding scene at 00AM, so business 2 is closed at 10:00AM, and the dome camera stops working;
另一具体实施中,参见图6的(3),若第一次从场景1切换至场景2的时刻由9:10AM延迟至9:12AM,若其他场景切换时刻不发生后延,即自9:12AM起切换至场景2,在场景2中停留至9:30AM,且第一次从场景2切换至场景1的时刻仍为9:30AM,假设在9:40AM,由于场景1对应的优先级为检测优先,若第二次场景1切换至场景2不发生延迟,故于9:40AM切换至场景2,由于10:00AM无对应的场景且10:00AM为巡航时间段9:00AM-10:00AM的停止时刻,故于10:00AM关闭业务2,球机停止工作。In another specific implementation, referring to (3) of FIG. 6 , if the moment of switching from scene 1 to scene 2 for the first time is delayed from 9:10AM to 9:12AM, if the delay of other scene switching times does not occur, that is, from 9 : Switch to scene 2 from 12AM, stay in scene 2 until 9:30AM, and the first time to switch from scene 2 to scene 1 is still 9:30AM, assuming 9:40AM, due to the priority corresponding to scene 1 For detection priority, if there is no delay when switching from scene 1 to scene 2 for the second time, switch to scene 2 at 9:40AM, because there is no corresponding scene at 10:00AM and 10:00AM is the cruise time period 9:00AM-10: 00AM stop time, so business 2 is closed at 10:00AM, and the dome camera stops working.
表4Table 4
场景标识Scene ID | 点位point |
业务 | 优先级priority |
场景1scene 1 |
点位1 |
业务1 |
检测优先 |
场景2scene 2 |
点位2 |
业务2 |
非检测优先Non-detection priority |
结合图1A中摄像机内的各模块对该S205和S206进行说明,场景管理模块在确定上一 时刻对应第一场景时,判断第一场景对应的优先级是否为检测优先,若第一场景对应的优先级为非检测优先时,可参考上述S204的相关描述,在此不再赘述;若第一场景对应的优先级为检测优先,则进一步判断在第一点位处采集到的第一图像中是否检测到目标体或目标事件,若球机在第一图像中未检测到目标体或目标事件,可参考上述S204的相关描述,在此不再赘述;若确定在第一图像中检测到目标体或目标事件,则延迟向业务模块发送第二指令,第二指令用于指示业务模块关闭第一业务,以及,延迟向业务模块发送第一指令,第一指令用于指示业务模块开启第二业务且延迟向巡航模块发送第二点位。S205 and S206 will be described in conjunction with each module in the camera in FIG. 1A , when the scene management module determines that the first scene corresponds to the last moment, it determines whether the priority corresponding to the first scene is detection priority, if the first scene corresponds to the first scene. When the priority is non-detection priority, you can refer to the relevant description of the above S204, which will not be repeated here; if the priority corresponding to the first scene is detection priority, it is further judged that the first image collected at the first point is in the first image. Whether the target body or target event is detected, if the dome camera does not detect the target body or target event in the first image, you can refer to the relevant description of the above S204, which will not be repeated here; if it is determined that the target is detected in the first image. body or target event, then delay sending the second instruction to the service module, the second instruction is used to instruct the service module to close the first service, and delay sending the first instruction to the service module, the first instruction is used to instruct the service module to open the second service service and delay sending the second point to the cruise module.
在一些可能的实施例中,球机对每个场景对应的点位处采集到的场景图像执行该场景对应的业务,在获得检测结果后,还可以将检测结果发送给服务器进行显示。In some possible embodiments, the dome camera executes the service corresponding to the scene on the scene image collected at the point corresponding to each scene, and after obtaining the detection result, can also send the detection result to the server for display.
下面从另一个角度(静态)对本申请实施例进行描述:The embodiments of the present application will be described below from another perspective (statically):
实施上述图2实施例所描述的配置方法后,可以实现球机的分时复用,即球机在不同的时刻位于不同的点位执行不同的业务。此外,球机也可以在不同的时刻位于同一点位执行不同的业务。具体地,球机在第一时刻采集第一图像,并对第一图像执行第一业务;球机在第二时刻采集第二图像,并对第二图像执行第二业务,第一时刻与第二时刻不同,第一业务和第二业务不同。需要说明的是,球机在第一时刻和第二时刻位于同一地理位置。After implementing the configuration method described in the embodiment of FIG. 2, the time-division multiplexing of the ball camera can be realized, that is, the ball camera is located at different points at different times to perform different services. In addition, the ball machine can also perform different services at the same point at different times. Specifically, the dome camera collects the first image at the first moment and performs the first service on the first image; the dome camera collects the second image at the second moment and performs the second service on the second image. The second time is different, and the first business and the second business are different. It should be noted that the dome camera is located at the same geographic location at the first moment and the second moment.
关于第一业务、第二业务的说明:第一业务和第二业务均为用于检测监控环境中的目标体或目标事件的算法或程序。第一业务包括以下业务中的至少一个:人脸检测、人脸识别、车辆检测、违停检测、超速检测、入侵检测、机非人检测、闯红灯检测、司机非正规驾驶检测(司机双手脱离方向盘、司机在驾驶舱中未系安全带等)、交通事故检测(车辆碰撞、车辆撞人、车撞公共设施等)、行人晕倒检测、偷车检测等。同理,第二业务也包括上述业务中的至少一个。需要说明的是,第一业务与第二业务不同,例如,第一业务可以是人脸检测,第二业务可以包括人脸检测和车辆检测,或者,第二业务为违停检测。Explanation on the first service and the second service: the first service and the second service are both algorithms or programs for detecting target objects or target events in the monitoring environment. The first service includes at least one of the following services: face detection, face recognition, vehicle detection, illegal parking detection, speeding detection, intrusion detection, non-human detection, red light running detection, and driver's irregular driving detection (driver's hands off the steering wheel) , the driver is not wearing a seat belt in the cockpit, etc.), traffic accident detection (vehicle collision, vehicle collision, vehicle collision with public facilities, etc.), pedestrian fainting detection, car theft detection, etc. Similarly, the second service also includes at least one of the above services. It should be noted that the first service is different from the second service. For example, the first service may be face detection, the second service may include face detection and vehicle detection, or the second service may be illegal parking detection.
在一些可能的实施例中,球机在第二时刻采集第二图像之前,球机需将自身在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野,换句话说,球机在第二时刻采集第二图像之前,可以先调整自身的拍摄视野。In some possible embodiments, before the dome camera collects the second image at the second moment, the dome camera needs to adjust its first shooting field of view at the first moment to the second shooting field of view at the second moment, in other words, Before the dome camera collects the second image at the second moment, it can adjust its own shooting field of view.
其中,拍摄视野也可以称点位,可以通过调整球机的云台下述参数中的一个或多个以调整球机的拍摄视野:平移Pan、倾斜Tilt和缩放Zoom,关于这三个参数的说明可参考上述相关叙述,在此不再赘述。Among them, the shooting field of view can also be called a point, and the shooting field of view of the dome camera can be adjusted by adjusting one or more of the following parameters of the PTZ of the dome camera: Pan Pan, Tilt Tilt and Zoom Zoom. For the description, reference may be made to the above-mentioned related descriptions, which will not be repeated here.
在一些可能的实施例中,球机在第一时刻采集第一图像之前,球机预先接收了第一时间段与第一业务的绑定关系,以及接收了第二时间段与第二业务的绑定关系,其中,第一时刻属于第一时间段,第二时刻属于第二时间段。In some possible embodiments, before the dome camera collects the first image at the first moment, the dome camera pre-receives the binding relationship between the first time period and the first service, and receives the binding relationship between the second time period and the second service in advance. A binding relationship, wherein the first moment belongs to the first time period, and the second moment belongs to the second time period.
需要说明的是,第一时刻为第一时间段内的任意时刻(包括第一时间段的起始时刻和终止时刻),第二时刻为第二时间段内的任意时刻(包括第二时间段的起始时刻和终止时刻)。第一时间段和第二时间段可以是相邻的两个时间段,也可以是间隔的两个时间段,本申请不做具体限定。It should be noted that the first moment is any moment in the first period of time (including the start moment and the end moment of the first period of time), and the second moment is any moment in the second period of time (including the second period of time). start time and end time). The first time period and the second time period may be two adjacent time periods, or may be two spaced time periods, which are not specifically limited in this application.
例如,假设实施上述图2实施例所述的配置方法设置了8:00AM-8:20AM与第一拍摄视野、第一业务绑定以及8:30AM-8:40AM与第二拍摄视野、第二业务绑定,可以理解,则8:00AM-8:20AM为第一时间段、8:30AM-8:40AM为第二时间段,在此情况下,第一时间段和第二时间段为间隔的两个时间段。又例如,假设经过上述图3的配置后设置了8:00AM-8:10AM与第一拍摄视野、第一业务绑定以及8:10AM-8:30AM与第二拍摄视野、第二业务绑定,可以理解,则8:00AM-8:10AM为第一时间段、8:10AM-8:30AM为第二时间段, 在此情况下,第一时间段和第二时间段为相邻的两个时间段。在一些可能的实施例中,第一时间段和第二时间段还可以是同一巡航时间段内相邻的两个时间段。For example, it is assumed that 8:00AM-8:20AM is bound with the first shooting field of view and the first service, and 8:30AM-8:40AM is bound with the second shooting field of view, the second shooting field It is understood that 8:00AM-8:20AM is the first time period, and 8:30AM-8:40AM is the second time period. In this case, the first time period and the second time period are the interval two time periods. For another example, it is assumed that 8:00AM-8:10AM is bound with the first shooting field of view and the first service, and 8:10AM-8:30AM is bound with the second shooting field of view and the second service after the configuration shown in Figure 3 above. , it can be understood that 8:00AM-8:10AM is the first time period, and 8:10AM-8:30AM is the second time period. In this case, the first time period and the second time period are two adjacent time periods. a time period. In some possible embodiments, the first time period and the second time period may also be two adjacent time periods within the same cruise time period.
需要说明的是,若与上述S201-S206中的场景这个概念对应,由于场景由点位(或称为拍摄视野)和业务共同决定,则第一拍摄视野与第一业务确定一个场景,第二拍摄视野与第二业务确定一个场景,可以理解,由于第一时间段对应第一拍摄视野和第一业务,第二时间段对应第二拍摄视野和第二业务,故第一时间段对应的场景与第二时间段对应的场景不同。It should be noted that, if it corresponds to the concept of the scene in the above S201-S206, since the scene is jointly determined by the point (or called the shooting field of view) and the business, the first shooting field of view and the first business determine a scene, and the second The shooting field of view and the second service determine a scene. It can be understood that since the first time period corresponds to the first shooting field of view and the first service, and the second time period corresponds to the second shooting field of view and the second service, the scene corresponding to the first time period The scene corresponding to the second time period is different.
在一些可能的实施例中,球机还可以分时地在同一点位执行不同的业务。具体地,球机在第一时刻以第一拍摄视野采集第一图像,并对第一图像执行第一业务;球机在第二时刻以第一拍摄视野采集第三图像,并对第三图像执行第二业务,第一时刻与第二时刻不同,第一业务和第三业务不同。由此可以看出,第一图像和第三图像对应相同的拍摄视野,但第一图像和第三图像对应不同的业务,因为场景是由拍摄视野和业务共同决定,故第一时间段对应的场景与第二时间段对应的场景不同。实现了球机分时地在同一点位执行不同的业务,提高了球机的利用率,减少了复杂环境中硬件资源的浪费。In some possible embodiments, the ball machine can also perform different services at the same point in time-sharing. Specifically, the dome camera collects the first image with the first shooting field of view at the first moment, and performs the first service on the first image; the dome camera collects the third image with the first shooting field of view at the second moment, and performs the third image Execute the second service, the first moment is different from the second moment, and the first service and the third service are different. It can be seen from this that the first image and the third image correspond to the same shooting field of view, but the first image and the third image correspond to different services. Because the scene is jointly determined by the shooting field of view and the service, the first time period corresponds to The scene is different from the scene corresponding to the second time period. It realizes that the ball machine performs different services at the same point in time-sharing, improves the utilization rate of the ball machine, and reduces the waste of hardware resources in a complex environment.
在一些可能的实施例中,球机将自身在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野可以是无条件触发的。例如,球机检测到当前时刻为场景切换时刻,则进入调整球机的拍摄视野的步骤,即调整上述球机的云台的三个参数中的至少一个。具体可参考图5实施例中S203和S204的相关描述,即等同于将球机从第二点位切换至第一点位,为了说明书的简洁,在此不再赘述。In some possible embodiments, the adjustment of the dome camera from the first shooting field of view at the first moment to the second shooting field of view at the second moment may be triggered unconditionally. For example, if the dome camera detects that the current moment is the scene switching time, it enters the step of adjusting the shooting field of view of the dome camera, that is, adjusting at least one of the three parameters of the dome camera's pan/tilt. For details, please refer to the related descriptions of S203 and S204 in the embodiment of FIG. 5 , that is, it is equivalent to switching the dome camera from the second point to the first point. For the sake of brevity of the description, details are not repeated here.
在一些可能的实施例中,也可以为球机调整自身的拍摄视野设置触发条件。在球机在第二时刻采集第二图像之前,球机接收到调整视野的指令,球机继续以第一拍摄视野采集第一图像,当第一图像采集完毕后,再进入调整球机的拍摄视野的步骤。In some possible embodiments, trigger conditions may also be set for the dome camera to adjust its own shooting field of view. Before the dome camera collects the second image at the second moment, the dome camera receives the instruction to adjust the field of view, and the dome camera continues to capture the first image with the first shooting field of view. Vision steps.
例如,以图1A中摄像机的各模块为例,球机的场景管理模块在场景切换时刻接收到巡航模块发送调整视野的指令,场景管理模块检测到当前以第一拍摄视野正在采集第一图像或者以第一拍摄视野采集到的第一图像正在执行业务处理的过程中,在此情况下,当第一图像采集完毕或对第一图像处理完毕后,球机再进入调整拍摄视野的步骤,以实现将第一时刻的第一拍摄视野调整为第二时刻的第二拍摄视野,即场景管理模块向巡航模块发送第二拍摄视野的相关参数信息。For example, taking each module of the camera in FIG. 1A as an example, the scene management module of the dome camera receives the command sent by the cruise module to adjust the field of view at the scene switching time, and the scene management module detects that the first image is currently being captured with the first shooting field of view or The first image collected with the first shooting field of view is in the process of performing business processing. In this case, when the first image is collected or the first image is processed, the dome camera will enter the step of adjusting the shooting field of view. The first shooting field of view at the first moment is adjusted to the second shooting field of view at the second moment, that is, the scene management module sends the relevant parameter information of the second shooting field of view to the cruise module.
又例如,球机的场景切换模块在场景切换时刻接收到巡航模块发送的调整视野的指令,场景切换模块检测到第一业务的优先级为检测优先且在第一图像中检测到目标体或目标事件,在此情况下,球机继续以第一拍摄视野采集第一图像并对第一图像执行第一业务直至采集到的第一图像中不再检测到目标体和目标事件,即相当于第一图像采集完毕,球机再进入调整自身的拍摄视野的步骤,即将第一时刻的第一拍摄视野调整为第二时刻的第二拍摄视野。For another example, the scene switching module of the dome camera receives the command to adjust the field of view sent by the cruise module at the scene switching moment, and the scene switching module detects that the priority of the first service is detection priority and detects a target or target in the first image. event, in this case, the dome camera continues to collect the first image with the first shooting field of view and executes the first service on the first image until the target object and target event are no longer detected in the collected first image, which is equivalent to the first Once the image collection is completed, the dome camera enters the step of adjusting its own shooting field of view, that is, adjusting the first shooting field of view at the first moment to the second shooting field of view at the second moment.
在一些可能的实施例中,第二业务的标识可以是球机从服务器获取的。具体地,球机在第二时刻采集第二图像,并对第二图像执行第二业务之前,球机还可以先向服务器发送切换请求,切换请求中携带的可以是指示第二时间段的指示信息,相应地,服务器接收切换请求,并根据切换请求中的指示信息从预先存储的配置信息中查找第二时间段对应的第二业务的标识和第二拍摄视野,服务器向球机发送切换请求响应,切换请求响应包括第二业务的标识,或者,切换请求响应包括第二业务的标识和第二拍摄视野,以使球机根据切换请求响应中的第二拍摄视野进行调整。In some possible embodiments, the identifier of the second service may be obtained by the dome camera from the server. Specifically, before the dome camera collects the second image at the second moment and performs the second service on the second image, the dome camera can also send a switching request to the server, and the switching request can carry an instruction indicating the second time period Correspondingly, the server receives the switching request and searches the pre-stored configuration information from the pre-stored configuration information according to the switching request. The server sends the switching request to the dome camera. In response, the switching request response includes the identification of the second service, or the switching request response includes the identification of the second service and the second shooting field of view, so that the dome camera adjusts according to the second shooting field of view in the switching request response.
在一些可能的实施例中,球机的配置信息预先存储于球机中,球机自身可直接从存储器中获取第二业务的标识。具体地,球机内存储有第一映射关系和第二映射关系,其中,第一 映射关系为第一时间段和第一业务的标识之间的映射关系,第二映射关系为第二时间段和第二业务的标识之间的映射关系。另外,第一映射关系还包括第一时间段与第一拍摄视野之间的映射关系,第二映射关系还包括第二时间段与第二拍摄视野之间的映射关系。在球机确定需调整拍摄视野时,球机根据第二时间段查找第二时间段对应的第二拍摄视野以及第二业务的标识,从未将自身的拍摄视野调整为第二拍摄视野以及根据第二业务的标识启动第二业务。In some possible embodiments, the configuration information of the dome machine is pre-stored in the dome machine, and the dome machine itself can directly acquire the identifier of the second service from the memory. Specifically, the dome camera stores a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the mapping relationship between the first time period and the identifier of the first service, and the second mapping relationship is the second time period and the mapping relationship between the identifier of the second service. In addition, the first mapping relationship further includes a mapping relationship between the first time period and the first shooting field of view, and the second mapping relationship further includes a mapping relationship between the second time period and the second shooting field of view. When the dome camera determines that it needs to adjust the shooting field of view, the dome camera searches for the second shooting field of view corresponding to the second time period and the identification of the second service according to the second time period, and never adjusts its own shooting field of view to the second shooting field of view and according to The identification of the second service activates the second service.
可以看到,实施本申请实施例,球机依据预存储的配置信息实现不同场景的切换以及对每一场景对应的点位处采集到的场景图像执行该场景对应的业务处理,换句话说,实现了球机在不同的时刻位于不同的点位执行不同的业务或者在不同时刻位于同一点位执行不同的业务或者在某一点位执行不同的业务,提高了球机的使用效率,实现以尽可能少的球机满足不同场景下的不同业务需求或者同一场景下的多种业务需求,有效减少了球机的部署成本。It can be seen that, by implementing the embodiment of the present application, the dome camera realizes switching of different scenarios according to the pre-stored configuration information and performs the business processing corresponding to the scene on the scene image collected at the corresponding point of each scene, in other words, It is realized that the ball machine is located at different points at different times to perform different services, or at the same point at different times to perform different services or perform different services at a certain point, which improves the use efficiency of the ball machine and realizes the best possible use of the ball machine. There may be fewer dome cameras to meet different business needs in different scenarios or multiple business needs in the same scenario, effectively reducing the deployment cost of dome cameras.
参见图7,图7本申请实施例提供的又一种摄像方法。与图5实施例不同的是,在图7所示的摄像方法中的第二业务的标识和第二拍摄视野是球机从服务器获取的,图7实施例需要球机与服务器交互参于,而图5实施例中第二业务的标识和第二拍摄视野存储于球机内部,图5实施例可以仅由球机单侧执行。图7实施例可以独立于图5实施例,也可以是对图5实施例的补充。该方法包括但不限于以下步骤:Referring to FIG. 7 , FIG. 7 shows yet another imaging method provided by an embodiment of the present application. The difference from the embodiment of FIG. 5 is that the identification of the second service and the second shooting field of view in the imaging method shown in FIG. 7 are obtained by the dome camera from the server, and the embodiment of FIG. 7 requires the dome camera and the server to interact and participate, Whereas in the embodiment of FIG. 5, the identifier of the second service and the second shooting field of view are stored inside the dome camera, the embodiment of FIG. 5 may only be executed by one side of the dome camera. The embodiment in FIG. 7 may be independent of the embodiment in FIG. 5 , or may be a supplement to the embodiment in FIG. 5 . The method includes but is not limited to the following steps:
S301、球机获取巡航时间信息。S301. The dome camera acquires cruise time information.
在本申请实施例中,球机开机启动后,球机获取巡航时间信息,巡航时间信息包括球机待巡航的多个场景的标识和每个场景对应的巡航时间段。在一些可能的实施例中,在某一巡航时间段对应有多个场景时,巡航时间信息还包括每个场景对应的监控时长以及每个场景对应的巡航顺序。需要说明的是,所谓获取巡航时间信息可以是球机接收服务器发送的巡航时间,也可以是球机从自身的存储器调取预先存储的巡航时间信息。In the embodiment of the present application, after the dome machine is powered on, the dome machine obtains cruising time information, and the cruising time information includes the identifiers of the multiple scenes the dome machine is to cruise and the cruising time period corresponding to each scene. In some possible embodiments, when a certain cruise time period corresponds to multiple scenarios, the cruise time information further includes the monitoring duration corresponding to each scenario and the cruise sequence corresponding to each scenario. It should be noted that the so-called acquisition of cruising time information can be the cruising time sent by the dome camera receiving the server, or the dome camera fetching pre-stored cruising time information from its own memory.
S302、球机检测到当前时刻为切换至第二场景的时刻,判断在当前时刻是否满足场景切换条件。S302. The dome camera detects that the current time is the time to switch to the second scene, and determines whether the scene switching condition is satisfied at the current time.
在本申请实施例中,球机于当前时刻的上一时刻(简称上一时刻)位于第一点位,上一时刻为当前时刻之前的预设时间间隔内的任意时刻,关于上一时刻的描述可参考上述S201中的相关描述,在此不再赘述。球机基于巡航时间信息检测到当前时刻为切换至第二场景的时刻,在此情况下,球机需判断当前时刻是否满足场景切换条件,若当前时刻满足场景切换条件,则执行S303;若当前时刻不满足场景切换条件,则执行S307。In the embodiment of this application, the ball camera is located at the first point at the last moment of the current moment (referred to as the last moment), and the last moment is any moment within the preset time interval before the current moment. For the description, reference may be made to the relevant description in the above S201, and details are not repeated here. The dome camera detects that the current moment is the moment to switch to the second scene based on the cruise time information. In this case, the dome camera needs to determine whether the current moment satisfies the scene switching condition. If the current moment satisfies the scene switching condition, execute S303; If the time does not satisfy the scene switching condition, execute S307.
其中,场景切换条件可以是以下任意一种:The scene switching condition can be any of the following:
条件A:球机在上一时刻位于第一点位,但球机未启动工作。(即上一时刻无对应的场景)。Condition A: The dome camera was at the first point at the last moment, but the dome camera did not start to work. (that is, there is no corresponding scene at the previous moment).
也就是说,第一时刻不属于巡航时间信息中的任意巡航时间段内,因此,第一时刻没有对应的场景,即球机在第一时刻是停止工作的。That is to say, the first moment does not belong to any cruise time period in the cruise time information. Therefore, there is no corresponding scene at the first moment, that is, the dome camera stops working at the first moment.
条件B:球机在上一时刻于第一点位采集第一图像并对第一图像做第一业务的处理,第一业务对应的优先级为非检测优先。Condition B: The dome camera collected the first image at the first point at the last moment and processed the first service for the first image, and the priority corresponding to the first service is non-detection priority.
也就是说,上一时刻属于巡航时间信息中的某一巡航时间段内,且上一时刻对应第一场景,第一场景与第一点位、第一业务绑定。That is to say, the last moment belongs to a certain cruise time period in the cruise time information, and the last moment corresponds to the first scene, and the first scene is bound to the first point and the first service.
条件C:球机在上一时刻于第一点位采集第一图像并对第一图像做第一业务的处理,第一业务对应的优先级为检测优先,但第一图像中未检测到目标体或目标事件。Condition C: The dome camera collected the first image at the first point at the last moment and processed the first service for the first image. The priority corresponding to the first service is detection priority, but no target is detected in the first image. body or target event.
也就是说,上一时刻有对应的场景(即第一场景)且该场景的优先级设置为检测优先, 但对在第一点位处采集到的第一图像执行第一业务未检测到目标体或目标事件。关于业务、目标体和目标事件的说明可参考上述S101和S205中的相关叙述,在此不再赘述。That is to say, there is a corresponding scene (ie, the first scene) at the last moment and the priority of the scene is set to detection priority, but no target is detected when the first service is performed on the first image collected at the first point. body or target event. For the description of the service, the target body, and the target event, reference may be made to the relevant descriptions in the above S101 and S205, which will not be repeated here.
需要说明的是,球机经判断是否满足上述三个条件(即条件A、条件B和条件C)中的任意一个,若满足其中任意一个,则执行S303;若经判断上述三个条件都不满足,则执行S307。It should be noted that the dome camera is judged whether it satisfies any one of the above three conditions (ie, condition A, condition B and condition C). If satisfied, execute S307.
S303、球机向服务器发送场景切换请求。S303, the dome camera sends a scene switching request to the server.
在本申请实施例中,在确定球机满足场景切换条件的情况下,球机向服务器发送场景切换请求,以获取第二场景对应的第二点位和第二业务的标识。其中,场景切换请求携带有第二场景的标识。相应地,服务器接收球机发送的场景切换请求。In the embodiment of the present application, when it is determined that the dome camera satisfies the scene switching condition, the dome camera sends a scene switching request to the server to obtain the identifier of the second point and the second service corresponding to the second scene. The scene switching request carries the identifier of the second scene. Correspondingly, the server receives the scene switching request sent by the dome camera.
在一些可能的实施例中,场景切换请求还用于从服务器处获取第二场景对应的优先级,关于优先级的说明具体可参考上述图5实施例中的相关描述,在此不再赘述。In some possible embodiments, the scene switching request is further used to obtain the priority corresponding to the second scene from the server. For the description of the priority, reference may be made to the relevant description in the above-mentioned embodiment in FIG. 5 , which will not be repeated here.
S304、服务器根据第二场景的标识确定第二场景对应的第二点位和第二业务的标识。S304: The server determines, according to the identifier of the second scenario, the identifier of the second point and the second service corresponding to the second scenario.
在本申请实施例中,服务器在接收到球机发送的场景切换请求后,根据场景切换请求中第二场景的标识在场景参数信息中查找第二场景对应的第二点位和第二业务的标识。In the embodiment of the present application, after receiving the scene switching request sent by the dome camera, the server searches the scene parameter information for the second point corresponding to the second scene and the information of the second service according to the identifier of the second scene in the scene switching request. logo.
其中,场景参数信息是预先存储于服务器中,场景参数信息包括待巡航的多个场景中每个场景对应的点位和每个场景绑定的业务。在一些可能的实施例中,场景参数信息中还可以包括每个场景对应的优先级。需要说明的是,场景参数信息和上述巡航时间信息可以包含于一条信息中,例如,巡航配置信息,也可以是分开的两条信息,本申请不做具体限定。The scene parameter information is pre-stored in the server, and the scene parameter information includes a point corresponding to each scene in the multiple scenes to be cruised and a service bound to each scene. In some possible embodiments, the scene parameter information may further include a priority corresponding to each scene. It should be noted that the scene parameter information and the above cruise time information may be included in one piece of information, for example, the cruise configuration information, or may be two separate pieces of information, which are not specifically limited in this application.
需要说明的是,巡航时间信息和场景参数信息可以是用户预先在服务器提供的用户界面上完成对球机的巡航任务配置后自动存储于服务器中。It should be noted that the cruise time information and scene parameter information may be automatically stored in the server after the user completes the cruise task configuration of the dome camera on the user interface provided by the server in advance.
S305、服务器向球机发送第一信息。S305, the server sends the first information to the ball machine.
在本申请实施例中,服务器在获得第二点位和第二业务的标识后,向球机发送第一信息,第一信息包括第二点位和二业务的标识。相应地,球机接收服务器发送的第一信息。In the embodiment of the present application, after obtaining the identifiers of the second point and the second service, the server sends the first information to the dome camera, where the first information includes the identifiers of the second point and the second service. Correspondingly, the ball machine receives the first information sent by the server.
在一些可能的实施例中,服务器向球机发送的第一信息中还包括第二场景对应的优先级。需要说明的是,第二场景对应的优先级可以与第二点位、第二业务的标识一起包含于同一条信息,例如,第一信息,也可以分属于两条消息中,本申请不做具体限定。In some possible embodiments, the first information sent by the server to the ball machine further includes the priority corresponding to the second scene. It should be noted that the priority corresponding to the second scenario may be included in the same message together with the identifier of the second point and the second service. For example, the first message may also belong to two messages. This application does not Specific restrictions.
S306、球机执行场景切换操作。S306, the dome camera performs a scene switching operation.
在本申请实施例中,球机在确定自身在当前时刻满足场景切换条件时,球机在接收到服务器发送的第一信息后,球机即可在当前时刻根据第一信息中的第二点位和第二业务的标识执行场景切换。In the embodiment of the present application, when the dome camera determines that it meets the scene switching conditions at the current moment, after the dome camera receives the first information sent by the server, the dome camera can use the second point in the first information at the current moment. The bit and the identity of the second service perform scene switching.
一具体实施中,若球机满足S302中的条件A,所谓球机在当前时刻执行场景切换是指:依据第二业务的标识启动第二业务,以及,球机从第一点位切换至第二点位采集第二图像。In a specific implementation, if the dome camera satisfies the condition A in S302, the so-called scene switching performed by the dome camera at the current moment means: starting the second service according to the identifier of the second service, and switching the dome camera from the first point to the second A second image was acquired at two points.
另一具体实施中,若球机满足S302中的条件B或满足S302中的条件C,所谓球机在当前时刻执行场景切换是指:关闭第一业务,依据第二业务标识启动第二业务,以及,球机从第一点位切换至第二点位采集第二图像。In another specific implementation, if the dome camera satisfies the condition B in S302 or satisfies the condition C in S302, the so-called scene switching performed by the dome camera at the current moment means: closing the first service, starting the second service according to the second service identifier, And, the dome camera switches from the first point to the second point to collect the second image.
S307、球机延迟执行S303直至在目标时刻于第一点位处采集的第一图像中未检测到目标体或目标事件。S307, the dome camera delays performing S303 until no target body or target event is detected in the first image collected at the first point at the target moment.
在本申请实施例中,若球机确定自身在当前时刻不满足场景切换条件,即球机在当前时刻均不满足S302中叙述的三个条件,说明球机在对当前时刻于第一点位处采集到的第一图像执行第一业务后检测到目标体或目标事件,故球机继续在第一点位上采集第一图像并检测第一图像中是否还存在在上述目标体或目标事件,球机延迟向服务器发送场景切换请求直至球机在目标时刻于第一点位处采集到的第一图像中未检测到目标体或目标事件,其中,目标时 刻晚于当前时刻(即某个场景切换时刻)。换句话说,即若球机在目标时刻于第二点位处采集的第一图像中不再检测到目标体或目标事件,则球机于目标时刻向服务器发送场景切换请求,相应地,球机也于目标时刻执行场景切换,即关闭第一业务,依据第二业务的标识启动第二业务,以及,球机从第一点位切换至第二点位采集第二图像。In the embodiment of this application, if the dome camera determines that it does not meet the scene switching conditions at the current moment, that is, the dome camera does not meet the three conditions described in S302 at the current moment, it means that the dome camera is at the first point at the current moment. After executing the first service, the dome camera continues to collect the first image at the first point and detects whether the above-mentioned target or target event still exists in the first image. , the dome camera delays sending a scene switching request to the server until the dome camera does not detect a target object or target event in the first image collected at the first point at the target time, where the target time is later than the current time (that is, a certain scene switching time). In other words, if the dome camera no longer detects the target object or the target event in the first image collected at the second point at the target moment, the dome camera sends a scene switching request to the server at the target moment, and accordingly, the dome camera sends a scene switching request to the server at the target moment. The camera also performs scene switching at the target time, that is, the first service is turned off, the second service is activated according to the identifier of the second service, and the dome camera switches from the first point to the second point to collect the second image.
需要说明的是,球机向服务器发送场景切换请求和球机接收到服务器发送的第一信息之间的时延可忽略不计。It should be noted that the delay between when the dome camera sends a scene switching request to the server and when the dome camera receives the first information sent by the server is negligible.
在一些可能的实施例中,球机对每个场景对应的点位处采集到的场景图像执行该场景对应的业务,在获得检测结果后,还可以将检测结果发送给服务器进行显示。In some possible embodiments, the dome camera executes the service corresponding to the scene on the scene image collected at the point corresponding to each scene, and after obtaining the detection result, can also send the detection result to the server for display.
下面结合图1B所示系统架构中的各模块说明图7实施例所描述的方法:球机内的巡航模块从服务器获取巡航时间信息,巡航模块基于巡航时间信息检测到当前时刻为切换至第二场景的时刻,判断当前时刻是否满足场景切换条件,即判断是否满足S302中所述条件中的任意一个,具体可参考S302中的相关描述,在此不再赘述。巡航模块在确定当前时刻满足场景切换条件时,巡航模块向服务器发送场景切换请求,场景切换请求包括第二场景的标识,相应地,服务器的场景管理模块在接收到场景切换请求后,响应于场景切换请求,场景管理模块根据第二场景的标识在场景参数信息中查找第二场景对应的第二点位、第二业务的标识以及第二业务的优先级,然后,场景管理模块向球机发送第二点位、第二业务的标识以及第二业务的优先级。球机的业务管理模块在接收到服务器发送的第二业务的标识后,关闭第一业务(当有第一场景对应的业务开启时)以及开启第二业务,巡航模块将球机从第一点位调整至第二点位。若巡航模块在确定当前时刻不满足场景切换条件时,则延迟向服务器发送场景切换请求直至确定在目标时刻于第一点位处采集的第一图像中未检测到目标体或目标事件。The method described in the embodiment of FIG. 7 is described below with reference to each module in the system architecture shown in FIG. 1B : the cruise module in the dome camera obtains the cruise time information from the server, and the cruise module detects the current time based on the cruise time information to switch to the second At the moment of the scene, it is judged whether the current moment satisfies the scene switching condition, that is, whether any one of the conditions described in S302 is met. For details, please refer to the relevant description in S302, which will not be repeated here. When the cruise module determines that the current moment meets the scene switching condition, the cruise module sends a scene switching request to the server, and the scene switching request includes the identifier of the second scene. Correspondingly, after receiving the scene switching request, the scene management module of the server responds to the scene. For a switching request, the scene management module searches the scene parameter information for the second point corresponding to the second scene, the identification of the second service, and the priority of the second service according to the identification of the second scene, and then the scene management module sends a message to the dome camera. The second point, the identifier of the second service, and the priority of the second service. After receiving the identification of the second service sent by the server, the service management module of the ball camera closes the first service (when the service corresponding to the first scene is turned on) and opens the second service. Adjust the position to the second point. If the cruise module determines that the scene switching condition is not met at the current moment, it delays sending a scene switching request to the server until it is determined that no target object or target event is detected in the first image collected at the first point at the target moment.
在图7所示方法中,是否满足场景切换条件的判断过程以及业务的处理过程均发生在球机内部,在球机确定自身满足场景切换条件时,即向服务器发送场景切换请求以获取目标场景对应的点位、目标场景对应的业务的标识以及目标场景对应的优先级。在一些可能的实施例中,是否满足场景切换条件的判断过程也可以由服务器执行。具体地,球机从服务器获取巡航时间信息,基于巡航时间信息检测到当前时刻为切换至第二场景的时刻,球机于上一时刻位于第一点位,球机向服务器发送第一请求,第一请求包括第二场景的标识,服务器接收到第一请求后,判断球机在当前时刻是否满足场景切换条件,即判断是否满足S302中所述条件中的任意一个,具体可参考S302中的相关描述,在此不再赘述。需要说明的是,球机位于每个点位时,球机将在该点位上每个时刻采集到的场景图像以及该场景图像的检测结果发送给服务器,故服务器可基于场景图像的检测结果判断场景图像中是否检测到目标体或目标事件,若服务器确定球机在当前时刻满足场景切换条件,则响应于第一请求,向球机发送第一信息,第一信息包括第二场景对应的第二点位、第二业务的标识和第二业务的优先级,球机根据接收到的第一信息在当前时刻执行场景切换,场景切换的具体过程可参考上述S305的相关叙述,在此不再赘述。若服务器确定球机在当前时刻不满足场景切换条件,则延迟响应第一请求直至确定球机在目标时刻于第一点位处采集的第一图像中未检测到目标体或目标事件。In the method shown in Figure 7, the process of judging whether the scene switching conditions are met and the business processing process all take place inside the dome camera. When the dome camera determines that it meets the scene switching conditions, it sends a scene switching request to the server to obtain the target scene. The corresponding point, the identifier of the service corresponding to the target scene, and the priority corresponding to the target scene. In some possible embodiments, the judging process of whether the scene switching condition is satisfied may also be performed by the server. Specifically, the dome camera obtains the cruise time information from the server, and based on the cruise time information, it detects that the current time is the moment to switch to the second scene, the dome camera was at the first point at the previous moment, and the dome camera sends the first request to the server, The first request includes the identifier of the second scene. After the server receives the first request, it determines whether the dome camera satisfies the scene switching conditions at the current moment, that is, whether it satisfies any one of the conditions described in S302. For details, please refer to S302. Relevant descriptions are not repeated here. It should be noted that when the dome camera is located at each point, the dome camera will send the scene image collected at each moment at the point and the detection result of the scene image to the server, so the server can be based on the detection result of the scene image. Judging whether a target object or target event is detected in the scene image, if the server determines that the dome camera satisfies the scene switching condition at the current moment, in response to the first request, it sends first information to the dome camera, and the first information includes the corresponding data of the second scene. The second point, the identifier of the second service and the priority of the second service, the dome camera performs scene switching at the current moment according to the received first information. For the specific process of scene switching, please refer to the relevant description of the above S305. Repeat. If the server determines that the dome camera does not meet the scene switching conditions at the current moment, it delays responding to the first request until it is determined that no target object or target event is detected in the first image collected by the dome camera at the first point at the target moment.
可以看到,实施本申请实施例,球机从服务器处获取待巡航的多个场景中每个场景的标识以及每个场景对应的巡航时间段实现不同场景的切换,其中,每个场景与一个点位和至少一个业务绑定,实现了以尽可能少的球机满足不同场景下的不同业务需求或者同一场景下的多种业务需求,提高了球机的使用效率,有效减少了球机的部署成本。It can be seen that, by implementing the embodiment of the present application, the dome camera obtains from the server the identifier of each scene in the multiple scenes to be cruised and the cruise time period corresponding to each scene to switch between different scenes, wherein each scene is associated with one scene. The point is bound to at least one business, so as to meet different business needs in different scenarios or multiple business needs in the same scene with as few domes as possible, improve the use efficiency of domes, and effectively reduce the use of domes. deployment cost.
参见图8,图8是本申请实施例提供的一种装置的结构示意图。Referring to FIG. 8 , FIG. 8 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.
如图8所示,装置30至少包括处理器301、存储器302、通信接口303、输入/输出接口304、输入/输出设备305和总线300,其中,存储器302、输入/输出接口304、输入/输出设备305分别通过总线300与处理器301连接。装置30可为图1A中的服务器。As shown in FIG. 8 , the apparatus 30 includes at least a processor 301, a memory 302, a communication interface 303, an input/output interface 304, an input/output device 305 and a bus 300, wherein the memory 302, the input/output interface 304, the input/output interface The devices 305 are connected to the processor 301 through the bus 300, respectively. Device 30 may be the server in FIG. 1A.
总线300用于装置30的各部件之间传递信息,总线300可以使用有线的连接方式或者采用无线的连接方式,本申请并不对此进行限定。The bus 300 is used to transmit information between the components of the device 30 , and the bus 300 may use a wired connection manner or a wireless connection manner, which is not limited in this application.
处理器301执行各操作的具体实现可参考上述方法实施例中对待巡航的每个场景进行场景配置、对每个场景进行巡航配置等具体操作。处理器301可以由一个或者多个通用处理器构成,例如中央处理器(Central Processing Unit,CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(Application-Specific Integrated Circuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(Complex Programmable Logic Device,CPLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。装置30还可以是图1B中的服务器,在一些可能的实施例中,处理器301还用于判断球机在当前时刻是否满足场景切换条件。For the specific implementation of each operation performed by the processor 301, reference may be made to specific operations such as scene configuration for each scene to be cruised, and cruise configuration for each scene in the foregoing method embodiments. The processor 301 may be composed of one or more general-purpose processors, such as a central processing unit (Central Processing Unit, CPU), or a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a field programmable gate array (Field-Programmable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof. The apparatus 30 may also be the server in FIG. 1B . In some possible embodiments, the processor 301 is further configured to determine whether the dome camera satisfies the scene switching condition at the current moment.
存储器302可以包括易失性存储器(Volatile Memory),例如随机存取存储器(Random Access Memory,RAM);存储器302也可以包括非易失性存储器(Non-Volatile Memory),例如只读存储器(Read-Only Memory,ROM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);存储器302还可以包括上述种类的组合。存储器302可以存储程序以及数据,其中,存储的程序包括:巡航配置程序等,存储的数据包括:巡航时间信息、场景参数信息、场景图像等。存储器302可以单独存在,也可以集成于处理器301内部。在装置30为图1B中的服务器时,存储器302中存储的程序还包括用于判断是否满足场景切换条件的程序。The memory 302 may include a volatile memory (Volatile Memory), such as a random access memory (Random Access Memory, RAM); the memory 302 may also include a non-volatile memory (Non-Volatile Memory), such as a read-only memory (Read- Only Memory (ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); the memory 302 may also include a combination of the above types. The memory 302 may store programs and data, wherein the stored programs include cruise configuration programs, and the like, and the stored data include cruise time information, scene parameter information, scene images, and the like. The memory 302 may exist alone, or may be integrated inside the processor 301 . When the device 30 is the server in FIG. 1B , the program stored in the memory 302 further includes a program for judging whether the scene switching condition is satisfied.
通信接口303使用例如但不限于收发器一类的收发装置,来实现与图9所示摄像机40之间的通信,通信接口303可以通过有线或者无线的形式与摄像机40互连,可用于向摄像机40发送巡航时间信息,或者,巡航时间信息和场景参数信息。在装置30为图1B中的服务器时,通信接口303还用于接收摄像机40发送的场景切换请求以及向摄像机40发送第一信息,第一信息包括第二场景对应的第二点位(即第二拍摄视野)、第二业务的标识和第二业务的优先级。The communication interface 303 uses a transceiver device such as but not limited to a transceiver to realize the communication with the camera 40 shown in FIG. 9 . The communication interface 303 can be interconnected with the camera 40 in a wired or wireless form, and can be used to send the camera to the camera 40 . 40 Send cruise time information, or cruise time information and scene parameter information. When the device 30 is the server in FIG. 1B , the communication interface 303 is further configured to receive a scene switching request sent by the camera 40 and send first information to the camera 40 , where the first information includes the second point corresponding to the second scene (ie, the first 2 shooting field of view), the identification of the second service, and the priority of the second service.
输入/输出接口304与输入/输出设备305连接,用于接收输入的信息,输出操作结果。输入/输出设备可以为鼠标、键盘、显示屏等,其中,显示屏用于显示球机的配置用户界面,以使用户通过鼠标、键盘等完成对球机的巡航配置。在一些可能的实施例中,显示屏也可以是触摸显示屏,本申请不做具体限定。The input/output interface 304 is connected to the input/output device 305 for receiving input information and outputting the operation result. The input/output device can be a mouse, a keyboard, a display screen, etc., wherein the display screen is used to display the configuration user interface of the dome camera, so that the user can complete the cruise configuration of the dome camera through the mouse, keyboard, etc. In some possible embodiments, the display screen may also be a touch display screen, which is not specifically limited in this application.
此外,图8仅仅是一个装置30的例子,装置30可能包含相比于图8展示的更多或者更少的组件,或者有不同的组件配置方式。同时,图8中展示的各种组件可以用硬件、软件或者硬件与软件的结合方式实施。In addition, FIG. 8 is only an example of an apparatus 30, and the apparatus 30 may include more or less components than those shown in FIG. 8, or have different configurations of the components. Meanwhile, various components shown in FIG. 8 may be implemented in hardware, software, or a combination of hardware and software.
本申请实施例中,装置30用于实现上述图2实施例所描述的方法以及图7实施例所描述的服务器侧的方法。In this embodiment of the present application, the apparatus 30 is configured to implement the method described in the foregoing embodiment in FIG. 2 and the server-side method described in the embodiment in FIG. 7 .
参见图9,图9是本申请实施例提供的一种摄像机的结构示意图。Referring to FIG. 9 , FIG. 9 is a schematic structural diagram of a camera provided by an embodiment of the present application.
如图9所示,摄像机40至少包括镜头400、传感器401、处理器402和云台403,其中, 镜头400、传感器401、云台403分别与处理器402连接,云台403还与镜头连接。摄像机40可以为图1A或图1B中的摄像机。As shown in FIG. 9 , the camera 40 includes at least a lens 400 , a sensor 401 , a processor 402 and a pan/tilt 403 , wherein the lens 400 , the sensor 401 , and the pan/tilt 403 are respectively connected to the processor 402 , and the pan/tilt 403 is also connected to the lens. The camera 40 may be the camera in FIG. 1A or FIG. 1B .
镜头400用于采集光线,将外界的景物成像在传感器401上,镜头400可以是螺纹口的,通常由一组透镜和光阑组成。镜头400可以是标准镜头、远摄镜头、变倍镜头或者可变焦点镜头等等,镜头400的材料可以为玻璃或者塑料,本申请不做具体限定。The lens 400 is used to collect light, and image the external scene on the sensor 401. The lens 400 may be threaded, and usually consists of a set of lenses and a diaphragm. The lens 400 may be a standard lens, a telephoto lens, a variable magnification lens or a variable focus lens, etc. The material of the lens 400 may be glass or plastic, which is not specifically limited in this application.
传感器401用于将镜头400采集到的光线进行光电转化,具体地,对在第一时刻采集到的第一光线进行光电转换生成第一图像,以及对在第二时刻采集到的第二光线进行光电转换生成第二图像。传感器401可以是影像传感器,如电荷耦合器件(charge coupled device,CCD)传感器或互补性氧化金属半导体(complementary metal oxide semiconductor,CMOS)传感器等。The sensor 401 is used to perform photoelectric conversion on the light collected by the lens 400, specifically, perform photoelectric conversion on the first light collected at the first moment to generate a first image, and perform photoelectric conversion on the second light collected at the second moment. Photoelectric conversion generates a second image. The sensor 401 may be an image sensor, such as a charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
处理器402用于对第一图像执行第一业务,以及对第二图像执行第二业务。处理器402可以由一个或者多个通用处理器构成,例如中央处理器(Central Processing Unit,CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(Application-Specific Integrated Circuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(Complex Programmable Logic Device,CPLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。The processor 402 is configured to execute the first service on the first image and execute the second service on the second image. The processor 402 may be composed of one or more general-purpose processors, such as a central processing unit (Central Processing Unit, CPU), or a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a field programmable gate array (Field-Programmable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.
云台403用于调整摄像机40的拍摄视野,即将第一时刻对应的第一拍摄视野调整为第二时刻对应的第二拍摄视野。The pan/tilt 403 is used for adjusting the shooting field of view of the camera 40 , that is, adjusting the first shooting field of view corresponding to the first moment to the second shooting field of view corresponding to the second moment.
此外,图9仅仅是一个摄像机40的例子,摄像机40可能包含相比于图9展示的更多或者更少的组件,或者有不同的组件配置方式。同时,图9中展示的各种组件可以用硬件、软件或者硬件与软件的结合方式实施。In addition, FIG. 9 is only an example of a camera 40, and the camera 40 may contain more or less components than those shown in FIG. 9, or have a different arrangement of components. Meanwhile, various components shown in FIG. 9 may be implemented in hardware, software, or a combination of hardware and software.
本申请实施例中,摄像机40用于实现上述图5实施例所描述的方法以及图7实施例所描述的球机侧的方法。In this embodiment of the present application, the camera 40 is used to implement the method described in the embodiment of FIG. 5 and the method described in the embodiment of FIG. 7 on the dome side.
参见图10,图10是本申请实施例提供的一种装置的功能结构示意图,装置31包括采集单元310和处理单元311。该装置31可以通过硬件、软件或者软硬件结合的方式来实现。Referring to FIG. 10 , FIG. 10 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application. The apparatus 31 includes a collection unit 310 and a processing unit 311 . The device 31 may be implemented by hardware, software or a combination of software and hardware.
其中,采集单元310用于在第一时刻采集第一图像,处理单元311用于对所述第一图像执行第一业务;采集单元310还用于在第二时刻采集第二图像,处理单元311还用于对第二图像执行第二业务,第一时刻与第二时刻不同,第一业务与第二业务不同。The acquisition unit 310 is configured to acquire the first image at the first moment, and the processing unit 311 is configured to perform the first service on the first image; the acquisition unit 310 is further configured to acquire the second image at the second moment, and the processing unit 311 It is also used to execute a second service on the second image, the first moment is different from the second moment, and the first service is different from the second service.
该装置31的各功能模块可用于实现图5实施例所描述的方法。在图5实施例中,采集单元310可用于执行S203和S204,处理单元311可用于执行S201-S206。该装置31的各功能模块还可用于实现图7实施例所描述的方法,为了说明书的简洁,在此不再赘述。Each functional module of the apparatus 31 can be used to implement the method described in the embodiment of FIG. 5 . In the embodiment of FIG. 5 , the collection unit 310 can be used to execute S203 and S204, and the processing unit 311 can be used to execute S201-S206. Each functional module of the device 31 can also be used to implement the method described in the embodiment of FIG. 7 , which is not repeated here for the sake of brevity of the description.
参见图11,图11是本申请实施例提供的一种装置的功能结构示意图,装置41包括配置单元410和发送单元411。可选地,在一些可能的实施例中,装置41还包括接收单元412。该装置41可以通过硬件、软件或者软硬件结合的方式来实现。Referring to FIG. 11 , FIG. 11 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application. The apparatus 41 includes a configuration unit 410 and a sending unit 411 . Optionally, in some possible embodiments, the apparatus 41 further includes a receiving unit 412 . The device 41 can be implemented by hardware, software or a combination of software and hardware.
其中,配置单元410,用于设置第一时间段,将第一时间段与第一拍摄视野和第一业务绑定;配置单元410,还用于设置配置单元,还用于第二时间段,将第二时间段与第二拍摄视野和第二业务绑定;发送单元411,用于向摄像机发送配置信息,配置信息包括第一映射关系和第二映射关系,其中,第一映射关系为第一时间段和第一业务的标识之间的映射关系, 第二映射关系为第二时间段和第二业务的标识之间的映射关系。在一些可能的实施例中,接收单元412用于接收通过用户界面输入的巡航时间段,把巡航时间段划分为多个时间段,多个时间段包括第一时间段和第二时间段,多个时间段还包括:交替按照第一时间段的长度、第二时间段的长度执行与第一时间段、第二时间段对应业务的时间段。Wherein, the configuration unit 410 is used for setting the first time period, and the first time period is bound with the first shooting field of view and the first service; the configuration unit 410 is also used for setting the configuration unit, and is also used for the second time period, Bind the second time period with the second shooting field of view and the second service; the sending unit 411 is configured to send configuration information to the camera, where the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is the first mapping relationship. A mapping relationship between the time period and the identifier of the first service, and the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service. In some possible embodiments, the receiving unit 412 is configured to receive the cruising time period input through the user interface, and divide the cruising time period into a plurality of time periods, the plurality of time periods include a first time period and a second time period, and a plurality of time periods. The time periods further include: alternately performing time periods in which services corresponding to the first time period and the second time period are performed according to the length of the first time period and the length of the second time period.
该装置41的各功能模块可用于实现图2实施例所描述的方法。在图2实施例中,配置单元410可用于执行S101和S102。Each functional module of the apparatus 41 can be used to implement the method described in the embodiment of FIG. 2 . In the embodiment of FIG. 2, the configuration unit 410 may be used to perform S101 and S102.
在本文上述的实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments herein, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,本领域普通技术人员可以看到上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。It should be noted that those of ordinary skill in the art can see that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium , the storage medium includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory ( Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是个人计算机,服务器,或者网络设备、机器人、单片机、芯片、机器人等)执行本申请各个实施例所述方法的全部或部分步骤。The technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions for So that a device (which may be a personal computer, a server, or a network device, a robot, a single-chip microcomputer, a chip, a robot, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application.
Claims (22)
- 一种摄像方法,应用于摄像机,其特征在于,该方法包括:A camera method, applied to a camera, characterized in that the method comprises:所述摄像机在第一时刻采集第一图像,并对所述第一图像执行第一业务;The camera collects a first image at a first moment, and performs a first service on the first image;所述摄像机在第二时刻采集第二图像,并对所述第二图像执行第二业务,所述第二时刻和所述第一时刻不同,所述第二业务和所述第一业务不同。The camera collects a second image at a second moment, and executes a second service on the second image, where the second moment is different from the first moment, and the second service is different from the first service.
- 根据权利要求1所述的方法,其特征在于,在所述摄像机在第二时刻采集第二图像之前,所述方法还包括:The method according to claim 1, wherein before the camera captures the second image at the second moment, the method further comprises:将所述摄像机在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野。The first shooting field of view of the camera at the first moment is adjusted to the second shooting field of view at the second moment.
- 根据权利要求2所述的方法,其特征在于,所述将所述摄像机在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野,包括:The method according to claim 2, wherein the adjusting the first shooting field of view of the camera at the first moment to the second shooting field of view at the second moment comprises:通过调整所述摄像机的云台下述参数中的一个或者多个,调整所述摄像机的拍摄视野:Adjust the shooting field of view of the camera by adjusting one or more of the following parameters of the PTZ of the camera:平移Pan、倾斜Tilt和缩放Zoom。Pan Pan, Tilt Tilt and Zoom Zoom.
- 根据权利要求2所述的方法,其特征在于,在所述摄像机在第二时刻采集第二图像之前,所述方法还包括:The method according to claim 2, wherein before the camera captures the second image at the second moment, the method further comprises:接收调整视野的指令;Receive an instruction to adjust the field of view;继续以所述第一拍摄视野采集所述第一图像,当所述第一图像采集完毕时,进入所述调整所述摄像机的拍摄视野的步骤。Continue to collect the first image with the first shooting field of view, and when the first image is collected, enter the step of adjusting the shooting field of view of the camera.
- 根据权利要求2-4任一项所述的方法,其特征在于,所述第一业务包括以下业务中的至少一个:The method according to any one of claims 2-4, wherein the first service includes at least one of the following services:人脸识别、车辆识别、机非人检测、违停检测、超速检测、闯红灯检测、入侵检测、行人晕倒检测、车辆碰撞检测、偷车检测和打架斗殴检测。Face recognition, vehicle recognition, non-human detection, parking violation detection, speeding detection, red light running detection, intrusion detection, pedestrian fainting detection, vehicle collision detection, car theft detection and fight detection.
- 根据权利要求2-5任一项所述的方法,其特征在于,在所述摄像机在第二时刻采集第二图像,并对所述第二图像执行第二业务之前,所述方法还包括:The method according to any one of claims 2-5, wherein before the camera collects the second image at the second moment and performs the second service on the second image, the method further comprises:向服务器发送切换请求;Send a switch request to the server;接收所述服务器发送的切换请求响应,其中,所述切换请求响应包括所述第二业务的标识;或者,所述切换请求响应包括所述第二业务的标识和所述第二拍摄视野,所述第二业务的标识、所述第二拍摄视野分别与所述第二时刻对应。Receive a handover request response sent by the server, wherein the handover request response includes the identifier of the second service; or, the handover request response includes the identifier of the second service and the second shooting field of view, where the The identifier of the second service and the second shooting field of view correspond to the second moment respectively.
- 根据权利要求1-5任一项所述的方法,其特征在于,在所述摄像机在第一时刻采集第一图像之前,所述方法还包括:The method according to any one of claims 1-5, wherein before the camera captures the first image at the first moment, the method further comprises:接收第一时间段和所述第一业务的绑定关系,其中,所述第一时刻属于所述第一时间段;receiving a binding relationship between a first time period and the first service, wherein the first moment belongs to the first time period;接收第二时间段和所述第二业务的绑定关系,其中,所述第二时刻属于所述第二时间段。A binding relationship between a second time period and the second service is received, wherein the second moment belongs to the second time period.
- 一种摄像机的配置方法,其特征在于,应用于服务器,所述方法包括:A method for configuring a camera, characterized in that being applied to a server, the method comprising:设置第一时间段,将所述第一时间段与第一拍摄视野和第一业务绑定;setting a first time period, and binding the first time period with the first shooting field of view and the first service;设置第二时间段,将所述第二时间段与第二拍摄视野和第二业务绑定;setting a second time period, and binding the second time period with the second shooting field of view and the second service;向摄像机发送配置信息,所述配置信息包括第一映射关系和第二映射关系,其中,所述第一映射关系为所述第一时间段和所述第一业务的标识之间的映射关系,所述第二映射关系为所述第二时间段和所述第二业务的标识之间的映射关系。sending configuration information to the camera, where the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is a mapping relationship between the first time period and the identifier of the first service, The second mapping relationship is a mapping relationship between the second time period and the identifier of the second service.
- 根据权利要求8所述的方法,其特征在于,The method of claim 8, wherein:所述第一映射关系还包括:所述第一时间段和所述第一拍摄视野的映射关系;The first mapping relationship further includes: a mapping relationship between the first time period and the first shooting field of view;所述第二映射关系还包括:所述第二时间段和所述第二拍摄视野的映射关系。The second mapping relationship further includes: a mapping relationship between the second time period and the second shooting field of view.
- 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:接收通过用户界面输入的巡航时间段,把所述巡航时间段划分为多个时间段,所述多个时间段包括所述第一时间段和所述第二时间段,所述多个时间段还包括:交替按照所述第一时间段的长度、所述第二时间段的长度执行与所述第一时间段、所述第二时间段对应业务的时间段。receiving a cruise time period input through a user interface, dividing the cruise time period into a plurality of time periods, the plurality of time periods including the first time period and the second time period, the plurality of time periods It also includes: alternately executing time periods of services corresponding to the first time period and the second time period according to the length of the first time period and the length of the second time period.
- 一种用于摄像的装置,其特征在于,所述装置包括:A device for imaging, characterized in that the device comprises:采集单元,用于在第一时刻采集第一图像,并对所述第一图像执行第一业务;an acquisition unit, configured to acquire a first image at a first moment, and perform a first service on the first image;所述采集单元,还用于在第二时刻采集第二图像,并对所述第二图像执行第二业务,所述第二时刻和所述第一时刻不同,所述第二业务和所述第一业务不同。The acquisition unit is further configured to acquire a second image at a second moment, and perform a second service on the second image, where the second moment is different from the first moment, and the second service is the same as the first moment. The first business is different.
- 根据权利要求11所述的装置,其特征在于,所述处理单元还用于:The apparatus according to claim 11, wherein the processing unit is further configured to:将所述摄像机在第一时刻的第一拍摄视野调整为在第二时刻的第二拍摄视野。The first shooting field of view of the camera at the first moment is adjusted to the second shooting field of view at the second moment.
- 根据权利要求12所述的装置,其特征在于,所述处理单元具体用于:The apparatus according to claim 12, wherein the processing unit is specifically configured to:通过调整所述摄像机的云台下述参数中的一个或者多个,调整所述摄像机的拍摄视野:Adjust the shooting field of view of the camera by adjusting one or more of the following parameters of the PTZ of the camera:平移Pan、倾斜Tilt和缩放Zoom。Pan Pan, Tilt Tilt and Zoom Zoom.
- 根据权利要求12所述的装置,其特征在于,所述装置还包括:The apparatus of claim 12, wherein the apparatus further comprises:接收单元,用于接收调整视野的指令;a receiving unit for receiving an instruction to adjust the field of view;所述处理单元用于继续以所述第一拍摄视角采集所述第一图像,当所述第一图像采集完毕时,进入所述调整所述摄像机的拍摄视野的步骤。The processing unit is configured to continue to collect the first image from the first shooting angle of view, and when the first image is collected, enter the step of adjusting the shooting field of view of the camera.
- 根据权利要求12-14任一项所述的装置,其特征在于,所述第一业务包括以下业务中的至少一个:The apparatus according to any one of claims 12-14, wherein the first service includes at least one of the following services:人脸识别、车辆识别、机非人检测、违停检测、超速检测、闯红灯检测、入侵检测、行人晕倒检测、车辆碰撞检测、偷车检测和打架斗殴检测。Face recognition, vehicle recognition, non-human detection, parking violation detection, speeding detection, red light running detection, intrusion detection, pedestrian fainting detection, vehicle collision detection, car theft detection and fight detection.
- 根据权利要求12-15任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 12-15, wherein the device further comprises:发送单元,用于向服务器发送切换请求;a sending unit, used for sending a handover request to the server;所述接收单元,还用于接收所述服务器发送的切换请求响应,其中,所述切换请求响应包括所述第二业务的标识;或者,所述切换请求响应包括所述第二业务的标识和所述第二拍摄视野,所述第二业务的标识、所述第二拍摄视野分别与所述第二时刻对应。The receiving unit is further configured to receive a handover request response sent by the server, wherein the handover request response includes an identifier of the second service; or, the handover request response includes an identifier of the second service and an identifier of the second service. The second shooting field of view, the identifier of the second service, and the second shooting field of view correspond to the second moment, respectively.
- 根据权利要求11-15任一项所述的装置,其特征在于,所述接收单元,还用于:The device according to any one of claims 11-15, wherein the receiving unit is further configured to:接收第一时间段和所述第一业务的绑定关系,其中,所述第一时刻属于所述第一时间段;receiving a binding relationship between a first time period and the first service, wherein the first moment belongs to the first time period;接收第二时间段和所述第二业务的绑定关系,其中,所述第二时刻属于所述第二时间段。A binding relationship between a second time period and the second service is received, wherein the second moment belongs to the second time period.
- 一种用于摄像机配置的装置,其特征在于,所述装置包括:An apparatus for camera configuration, characterized in that the apparatus comprises:配置单元,用于设置第一时间段,将所述第一时间段与第一拍摄视野和第一业务绑定;a configuration unit, configured to set a first time period, and bind the first time period with the first shooting field of view and the first service;所述配置单元,还用于设置第二时间段,将所述第二时间段与第二拍摄视野和第二业务绑定;The configuration unit is further configured to set a second time period, and bind the second time period with the second shooting field of view and the second service;发送单元,用于向摄像机发送配置信息,所述配置信息包括第一映射关系和第二映射关系,其中,所述第一映射关系为所述第一时间段和所述第一业务的标识之间的映射关系,所述第二映射关系为所述第二时间段和所述第二业务的标识之间的映射关系。A sending unit, configured to send configuration information to the camera, where the configuration information includes a first mapping relationship and a second mapping relationship, wherein the first mapping relationship is a combination of the first time period and the identifier of the first service The mapping relationship between the second mapping relationship is the mapping relationship between the second time period and the identifier of the second service.
- 根据权利要求18所述的装置,其特征在于,The apparatus of claim 18, wherein:所述第一映射关系还包括:所述第一时间段和所述第一拍摄视野的映射关系;The first mapping relationship further includes: a mapping relationship between the first time period and the first shooting field of view;所述第二映射关系还包括:所述第二时间段和所述第二拍摄视野的映射关系。The second mapping relationship further includes: a mapping relationship between the second time period and the second shooting field of view.
- 根据权利要求18所述的装置,其特征在于,所述接收单元还用于:The device according to claim 18, wherein the receiving unit is further configured to:接收通过用户界面输入的巡航时间段,把所述巡航时间段划分为多个时间段,所述多个时间段包括所述第一时间段和所述第二时间段,所述多个时间段还包括:交替按照所述第一时间段的长度、所述第二时间段的长度执行与所述第一时间段、所述第二时间段对应业务的时间段。receiving a cruise time period input through a user interface, dividing the cruise time period into a plurality of time periods, the plurality of time periods including the first time period and the second time period, the plurality of time periods The method further includes: alternately executing time periods of services corresponding to the first time period and the second time period according to the length of the first time period and the length of the second time period.
- 一种摄像机,其特征在于,所述摄像机包括:A camera, characterized in that the camera comprises:镜头,用于在第一时刻采集第一光线,传感器用于对所述第一光线进行光电转换生成第一图像;The lens is used to collect the first light at the first moment, and the sensor is used to perform photoelectric conversion on the first light to generate the first image;所述镜头还用于在第二时刻采集第二光线,以及所述传感器还用于对所述第二光线进行光电转换生成第二图像,所述第二时刻与所述第一时刻不同;The lens is further configured to collect a second light at a second moment, and the sensor is further configured to perform photoelectric conversion on the second light to generate a second image, where the second moment is different from the first moment;处理器:用于对所述第一图像执行第一业务,以及对所述第二图像执行第二业务,所述第一业务和所述第二业务不同。Processor: configured to execute a first service on the first image and execute a second service on the second image, where the first service and the second service are different.
- 根据权利要求20所述的摄像机,其特征在于,所述摄像机还包括:The camera of claim 20, wherein the camera further comprises:云台,用于调整所述摄像机的拍摄视野,具体包括:把与所述第一时刻对应的第一拍摄视野调整为与所述第二时刻对应的第二拍摄视野。The pan/tilt is used for adjusting the shooting field of view of the camera, which specifically includes: adjusting the first shooting field of view corresponding to the first moment to the second shooting field of view corresponding to the second moment.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120236.9 | 2021-01-28 | ||
CN202110120236.9A CN114827436A (en) | 2021-01-28 | 2021-01-28 | Camera shooting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022161080A1 true WO2022161080A1 (en) | 2022-08-04 |
Family
ID=82525729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/142238 WO2022161080A1 (en) | 2021-01-28 | 2021-12-28 | Photographic method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114827436A (en) |
WO (1) | WO2022161080A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116437216A (en) * | 2023-06-12 | 2023-07-14 | 湖南博信创远信息科技有限公司 | Engineering supervision method and system based on artificial intelligence data processing and visual analysis |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100245125A1 (en) * | 2009-03-30 | 2010-09-30 | Lasercraft, Inc. | Systems and Methods For Surveillance and Traffic Monitoring (Claim Set I) |
WO2014007762A1 (en) * | 2012-07-04 | 2014-01-09 | Tan Seow Loong | A method and system for automated monitoring of traffic |
CN107590834A (en) * | 2017-08-10 | 2018-01-16 | 北京博思廷科技有限公司 | A kind of road traffic accident video detecting method and system |
CN111192426A (en) * | 2020-01-14 | 2020-05-22 | 中兴飞流信息科技有限公司 | Railway perimeter intrusion detection method based on anthropomorphic visual image analysis video cruising |
-
2021
- 2021-01-28 CN CN202110120236.9A patent/CN114827436A/en active Pending
- 2021-12-28 WO PCT/CN2021/142238 patent/WO2022161080A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100245125A1 (en) * | 2009-03-30 | 2010-09-30 | Lasercraft, Inc. | Systems and Methods For Surveillance and Traffic Monitoring (Claim Set I) |
WO2014007762A1 (en) * | 2012-07-04 | 2014-01-09 | Tan Seow Loong | A method and system for automated monitoring of traffic |
CN107590834A (en) * | 2017-08-10 | 2018-01-16 | 北京博思廷科技有限公司 | A kind of road traffic accident video detecting method and system |
CN111192426A (en) * | 2020-01-14 | 2020-05-22 | 中兴飞流信息科技有限公司 | Railway perimeter intrusion detection method based on anthropomorphic visual image analysis video cruising |
Non-Patent Citations (2)
Title |
---|
XU JIAN: "Elementary Analysis on Design of High Definition(HD) Video Surveillance Bayonet Front-end System", URBAN ROADS BRIDGES & FLOOD CONTROL, no. 6, 15 June 2011 (2011-06-15), XP055953715, ISSN: 1009-7716, DOI: 10.16799/j.cnki.csdqyfh.2011.06.081 * |
XU YUBO, TAO HAI: "Development and Application of Digital Video Intelligence Technology", CHINA SECURITY & PROTECTION, no. 11, 1 November 2008 (2008-11-01), pages 46 - 50, XP055953717 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116437216A (en) * | 2023-06-12 | 2023-07-14 | 湖南博信创远信息科技有限公司 | Engineering supervision method and system based on artificial intelligence data processing and visual analysis |
CN116437216B (en) * | 2023-06-12 | 2023-09-08 | 湖南博信创远信息科技有限公司 | Engineering supervision method and system based on artificial intelligence data processing and visual analysis |
Also Published As
Publication number | Publication date |
---|---|
CN114827436A (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10990162B2 (en) | Scene-based sensor networks | |
US10599929B2 (en) | Event monitoring with object detection systems | |
EP1646240B1 (en) | Image processing camera system and image processing camera control method | |
US10994749B2 (en) | Vehicle control method, related device, and computer storage medium | |
US10225525B2 (en) | Information processing device, storage medium, and control method | |
CN110738150A (en) | Camera linkage snapshot method and device and computer storage medium | |
WO2022161080A1 (en) | Photographic method and apparatus | |
US20220189038A1 (en) | Object tracking apparatus, control method, and program | |
KR101326707B1 (en) | Camera system for vehicle number recognition and security | |
WO2023088040A1 (en) | Camera control method and apparatus | |
US20240027604A1 (en) | Extrinsic parameter calibration for 4d millimeter-wave radar and camera based on adaptive projection error | |
RU120270U1 (en) | PEDESTRIAN CROSSING CONTROL COMPLEX | |
KR102099394B1 (en) | Vehicle recognition device, method and computer program | |
JP2020166409A (en) | In-vehicle device, in-vehicle system and surroundings monitoring method | |
US11671700B2 (en) | Operation control device, imaging device, and operation control method | |
CN112601049A (en) | Video monitoring method and device, computer equipment and storage medium | |
US11070714B2 (en) | Information processing apparatus and information processing method | |
KR20200038226A (en) | Vehicle recognition device, method and computer program | |
CN113990073B (en) | Traffic intersection-oriented radar vision cooperation method, device, equipment and medium | |
EP4434817A1 (en) | Data acquisition method, device and system | |
CN114708542B (en) | Image processing method, image processing apparatus, and computer-readable storage medium | |
KR102441099B1 (en) | System for processing information and operating method thereof | |
CN116709028A (en) | Control method, shooting method, device and system of camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21922669 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: 21922669 Country of ref document: EP Kind code of ref document: A1 |