WO2020082866A1 - Motion trajectory synthesising method and electronic device - Google Patents

Motion trajectory synthesising method and electronic device Download PDF

Info

Publication number
WO2020082866A1
WO2020082866A1 PCT/CN2019/101435 CN2019101435W WO2020082866A1 WO 2020082866 A1 WO2020082866 A1 WO 2020082866A1 CN 2019101435 W CN2019101435 W CN 2019101435W WO 2020082866 A1 WO2020082866 A1 WO 2020082866A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
images
frame
moving subject
area
Prior art date
Application number
PCT/CN2019/101435
Other languages
French (fr)
Chinese (zh)
Inventor
魏祺
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020082866A1 publication Critical patent/WO2020082866A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/2228Video assist systems used in motion picture production, e.g. video cameras connected to viewfinders of motion picture cameras or related video signal processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30241Trajectory

Definitions

  • the embodiments of the present invention relate to the technical field of image processing, and in particular, to a motion track synthesis method and an electronic device.
  • Taking pictures and videos of scenes of moving subjects is one of the common life scenes of taking pictures with cameras.
  • Program sports scenes are always fleeting, such as slam dunks during basketball games, dribbling shots during football games, high jumps, long jumps, etc.
  • a sports silhouette is generated, which combines multiple sports images into one. In the image, a series of silhouette images of the trajectory of the moving subject can be synthesized.
  • the inventor found that there are at least the following problems: the moving speed of the moving subject is different, the direction of the movement is uncertain, and the size of the moving subject is different. In the composite image, the overlapping of the moving subjects may appear, and the complete motion cannot be seen. The action of the subject is shown in Figure 1, so the synthesis effect is not very good.
  • the purpose of the embodiments of the present invention is to provide a method for synthesizing a motion track and an electronic device, so that the motion subjects in the synthesized motion track do not overlap, and the synthesis effect is better.
  • an embodiment of the present invention provides a method for synthesizing a motion track, including: acquiring multiple frames of images; wherein the multiple frames of images are arranged according to the acquisition time; the multiple frames of images are divided according to a preset manner Into a plurality of grid regions; selecting from the multi-frame images several frames of images that meet a preset condition; wherein, the preset conditions include that the several frames of images all contain a moving subject and motion in any two frames of images The grid areas occupied by the main body do not overlap; the motion trajectory of the moving main body is synthesized according to the selected frames of images.
  • An embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; a camera connected to the at least one processor and the memory; wherein , The camera is used to collect images; the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform the above movement Track synthesis method.
  • Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the above-mentioned motion track synthesis method is implemented.
  • FIG. 1 is a schematic diagram of a motion trajectory synthesized in the prior art
  • FIG. 2 is a flowchart of a method for synthesizing a motion track according to the first embodiment of the present invention
  • FIG. 3 is a schematic diagram of the synthesized motion track according to the first embodiment of the present invention.
  • FIG. 4 is a flowchart of a motion track synthesis method according to a second embodiment of the present invention.
  • FIG. 5 is a flowchart of a motion track synthesis method according to a third embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a grid area divided according to the third embodiment of the present invention.
  • FIG. 7 is a flowchart of a screening method in sub-step 3032 according to the third embodiment of the present invention.
  • FIG. 8 is a flowchart of a screening method in sub-step 3032 according to the fourth embodiment of the present invention.
  • FIG. 9 is a flowchart of a motion track synthesis method according to a fifth embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an electronic device according to a sixth embodiment of the present invention.
  • the first embodiment of the present invention relates to a motion track synthesis method.
  • the specific process is shown in Figure 2.
  • Step 101 Acquire multi-frame images; wherein, the multi-frame images are arranged according to the acquisition time;
  • Step 102 Divide the multi-frame images into multiple grid areas according to a preset method
  • Step 103 Select a plurality of frames of images satisfying preset conditions from the multi-frame images; wherein the preset conditions include that several frames of images include moving subjects and the grid area occupied by the moving subjects in any two frames of images does not overlap;
  • Step 104 Synthesize the motion trajectory of the moving subject according to the selected frames of images.
  • this embodiment divides the image into a plurality of grid areas according to a preset method; selects from a plurality of frames of images that meet a preset condition for synthesis, where the preset condition includes an image
  • the preset condition includes an image
  • the grid method is used to select the image for synthesis, which is not affected by the movement speed of the moving subject, the direction of movement, and the change in the size of the moving subject. it is good.
  • the motion trajectory synthesis method of this embodiment can be applied to an electronic device, and the electronic device is, for example, a personal computer, a mobile phone, etc., and is not limited thereto. Please refer to FIG. 2 and FIG. 3 together, where FIG. 3 is a schematic diagram of the synthesized motion track in this embodiment.
  • the electronic device may collect multiple frames of images through a camera; the camera may be integrated on the electronic device or may be externally connected.
  • the camera may acquire images at a preset frequency, where the number of frames of the acquired image may be preset, for example, preset 60 frames, the camera may acquire 60 frames of images at a preset frequency; or, the time for acquiring images may be preset, for example If the preset time is 10 seconds, the camera will collect images at a preset frequency, and the acquisition will stop after 10 seconds.
  • the number of images collected is related to the preset time and preset frequency.
  • the collected multi-frame images are arranged according to the acquisition time.
  • each frame of image may be divided into multiple grid areas in the preset manner.
  • Each area divided by a dotted line in FIG. 3 is a grid area.
  • the preset method can be set as required. For example, it is preset that the image is divided into X grid areas, then the width W1 and height h1 of each grid area are calculated according to the width W and height h of the image, and then the grid division is performed, where the width W of the image
  • the height h can be calculated from the collected images, or can be preset in advance; or, the width W1 and height h1 of each grid area are preset, and grid division can be performed at this time; the above is only an example, not This is limited.
  • X is an integer greater than 0. When the image size is constant, the larger X is, the smaller the grid area is.
  • each frame The total area occupied by the image is the same, that is, each frame of the image is divided into grids according to a preset method, and has the same number of grid areas, and the coordinate positions of the corresponding grid areas are the same;
  • the grid regions of the frame image are encoded in the same order (for example, from the first row to the last row, and sequentially encoded from left to right), and the same grid region in each frame image is the corresponding raster. Grid area.
  • Step 103 can be implemented in the following manner.
  • each frame of the image is sequentially motion-recognized, and the images containing the moving subject are identified, and the images containing the moving subject are also arranged in sequence according to the acquisition time; wherein, motion recognition can be used in the prior art
  • motion recognition can be used in the prior art
  • the method of extracting and matching based on feature points will not be described in detail here.
  • each grid region can be numbered; then select a frame of image first, and determine the number of the grid region occupied by the moving subject in the selected image.
  • the selected image is considered to meet the preset conditions Image, as in the above example, you can select the sixth frame image, and confirm that the number of the grid area occupied by the moving subject in the sixth frame image is 1, 2, where the sixth frame image is considered to meet the preset conditions Images; then, according to the order of the images, the grid areas occupied by the moving subjects in each image are separately judged.
  • the images from the 7th frame to the 45th frame are sequentially filtered, assuming the 7th frame If the number of grid areas occupied by moving subjects in the image is 3 or 4, it is determined that the grid area occupied by moving subjects in the seventh frame image does not overlap with the grid area occupied by moving subjects in the sixth frame image (number 3, The grid area of 4 and the grid areas of numbers 1 and 2 do not overlap), so the image of the seventh frame is considered to meet the preset conditions; the number of grid areas occupied by moving subjects in the image of the eighth frame is 4, 6, 7, it is determined that the 8th frame of the image The grid area occupied by the moving subject overlaps with the grid area occupied by the moving subject in the 7th frame image (the 8th frame image and the 7th frame image both occupy the grid area of number 4), therefore, the 8th frame image is not The image that meets the preset conditions can be discarded; the number of the grid area occupied by the moving subject in the 9th frame image is 7, 9, 10, then the grid area occupied by the moving subject
  • the selected image can be set as needed, any frame of the image containing the moving subject can be used as the selected image, for example, the first frame of the image as the selected image (such as the 6th in the above example) Frame image).
  • step 103 can also be implemented in the following manner. According to the arrangement order, perform motion recognition on each frame in sequence and when recognizing the image containing the moving subject, determine the grid area occupied by the moving subject in the image, and determine the grid occupied by the moving subject in the image Whether the grid area overlaps with the grid area occupied by moving subjects in other images.
  • motion recognition is performed on the first frame image to the fifth frame image in sequence, and no moving subject is identified, then the first frame image to the fifth frame image are discarded; the sixth frame image is subjected to motion recognition and Identified the moving subject, and determined that the grid area occupied by the moving subject is numbered 1, 2.
  • the sixth frame image is the first to identify the moving subject
  • the sixth frame image is considered to meet the pre- Set the conditional first image, perform motion recognition on the seventh frame image and identify the moving subject, and determine the number of the grid area occupied by the moving subject as 3, 4, then determine the moving subject in the seventh frame image
  • the occupied grid area does not overlap with the grid area occupied by the moving subject in the sixth frame image (the grid areas numbered 3 and 4 and the grid areas numbered 1 and 2 do not overlap), so the seventh frame image is considered to be satisfactory Images with preset conditions; the recognition method of the 8th frame image to the 45th frame image is similar to the above example, and will not be repeated here; the moving subjects are not recognized in the 46th frame image to the 60th frame image, then the Images from frame 46 to frame 60 are discarded.
  • the moving subjects in the image refer to the pictures of the moving subjects in the image.
  • step 104 if the moving subjects in the image are separated from the background image, the moving subjects separated in each frame image are combined on a background image, if the moving subjects in the image are not separated from the background image.
  • the second embodiment of the present invention relates to a motion track synthesis method.
  • the second embodiment is substantially the same as the first embodiment, and the main difference is that in the second embodiment of the present invention, motion recognition will be performed on the currently collected image, and the image containing the moving subject is selected, and it is repeated multiple times in a row When no moving subject is identified in the collected image, the collection is stopped.
  • Step 201 acquiring multiple frames of images, including the following sub-steps:
  • Substep 2011, acquiring images according to a preset frequency
  • Sub-step 2012 perform motion recognition on the currently collected image and judge whether the recognition is successful; if yes, enter sub-step 2013, if not, enter sub-step 2014;
  • Sub-step 2013, add the currently acquired image to the first image sequence set; return to sub-step 2011.
  • Sub-step 2014 discard the currently acquired image; then enter sub-step 2015.
  • Substep 2015 accumulate the number of frames of consecutively discarded images, and determine whether the preset number of frames K is reached; if it is, stop the acquisition and go to step 202; if not, return to substep 2011.
  • K is the preset number of frames and L is greater than 1
  • a first image sequence set such as a sequence P
  • the electronic device also accumulates the number of consecutively discarded images and determines whether the number of consecutively discarded images reaches the preset number of frames K. If the number of consecutively discarded images reaches the preset number of frames K, the No moving subject is identified in the collected K frame images, it is considered that no moving subject has been detected, and the acquisition is stopped at this time.
  • the preset number of frames K can be set according to actual experience or actual needs.
  • K is 10, and if no moving subjects are identified in the first to tenth frames of the collected image, the number of frames of consecutively discarded images is 10, which reaches the preset number of frames K, so it is considered to be moving If the subject never enters the shooting screen, stop the acquisition (this time the trajectory synthesis ends); or, from the first frame image to the 45th frame of the collected images, the moving subject is recognized, and from the 46th frame image, it has been continuous After 10 frames were collected, no moving subjects were identified in the collected images, that is, the 46th frame to the 56th frames of the collected images did not identify the moving subject. It is considered that the moving subject has run out of the shooting screen and the collection is stopped.
  • the method of motion recognition is used to preliminarily screen the collected images, whether to continue to collect images or to stop collecting images, is determined by whether the moving subject is located in the shooting screen, rather than collected as in the prior art A preset fixed frame number of images; that is, in this embodiment, if it is detected that no moving subject is identified in the continuously acquired K frame images, then even if the number of currently acquired images containing moving subjects does not reach the preset At a fixed number of frames, the collection will stop, because even if the collection continues, because the moving subject is no longer in the shooting screen, the collected image has no practical use for the synthesis of the movement track; therefore, this embodiment is more in line with the synthesis of the movement track when acquiring the image The actual demand for the image has improved the effectiveness of image acquisition, which can improve the synthesis efficiency of the motion track.
  • the third embodiment of the present invention relates to a motion track synthesis method.
  • the third embodiment is substantially the same as the second embodiment, and the main difference is that in the third embodiment of the present invention, a specific way of dividing a plurality of grid regions is provided.
  • FIG. 5 is a flowchart of the motion track synthesis method of the third embodiment. Steps 301 and 304 are substantially the same as steps 201 and 204 in FIG. 4 and will not be repeated here. The difference is that
  • Step 302 dividing the image into multiple grid regions according to a preset method, including the following sub-steps:
  • Sub-step 3021 select a frame of images containing moving subjects from the multi-frame images, and determine the target frame area of the moving subjects in the selected image; wherein, the moving subjects in the selected image are located in the target frame area.
  • the multi-frame images acquired here are all images containing moving subjects and are arranged in order according to the acquisition order; that is, the first image sequence set P in the second embodiment Multi-frame images in.
  • the selected image may be any frame image in the first image sequence set P; for example, the first frame image P1 in the first image sequence set P may be selected, and the target of the moving subject in the selected image P1 may be determined
  • the frame area R1, or, one image in the middle of the first image sequence set P can be selected; or, the selected image can also be the motion in the first few images in the first image sequence set P
  • the image with the largest subject for example, compare the size of the moving subject in the first three frames P1, P2, P3 of the first image sequence set P, and select the larger frame of the moving subject, if the second frame of the image
  • the medium moving subject is the largest, then the selected image is the second frame image P2 in the first image sequence set P.
  • the selected image is not limited to the above example, the designer can set it according to actual needs, for example, it can also calculate the average of the size of the moving subject in the obtained multi-frame images or several of them, and then average The image with the moving subject near the value is selected as the image. For the same moving subject, the closer to the camera when moving, the larger the moving subject in the collected image, and the farther away from the camera when moving, the smaller the moving subject in the collected image.
  • the target frame area R1 is a rectangular frame area, and the target frame area R1 may be the area where the smallest circumscribed rectangular frame of the moving subject is located, thereby ensuring that the moving subject is located in the target frame area R1.
  • the target frame area R1 may be similar to the area of the smallest circumscribed rectangular frame, but the area is larger than the area of the smallest circumscribed rectangular frame, that is, after the smallest circumscribed rectangular frame of the moving subject is identified, the smallest circumscribed rectangular frame is enlarged ,
  • the target frame area R1 is slightly larger than R1min, but it is best not to exceed 1/4 of the area of the smallest circumscribed rectangular frame; that is, the area ratio of the target frame area and the area of the smallest circumscribed rectangular frame is greater than 1 and less than or equal to 5 / 4.
  • Sub-step 3022 the selected image is divided into a plurality of grid areas according to the size of the target frame area; wherein the target frame area is located in one of the grid areas.
  • the target frame region R1 is used as a basic cell to divide the image into grids.
  • the coordinate position of one of the corner points of the target frame area R1 can be used as the starting point, and the width w1 and height h1 of the target frame area R1 can be used as standard Divided by the interval w1, the height H of the entire image is divided into grid regions every h1; preferably, for example, the coordinate position of the upper corner of the target frame region R1 is used as the starting point. Therefore, the target frame area is located in one of the grid areas; in this embodiment, the target frame area is a grid unit, but it is not limited to this. It should be noted that due to the limitation of the image width W and height H, the grid area at the edge of the image may be smaller than the target frame area.
  • Step 303 select several frames of images that satisfy the preset conditions from the multi-frame images; where the preset conditions include that the image contains moving subjects and the grid area occupied by the moving subjects in any two frames of images does not overlap, including the following sub step:
  • Sub-step 3031 add the selected image to the second image sequence set, and mark the grid area where the selected image is located as occupied.
  • the second image sequence set Q can be preset in the electronic device to save the images that meet the preset conditions; the selected image is used as the basis for comparing other images, so the selected image is considered to meet the preset
  • the conditional image is added to the second image sequence set Q, and the grid area where the selected image is located is marked as occupied, where the grid area where the selected image is located is the target frame area R1.
  • the grid area that has been occupied by the moving subject is marked to facilitate subsequent comparison.
  • the screening is performed in the order of arrangement.
  • the screening methods include,
  • Sub-step 3032-1 judging whether the grid area where the moving subject in the image is marked as occupied; if not, enter sub-step 3032-2; if yes, enter sub-step 3032-3;
  • Sub-step 3032-2 add the image to the second image sequence set, and mark the grid area where the moving subject in the image is occupied as occupied.
  • Substep 3032-3 discard the image.
  • the number of grid areas where the target frame area of the moving subject is located may be one or more. If the number of grid areas where the target frame area of the moving subject is located is multiple, as long as one grid area is marked as If it is occupied, it is considered that the image does not meet the preset conditions.
  • you can number the grid area use the number to indicate the grid area where the moving subject in the image is located, determine the number of the grid area where the moving subject in the image is located, and determine whether the grid area indicated by the number has been marked For occupation, if it has been marked as occupied, it means that the image does not meet the preset conditions.
  • a specific way of dividing the grid area is proposed, that is, the target frame area of the moving subject in a frame of image is selected as the basic unit for division, wherein the moving subject in the selected image is located in the target frame area ;
  • the size of the grid area divided in this way is appropriate, so that the overlap judgment can be performed more quickly; because relative to the size of the moving subject, if the grid area is too small, the moving subject in each image will occupy If there are multiple grid areas, the amount of work spent in overlapping judgment will be greater (because it is checked whether each grid area is marked as occupied). If the grid area is too large, the selected conditions meet the preset conditions The distance between moving subjects in the image will be relatively large, making the distance between two adjacent moving subjects in the last synthesized motion trajectory larger, affecting the synthesis effect.
  • the third embodiment may also be an improvement on the basis of the first embodiment; when the third embodiment improves on the basis of the first embodiment, since step 301 does not use motion recognition
  • the collected images are filtered, so there may be images that do not contain moving subjects in the acquired multi-frame images; in step 302, the selected image must contain moving subjects. Therefore, the selected image can be many
  • the first frame of the frame image contains the image of the moving subject.
  • the fourth embodiment of the present invention relates to a motion track synthesis method.
  • the fourth embodiment is substantially the same as the third embodiment, and the main difference is that in the fourth embodiment of the present invention, the image of the moving subject suddenly being too large can be eliminated to eliminate external interference and improve the synthetic effect of the motion track.
  • FIG. 8 is a flowchart of the screening method in the fourth embodiment.
  • FIG. 8 is an improvement based on FIG. 7.
  • sub-step 3032-1 it also includes sub-step 3032-0 to determine the moving subject in the image. Whether the target frame areas are all located in one of the grid areas; if yes, go to sub-step 3032-1, if no, go to sub-step 3032-3.
  • the camera may suddenly move closer to or away from the moving subject.
  • the moving subject in the image will suddenly become larger, that is, the target frame area of the moving subject in the image will exceed a grid area.
  • the target frame area can be set to be larger than the area where the smallest circumscribed rectangular frame of the moving subject is located, as described in sub-step 3021 of the third embodiment, the target The area ratio of the frame area to the area of the smallest circumscribed rectangular frame can be greater than 1 and less than or equal to 5/4, so that a normal variable margin is left.
  • the normal variable margin refers to the moving subject during the movement The amount of change in the size of moving subjects in the image when normally approaching or away from the camera.
  • the judgment on the number of occupied grid areas is increased, and moving subjects whose moving subjects are suddenly too large can be eliminated, that is, shooting due to unstable shooting can be avoided as much as possible
  • the less accurate images participate in the trajectory synthesis, thereby improving the synthesis effect and authenticity of the motion trajectory.
  • the fifth embodiment of the present invention relates to a motion track synthesis method.
  • the fifth embodiment is almost the same as the second embodiment, the main difference is that: in the fifth embodiment of the present invention, images with excessively large moving subjects can be eliminated, and when continuous multi-frame images have the phenomenon of excessively large moving subjects , Indicating that the shooting distance is likely to be too close, and a prompt message is generated.
  • Step 601 contains sub Step 6011 to sub-step 6019, where sub-step 6011 to sub-step 6012, sub-step 6014, sub-step 6018, sub-step 6019 are substantially the same as sub-step 2011 to sub-step 2015 in FIG. 4, and will not be repeated here, The difference is that it also includes:
  • Substep 6013 determine whether the moving subject in the currently collected image meets the preset size condition; wherein, the size condition includes that the width of the moving subject is less than half the width of the currently collected image, and the height of the moving subject is less than the currently collected image the height of.
  • the judgment result of substep 6013 is yes, enter substep 6014; when the judgment result of substep 6013 is no, enter substep 6015, and then enter substep 6016.
  • Substep 6015 discard the currently acquired image.
  • Sub-step 6016 accumulating the number of frames of consecutively discarded images, and determining whether the preset number of frames L is reached; where L is the preset number of frames and L is greater than 1. If the judgment result is yes, then enter sub-step 6017, and then return to sub-step 601, if the judgment result is no, then directly return to sub-step 6011.
  • Substep 6017 generating a prompt message indicating that the moving subject is too large.
  • the preset frame number L may be set according to actual needs, and the preset frame number L and the preset frame number K in substep 6019 may be the same or different.
  • sub-step 6015 and sub-step 6016 are similar to sub-step 6018 and sub-step 6019, respectively, but the difference is that the sub-step 6015 discards an image with an excessively large moving subject, while the sub-step 6018 discards that there is no moving subject.
  • the sub-step 6016 accumulates the number of continuously captured images of moving subjects that are too large, while the sub-step 6019 accumulates the number of frames of consecutively captured images that do not recognize a moving subject.
  • images with excessively large moving subjects can be eliminated, and the photographer can be promptly reminded that the shooting distance is too close, which is beneficial for collecting images containing moving subjects of a relatively large size for the synthesis of a moving trajectory, which can improve the movement The synthetic effect of the track.
  • the sixth embodiment of the present invention relates to an electronic device, as shown in FIG. 10, including:
  • At least one processor 10 and,
  • a memory 11 communicatively connected to the at least one processor
  • a camera 12 connected to the at least one processor and the memory
  • the camera 12 is used to collect images; the memory 11 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 10 to enable the at least one processor 10 Able to perform the above method embodiments.
  • the bus may include any number of interconnected buses and bridges.
  • the bus connects one or more processors 10 and various circuits of the memory 11 together.
  • the bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art, and therefore, they will not be further described herein.
  • the bus interface provides an interface between the bus and the transceiver.
  • the transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on the transmission medium.
  • the data processed by the processor 10 is transmitted on the wireless medium through the antenna. Further, the antenna also receives the data and transmits the data to the processor 10.
  • the processor 10 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions.
  • the memory 11 may be used to store data used by the processor 10 when performing operations.
  • the seventh embodiment of the present invention relates to a computer-readable storage medium that stores a computer program.
  • the computer program is executed by the processor, the above method embodiments are implemented.
  • the embodiment of the present invention divides the image into a plurality of grid areas according to a preset method; and selects a plurality of frames of images satisfying preset conditions from multiple frames of images for synthesis, where the preset conditions include,
  • the image contains moving subjects and the grid areas occupied by the moving subjects in any two frames of images do not overlap. Therefore, the grid method is used to select the image for synthesis, which is not affected by the movement speed of the moving subject, the direction of movement, and the change in the size of the moving subject. it is good.
  • a program which is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .

