Image acquisition method, device and system

By maintaining picture acquisition records on the server side, the stored pictures are determined based on the target frame interval and the historical frame interval, and are directly provided to the terminal, which solves the problem of low efficiency of video acquisition in the existing technology and improves the efficiency and resources of image acquisition. Utilization.

CN112131423BActive Publication Date: 2024-08-27HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910556705.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-25
Publication Date
2024-08-27
Estimated Expiration
2039-06-25

AI Technical Summary

Technical Problem

In the existing technology, the method of obtaining pictures based on video results in low efficiency for terminals to obtain pictures, requiring frequent decoding and encoding, resulting in high time consumption.

Method used

By maintaining picture acquisition records on the server side, the stored pictures are determined based on the target frame interval and historical frame interval, and the stored pictures are directly provided to the terminal to avoid repeated acquisition.

Benefits of technology

It improves the efficiency of image acquisition, shortens the time for the terminal to acquire images, and reduces hardware resource consumption and storage space waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112131423B
    Figure CN112131423B
Patent Text Reader

Abstract

The present application discloses a method, device and system for obtaining an image, which belongs to the field of image processing technology. The method comprises: receiving an image obtaining request from a terminal, wherein the image obtaining request is used to request obtaining multiple target images corresponding to a target video according to a target frame interval; reading an image obtaining record, wherein the image obtaining record comprises a record of obtaining corresponding images according to a historical frame interval; when it is determined that at least one of the multiple target images has been stored according to the image obtaining record, the target frame interval and the target video, providing the terminal with the at least one stored image. The present application shortens the time required for a terminal to obtain an image and improves the efficiency of obtaining an image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device and system for obtaining an image. Background Art

[0002] Algorithm training requires a large number of images, and the original data is mostly videos. How to obtain the required images based on videos (that is, taking screenshots of the video) is of great significance to saving training time.

[0003] Assume that the method for obtaining pictures based on videos is as follows: the user selects a video on the terminal, and the terminal sends a picture acquisition request (screenshot request) for the video to the server based on the video selected by the user. When the server receives the picture acquisition request, it can decode the video to obtain all image frames of the video, and then obtain multiple image frames from all image frames of the video according to the frame interval indicated by the picture acquisition request. Taking the frame interval of 5 frames as an example, the server can obtain the 5th frame, the 10th frame, the 15th frame,..., the nth frame, where n is a multiple of 5, and then the server can encode the multiple image frames into corresponding pictures and return the pictures to the terminal.

[0004] The above technology obtains the corresponding picture according to the video selected by the user. If the user selects the same video one after another, the server needs to perform multiple steps such as decoding and encoding each time to obtain the corresponding picture and send it to the terminal, resulting in a long time for the terminal to obtain the picture and low efficiency in picture acquisition.

[0005] Application Contents

[0006] The embodiments of the present application provide a method, device and system for obtaining an image, which can solve the problem of low efficiency in obtaining images in related technologies. The technical solution is as follows:

[0007] In a first aspect, a method for obtaining an image is provided, the method comprising:

[0008] A picture acquisition request is received from a terminal, where the picture acquisition request is used to request to acquire a plurality of target pictures corresponding to a target video according to a target frame interval;

[0009] Reading a picture acquisition record, wherein the picture acquisition record includes a record of acquiring corresponding pictures according to a historical frame interval;

[0010] When it is determined that at least one of the plurality of target pictures has been stored according to the picture acquisition record, the target frame interval, and the target video, the at least one stored picture is provided to the terminal.

[0011] In a possible implementation, determining, according to the picture acquisition record, the target frame interval, and the target video, that at least one picture among the plurality of target pictures has been stored includes:

[0012] The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one picture stored in the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record; or

[0013] The picture acquisition record includes a historical serial number of a picture in the target video stored according to the historical frame interval, and at least one stored picture among the multiple target pictures is determined according to the target frame interval and the historical serial number in the picture acquisition record.

[0014] In a possible implementation, determining at least one stored picture among the multiple target pictures according to the target frame interval and the historical frame interval in the picture acquisition record includes:

[0015] Determining a sequence number of at least one stored picture among the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record;

[0016] According to the sequence number of at least one stored picture among the multiple target pictures, at least one stored picture among the multiple target pictures is determined from the stored pictures corresponding to the target video.

[0017] In a possible implementation, determining, according to the target frame interval and the historical frame interval in the picture acquisition record, the sequence number of at least one picture stored in the plurality of target pictures includes:

[0018] When the target frame interval is an integer multiple of the historical frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the target frame interval, and the integer multiple is greater than or equal to 1; or,

[0019] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval; or,

[0020] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the sequence number of at least one stored picture among the multiple target pictures is determined to be a common multiple of the historical frame interval and the target frame interval.

[0021] In a possible implementation, determining at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record includes:

[0022] Determining, according to the target frame interval and the historical sequence number in the picture acquisition record, the sequence number of at least one picture that has been stored in the plurality of target pictures;

[0023] According to the sequence number of the at least one picture, the at least one picture is determined from the stored pictures corresponding to the target video.

[0024] In a possible implementation, determining the sequence number of at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record includes:

[0025] According to the target frame interval and the historical sequence number, using a sequence number in the historical sequence number that is an integer multiple of the target frame interval as a sequence number of at least one stored picture in the multiple target pictures; or

[0026] According to the target frame interval, the serial numbers of the multiple target pictures in the target video are determined, and the serial numbers of the multiple target pictures included in the historical serial numbers are used as the serial number of at least one picture stored in the multiple target pictures.

[0027] In a possible implementation manner, providing the at least one stored picture to the terminal includes:

[0028] sending the at least one picture to the terminal, or,

[0029] The storage address of the at least one picture is sent to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

[0030] In a possible implementation manner, after providing the at least one stored picture to the terminal, the method further includes:

[0031] Acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video;

[0032] Provide the terminal with pictures other than the at least one picture among the multiple target pictures.

[0033] In a possible implementation, acquiring pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval, and the target video includes:

[0034] The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval and the historical frame interval; or

[0035] The picture acquisition record includes a historical serial number of the picture in the target video stored according to the historical frame interval, and acquires pictures other than the at least one picture in the multiple target pictures according to the target video, the target frame interval and the historical serial number.

[0036] In a possible implementation, acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval, and the historical frame interval includes:

[0037] Decoding the target video to obtain each video frame of the target video;

[0038] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, encoding a first video frame among the video frames to obtain pictures other than the at least one picture among the multiple target pictures, wherein a frame sequence number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval;

[0039] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame among the video frames is encoded to obtain pictures among the multiple target pictures except for the at least one picture, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

[0040] In a possible implementation, acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval, and the historical sequence number includes:

[0041] Decoding the target video to obtain each video frame of the target video;

[0042] Encode multiple third video frames in the respective video frames to obtain pictures in the multiple target pictures except the at least one picture, and frame numbers of the multiple third video frames are integer multiples of the target frame interval and are not included in the historical number.

[0043] In a possible implementation manner, providing the terminal with pictures other than the at least one picture among the multiple target pictures includes:

[0044] Sending pictures other than the at least one picture among the multiple target pictures to the terminal; or,

[0045] Store pictures other than the at least one picture among the multiple target pictures, obtain storage addresses of pictures other than the at least one picture among the multiple target pictures, and send the storage addresses of pictures other than the at least one picture among the multiple target pictures to the terminal.

[0046] In a possible implementation, after reading the picture acquisition record, the method further includes:

[0047] When it is determined that any of the multiple target pictures is not stored based on the picture acquisition record, the target frame interval and the target video, the multiple target pictures are acquired based on the target video and the target frame interval, and the multiple target pictures are provided to the terminal.

[0048] In a possible implementation, acquiring the multiple target pictures according to the target video and the target frame interval includes:

[0049] Decoding the target video to obtain each video frame of the target video;

[0050] A plurality of fourth video frames in the respective video frames are encoded to obtain the plurality of target pictures, wherein frame numbers of the plurality of fourth video frames are integer multiples of the target frame interval.

[0051] In a possible implementation manner, providing the terminal with the multiple target pictures includes:

[0052] sending the plurality of target images to the terminal; or,

[0053] The multiple target images are stored, storage addresses of the multiple target images are obtained, and the storage addresses of the multiple target images are sent to the terminal.

[0054] In a possible implementation, acquiring the multiple target pictures according to the target video and the target frame interval includes:

[0055] The multiple target pictures are acquired according to the target video and the target frame interval through multiple threads, and each thread is used to acquire part of the multiple target pictures.

[0056] In a second aspect, a picture acquisition device is provided, the device comprising:

[0057] A receiving module, used to receive a picture acquisition request from a terminal, wherein the picture acquisition request is used to request to acquire multiple target pictures corresponding to a target video according to a target frame interval;

[0058] A reading module, used to read a picture acquisition record, wherein the picture acquisition record includes a record of acquiring a corresponding picture according to a historical frame interval;

[0059] a determination module, configured to determine at least one picture among the plurality of target pictures that has been stored according to the picture acquisition record, the target frame interval and the target video;

[0060] A providing module is used to provide the at least one stored picture to the terminal.

[0061] In a possible implementation, the determining module is used to:

[0062] The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one picture stored in the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record; or

[0063] The picture acquisition record includes a historical serial number of a picture in the target video stored according to the historical frame interval, and at least one stored picture among the multiple target pictures is determined according to the target frame interval and the historical serial number in the picture acquisition record.

[0064] In a possible implementation, the determining module is used to:

[0065] Determining a sequence number of at least one stored picture among the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record;

[0066] According to the sequence number of at least one stored picture among the multiple target pictures, at least one stored picture among the multiple target pictures is determined from the stored pictures corresponding to the target video.

[0067] In a possible implementation, the determining module is used to:

