An image capture method, device, equipment and computer-readable storage medium

By detecting the target square wave signal and preset target characteristics, the target capture signal and fill light signal are generated, and the synchronous operation of the image sensor and fill light device is realized, which solves the problem that personalized capture cannot be achieved in the prior art, and obtains the best-effect image with specific features, meeting the personalized needs of users.

CN115835026BActive Publication Date: 2025-06-13SHENZHEN STREAMING VIDEO TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211249473.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-12
Publication Date
2025-06-13
Estimated Expiration
2042-10-12

AI Technical Summary

Technical Problem

In the prior art, when image sensors capture, they cannot achieve personalized capture, and cannot obtain images with the best effect with specific features, which cannot meet the personalized needs of users.

Method used

By detecting the target square wave signal and preset target characteristics, the target capture signal and the target fill light signal are generated, and the image sensor and the fill light device are triggered to perform synchronous operations, the image containing the preset target characteristics is obtained, and the target image is filtered out through the timestamp.

Benefits of technology

Personalized capture is realized, and users can obtain images with the best effect with specific features, meeting users' personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835026B_ABST
    Figure CN115835026B_ABST
Patent Text Reader

Abstract

This application is applicable to the field of vehicle security technology, and provides an image capture method, device, equipment and computer-readable storage medium. The method includes: when detecting a target square wave signal, obtaining a first image sent by the image sensor; when detecting that the first image includes a preset target feature, generating a target capture signal; generating a target fill light signal according to a preset strategy and the target capture signal, and obtaining a current first timestamp; collecting the second image including the preset target feature according to the target capture signal and the target fill light signal, and obtaining a second timestamp corresponding to the second image; screening out a target image with the preset target feature from the second image according to the first timestamp and the second timestamp. Personalized capture is realized, and the user can obtain the best-quality image with specific features, meeting the personalized needs of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of image acquisition, and particularly relates to an image capture method, device, equipment and computer-readable storage medium. Background Art

[0002] In the fields of road traffic monitoring and in-vehicle system video monitoring, the image capture function is often used. In the prior art, when an image sensor captures images, most of them are realized by sending commands through a serial port or other communication modules. However, this method is only applicable to the scenario of capturing all objects, and cannot perform personalized capture, nor can it obtain the best-quality images with specific features, which cannot meet the personalized needs of users. Summary of the Invention

[0003] Embodiments of this application provide an image capture method, device, equipment and computer-readable storage medium, which can solve the above problems.

[0004] In a first aspect, an embodiment of this application provides an image capture method, including: when a target square wave signal is detected, obtaining a first image sent by the image sensor; wherein, the target square wave signal is used to trigger the image sensor to collect the first image; when it is detected that the first image includes a preset target feature, generating a target capture signal; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature; according to a preset strategy and the target capture signal, generating a target fill light signal and obtaining a current first time stamp; wherein, the target fill light signal is used to trigger a fill light device to perform fill light; the first time stamp is a system time stamp; obtaining the second image including the preset target feature according to the target capture signal and the target fill light signal, and obtaining a second time stamp corresponding to the second image; screening out a target image of the preset target feature from the second image according to the first time stamp and the second time stamp.

[0005] Further, before the step of obtaining the first image sent by the image sensor when the target square wave signal is detected, the method further includes: obtaining an external sine wave signal, performing shaping processing on the external sine wave signal to obtain an initial square wave signal; performing frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain a target square wave signal.

[0006] Further, the step of performing frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain a target square wave signal includes: obtaining a first frequency of the external sine wave signal; performing frequency modulation processing on the initial sine wave signal according to the preset required frame rate and the first frequency to obtain a target square wave signal.

[0007] Further, the obtaining of the second image including the preset target feature according to the target capture signal and the target fill light signal includes the steps of: synchronizing and aligning the target capture signal and the target fill light signal according to a preset required frame rate; and obtaining the second image including the preset target feature according to the synchronously aligned target capture signal and target fill light signal.

[0008] Further, the obtaining of the second timestamp corresponding to the second image includes the steps of: obtaining cache information and an initial timestamp corresponding to the second image; and correcting the initial timestamp according to the cache information to obtain the second timestamp corresponding to the second image.