Abstract

Disclosed in the embodiments of the present application are a motion trajectory synthesising method and an electronic device, relating to the technical field of image processing. In an embodiment of the present invention, the motion trajectory synthesising method comprises: acquiring a plurality of image frames, the plurality of image frames being ordered according to acquisition time; according to a preset method, respectively dividing the plurality of image frames into a plurality of grid areas; selecting several image frames meeting preset conditions from the plurality of image frames, the preset conditions comprising: the several image frames all include a moving body and the grid areas occupied by the moving body in any two image frames do not overlap; and, on the basis of the selected several image frames, synthesising the motion trajectory of the moving body. Also provided in the embodiments of the present application is an electronic device.

Description

运动轨迹合成方法及电子设备Motion track synthesis method and electronic equipment
交叉引用cross reference
本发明要求在2018年10月25日提交中国专利局、申请号为201811250802.2、发明名称为“运动轨迹合成方法及电子设备”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention requires the priority of a Chinese patent application filed on October 25, 2018 in the Chinese Patent Office with the application number 201811250802.2 and the invention titled "Motion Track Synthesis Method and Electronic Equipment". The entire contents of this application are incorporated herein by reference Invented.
技术领域Technical field
本发明实施例涉及图像处理技术领域,特别涉及运动轨迹合成方法及电子设备。The embodiments of the present invention relate to the technical field of image processing, and in particular, to a motion track synthesis method and an electronic device.
背景技术Background technique
针对运动主体的场景拍照、摄像是相机拍照的常用生活场景之一。精彩的运动场景总是稍纵即逝,比如篮球比赛时灌篮动作、足球比赛时带球射门、跳高、跳远等过程,运动主体活动时会产生一个运动剪影,将多幅运动图像合成到一幅图像中,就可以合成一系列的运动主体的运动轨迹剪影图像。Taking pictures and videos of scenes of moving subjects is one of the common life scenes of taking pictures with cameras. Wonderful sports scenes are always fleeting, such as slam dunks during basketball games, dribbling shots during football games, high jumps, long jumps, etc. When the main body of the activity is active, a sports silhouette is generated, which combines multiple sports images into one. In the image, a series of silhouette images of the trajectory of the moving subject can be synthesized.
在一些情形下,发明人发现至少存在如下问题:运动主体的运动速度快慢不同,运动方向不定,运动主体的大小不同,合成的图像中可能会出现运动主体的重叠在一起,看不清完整运动主体的动作,如图1所示,因此合成效果并不是很好。In some cases, the inventor found that there are at least the following problems: the moving speed of the moving subject is different, the direction of the movement is uncertain, and the size of the moving subject is different. In the composite image, the overlapping of the moving subjects may appear, and the complete motion cannot be seen. The action of the subject is shown in Figure 1, so the synthesis effect is not very good.
发明内容Summary of the invention
本发明实施方式的目的在于提供一种运动轨迹合成方法及电子设备,可以使得合成后的运动轨迹中运动主体不发生重叠,合成效果较好。The purpose of the embodiments of the present invention is to provide a method for synthesizing a motion track and an electronic device, so that the motion subjects in the synthesized motion track do not overlap, and the synthesis effect is better.
为解决上述技术问题,本发明的实施方式提供了一种运动轨迹合成方法,包括:获取多帧图像;其中,所述多帧图像按照采集时间排列;根据预设方 式将所述多帧图像划分成多个栅格区域;从所述多帧图像中选择满足预设条件的若干帧图像;其中,所述预设条件包括,所述若干帧图像均包含运动主体且任意两帧图像中的运动主体所占的栅格区域不重叠;根据选取的所述若干帧图像合成所述运动主体的运动轨迹。To solve the above technical problems, an embodiment of the present invention provides a method for synthesizing a motion track, including: acquiring multiple frames of images; wherein the multiple frames of images are arranged according to the acquisition time; the multiple frames of images are divided according to a preset manner Into a plurality of grid regions; selecting from the multi-frame images several frames of images that meet a preset condition; wherein, the preset conditions include that the several frames of images all contain a moving subject and motion in any two frames of images The grid areas occupied by the main body do not overlap; the motion trajectory of the moving main body is synthesized according to the selected frames of images.
本发明的实施方式还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;与所述至少一处理器和所述存储器连接的摄像头;其中,所述摄像头用于采集图像;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述运动轨迹合成方法。An embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; a camera connected to the at least one processor and the memory; wherein , The camera is used to collect images; the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform the above movement Track synthesis method.
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述运动轨迹合成方法。Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the above-mentioned motion track synthesis method is implemented.
附图说明BRIEF DESCRIPTION
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings. These exemplary descriptions do not limit the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute a scale limitation.
图1是现有技术中合成的运动轨迹的示意图;FIG. 1 is a schematic diagram of a motion trajectory synthesized in the prior art;
图2是根据本发明第一实施例的运动轨迹合成方法的流程图;2 is a flowchart of a method for synthesizing a motion track according to the first embodiment of the present invention;
图3是根据本发明第一实施例中合成的运动轨迹的示意图;FIG. 3 is a schematic diagram of the synthesized motion track according to the first embodiment of the present invention;
图4是根据本发明第二实施例的运动轨迹合成方法的流程图;FIG. 4 is a flowchart of a motion track synthesis method according to a second embodiment of the present invention;
图5是根据本发明第三实施例的运动轨迹合成方法的流程图;FIG. 5 is a flowchart of a motion track synthesis method according to a third embodiment of the present invention;
图6是根据本发明第三实施例中划分出的栅格区域的示意图;6 is a schematic diagram of a grid area divided according to the third embodiment of the present invention;
图7是根据本发明第三实施例中子步骤3032中筛选方式的流程图;7 is a flowchart of a screening method in sub-step 3032 according to the third embodiment of the present invention;
图8是根据本发明第四实施例中子步骤3032中筛选方式的流程图;8 is a flowchart of a screening method in sub-step 3032 according to the fourth embodiment of the present invention;
图9是根据本发明第五实施例的运动轨迹合成方法的流程图;9 is a flowchart of a motion track synthesis method according to a fifth embodiment of the present invention;
图10是根据本发明第六实施例的电子设备的示意图。10 is a schematic diagram of an electronic device according to a sixth embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following describes the embodiments of the present invention in detail with reference to the accompanying drawings. However, those of ordinary skill in the art may understand that, in various embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can be realized.
本发明的第一实施方式涉及一种运动轨迹合成方法。具体流程如图2所示。The first embodiment of the present invention relates to a motion track synthesis method. The specific process is shown in Figure 2.
步骤101,获取多帧图像;其中,多帧图像按照采集时间排列;Step 101: Acquire multi-frame images; wherein, the multi-frame images are arranged according to the acquisition time;
步骤102,根据预设方式将多帧图像分别划分成多个栅格区域;Step 102: Divide the multi-frame images into multiple grid areas according to a preset method;
步骤103,从多帧图像中选择满足预设条件的若干帧图像;其中,预设条件包括,若干帧图像均包含运动主体且任意两帧图像中的运动主体所占的栅格区域不重叠;Step 103: Select a plurality of frames of images satisfying preset conditions from the multi-frame images; wherein the preset conditions include that several frames of images include moving subjects and the grid area occupied by the moving subjects in any two frames of images does not overlap;
步骤104,根据选取的若干帧图像合成运动主体的运动轨迹。Step 104: Synthesize the motion trajectory of the moving subject according to the selected frames of images.
本实施方式相对于现有技术而言,根据预设方式将图像划分成多个栅格区域;从多帧图像中选择满足预设条件的若干帧图像进行合成,其中,预设条件包括,图像包含运动主体且任意两帧图像中的运动主体所占的栅格区域不重叠。因此,利用栅格法筛选出用于合成的图像,不受运动主体的运动快慢、运动方向、运动主体大小变化的影响,都可以使得合成后的运动轨迹中运动主体不发生重叠,合成效果较好。Compared with the prior art, this embodiment divides the image into a plurality of grid areas according to a preset method; selects from a plurality of frames of images that meet a preset condition for synthesis, where the preset condition includes an image The grid areas occupied by moving subjects in any two frames of images that contain moving subjects do not overlap. Therefore, the grid method is used to select the image for synthesis, which is not affected by the movement speed of the moving subject, the direction of movement, and the change in the size of the moving subject. it is good.
下面对本实施方式的运动轨迹合成方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。The implementation details of the motion trajectory synthesis method of this embodiment are described below in detail. The following content is merely implementation details provided for easy understanding, and is not necessary for implementing this solution.
本实施方式的运动轨迹合成方法可以应用于电子设备,且该电子设备例如为个人电脑、手机等,不以此为限。请一并参考图2和图3,其中图3为本实施例中合成后的运动轨迹的示意图。The motion trajectory synthesis method of this embodiment can be applied to an electronic device, and the electronic device is, for example, a personal computer, a mobile phone, etc., and is not limited thereto. Please refer to FIG. 2 and FIG. 3 together, where FIG. 3 is a schematic diagram of the synthesized motion track in this embodiment.
在步骤101中,电子设备可以通过摄像头采集多帧图像;该摄像头可以是集成在电子设备上的,也可以是外接的。摄像头可以以预设频率采集图像, 其中,可以预设采集的图像的帧数,例如,预设60帧,则摄像头以预设频率采集60帧图像;或者,可以预设采集图像的时间,例如预设10秒,则摄像头以预设频率采集图像,到达10秒后就停止采集,采集到的图像的数量跟预设的时间和预设频率有关。采集的多帧图像按照采集时间排列。In step 101, the electronic device may collect multiple frames of images through a camera; the camera may be integrated on the electronic device or may be externally connected. The camera may acquire images at a preset frequency, where the number of frames of the acquired image may be preset, for example, preset 60 frames, the camera may acquire 60 frames of images at a preset frequency; or, the time for acquiring images may be preset, for example If the preset time is 10 seconds, the camera will collect images at a preset frequency, and the acquisition will stop after 10 seconds. The number of images collected is related to the preset time and preset frequency. The collected multi-frame images are arranged according to the acquisition time.
在步骤102中,可以按照该预设方式将每帧图像都划分成多个栅格区域。图3中由虚线划分的各区域即为栅格区域。In step 102, each frame of image may be divided into multiple grid areas in the preset manner. Each area divided by a dotted line in FIG. 3 is a grid area.
预设方式可以根据需要设定。例如,预设了将图像分成X个栅格区域,则根据图像的宽度W和高度h,计算出每个栅格区域宽度W1和高度h1,然后再进行栅格划分,其中,图像的宽度W和高度h可以根据采集的图像计算出来,也可以提前预设;或者,预设了每个栅格区域的宽度W1和高度h1,此时可以进行栅格划分;以上仅为举例,并不以此为限。其中,成X为大于0的整数,在图像大小不变的情况下,X越大,划分出的栅格区域越小。The preset method can be set as required. For example, it is preset that the image is divided into X grid areas, then the width W1 and height h1 of each grid area are calculated according to the width W and height h of the image, and then the grid division is performed, where the width W of the image The height h can be calculated from the collected images, or can be preset in advance; or, the width W1 and height h1 of each grid area are preset, and grid division can be performed at this time; the above is only an example, not This is limited. Among them, X is an integer greater than 0. When the image size is constant, the larger X is, the smaller the grid area is.
其中,由于每帧图像的拍摄背景都是相同的(即使拍摄时出现抖动导致背景略有差别,也可以通过校准来使得背景对位),因此,当映射到同一个坐标系中时,每帧图像所占的总区域是相同的,即,每帧图像按照预设方式被划分栅格后,具有相同数量的栅格区域,且对应的栅格区域的坐标位置是相同的;例如,将每帧图像的各栅格区域按照相同顺序编码(例如从第一排到最后一排,并以从左到右的顺序,依次编码),各帧图像中编码相同的栅格区域即为对应的栅格区域。Among them, because the shooting background of each image is the same (even if the background is slightly different due to jitter during shooting, the background can be aligned through calibration), therefore, when mapped to the same coordinate system, each frame The total area occupied by the image is the same, that is, each frame of the image is divided into grids according to a preset method, and has the same number of grid areas, and the coordinate positions of the corresponding grid areas are the same; The grid regions of the frame image are encoded in the same order (for example, from the first row to the last row, and sequentially encoded from left to right), and the same grid region in each frame image is the corresponding raster. Grid area.
步骤103可以以如下方式实现。 Step 103 can be implemented in the following manner.
首先,按照排列顺序,依次对每帧图像都进行运动识别,并识别出包含运动主体的图像,识别出的包含运动主体的图像也按照采集时间依次排列;其中,运动识别可以采用现有技术中的根据特征点提取匹配等方法,此处不再详述。假设,采集到的60帧图像中,只有第6帧图像~第45帧图像中包含运动主体,而第1帧图像~第5帧图像、第46帧图像~第60帧图像中不包含运动主体,则可以仅保存第6帧图像~第45帧图像,且可以将第1帧图像~第5帧图像、第46帧图像~第60帧图像丢弃掉(即删除)。First, in accordance with the order of arrangement, each frame of the image is sequentially motion-recognized, and the images containing the moving subject are identified, and the images containing the moving subject are also arranged in sequence according to the acquisition time; wherein, motion recognition can be used in the prior art The method of extracting and matching based on feature points will not be described in detail here. Suppose that among the 60 frames of images collected, only the 6th frame to the 45th frame contains moving subjects, while the 1st frame to the 5th frame images and the 46th frame to the 60th frame images do not contain moving subjects. , Then only the 6th frame to the 45th frame image can be saved, and the 1st frame to the 5th frame image, the 46th frame image to the 60th frame image can be discarded (ie deleted).
其次,对于包含运动主体的图像,确定各图像中运动主体所占的栅格区域,并从这些包含运动主体的图像中选取若干帧图像,若干帧图像中任意两帧图像中的运动主体所占的栅格区域不重叠。具体的,例如可以为每个栅格区域编号;然后先选定一帧图像,确定选定的该图像中运动主体所占栅格区域的编号,选定的图像被认为是满足预设条件的图像,如上面的例子中,可以选定第6帧图像,且确认第6帧图像中运动主体所占栅格区域的编号为1、2,其中,第6帧图像被认为是满足预设条件的图像;然后按照图像的排列顺序对各图像中的运动主体所占的栅格区域分别进行判断,如上面的例子中,对第7帧图像~第45帧图像依次进行筛选,假设第7帧图像中运动主体所占栅格区域的编号为3、4,则判断出第7帧图像中运动主体所占栅格区域与第6帧图像中运动主体所占栅格区域不重叠(编号3、4的栅格区域和编号1、2的栅格区域不重叠),因此第7帧图像被认为是满足预设条件的图像;第8帧图像中运动主体所占栅格区域的编号为4、6、7,则判断出第8帧图像中运动主体所占栅格区域与第7帧图像中运动主体所占栅格区域发生重叠(第8帧图像和第7帧图像都占用了编号4的栅格区域),因此,第8帧图像不是满足预设条件的图像,可以将其丢弃;第9帧图像中运动主体所占栅格区域的编号为7、9、10,则判断出第9帧图像中运动主体所占栅格区域与第6帧图像、第7帧图像中运动主体所占栅格区域均不重叠(编号7、9、10的栅格区域和编号1~4的栅格区域不重叠),因此,第9帧图像可以被认为是满足预设条件的图像;以此类推,直至对第45帧图像筛选完毕。从而,筛选出的若干帧图像中任意两帧图像中的运动主体所占的栅格区域不重叠。其中,选定的图像可以根据需要设置,可以将包含运动主体的图像中的任一帧图像作为选定的图像,例如,将第1帧图像作为选定的图像(如上述例子中的第6帧图像)。Secondly, for images containing moving subjects, determine the grid area occupied by moving subjects in each image, and select several frames of images from these images containing moving subjects. The moving subjects in any two frames of several frames of images Does not overlap. Specifically, for example, each grid region can be numbered; then select a frame of image first, and determine the number of the grid region occupied by the moving subject in the selected image. The selected image is considered to meet the preset conditions Image, as in the above example, you can select the sixth frame image, and confirm that the number of the grid area occupied by the moving subject in the sixth frame image is 1, 2, where the sixth frame image is considered to meet the preset conditions Images; then, according to the order of the images, the grid areas occupied by the moving subjects in each image are separately judged. As in the above example, the images from the 7th frame to the 45th frame are sequentially filtered, assuming the 7th frame If the number of grid areas occupied by moving subjects in the image is 3 or 4, it is determined that the grid area occupied by moving subjects in the seventh frame image does not overlap with the grid area occupied by moving subjects in the sixth frame image (number 3, The grid area of 4 and the grid areas of numbers 1 and 2 do not overlap), so the image of the seventh frame is considered to meet the preset conditions; the number of grid areas occupied by moving subjects in the image of the eighth frame is 4, 6, 7, it is determined that the 8th frame of the image The grid area occupied by the moving subject overlaps with the grid area occupied by the moving subject in the 7th frame image (the 8th frame image and the 7th frame image both occupy the grid area of number 4), therefore, the 8th frame image is not The image that meets the preset conditions can be discarded; the number of the grid area occupied by the moving subject in the 9th frame image is 7, 9, 10, then the grid area occupied by the moving subject in the 9th frame image and the first The grid areas occupied by moving subjects in the 6-frame image and the 7th frame image do not overlap (the grid areas numbered 7, 9, and 10 and the grid areas numbered 1 to 4 do not overlap), so the 9th frame image can be It is considered as an image that satisfies the preset conditions; and so on, until the screening of the 45th frame image is completed. Therefore, the grid areas occupied by the moving subjects in any two frames of the selected frames of images do not overlap. Among them, the selected image can be set as needed, any frame of the image containing the moving subject can be used as the selected image, for example, the first frame of the image as the selected image (such as the 6th in the above example) Frame image).
或者,步骤103还可以以如下方式实现。按照排列顺序,依次对每帧图像都进行运动识别并在识别出包含运动主体的图像时,确定该图像中的运动主体所占的栅格区域,并判断该图像中的运动主体所占的栅格区域是否与其 他图像中的运动主体所占的栅格区域重叠。如上面的例子中,对第1帧图像~第5帧图像依次进行运动识别,均未识别出运动主体,则将第1帧图像~第5帧图像丢弃;对第6帧图像进行运动识别且识别出了运动主体,并确定出运动主体所占的栅格区域的编号为1、2,由于第6帧图像是第一个识别出包含运动主体的,因此将第6帧图像认为是满足预设条件的第图像,对第7帧图像进行运动识别且识别出了运动主体,并确定出运动主体所占的栅格区域的编号为3、4,则判断出第7帧图像中运动主体所占栅格区域与第6帧图像中运动主体所占栅格区域不重叠(编号3、4的栅格区域和编号1、2的栅格区域不重叠),因此第7帧图像被认为是满足预设条件的图像;第8帧图像~第45帧图像的识别方式与上述例子中类似,此处不再赘述;第46帧图像~第60帧图像中都没有识别出运动主体,则将第46帧图像~第60帧图像丢弃。Alternatively, step 103 can also be implemented in the following manner. According to the arrangement order, perform motion recognition on each frame in sequence and when recognizing the image containing the moving subject, determine the grid area occupied by the moving subject in the image, and determine the grid occupied by the moving subject in the image Whether the grid area overlaps with the grid area occupied by moving subjects in other images. As in the above example, motion recognition is performed on the first frame image to the fifth frame image in sequence, and no moving subject is identified, then the first frame image to the fifth frame image are discarded; the sixth frame image is subjected to motion recognition and Identified the moving subject, and determined that the grid area occupied by the moving subject is numbered 1, 2. Since the sixth frame image is the first to identify the moving subject, the sixth frame image is considered to meet the pre- Set the conditional first image, perform motion recognition on the seventh frame image and identify the moving subject, and determine the number of the grid area occupied by the moving subject as 3, 4, then determine the moving subject in the seventh frame image The occupied grid area does not overlap with the grid area occupied by the moving subject in the sixth frame image (the grid areas numbered 3 and 4 and the grid areas numbered 1 and 2 do not overlap), so the seventh frame image is considered to be satisfactory Images with preset conditions; the recognition method of the 8th frame image to the 45th frame image is similar to the above example, and will not be repeated here; the moving subjects are not recognized in the 46th frame image to the 60th frame image, then the Images from frame 46 to frame 60 are discarded.
需要强调的是,本实施例以及后续实施例中所提到的,图像中的运动主体,均是指图像中的运动主体的画面。It should be emphasized that, as mentioned in this embodiment and subsequent embodiments, the moving subjects in the image refer to the pictures of the moving subjects in the image.
在步骤104中,如果将图像中的运动主体和背景图像分离开来,则将各帧图像中分离出来的运动主体合成在一张背景图像上,如果没有将图像的运动主体和背景图像分离开来,直接进行合成(如果过拍摄时出现抖动,各帧图像的背景图像之间可能会有些偏差,可以先校准偏差再进行合成)。这里的合成方式均与现有技术类似,此处不再赘述。In step 104, if the moving subjects in the image are separated from the background image, the moving subjects separated in each frame image are combined on a background image, if the moving subjects in the image are not separated from the background image Coming directly, if there is jitter during overshooting, there may be some deviation between the background images of each frame of the image, you can calibrate the deviation before synthesizing). The synthesis methods here are similar to the prior art, and will not be repeated here.
本发明的第二实施方式涉及一种运动轨迹合成方法。第二实施方式与第一实施方式大致相同,主要区别之处在于:在本发明第二实施方式中,会对当前采集的图像进行运动识别,筛选出包含运动主体的图像,且在连续多次采集的图像中没有识别出运动主体时,停止采集。The second embodiment of the present invention relates to a motion track synthesis method. The second embodiment is substantially the same as the first embodiment, and the main difference is that in the second embodiment of the present invention, motion recognition will be performed on the currently collected image, and the image containing the moving subject is selected, and it is repeated multiple times in a row When no moving subject is identified in the collected image, the collection is stopped.
如图4所示为根据本发明第二实施例的运动轨迹合成方法的流程图;其中,步骤202~204与图2中的步骤102~104大致相同,此处不再赘述,不同之处在于,步骤201,获取多帧图像,包含如下子步骤:4 is a flowchart of a method for synthesizing a motion track according to a second embodiment of the present invention; wherein steps 202-204 are substantially the same as steps 102-104 in FIG. 2 and will not be repeated here, the difference is that , Step 201, acquiring multiple frames of images, including the following sub-steps:
子步骤2011,按照预设频率采集图像; Substep 2011, acquiring images according to a preset frequency;
子步骤2012,对当前采集的图像进行运动识别,并判断是否识别成功; 若是,则进入子步骤2013,若否,则进入子步骤2014;Sub-step 2012, perform motion recognition on the currently collected image and judge whether the recognition is successful; if yes, enter sub-step 2013, if not, enter sub-step 2014;
子步骤2013,将当前采集的图像加入第一图像序列集;返回子步骤2011。Sub-step 2013, add the currently acquired image to the first image sequence set; return to sub-step 2011.
子步骤2014,将当前采集的图像丢弃;然后进入子步骤2015。Sub-step 2014, discard the currently acquired image; then enter sub-step 2015.
子步骤2015,累计连续丢弃的图像的帧数,并判断是否达到预设的帧数K;若是,则停止采集,并进入步骤202;若否,则返回子步骤2011。其中K为预设的帧数且L大于1 Substep 2015, accumulate the number of frames of consecutively discarded images, and determine whether the preset number of frames K is reached; if it is, stop the acquisition and go to step 202; if not, return to substep 2011. Where K is the preset number of frames and L is greater than 1
本实施方式中,电子设备内部可以预先设置第一图像序列集,例如数列P。电子设备实时对当前采集的图像进行运动识别,如果从当前采集的图像中识别出运动主体,表示识别成功,则将该当前采集的图像加入第一图像序列集P,即作为第一图像序列集P的一个元素Pi,i为大于或等于1的整数,i表述该图像在第一图像序列集P的排序号;如果从当前采集的图像中没有识别出运动主体,表示识别失败,则将该当前采集的图像丢弃。由于被加入第一图像序列集的图像是按照采集顺序加入的,因此,第一图像序列集中的图像按照采集时间排列的。例如数列P={P1,P2,P3,...,Pm},表示获取了m帧图像。In this embodiment, a first image sequence set, such as a sequence P, may be preset in the electronic device. The electronic device performs motion recognition on the currently collected image in real time. If a moving subject is recognized from the currently collected image, indicating that the recognition is successful, the currently collected image is added to the first image sequence set P, which is regarded as the first image sequence set An element Pi of P, i is an integer greater than or equal to 1, i represents the sequence number of the image in the first image sequence set P; if no moving subject is identified from the currently collected image, indicating that the recognition failed, then the The currently acquired image is discarded. Since the images added to the first image sequence set are added in the order of acquisition, the images in the first image sequence set are arranged according to the acquisition time. For example, the sequence P = {P1, P2, P3, ..., Pm} indicates that m frames of images have been acquired.
电子设备还会累计连续丢弃的图像的帧数,并判断连续丢弃的图像的帧数是否达到预设的帧数K,如果连续丢弃的图像的帧数达到预设的帧数K,即从连续采集的K帧图像中均未识别出运动主体,就认为一直没有检测到运动主体,此时停止采集。其中,预设的帧数K可以根据实际经验或者实际需求设定。例如,K为10,如果采集的第1帧图像~第10帧图像中都没有识别出运动主体,则连续丢弃的图像的帧数为10帧,达到了预设的帧数K,因此认为运动主体始终没有进入拍摄画面,则停止采集(本次运动轨迹合成结束);或者,采集的第1帧图像~第45帧图像中都有识别出运动主体,而从第46帧图像开始,一直连续采集了10帧,采集到的图像中都没有识别出运动主体,即采集的第46帧图像~第56帧图像都没有识别出运动主体,则认为运动主体已经跑出了拍摄画面,则停止采集;且以第1帧图像~第45帧图像作为获取的多帧图像。假如采集的第1帧图像~第30帧图像中都有识别出运动主体, 采集的第31帧图像~第35帧图像中都没有识别出运动主体,采集的第36帧图像~第50帧图像中都有识别出运动主体,那么,第31帧图像~第35帧图像被丢弃,但是由于丢弃的图像的帧数仅为5次,小于预设的帧数K,因此,不会停止采集,并且记录后续采集的第36帧图像~第50帧图像,并且将第1帧图像~第30帧图像、第36帧图像~第50帧图像作为获取的图像,即,总共获取了45帧图像。The electronic device also accumulates the number of consecutively discarded images and determines whether the number of consecutively discarded images reaches the preset number of frames K. If the number of consecutively discarded images reaches the preset number of frames K, the No moving subject is identified in the collected K frame images, it is considered that no moving subject has been detected, and the acquisition is stopped at this time. Among them, the preset number of frames K can be set according to actual experience or actual needs. For example, K is 10, and if no moving subjects are identified in the first to tenth frames of the collected image, the number of frames of consecutively discarded images is 10, which reaches the preset number of frames K, so it is considered to be moving If the subject never enters the shooting screen, stop the acquisition (this time the trajectory synthesis ends); or, from the first frame image to the 45th frame of the collected images, the moving subject is recognized, and from the 46th frame image, it has been continuous After 10 frames were collected, no moving subjects were identified in the collected images, that is, the 46th frame to the 56th frames of the collected images did not identify the moving subject. It is considered that the moving subject has run out of the shooting screen and the collection is stopped. ; And take the first frame image to the 45th frame image as the acquired multi-frame image. Assuming that moving subjects are recognized in the collected first frame image to the 30th frame image, and no moving subjects are recognized in the collected 31st frame image to the 35th frame image, the collected 36th frame image to the 50th frame image All of the moving subjects are recognized, then the 31st frame image to the 35th frame image are discarded, but because the discarded image has only 5 frames, which is less than the preset frame number K, so the collection will not stop, And record the 36th frame image to the 50th frame image acquired subsequently, and use the 1st frame image to the 30th frame image, the 36th frame image to the 50th frame image as the acquired image, that is, a total of 45 frame images are acquired.
本实施方式中,在运动轨迹合成中,采用运动识别的方式来初步筛选采集的图像,继续采集图像或是停止采集图像,由运动主体是否位于拍摄画面内决定,而不是如现有技术中采集预设的固定帧数的图像;即,本实施方式中,如果检测到连续采集的K帧图像中均未识别出运动主体,那么即使当前获得的包含运动主体的图像的数量没有达到预设的固定帧数,也会停止采集,因为即使继续采集,由于运动主体已经不在拍摄画面内,采集到的图像对运动轨迹的合成也没有实际用处;因此本实施方式在采集图像时更加符合运动轨迹合成的实际需求,提高了图像采集的更有效性,从而可以提高运动轨迹的合成效率。In this embodiment, in the synthesis of motion trajectories, the method of motion recognition is used to preliminarily screen the collected images, whether to continue to collect images or to stop collecting images, is determined by whether the moving subject is located in the shooting screen, rather than collected as in the prior art A preset fixed frame number of images; that is, in this embodiment, if it is detected that no moving subject is identified in the continuously acquired K frame images, then even if the number of currently acquired images containing moving subjects does not reach the preset At a fixed number of frames, the collection will stop, because even if the collection continues, because the moving subject is no longer in the shooting screen, the collected image has no practical use for the synthesis of the movement track; therefore, this embodiment is more in line with the synthesis of the movement track when acquiring the image The actual demand for the image has improved the effectiveness of image acquisition, which can improve the synthesis efficiency of the motion track.
本发明的第三实施方式涉及一种运动轨迹合成方法。第三实施方式与第二实施方式大致相同,主要区别之处在于:在本发明第三实施方式中,提供了划分多个栅格区域的一种具体方式。The third embodiment of the present invention relates to a motion track synthesis method. The third embodiment is substantially the same as the second embodiment, and the main difference is that in the third embodiment of the present invention, a specific way of dividing a plurality of grid regions is provided.
如图5所示为第三实施例的运动轨迹合成方法的流程图,其中,步骤301、304与图4中的步骤201、204大致相同,此处不再赘述,不同之处在于,FIG. 5 is a flowchart of the motion track synthesis method of the third embodiment. Steps 301 and 304 are substantially the same as steps 201 and 204 in FIG. 4 and will not be repeated here. The difference is that
步骤302,根据预设方式将图像划分成多个栅格区域,包含如下子步骤: Step 302, dividing the image into multiple grid regions according to a preset method, including the following sub-steps:
子步骤3021,从多帧图像中选定一帧包含运动主体的图像,并确定选定的图像中运动主体的目标框区域;其中,选定的图像中的运动主体位于目标框区域中。Sub-step 3021, select a frame of images containing moving subjects from the multi-frame images, and determine the target frame area of the moving subjects in the selected image; wherein, the moving subjects in the selected image are located in the target frame area.
由于第三实施方式是基于第二实施方式基础上的改进,因此,这里获取的多帧图像均为包含运动主体的图像且按照采集顺序依次排列;即第二实施例中第一图像序列集P中的多帧图像。选定的图像可以是第一图像序列集P 中的任一帧图像;例如,可以选定第一图像序列集P中的第1帧图像P1,并确定选定的图像P1中运动主体的目标框区域R1,或者,可以选定第一图像序列集P中排在中间的一帧图像;或者,选定的图像还可以是第一图像序列集P中的排列靠前的几帧图像中运动主体最大的图像,例如,对第一图像序列集P中的前3帧图像P1、P2、P3中的运动主体的大小进行比较,选取运动主体的较大的那帧图像,如果第2帧图像中运动主体最大,则选定的图像是第一图像序列集P中的第2帧图像P2。需要说明的是,选定的图像并不限于上述例子,设计人员可以根据实际需要设定,例如还可以计算获取的多帧图像或其中若干帧图像中的运动主体大小的平均值,并将平均值附近的运动主体所在的图像作为选定的图像。其中,对于同一个运动主体而言,运动时离摄像头越近,采集到的图像中的运动主体越大,运动时离摄像头越远,采集到的图像中的运动主体越小。Since the third embodiment is based on the improvement of the second embodiment, the multi-frame images acquired here are all images containing moving subjects and are arranged in order according to the acquisition order; that is, the first image sequence set P in the second embodiment Multi-frame images in. The selected image may be any frame image in the first image sequence set P; for example, the first frame image P1 in the first image sequence set P may be selected, and the target of the moving subject in the selected image P1 may be determined The frame area R1, or, one image in the middle of the first image sequence set P can be selected; or, the selected image can also be the motion in the first few images in the first image sequence set P The image with the largest subject, for example, compare the size of the moving subject in the first three frames P1, P2, P3 of the first image sequence set P, and select the larger frame of the moving subject, if the second frame of the image The medium moving subject is the largest, then the selected image is the second frame image P2 in the first image sequence set P. It should be noted that the selected image is not limited to the above example, the designer can set it according to actual needs, for example, it can also calculate the average of the size of the moving subject in the obtained multi-frame images or several of them, and then average The image with the moving subject near the value is selected as the image. For the same moving subject, the closer to the camera when moving, the larger the moving subject in the collected image, and the farther away from the camera when moving, the smaller the moving subject in the collected image.
本实施例中,如图6中,目标框区域R1为矩形框区域,目标框区域R1可以为运动主体的最小外接矩形框所在的区域,从而保证运动主体位于目标框区域R1中。或者,目标框区域R1可以与最小外接矩形框所在的区域形状相似,但是面积比最小外接矩形框所在的区域大,即在识别出运动主体的最小外接矩形框后,对最小外接矩形框进行放大,目标框区域R1比R1min略大但最好不要超过最小外接矩形框所在的区域的1/4;即,目标框区域与最小外接矩形框所在的区域的面积比例为大于1且小于或等于5/4。In this embodiment, as shown in FIG. 6, the target frame area R1 is a rectangular frame area, and the target frame area R1 may be the area where the smallest circumscribed rectangular frame of the moving subject is located, thereby ensuring that the moving subject is located in the target frame area R1. Alternatively, the target frame area R1 may be similar to the area of the smallest circumscribed rectangular frame, but the area is larger than the area of the smallest circumscribed rectangular frame, that is, after the smallest circumscribed rectangular frame of the moving subject is identified, the smallest circumscribed rectangular frame is enlarged , The target frame area R1 is slightly larger than R1min, but it is best not to exceed 1/4 of the area of the smallest circumscribed rectangular frame; that is, the area ratio of the target frame area and the area of the smallest circumscribed rectangular frame is greater than 1 and less than or equal to 5 / 4.
子步骤3022,根据目标框区域的大小将选定的图像划分成多个栅格区域;其中,目标框区域位于其中一个栅格区域中。Sub-step 3022, the selected image is divided into a plurality of grid areas according to the size of the target frame area; wherein the target frame area is located in one of the grid areas.
本实施方式中,将目标框区域R1作为一个基础单元格对图像进行栅格划分。例如,图像的宽度W和高度H,可以以目标框区域R1的其中一个角点的坐标位置为起始点,以目标框区域R1的宽w1和高h1为标准分别将整张图像的宽度W每间隔w1划分,将整张图像的高度H每隔h1划分为栅格区域;较佳的,例如以目标框区域R1的上角角点的坐标位置为起始点。因此,目标框区域位于其中一个栅格区域中;本实施例中,目标框区域即为一 个栅格单元,但并不以此为限。需要说明的是,由于图像宽度W和高度H的限制,位于图像边缘的栅格区域可能会小于目标框区域。In this embodiment, the target frame region R1 is used as a basic cell to divide the image into grids. For example, for the width W and height H of an image, the coordinate position of one of the corner points of the target frame area R1 can be used as the starting point, and the width w1 and height h1 of the target frame area R1 can be used as standard Divided by the interval w1, the height H of the entire image is divided into grid regions every h1; preferably, for example, the coordinate position of the upper corner of the target frame region R1 is used as the starting point. Therefore, the target frame area is located in one of the grid areas; in this embodiment, the target frame area is a grid unit, but it is not limited to this. It should be noted that due to the limitation of the image width W and height H, the grid area at the edge of the image may be smaller than the target frame area.
步骤303,从多帧图像中选择满足预设条件的若干帧图像;其中,预设条件包括,图像包含运动主体且任意两帧图像中的运动主体所占的栅格区域不重叠,包含如下子步骤: Step 303, select several frames of images that satisfy the preset conditions from the multi-frame images; where the preset conditions include that the image contains moving subjects and the grid area occupied by the moving subjects in any two frames of images does not overlap, including the following sub step:
子步骤3031,将选定的图像加入第二图像序列集,且将选定的图像所在的栅格区域标记为已占用。Sub-step 3031, add the selected image to the second image sequence set, and mark the grid area where the selected image is located as occupied.
其中,电子设备内可以预设第二图像序列集Q,用于保存满足预设条件的的图像;选定的图像是作为其他图像比较的基础的,故将选定的图像认为是满足预设条件的图像,加入第二图像序列集Q,并将选定的图像所在的栅格区域标记为已占用,其中,选定的图像所在的栅格区域即为上述目标框区域R1。本实施方式中,对已经被运动主体占用的栅格区域进行标记,以便于后续比较。Among them, the second image sequence set Q can be preset in the electronic device to save the images that meet the preset conditions; the selected image is used as the basis for comparing other images, so the selected image is considered to meet the preset The conditional image is added to the second image sequence set Q, and the grid area where the selected image is located is marked as occupied, where the grid area where the selected image is located is the target frame area R1. In this embodiment, the grid area that has been occupied by the moving subject is marked to facilitate subsequent comparison.
子步骤3032,对于多帧图像中除选定的图像以外的每帧图像,按照排列顺序进行筛选。In sub-step 3032, for each frame of the multi-frame images except the selected image, the screening is performed in the order of arrangement.
如图7所示,筛选方式包括,As shown in Figure 7, the screening methods include,
子步骤3032-1,判断图像中的运动主体所在的栅格区域是否被标记为已占用;若否,则进入子步骤3032-2;若是,则进入子步骤3032-3;Sub-step 3032-1, judging whether the grid area where the moving subject in the image is marked as occupied; if not, enter sub-step 3032-2; if yes, enter sub-step 3032-3;
子步骤3032-2,将图像加入第二图像序列集,并将图像中的运动主体所在的栅格区域标记为已占用。Sub-step 3032-2, add the image to the second image sequence set, and mark the grid area where the moving subject in the image is occupied as occupied.
子步骤3032-3,丢弃该图像。Substep 3032-3, discard the image.
对于第一图像序列集P中除选定的图像以外的每帧图像,先确定运动主体所在的栅格区域,然后判断该图像中运动主体所在的栅格区域是否被标记为已占用。本实施例中,可以先确定该图像中运动主体的目标框区域,然后判断该图像中运动主体的目标框区域所在的栅格区域是否被标记为已占用;如果未被标记为已占用,则认为该图像满足预设条件,加入第二图像序列集Q;如果被标记为已占用,则认为该图像不满足预设条件,丢弃该图像。其 中,运动主体的目标框区域所在的栅格区域的数量可以为一个或多个,如果运动主体的目标框区域所在的栅格区域的数量为多个,则只要有一个栅格区域被标记为已占用,就认为该图像不满足预设条件。For each frame of the first image sequence set P except the selected image, first determine the grid area where the moving subject is located, and then determine whether the grid area where the moving subject is located in the image is marked as occupied. In this embodiment, you can first determine the target frame area of the moving subject in the image, and then determine whether the grid area where the target frame area of the moving subject in the image is marked as occupied; if it is not marked as occupied, then If the image is considered to meet the preset condition, the second image sequence set Q is added; if it is marked as occupied, the image is deemed not to meet the preset condition and the image is discarded. Among them, the number of grid areas where the target frame area of the moving subject is located may be one or more. If the number of grid areas where the target frame area of the moving subject is located is multiple, as long as one grid area is marked as If it is occupied, it is considered that the image does not meet the preset conditions.
例如,设定第二图像序列集Q,如果从第一图像序列集P={P1,P2,P3,...,Pm}中选定的图像是P1,则令Q1=P1,并将P1所在的栅格区域标记为已占用;对第一图像序列集P={P1,P2,P3,...,Pm}中的P2~Pm依次进行筛选,先确定当前筛选的图像中运动主体的目标框区域,当该目标框区域未被标记为已占用时,则将该图像加入第二图像序列集Q,如果被标记为已占用,则丢弃该图像。具体的,可以对栅格区域进行编号,用编号表示图像中运动主体所在的栅格区域,确定图像中的运动主体所在的栅格区域的编号,判断该编号表示的栅格区域是否已经被标记为占用,如果已经被标记为已占用,则表示该图像不满足预设条件。如,P1所在的栅格区域的编号为3,则将编号3的栅格区域标记为已占用;P2所在的栅格区域的编号为5,由于编号5的栅格区域未被标记为已占用,则将P2加入第二图像序列集Q,即令Q2=P2,同时,将编号5的栅格区域标记为已占用;P3所在的栅格区域的编号为6、7,由于编号6、7的栅格区域未被标记为已占用,则将P3加入第二图像序列集Q,即令Q3=P3,同时,将编号6、7的栅格区域标记为已占用;P4所在的栅格区域的编号为7、8,由于编号7的栅格区域被标记为已占用,所以丢弃P4;P5所在的栅格区域的编号为8,由于编号8的栅格区域未被标记为已占用,则将P5加入第二图像序列集Q,即令Q4=P5,同时,将编号8的栅格区域标记为已占用;以此类推,直到对Pm筛选结束,第二图像序列集Q={Q1,Q2,Q3...,Qs},表示从第一图像序列集P中m帧图像中筛选出来满足预设条件的s帧图像,其中,s为小于或等于m的整数。For example, to set the second image sequence set Q, if the image selected from the first image sequence set P = {P1, P2, P3, ..., Pm} is P1, then let Q1 = P1 and set P1 The grid area where it is located is marked as occupied; P2 ~ Pm in the first image sequence set P = {P1, P2, P3, ..., Pm} are sequentially filtered, and the moving subject in the currently filtered image is first determined For the target frame area, when the target frame area is not marked as occupied, the image is added to the second image sequence set Q, and if it is marked as occupied, the image is discarded. Specifically, you can number the grid area, use the number to indicate the grid area where the moving subject in the image is located, determine the number of the grid area where the moving subject in the image is located, and determine whether the grid area indicated by the number has been marked For occupation, if it has been marked as occupied, it means that the image does not meet the preset conditions. For example, if the number of the grid area where P1 is located is 3, the number 3 grid area is marked as occupied; the number of the grid area where P2 is located is 5 because the number 5 grid area is not marked as occupied , Then add P2 to the second image sequence set Q, that is, let Q2 = P2, and mark the grid area numbered 5 as occupied; the grid area where P3 is located is numbered 6, 7, due to the number 6, 7 If the grid area is not marked as occupied, P3 is added to the second image sequence set Q, that is, Q3 = P3, and at the same time, the grid areas numbered 6 and 7 are marked as occupied; the grid area number where P4 is located Is 7, 8, because the grid area numbered 7 is marked as occupied, so discard P4; the grid area where P5 is located is numbered 8, because the grid area numbered 8 is not marked as occupied, then P5 Add the second image sequence set Q, let Q4 = P5, and mark the grid area number 8 as occupied; and so on, until the screening of Pm is finished, the second image sequence set Q = {Q1, Q2, Q3 ..., Qs}, which means that s that meet the preset conditions are selected from the m frames of the first image sequence set P Image, wherein, s is an integer less than or equal to m.
本实施方式中,提出了划分栅格区域的一种具体方式,即选定一帧图像中运动主体的目标框区域作为基础单元进行划分,其中选定的图像中的运动主体位于目标框区域中;这种方式中划分出的栅格区域的大小合适,便于较为快速地进行重叠判断;因为相对于运动主体的大小而言,如果栅格区域过 小,则每个图像中的运动主体会占用多个栅格区域,那么重叠判断中耗费的工作量就会较大(因为要核对每个栅格区域是否被标记为已占用),如果栅格区域过大,那么筛选出的满足预设条件的图像中运动主体之间的距离会相对较大,使得最后合成的运动轨迹中相邻两个运动主体之间距离较大,影响合成效果。In this embodiment, a specific way of dividing the grid area is proposed, that is, the target frame area of the moving subject in a frame of image is selected as the basic unit for division, wherein the moving subject in the selected image is located in the target frame area ; The size of the grid area divided in this way is appropriate, so that the overlap judgment can be performed more quickly; because relative to the size of the moving subject, if the grid area is too small, the moving subject in each image will occupy If there are multiple grid areas, the amount of work spent in overlapping judgment will be greater (because it is checked whether each grid area is marked as occupied). If the grid area is too large, the selected conditions meet the preset conditions The distance between moving subjects in the image will be relatively large, making the distance between two adjacent moving subjects in the last synthesized motion trajectory larger, affecting the synthesis effect.
需要说明的是,第三实施方式也可以是在第一实施方式的基础上的改进;当第三实施方式在第一实施方式的基础上进行改进时,由于在步骤301中并没有采用运动识别的方式对采集的图像进行筛选,故获取的多帧图像中可能存在未包含运动主体的图像;在步骤302中,选定的图像必须要是包含运动主体,因此,该选定的图像可以是多帧图像中第一帧包含运动主体的图像。It should be noted that the third embodiment may also be an improvement on the basis of the first embodiment; when the third embodiment improves on the basis of the first embodiment, since step 301 does not use motion recognition The collected images are filtered, so there may be images that do not contain moving subjects in the acquired multi-frame images; in step 302, the selected image must contain moving subjects. Therefore, the selected image can be many The first frame of the frame image contains the image of the moving subject.
本发明的第四实施方式涉及一种运动轨迹合成方法。第四实施方式与第三实施方式大致相同,主要区别之处在于:在本发明第四实施方式中,可以剔除运动主体突然过大的图像,排除外界干扰,提高运动轨迹的合成效果。The fourth embodiment of the present invention relates to a motion track synthesis method. The fourth embodiment is substantially the same as the third embodiment, and the main difference is that in the fourth embodiment of the present invention, the image of the moving subject suddenly being too large can be eliminated to eliminate external interference and improve the synthetic effect of the motion track.
如图8所示为第四实施方式中筛选方式的流程图,图8是在图7基础上的改进,在子步骤3032-1之前,还包括子步骤3032-0,判断图像中运动主体的目标框区域是否全部位于其中一个栅格区域内;若是,则进入子步骤3032-1,若否,则进入子步骤3032-3。8 is a flowchart of the screening method in the fourth embodiment. FIG. 8 is an improvement based on FIG. 7. Before sub-step 3032-1, it also includes sub-step 3032-0 to determine the moving subject in the image. Whether the target frame areas are all located in one of the grid areas; if yes, go to sub-step 3032-1, if no, go to sub-step 3032-3.
具体的,拍摄时由于不稳定,可能导致摄像头突然靠近运动主体或远离运动主体,此时,图像中运动主体就会突然变大,即图像中运动主体的目标框区域就会超出一个栅格区域(如同时占用两个或更多的栅格区域)。其中,在设定运动主体的目标框区域是,可以将目标框区域设定得比运动主体的最小外接矩形框所在的区域大一些,如第三实施例的子步骤3021中所述的,目标框区域与最小外接矩形框所在的区域的面积比例可以大于1且小于或等于5/4,从而留有正常的可变余量,该正常的可变余量,是指运动主体在运动过程中正常的靠近或远离摄像头时导致图像中运动主体大小的变化量。Specifically, due to instability during shooting, the camera may suddenly move closer to or away from the moving subject. At this time, the moving subject in the image will suddenly become larger, that is, the target frame area of the moving subject in the image will exceed a grid area. (For example, occupy two or more grid areas at the same time). Among them, when setting the target frame area of the moving subject, the target frame area can be set to be larger than the area where the smallest circumscribed rectangular frame of the moving subject is located, as described in sub-step 3021 of the third embodiment, the target The area ratio of the frame area to the area of the smallest circumscribed rectangular frame can be greater than 1 and less than or equal to 5/4, so that a normal variable margin is left. The normal variable margin refers to the moving subject during the movement The amount of change in the size of moving subjects in the image when normally approaching or away from the camera.
本实施方式中,在选取满足预设条件的图像时,增加了对所占用的栅格区域数量的判断,可以剔除运动主体突然过大的运动主体,即可以尽可能避 免由于拍摄不稳定导致拍摄到不太准确的图像参与轨迹合成,从而提高了运动轨迹的合成效果和真实性。In this embodiment, when selecting images that meet the preset conditions, the judgment on the number of occupied grid areas is increased, and moving subjects whose moving subjects are suddenly too large can be eliminated, that is, shooting due to unstable shooting can be avoided as much as possible The less accurate images participate in the trajectory synthesis, thereby improving the synthesis effect and authenticity of the motion trajectory.
本发明的第五实施方式涉及一种运动轨迹合成方法。第五实施方式与第二实施方式大致相同,主要区别之处在于:在本发明第五实施方式中,可以剔除运动主体过大的图像,并且当连续多帧图像存在运动主体过大的现象时,表示很可能拍摄距离太近,产生提示信息。The fifth embodiment of the present invention relates to a motion track synthesis method. The fifth embodiment is almost the same as the second embodiment, the main difference is that: in the fifth embodiment of the present invention, images with excessively large moving subjects can be eliminated, and when continuous multi-frame images have the phenomenon of excessively large moving subjects , Indicating that the shooting distance is likely to be too close, and a prompt message is generated.
如图9所示为根据本发明第五实施例的运动轨迹合成方法的流程图;其中,步骤602~604与图4中的步骤202~204大致相同,此处不再赘述,步骤601包含子步骤6011~子步骤6019,其中,子步骤6011~子步骤6012、子步骤6014、子步骤6018、子步骤6019和图4中的子步骤2011~子步骤2015大致相同,此处也不再赘述,不同之处在于,还包括:9 is a flowchart of a motion trajectory synthesis method according to a fifth embodiment of the present invention; wherein, steps 602 to 604 are substantially the same as steps 202 to 204 in FIG. 4 and will not be repeated here. Step 601 contains sub Step 6011 to sub-step 6019, where sub-step 6011 to sub-step 6012, sub-step 6014, sub-step 6018, sub-step 6019 are substantially the same as sub-step 2011 to sub-step 2015 in FIG. 4, and will not be repeated here, The difference is that it also includes:
子步骤6013,判断当前采集的图像中运动主体是否满足预设的尺寸条件;其中,尺寸条件包括,运动主体的宽度小于当前采集的图像的宽度的一半,且运动主体的高度小于当前采集的图像的高度。当子步骤6013的判断结果为是,进入子步骤6014;当子步骤6013的判断结果否,则进入子步骤6015,再进入子步骤6016。 Substep 6013, determine whether the moving subject in the currently collected image meets the preset size condition; wherein, the size condition includes that the width of the moving subject is less than half the width of the currently collected image, and the height of the moving subject is less than the currently collected image the height of. When the judgment result of substep 6013 is yes, enter substep 6014; when the judgment result of substep 6013 is no, enter substep 6015, and then enter substep 6016.
子步骤6015,将当前采集的图像丢弃。 Substep 6015, discard the currently acquired image.
子步骤6016,累计连续丢弃的图像的帧数,并判断是否达到预设的帧数L;其中L为预设的帧数且L大于1。若判断结果为是,则进入子步骤6017,然后返回子步骤601,若判断结果为否,则直接返回子步骤6011。Sub-step 6016, accumulating the number of frames of consecutively discarded images, and determining whether the preset number of frames L is reached; where L is the preset number of frames and L is greater than 1. If the judgment result is yes, then enter sub-step 6017, and then return to sub-step 601, if the judgment result is no, then directly return to sub-step 6011.
子步骤6017,产生表征运动主体过大的提示信息。 Substep 6017, generating a prompt message indicating that the moving subject is too large.
如果子步骤6013的判断结果为否,则表示图像中的运动主体过大,即运动主体离摄像头过近,提示信息例如可以是用文字显示或用语音提示的“运动主体过大,不合适合成轨迹,请离远一些”。If the judgment result of sub-step 6013 is negative, it means that the moving subject in the image is too large, that is, the moving subject is too close to the camera. Keep track, please stay away. "
在子步骤6016中,预设的帧数L可以根据实际需要设置,且预设的帧数L和子步骤6019中的预设的帧数K可以相同,也可以不同。In substep 6016, the preset frame number L may be set according to actual needs, and the preset frame number L and the preset frame number K in substep 6019 may be the same or different.
其中,子步骤6015、子步骤6016分别与子步骤6018、子步骤6019类似, 但不同在于,子步骤6015中丢弃的是运动主体过大的图像,而子步骤6018中丢弃的是不存在运动主体的图像;子步骤6016中累计的是连续采集的运动主体过大的图像的帧数,而子步骤6019中累计的是连续采集的没有识别出运动主体的图像的帧数。Among them, sub-step 6015 and sub-step 6016 are similar to sub-step 6018 and sub-step 6019, respectively, but the difference is that the sub-step 6015 discards an image with an excessively large moving subject, while the sub-step 6018 discards that there is no moving subject. The sub-step 6016 accumulates the number of continuously captured images of moving subjects that are too large, while the sub-step 6019 accumulates the number of frames of consecutively captured images that do not recognize a moving subject.
因此,本实施方式中可以剔除运动主体过大的图像,并且可以及时提示拍摄者拍摄距离过近,从而有利于采集包含大小较为合适的运动主体的图像用于运动轨迹的合成,从而可以提高运动轨迹的合成效果。Therefore, in this embodiment, images with excessively large moving subjects can be eliminated, and the photographer can be promptly reminded that the shooting distance is too close, which is beneficial for collecting images containing moving subjects of a relatively large size for the synthesis of a moving trajectory, which can improve the movement The synthetic effect of the track.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above methods are divided only for clarity, and can be combined into one step or split into some steps and decomposed into multiple steps when implemented, as long as they include the same logical relationship, they are all within the scope of protection of this patent ; Add irrelevant modifications to the algorithm or process or introduce irrelevant design, but do not change the core design of the algorithm and process are within the scope of protection of the patent.
本发明第六实施方式涉及一种电子设备,如图10所示,包括:The sixth embodiment of the present invention relates to an electronic device, as shown in FIG. 10, including:
至少一个处理器10;以及,At least one processor 10; and,
与所述至少一个处理器通信连接的存储器11;A memory 11 communicatively connected to the at least one processor;
与所述至少一处理器和所述存储器连接的摄像头12;A camera 12 connected to the at least one processor and the memory;
其中,所述摄像头12用于采集图像;所述存储器11存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器10执行,以使所述至少一个处理器10能够执行上述方法实施例。The camera 12 is used to collect images; the memory 11 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 10 to enable the at least one processor 10 Able to perform the above method embodiments.
其中,存储器11和处理器10采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器10和存储器11的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器10处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器10。Among them, the memory 11 and the processor 10 are connected by a bus. The bus may include any number of interconnected buses and bridges. The bus connects one or more processors 10 and various circuits of the memory 11 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art, and therefore, they will not be further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on the transmission medium. The data processed by the processor 10 is transmitted on the wireless medium through the antenna. Further, the antenna also receives the data and transmits the data to the processor 10.
处理器10负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器11可以被用于存储处理器10在执行操作时所使用的数据。The processor 10 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 11 may be used to store data used by the processor 10 when performing operations.
本发明第七实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。The seventh embodiment of the present invention relates to a computer-readable storage medium that stores a computer program. When the computer program is executed by the processor, the above method embodiments are implemented.
本发明实施方式相对于现有技术而言,根据预设方式将图像划分成多个栅格区域;从多帧图像中选择满足预设条件的若干帧图像进行合成,其中,预设条件包括,图像包含运动主体且任意两帧图像中的运动主体所占的栅格区域不重叠。因此,利用栅格法筛选出用于合成的图像,不受运动主体的运动快慢、运动方向、运动主体大小变化的影响,都可以使得合成后的运动轨迹中运动主体不发生重叠,合成效果较好。Compared with the prior art, the embodiment of the present invention divides the image into a plurality of grid areas according to a preset method; and selects a plurality of frames of images satisfying preset conditions from multiple frames of images for synthesis, where the preset conditions include, The image contains moving subjects and the grid areas occupied by the moving subjects in any two frames of images do not overlap. Therefore, the grid method is used to select the image for synthesis, which is not affected by the movement speed of the moving subject, the direction of movement, and the change in the size of the moving subject. it is good.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments can be completed by instructing relevant hardware through a program, which is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those of ordinary skill in the art can understand that the above-described embodiments are specific examples for implementing the present invention, and in actual applications, various changes can be made in form and details without departing from the spirit and range.