[0068] When the target frame interval is an integer multiple of the historical frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the target frame interval, and the integer multiple is greater than or equal to 1; or,

[0069] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval; or,

[0070] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the sequence number of at least one stored picture among the multiple target pictures is determined to be a common multiple of the historical frame interval and the target frame interval.

[0071] In a possible implementation, the determining module is used to:

[0072] Determining, according to the target frame interval and the historical sequence number in the picture acquisition record, the sequence number of at least one picture that has been stored in the plurality of target pictures;

[0073] According to the sequence number of the at least one picture, the at least one picture is determined from the stored pictures corresponding to the target video.

[0074] In a possible implementation, the determining module is used to:

[0075] According to the target frame interval and the historical sequence number, using a sequence number in the historical sequence number that is an integer multiple of the target frame interval as a sequence number of at least one stored picture in the multiple target pictures; or

[0076] According to the target frame interval, the serial numbers of the multiple target pictures in the target video are determined, and the serial numbers of the multiple target pictures included in the historical serial numbers are used as the serial number of at least one picture stored in the multiple target pictures.

[0077] In a possible implementation, the providing module is used to:

[0078] sending the at least one picture to the terminal, or,

[0079] The storage address of the at least one picture is sent to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

[0080] In a possible implementation, the device further includes:

[0081] an acquisition module, configured to acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video;

[0082] The providing module is further configured to provide the terminal with pictures other than the at least one picture among the multiple target pictures.

[0083] In a possible implementation, the picture acquisition record includes acquiring a historical frame interval of a picture in the target video, and the acquisition module is used to acquire pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval and the historical frame interval; or,

[0084] The picture acquisition record includes a historical serial number of the picture in the target video stored according to the historical frame interval, and the acquisition module is used to acquire pictures other than the at least one picture among the multiple target pictures according to the target video, the target frame interval and the historical serial number.

[0085] In a possible implementation, the acquisition module is used to:

[0086] Decoding the target video to obtain each video frame of the target video;

[0087] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, encoding a first video frame among the video frames to obtain pictures other than the at least one picture among the multiple target pictures, wherein a frame sequence number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval;

[0088] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame among the video frames is encoded to obtain pictures among the multiple target pictures except for the at least one picture, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

[0089] In a possible implementation, the acquisition module is used to:

[0090] Decoding the target video to obtain each video frame of the target video;

[0091] Encode multiple third video frames in the respective video frames to obtain pictures in the multiple target pictures except the at least one picture, and frame numbers of the multiple third video frames are integer multiples of the target frame interval and are not included in the historical number.

[0092] In a possible implementation, the providing module is used to:

[0093] Sending pictures other than the at least one picture among the multiple target pictures to the terminal; or,

[0094] Store pictures other than the at least one picture among the multiple target pictures, obtain storage addresses of pictures other than the at least one picture among the multiple target pictures, and send the storage addresses of pictures other than the at least one picture among the multiple target pictures to the terminal.

[0095] In a possible implementation, the device further includes:

[0096] The determination module is further used to determine that any of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval and the target video;

[0097] An acquisition module, configured to acquire the plurality of target images according to the target video and the target frame interval;

[0098] The providing module is further used to provide the terminal with the multiple target pictures.

[0099] In a possible implementation, the acquisition module is used to:

[0100] Decoding the target video to obtain each video frame of the target video;

[0101] A plurality of fourth video frames in the respective video frames are encoded to obtain the plurality of target pictures, wherein frame numbers of the plurality of fourth video frames are integer multiples of the target frame interval.

[0102] In a possible implementation, the providing module is used to:

[0103] sending the plurality of target images to the terminal; or,

[0104] The multiple target images are stored, storage addresses of the multiple target images are obtained, and the storage addresses of the multiple target images are sent to the terminal.

[0105] In a possible implementation, the acquisition module is used to:

[0106] The multiple target pictures are acquired according to the target video and the target frame interval through multiple threads, and each thread is used to acquire part of the multiple target pictures.

[0107] In a third aspect, a picture acquisition system is provided, the system comprising a terminal and a server,

[0108] The terminal is used to send a picture acquisition request to the server, wherein the picture acquisition request is used to request to acquire multiple target pictures corresponding to the target video according to the target frame interval;

[0109] The server is used to read the picture acquisition record when receiving the picture acquisition request of the terminal, and the picture acquisition record includes a record of acquiring the corresponding picture according to the historical frame interval;

[0110] The server is further configured to provide the terminal with the at least one stored picture when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval and the target video.

[0111] In a possible implementation, the server is further configured to:

[0112] Acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video;

[0113] Provide the terminal with pictures other than the at least one picture among the multiple target pictures.

[0114] In a possible implementation, the server is further configured to:

[0115] When it is determined that any of the multiple target pictures is not stored based on the picture acquisition record, the target frame interval and the target video, the multiple target pictures are acquired based on the target video and the target frame interval, and the multiple target pictures are provided to the terminal.

[0116] In a fourth aspect, a picture acquisition system is provided, the system comprising a terminal, a control server, a storage server and a picture acquisition server,

[0117] The terminal is used to send a picture acquisition request to the control server, and the picture acquisition request is used to request to obtain multiple target pictures corresponding to the target video according to the target frame interval;

[0118] The control server is used to read the picture acquisition record when receiving the picture acquisition request of the terminal, and the picture acquisition record includes a record of acquiring the corresponding picture according to the historical frame interval;

[0119] The control server is further configured to, when it is determined that at least one of the plurality of target pictures has been stored according to the picture acquisition record, the target frame interval, and the target video, obtain a storage address of the at least one picture, and send the storage address of the at least one picture to the terminal, where the storage address of the at least one picture is a storage address of the at least one picture in the storage server;

[0120] The terminal is further configured to obtain the at least one picture from the storage server according to the storage address of the at least one picture.

[0121] In a possible implementation, the control server is further used to send a first picture acquisition request to the picture acquisition server, where the first picture acquisition request is used to request to acquire pictures other than the at least one picture among the multiple target pictures;

[0122] The picture acquisition server is further configured to, when receiving the first picture acquisition request, acquire pictures other than the at least one picture from the multiple target pictures, and send the pictures other than the at least one picture from the multiple target pictures to the storage server;

[0123] The storage server is further configured to store pictures other than the at least one picture among the multiple target pictures, obtain storage addresses of pictures other than the at least one picture among the multiple target pictures, and send the storage addresses of pictures other than the at least one picture among the multiple target pictures to the control server;

[0124] The control server is further configured to send storage addresses of pictures other than the at least one picture among the multiple target pictures to the terminal;

[0125] The terminal is also used to obtain at least one of the multiple target pictures from the storage server according to the storage address of at least one of the multiple target pictures; and to obtain pictures other than the at least one picture among the multiple target pictures from the storage server according to the storage addresses of pictures other than the at least one picture among the multiple target pictures.

[0126] In a possible implementation, the control server is further configured to, when it is determined according to the picture acquisition record, the target frame interval, and the target video that any picture of the multiple target pictures is not stored, send a second picture acquisition request to the picture acquisition server, wherein the second picture acquisition request is used to request to acquire the multiple target pictures;

[0127] The image acquisition server is further configured to, when receiving the second image acquisition request, acquire the multiple target images and send the multiple target images to the storage server;

[0128] The storage server is further used to store the multiple target images, obtain storage addresses of the multiple target images, and send the storage addresses of the multiple target images to the control server;

[0129] The control server is further configured to send the storage addresses of the plurality of target images to the terminal;

[0130] The terminal is further configured to obtain the multiple target images from the storage server according to the storage addresses of the multiple target images.

[0131] In a fifth aspect, a server is provided, comprising one or more processors and one or more memories; the one or more memories are used to store at least one instruction; the one or more processors are used to execute at least one instruction stored in the one or more memories to implement the method steps described in any implementation method of the first aspect.

[0132] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the method steps described in any implementation method of the first aspect are implemented.

[0133] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0134] By reading the picture acquisition record when receiving the picture acquisition request of the terminal, when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record and the target frame interval and the target video carried in the picture acquisition request, at least one of the multiple target pictures that has been stored is provided to the terminal. Since the picture acquisition record includes a record of acquiring corresponding pictures according to the historical frame interval, it can be determined whether at least one of the multiple target pictures requested by the terminal has been stored according to the picture acquisition record, the target video and the target frame interval. In this way, when it is determined that at least one of the multiple target pictures has been acquired, the at least one stored picture can be directly sent to the terminal without reacquiring the stored pictures in the multiple target pictures, thereby shortening the time required for the terminal to acquire pictures and improving the efficiency of picture acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0135] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0136] Figure 1 is a schematic diagram of a picture acquisition system provided in an embodiment of the present application;

[0137] Figure 2 is a flow chart of a method for obtaining an image provided by an embodiment of the present application;

[0138] Figure 3 is a flow chart of a method for obtaining an image provided by an embodiment of the present application;

[0139] Figure 4is a flow chart of a method for obtaining an image provided by an embodiment of the present application;

[0140] Figure 5 is a schematic diagram of a picture acquisition process provided in an embodiment of the present application;

[0141] Figure 6 It is a structural schematic diagram of a picture acquisition device provided in an embodiment of the present application;

[0142] Figure 7 It is a structural diagram of a server 700 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0143] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0144] Figure 1 is a schematic diagram of a picture acquisition system provided in an embodiment of the present application, such as Figure 1 As shown in (a) of FIG. 1 , the picture acquisition system may include a terminal 101 and a server 102. In this case, the server 102 is responsible for storing and acquiring pictures, and the terminal 101 may send a picture acquisition request to the server 102, and the picture acquisition request is used to request to acquire multiple target pictures corresponding to the target video according to the target frame interval.