[0009] Further, the screening of the target image of the preset target feature from the second image according to the first timestamp and the second timestamp includes the steps of: obtaining the absolute value of the difference between the first timestamp and all the second timestamps; and taking the second image corresponding to the smallest absolute value as the target image of the preset target feature.

[0010] Further, the preset target feature includes a target face, a target vehicle, a target identifier, an object including the target identifier, and a target appearance feature.

[0011] In a second aspect, an embodiment of the present application provides an image capture device, including: a first processing unit, configured to obtain a first image sent by the image sensor when detecting a target square wave signal; wherein the target square wave signal is used to trigger the image sensor to collect the first image; a second processing unit, configured to generate a target capture signal when detecting that the first image includes a preset target feature; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature; a third processing unit, configured to generate a target fill light signal according to a preset strategy and the target capture signal, and obtain a current first timestamp; wherein the target fill light signal is used to trigger a fill light device to perform fill light; the first timestamp is a system timestamp; a collection unit, configured to obtain the second image including the preset target feature according to the target capture signal and the target fill light signal, and obtain a second timestamp corresponding to the second image; and a fourth processing unit, configured to screen out a target image of the preset target feature from the second image according to the first timestamp and the second timestamp.

[0012] Further, the image capture device further includes: a fifth processing unit, configured to obtain an external sine wave signal and perform shaping processing on the external sine wave signal to obtain an initial square wave signal; and a sixth processing unit, configured to perform frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain a target square wave signal.

[0013] Further, the sixth processing unit is specifically configured to: obtain a first frequency of an external sine wave signal; perform frequency modulation processing on the initial sine wave signal according to a preset required frame rate and the first frequency to obtain a target square wave signal.

[0014] Further, the acquisition unit is specifically configured to: perform synchronous alignment processing on the target capture signal and the target fill light signal according to a preset required frame rate; acquire a second image including the preset target feature according to the synchronously aligned target capture signal and target fill light signal.

[0015] Further, the acquisition unit is specifically configured to: obtain cache information and an initial timestamp corresponding to the second image; correct the initial timestamp according to the cache information to obtain a second timestamp corresponding to the second image.

[0016] Further, the fourth processing unit is specifically configured to: obtain an absolute value of a difference between the first timestamp and all the second timestamps; use the second image corresponding to the smallest absolute value as the target image of the preset target feature.

[0017] Further, the preset target feature includes a target face, a target vehicle, a target identifier, an object including the target identifier, and a target appearance feature.

[0018] In a third aspect, an embodiment of the present application provides an image capture device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method described in the first aspect above is implemented.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0020] When the target square wave signal is detected in the embodiment of the present application, the first image sent by the image sensor is acquired; when it is detected that the preset target feature is included in the first image, a target capture signal is generated; according to the preset strategy and the target capture signal, a target fill light signal is generated, and the current first timestamp is acquired; the second image including the preset target feature is collected according to the target capture signal and the target fill light signal, and the second timestamp corresponding to the second image is acquired; the target image of the preset target feature is filtered out from the second image according to the first timestamp and the second timestamp. When the preset target feature is detected, the target capture signal and the target fill light signal are generated again for capture and fill light, and the image with the best fill light effect and specific features is acquired from the captured second image. Personalized capture is realized, and the user can obtain the image with the best effect and specific features, meeting the personalized needs of the user. Description of the Drawings

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0022] Figure 1 It is a schematic flowchart of an image capture method provided by the first embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of the initial square wave signal obtained by shaping the external sine wave signal in the image capture method provided by the first embodiment of the present application;

[0024] Figure 3 It is a schematic diagram of the synchronous alignment process of the target capture signal and the target fill light signal in the image capture method provided by the first embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of the image capture device provided by the second embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of the image capture device provided by the third embodiment of the present application. Detailed Embodiments

[0027] In the following description, specific details such as specific system architectures, technologies, etc. are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0028] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0029] It should also be understood that the term "and / or" used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] As used in the specification of the present application and the appended claims, the term "if" can be interpreted as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]" depending on the context.