Claims (10)

  1. 一种运动轨迹合成方法,其特征在于,包括:A motion trajectory synthesis method, which is characterized by including:
    获取多帧图像;其中,所述多帧图像按照采集时间排列;Acquiring multiple frames of images; wherein the multiple frames of images are arranged according to the acquisition time;
    根据预设方式将所述多帧图像分别划分成多个栅格区域;Divide the multi-frame image into multiple grid areas according to a preset manner;
    从所述多帧图像中选择满足预设条件的若干帧图像;其中,所述预设条件包括,所述若干帧图像均包含运动主体且任意两帧图像中的运动主体所占的栅格区域不重叠;Selecting from the multi-frame images several frames of images that meet preset conditions; wherein, the preset conditions include that the several frames of images all contain moving subjects and the grid area occupied by the moving subjects in any two frames of images Do not overlap
    根据选取的所述若干帧图像合成所述运动主体的运动轨迹。The motion trajectory of the moving subject is synthesized according to the selected frames of images.
  2. 根据权利要求1所述的运动轨迹合成方法,其特征在于,所述获取多帧图像,包括:The method for synthesizing a motion track according to claim 1, wherein the acquiring multiple frames of images includes:
    按照预设频率采集图像;Acquire images according to preset frequency;
    对当前采集的图像进行运动识别,若从所述当前采集的图像中识别出运动主体,则将所述当前采集的图像加入第一图像序列集;其中,所述第一图像序列集中包含获取的所述多帧图像;Perform motion recognition on the currently collected image, and if a moving subject is identified from the currently collected image, add the currently collected image to the first image sequence set; wherein, the first image sequence set contains the acquired The multi-frame image;
    若从连续采集的K帧图像中均未识别出所述运动主体,则停止采集;其中K为预设的帧数且K大于1。If the moving subject is not recognized from the continuously collected K frame images, the collection is stopped; where K is the preset number of frames and K is greater than 1.
  3. 根据权利要求1所述的运动轨迹合成方法,其特征在于,所述根据预设方式将所述多帧图像分别划分成多个栅格区域,包括:The method for synthesizing a motion track according to claim 1, wherein the dividing the multi-frame image into a plurality of grid regions according to a preset manner includes:
    从所述多帧图像中选定一帧包含运动主体的图像,并确定所述选定的图像中运动主体的目标框区域;其中,所述选定的图像中的运动主体位于所述目标框区域中;Selecting an image containing a moving subject from the multi-frame image, and determining a target frame area of the moving subject in the selected image; wherein, the moving subject in the selected image is located in the target frame In the area
    根据所述目标框区域的大小将所述选定的图像划分成多个栅格区域;其中,所述目标框区域位于其中一个所述栅格区域中。The selected image is divided into a plurality of grid areas according to the size of the target frame area; wherein the target frame area is located in one of the grid areas.
  4. 根据权利要求3所述的运动轨迹合成方法,其特征在于,所述从所述多帧图像中选择满足预设条件的若干帧图像,包括:The method for synthesizing a motion track according to claim 3, wherein the selecting of a plurality of frames of images satisfying preset conditions from the multi-frame images includes:
    将所述选定的图像加入第二图像序列集,且将所述选定的图像所在的栅格区域标记为已占用;Adding the selected image to the second image sequence set, and marking the grid area where the selected image is located as occupied;
    对于所述多帧图像中除所述选定的图像以外的每帧图像,按照排列顺序进行筛选,筛选方式包括,当判断出所述图像中的运动主体所在的栅格区域未被标记为已占用时,将所述图像加入所述第二图像序列集,并将所述图像中的运动主体所在的栅格区域标记为已占用;For each frame of the multi-frame image except the selected image, the screening is performed according to the order of sorting. The screening method includes, when it is determined that the grid area where the moving subject in the image is located is not marked as When occupied, add the image to the second image sequence set, and mark the grid area where the moving subject in the image is occupied as occupied;
    其中,所述第二图像序列集包含满足预设条件的所述若干帧图像。Wherein, the second image sequence set includes the several frames of images satisfying preset conditions.
  5. 根据权利要求4所述的运动轨迹合成方法,其特征在于,所述判断出所述图像中的运动主体所在的栅格区域未被标记为已占用,包括:The method for synthesizing a motion track according to claim 4, wherein the grid area where the moving subject in the image is located is not marked as occupied, including:
    确定所述图像中运动主体的目标框区域;Determine the target frame area of the moving subject in the image;
    判断出所述图像中运动主体的目标框区域所在的栅格区域未被标记为已占用。It is determined that the grid area where the target frame area of the moving subject in the image is not marked as occupied.
  6. 根据权利要求4所述的运动轨迹合成方法,其特征在于,所述判断出所述图像中运动主体的目标框区域所在的栅格区域未被标记为已占用之前,还包括:The method for synthesizing a motion track according to claim 4, wherein before determining that the grid area where the target frame area of the moving subject in the image is located is not marked as occupied, further comprising:
    判断出所述图像中运动主体的目标框区域全部位于其中一个所述栅格区域内。It is determined that the target frame areas of the moving subject in the image are all located in one of the grid areas.
  7. 根据权利要求2所述的运动轨迹合成方法,其特征在于,在从所述当前采集的图像中识别出运动主体之后,且将所述当前采集的图像加入所述第一图像序列集之前,还包括:The motion trajectory synthesis method according to claim 2, wherein after identifying the moving subject from the currently collected image and before adding the currently collected image to the first image sequence set, include:
    判断出所述当前采集的图像中运动主体满足预设的尺寸条件,其中,所 述尺寸条件包括,所述运动主体的宽度小于所述当前采集的图像的宽度的一半,且所述运动主体的高度小于所述当前采集的图像的高度;It is determined that the moving subject in the currently collected image satisfies a preset size condition, where the size condition includes that the width of the moving subject is less than half the width of the currently collected image, and the The height is less than the height of the currently collected image;
    若连续采集的L帧图像中运动主体都不满足所述尺寸条件,则产生表征所述运动主体过大的提示信息;其中L为预设的帧数且L大于1。If none of the moving subjects in the continuously collected L-frame images meets the size condition, a prompt message indicating that the moving subjects are too large is generated; where L is a preset number of frames and L is greater than 1.
  8. 根据权利要求3至7中任一项所述的运动轨迹合成方法,其特征在于,所述目标框区域为所述运动主体的最小外接矩形框所在的区域;或者,所述目标框区域与所述最小外接矩形框所在的区域形状相似,且面积比例为大于1且小于或等于5/4。The trajectory synthesis method according to any one of claims 3 to 7, wherein the target frame area is an area where the smallest circumscribed rectangular frame of the moving subject is located; or, the target frame area and all The area of the smallest circumscribed rectangle is similar in shape, and the area ratio is greater than 1 and less than or equal to 5/4.
  9. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;A memory in communication connection with the at least one processor;
    与所述至少一处理器和所述存储器连接的摄像头;A camera connected to the at least one processor and the memory;
    其中,所述摄像头用于采集图像;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至8中任一所述的运动轨迹合成方法。The camera is used to collect images; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute The method for synthesizing a motion track according to any one of claims 1 to 8.
  10. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的运动轨迹合成方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the motion trajectory synthesis method according to any one of claims 1 to 8 is implemented.