[0145] After receiving the picture acquisition request from the terminal 101, if the server 102 determines that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval and the target video, the server 102 may provide the at least one stored picture to the terminal 101. The server 102 may also acquire pictures other than the at least one picture from the multiple target pictures and provide them to the terminal 101, so that the terminal 101 can acquire the multiple target pictures. If it is determined that any of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval and the target video, the server 102 may acquire multiple target pictures according to the target video and the target frame interval and provide the multiple target pictures to the terminal 101.

[0146] like Figure 1As shown in (b) of FIG. 1 , the picture acquisition system may include a terminal 103, a control server 104, a storage server 105, and a picture acquisition server 106. In this case, the storage server 105 is responsible for storing pictures, and the terminal 103 may send a picture acquisition request to the control server 104. After receiving the picture acquisition request, if the control server 104 determines that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval, and the target video, the storage address of the at least one picture may be sent to the terminal 103. The control server 104 may also send a picture acquisition request (picture acquisition task) to the picture acquisition server 106, and the picture acquisition server 106 acquires pictures other than the at least one picture from the multiple target pictures and stores them in the storage server 105. After obtaining the storage address, the control server 104 sends the storage address to the terminal 103. When the control server 104 determines that any of the multiple target pictures has not been acquired based on the picture acquisition record, the target frame interval and the target video, the control server 104 can send a picture acquisition request to the picture acquisition server 106, and the picture acquisition server 106 acquires the multiple target pictures and stores them in the storage server 105. After obtaining the storage address, the control server 104 sends the storage address to the terminal 103.

[0147] Figure 2 is a flow chart of a method for obtaining an image provided by an embodiment of the present application. Figure 2 , the method comprising:

[0148] 201. Receive a picture acquisition request from a terminal, where the picture acquisition request is used to request to acquire multiple target pictures corresponding to a target video according to a target frame interval.

[0149] 202. Read the picture acquisition record, where the picture acquisition record includes a record of acquiring corresponding pictures according to historical frame intervals.

[0150] 203. When it is determined that at least one picture among the multiple target pictures has been stored according to the picture acquisition record, the target frame interval, and the target video, the at least one stored picture is provided to the terminal.

[0151] The method provided by the embodiment of the present application reads the picture acquisition record when receiving the picture acquisition request of the terminal, and when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record and the target frame interval and the target video carried in the picture acquisition request, at least one of the multiple target pictures that has been stored is provided to the terminal. Since the picture acquisition record includes a record of acquiring corresponding pictures according to the historical frame interval, it can be determined whether at least one of the multiple target pictures requested by the terminal has been stored according to the picture acquisition record, the target video and the target frame interval. In this way, when it is determined that at least one of the multiple target pictures has been acquired, the at least one stored picture can be directly sent to the terminal without reacquiring the stored pictures in the multiple target pictures, thereby shortening the time required for the terminal to acquire pictures and improving the efficiency of picture acquisition.

[0152] In a possible implementation, determining, according to the picture acquisition record, the target frame interval, and the target video, that at least one picture among the plurality of target pictures has been stored includes:

[0153] The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one picture stored in the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record; or

[0154] The picture acquisition record includes a historical serial number of a picture in the target video stored according to the historical frame interval, and at least one stored picture among the multiple target pictures is determined according to the target frame interval and the historical serial number in the picture acquisition record.

[0155] In a possible implementation, determining at least one stored picture among the multiple target pictures according to the target frame interval and the historical frame interval in the picture acquisition record includes:

[0156] Determining a sequence number of at least one stored picture among the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record;

[0157] According to the sequence number of at least one stored picture among the multiple target pictures, at least one stored picture among the multiple target pictures is determined from the stored pictures corresponding to the target video.

[0158] In a possible implementation, determining the sequence number of at least one stored picture among the multiple target pictures according to the target frame interval and the historical frame interval in the picture acquisition record includes:

[0159] When the target frame interval is an integer multiple of the historical frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the target frame interval, and the integer multiple is greater than or equal to 1; or,

[0160] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval; or,

[0161] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the sequence number of at least one stored picture among the multiple target pictures is determined to be a common multiple of the historical frame interval and the target frame interval.

[0162] In a possible implementation, determining at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record includes:

[0163] Determining the sequence number of at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record;

[0164] According to the sequence number of the at least one picture, the at least one picture is determined from the stored pictures corresponding to the target video.

[0165] In a possible implementation, determining the sequence number of at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record includes:

[0166] According to the target frame interval and the historical sequence number, a sequence number in the historical sequence number that is an integer multiple of the target frame interval is used as a sequence number of at least one picture stored in the multiple target pictures; or,

[0167] According to the target frame interval, the serial numbers of the multiple target pictures in the target video are determined, and the serial numbers of the multiple target pictures included in the historical serial numbers are used as the serial number of at least one picture stored in the multiple target pictures.

[0168] In a possible implementation manner, providing the at least one stored picture to the terminal includes:

[0169] sending the at least one picture to the terminal, or,

[0170] The storage address of the at least one picture is sent to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

[0171] In a possible implementation, after providing the at least one stored picture to the terminal, the method further includes:

[0172] Acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video;

[0173] Provide the terminal with pictures other than the at least one picture among the multiple target pictures.

[0174] In a possible implementation, acquiring pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval, and the target video includes:

[0175] The picture acquisition record includes acquiring a historical frame interval of a picture in the target video, and acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval and the historical frame interval; or

[0176] The picture acquisition record includes a historical serial number of the picture in the target video stored according to the historical frame interval, and pictures other than the at least one picture in the multiple target pictures are acquired according to the target video, the target frame interval and the historical serial number.

[0177] In a possible implementation, acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval, and the historical frame interval includes:

[0178] Decoding the target video to obtain each video frame of the target video;

[0179] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, encoding a first video frame in each video frame to obtain pictures other than the at least one picture in the multiple target pictures, wherein a frame sequence number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval;

[0180] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame in each video frame is encoded to obtain pictures other than the at least one picture in the multiple target pictures, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

[0181] In a possible implementation, acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval, and the historical sequence number includes:

[0182] Decoding the target video to obtain each video frame of the target video;

[0183] A plurality of third video frames in each of the video frames are encoded to obtain pictures other than the at least one picture in the plurality of target pictures, wherein frame numbers of the plurality of third video frames are integer multiples of the target frame interval and are not included in the historical number.

[0184] In a possible implementation manner, providing the terminal with pictures other than the at least one picture among the multiple target pictures includes:

[0185] sending pictures other than the at least one picture among the multiple target pictures to the terminal; or,

[0186] The pictures other than the at least one picture in the multiple target pictures are stored, storage addresses of the pictures other than the at least one picture in the multiple target pictures are obtained, and the storage addresses of the pictures other than the at least one picture in the multiple target pictures are sent to the terminal.

[0187] In a possible implementation, after reading the picture to obtain the record, the method further includes:

[0188] When it is determined that any of the multiple target pictures is not stored based on the picture acquisition record, the target frame interval and the target video, the multiple target pictures are acquired based on the target video and the target frame interval, and the multiple target pictures are provided to the terminal.

[0189] In a possible implementation, acquiring the multiple target pictures according to the target video and the target frame interval includes:

[0190] Decoding the target video to obtain each video frame of the target video;

[0191] A plurality of fourth video frames in each of the video frames are encoded to obtain the plurality of target pictures, wherein frame numbers of the plurality of fourth video frames are integer multiples of the target frame interval.

[0192] In a possible implementation manner, providing the terminal with the multiple target pictures includes:

[0193] Sending the multiple target images to the terminal; or,

[0194] The multiple target images are stored, storage addresses of the multiple target images are obtained, and the storage addresses of the multiple target images are sent to the terminal.

[0195] In a possible implementation, acquiring the multiple target pictures according to the target video and the target frame interval includes:

[0196] The multiple target images are acquired according to the target video and the target frame interval through multiple threads, and each thread is used to acquire a part of the multiple target images.

[0197] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0198] Figure 3 is a flow chart of a method for obtaining an image provided by an embodiment of the present application. The method can be executed by a server, see Figure 3 , the method comprising:

[0199] 301. Receive a picture acquisition request from a terminal, where the picture acquisition request is used to request to acquire multiple target pictures corresponding to a target video according to a target frame interval.

[0200] Among them, the picture acquisition request can also be called a screenshot request or a picture capture request, etc. Acquiring multiple target pictures corresponding to the target video according to the target frame interval refers to acquiring multiple video frames of the target video according to the target frame interval, and converting the multiple video frames into multiple target pictures. The target frame interval refers to the target number of frames, that is, acquiring integer multiples of the target number of frames. For example, if it is every 5 frames, then an integer multiple of 5 frames are acquired, including the 5th frame, the 10th frame, the 15th frame, ..., the Xth frame, where X is an integer multiple of 5, and the integer multiple is greater than or equal to 1. In some embodiments, when acquiring multiple video frames of the target video according to the target frame interval, the first frame can also be taken. For example, when the target frame interval is every 5 frames, the multiple video frames of the target video are the 1st frame, the 5th frame, the 10th frame, the 15th frame, ..., the Xth frame. Before acquiring multiple video frames of the target video, the target video can be decoded first, and after obtaining each video frame of the target video, multiple video frames can be acquired therefrom according to the target frame interval, and the multiple video frames are converted into multiple target pictures, that is, multiple video frames are encoded into multiple target pictures. For the 5th frame, the 10th frame, the 15th frame, ..., the Xth frame, 5, 10, 15, ..., X, etc. are frame numbers, and the frame numbers are used to indicate the arrangement position of the video frame in each video frame of the video, and also indicate the time sequence.

[0201] In an embodiment of the present application, a user can browse videos stored on a server on a terminal. The user can select a target video and set a target frame interval, triggering the terminal to send an image acquisition request to the server. The image acquisition request can carry a video identifier and a target frame interval of the target video.

