CN113542587B - Image capturing method and device, electronic equipment and computer readable storage medium - Google Patents

Image capturing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113542587B
CN113542587B CN202110574381.4A CN202110574381A CN113542587B CN 113542587 B CN113542587 B CN 113542587B CN 202110574381 A CN202110574381 A CN 202110574381A CN 113542587 B CN113542587 B CN 113542587B
Authority
CN
China
Prior art keywords
area
snapshot
module
probability
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110574381.4A
Other languages
Chinese (zh)
Other versions
CN113542587A (en
Inventor
蒋茹
隋小波
梅海波
潘武
严俊琦
刘克玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110574381.4A priority Critical patent/CN113542587B/en
Publication of CN113542587A publication Critical patent/CN113542587A/en
Application granted granted Critical
Publication of CN113542587B publication Critical patent/CN113542587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an image capturing method, an image capturing device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: defining the snapshot range of a first snapshot module of a camera module as a first area and a second area, and defining the snapshot range of a second snapshot module of the camera module as a third area and the second area; the first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area. Thereby solving the problem of repeated snapshot.

Description

Image capturing method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image capture method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of the technology, gun and ball linkage equipment is favored by the market and is mainly applied to scenes such as key area distribution control, crowd dense area face acquisition, key vehicle distribution control and the like. One of the features is linked tracking or linked positioning and snapping. The gun and ball linkage equipment is mainly divided into a master control component and a slave control component, wherein a common gun bolt is the master control component, and a ball machine is the slave control component. With the increase of market demand, the slave control part of the gun-ball linkage device develops from one ball to multiple balls so as to improve the target snapshot rate, but when the target is snapshot, repeated snapshot often occurs.
Disclosure of Invention
The invention provides an image capturing method and device, electronic equipment and a computer readable storage medium. It can solve the repeated snapshot problem.
In order to solve the above technical problems, a first technical solution provided by the present invention is: provided is an image capturing method including: defining the capturing range of a first capturing module of the camera module as a first area and a second area, and defining the capturing range of a second capturing module of the camera module as a third area and the second area; the first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area.
The first snapshot module is used for snapshotting the first area and the second area, and the second snapshot module is used for snapshotting the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area, including: in a first time period, the first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area; in a second time period, the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area.
The first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area, including: obtaining a first probability that a snapshot target appears in the first area and obtaining a second probability that the snapshot target appears in the third area; controlling the first snapshot module to snapshot the first area and the second area based on the first probability and the second probability, and controlling the second snapshot module to snapshot the third area; or the first snapshot module is controlled to snapshot the first area, and the second snapshot module is controlled to snapshot the second area and the third area.
Wherein the controlling the first snapping module to snap the first area and the second area based on the first probability and the second probability controls the second snapping module to snap the third area; or controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area, including: in response to the first probability being greater than the second probability, controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area; in response to the first probability not being greater than the second probability, controlling the first snapshot module to snapshot the first area and the second area, and controlling the second snapshot module to snapshot the third area; in response to a difference value between the first probability and the second probability being smaller than a preset value, dividing the second region into a first sub-region close to the first region and a second sub-region close to the third region; and controlling the first snapshot module to snapshot the first area and the first sub-area, and controlling the second snapshot module to snapshot the third area and the second sub-area.
Wherein the step of dividing the second region into a first sub-region proximate to the first region and a second sub-region proximate to the third region comprises: the second region is equally divided into a first sub-region near the first region and a second sub-region near the third region.
Wherein the step of obtaining a first probability that the snap-shot target appears in the first region and obtaining a second probability that the snap-shot target appears in the third region comprises: calculating to obtain the first probability by using the number of the snap-shot targets appearing in the first region and the total number of the snap-shot targets appearing in the first region and the third region; and calculating to obtain the second probability by utilizing the number of the snap-shot targets appearing in the third area and the total number of the snap-shot targets appearing in the first area and the third area.
The first snapshot module is used for snapshotting the first area and the second area, and the second snapshot module is used for snapshotting the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area, including: obtaining a first probability that a snap-shot target appears in the first area in a historical first time period, and obtaining a second probability that the snap-shot target appears in the third area in the historical first time period; controlling the first snapshot module to snapshot the first area and the second snapshot module to snapshot the third area based on the first probability and the second probability; or controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area.
Wherein the controlling the first snapping module to snap the first area and the second area based on the first probability and the second probability controls the second snapping module to snap the third area; or controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area, including: in response to the first probability being greater than the second probability, controlling the first snapshot module to snapshot the first area and controlling the second snapshot module to snapshot the second area and the third area at a current first time period; in response to the first probability not being greater than the second probability, controlling the first snapshot module to snapshot the first area and the second area, and controlling the second snapshot module to snapshot the third area at a current first time period; in response to that the difference value between the first probability and the second probability is smaller than a preset value, dividing the second area into a first subarea close to the first area and a second subarea close to the third area; and controlling the first snapshot module to snapshot the first area and the first sub-area in a current first time period, and controlling the second snapshot module to snapshot the third area and the second sub-area.
Wherein the historical first time period and the current first time period are corresponding time periods in two days; or the historical first time period and the current first time period are corresponding time periods in two months.
Wherein the step of obtaining a first probability that the snap-shot target appears in the first area in the historical first time period and obtaining a second probability that the snap-shot target appears in the third area in the historical first time period comprises: calculating to obtain the first probability by utilizing the number of the snap-shot targets which appear in the first area in the historical first time period and the total number of the snap-shot targets which appear in the first area and the third area in the historical first time period; and calculating to obtain the second probability by utilizing the number of the snap-shot targets which appear in the third area in the historical first time period and the total number of the snap-shot targets which appear in the first area and the third area in the historical first time period.
In order to solve the above technical problems, a second technical solution provided by the present invention is: provided is an image capturing apparatus including: the camera shooting device comprises a definition module and a control module, wherein the definition module is used for defining the shooting range of a first shooting module of a camera shooting module to be a first area and a second area, and defining the shooting range of a second shooting module of the camera shooting module to be a third area and the second area; the first snapshot module is used for snapshot of the first area and the second area, or the first area; and the second snapshot module is used for snapshot of the third area, or the second area and the third area.
In order to solve the above technical problems, a third technical solution provided by the present invention is: provided is an electronic device including: a memory storing program instructions and a processor retrieving the program instructions from the memory to perform any of the image capturing methods described above.
In order to solve the above technical problems, a fourth technical solution provided by the present invention is: there is provided a computer-readable storage medium storing a program file executable to implement the image capturing method of any one of the above.
The image capturing method has the beneficial effects that the image capturing method is different from the prior art, the first capturing module is used for capturing the first area and the second area, and the second capturing module is used for capturing the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area. Thereby, the problem of repeated snapshot can be solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a schematic structural diagram of a snapshot module according to the present application;
fig. 2 is a schematic view of the capturing ranges of the first capturing module and the second capturing module;
FIG. 3 is a flowchart illustrating a first embodiment of an image capturing method according to the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the image capturing method according to the present invention;
FIG. 5 is a flowchart illustrating a third exemplary embodiment of an image capturing method according to the present invention;
FIG. 6 is a flowchart illustrating a fourth exemplary embodiment of an image capturing method according to the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of an image capturing device according to the present invention;
FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 9 is a schematic structural diagram of an embodiment of a computer-readable storage medium according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
As shown in fig. 1, which is a schematic structural diagram of the snapshot module of the present application, the snapshot module includes a master control end M and a slave control end N. The master control end M is used for identifying targets in a shooting range, and the slave control end N is used for capturing the targets identified by the master control end. In the practical application process, in order to ensure that there is no snapshot dead angle in the area, a plurality of snapshot modules are generally adjacently arranged to form a combined type camera module, as shown in fig. 2, a first snapshot module and a second snapshot module are adjacently arranged, and in the practical application, the snapshot range of the first snapshot module is a first area a and a second area B, and the snapshot range of the second snapshot module is a second area B and a third area C, wherein the second area B is a common snapshot area of the first snapshot module and the second snapshot module, that is, in the practical application, a target in the second area B can be snapshot by the first snapshot module at the same time and can also be snapshot by the second snapshot module at the same time, which causes repeated snapshot, and further causes system waste. The application provides an image snapshot method for solving the problem of repeated snapshot of a camera module. Referring to fig. 3, a schematic flow chart of a first embodiment of the image capturing method of the present invention specifically includes:
step S11: the method comprises the steps of defining a snapshot range of a first snapshot module of a camera module to be a first area and a second area, and defining a snapshot range of a second snapshot module of the camera module to be a third area and the second area.
The first snapshot module of the camera module is provided with a first area A and a second area B, and the second snapshot module is provided with a second area B and a third area C.
Step S12: the first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area.
In the actual snapshot process, the first snapshot module is controlled to snapshot the first area A and the second area B, the second snapshot module is controlled to snapshot the third area C, or the first snapshot module is controlled to snapshot the first area A, and the second snapshot module is controlled to snapshot the second area B and the third area C. Therefore, the problem of repeated snapshot can be solved.
In an embodiment, the first snapshot module and the second snapshot module have a unified decision layer for example, and the decision layer defines the snapshot range for the first snapshot module and the second snapshot module respectively. For example, the decision layer defines the first snapshot module as a first area a and a second area B, and defines the second snapshot module as a third area C. At the moment, the master control end M of the first snapshot module identifies all the snapshot targets in the first area A and the second area B, and the slave control end N conducts snapshot on all the snapshot targets in the first area A and the second area B; and the master control end M of the second snapshot module identifies all the snapshot targets in the third area C, and all the snapshot targets in the third area C are snapshot through the slave control end N. For another example, the decision layer defines the capturing range for the first capturing module as the first area a, and defines the capturing range for the second capturing module as the third area C and the second area B. At the moment, the master control end M of the first snapshot module identifies all the snapshot targets in the first area A, and the slave control end N simultaneously conducts snapshot on all the snapshot targets in the first area A; and the master control end M of the second snapshot module identifies all the snapshot targets in the third area C and the second area B, and performs snapshot on all the snapshot targets in the third area C and the second area B through the slave control end N.
In another embodiment, the first capturing module and the second capturing module do not have a unified decision layer as an example for description. The first capturing module and the second capturing module can be defined with respective capturing areas in a manual setting mode. Or, a unified processing layer can be further arranged, the processing layer is respectively associated with the decision layer of the first snapshot module and the decision layer of the second snapshot module, and the decision layer of the first snapshot module and the decision layer of the second snapshot module are controlled by the processing layer to define respective snapshot areas for the first snapshot module and the second snapshot module. By the method, the problem of repeated snapshot is solved, and system loss and system burden are reduced.
In an embodiment, in order to reduce the system load, the capturing areas of the first capturing module and the second capturing module may be set in different time intervals. Referring to fig. 4, a flowchart of a second embodiment of the image capturing method of the present invention specifically includes:
step S21: in a first time period, the first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area.
Step S22: in a second time period, the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area.
In a first time period, the first snapshot module takes a snapshot of all the snapshot targets in the first area A and the second area B, and the second snapshot module takes a snapshot of all the snapshot targets in the third area C. In a second time period, the first snapshot module takes a snapshot of all the snapshot targets in the first area A, and the second snapshot module takes a snapshot of all the snapshot targets in the third area C and the second area B.
For example, a 00: 00-12, the capturing range is a first area A and a second area B, and the capturing range is defined as a third area C for the second capturing module. Defining 12 per day for the first snapshot module, either by the decision layer, or the processing layer, or by human: 00 to 00: when 00, the capturing range is the first area a, and the capturing range is defined as the third area C and the second area B for the second capturing module. Then at each day 00: 00-12, the first snapshot module takes a snapshot of all the snapshot targets in the first area A and the second area B, and the second snapshot module takes a snapshot of all the snapshot targets in the third area C. At 12:00 to 00: when the vehicle speed is 00, the first snapshot module takes a snapshot of all the snapshot targets in the first area A, and the second snapshot module takes a snapshot of all the snapshot targets in the third area C and the second area B.
Or, when odd-numbered points of each day are defined for the first snapshot module by a decision layer, a processing layer or a person, the snapshot range is the first area a and the second area B, and the snapshot range is defined for the second snapshot module as the third area C. When the first snapshot module is defined at even points of each day through a decision layer, a processing layer or a person, the snapshot range is defined as a first area A, and the snapshot range is defined as a third area C and a second area B for the second snapshot module. And when the number of the points is odd, the first snapshot module takes a snapshot of all the snapshot targets in the first area A and the second area B, and the second snapshot module takes a snapshot of all the snapshot targets in the third area C. And when the number of the even points is every day, the first snapshot module takes a snapshot of all the snapshot targets in the first area A, and the second snapshot module takes a snapshot of all the snapshot targets in the third area C and the second area B.
Through the method of the embodiment, the first snapshot module and the second snapshot module snapshot the snapshot target in the second area B in different time periods, so that on one hand, the problem of repeated snapshot can be solved, and on the other hand, the system burden can be reduced to a certain extent.
In an embodiment, in order to reduce the system load, a first snapshot module or a second snapshot module may be selected to snapshot a second area B based on the probability of occurrence of a snapshot target in a first area a and a third area C, specifically refer to fig. 5, which is a flowchart of a third embodiment of the image snapshot method of the present invention, and specifically includes:
step S31: and obtaining a first probability that the snapshot target appears in the first area and obtaining a second probability that the snapshot target appears in the third area.
Specifically, the first probability is calculated by using the number of the snap-shot targets appearing in the first region a and the total number of the snap-shot targets appearing in the first region a and the third region C; and calculating to obtain the second probability by using the number of the snap-shot targets appearing in the third area C and the total number of the snap-shot targets appearing in the first area A and the third area C.
In a specific embodiment, the number of the snap-shot objects appearing in the first area a and the number of the snap-shot objects appearing in the third area C may be counted for a period of time. For example, assuming that the snapshot target is a person, a preset time period is selected, and the number of persons appearing in the first area a and the number of persons appearing in the third area C in the preset time period are counted. Calculating a first probability that the snapshot target appears in the first area a by using the sum of the number of persons appearing in the first area a and the third area C, for example: l1= H1/H; where H1 is the number of people present in the first region a, H is the sum of the numbers of people present in the first region a and the third region C, i.e. H = H1+ H2, and H2 is the number of people present in the third region C. A second probability that the snap-shot target appears in the third region C is calculated using the sum of the number of people appearing in the third region C and the number of people appearing in the first region a and the third region C, for example, L2= H2/H.
Step S32: controlling the first snapshot module to snapshot the first area and the second snapshot module to snapshot the third area based on the first probability and the second probability; or controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area.
Specifically, the present embodiment determines the snap-shot object of the second region B based on the first probability L1 and the second probability L2.
In an embodiment, if the first probability L1 is greater than the second probability L2, i.e. L1 > L2, the first capturing module is controlled to capture the first area a, and the second capturing module is controlled to capture the second area B and the third area C. Specifically, the first probability L1 is greater than the second probability L2, which indicates that the number of the snap-shot targets appearing in the first region a is greater than the number of the snap-shot targets appearing in the third region C, and the second snap-shot module is controlled to snap-shot the second region B at this time in order to reduce the system load of the first snap-shot module.
In another embodiment, if the first probability L1 is not greater than the second probability L2, i.e. L1 is less than or equal to L2, the first snapshot module is controlled to snapshot the first area a and the second area B, and the second snapshot module is controlled to snapshot the third area C. Specifically, the first probability L1 is not greater than the second probability L2, which indicates that the number of the snap-shot targets appearing in the first region a is less than or equal to the number of the snap-shot targets appearing in the third region C, and in order to reduce the system load of the second snap-shot module, the first snap-shot module is controlled to snap-shot the second region B. Specifically, if the first probability L1 is smaller than the second probability L2, the second region B is captured by using the first capture module. If the first probability L1= the second probability L2, the second area B may be captured by using the first capture module, and the second area B may also be captured by using the second capture module.
In another embodiment, if the difference between the first probability L1 and the second probability L2 is smaller than a predetermined value L, the second area B is divided into a first subarea B1 close to the first area a and a second subarea B2 close to the third area C; and controlling the first snapshot module to snapshot the first area A and the first sub-area B1, and controlling the second snapshot module to snapshot the third area C and the second sub-area B2. Specifically, the preset value is a reasonable probability value, which can be set by a user according to actual requirements, or can be given by a program, and is not limited specifically. If the first probability | L1-L2| < L is calculated, dividing the second area B into a first sub-area B1 close to the first area A and a second sub-area B2 close to the third area C; and controlling the first snapshot module to snapshot the first area A and the first sub-area B1, and controlling the second snapshot module to snapshot the third area C and the second sub-area B2. In a specific embodiment, the second area B is equally divided into a first sub-area B1 close to the first area a and a second sub-area B2 close to the third area C.
In one embodiment, the decision layer equally divides the second area B into a first sub-area B1 close to the first area a and a second sub-area B2 close to the third area C when drawing the snap-shot areas for the first snap-shot module and the second snap-shot module. And then drawing and defining the area covered by the first area A and the first sub-area B1 as a snapshot area of the first snapshot module, and controlling the first snapshot module to snapshot targets in the area covered by the first area A and the first sub-area B1 when the first snapshot module conducts snapshot. And drawing and defining the area covered by the third area C and the second sub-area B2 as a snapshot area of the second snapshot module, and controlling the second snapshot module to snapshot the target of the area covered by the third area C and the second sub-area B2 when the second snapshot module performs snapshot. Wherein, since the second area B is divided by the decision layer, the decision layer may be divided based on the specific shape of the second area B.
For example, in this embodiment, after the first probability L1 and the second probability L2 are obtained through calculation, whether a difference between the first probability L1 and the second probability L2 is smaller than a preset value L may be first compared, and if so, the second region B is divided into a first sub-region B1 close to the first region a and a second sub-region B2 close to the third region C; and controlling the first snapshot module to snapshot the first area A and the first sub-area B1, and controlling the second snapshot module to snapshot the third area C and the second sub-area B2. If the difference value between the first probability L1 and the second probability L2 is not smaller than the preset value L, the first probability L1 and the second probability L2 are further compared, and the first snapshot module or the second snapshot module is selected to be used for snapshot of the second area B.
According to the method, the snapshot object in the second area B is selected according to the probability of the occurrence of the snapshot targets in the first area A and the third area C, the second area B can be snapshot by using the snapshot module with a small number of snapshot targets, on one hand, the problem of repeated snapshot is solved, and on the other hand, the system load is reduced.
Referring to fig. 6, a schematic flow chart of a fourth embodiment of the image capturing method of the present invention specifically includes:
step S41: obtaining a first probability that a snap-shot object appears in the first area during a historical first time period, and obtaining a second probability that the snap-shot object appears in the third area during the historical first time period.
Specifically, the first probability is calculated by using the number of the snap-shot targets which appear in the first area a in the historical first time period and the total number of the snap-shot targets which appear in the first area a and the third area C in the historical first time period; and calculating to obtain the second probability by using the number of the snapshot targets appearing in the third area C in the historical first time period and the total number of the snapshot targets appearing in the first area A and the third area C in the historical first time period.
In a specific embodiment, the number of snap-shot objects appearing in the first area a and the number of snap-shot objects appearing in the third area C in the first time period of the history may be counted. For example, assuming that the snapshot target is a person, a history first period is selected, and the history first period, the number of persons appearing in the first area a, and the number of persons appearing in the third area C are counted. Calculating a first probability of the snapshot target appearing in the first area a in the first time period in the history by using the sum of the number of the persons appearing in the first area a in the history first time period and the number of the persons appearing in the first area a and the third area C in the history first time period, for example: l3= H3/H0; where H3 is the number of people appearing in the first area a in the first time period, H0 is the sum of the numbers of people appearing in the first area a and the third area C in the first time period, that is, H0= H3+ H4, and H4 is the number of people appearing in the third area C in the first time period. A second probability that the snap-shot object appears in the third area C in the history first period is calculated by using the sum of the number of people appearing in the third area C in the history first period and the number of people appearing in the first area a and the third area C in the history first period, for example, L4= H4/H0.
Step S42: controlling the first snapshot module to snapshot the first area and the second area based on the first probability and the second probability, and controlling the second snapshot module to snapshot the third area; or the first snapshot module is controlled to snapshot the first area, and the second snapshot module is controlled to snapshot the second area and the third area.
Specifically, the snapshot module of the second area B in the first time period corresponding to the historical first time period may be determined according to the first probability and the second probability.
Specifically, in response to the first probability L3 being greater than the second probability L4, the first snapshot module is controlled to snapshot the first area a at the current first time period, and the second snapshot module is controlled to snapshot the second area B and the third area C. The historical first time period and the current first time period are corresponding time periods in two days; or the historical first time period and the current first time period are corresponding time periods in two months. Suppose that the historical first time period is 12 yesterday: 00 to 14:00, if the calculated first probability L3 is greater than the second probability L4, in a first time period (12 to 14 today). Assuming that the historical first time period is 3 months, 9 days to 3 months, 19 days, and the calculated first probability L3 is greater than the second probability L4, the first snapshot module is controlled to snapshot the first area A, and the second snapshot module is controlled to snapshot the second area B and the third area C in the first time period of the month (3 months, 9 days to 3 months, 19 days).
And responding to the fact that the first probability L3 is not larger than the second probability L4, controlling the first snapshot module to snapshot the first area A and the second area B in the current first time period, and controlling the second snapshot module to snapshot the third area C. Suppose that the historical first time period is 12 yesterday: 00 to 14:00, if the calculated first probability L3 is not greater than the second probability L4, the first snapshot module is controlled to snapshot the first area a and the second area B in the first time period (12 to 14. Further, when the first probability L3 is equal to the second probability L4, it may be that 12:00 to 14: when 00 hours, the first snapshot module is used for snapshot of the second area B, and the second snapshot module can also be used for snapshot of the second area B.
And in response to the difference between the first probability and the second probability being smaller than a preset value, dividing the second area B into a first sub-area B1 close to the first area a and a second sub-area B2 close to the third area C. And controlling the first snapshot module to snapshot the first area A and the first sub-area B1, and controlling the second snapshot module to snapshot the third area C and the second sub-area B2 in the current first time period. For example, assume that the historical first time period is 12 yesterday: 00 to 14:00, if the difference between the first probability L3 and the second probability L4 obtained through calculation is smaller than a preset value L, averagely dividing the second area B into a first sub-area B1 close to the first area a and a second sub-area B2 close to the third area C, controlling a first snapshot module to snapshot the first area a and the first sub-area B1 in a first time period of today (12 to 14 today.
In the method of the embodiment, the corresponding time period is determined to capture the capturing module of the second area B in a manner of determining the probability in time, so that the system load can be further reduced. Specifically, in this embodiment, the load condition of each snapshot module is used to transfer the snapshot task in the common view, i.e., the second area, to the snapshot module with a lighter load for processing, so as to balance the load problem between the two snapshot modules and achieve the purpose of global optimization.
Fig. 7 is a schematic structural diagram of an image capturing device according to an embodiment of the present invention. The definition module 71 is configured to define a capturing range of a first capturing module of the camera module as a first area and a second area, and define a capturing range of a second capturing module of the camera module as a third area and the second area.
The first capturing module 72 is configured to capture the first area and the second area, or capture the first area. The second capturing module 73 is configured to capture the third area, or capture the second area and the third area.
In an embodiment, the first capturing module 72 is configured to capture the first area and the second area in a first time period, and the second capturing module 73 captures the third area. The first capturing module 72 is configured to capture the first area in a second time period, and the second capturing module 73 captures the second area and the third area.
In an embodiment, the defining module 71 is configured to calculate the first probability by using the number of the snap-shot objects appearing in the first area and the total number of the snap-shot objects appearing in the first area and the third area; and calculating to obtain the second probability by using the number of the snap-shot targets appearing in the third area and the total number of the snap-shot targets appearing in the first area and the third area. Controlling the first snapping module 72 to snap the first area and the second snapping module 73 to snap the third area based on the first probability and the second probability; or the first snapshot module is controlled to snapshot the first area, and the second snapshot module is controlled to snapshot the second area and the third area. Specifically, in response to the first probability being greater than the second probability, the first snapshot module 72 is controlled to snapshot the first area, and the second snapshot module 73 is controlled to snapshot the second area and the third area; in response to the first probability not being greater than the second probability, controlling the first snapping module 72 to snap the first area and the second area, and controlling the second snapping module 73 to snap the third area; in response to a difference value between the first probability and the second probability being smaller than a preset value, dividing the second region into a first sub-region close to the first region and a second sub-region close to the third region; the first snapshot module 72 is controlled to snapshot the first region and the first sub-region, and the second snapshot module 73 is controlled to snapshot the third region and the second sub-region.
In an embodiment, the defining module 71 is configured to calculate the first probability by using the number of the snap-shot targets that have appeared in the first area in the historical first time period and the total number of the snap-shot targets that have appeared in the first area and the third area in the historical first time period; and calculating to obtain the second probability by utilizing the number of the snap-shot targets which appear in the third area in the historical first time period and the total number of the snap-shot targets which appear in the first area and the third area in the historical first time period. Controlling the first snapshot module 72 to snapshot the first area and the second snapshot module 73 to snapshot the third area based on the first probability and the second probability; or the first capturing module 72 is controlled to capture the first region, and the second capturing module 73 is controlled to capture the second region and the third region. In response to the first probability being greater than the second probability, controlling the first snapshot module 72 to snapshot the first area, and controlling the second snapshot module 73 to snapshot the second area and the third area at a current first time period; in response to the first probability not being greater than the second probability, controlling the first snapshot module 72 to snapshot the first area and the second area and controlling the second snapshot module 73 to snapshot the third area at a current first time period; in response to a difference value between the first probability and the second probability being smaller than a preset value, dividing the second region into a first sub-region close to the first region and a second sub-region close to the third region; and controlling the first snapshot module 72 to snapshot the first region and the first sub-region, and controlling the second snapshot module 73 to snapshot the third region and the second sub-region in the current first time period.
The utility model provides an image snapshot device, it can solve a certain regional repeated snapshot problem, can also reduce the load of snapshot module, reduces the system loss.
Referring to fig. 8, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown, where the electronic device includes a memory 202 and a processor 201 that are connected to each other.
The memory 202 is used to store program instructions implementing the methods of the apparatus of any of the above.
The processor 201 is used to execute program instructions stored by the memory 202.
The processor 201 may also be referred to as a Central Processing Unit (CPU). The processor 201 may be an integrated circuit chip having signal processing capabilities. The processor 201 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 202 may be a memory bank, a TF card, etc., and may store all information in the electronic device of the device, including the input raw data, the computer program, the intermediate operation results, and the final operation results. It stores and retrieves information based on the location specified by the controller. With the memory, the electronic device can only have the memory function to ensure the normal operation. The memories of electronic devices are classified into a main memory (internal memory) and an auxiliary memory (external memory) according to their purposes, and also into an external memory and an internal memory. The external memory is usually a magnetic medium, an optical disk, or the like, and can store information for a long period of time. The memory is a storage unit on the motherboard, which is used for storing data and programs currently being executed, but is only used for temporarily storing the programs and the data, and the data is lost when the power is turned off or the power is cut off.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, which are essential or contributing to the prior art, or all or part of the technical solutions may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a system server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application.
Please refer to fig. 9, which is a schematic structural diagram of a computer-readable storage medium according to the present invention. The storage medium of the present application stores a program file 203 capable of implementing all the methods, where the program file 203 may be stored in the storage medium in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. The aforementioned storage device includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. The image snapshot method is characterized by being used for a snapshot module, wherein the snapshot module comprises a master control end and a slave control end, the master control end is used for identifying a target in a shooting range, and the slave control end is used for snapshot of the target identified by the master control end; the method comprises the following steps:
defining the capturing range of a first capturing module of a camera module as a first area and a second area, and defining the capturing range of a second capturing module of the camera module as a third area and the second area;
obtaining a first probability that a snapshot target appears in the first area and obtaining a second probability that the snapshot target appears in the third area; the first probability is obtained by calculating the number of the snap-shot targets appearing in the first area and the total number of the snap-shot targets appearing in the first area and the third area; calculating to obtain the second probability by using the number of the snap-shot targets appearing in the third area and the total number of the snap-shot targets appearing in the first area and the third area;
controlling the first snapshot module to snapshot the first area and the second snapshot module to snapshot the third area based on the first probability and the second probability; or the first snapshot module is controlled to snapshot the first area, and the second snapshot module is controlled to snapshot the second area and the third area.
2. The method according to claim 1, wherein the first snapping module snaps the first area and the second area, and the second snapping module snaps the third area; or the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area, including:
in a first time period, the first snapshot module takes a snapshot of the first area and the second area, and the second snapshot module takes a snapshot of the third area;
in a second time period, the first snapshot module takes a snapshot of the first area, and the second snapshot module takes a snapshot of the second area and the third area.
3. The method according to claim 1, wherein the first snapshot module is controlled to snapshot the first area and the second snapshot module is controlled to snapshot the third area based on the first probability and the second probability; or controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area, including:
in response to the first probability being greater than the second probability, controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area;
in response to the first probability not being greater than the second probability, controlling the first snapshot module to snapshot the first area and the second area, and controlling the second snapshot module to snapshot the third area;
in response to a difference value between the first probability and the second probability being smaller than a preset value, dividing the second region into a first sub-region close to the first region and a second sub-region close to the third region; and controlling the first snapshot module to snapshot the first area and the first sub-area, and controlling the second snapshot module to snapshot the third area and the second sub-area.
4. The method of claim 1, wherein obtaining a first probability that a snap-shot target appears in the first region and obtaining a second probability that the snap-shot target appears in the third region; calculating to obtain the first probability by using the number of the snap-shot targets appearing in the first area and the total number of the snap-shot targets appearing in the first area and the third area; calculating to obtain the second probability by using the number of the snap-shot targets appearing in the third area and the total number of the snap-shot targets appearing in the first area and the third area, wherein the step comprises the following steps:
obtaining a first probability that a snap-shot target appears in the first area in a historical first time period, and obtaining a second probability that the snap-shot target appears in the third area in the historical first time period; calculating the first probability by using the number of the snapshot targets appearing in the first region in the historical first time period and the total number of the snapshot targets appearing in the first region and the third region in the historical first time period; and calculating to obtain the second probability by utilizing the number of the snap-shot targets which appear in the third area in the historical first time period and the total number of the snap-shot targets which appear in the first area and the third area in the historical first time period.
5. The method according to claim 4, wherein the first snapshot module is controlled to snapshot the first area and the second snapshot module is controlled to snapshot the third area based on the first probability and the second probability; or controlling the first snapshot module to snapshot the first area, and controlling the second snapshot module to snapshot the second area and the third area, including:
in response to the first probability being greater than the second probability, controlling the first snapshot module to snapshot the first area and controlling the second snapshot module to snapshot the second area and the third area at a current first time period;
in response to the first probability not being greater than the second probability, controlling the first snapshot module to snapshot the first area and the second area, and controlling the second snapshot module to snapshot the third area at a current first time period;
in response to a difference value between the first probability and the second probability being smaller than a preset value, dividing the second region into a first sub-region close to the first region and a second sub-region close to the third region; and controlling the first snapshot module to snapshot the first region and the first sub-region at the current first time period, and controlling the second snapshot module to snapshot the third region and the second sub-region.
6. The method of claim 5, wherein the historical first time period and the current first time period are corresponding time periods of two days; or the historical first time period and the current first time period are corresponding time periods in two months.
7. An image capturing apparatus, characterized in that the apparatus comprises:
the camera shooting device comprises a definition module and a shooting module, wherein the definition module is used for defining the shooting range of a first shooting module of a camera shooting module to be a first area and a second area, and defining the shooting range of a second shooting module of the camera shooting module to be a third area and the second area;
the first snapshot module is used for snapshotting the first area and the second area or snapshotting the first area;
and the second snapshot module is used for snapshot of the third area, or the second area and the third area.
8. An electronic device, comprising: memory storing program instructions and a processor retrieving the program instructions from the memory to perform the image capturing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that a program file is stored, which can be executed to implement the image capturing method according to any one of claims 1 to 6.
CN202110574381.4A 2021-05-25 2021-05-25 Image capturing method and device, electronic equipment and computer readable storage medium Active CN113542587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110574381.4A CN113542587B (en) 2021-05-25 2021-05-25 Image capturing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110574381.4A CN113542587B (en) 2021-05-25 2021-05-25 Image capturing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113542587A CN113542587A (en) 2021-10-22
CN113542587B true CN113542587B (en) 2023-04-18

Family

ID=78094827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110574381.4A Active CN113542587B (en) 2021-05-25 2021-05-25 Image capturing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113542587B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019009643A (en) * 2017-06-26 2019-01-17 株式会社リコー Image processing apparatus, image processing method and program

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013020475A (en) * 2011-07-12 2013-01-31 Sony Corp Information processing apparatus, information processing method and program
CN102254169B (en) * 2011-08-23 2012-08-22 东北大学秦皇岛分校 Multi-camera-based face recognition method and multi-camera-based face recognition system
EP3188468B1 (en) * 2014-08-29 2019-05-22 Huawei Technologies Co., Ltd. Image processing method and electronic device
TWI541767B (en) * 2015-04-07 2016-07-11 群暉科技股份有限公司 Method for controlling a surveillance system with aid of automatically generated patrol routes, and associated apparatus
CN105635576A (en) * 2015-12-30 2016-06-01 北京全景思维科技有限公司 Method for preventing appearance of photographer in multi-camera panoramic photographing image and device thereof
CN108206932A (en) * 2016-12-16 2018-06-26 北京迪科达科技有限公司 A kind of campus intelligent monitoring management system
CN108419014B (en) * 2018-03-20 2020-02-21 北京天睿空间科技股份有限公司 Method for capturing human face by linkage of panoramic camera and multiple capturing cameras
JP2020036196A (en) * 2018-08-30 2020-03-05 キヤノン株式会社 Image processing system, imaging apparatus, image processing method, and program
JP2020145511A (en) * 2019-03-04 2020-09-10 パナソニックi−PROセンシングソリューションズ株式会社 Camera device, person detection method, and person detection system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019009643A (en) * 2017-06-26 2019-01-17 株式会社リコー Image processing apparatus, image processing method and program

Also Published As

Publication number Publication date
CN113542587A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN109388317B (en) Picture loading method, terminal device and storage medium
WO2021164269A1 (en) Attention mechanism-based disparity map acquisition method and apparatus
DE102013109014A1 (en) Dynamic voltage and frequency scaling method and apparatus
WO2021174789A1 (en) Feature extraction-based image recognition method and image recognition device
CN111045814A (en) Resource scheduling method and terminal equipment
CN101877130A (en) Moving target tracking method based on particle filter under complex scene
US20230205745A1 (en) History of slowly changing dimensions
CN113542587B (en) Image capturing method and device, electronic equipment and computer readable storage medium
CN106844727B (en) Mass image characteristic data distributed acquisition processing and grading application system and method
CN109409318A (en) Training method, statistical method, device and the storage medium of statistical model
CN108563776A (en) Off-line data acquisition methods and system, server and storage medium
CN110865877B (en) Task request response method and device
CN113779426A (en) Data storage method and device, terminal equipment and storage medium
CN111191309B (en) Real-time shielding and rejecting method, device and equipment suitable for BIM light weight
CN115147297A (en) Image processing method and device
WO2019003709A1 (en) Information processing device, control method, and program
CN109815369B (en) Filing method and device
CN112085002A (en) Portrait segmentation method, portrait segmentation device, storage medium and electronic equipment
CN111008194A (en) Data deduplication method and method for inquiring and counting deduplication data at any starting time
CN110662047A (en) Image storage method and device, electronic equipment and computer storage medium
CN110765817A (en) Method, device and equipment for selecting crowd counting model and storage medium thereof
CN110989907B (en) Data display method and device, electronic equipment and storage medium
CN112232148B (en) Image clustering, target track tracking method, electronic device and storage medium
CN116777621B (en) Trade business risk prevention and control method and prevention and control system thereof
CN113192189B (en) Method, device and equipment for correcting connection relation and readable storage medium

Legal Events

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