PCT/CN2019/101435 2018-10-25 2019-08-19 Motion trajectory synthesising method and electronic device WO2020082866A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811250802.2A CN111105434A (en) 2018-10-25 2018-10-25 Motion trajectory synthesis method and electronic equipment
CN201811250802.2 2018-10-25

Publications (1)

Publication Number Publication Date
WO2020082866A1 true WO2020082866A1 (en) 2020-04-30

Family

ID=70330775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101435 WO2020082866A1 (en) 2018-10-25 2019-08-19 Motion trajectory synthesising method and electronic device

Country Status (2)

Country Link
CN (1) CN111105434A (en)
WO (1) WO2020082866A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433529A (en) * 2020-11-30 2021-03-02 东软睿驰汽车技术(沈阳)有限公司 Moving object determination method, device and equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810587B (en) * 2020-05-29 2023-04-18 华为技术有限公司 Image processing method and device
CN112686941B (en) * 2020-12-24 2023-09-19 北京英泰智科技股份有限公司 Method and device for recognizing rationality of movement track of vehicle and electronic equipment
CN112785573A (en) * 2021-01-22 2021-05-11 上海商汤智能科技有限公司 Image processing method and related device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060092280A1 (en) * 2002-12-20 2006-05-04 The Foundation For The Promotion Of Industrial Science Method and device for tracking moving objects in image
CN101833791A (en) * 2010-05-11 2010-09-15 成都索贝数码科技股份有限公司 Scene modeling method under single camera and system
CN104751489A (en) * 2015-04-09 2015-07-01 苏州阔地网络科技有限公司 Grid-based relay tracking method and device in online class
CN106228835A (en) * 2016-07-18 2016-12-14 北京精英智通科技股份有限公司 A kind of parking stall Parking determination methods and system
CN106340032A (en) * 2016-08-27 2017-01-18 浙江捷尚视觉科技股份有限公司 Moving target detection method based on optical flow field clustering

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060092280A1 (en) * 2002-12-20 2006-05-04 The Foundation For The Promotion Of Industrial Science Method and device for tracking moving objects in image
CN101833791A (en) * 2010-05-11 2010-09-15 成都索贝数码科技股份有限公司 Scene modeling method under single camera and system
CN104751489A (en) * 2015-04-09 2015-07-01 苏州阔地网络科技有限公司 Grid-based relay tracking method and device in online class
CN106228835A (en) * 2016-07-18 2016-12-14 北京精英智通科技股份有限公司 A kind of parking stall Parking determination methods and system
CN106340032A (en) * 2016-08-27 2017-01-18 浙江捷尚视觉科技股份有限公司 Moving target detection method based on optical flow field clustering

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433529A (en) * 2020-11-30 2021-03-02 东软睿驰汽车技术(沈阳)有限公司 Moving object determination method, device and equipment
CN112433529B (en) * 2020-11-30 2024-02-27 东软睿驰汽车技术(沈阳)有限公司 Moving object determining method, device and equipment