[0202] Before receiving the image acquisition request from the terminal, the server can receive the target video uploaded by the terminal, and when receiving the target video, the server can store the target video. After the server stores the target video, the user can browse the target video on the terminal.

[0203] 302. Read the picture acquisition record, where the picture acquisition record includes a record of acquiring corresponding pictures according to historical frame intervals.

[0204] In the embodiment of the present application, the server can maintain a record of image acquisition, which includes but is not limited to the following two recording methods:

[0205] In the first manner, the picture acquisition record includes acquiring the historical frame intervals of the pictures in the target video.

[0206] The historical frame interval may include one or more frame intervals. After each time a picture corresponding to the target video is acquired, the server may record the frame interval of the picture in the target video acquired this time in the picture acquisition record.

[0207] In some embodiments, the picture acquisition record may also include historical frame intervals for acquiring pictures in other videos. Whenever a picture corresponding to any video is acquired, the server may record the frame interval of the picture acquired in the picture acquisition record. In this case, the picture acquisition record may be indexed by the video identifier, and the corresponding historical frame interval may be queried according to the video identifier.

[0208] In the second manner, the picture acquisition record includes historical serial numbers of pictures in the target video stored according to the historical frame intervals.

[0209] The historical sequence number may include multiple sequence numbers. Each time a picture corresponding to the target video is obtained, the sequence number of the picture may be recorded in the picture acquisition record. The sequence number of the picture may also be called a frame sequence number, such as the frame sequence number of the video frame corresponding to the picture. For example, if the sequence number of the picture is 5, it means that the picture is encoded according to the 5th frame of the target video.

[0210] The server can determine whether the multiple target pictures requested by the terminal in step 301 have been stored based on the picture acquisition record, target frame interval and target video. If at least one of the multiple target pictures has been stored, subsequent steps 303 to 305 are executed; if any of the multiple target pictures has not been stored, subsequent steps 306 to 307 are executed.

[0211] 303. When it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval, and the target video, provide the at least one stored picture to the terminal.

[0212] (1) The picture acquisition record includes acquiring the historical frame intervals of the pictures in the target video.

[0213] In one possible implementation, the process of determining at least one of the multiple target pictures may include: determining at least one stored picture among the multiple target pictures based on the target frame interval and the historical frame interval in the picture acquisition record.

[0214] Specifically, the determination process may include step 1 and step 2:

[0215] Step 1: Determine the sequence number of at least one stored picture among the multiple target pictures according to the target frame interval and the historical frame interval in the picture acquisition record.

[0216] In the first case, when the target frame interval is an integer multiple of the historical frame interval, the server may determine that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the target frame interval, and the integer multiple is greater than or equal to 1.

[0217] In this case, the server can determine that all the pictures in the multiple target pictures have been stored. For example, if the target frame interval is 4 frames, the serial numbers of the multiple target pictures are 4, 8, 12...4n, etc. If the historical frame interval in the picture acquisition record is 4 frames, the serial numbers of the pictures acquired and stored according to the historical frame interval are 4, 8, 12...4n, etc. In this case, the serial number of at least one picture stored in the multiple target pictures is 4, 8, 12...4n. If the historical frame interval in the picture acquisition record is 2 frames, the serial numbers of the pictures acquired and stored according to the historical frame interval are 2, 4, 6...2n, etc. In this case, the serial number of at least one picture stored in the multiple target pictures is 4, 8, 12...4n. Where n is a positive integer.

[0218] In the second case, when the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, the server may determine that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval.

[0219] In this case, the server can determine that some of the multiple target pictures have been stored. For example, if the target frame interval is 4 frames, the serial numbers of the multiple target pictures are 4, 8, 12...4n, etc. If the historical frame interval in the picture acquisition record is 8 frames, the serial numbers of the pictures acquired and stored according to the historical frame interval are 8, 16, 24...8n, etc. In this case, the serial number of at least one picture stored in the multiple target pictures is 8, 16, 24...8n.

[0220] In the third case, when the historical frame interval and the target frame interval do not have an integer multiple relationship, the server may determine that the sequence number of at least one stored picture among the multiple target pictures is a common multiple of the historical frame interval and the target frame interval.

[0221] In this case, the server can determine that some of the multiple target pictures have been stored. For example, if the target frame interval is 4 frames, the serial numbers of the multiple target pictures are 4, 8, 12, ... 4n, etc. If the historical frame interval in the picture acquisition record is 3 frames, the serial numbers of the pictures acquired and stored according to the historical frame interval are 3, 6, 9, ... 3n, etc. In this case, the serial number of at least one picture stored in the multiple target pictures is 12, 24, 36, ... 12n.

[0222] Step 2: According to the sequence number of at least one stored picture among the multiple target pictures, determine at least one stored picture among the multiple target pictures from the stored pictures corresponding to the target video.

[0223] Before receiving the image acquisition request from the terminal, the server may have stored at least one image in the target video. For example, the server acquires and stores images based on historical frame intervals. The server can store the images of the target video according to serial numbers. In this way, the server can determine the at least one image from the stored images based on the serial number of at least one image among the multiple target images.

[0224] In some embodiments, the server may maintain a picture database, which may include multiple picture sets, each picture set corresponding to a video, and the picture database may be indexed by a video identifier, and the corresponding picture set may be queried according to the video identifier. Therefore, the server may query the picture set corresponding to the target video according to the video identifier of the target video, and the picture set stores the pictures corresponding to the target video, and each picture in the picture set has its own sequence number.

[0225] (2) The picture acquisition record includes historical serial numbers of pictures in the target video stored according to the historical frame interval.

[0226] In a possible implementation, the process of determining at least one of the multiple target pictures may include: determining at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record.

[0227] Specifically, the determination process may include step 1 and step 2:

[0228] Step 1: Determine the sequence number of at least one stored picture among the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record.

[0229] The server may use, according to the target frame interval and the historical sequence number, a sequence number in the historical sequence number that is an integer multiple of the target frame interval as the sequence number of at least one stored picture in the multiple target pictures.

[0230] For example, the target frame interval is 3 frames, and the historical sequence numbers are 2, 4, 6, 8, 10, 12, etc., then the sequence number of at least one picture stored in the multiple target pictures is 6, 12, etc.

[0231] The server may also determine the sequence numbers of the multiple target pictures in the target video according to the target frame interval, and use the sequence numbers of the multiple target pictures included in the historical sequence numbers as the sequence number of at least one picture stored in the multiple target pictures.

[0232] The sequence numbers of the multiple target pictures are integer multiples of the target frame interval. For example, if the target frame interval is 4 frames, the sequence numbers of the multiple target pictures are 4, 8, 12, ... 4n. If the historical sequence numbers are 2, 4, 6, 8, 10, 12, ..., etc., then the sequence number of at least one picture stored in the multiple target pictures is 4, 8, 12, ..., etc.

[0233] Step 2: According to the sequence number of the at least one picture, determine the at least one picture from the stored pictures corresponding to the target video.

[0234] This step 2 is the same as the above step 2 and will not be described again.

[0235] Regarding the way in which the server provides at least one of the multiple target pictures to the terminal, the server can send the at least one picture to the terminal, or send the storage address of the at least one picture to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

[0236] The server can obtain the at least one picture from the pictures corresponding to the target video stored according to the sequence number of at least one picture among the multiple target pictures, and send the at least one picture to the terminal. The server can also obtain the storage address of the at least one picture from the storage address of the pictures corresponding to the target video stored according to the sequence number of at least one picture among the multiple target pictures, and send the storage address of the at least one picture to the terminal. After receiving the storage addresses of the multiple target pictures, the terminal can obtain the multiple target pictures. For example, the terminal can request the multiple target pictures from the server storing the multiple target pictures according to the storage addresses of the multiple target pictures. After obtaining the multiple target pictures, the terminal can use the multiple target pictures for algorithm training, or use the multiple target pictures for other purposes.

[0237] In some embodiments, the server can maintain a picture storage address record, which can include multiple storage address sets. The picture storage address record can be indexed by a video identifier, and the corresponding storage address set can be queried based on the video identifier. Therefore, the server can query the storage address set corresponding to the target video based on the video identifier of the target video, and the storage address set stores the storage addresses of each picture corresponding to the target video.

[0238] It should be noted that if the at least one stored picture is all the pictures among the multiple target pictures, the server can provide the multiple target pictures to the terminal; if the at least one stored picture is part of the multiple target pictures, the server can provide the remaining pictures to the terminal through subsequent steps 304 and 305, that is, pictures among the multiple target pictures except the at least one stored picture.

[0239] 304. Acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval, and the target video.

[0240] (1) The picture acquisition record includes acquiring the historical frame intervals of the pictures in the target video.

[0241] In one possible implementation, the process of acquiring pictures other than the at least one picture among the multiple target pictures includes: acquiring pictures other than the at least one picture among the multiple target pictures according to the target video, the target frame interval and the historical frame interval.

[0242] Specifically, the server may decode the target video to obtain each video frame of the target video. Then, the server may encode multiple video frames in each video according to the multiple relationship between the target frame interval and the historical frame interval to obtain pictures other than the at least one picture in the multiple target pictures.

[0243] In the first case, when the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, the first video frame in each video frame is encoded to obtain pictures among the multiple target pictures except for the at least one picture, and the frame number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval.

[0244] In this case, the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval, and the at least one picture is obtained by encoding a video frame in the target video whose frame sequence number is an integer multiple of the historical frame interval. Therefore, the server can encode the first video frame according to the first video frame in the target video whose frame sequence number is an integer multiple of the target frame interval and not an integer multiple of the historical frame interval, and obtain a picture whose sequence number is an integer multiple of the target frame interval and not an integer multiple of the historical frame interval as a picture other than the at least one stored picture among the multiple target pictures.