[0031] In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0032] The reference to "one embodiment" or "some embodiments" or the like described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0033] Please refer to Figure 1 , Figure 1It is a schematic flowchart of an image capture method provided by the first embodiment of the present application. In this embodiment, the execution subject of an image capture method is a device with an image capture function, which can be a personal computer, a server, a mobile phone, etc., or it can also be a control chip, a microcontroller, etc.

[0034] In the embodiment of the present application, the device is network-connected to multiple image sensors, that is, in this embodiment, multiple image sensors jointly perform image acquisition.

[0035] Such as Figure 1 The image capture method shown can include:

[0036] S101: When a target square wave signal is detected, obtain a first image sent by the image sensor; wherein, the target square wave signal is used to trigger the image sensor to capture the first image.

[0037] When the device is connected to a power supply or a signal source, it triggers the device to generate a target square wave signal.

[0038] The target square wave signal is used to trigger the image sensor to capture the first image. The device outputs the target square wave signal to the image sensor to trigger the image sensor to start capturing images, and the image sensor sends the captured first image to the device. The device obtains the first image sent by the image sensor.

[0039] Among them, the synchronization mode of the image sensor in this embodiment needs to be set to the slave mode, so as to realize the synchronous exposure and image output of the image sensors of all cameras.

[0040] The format of the first image can be JPEG, YUV or RAW format, and there is no limit here. Since the first image is mainly used to identify preset target features, in this embodiment, the requirement for the image quality of the first image is not high, that is, as long as the preset target features can be accurately identified.

[0041] In one implementation, since the device is connected to a power supply or a signal source, in most cases it is mains alternating current. In order to obtain the target square wave signal, before S101, it may include: obtaining an external sine wave signal, performing shaping processing on the external sine wave signal to obtain an initial square wave signal; performing frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain the target square wave signal.

[0042] The device includes a signal shaping module, which can shape the external sine wave signal to obtain an initial square wave signal. Generally, the shaping processing method is to add capacitor filtering, and then output the initial square wave signal through a comparator. Please refer to Figure 2 , Figure 2The waveform signal in the coordinate system is the external sine wave signal, and the corresponding square wave signal is the initial square wave signal obtained after shaping the external sine wave signal.

[0043] Specifically, the general way to shape the external sine wave signal into an initial square wave signal is to use a zero-crossing comparator. A zero-crossing comparator is a comparator with a flipping threshold of zero. This comparator uses the threshold as a boundary. If the value is less than the threshold, it outputs one logic, and if it is greater, it outputs the opposite logic.

[0044] For example, taking the sine wave signal at the power supply end of the mains electricity as the external sine wave signal, the output initial square wave signal is u 0 . When the input external sine wave signal u i is a sine wave, the voltage value of u i compares with the reference resistor at the starting moment. When the voltage value is above the X-axis, the output current comparison value is positive, so u 0 outputs a high-level square wave; when the voltage value of u i passes through the X-axis intersection point, its voltage value compares with the reference resistor. When the voltage value is below the X-axis, the output current comparison value is 0, so u 0 outputs a low-level square wave. By cycling like this, a square wave signal of the same frequency will be output. For every time u i passes through a zero point, the output end u 0 of the comparator will generate a square wave flip with a voltage jump. In this way, the entire process of the initial square wave signal obtained after shaping the external sine wave signal is completed.

[0045] After the device obtains the initial square wave signal, it performs frequency modulation processing on the initial square wave signal according to the preset required frame rate to obtain the target square wave signal. Among them, the preset required frame rate is the preset required frame rate of the image sensor, which is generally determined comprehensively according to product or index requirements. For example, if the computing power of a certain platform is limited and the preset required frame rate is 30 frames per second and it cannot complete the operation, the preset required frame rate can be set to 20 or 25 frames.

[0046] Specifically, the device can obtain the first frequency of the external sine wave signal; perform frequency modulation processing on the initial sine wave signal according to the preset required frame rate and the first frequency to obtain the target square wave signal. For example, when the preset required frame rate is 25 frames and the first frequency of the external sine wave signal is 50Hz, then perform frequency modulation processing on the initial sine wave signal according to the preset required frame rate and the first frequency, and perform a frequency division by two on 50HZ to obtain the target square wave signal.