Also Published As

Publication number Publication date
CN111105434A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
WO2020082866A1 (en) Motion trajectory synthesising method and electronic device
CN111179311B (en) Multi-target tracking method and device and electronic equipment
US9918007B2 (en) Photographing method and apparatus
US8249359B2 (en) Detector for detecting a predetermined image in an input image, and detection method and integrated circuit for performing the same
CN101840055B (en) Video auto-focusing system based on embedded media processor
US20220166930A1 (en) Method and device for focusing on target subject, and electronic device
US9842409B2 (en) Image transmission device, image transmission method, image transmission program, image recognition and authentication system, and image reception device
CN110248096A (en) Focusing method and device, electronic equipment, computer readable storage medium
US11840357B2 (en) Method and device for dual-light image integration, and unmanned aerial vehicle
CN106251334A (en) A kind of camera parameters method of adjustment, instructor in broadcasting's video camera and system
CN108174185A (en) A kind of photographic method, device and terminal
US8625922B2 (en) Image processing method and program for determining whether sabotage has occurred to an image
CN111988561A (en) Adaptive adjustment method and device for video analysis, computer equipment and medium
CN104123718A (en) Device and method for image processing, image processing control program, and recording medium
CN111310727B (en) Object detection method and device, storage medium and electronic device
US8295609B2 (en) Image processing apparatus, image processing method and computer readable-medium
WO2020113412A1 (en) Target detection method and system
CN112686802A (en) Image splicing method, device, equipment and storage medium
CN110248101A (en) Focusing method and device, electronic equipment, computer readable storage medium
CN112001946A (en) Target object tracking method, computer equipment and device
US8928768B2 (en) Image processing device and computer-readable computer program product containing image processing program
CN112449117B (en) Focusing step length determining method and device, storage medium and electronic device
CN109698946A (en) Projection device Atomatic focusing method, projection device and computer readable storage medium
JP2013195577A (en) Imaging device, imaging method, and program
CN110059518A (en) A kind of barcode scanning method, device and mobile terminal

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: 19875411

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/09/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19875411

Country of ref document: EP

Kind code of ref document: A1