[0245] For example, the frames of the target video are frame 1, frame 2, frame 3, ... etc., if the historical frame interval is 4 frames, the target frame interval is 2 frames, and the serial number of at least one stored picture in the multiple target pictures is 4, 8, 12, ... etc., the server can obtain the 2nd frame, the 6th frame, the 10th frame, ... etc. from the frames of the target video as the first video frame, and the server can encode the first video frame to obtain multiple pictures with serial numbers 2, 6, 10, ... etc. as the pictures in the multiple target pictures except the at least one stored picture.

[0246] In the second case, when the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame in each video frame is encoded to obtain pictures other than the at least one picture in the multiple target pictures, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

[0247] In this case, the sequence number of at least one picture stored in the multiple target pictures is a common multiple of the historical frame interval and the target frame interval, and the at least one picture is encoded based on a video frame in the target video whose frame sequence number is a common multiple of the historical frame interval and the target frame interval. Therefore, the server can encode the second video frame based on the second video frame in the target video whose frame sequence number is not a common multiple of the historical frame interval and the target frame interval, to obtain a picture whose sequence number is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval, as a picture other than the at least one picture stored in the multiple target pictures.

[0248] For example, the historical frame interval is 3 frames, the target frame interval is 4 frames, and the serial number of at least one stored picture in the multiple target pictures is 3, 6, 9, etc. The server can obtain multiple frames such as the 4th frame, the 8th frame, the 16th frame, etc. from each frame of the target video as the second video frame. The server can encode the second video frame to obtain multiple pictures with serial numbers of 4, 8, 16, etc. as the pictures other than the at least one stored picture in the multiple target pictures.

[0249] After acquiring pictures other than the at least one picture among the multiple target pictures, the server may store the acquired pictures. For example, the historical frame interval is n frames, the target frame interval is m, and pictures with serial numbers that are integer multiples of n have been stored on the server. If m is a multiple of n, no modification is required, and pictures with serial numbers that are integer multiples of m have been stored; if n is a multiple of m, only pictures with serial numbers that are integer multiples of m and not integer multiples of n need to be supplemented and stored; if m and n are not multiples, only pictures with serial numbers that are integer multiples of m and not integer multiples of n*m need to be supplemented and stored. For example, if n is 10, pictures with integer multiples of sequence number 10 have been stored, that is, pictures with sequence numbers 10, 20, 30, ..., 100, 110, 120... have been stored. If m is 20, that is, pictures with integer multiples of sequence number 20 need to be stored, no change is required, and pictures with sequence numbers 20, 40, 60... have been stored; if m is 5, that is, pictures with integer multiples of sequence number 5 need to be stored, then only pictures with sequence numbers 5, 15, 25... need to be supplemented and stored, and pictures with sequence numbers 10, 20... have been stored; if m is 7, that is, pictures with integer multiples of sequence number 7 need to be stored, and pictures with sequence numbers 70, 140... have been stored, then only pictures with sequence numbers that are integer multiples of 7 but not integer multiples of 70 need to be supplemented.

[0250] (2) The picture acquisition record includes historical serial numbers of pictures in the target video stored according to the historical frame interval.

[0251] In one possible implementation, the process of acquiring pictures other than the at least one picture among the multiple target pictures includes: acquiring pictures other than the at least one picture among the multiple target pictures according to the target video, the target frame interval and the historical sequence number.

[0252] Specifically, the server can decode the target video to obtain each video frame of the target video, encode multiple third video frames in each video frame, and obtain pictures among the multiple target pictures except the at least one picture, and the frame numbers of the multiple third video frames are integer multiples of the target frame interval and are not included in the historical sequence number.

[0253] For example, the target frame interval is 3 frames, the historical sequence numbers are 2, 4, 6, 8, 10 and 12, and the sequence number of at least one stored picture in the multiple target pictures is 6, 12, etc. The server can obtain the 3rd frame, the 9th frame, the 15th frame, etc. from each frame of the target video as the third video frame. The server can encode the third video frame to obtain multiple pictures with sequence numbers of 3, 9, 15, etc. as the pictures in the multiple target pictures except the at least one stored picture.

[0254] The server can maintain the association between the video and the picture. After obtaining pictures other than the at least one picture from multiple target pictures according to the target frame interval, the server can add the pictures other than the at least one picture from the multiple target pictures to the pictures associated with the target video.

[0255] 305. Provide the terminal with pictures other than the at least one picture among the multiple target pictures.

[0256] In an embodiment of the present application, the server may send pictures other than the at least one picture in the multiple target pictures to the terminal. The server may also store pictures other than the at least one picture in the multiple target pictures, obtain storage addresses of pictures other than the at least one picture in the multiple target pictures, and send storage addresses of pictures other than the at least one picture in the multiple target pictures to the terminal.

[0257] The server may store the pictures other than the at least one picture among the multiple target pictures locally, or may store the pictures on another server, and receive the storage addresses of the pictures other than the at least one picture among the multiple target pictures sent by another server.

[0258] Steps 303 to 305 are the case where the server has stored at least one of the multiple target images requested by the terminal in step 301. If the server does not store any of the multiple target images, the server may not execute steps 303 to 305, but execute step 306.

[0259] It should be noted that the embodiment of the present application is explained by taking the example that the server first provides the terminal with at least one stored picture among multiple target pictures, and then obtains pictures other than the at least one picture among the multiple target pictures, and then provides the terminal with pictures other than the at least one picture among the multiple target pictures. It can be understood that the server may not first provide the terminal with at least one stored picture, but after obtaining pictures other than the at least one picture among the multiple target pictures, it provides the terminal with the multiple target pictures at the same time.

[0260] 306. When it is determined that any of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval, and the target video, the multiple target pictures are acquired according to the target video and the target frame interval.

[0261] In an embodiment of the present application, if the picture acquisition record does not include the historical frame interval for acquiring the picture in the target video, nor does it include the historical sequence number of the picture in the target video, the server can determine that the picture corresponding to the target video has not been acquired according to any frame interval before.

[0262] In one possible implementation, the multiple target pictures are obtained based on the target video and the target frame interval, including: decoding the target video to obtain each video frame of the target video; encoding multiple fourth video frames in each video frame to obtain the multiple target pictures, and the frame numbers of the multiple fourth video frames are integer multiples of the target frame interval.

[0263] For example, the frames of the target video are frame 1, frame 2, frame 3, ... etc. If the target frame interval is every 2 frames, the server can obtain frame 2, frame 4, frame 6 ... and other frames from the frames of the target video as the fourth video frame. The server can encode the fourth video frame to obtain multiple pictures with serial numbers 2, 4, 6 ... etc. as multiple target pictures.

[0264] In one possible implementation, the multiple target images are obtained according to the target video and the target frame interval, including: obtaining the multiple target images according to the target video and the target frame interval through multiple threads, each thread being used to obtain some images among the multiple target images.

[0265] According to the hardware configuration of the server, multi-core synchronous acquisition can be enabled. If the hardware configuration has four cores, four threads can be enabled to synchronously acquire images. For example, there are 1,000 target images in total, which need to be encoded from 1,000 frames in the video. Each thread is responsible for 250 frames. For example, the first thread is responsible for encoding frames 1-250 to obtain the corresponding 250 images, the second thread is responsible for encoding frames 251-500 to obtain the corresponding 250 images, the third thread is responsible for encoding frames 501-750 to obtain the corresponding 250 images, and the fourth thread is responsible for encoding frames 751-1000 to obtain the corresponding 250 images. By enabling multiple threads to synchronously acquire images, the time required to acquire images can be greatly reduced, and the efficiency of image acquisition can be improved.

[0266] The server can maintain the association relationship between the video and the picture. After obtaining the multiple target pictures corresponding to the target video according to the target frame interval, the server can add the multiple target pictures and the target video to the association relationship between the video and the picture.

[0267] 307. Provide the multiple target pictures to the terminal.

[0268] In an embodiment of the present application, the server may send the multiple target images to the terminal. The server may also store the multiple target images, obtain storage addresses of the multiple target images, and send the storage addresses of the multiple target images to the terminal.

[0269] The server may store the multiple target images locally or in another server, and receive the storage addresses of the multiple target images sent by another server. If the multiple target images are stored locally, the storage addresses of the multiple target images are the storage addresses of the multiple target images in the server; if the multiple target images are stored in another server, the storage addresses of the multiple target images are the storage addresses of the multiple target images in the other server.

[0270] Compared with the related art, when it is necessary to obtain pictures for algorithm training, each time after selecting a video, the server needs to re-acquire the corresponding pictures each time, which wastes hardware resources and the terminal is slow to obtain the required pictures, affecting the training time. This application manages the acquired pictures. When it is determined that the pictures required by the terminal have been acquired based on the picture acquisition records, the acquired pictures can be directly provided to the terminal without re-processing the video to obtain the corresponding pictures, reducing hardware resource consumption and the overall training time, and improving the efficiency of the terminal in obtaining the required pictures.

[0271] Compared with the related art, which obtains and stores the corresponding image based on each frame of the video, a large amount of storage space is wasted. In addition, since algorithm training generally requires images corresponding to frames at a certain interval, the image utilization rate (or multiplexing rate) is low. This application obtains and stores the corresponding images according to the frame interval requested by the terminal, which can save storage space and improve image utilization.

[0272] The method provided by the embodiment of the present application reads the picture acquisition record when receiving the picture acquisition request of the terminal, and when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record and the target frame interval and the target video carried in the picture acquisition request, at least one of the multiple target pictures that has been stored is provided to the terminal. Since the picture acquisition record includes a record of acquiring corresponding pictures according to the historical frame interval, it can be determined whether at least one of the multiple target pictures requested by the terminal has been stored according to the picture acquisition record, the target video and the target frame interval. In this way, when it is determined that at least one of the multiple target pictures has been acquired, the at least one stored picture can be directly sent to the terminal without reacquiring the stored pictures in the multiple target pictures, thereby shortening the time required for the terminal to acquire pictures and improving the efficiency of picture acquisition.