[0047] In this embodiment, the device acquires a first image sent by an image sensor. The device can cache the entire first image in a buffer pool. After the entire first image is completely cached, subsequent processing is performed on the first image. The reason for caching is that in an actual product, a complete algorithm is implemented by multiple sub-algorithms, and each sub-algorithm needs to be processed independently, and their processing timeliness is different. After a certain algorithm analysis is completed, the next frame is analyzed. Other uncompleted operators continue to analyze the original frame. Only when all sub-algorithms have completed processing a picture can it be released. Therefore, in this embodiment, the entire first image is cached in the buffer pool and then subsequent processing is performed.

[0048] S102: When it is detected that the first image includes a preset target feature, a target capture signal is generated; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature.

[0049] The device pre-stores preset target features. The preset target features are features to be recognized, and users can set them by themselves. Among them, the preset target features include target faces, target vehicles, target identifiers, objects including the target identifier, and target appearance features. For example, the preset target feature can be a scooter, a food delivery electric vehicle, a person wearing glasses, etc. That is, when the user sets the preset target feature, it means to capture an image with good effect including the preset target feature.

[0050] The device detects whether the first image includes a preset target feature. In this embodiment, there is no limitation on the detection method for detecting whether the first image includes a preset target feature. It can directly process and identify the first image to determine whether it includes a preset target feature, or input the first image into a pre-trained image recognition neural network model to identify whether the first image includes a preset target feature.

[0051] When it is detected that the first image includes a preset target feature, it means that the preset target feature appears, and personalized capture can start. The device generates a target capture signal.

[0052] The target capture signal is used to trigger the image sensor to capture a second image including the preset target feature. Among them, the second image is acquired based on the capture signal. Since the second image includes the preset target feature, the target image of the preset target feature finally obtained is also selected from the second image. Therefore, the image quality of the second image is higher than that of the first image.

[0053] S103: According to a preset strategy and the target capture signal, a target fill light signal is generated, and the current first timestamp is obtained; wherein, the target fill light signal is used to trigger the fill light device to perform fill light; the first timestamp is the system timestamp.

[0054] The device pre-stores a preset policy, which is used to generate a fill light signal. The device generates a fill light signal according to the preset policy and the target capture signal. Specifically, the high level of the target capture signal is the shutter control time and fill light is required. Therefore, the device can generate a fill light signal based on the frame rate of the target capture signal and the shutter control time of the high level of the target capture signal.

[0055] Among them, the target fill light signal is used to trigger the fill light device to perform fill light. That is to say, the fill light device controls the turn-on or turn-off of the fill light according to the fill light signal, so as to achieve the effect of fill light.

[0056] In practice, ensure that the fill light range position of the fill light device does not deviate from the photosensitive area.

[0057] To generate the target fill light signal, the device obtains the current first timestamp, where the first timestamp is the system timestamp, and the first timestamp can be used as a reference timestamp.

[0058] S104: Obtain the second image including the preset target feature according to the target capture signal and the target fill light signal, and obtain the second timestamp corresponding to the second image.

[0059] The device obtains a second image including a preset target feature according to the target capture signal and the target fill light signal. Among them, the target capture signal controls the image sensor to capture an image, and the target fill light signal controls the fill light device to perform fill light during capture.

[0060] Since the target capture signal is generated when the preset target feature is detected, the second image obtained according to the target capture signal and the target fill light signal contains the preset target feature.

[0061] In one implementation, in order to better perform fill light on the captured image and thus obtain a second image with better effect, in this embodiment, the device synchronizes and aligns the target capture signal and the target fill light signal according to the preset required frame rate; obtains a second image including the preset target feature according to the synchronized and aligned target capture signal and target fill light signal.

[0062] Specifically, refer to Figure 3 , Figure 3Schematic diagram for synchronously aligning the target capture signal and the target fill light signal. The high level of each frame of the target capture signal is the shutter control time, and the low level is the non-exposure time of one frame. The exposure time is adjusted according to the actual exposure picture effect, for example, if it is too bright, the width of the high level is set to be shorter, and if it is too dark, the width of the high level is set to be longer. When the capture signal 1 comes, it is exactly the exposure window period of the current frame. If no fill light is required, then wait until the next frame, that is, the start exposure moment of the second frame, and then turn on the fill light. After waiting for the high level of the second frame to end, turn off the fill light, or it can be turned off in advance according to the actual picture effect. When the capture signal 2 comes, it is exactly the idle non-exposure window period of the current frame, then wait until the start exposure moment of the next frame to turn on the fill light, and then wait until the high level of the next frame ends, turn off the fill light, or turn it off in advance according to the actual picture effect.