[0273] Above Figure 3 The corresponding embodiment is described by taking the picture acquisition method executed by a server as an example. The picture acquisition method can also be implemented based on the interaction between multiple servers and terminals. Figure 4The corresponding embodiments are described. The multiple servers may include a control server, a storage server and a picture acquisition server, wherein the storage server is responsible for storing videos and pictures; the control server is responsible for receiving the picture acquisition request of the terminal and sending the storage address of the picture to the terminal. The control server is also responsible for sending the picture acquisition request (picture acquisition task) to the picture acquisition server, and the picture acquisition server is responsible for acquiring the picture corresponding to the video according to the frame interval, and sending the picture to the storage server for storage. After storing the picture, the storage server directly sends the storage address of the picture to the control server, or sends it to the control server via the picture acquisition server.

[0274] Figure 4 is a flow chart of a method for obtaining an image provided by an embodiment of the present application. Figure 4 , the method comprising:

[0275] 401. The terminal sends a picture acquisition request to the control server, where the picture acquisition request is used to request to acquire multiple target pictures corresponding to a target video according to a target frame interval.

[0276] The triggering process of the image acquisition request is the same as step 301 and will not be repeated here.

[0277] In some embodiments, before step 401, the image acquisition method may further include the following steps a to d:

[0278] Step a: When receiving the target video, the control server sends the target video to the storage server.

[0279] The target video may be sent by the terminal to the control server.

[0280] Step b: When receiving the target video, the storage server stores the target video and obtains the storage address of the target video.

[0281] The storage address of the target video refers to the storage address of the target video in the storage server.

[0282] Step c: The storage server sends the storage address of the target video to the control server.

[0283] Step d: When receiving the storage address of the target video, the server records the storage address of the target video.

[0284] 402. When receiving the image acquisition request, the control server reads the image acquisition record, where the image acquisition record includes a record of acquiring corresponding images according to historical frame intervals.

[0285] Controlling the server to read the image acquisition record is similar to step 302 and will not be repeated here.

[0286] The control server can determine whether multiple target pictures requested by the terminal in step 401 have been acquired and stored based on the picture acquisition record, target frame interval and target video. If at least one of the multiple target pictures has been stored, each device interacts to execute subsequent steps 403 to 412 (the first case). If any of the multiple target pictures has not been acquired, each device interacts to execute subsequent steps 413 to 419 (the second case).

[0287] See also Figure 5 , provides a schematic diagram of the image acquisition process, such as Figure 5 As shown, when the control server receives the picture acquisition request (picture acquisition task or screenshot task) from the terminal, if it is determined that at least one of the multiple target pictures required by the terminal has been acquired and stored, and the at least one picture is all of the multiple target pictures, the server can acquire all the pictures from the storage server and send its storage address to the terminal. If the at least one picture is part of the multiple target pictures, the server can acquire part of the multiple target pictures from the storage server and send its storage address to the terminal, and the remaining pictures are acquired by the picture acquisition server. If it is determined that any of the multiple target pictures requested by the terminal has not been acquired, the picture acquisition server can acquire all the pictures required by the terminal.

[0288] 403. When it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval, and the target video, the control server acquires a storage address of at least one of the multiple target pictures.

[0289] The storage address of at least one picture among the multiple target pictures is the storage address of the at least one picture in the storage server.

[0290] If the control server determines that at least one of the multiple target images has been acquired, it can be determined that the at least one image is stored on the storage server, and it can also be determined that the storage address of the at least one image is recorded on the control server.

[0291] The method of determining whether at least one of the multiple target images has been obtained in step 403 is the same as the method of determining whether at least one of the multiple target images has been obtained in step 303. The method of obtaining the storage address of the at least one image in step 403 is the same as the method of obtaining the storage address in step 303, and will not be repeated here.

[0292] 404. The control server sends a storage address of at least one picture among the multiple target pictures to the terminal, and the storage address of the at least one picture is used by the terminal to obtain the at least one picture.

[0293] 405. The terminal obtains at least one of the multiple target pictures from a storage server according to a storage address of at least one of the multiple target pictures.

[0294] The terminal can send a picture acquisition request to the storage server based on the storage address of the at least one picture. The picture acquisition request can carry the storage address of the at least one picture. After receiving the picture acquisition request, the storage server can obtain the at least one stored picture based on the storage address of the at least one picture and send the at least one picture to the terminal.

[0295] 406. The control server sends a first image acquisition request to the image acquisition server, where the first image acquisition request is used to acquire images other than the at least one image from the multiple target images.

[0296] 407. When receiving the first image acquisition request, the image acquisition server acquires images other than the at least one image from the multiple target images.

[0297] The process of the picture acquisition server acquiring pictures other than the at least one picture from the multiple target pictures is the same as step 304 and will not be described in detail.

[0298] 408. The image acquisition server sends the images other than the at least one image among the multiple target images to the storage server.

[0299] 409. When receiving pictures other than the at least one picture among the multiple target pictures, the storage server stores the pictures other than the at least one picture among the multiple target pictures, and obtains storage addresses of the pictures other than the at least one picture among the multiple target pictures.

[0300] 410. The storage server sends storage addresses of pictures other than the at least one picture among the multiple target pictures to the control server.

[0301] For pictures other than the at least one picture among the multiple target pictures, the storage server may directly send the storage address thereof to the control server, for example, the storage server may send the storage address of the picture to the control server each time it stores a picture. It may also be sent to the control server via the picture acquisition server, for example, the storage server may send the storage address of the picture to the picture acquisition server each time it stores a picture, and after the storage is completed, the picture acquisition server sends the storage addresses of the pictures other than the at least one picture among the multiple target pictures to the control server at one time.

[0302] 411. When receiving the storage address of a picture other than the at least one picture among the multiple target pictures, the control server sends the storage address of the picture other than the at least one picture among the multiple target pictures to the terminal.

[0303] When the control server receives the storage address of a picture other than the at least one picture among the multiple target pictures, it can also record the storage address of the picture other than the at least one picture among the multiple target pictures, such as the control server can add the storage address of the picture to the picture storage address record.

[0304] 412. The terminal obtains pictures other than the at least one picture among the multiple target pictures from a storage server according to storage addresses of the pictures other than the at least one picture among the multiple target pictures.

[0305] Step 412 is the same as step 405 and will not be described in detail.

[0306] 413. When it is determined that any of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval and the target video, the control server sends a second picture acquisition request to the picture acquisition server, and the first picture acquisition request is used to acquire the multiple target pictures.

[0307] The method of determining that multiple target images are not stored in step 413 is the same as the method of determining that multiple target images are not stored in step 306, and will not be repeated here.

[0308] 414. When receiving the second image acquisition request, the image acquisition server acquires the multiple target images.

[0309] The method of determining to obtain multiple target images in step 414 is the same as the method of obtaining multiple target images in step 306, and will not be repeated here.

[0310] 415. The image acquisition server sends the multiple target images to the storage server.

[0311] 416. When receiving the multiple target images, the storage server stores the multiple target images and obtains storage addresses of the multiple target images.

[0312] The storage addresses of the multiple target images refer to the storage addresses of the multiple target images in the storage server.

[0313] 417. The storage server sends the storage addresses of the multiple target images to the control server.

[0314] 418. When receiving the storage addresses of the multiple target images, the control server sends the storage addresses of the multiple target images to the terminal, and the storage addresses of the multiple target images are used by the terminal to obtain the multiple target images.

[0315] When receiving the storage addresses of the multiple target images, the control server may also record the storage addresses of the multiple target images, such as adding the storage addresses of the multiple target images to the image storage address record.

[0316] 419. The terminal obtains the multiple target images from the storage server according to the storage addresses of the multiple target images.

[0317] The step 419 is the same as the step 405 and will not be described in detail.

[0318] The method provided by the embodiment of the present application reads the picture acquisition record when receiving the picture acquisition request of the terminal, and when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record and the target frame interval and the target video carried in the picture acquisition request, at least one of the multiple target pictures that has been stored is provided to the terminal. Since the picture acquisition record includes a record of acquiring corresponding pictures according to the historical frame interval, it can be determined whether at least one of the multiple target pictures requested by the terminal has been stored according to the picture acquisition record, the target video and the target frame interval. In this way, when it is determined that at least one of the multiple target pictures has been acquired, the at least one stored picture can be directly sent to the terminal without reacquiring the stored pictures in the multiple target pictures, thereby shortening the time required for the terminal to acquire pictures and improving the efficiency of picture acquisition.

[0319] Figure 6 is a structural diagram of a picture acquisition device provided in an embodiment of the present application. Figure 6 , the device comprises:

[0320] A receiving module 601 is used to receive a picture acquisition request from a terminal, where the picture acquisition request is used to request to acquire multiple target pictures corresponding to a target video according to a target frame interval;

[0321] A reading module 602 is used to read a picture acquisition record, where the picture acquisition record includes a record of acquiring a corresponding picture according to a historical frame interval;

[0322] A determination module 603 is used to determine that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval and the target video;

[0323] The providing module 604 is configured to provide the at least one stored picture to the terminal.

[0324] In a possible implementation, the determining module 603 is used to:

[0325] The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one picture stored in the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record; or

[0326] The picture acquisition record includes a historical serial number of a picture in the target video stored according to the historical frame interval, and at least one stored picture among the multiple target pictures is determined according to the target frame interval and the historical serial number in the picture acquisition record.

[0327] In a possible implementation, the determining module 603 is used to:

[0328] Determining a sequence number of at least one stored picture among the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record;

[0329] According to the sequence number of at least one stored picture among the multiple target pictures, at least one stored picture among the multiple target pictures is determined from the stored pictures corresponding to the target video.

[0330] In a possible implementation, the determining module 603 is used to:

[0331] When the target frame interval is an integer multiple of the historical frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the target frame interval, and the integer multiple is greater than or equal to 1; or,

[0332] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval; or,

[0333] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the sequence number of at least one stored picture among the multiple target pictures is determined to be a common multiple of the historical frame interval and the target frame interval.

[0334] In a possible implementation, the determining module 603 is used to:

[0335] Determining, according to the target frame interval and the historical sequence number in the picture acquisition record, the sequence number of at least one picture that has been stored in the plurality of target pictures;

[0336] According to the sequence number of the at least one picture, the at least one picture is determined from the stored pictures corresponding to the target video.

[0337] In a possible implementation, the determining module 603 is used to:

[0338] According to the target frame interval and the historical sequence number, a sequence number in the historical sequence number that is an integer multiple of the target frame interval is used as a sequence number of at least one picture stored in the multiple target pictures; or,

[0339] According to the target frame interval, the serial numbers of the multiple target pictures in the target video are determined, and the serial numbers of the multiple target pictures included in the historical serial numbers are used as the serial number of at least one picture stored in the multiple target pictures.

[0340] In a possible implementation, the providing module 604 is used to:

[0341] sending the at least one picture to the terminal, or,

[0342] The storage address of the at least one picture is sent to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

[0343] In a possible implementation, the device further includes:

[0344] An acquisition module, configured to acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video;

[0345] The providing module 604 is further configured to provide the terminal with pictures other than the at least one picture among the multiple target pictures.

[0346] In a possible implementation, the picture acquisition record includes acquiring a historical frame interval of a picture in the target video, and the acquisition module 605 is used to acquire pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval and the historical frame interval; or,

[0347] The picture acquisition record includes a historical serial number of the picture in the target video stored according to the historical frame interval, and the acquisition module is used to acquire pictures other than the at least one picture among the multiple target pictures according to the target video, the target frame interval and the historical serial number.

[0348] In a possible implementation, the acquisition module is used to:

[0349] Decoding the target video to obtain each video frame of the target video;

[0350] When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, encoding a first video frame in each video frame to obtain pictures other than the at least one picture in the multiple target pictures, wherein a frame sequence number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval;

[0351] When the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame in each video frame is encoded to obtain pictures other than the at least one picture in the multiple target pictures, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

[0352] In a possible implementation, the acquisition module is used to:

[0353] Decoding the target video to obtain each video frame of the target video;

[0354] A plurality of third video frames in each of the video frames are encoded to obtain pictures other than the at least one picture in the plurality of target pictures, wherein frame numbers of the plurality of third video frames are integer multiples of the target frame interval and are not included in the historical number.

[0355] In a possible implementation, the providing module 604 is used to:

[0356] sending pictures other than the at least one picture among the multiple target pictures to the terminal; or,

[0357] The pictures other than the at least one picture in the multiple target pictures are stored, storage addresses of the pictures other than the at least one picture in the multiple target pictures are obtained, and the storage addresses of the pictures other than the at least one picture in the multiple target pictures are sent to the terminal.

[0358] In a possible implementation, the device further includes:

[0359] The determination module 603 is further configured to determine that any of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval, and the target video;

[0360] An acquisition module, used for acquiring the multiple target images according to the target video and the target frame interval;

[0361] The providing module 604 is further configured to provide the terminal with the multiple target images.

[0362] In a possible implementation, the acquisition module is used to:

[0363] Decoding the target video to obtain each video frame of the target video;

[0364] A plurality of fourth video frames in each of the video frames are encoded to obtain the plurality of target pictures, wherein frame numbers of the plurality of fourth video frames are integer multiples of the target frame interval.

[0365] In a possible implementation, the providing module 604 is used to:

[0366] Sending the multiple target images to the terminal; or,

[0367] The multiple target images are stored, storage addresses of the multiple target images are obtained, and the storage addresses of the multiple target images are sent to the terminal.

[0368] In a possible implementation, the acquisition module is used to:

[0369] The multiple target images are acquired according to the target video and the target frame interval through multiple threads, and each thread is used to acquire a part of the multiple target images.

[0370] In the embodiment of the present application, when receiving the picture acquisition request of the terminal, the picture acquisition record is read, and when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record and the target frame interval and the target video carried in the picture acquisition request, at least one of the multiple target pictures that has been stored is provided to the terminal. Since the picture acquisition record includes a record of acquiring corresponding pictures according to the historical frame interval, it can be determined whether at least one of the multiple target pictures requested by the terminal has been stored according to the picture acquisition record, the target video and the target frame interval. In this way, when it is determined that at least one of the multiple target pictures has been acquired, at least one stored picture can be directly sent to the terminal without reacquiring the stored pictures in the multiple target pictures, thereby shortening the time required for the terminal to acquire pictures and improving the efficiency of picture acquisition.

[0371] It should be noted that: the image acquisition device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when acquiring images. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the image acquisition device provided in the above embodiment and the image acquisition method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0372] Figure 7 This is a schematic diagram of the structure of a server 700 provided in an embodiment of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, wherein the memory 702 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 701 to implement the image acquisition method provided in the above-mentioned various method embodiments. Of course, the server 700 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 700 may also include other components for implementing device functions, which will not be described in detail here.

[0373] In an exemplary embodiment, a computer-readable storage medium storing at least one instruction is also provided, such as a memory storing at least one instruction, and the at least one instruction is executed by a processor to implement the image acquisition method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0374] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program. The above program may be stored in a computer-readable storage medium. The above storage medium may be a read-only memory, a disk or an optical disk, etc.

[0375] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for obtaining a picture, characterized in that: The method comprises: A picture acquisition request is received from a terminal, where the picture acquisition request is used to request to acquire a plurality of target pictures corresponding to a target video according to a target frame interval; Reading a picture acquisition record, wherein the picture acquisition record includes a record of acquiring corresponding pictures according to a historical frame interval; When it is determined that at least one of the plurality of target pictures has been stored according to the picture acquisition record, the target frame interval and the target video, providing the at least one stored picture to the terminal; The step of determining, based on the picture acquisition record, the target frame interval, and the target video, that at least one of the plurality of target pictures has been stored includes: The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one picture that has been stored in the multiple target pictures based on the target frame interval and the historical frame interval in the picture acquisition record; or, the picture acquisition record includes a historical serial number of pictures in the target video stored according to the historical frame interval, and determining at least one picture that has been stored in the multiple target pictures based on the target frame interval and the historical serial number in the picture acquisition record.

2. The method according to claim 1, characterized in that The step of determining at least one stored picture among the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record comprises: Determining a sequence number of at least one stored picture among the plurality of target pictures according to the target frame interval and the historical frame interval in the picture acquisition record; According to the sequence number of at least one stored picture among the multiple target pictures, at least one stored picture among the multiple target pictures is determined from the stored pictures corresponding to the target video.

3. The method according to claim 2, characterized in that The determining, according to the target frame interval and the historical frame interval in the picture acquisition record, the sequence number of at least one picture stored in the plurality of target pictures comprises: When the target frame interval is an integer multiple of the historical frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the target frame interval, and the integer multiple is greater than or equal to 1; When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, determining that the sequence number of at least one stored picture among the multiple target pictures is an integer multiple of the historical frame interval; When the historical frame interval and the target frame interval do not have an integer multiple relationship, the sequence number of at least one stored picture among the multiple target pictures is determined to be a common multiple of the historical frame interval and the target frame interval.

4. The method according to claim 1, characterized in that The step of determining at least one stored picture among the plurality of target pictures according to the target frame interval and the historical sequence number in the picture acquisition record comprises: Determining, according to the target frame interval and the historical sequence number in the picture acquisition record, the sequence number of at least one picture that has been stored in the plurality of target pictures; According to the sequence number of the at least one picture, the at least one picture is determined from the stored pictures corresponding to the target video.

5. The method according to claim 4, characterized in that The determining, according to the target frame interval and the historical sequence number in the picture acquisition record, the sequence number of at least one picture stored in the plurality of target pictures comprises: According to the target frame interval and the historical sequence number, using a sequence number in the historical sequence number that is an integer multiple of the target frame interval as a sequence number of at least one stored picture in the multiple target pictures; or According to the target frame interval, the serial numbers of the multiple target pictures in the target video are determined, and the serial numbers of the multiple target pictures included in the historical serial numbers are used as the serial number of at least one picture stored in the multiple target pictures.

6. The method according to any one of claims 1 to 5, characterized in that: The providing the at least one stored picture to the terminal includes: sending the at least one picture to the terminal; or, The storage address of the at least one picture is sent to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

7. The method according to claim 1, characterized in that After providing the at least one stored picture to the terminal, the method further includes: Acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video; Provide the terminal with pictures other than the at least one picture among the multiple target pictures.

8. The method according to claim 7, characterized in that The acquiring, according to the picture acquisition record, the target frame interval, and the target video, pictures other than the at least one picture from the multiple target pictures comprises: The picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and acquiring pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval and the historical frame interval; or The picture acquisition record includes a historical serial number of the picture in the target video stored according to the historical frame interval, and acquires pictures other than the at least one picture in the multiple target pictures according to the target video, the target frame interval and the historical serial number.

9. The method according to claim 8, characterized in that The acquiring, according to the target video, the target frame interval, and the historical frame interval, pictures other than the at least one picture from the multiple target pictures comprises: Decoding the target video to obtain each video frame of the target video; When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, encoding a first video frame among the video frames to obtain pictures other than the at least one picture among the multiple target pictures, wherein a frame sequence number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval; When the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame among the video frames is encoded to obtain pictures among the multiple target pictures except for the at least one picture, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