[0063] In this way, after alignment processing, triggering a fill light causes the fill light to flash once. At this time, the duration of the fill light being on is exactly within the exposure window of the image sensor, making the image sensing effect at this time the best.

[0064] The device acquires the second image and simultaneously acquires the second timestamp corresponding to the second image. Among them, the second timestamp is the timestamp attached to the second image, and the second timestamp identifies the acquisition order of the second image.

[0065] In one implementation, the second image output by the image sensor is directly output to the processing layer, and the second timestamp corresponding to the second image is marked. When the second image output by the image sensor enters the processing layer to mark the second timestamp, there may be a time difference, then compensation is required to correct the time difference of the encoding buffer. The device can acquire the cache information and the initial timestamp corresponding to the second image; correct the initial timestamp according to the cache information to obtain the second timestamp corresponding to the second image.

[0066] Among them, the cache information is the cache information corresponding to the processing layer, which may include the cache frames included in the processing layer and the number of cache frames. For example, there are 2 cache frames in the cache before the second image output by the image sensor is directly output to the processing layer, then:

[0067] The second timestamp corresponding to the second image = the initial timestamp PTS1 corresponding to the second image + 2 × frame interval. If there is 1 cache frame in the cache before the second image output by the image sensor is directly output to the processing layer, then:

[0068] The second timestamp corresponding to the second image = the initial timestamp PTS1 corresponding to the second image + 1 × frame interval.

[0069] S105: Screen out the target image of the preset target feature from the second image according to the first timestamp and the second timestamp.

[0070] The device filters out the target images with preset target features from the second image according to the first timestamp and the second timestamp. It can be understood that since the second image is collected after the first timestamp to obtain the second timestamp, the first timestamp must be less than the second timestamp. The preset target features start to appear from the moment corresponding to the first timestamp. The closer the second timestamp is to the first timestamp, it means that the obtained second image has the best effect.

[0071] In this embodiment, when filtering out the target images with preset target features from the second image, the number of target images can be one or multiple. When there are multiple target images, they can be shown to the user for selection.

[0072] Specifically, the device can obtain the absolute value of the difference between the first timestamp and all second timestamps, and use the second image corresponding to the smallest absolute value as the target image with the preset target features. The smallest absolute difference indicates the image with the best photographing effect. Finally, the target image is stored for future inspection.

[0073] In the embodiment of the present application, when detecting the target square wave signal, the first image sent by the image sensor is obtained; when it is detected that the first image includes the preset target features, a target capture signal is generated; according to the preset strategy and the target capture signal, a target fill light signal is generated, and the current first timestamp is obtained; according to the target capture signal and the target fill light signal, the second image including the preset target features is collected, and the second timestamp corresponding to the second image is obtained; the target image with the preset target features is filtered out from the second image according to the first timestamp and the second timestamp. When the preset target features are detected, the target capture signal and the target fill light signal are generated again for capture and fill light, and the image with the best fill light effect with specific features is obtained from the captured second image. Personalized capture is realized, and the user can obtain the image with the best effect with specific features, meeting the personalized needs of the user.

[0074] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0075] Please refer to Figure 4 , Figure 4 which is a schematic diagram of the image capture device provided in the second embodiment of the present application. Each unit included is used to execute Figure 1 the steps in the corresponding embodiment. Specifically, please refer to Figure 1 the relevant descriptions in the corresponding embodiment. For the sake of convenience of description, only the parts related to this embodiment are shown. Refer to Figure 4, the image capture device 4 includes:

[0076] A first processing unit 410, configured to obtain a first image sent by the image sensor when detecting a target square wave signal; wherein, the target square wave signal is used to trigger the image sensor to capture the first image; a second processing unit 420, configured to generate a target capture signal when detecting that the first image includes a preset target feature; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature; a third processing unit 430, configured to generate a target fill light signal according to a preset policy and the target capture signal, and obtain a current first timestamp; wherein, the target fill light signal is used to trigger a fill light device to perform fill light; the first timestamp is a system timestamp; an acquisition unit 440, configured to obtain the second image including the preset target feature according to the target capture signal and the target fill light signal, and obtain a second timestamp corresponding to the second image; a fourth processing unit 450, configured to screen out a target image of the preset target feature from the second image according to the first timestamp and the second timestamp.

[0077] Further, the image capture device 4 further includes: a fifth processing unit, configured to obtain an external sine wave signal and perform shaping processing on the external sine wave signal to obtain an initial square wave signal; a sixth processing unit, configured to perform frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain a target square wave signal.

[0078] Further, the sixth processing unit is specifically configured to: obtain a first frequency of the external sine wave signal; perform frequency modulation processing on the initial sine wave signal according to the preset required frame rate and the first frequency to obtain a target square wave signal.

[0079] Further, the acquisition unit 440 is specifically configured to: synchronize and align the target capture signal and the target fill light signal according to a preset required frame rate; acquire a second image including the preset target feature according to the synchronized and aligned target capture signal and target fill light signal.

[0080] Further, the acquisition unit 440 is specifically configured to: obtain cache information and an initial timestamp corresponding to the second image; correct the initial timestamp according to the cache information to obtain a second timestamp corresponding to the second image.

[0081] Further, the fourth processing unit 450 is specifically configured to: obtain the absolute value of the difference between the first timestamp and all the second timestamps; use the second image corresponding to the smallest absolute value as the target image of the preset target feature.

[0082] Further, the preset target features include a target face, a target vehicle, a target identifier, an object containing the target identifier, and a target appearance feature.

[0083] Please refer to Figure 5 , Figure 5 which is a schematic diagram of an image capture device provided in the third embodiment of the present application. As Figure 5 shown, the image capture device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as an image capture program. When the processor 50 executes the computer program 52, the steps in the above-mentioned various image capture method embodiments are implemented, such as Figure 1 the steps S101 to S105 shown. Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are implemented, such as Figure 4 the functions of the first processing unit 410 to the fourth processing unit 450 shown.

[0084] Exemplarily, the computer program 52 can be divided into one or more modules / units. The one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program 52 in the image capture device 5. For example, the computer program 52 can be divided into a first processing unit, a second processing unit, a third processing unit, a collection unit, and a fourth processing unit. The specific functions of each unit are as follows:

[0085] The first processing unit is configured to obtain a first image sent by the image sensor when a target square wave signal is detected; wherein, the target square wave signal is used to trigger the image sensor to collect the first image;

[0086] The second processing unit is configured to generate a target capture signal when it is detected that the first image includes a preset target feature; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature;

[0087] The third processing unit is configured to generate a target fill light signal according to a preset policy and the target capture signal, and obtain a current first timestamp; wherein, the target fill light signal is used to trigger a fill light device to perform fill light; the first timestamp is a system timestamp;

[0088] The collection unit is configured to obtain the second image including the preset target feature according to the target capture signal and the target fill light signal, and obtain a second timestamp corresponding to the second image;

[0089] A fourth processing unit, configured to screen out a target image of the preset target feature from the second image according to the first timestamp and the second timestamp.

[0090] The image capture device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art can understand that Figure 5 This is only an example of the image capture device 5 and does not constitute a limitation on the image capture device 5. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the image capture device may further include an input / output device, a network access device, a bus, etc.

[0091] The so-called processor 50 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0092] The memory 51 may be an internal storage unit of the image capture device 5, such as a hard disk or memory of the image capture device 5. The memory 51 may also be an external storage device of the image capture device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the image capture device 5. Further, the image capture device 5 may also include both an internal storage unit and an external storage device of the image capture device 5. The memory 51 is used to store the computer program and other programs and data required by the image capture device. The memory 51 may also be used to temporarily store data that has been output or is to be output.

[0093] It should be noted that for the content such as information interaction and execution process between the above-mentioned device / units, since it is based on the same concept as the method embodiment of the present application, for its specific functions and the technical effects brought, reference may be specifically made to the method embodiment part, and details are not described herein again.