10. The method according to claim 8, characterized in that The acquiring, according to the target video, the target frame interval, and the historical sequence number, pictures other than the at least one picture from the multiple target pictures comprises: Decoding the target video to obtain each video frame of the target video; Encode multiple third video frames in the respective video frames to obtain pictures in the multiple target pictures except the at least one picture, and frame numbers of the multiple third video frames are integer multiples of the target frame interval and are not included in the historical number.

11. The method according to claim 7, characterized in that The providing the terminal with pictures other than the at least one picture among the multiple target pictures includes: Sending pictures other than the at least one picture among the multiple target pictures to the terminal; or, Store pictures other than the at least one picture among the multiple target pictures, obtain storage addresses of pictures other than the at least one picture among the multiple target pictures, and send the storage addresses of pictures other than the at least one picture among the multiple target pictures to the terminal.

12. The method according to claim 1, characterized in that After reading the picture to obtain the record, the method further includes: When it is determined that any of the multiple target pictures is not stored based on the picture acquisition record, the target frame interval and the target video, the multiple target pictures are acquired based on the target video and the target frame interval, and the multiple target pictures are provided to the terminal.

13. The method according to claim 12, characterized in that The acquiring the plurality of target pictures according to the target video and the target frame interval comprises: Decoding the target video to obtain each video frame of the target video; A plurality of fourth video frames in the respective video frames are encoded to obtain the plurality of target pictures, wherein frame numbers of the plurality of fourth video frames are integer multiples of the target frame interval.

14. The method according to claim 12, characterized in that The providing the terminal with the plurality of target pictures comprises: sending the plurality of target images to the terminal; or, The multiple target images are stored, storage addresses of the multiple target images are obtained, and the storage addresses of the multiple target images are sent to the terminal.

15. The method according to claim 12, characterized in that The acquiring the plurality of target pictures according to the target video and the target frame interval comprises: The multiple target pictures are acquired according to the target video and the target frame interval through multiple threads, and each thread is used to acquire part of the multiple target pictures.

16. A picture acquisition device, characterized in that: The device comprises: A receiving module, used for receiving a picture acquisition request from a terminal, wherein the picture acquisition request is used for requesting to acquire a plurality of target pictures corresponding to a target video according to a target frame interval; A reading module, used to read a picture acquisition record, wherein the picture acquisition record includes a record of acquiring a corresponding picture according to a historical frame interval; A determination module, for the picture acquisition record including acquiring a historical frame interval of pictures in the target video, and determining at least one picture that has been stored in the multiple target pictures according to the target frame interval and the historical frame interval in the picture acquisition record; or, the picture acquisition record including a historical sequence number of pictures in the target video stored according to the historical frame interval, and determining at least one picture that has been stored in the multiple target pictures according to the target frame interval and the historical sequence number in the picture acquisition record; A providing module is used to provide the at least one stored picture to the terminal.

17. The device according to claim 16, characterized in that The providing module is used for: sending the at least one picture to the terminal; or, The storage address of the at least one picture is sent to the terminal, and the storage address of the at least one picture is used for the terminal to obtain the at least one picture.

18. The device according to claim 16, characterized in that The device also includes: an acquisition module, configured to acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video; The providing module is further configured to provide the terminal with pictures other than the at least one picture among the multiple target pictures.

19. The device according to claim 18, characterized in that The picture acquisition record includes acquiring a historical frame interval of a picture in the target video, and the acquisition module is used to acquire pictures other than the at least one picture from the multiple target pictures according to the target video, the target frame interval and the historical frame interval; or The picture acquisition record includes a historical serial number of the picture in the target video stored according to the historical frame interval, and the acquisition module is used to acquire pictures other than the at least one picture among the multiple target pictures according to the target video, the target frame interval and the historical serial number.

20. The device according to claim 19, characterized in that The acquisition module is used for: Decoding the target video to obtain each video frame of the target video; When the historical frame interval is greater than the target frame interval and is an integer multiple of the target frame interval, encoding a first video frame among the video frames to obtain pictures other than the at least one picture among the multiple target pictures, wherein a frame sequence number of the first video frame is an integer multiple of the target frame interval and is not an integer multiple of the historical frame interval; When the historical frame interval and the target frame interval do not have an integer multiple relationship, the second video frame among the video frames is encoded to obtain pictures among the multiple target pictures except for the at least one picture, and the frame number of the second video frame is an integer multiple of the target frame interval and is not a common multiple of the historical frame interval and the target frame interval.

21. The device according to claim 19, characterized in that The acquisition module is used for: Decoding the target video to obtain each video frame of the target video; Multiple third video frames in the respective video frames are encoded to obtain pictures in the multiple target pictures except the at least one picture, and frame numbers of the multiple third video frames are integer multiples of the target frame interval and are not included in the historical number.

22. The device according to claim 16, characterized in that The device also includes: The determination module is further used to determine that any of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval and the target video; An acquisition module, configured to acquire the plurality of target images according to the target video and the target frame interval; The providing module is further used to provide the terminal with the multiple target pictures.

23. The device according to claim 22, characterized in that The acquisition module is used for: Decoding the target video to obtain each video frame of the target video; A plurality of fourth video frames in the respective video frames are encoded to obtain the plurality of target pictures, wherein frame numbers of the plurality of fourth video frames are integer multiples of the target frame interval.

24. A picture acquisition system, characterized in that: The system includes a terminal and a server. The terminal is used to send a picture acquisition request to the server, wherein the picture acquisition request is used to request to acquire a plurality of target pictures corresponding to a target video according to a target frame interval; The server is used to read the picture acquisition record when receiving the picture acquisition request of the terminal, wherein the picture acquisition record is a record of acquiring the corresponding picture according to the historical frame interval; The server is further configured to provide the terminal with the at least one stored picture when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval and the target video; Wherein, determining that at least one of the multiple target pictures has been stored based on the picture acquisition record, the target frame interval and the target video includes: the picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one of the multiple target pictures that has been stored based on the target frame interval and the historical frame interval in the picture acquisition record; or, the picture acquisition record includes a historical serial number of a picture in the target video stored based on the historical frame interval, and determining at least one of the multiple target pictures that has been stored based on the target frame interval and the historical serial number in the picture acquisition record.

25. The system according to claim 24, characterized in that The server is also used to: Acquire pictures other than the at least one picture from the multiple target pictures according to the picture acquisition record, the target frame interval and the target video; Provide the terminal with pictures other than the at least one picture among the multiple target pictures.

26. The system according to claim 24, characterized in that The server is also used to: When it is determined that any of the multiple target pictures is not stored based on the picture acquisition record, the target frame interval and the target video, the multiple target pictures are acquired based on the target video and the target frame interval, and the multiple target pictures are provided to the terminal.

27. A picture acquisition system, characterized in that: The system includes a terminal, a control server, a storage server and a picture acquisition server. The terminal is used to send a picture acquisition request to the control server, wherein the picture acquisition request is used to request to acquire a plurality of target pictures corresponding to a target video according to a target frame interval; The control server is used to read the picture acquisition record when receiving the picture acquisition request of the terminal, and the picture acquisition record includes a record of acquiring the corresponding picture according to the historical frame interval; The control server is further configured to, when it is determined that at least one of the multiple target pictures has been stored according to the picture acquisition record, the target frame interval and the target video, obtain a storage address of the at least one picture, and send the storage address of the at least one picture to the terminal, where the storage address of the at least one picture is a storage address of the at least one picture in the storage server; The terminal is further configured to obtain the at least one picture from the storage server according to the storage address of the at least one picture; Wherein, determining that at least one of the multiple target pictures has been stored based on the picture acquisition record, the target frame interval and the target video includes: the picture acquisition record includes acquiring a historical frame interval of pictures in the target video, and determining at least one of the multiple target pictures that has been stored based on the target frame interval and the historical frame interval in the picture acquisition record; or, the picture acquisition record includes a historical serial number of a picture in the target video stored based on the historical frame interval, and determining at least one of the multiple target pictures that has been stored based on the target frame interval and the historical serial number in the picture acquisition record.

28. The system according to claim 27, characterized in that The control server is further used to send a first picture acquisition request to the picture acquisition server, where the first picture acquisition request is used to request to acquire pictures other than the at least one picture among the multiple target pictures; The picture acquisition server is further configured to, when receiving the first picture acquisition request, acquire pictures other than the at least one picture from the multiple target pictures, and send the pictures other than the at least one picture from the multiple target pictures to the storage server; The storage server is further configured to store pictures other than the at least one picture among the multiple target pictures, obtain storage addresses of pictures other than the at least one picture among the multiple target pictures, and send the storage addresses of pictures other than the at least one picture among the multiple target pictures to the control server; The control server is further configured to send storage addresses of pictures other than the at least one picture among the multiple target pictures to the terminal; The terminal is further configured to obtain at least one of the multiple target pictures from the storage server according to a storage address of at least one of the multiple target pictures; According to the storage addresses of the pictures other than the at least one picture among the multiple target pictures, the pictures other than the at least one picture among the multiple target pictures are acquired from the storage server.

29. The system according to claim 27, characterized in that The control server is further configured to send a second picture acquisition request to the picture acquisition server when it is determined that any picture of the multiple target pictures is not stored according to the picture acquisition record, the target frame interval, and the target video, wherein the second picture acquisition request is used to request to acquire the multiple target pictures; The image acquisition server is further configured to, when receiving the second image acquisition request, acquire the multiple target images and send the multiple target images to the storage server; The storage server is further used to store the multiple target images, obtain storage addresses of the multiple target images, and send the storage addresses of the multiple target images to the control server; The control server is further configured to send the storage addresses of the plurality of target images to the terminal; The terminal is further configured to obtain the multiple target images from the storage server according to the storage addresses of the multiple target images.