[0094] An embodiment of the present application further provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor. When the processor executes the computer program, the steps in any of the above method embodiments are implemented.

[0095] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments can be implemented.

[0096] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal is enabled to implement the steps in the above method embodiments when executed.

[0097] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above method embodiments of the present application, a computer program can be used to instruct the relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps in the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device capable of carrying the computer program code to the photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium may not be an electrical carrier signal and a telecommunication signal.

[0098] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0099] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0100] In the embodiments provided in this application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

[0101] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0102] The above-described embodiments are only used to illustrate the technical solutions of this application, rather than to limit it; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of this application, and should all be included in the protection scope of this application.

Claims

1. An image capture method, characterized in that, the method includes the steps of: When a target square wave signal is detected, obtain a first image sent by an image sensor; wherein, the target square wave signal is used to trigger the image sensor to collect the first image; When it is detected that the first image includes a preset target feature, generate a target capture signal; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature; According to a preset strategy and the target capture signal, generate a target fill light signal, and obtain a current first timestamp; wherein, the target fill light signal is used to trigger a fill light device to perform fill light; the first timestamp is a system timestamp; According to the frame rate of the target capture signal and the target fill light signal, obtain multiple second images including the preset target feature, and obtain a second timestamp corresponding to the second image; According to the first timestamp and the second timestamp, screen out a target image of the preset target feature from multiple second images.

2. The image capture method according to claim 1, characterized in that, Before the step of obtaining the first image sent by the image sensor when detecting the target square wave signal, the method further includes the steps of: Obtain an external sine wave signal, and perform shaping processing on the external sine wave signal to obtain an initial square wave signal; Perform frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain a target square wave signal.

3. The image capture method according to claim 2, characterized in that, The step of performing frequency modulation processing on the initial square wave signal according to a preset required frame rate to obtain a target square wave signal includes the steps of: Obtain a first frequency of the external sine wave signal; Perform frequency modulation processing on the initial square wave signal according to the preset required frame rate and the first frequency to obtain a target square wave signal.

4. The image capture method according to claim 1, characterized in that, The step of obtaining multiple second images including the preset target feature according to the frame rate of the target capture signal and the target fill light signal includes the steps of: Synchronize and align the target capture signal and the target fill light signal according to a preset required frame rate; Obtain multiple second images including the preset target feature according to the synchronized and aligned target capture signal and target fill light signal.

5. The image capture method according to claim 1, characterized in that, The step of obtaining the second timestamp corresponding to the second image includes the steps of: Obtain cache information and an initial timestamp corresponding to the second image; Correct the initial timestamp according to the cache information to obtain the second timestamp corresponding to the second image.

6. The image capture method according to claim 1, characterized in that, The step of screening out a target image of the preset target feature from multiple second images according to the first timestamp and the second timestamp includes the steps of: Obtain the absolute value of the difference between the first timestamp and all the second timestamps; Use the second image corresponding to the smallest absolute value as the target image of the preset target feature.

7. The image capture method according to any one of claims 1-6, characterized in that, the preset target features include a target face, a target vehicle, a target identifier, an object containing the target identifier, and a target appearance feature.

8. An image capture device, characterized in that, comprising: a first processing unit, configured to obtain a first image sent by an image sensor when a target square wave signal is detected; wherein, the target square wave signal is used to trigger the image sensor to collect the first image; a second processing unit, configured to generate a target capture signal when it is detected that the first image includes a preset target feature; the target capture signal is used to trigger the image sensor to capture a second image including the preset target feature; a third processing unit, configured to generate a target fill light signal according to a preset policy and the target capture signal, and obtain a current first timestamp; wherein, the target fill light signal is used to trigger a fill light device to perform fill light; the first timestamp is a system timestamp; a collection unit, configured to obtain multiple second images including the preset target feature according to the frame rate of the target capture signal and the target fill light signal, and obtain a second timestamp corresponding to the second image; a fourth processing unit, configured to screen out a target image of the preset target feature from multiple second images according to the first timestamp and the second timestamp.

9. An image capture device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Image capturing method and device

    CN112911134A

  • Imaging apparatus and imaging method

    JP2006180149A