WO2022057358A1 - 图片抓拍方法、图片存储方法、系统、设备以及存储介质 - Google Patents

图片抓拍方法、图片存储方法、系统、设备以及存储介质 Download PDF

Info

Publication number
WO2022057358A1
WO2022057358A1 PCT/CN2021/101906 CN2021101906W WO2022057358A1 WO 2022057358 A1 WO2022057358 A1 WO 2022057358A1 CN 2021101906 W CN2021101906 W CN 2021101906W WO 2022057358 A1 WO2022057358 A1 WO 2022057358A1
Authority
WO
WIPO (PCT)
Prior art keywords
snapshot
picture
sequence
target
capture
Prior art date
Application number
PCT/CN2021/101906
Other languages
English (en)
French (fr)
Inventor
杨胜凯
刘俊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022057358A1 publication Critical patent/WO2022057358A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Definitions

  • the present application relates to the technical field of picture processing, and in particular, to a method for capturing pictures, a method for storing pictures, a system, a device and a storage medium.
  • the cameras can capture pictures and send the captured pictures to the storage device.
  • the pictures captured by the camera are stored by the storage device.
  • the process of picture snapping may be as follows: when receiving a snapping trigger signal, the camera performs joint photographic experts group (JPEG) encoding on a certain video frame data in the recorded video stream to obtain the snapped picture, and Save the snapshot to a storage device.
  • JPEG joint photographic experts group
  • the snapshot pictures Due to the low compression rate of JPEG encoding, the snapshot pictures carry a large amount of redundant information, resulting in a large amount of data in the snapshot pictures. A large number of snapshot pictures, thereby increasing the cost of storage devices.
  • the embodiments of the present application provide a method for capturing a picture, a method for storing a picture, a system, a device and a storage medium, which can reduce the cost of the storage device when storing the captured picture.
  • a method for capturing a picture which is applied to a capturing device, and the method includes:
  • the snapshot signal is used to instruct to capture the video stream.
  • the method performs inter-frame coding on the video frame data at the current moment in the video stream based on the captured pictures in the picture sequence, so as to realize this snapshot, and because the snapshots captured this time are based on the snapshots in the sequence of reference pictures.
  • Inter-frame encoding can reduce redundant information between each snapshot in the picture sequence and reduce the amount of data of the snapshot.
  • the storage device does not need to provide larger storage for the snapshot. space, thereby reducing the cost of storage devices.
  • the method before the acquisition of the snapshot signal, the method further includes:
  • Obtain another said capture signal obtain the video frame data at the current moment in the video stream; if the capture device is in a non-target capture state, perform intra-frame encoding on the video frame data to obtain the image sequence in the picture sequence.
  • the first snapped picture, the non-target snapped state is used to instruct to snap the first snapped picture in the picture sequence.
  • the method further includes:
  • the method further includes:
  • the snapping state of the snapping device is modified from the target snapping state to the non-target snapping state.
  • the method further includes:
  • the picture sequence and the snapshot information of multiple snapshots in the picture sequence are output, and the snapshot information of a snapshot includes the location information of the snapshot in the picture sequence and the snapshot time of the snapshot.
  • the outputting the picture sequence and the snapshot information of the multiple snapshot pictures in the picture sequence include:
  • sequence end control signal When the sequence end control signal is in a valid state, encapsulate the picture sequence and the snapshot information of the plurality of snapshot pictures into a snapshot sequence file; output the snapshot sequence file, wherein the sequence end control signal is used to indicate a picture Whether the sequence capture ends.
  • the first snapshot picture of the picture sequence is an intra-frame coded frame
  • the snapshot pictures other than the first snapshot picture in the picture sequence are inter-frame prediction coded frames.
  • the capture device is in the target capture state, and the sequence start control signal is used to indicate whether to capture the first image in the sequence of pictures. Snap a picture to capture; or, if the duration from the start capturing moment of the picture sequence to the current moment is less than the target duration, the capturing device is in the target capturing state; or, if at the current moment the The number of captured pictures in the picture sequence is less than the target number, and the capture device is in the target capture state.
  • the target snapshot state is used to indicate that the snapshot picture in the picture sequence is to be captured.
  • a method for storing pictures comprising:
  • the snapshot information of a snapshot image includes the location information of the snapshot image in the picture sequence and the snapshot time of the snapshot image, and the index information of the snapshot image includes the location information, the snapshot time and the snapshot time. Index ID.
  • the storage device since the snapshot pictures in the picture sequence are encoded according to the existing snapshot pictures in the picture sequence, the redundant information between the snapshot pictures in the picture sequence can be reduced, and the data amount of the snapshot pictures can be reduced, then When the storage device stores the snapshot pictures encoded in this way, it is not necessary to provide a large storage space for the snapshot pictures, thereby reducing the cost of the storage device.
  • the method includes:
  • the method further includes:
  • the target snapshot picture is the first snapshot picture in the picture sequence, query the target snapshot picture from the stored picture sequence; and send the queried target snapshot picture to the user equipment.
  • the snapshot image query request includes a target image format
  • the method further includes:
  • the target image format is different from the stored image format of the target snapshot
  • obtain the decoded data of the target snapshot encode the decoded data into an encoded image in the target image format; report to the user
  • the device sends the encoded picture.
  • the storage device can also decode the queried snapshot picture, and re-encode the decoded data into the image format required by the user equipment coded pictures, so as to realize the compatibility of picture management.
  • the obtaining the decoded data of the target snapshot picture includes:
  • the target snapped picture belongs to the picture sequence, query at least one snapped picture before the target snapped picture in the stored picture sequence; perform inter-frame decoding on the target snapped picture based on the at least one snapped picture to obtain the decoded data.
  • the snapshot image query request includes at least one of index information of the target snapshot image, a snapshot time of the target snapshot image, and a time period to which the snapshot time belongs.
  • a system for capturing pictures includes a capturing device and a storage device; the capturing device executes the image capturing method provided in the above-mentioned first aspect or any optional manner of the above-mentioned first aspect; the The storage device executes the picture storage method provided in the second aspect or any optional manner of the second aspect.
  • a device for capturing pictures which is used for executing the above method for capturing pictures.
  • the device for capturing pictures includes functional modules for executing the first aspect or the method for capturing pictures provided in any optional manner of the first aspect.
  • a picture storage device for executing the above picture storage method.
  • the picture storage device includes a functional module for executing the picture storage method provided in the above second aspect or any optional manner of the above second aspect.
  • a sixth aspect provides a device for capturing photos
  • the device for capturing photos includes a processor and a memory
  • the memory stores at least one piece of program code
  • the program code is loaded and executed by the processor to realize the above-mentioned first aspect or the above-mentioned first aspect
  • the operation performed by the picture capture method provided in any optional manner of .
  • a seventh aspect provides a storage device, the capture device includes a processor and a memory, the memory stores at least one program code, the program code is loaded by the processor and executes the above-mentioned second aspect or the above-mentioned second aspect. Any operation performed by the image storage method provided in an optional manner.
  • a computer-readable storage medium is provided, and at least one piece of program code is stored in the storage medium, and the program code is loaded and executed by a processor to implement the operations performed by any of the above methods.
  • a computer program product or computer program includes program code, the program code is stored in a computer-readable storage medium, and a processor of the computer device reads from the computer-readable storage medium Taking the program code, the processor executes the program code, so that the computer device executes any of the above methods.
  • FIG. 1 is a schematic diagram of a picture capture system provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a capture module provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a control mechanism of a sequence start control signal provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another capture device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a storage device provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a method for capturing a picture provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of a storage method provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of a picture management method provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a picture capture device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a picture storage device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a picture capture system provided by an embodiment of the present application.
  • the system 100 includes a capture device 101 , a storage device 102 , and a user device 103 .
  • the capture device 101 is used to capture a video stream based on the capture signal to obtain a picture sequence, and send the captured picture sequence to the storage device 102, and the storage device 102 stores the picture sequence.
  • the capture device 101 acquires a capture signal, it captures the video stream once to obtain a captured picture, and the picture sequence includes a plurality of captured pictures.
  • the capture device 101 when the capture signal is acquired for the first time, the capture device 101 performs intra-frame encoding on the video frame data at the current moment in the video stream to obtain a picture The first snapshot in the sequence to achieve this snapshot.
  • the snapshot device 101 When acquiring the snapshot signal for the second time, the snapshot device 101 performs inter-frame encoding on the video frame data at the current moment in the video stream based on the first snapshot in the picture sequence, to obtain the second snapshot in the picture sequence. A snapshot picture to achieve this snapshot.
  • the snapshot device 101 When acquiring the snapshot signal for the third time, the snapshot device 101 performs inter-frame encoding on the video frame data at the current moment in the video stream based on at least one snapshot in the picture sequence, to obtain the third snapshot in the picture sequence pictures to realize this snapshot, and so on, until the snapshot of the picture sequence is completed.
  • the capturing device 101 is a camera or a server, and the capturing device 101 is not specifically limited in this embodiment of the present application.
  • the snapshot device 101 includes a snapshot trigger module 1011 and a snapshot module 1012 .
  • the snap triggering module 1011 is configured to generate a snap signal, and send the generated snap signal to the snap module 1012, so that the snap module 1012 snaps the video stream when receiving the snap signal.
  • the snapshot trigger module 1011 generates the snapshot signal based on the detection result of the sensor, the recognition result of image recognition or manual triggering, wherein the detection result or the recognition result is used to indicate the snapshot object, and the snapshot object is also the snapshot.
  • the object in the picture such as a vehicle or a person, is not specifically limited in this embodiment of the present application.
  • a sensor is provided on the road.
  • the sensor When the sensor detects that a vehicle passes through the road, the sensor sends a detection result to the snapshot trigger module 1011. After receiving the detection result, the snapshot trigger module 1011 generates the snapshot. Signal.
  • the snapshot trigger module 1011 performs image recognition on the video frame data in the video stream in real time, and generates the snapshot signal when a snapshot object is recognized.
  • the user performs a capture trigger operation on the capture device 101, and the capture trigger module 1011 generates the capture signal after the capture trigger module 1011 detects the capture trigger operation.
  • the snapping module 1012 is used for acquiring a video stream, receiving a snapping signal from the snapping triggering module 1011 , after receiving the snapping signal, snapping a picture of the video stream, and sending the captured picture sequence to the storage device 102 .
  • the snapshot module 1012 includes a control unit 21, an encoder 22, a cache unit 23, and a packaging unit 24, such as a schematic structural diagram of a snapshot module provided by an embodiment of the present application shown in FIG. 2 .
  • the control unit 21 is used to generate a sequence start control signal and a sequence end control signal, and send the sequence start control signal to the encoder 22 to indicate whether the encoder 22 performs the first snapshot picture in the picture sequence. Snapshot, and send a sequence end control signal to the packing unit 24 to indicate whether the picture sequence has been snapped, and whether the packing unit 24 packs the picture sequence.
  • the encoder 22 is configured to receive the video stream, the sequence start control signal and the capture signal, and to capture the video stream according to the sequence start control signal and the capture signal, to obtain a sequence of images, and to capture the sequence of images and
  • the snapshot information of each snapshot in the sequence of pictures is sent to the cache unit 23 and stored by the cache unit 23 .
  • the encoder 22 determines the capture state of the capture device 101 according to the sequence start control signal. If the capture state of the capture device 101 is a non-target capture state, Then the encoder 22 performs intra-frame encoding on the video frame data at the current moment in the video stream to obtain the first snapshot picture in the picture sequence.
  • the capture state of the capture device 101 is the target capture state, it indicates the picture sequence being captured. There is at least the first snapshot picture in the picture sequence, then the encoder 22 performs inter-frame encoding on the video frame data at the current moment in the video stream based on at least one snapshot picture in the picture sequence, obtains the target snapshot picture, and adds the target picture to the picture sequence, as the last snapshot of the picture sequence at the current moment, until the snapshot of the picture sequence is completed.
  • the non-target snapshot state is used to instruct to take a snapshot of the first snapshot in the picture sequence; the target snapshot state is used to instruct to capture the snapshot in the picture sequence; Any snapshot other than a snapshot.
  • the encoder 22 determines the capture state of the capture device 101 according to the sequence start control signal as follows: the encoder 22 determines the state of the sequence start control signal output by the control unit 21, If the sequence start control signal is in an active state, it means that the encoder 22 will start to capture a new picture sequence, that is, to capture the first captured picture in the new picture sequence, then the encoder 22 22. Determine that the capture state of the capture device 101 is a non-target capture state. If the sequence start control signal is in an invalid state, it means that the current capture sequence has not been captured yet, and the first image sequence in the new photo sequence cannot be captured. If the captured picture is still being captured, the encoder 22 determines that the capturing state of the capturing device 101 is the target capturing state.
  • the cache unit 23 is configured to receive the picture sequence sent by the encoder 22 and the snapshot information of each snapshot in the picture sequence, and store the picture sequence and the snapshot information of each snapshot in the picture sequence.
  • the packing unit 24 is used to receive the sequence end control signal sent by the control unit 21.
  • the received sequence end control signal is in an active state, it means that the encoder 22 has captured and completed a picture sequence.
  • Obtain the picture sequence and the snapshot information of each snapshot picture in the picture sequence package the picture sequence and the snapshot information of each snapshot picture in the picture sequence into a snapshot file, and send it to the storage device 102.
  • the storage device 102 performs storage.
  • the packaging unit 24 only packages the picture sequence into a snapshot file, and sends the snapshot file to the storage device 102 together with the snapshot information of each snapshot in the picture sequence.
  • the sequence end control signal is in an invalid state, it means that the encoder 22 has not finished capturing the picture sequence, and the packing unit 24 cannot obtain the picture sequence and the snapshot information of each snapshot in the picture sequence from the cache unit 23 .
  • the state of the sequence start control signal is controlled by the control unit 21 in real time.
  • the control unit 21 outputs a sequence start control signal in a valid state to the encoder 22 in real time.
  • the encoder 22 After the encoder 22 receives the capture signal, if the sequence start control signal is The signal is in a valid state, indicating that the capture device 101 is in a non-target state at this time, then the encoder 22 captures the video stream, obtains the first captured picture of the picture sequence, and feeds back a first signal to the control unit 21, the first The signal is used to indicate that the first snapshot in the picture sequence has been captured; when the control unit 21 receives the first signal, it outputs the sequence start control signal in an invalid state to the encoder 22, and starts timing, and the snapshot is taken at this time The device 101 is in the target state, and when the subsequent encoder 22 receives the snapshot signal again, it performs inter-frame encoding on the video stream based on at least one snapshot in the picture sequence to obtain the target snapshot; when the timing elapses for the target duration, the control unit 21 outputs a sequence start control signal in a valid state to the encoder 22, so that the capture device 101 is in a non-target capture state again, and the encoder
  • n refers to the schematic diagram of a control mechanism of a sequence start control signal provided by an embodiment of the present application shown in FIG. 3 .
  • the sequence start control signal output by the control unit 21 is in a valid state to instruct the encoder 22 to capture the first snapshot of the picture sequence.
  • the encoder 22 When the encoder 22 receives the snapshot signal (using After the snapshot is triggered), the encoder 22 captures the first snapshot of the picture sequence, and when the first snapshot is completed, the control unit 21 outputs an inactive sequence start control signal to instruct the encoder 22 Snap shots of the snapshot pictures except the first snapshot picture in the picture sequence, and the counter/timer in the control unit 21 is started to start counting/timing; during the counting/timing period, the encoder 22 may receive multiple snapshots Trigger signal, because the sequence start control signal is always in an invalid state, every time the encoder 22 receives a capture trigger signal, it will frame the video frame data at the current moment in the video stream based on at least one picture in the picture sequence.
  • n is a value greater than 0.
  • control unit 21 when the user performs a first operation on the capture device 101 for triggering the sequence start control signal to be in a valid state, and the control unit 21 detects the first operation, Then trigger the control unit 21 to output the sequence start control signal in the valid state to the encoder 22; when the user performs the second operation on the capture device 101 for triggering the sequence start control signal to be in the invalid state, and When the control unit 21 detects the second operation, the control unit 21 is triggered to output a sequence start control signal in an invalid state to the encoder 22 .
  • whether the sequence end control signal is in a valid state is also controlled by the control unit 21 in real time.
  • the control unit 21 outputs the sequence end control signal in an invalid state to the packing unit 24 in real time, and when the control unit 21 outputs the sequence start control signal to the encoder 22 by After the invalid state changes to the valid state, it means that the encoder 22 has captured a picture sequence, then the control unit 21 can output the sequence end control signal in the valid state to the packing unit 24 to notify the packing unit 24 to pack; when the packing unit 24 If it is determined that the received sequence end control signal is in a valid state, the packing unit 24 can obtain a picture sequence from the buffer unit 23 and pack the obtained picture sequence.
  • the control unit 21 outputs a real-time control signal of ending the sequence in an invalid state to the packaging unit 24.
  • the control unit 21 detects the third operation, the control unit 21 is then triggered to output the sequence end control that is in a valid state to the packing unit 24 Signal.
  • the storage device 102 is used to receive the picture sequence sent by the snapshot device 101 and the snapshot information of each snapshot in the picture sequence, generate the index information of each snapshot in the picture sequence, and associate the index information of each snapshot with the picture sequence Associated storage is performed, and index information of each snapped picture is sent to the user equipment 103, so that the user equipment 103 can query the snapped pictures.
  • the storage device 102 is further configured to, when receiving a snapshot picture query request sent by the user equipment 103, query the stored snapshot pictures according to the index information carried in the snapshot picture query request, and send the queried snapshot pictures to the user equipment 103.
  • the storage device 102 is a server or a server cluster, and the storage device 102 can store the picture sequence locally, or store the picture sequence in other devices, or a cloud storage system.
  • the user equipment 103 is configured to receive the index information of each snapped picture sent by the storage device, send a snapped picture query request to the storage device 102 , and receive and display the snapped picture returned by the storage device 102 .
  • the user equipment 103 is a terminal device such as a mobile phone and a computer.
  • the capture device 400 may vary greatly due to different configurations or performance, including one or more processors 401 and one or more The memory 402, wherein at least one piece of program code is stored in the memory 402, and the at least one piece of program code is loaded and executed by the processor 401 to implement the operations performed by the capture device in the following method embodiments.
  • the snapping device 400 can also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the snapping device 400 also includes other components for realizing device functions, which are not repeated here.
  • the storage device 500 may vary greatly due to different configurations or performance, including one or more processors 501 and one or more memories 502, wherein the memory 502 stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor 501 to implement the operations performed by the storage device in the following method embodiments.
  • the storage device 500 can also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the storage device 500 also includes other components for implementing device functions, which are not repeated here.
  • a computer-readable storage medium such as a memory including program codes
  • the program codes can be executed by a processor in the terminal to implement the methods in the following embodiments.
  • the computer-readable storage medium is read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape , floppy disks and optical data storage devices.
  • the capture device can capture multiple picture sequences, each picture sequence includes multiple captured pictures, and each captured picture is a picture obtained by the capture device by encoding the video frame data in the video stream when the capture signal is obtained.
  • each captured picture is a picture obtained by the capture device by encoding the video frame data in the video stream when the capture signal is obtained.
  • the capture device acquires a capture signal, where the capture signal is used to instruct to capture a video stream.
  • This step 601 can be performed by a capture module in the capture device, wherein the process of acquiring the capture signal by the capture module is described above, and this step 601 is not described here in this embodiment of the present application.
  • the capturing device acquires video frame data at the current moment in the video stream.
  • the video stream includes a plurality of video frame data, each video data constitutes a video frame, and the video frame data in the video stream are all unencoded original video data.
  • the video stream is a video stream recorded by the capture device in real time.
  • the capture device records a vehicle driving on the road in real time to obtain the video stream.
  • the capture device is the camera.
  • the video stream is obtained by the capture device from other devices, for example, the capture device obtains a video stream recorded by a camera, or obtains a video stream decoded by a decoding device.
  • the capture device may be a server at this time.
  • the capture device can obtain the video stream in real time, so that after the capture device obtains the capture signal, it can obtain the video frame data at the current moment from the video stream obtained in real time, so that the capture device can encode the video frame data to Realize picture capture.
  • the capturing device determines a capturing state of the capturing device, where the capturing state includes a non-target capturing state or a target capturing state.
  • the non-target snapshot state is used to instruct to capture the first snapshot in the picture sequence
  • the target capture state is used to instruct to capture the snapshot in the picture sequence. Snapshots other than pictures are captured.
  • the capture device determines the capture device based on the state of the start control signal of the sequence at the current moment, the number of captured images in the sequence of images at the current moment, the captured duration of the sequence of images, or the stored capture state. The capture status of the capture device.
  • the sequence start control signal is used to indicate whether to capture the first captured image in the sequence of images; the sequence of images is the sequence of images currently being captured.
  • the captured duration of the picture sequence is the duration from the start capture time of the picture sequence to the current moment, and the start capture time is the capture time of the first captured picture in the picture sequence.
  • the current moment also captures the moment when the device obtains the capture signal in time.
  • the capture device determines that the capture state is not. Target state; if the sequence start signal is in an invalid state at the current moment, the capture device does not capture the first captured picture in the picture sequence, and the capture device determines that the capture state is the target state. That is, if the sequence start control signal is in an invalid state, the capture device is in a target capture state, and if the sequence start control signal is in an active state, the capture device is in a non-target capture state.
  • the capture device obtains the initial capture moment of the picture sequence, and if the duration from the initial capture moment of the photo sequence to the current moment is greater than or equal to the target duration, where the target duration is the total duration used to capture a picture sequence, It means that the picture sequence has been captured, and starts to capture the next picture sequence, then the capture device determines that the capture state is a non-target capture state; since the start capture time is the capture time of the first captured picture in the picture sequence, If the duration from the start snapshot time of the picture sequence to the current moment is less than the target duration, it means that the picture sequence has not been captured yet, and the first snapshot in the picture sequence has been captured.
  • the capturing device determines that the capturing state is the target capturing state. That is, if the duration from the start capturing time of the picture sequence to the current moment is less than the target duration, the capturing device is in the target capturing state; otherwise, the capturing device is in the non-target capturing state.
  • the capture device obtains the number of captured pictures in the sequence of pictures at the current moment, if the number of captured pictures in the sequence of pictures at the current moment is greater than or equal to the target number, where the target number is the captured pictures in the preset sequence of pictures. If the total number of captured pictures is completed, it means that the picture sequence has been captured, and starts to capture the next picture sequence, then the capture device determines that the capture state is a non-target capture state; if the number of captured pictures in the picture sequence at the current moment is less than the target number, It means that the picture sequence has not been captured yet, and the first captured picture in the picture sequence has been captured. It is necessary to capture the captured pictures other than the first captured picture in the picture sequence, then the capture device determines the captured picture. The state is the target capture state. That is, if the number of snapped pictures in the picture sequence at the current moment is less than the target number, the snapping device is in the target snapping state; otherwise, the snapping device is in the non-target state.
  • the capture device can also store the capture state of the capture device. If the capture state stored at the current moment is a non-target state, the capture device determines that the capture state is a non-target capture state, and if the capture state is stored at the current moment The capture state is the target state, the capture device determines that the capture state is the target capture state. Initially, the capture device stores the capture state of the capture device as a non-target capture state. When the first capture image of a sequence of images is captured, the capture device modifies the stored capture state to the target capture state. After the snapshot of the picture sequence is completed, the snapshot device modifies the stored snapshot state to a non-target state, and starts to capture the next picture sequence.
  • this step 603 can be performed by an encoder in the capture device.
  • the control unit does not send a sequence start control signal to the encoder, but sends a sequence start message to the encoder, where the sequence start message is used to indicate the first snapshot in the picture sequence
  • the picture is captured, and when the encoder receives the sequence start message, it determines that the capture state is a non-target state; the control unit can also send a sequence end message to the encoder, and the sequence end message is used to indicate the removal of the picture sequence.
  • the snapshots other than the first snapshot are captured, and when the encoder receives the sequence end message, it is determined that the snapshot state is the target state.
  • the capture device If the capture device is in a non-target capture state, the capture device performs intra-frame encoding on the video frame data at the current moment to obtain the first captured picture in the picture sequence.
  • the first captured picture is an intra-coded frame, that is, an I-frame.
  • the capture device When the capture device is in a non-target capture state, it means that the capture device is about to capture a picture sequence, and the capture device performs intra-frame encoding on the video frame data at the current moment to obtain the first captured picture in the picture sequence.
  • the snapshot device can perform intra-frame encoding on the video frame data by adopting a first encoding mode with a higher compression rate than JPEG encoding to obtain the first snapshot picture in the picture sequence.
  • the first encoding method includes a high efficiency image file format (HEIF) encoding method, a Webp encoding method, a portable network graphics (PNG) encoding method, a bitmap (bitmap, BMP encoding method), etc. .
  • HEIF high efficiency image file format
  • PNG portable network graphics
  • bitmap bitmap, BMP encoding method
  • the capturing device modifies the capturing state from the non-target capturing state to the target capturing state.
  • the capture device Since the first snapshot in the picture sequence has been captured at this time, it is necessary to capture the snapshots other than the first snapshot in the picture sequence, and the capture device will modify the capture state to the target state. to instruct to capture snapshots other than the first snapshot in the sequence of images.
  • the process shown in this step 605 can be executed by the control unit in the capture device.
  • the control unit stops outputting the sequence start control signal in the valid state to the encoder, but outputs the sequence start control signal in the invalid state to the encoder, so that the capture state of the capture device is non-target capture.
  • the state changes to the target capture state, so as to realize the modification of the capture state.
  • the process shown in this step 605 can be performed by an encoder in the capture device.
  • the encoder modifies the stored capture state from the non-target capture state to the target capture state, so as to realize the modification of the capture state.
  • the capture device If the capture device is in the target capture state, every time the capture device receives a capture signal, it performs inter-frame encoding on the video frame data at the current moment based on at least one captured picture in the picture sequence, and obtains the division of the video frame data in the picture sequence.
  • a snapshot other than the first snapshot in order to further describe the process of capturing any snapshot except the first snapshot in the sequence of pictures by the snapshot device, please refer to the following steps 606-611.
  • the capturing device acquires another capturing signal.
  • step 606 is the same as the process shown in the above-mentioned step 601, and this step 606 is not described repeatedly in this embodiment of the present application.
  • the capturing device acquires video frame data at the current moment in the video stream.
  • step 607 is the same as the process shown in the above-mentioned step 602, and this step 607 is not repeated in this embodiment of the present application.
  • the current time in this step 607 is not the same time as the current time in the above-mentioned step 602, the current time in this step 607 is the time when the capture device obtains the capture signal in step 606, and the above The current time in step 602 is the time when the capture device obtains the capture signal in step 601 above.
  • the capturing device determines a capturing state of the capturing device.
  • step 608 is the same as the process shown in the above-mentioned step 603, and this step 608 is not described repeatedly in this embodiment of the present application.
  • the capture device performs inter-frame encoding on the video frame data based on at least one captured image in the sequence of images to obtain the target captured image.
  • the target snapshot picture is an inter-frame predicted (predicted) coded frame, that is, a P frame.
  • the target snapshot picture is also a picture captured based on the newly received snapshot signal, wherein the newly received snapshot signal is the snapshot signal received in step 606 .
  • the at least one snapped picture includes the first snapped picture in the picture sequence, or the last M snapped pictures in the picture sequence at the current moment, where M is an integer greater than or equal to 1.
  • M is an integer greater than or equal to 1.
  • the capture device When the capture device is in the target capture state, it means that the capture image sequence has not been captured yet, and the first captured image in the image sequence has been captured. At this time, there is at least one captured image in the image sequence.
  • the device can perform inter-frame encoding on the video frame data based on at least one captured picture in the picture sequence. In a possible implementation manner, the capture device adopts the first encoding mode, and uses at least one captured picture in the picture sequence as a reference frame to perform inter-frame prediction encoding on the video frame data to obtain the target captured picture.
  • This embodiment of the present application is described by taking the at least one snapshot as the last snapshot in the sequence of images at the current moment as an example. If the sequence of images includes 1-3 snapshots at the current moment, the sequence of snapshots 1-3 3, then the snapshot picture 1 is the first snapshot picture, the snapshot picture 2 is the second snapshot picture, and the snapshot picture 3 is the third snapshot picture, then the snapshot device takes the snapshot picture 3 as a reference frame, and the video frame The data is inter-coded to obtain a snapshot picture 4, and the snapshot picture 4 is also the target snapshot picture captured this time.
  • the snapshot device adds the target snapshot picture to the picture sequence.
  • the snapping device adds the target snapped picture at the end of the picture sequence. Then, after the target snapped picture is added to the picture sequence, the target snapped picture is the last snapped picture in the picture sequence at the current moment. Still taking the target snapshot image as the snapshot image 4 as an example, the snapshot device places the snapshot image 4 after the snapshot image 3, so that the sequence of the images at the current moment is the snapshot image 1, the snapshot image 2, the snapshot image 3, and the snapshot image. 4.
  • the target snapped picture is also a snapped picture other than the first snapped picture in the picture sequence.
  • the encoder in the capture device records the capture information of the captured image after capturing a captured image, where the captured information includes the location information of the captured image in the image sequence to which it belongs and the captured image.
  • the snapshot time of the picture, wherein the position information is the offset (offset) of the snapshot picture in the picture sequence to which it belongs optionally, the offset is the number of the snapshot picture in the picture sequence to which it belongs, For example, the number of the first snapshot in the picture sequence is 1, the number of the second snapshot in the picture sequence is 2, and so on.
  • the capture time of the captured image is the time when the captured image is obtained when the captured image is captured, or the encoding time of the captured image.
  • the process for the capture device to obtain the start capture moment of the picture sequence is: the capture device obtains the capture information of the first captured picture in the picture sequence, and from the first captured picture The capture time of the first captured picture is obtained from the captured information of the device, and the capture time of the first captured picture is determined as the initial capture time of the picture sequence.
  • the snapping device determines whether the target snapped picture is the last snapped picture in the picture sequence.
  • the capturing device determines whether the target captured image is the last image in the image sequence based on the number of captured images in the image sequence at the current moment or the captured duration of the image sequence.
  • the target captured picture is not the last picture in the picture sequence.
  • the captured duration of the picture sequence is greater than or equal to the target duration, the captured picture sequence has been captured, and the target captured picture is the last picture in the picture sequence; otherwise, the target The snapshot image is not the last image in the sequence of images.
  • the snapshot device jumps to execute the process shown in steps 606-611. That is, the process shown in steps 606-611 is a process in which the capturing device captures any captured picture except the first captured picture in the picture sequence, which is a cyclic process until the capturing of the picture sequence is completed.
  • the snapshot device modifies the snapshot state from the target snapshot state to the non-target snapshot state.
  • the target snapshot picture is the last snapshot picture in the picture sequence, the picture sequence has been captured at this time, and the next picture sequence snapshot starts. Only when the capture device is in the non-target capture state, the capture device can The first snapshot of the next picture sequence is captured. Therefore, the capturing device modifies the captured state to a non-target state to instruct to capture the first captured image in the sequence of images.
  • the process shown in this step 612 can be executed by the control unit in the capture device.
  • the control unit stops outputting the sequence start control signal in an invalid state to the encoder, but outputs the sequence start control signal in a valid state to the encoder, so that the capture state of the capture device is changed from the target state. It is the non-target snapshot state, so as to realize the modification of the snapshot state.
  • the process shown in this step 612 can be performed by an encoder in the capture device.
  • the encoder modifies the stored capture state from the target capture state to the non-target capture state, so as to realize the modification of the capture state.
  • step 612 When the process shown in this step 612 is performed by the encoder in the snapshot device, if the target snapshot picture is the last picture in the first picture sequence, the snapshot of the picture sequence is completed, and the encoder captures the picture sequence And the snapshot information of the multiple snapshot pictures in the picture sequence is transferred to the cache unit and stored by the cache unit.
  • the snapshot device sends the picture sequence and snapshot information of multiple snapshot pictures in the picture sequence to the storage device.
  • the snapshot device sends the picture sequence and the snapshot information of the plurality of snapshot pictures to the storage device.
  • the process shown in this step 613 is also a process in which the snapshot device outputs the picture sequence and the snapshot information of the plurality of snapshot pictures.
  • the process shown in this step 613 includes the following steps 6131-6132.
  • Step 6131 When the sequence end control signal is in an active state, the snapshot device encapsulates the picture sequence and the snapshot information of the plurality of snapshot pictures into a snapshot sequence file, and the sequence end control signal is used to indicate whether the snapshot of the picture sequence ends.
  • the process shown in this step 6311 can be performed by the packaging unit in the capture device.
  • the packaging unit obtains the picture sequence from the cache unit and The snapshot information of the plurality of snapshot pictures, and the picture sequence and the snapshot information of the plurality of snapshot pictures are encapsulated into a snapshot sequence file, wherein the snapshot information of the plurality of snapshot pictures is stored as the metadata of the picture sequence in the Snapshot sequence file.
  • Step 6132 The snapshot device sends the snapshot sequence file to the storage device.
  • the process shown in this step 6132 can be performed by the packaging unit in the capturing device.
  • the capturing device does not generate the capturing sequence file, does not send the capturing sequence file to the storage device, but sends the capturing sequence and capturing information of the multiple capturing images as an individual respectively the storage device.
  • the current snapshot is performed by performing inter-frame encoding on the video frame data at the current moment in the video stream based on the snapshots in the sequence of pictures, and because the snapshots captured this time are reference pictures
  • the snapshot pictures in the sequence are obtained by inter-frame encoding, which can reduce the redundant information between the snapshot pictures in the picture sequence and reduce the data amount of the snapshot pictures.
  • Pictures provide larger storage space, thereby reducing the cost of storage devices.
  • the storage device After acquiring the picture sequence output by the snapshot device, the storage device allocates index information to each snapshot in the picture sequence, stores the picture sequence, and sends the index information of each snapshot to the user equipment, so that the user equipment can query each snapshot picture.
  • the storage device allocates index information to each snapshot in the picture sequence, stores the picture sequence, and sends the index information of each snapshot to the user equipment, so that the user equipment can query each snapshot picture.
  • the storage device receives a captured picture sequence and snapshot information of multiple snapshots in the picture sequence.
  • the snapshot information of a snapshot includes location information of the snapshot in the picture sequence and the snapshot time of the snapshot.
  • the storage device can acquire the picture sequence and the snapshot information of the plurality of snapshot pictures sent by the snapshot device.
  • the storage device receives a snapshot file sent by the snapshot device, and acquires the picture sequence and the snapshot information of the plurality of snapshot pictures from the received snapshot file.
  • the storage device generates an index identifier of the picture sequence according to the picture sequence.
  • the index identification is the number of the picture sequence, which is used to uniquely indicate the picture sequence.
  • the storage device can assign an index identifier to each received picture sequence according to a preset rule. In a possible implementation manner, the storage device assigns each picture sequence to the storage device according to the sequence in which each picture sequence arrives at the storage device. Allocate the index ID. For example, the index identification of the first picture sequence reaching the storage device is 00001, the index identification of the second picture sequence reaching the storage device is 00002, and so on.
  • the storage device generates index information of the plurality of snapshot pictures according to the index identifier and the snapshot information of the plurality of snapshot pictures, and the index information of a snapshot picture includes the position information of the snapshot picture in the picture sequence, the snapshot information. time and the index ID.
  • the storage device adds the position information of the snapped picture in the picture sequence, the snapping time of the snapped picture, and the index identifier of the picture sequence into an empty index information to obtain the index information of the snapped picture.
  • the storage device stores the index information of the snapped picture in association with the picture sequence.
  • the storage device stores the picture sequence in the target storage space indicated by the target storage address, and stores the target storage address in association with the index information of the snapped picture, so as to realize the index information of the snapped picture and the picture sequence.
  • Perform associative storage is a local storage space of the storage device, a storage space of other storage devices, or a cloud storage space.
  • the index information of the F snapshot pictures are index information 0-F respectively
  • the snapshot times of the F snapshot pictures are respectively time 1-K
  • the position information They are respectively 1-F, wherein, F is an integer greater than 2, and K is a numerical value greater than 2, see the association table shown in Table 1.
  • the storage device sends the index information of the snapped picture to the user equipment.
  • the user equipment receives the index information of the captured picture.
  • the user equipment After receiving the index information of the snapped picture, the user equipment stores the index information of the snapped picture, so as to subsequently query the storage device for the snapped picture based on the index information, and display the index information of the snapped picture for the user to consult.
  • the user equipment generates a snapshot picture query request, where the snapshot picture query request is used to indicate the query target snapshot picture.
  • the snapshot image of the target is the snapshot image to be queried.
  • the snapshot image query request includes at least one of index information of the target snapshot image, a snapshot time of the target snapshot image, and a time period in which the snapshot time is located.
  • the snapshot picture query request further includes a target image format, where the target image format is an image format of the picture returned by the requesting storage device.
  • the generation of the snapshot image query request is triggered by a user operation, and the user can input the index information of the target snapshot image, the snapshot time of the target snapshot image, and the location of the snapshot time in the query interface of the user equipment.
  • At least one of the time periods, and/or the target image format perform a query operation in the query interface, and when the user equipment detects the query operation, trigger the user equipment to generate based on the information input by the user in the query interface.
  • the user equipment sends the snapshot image query request to the storage device.
  • the storage device receives the snapshot image query request.
  • the storage device determines the target snapshot image to be stored according to the snapshot image query request.
  • the storage device determines the snapshot image indicated by the index information in the stored snapshot image as the target snapshot image.
  • the storage device obtains at least one index information corresponding to the snapshot time in the snapshot image query request from the correspondence between the snapshot time and the index information, and stores the snapshot
  • the at least one snapped picture indicated by the at least one index information in the picture is determined as the target snapped picture.
  • the storage device obtains at least one index information corresponding to the time period from the corresponding relationship between the snapshot time and the index information, and stores the at least one index in the snapshot image.
  • the at least one snapshot indicated by the information is determined to be the target snapshot.
  • the storage device queries the target snapshot picture from the stored picture sequence, and sends the queried target snapshot picture to the user equipment.
  • the storage device obtains the position information of the target snapshot picture in the picture sequence from the index information of the target snapshot picture, and determines whether the target snapshot picture is the first snapshot picture in the picture sequence according to the position information . If the target snapped picture is the first snapped picture in the picture sequence, the storage device executes step 711, otherwise, executes step 712.
  • the storage device determines the target storage address of the picture sequence corresponding to the index information of the target snapshot picture according to the corresponding relationship between the index information and the storage address of the picture sequence, and the storage device determines the target storage address of the picture sequence according to the target snapshot picture in the picture sequence.
  • the location information in the target storage address is queried for the target snapshot stored in the storage space corresponding to the target storage address.
  • the storage device sends the queried target snapshot image to the user equipment, or The picture sequence; if the target image format carried in the snapshot picture query request is different from the image format of the queried target snapshot picture, the storage device executes the process shown in steps 713-714.
  • the storage device sends the picture sequence to the user equipment.
  • any snapshot except the first snapshot in the sequence of pictures is obtained by the snapshot device according to at least one snapshot before the snapshot in the sequence of pictures, the decoding of any picture needs to use
  • the storage device sends the picture sequence to the user equipment, or sends the target snapshot picture and the snapshot picture before the target snapshot picture in the picture sequence to the user equipment . If the target image format carried in the snapshot image query request is different from the image format of the queried target snapshot image, the storage device executes the processes shown in steps 713-714.
  • the storage device sends the F snapshot pictures to the user equipment, or the picture The first, second and third snapshots in the sequence are sent to the user equipment.
  • the storage device acquires the decoded data of the target snapshot.
  • the decoded data is a video frame data, that is, the original video data of the captured picture of the target.
  • the storage device performs intra-frame decoding on the target snapped picture to obtain the decoded data.
  • the storage device determines, according to the image format of the target snapshot picture, a first encoding algorithm used in the capture process of the target snapshot picture, and adopts the inverse algorithm of the first encoding algorithm to perform intra-frame processing on the target snapshot picture. decoding.
  • the storage device queries the stored picture sequence for at least one snapshot before the target snapshot picture picture, and based on the at least one snapped picture, perform inter-frame decoding on the target snapped picture to obtain the decoded data.
  • the storage device sequentially performs inter-frame decoding on the at least one snapped picture according to the inverse algorithm of the first encoding algorithm used by the snapped picture, and when the at least one snapped picture is obtained.
  • the storage device performs inter-frame decoding on the target snapped picture according to the decoded data of the last snapped picture.
  • the process that the storage device sequentially performs inter-frame decoding on the at least one captured picture according to the inverse algorithm of the first encoding algorithm used by the snapshot device is: the storage device performs the inter-frame decoding according to the inverse algorithm of the first encoding algorithm. Algorithm, perform intra-frame decoding on the first picture in the at least one snapped picture, obtain the decoded data of the first picture, and according to the decoded data of the first picture, decode the second picture in the at least one snapped picture Inter-frame decoding is performed on each picture, and so on, until the decoded data of the last picture in the at least one captured picture is obtained.
  • the storage device first performs intra-frame decoding on the snapped picture 1 in the picture sequence to obtain the decoded data of the snapped picture 1, and then, according to the snapped picture 1 the decoded data, perform inter-frame decoding on the snapshot picture 2 in the picture sequence to obtain the decoded data of the snapshot picture 2, and finally, perform inter-frame decoding on the snapshot picture 3 according to the decoded data of the snapshot picture 2, and obtain the snapshot picture 3 decoded data.
  • the storage device sends the decoded data to the user equipment after acquiring the decoded data of the target snapshot picture.
  • the storage device encodes the decoded data into an encoded picture in the target image format.
  • the storage device performs HEIF decoding on the target snapshot image to obtain decoded data of the target snapshot image, and performs JPEG encoding on the decoded data, Get an encoded image whose image format is JPEG.
  • the storage device sends the encoded picture to the user equipment.
  • the process shown in the above steps 707-715 is a process in which the storage device returns pictures to the user equipment based on the snapshot image query request, and in a possible implementation manner, the storage device does not need to be based on the snapshot image query request. , you can actively send pictures to the user equipment.
  • the storage device sends the picture sequence and the snapshot information of each snapshot picture in the picture sequence to the user equipment.
  • the storage device obtains the picture sequence, it decodes the picture sequence to obtain decoded data of each snapped picture in the picture sequence, and sends the decoded data of each snapped picture to the user equipment, or decodes each snapped picture.
  • the decoded data of the picture is encoded into an encoded picture in the target image format, and the encoded picture in the target image format is sent to the user equipment.
  • the storage device since the snapshot pictures in the picture sequence are encoded according to the existing snapshot pictures in the picture sequence, redundant information between the snapshot pictures in the picture sequence can be reduced, and the captured pictures can be reduced. If the amount of data is large, the storage device does not need to provide a large storage space for the snapshot image when storing the snapshot image encoded in this way, thereby reducing the cost of the storage device.
  • the storage device can also decode the queried snapshot picture, and re-encode the decoded data into an encoded picture in the image format required by the user equipment, thereby It can realize the compatibility of picture management.
  • taking the picture sequence including the snapshot pictures in HEIF format refer to the flowchart of a picture management method provided by an embodiment of the present application shown in FIG. 8 .
  • the storage device After receiving a snapshot sequence file in HEIF format (referred to as HEIF file in FIG. 8 ), the storage device generates index information of each snapshot in the picture sequence in the snapshot sequence file, and compares the index information of each snapshot with the snapshot sequence text or The picture sequence in the snapshot sequence file is stored in association to realize the release, wherein the index information of a snapshot image includes the index identifier of the snapshot image sequence, the snapshot time of the snapshot image, and the offset of the snapshot image in the image sequence.
  • the storage device When receiving a snapshot image query request including index information, if the snapshot image query request has no format requirements for the queried image, the storage device downloads and captures the index information in the snapshot image query request from each stored image sequence. The corresponding picture sequence, and send the downloaded picture sequence to the user equipment; if the snapshot picture query request requires the return of the snapshot picture in JPEG format, the storage device decodes the downloaded picture sequence, and performs JPEG encoding on the decoded data obtained by decoding.
  • the storage device will perform a sequence of downloaded pictures. Decoding, to obtain the decoded data of the picture sequence, and sending the decoded data of the picture sequence to the user equipment.
  • the storage device forwards the snapshot sequence file to the user equipment without querying by the user equipment.
  • the storage device decodes the picture sequence in the snapshot sequence file, and sends the decoded data obtained by decoding to the user equipment, or the storage device decodes the decoded data obtained by decoding.
  • the data is encoded in JPEG, and the encoded JPEG file is forwarded to the user equipment without querying by the user equipment.
  • FIG. 9 is a schematic structural diagram of a picture capture device provided by an embodiment of the present application, and the device 900 includes:
  • an acquisition module 901 configured to acquire a snapshot signal, where the snapshot signal is used to instruct the video stream to be captured;
  • the obtaining module 901 is further configured to obtain the video frame data of the current moment in the video stream;
  • An encoding module 902 configured to perform inter-frame encoding on the video frame data based on at least one captured picture in the picture sequence if the snapshot device is in a target snapshot state to obtain a target snapshot image;
  • the adding module 903 is configured to add the target snapshot picture to the picture sequence.
  • the acquiring module 901 is further configured to acquire another said snapshot signal
  • the obtaining module 901 is further configured to obtain the video frame data of the current moment in the video stream;
  • the encoding module 902 is further configured to perform intra-frame encoding on the video frame data if the capture device is in a non-target capture state to obtain the first capture picture in the picture sequence, the non-target capture state It is used to instruct to take a snapshot of the first snapshot in the picture sequence.
  • the apparatus 900 further includes:
  • a modification module configured to modify the capture state of the capture device from the non-target capture state to the target capture state.
  • the modification module is further configured to modify the capture state of the capture device from the target capture state to the non-target if the target capture picture is the last capture picture of the picture sequence. Capture status.
  • the apparatus 900 further includes:
  • An output module configured to output the picture sequence and the snapshot information of a plurality of snapshot pictures in the picture sequence, the snapshot information of a snapshot picture includes the position information of the snapshot picture in the picture sequence and the snapshot of the snapshot picture time.
  • the output module is used for:
  • the sequence end control signal When the sequence end control signal is in a valid state, the picture sequence and the snapshot information of the plurality of snapshot pictures are encapsulated into a snapshot sequence file, and the sequence end control signal is used to indicate whether the snapshot of the picture sequence ends;
  • the snapshot sequence file is output.
  • the first snapshot picture of the picture sequence is an intra-frame coded frame
  • the snapshot pictures other than the first snapshot picture in the picture sequence are inter-frame prediction coded frames.
  • sequence start control signal is in an invalid state
  • the capture device is in the target capture state
  • sequence start control signal is used to indicate whether to capture the first captured picture in the sequence of pictures
  • the capturing device is in the target capturing state
  • the snapping device is in the target snapping state.
  • the target snapshot state is used to indicate that the snapshot pictures in the picture sequence are captured.
  • FIG. 10 is a schematic structural diagram of a picture storage device provided by an embodiment of the present application.
  • the device 1000 includes:
  • a receiving module 1001 configured to receive a captured picture sequence and snapshot information of a plurality of snapshot pictures in the picture sequence, where the snapshot information of a snapshot picture includes the position information of the snapshot picture in the picture sequence and the snapshot picture capture time;
  • a generating module 1002 configured to generate an index identifier of the picture sequence according to the picture sequence
  • the generating module 1002 is further configured to generate index information of the plurality of snapshot pictures according to the index identifier and the snapshot information of the plurality of snapshot pictures, where the index information of the snapshot pictures includes the location information, the snapshot time and the index identifier;
  • the storage module 1003 is configured to store the index information in association with the picture sequence.
  • the apparatus 1000 includes a first sending module:
  • the receiving module 1001 is further configured to receive a snapshot image query request, where the snapshot image query request is used to indicate a query target snapshot image;
  • the first sending module is configured to, if the target snapshot picture belongs to the picture sequence, send the picture sequence to the user equipment, or send the target snapshot picture and all the pictures in the picture sequence to the user equipment. The snapshot before the target snapshot is taken.
  • the first sending module is further configured to, if the target snapshot picture is the first snapshot picture in the picture sequence, query the target snapshot picture from the stored picture sequence; Send the queried target snapshot picture to the user equipment.
  • the apparatus 1000 further includes:
  • an acquisition module configured to acquire the decoded data of the target snapshot picture when the target image format is different from the stored image format of the target snapshot picture
  • an encoding module for encoding the decoded data into an encoded picture of the target image format
  • a second sending module configured to send the encoded picture to the user equipment.
  • the obtaining module is used for:
  • inter-frame decoding is performed on the target snapshot to obtain the decoded data.
  • the snapshot image query request includes at least one of index information of the target snapshot image, a snapshot time of the target snapshot image, and a time period to which the snapshot time belongs.
  • the picture storage device provided in the above-mentioned embodiment stores the captured picture
  • only the division of the above-mentioned functional modules is used as an example for illustration. That is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the image storage method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
  • Embodiments of the present application further provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, where the computer instructions are stored in a computer-readable storage medium, and the processor of the capture device is obtained from the computer-readable storage medium. After reading the computer instructions, the processor executes the computer instructions, so that the capturing device executes the above-mentioned picture capturing method.
  • Embodiments of the present application also provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, where the computer instructions are stored in a computer-readable storage medium, and the processor of the storage device is obtained from the computer-readable storage medium. After reading the computer instructions, the processor executes the computer instructions, so that the storage device executes the above picture storage method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本申请公开了一种图片抓拍方法、图片存储方法、系统、设备以及存储介质,属于图片处理技术领域。本方法通过基于图片序列中的抓拍图片,对视频流中当前时刻的视频帧数据进行帧间编码,以实现本次抓拍,而由于本次抓拍到的抓拍图片是参考图片序列中的抓拍图片进行帧间编码而来,从而能够降低图片序列中各个抓拍图片之间的冗余信息,降低了抓拍图片的数据量,则存储设备在存储该抓拍图片时,无需为该抓拍图片提供较大的存储空间,从而降低了存储设备的成本。

Description

图片抓拍方法、图片存储方法、系统、设备以及存储介质
本申请要求于2020年09月17日提交的申请号为202010982791.8、发明名称为“图片抓拍方法、图片存储方法、系统、设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及图片处理技术领域,特别涉及一种图片抓拍方法、图片存储方法、系统、设备以及存储介质。
背景技术
随着视频监控领域智能化比例越来越高,越来越多的摄像机具备了图片抓拍功能,一般在监控录像的采集过程中,摄像机可以进行图片抓拍,并将抓拍到的图片发送给存储设备,由存储设备对摄像机抓拍到的图片进行存储。
目前,图片抓拍的过程可以是:当接收到抓拍触发信号时,摄像机对录制的视频流中的某一视频帧数据进行联合图像专家组(joint photographic experts group,JPEG)编码,得到抓拍图片,并将该抓拍图片存储至存储设备。
由于JPEG编码的压缩率较低,则抓拍图片携带有大量的冗余信息,导致抓拍图片的数据量较大,当摄像机抓拍到的抓拍图片较多时,则需要较大存储空间的存储设备来存储大量的抓拍图片,从而提高了存储设备的成本。
发明内容
本申请实施例提供了一种图片抓拍方法、图片存储方法、系统、设备以及存储介质,能够降低存储抓拍图片时存储设备的成本。
第一方面,提供了一种图片抓拍方法,应用于抓拍设备,所述方法包括:
获取抓拍信号,获取视频流中当前时刻的视频帧数据;若所述抓拍设备处于目标抓拍状态,基于图片序列中的至少一个抓拍图片,对所述视频帧数据进行帧间编码,得到目标抓拍图片;将所述目标抓拍图片添加至所述图片序列;
其中,所述抓拍信号用于指示对视频流进行抓拍。
该方法通过基于图片序列中的抓拍图片,对视频流中当前时刻的视频帧数据进行帧间编码,以实现本次抓拍,而由于本次抓拍到的抓拍图片是参考图片序列中的抓拍图片进行帧间编码而来,从而能够降低图片序列中各个抓拍图片之间的冗余信息,降低了抓拍图片的数据量,则存储设备在存储该抓拍图片时,无需为该抓拍图片提供较大的存储空间,从而降低了存储设备的成本。
在一种可能的实现方式中,所述获取抓拍信号之前,所述方法还包括:
获取另一个所述抓拍信号;获取所述视频流中当前时刻的视频帧数据;若所述抓拍设备处于非目标抓拍状态,对所述视频帧数据进行帧内编码,得到所述图片序列中的第一个抓拍 图片,所述非目标抓拍状态用于指示对图片序列中的第一个抓拍图片进行抓拍。
在一种可能的实现方式中,所述对所述视频帧数据进行帧内编码之后,所述方法还包括:
将所述抓拍设备的抓拍状态由所述非目标抓拍状态修改为所述目标抓拍状态。
在一种可能的实现方式中,所述将所述目标抓拍图片添加至所述图片序列之后,所述方法还包括:
若所述目标抓拍图片为所述图片序列的最后一个抓拍图片,则将所述抓拍设备的抓拍状态由所述目标抓拍状态修改为所述非目标抓拍状态。
在一种可能的实现方式中,所述将所述目标抓拍图片添加至所述图片序列之后,所述方法还包括:
输出所述图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间。
在一种可能的实现方式中,所述输出所述图片序列以及所述图片序列中多个抓拍图片的抓拍信息包括:
当序列结束控制信号处于有效状态时,将所述图片序列以及所述多个抓拍图片的抓拍信息封装为抓拍序列文件;输出所述抓拍序列文件,其中,所述序列结束控制信号用于指示图片序列抓拍是否结束。
在一种可能的实现方式中,所述图片序列的第一个抓拍图片为帧内编码帧,所述图片序列中除所述第一个抓拍图片以外的抓拍图片均为帧间预测编码帧。
在一种可能的实现方式中,若序列起始控制信号处于无效状态,则所述抓拍设备处于所述目标抓拍状态,所述序列起始控制信号用于指示是否对图片序列中的第一个抓拍图片进行抓拍;或,若所述图片序列的起始抓拍时刻至所述当前时刻的时长小于目标时长,则所述抓拍设备处于所述目标抓拍状态;或,若在所述当前时刻所述图片序列中抓拍图片的数量小于目标数量,则所述抓拍设备处于所述目标抓拍状态。
在一种可能的实现方式中,所述目标抓拍状态用于指示对图片序列中的抓拍图片进行抓拍。
第二方面,提供一种图片存储方法,所述方法包括:
接收抓拍到的图片序列以及所述图片序列中多个抓拍图片的抓拍信息;根据所述图片序列,生成所述图片序列的索引标识;根据所述索引标识以及所述多个抓拍图片的抓拍信息,生成所述多个抓拍图片的索引信息;将所述索引信息与所述图片序列进行关联存储;
其中,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间,所述抓拍图片的索引信息包括所述位置信息、所述抓拍时间以及所述索引标识。
在该方法中,由于图片序列中抓拍图片是根据图片序列中已存在的抓拍图片编码而来,从而能够降低图片序列中各个抓拍图片之间的冗余信息,降低了抓拍图片的数据量,则存储设备在存储这种方式编码来的抓拍图片时,无需为该抓拍图片提供较大的存储空间,从而降低了存储设备的成本。
在一种可能的实现方式中,所述将所述索引信息与所述图片序列进行关联存储之后,所述方法包括:
接收抓拍图片查询请求;若所述目标抓拍图片属于所述图片序列,向用户设备发送所述 图片序列,或,向所述用户设备发送所述目标抓拍图片以及所述图片序列中所述目标抓拍图片之前的抓拍图片,其中,所述抓拍图片查询请求用于指示查询目标抓拍图片。
在一种可能的实现方式中,所述接收抓拍图片查询请求之后,所述方法还包括:
若所述目标抓拍图片为所述图片序列中的第一个抓拍图片,则从存储的所述图片序列中,查询所述目标抓拍图片;向用户设备发送查询到的所述目标抓拍图片。
在一种可能的实现方式中,所述抓拍图片查询请求包括目标图像格式,所述接收抓拍图片查询请求之后,所述方法还包括:
当所述目标图像格式与存储的所述目标抓拍图片的图像格式不同时,获取所述目标抓拍图片的解码数据;将所述解码数据编码为所述目标图像格式的编码图片;向所述用户设备发送所述编码图片。
基于上述可能的实现方式,当用户设备查询的抓拍图片与用户设备要求的图像格式不一致时,存储设备还能对查询到的抓拍图片进行解码,并将解码数据重新编码为用户设备要求的图像格式的编码图片,从而能够实现图片管理的兼容性。
在一种可能的实现方式中,所述获取所述目标抓拍图片的解码数据包括:
若所述目标抓拍图片属于所述图片序列,查询存储的所述图片序列中所述目标抓拍图片之前的至少一个抓拍图片;基于所述至少一个抓拍图片,对所述目标抓拍图片进行帧间解码,得到所述解码数据。
在一种可能的实现方式中,所述抓拍图片查询请求包括所述目标抓拍图片的索引信息、所述目标抓拍图片的抓拍时间和所述抓拍时间所属的时间段中的至少一项。
第三方面,提供一种图片抓拍系统,所述系统包括抓拍设备和存储设备;所述抓拍设备执行上述第一方面或上述第一方面的任一种可选方式提供的图片抓拍方法;所述存储设备执行上述第二方面或上述第二方面的任一种可选方式提供的图片存储方法。
第四方面,提供了一种图片抓拍装置,用于执行上述图片抓拍方法。具体地,该图片抓拍装置包括用于执行上述第一方面或上述第一方面的任一种可选方式提供的图片抓拍方法的功能模块。
第五方面,提供了一种图片存储装置,用于执行上述图片存储方法。具体地,该图片存储装置包括用于执行上述第二方面或上述第二方面的任一种可选方式提供的图片存储方法的功能模块。
第六方面,提供一种抓拍设备,该抓拍设备包括处理器和存储器,该存储器中存储有至少一条程序代码,该程序代码由该处理器加载并执行以实现上述第一方面或上述第一方面的任一种可选方式提供的图片抓拍方法所执行的操作。
第七方面,提供一种存储设备,该抓拍设备包括处理器和存储器,该存储器中存储有至少一条程序代码,该程序代码由该处理器加载并执行以上述第二方面或上述第二方面的任一种可选方式提供的图片存储方法所执行的操作。
第八方面,提供一种计算机可读存储介质,该存储介质中存储有至少一条程序代码,该程序代码由处理器加载并执行以实现如上述任一方法所执行的操作。
第九方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括程序代码,该程序代码存储在计算机可读存储介质中,计算机设备的处理器从计算机可读存储介质读取该程序代码,处理器执行该程序代码,使得该计算机设备执行上述任一方法。
附图说明
图1是本申请实施例提供的一种图片抓拍系统的示意图;
图2是本申请实施例提供的一种抓拍模块的结构示意图;
图3是本申请实施例提供的一种序列起始控制信号的控制机制示意图;
图4是本申请实施例提供的另一种抓拍设备的结构示意图;
图5是本申请实施例提供的一种存储设备的结构示意图;
图6是本申请实施例提供的一种图片抓拍方法的流程图;
图7是本申请实施例提供的一种存储方法的流程图;
图8是本申请实施例提供的一种图片管理方法的流程图;
图9是本申请实施例提供的一种图片抓拍装置的结构示意图;
图10是本申请实施例提供的一种图片存储装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
图1是本申请实施例提供的一种图片抓拍系统的示意图,参见图1,该系统100包括抓拍设备101、存储设备102以及用户设备103。其中,该抓拍设备101,用于基于抓拍信号,对视频流进行图片抓拍,得到图片序列,并将抓拍到的图片序列发送至存储设备102,由存储设备102存储该图片序列。该抓拍设备101每获取到一次抓拍信号,就对视频流抓拍一次,得到一个抓拍图片,该图片序列包括多个抓拍图片。在一种可能的实现方式中,在一个图片序列的抓拍过程中,当第一次获取到抓拍信号时,该抓拍设备101对该视频流中当前时刻的视频帧数据进行帧内编码,得到图片序列中的第一个抓拍图片,以实现本次抓拍。当第二次获取到该抓拍信号时,该抓拍设备101基于该图片序列中的第一个抓拍图片,对该视频流中当前时刻的视频帧数据进行帧间编码,得到图片序列中的第二个抓拍图片,以实现本次抓拍。当第三次获取到该抓拍信号时,该抓拍设备101基于图片序列中的至少一个抓拍图片,对该视频流中当前时刻的视频帧数据进行帧间编码,得到图片序列中的第三个抓拍图片,以实现本次抓拍,以此类推,直至该图片序列抓拍完成。可选地,该抓拍设备101是摄像机或者服务器,本申请实施例对该抓拍设备101不做具体限定。
在一种可能的实现方式中,该抓拍设备101包括抓拍触发模块1011以及抓拍模块1012。该抓拍触发模块1011用于生成抓拍信号,并向抓拍模块1012发送生成的抓拍信号,以便抓拍模块1012在接收到抓拍信号时对视频流进行抓拍。可选地,该抓拍触发模块1011基于传感器的检测结果、图像识别的识别结果或人工触发,生成该抓拍信号,其中该检测结果或识别结果均用于指示抓拍对象,该抓拍对象也即是抓拍图片中的对象,例如车辆或人,本申请实施例对该抓拍对象不做具体限定。可选地,道路上设置有传感器,当该传感器检测到有车辆经过该道路时,该传感器向该抓拍触发模块1011发送检测结果,当接收到该检测结果后,该抓拍触发模块1011生成该抓拍信号。可选地,该抓拍触发模块1011实时对视频流中的视频帧数据进行图像识别,当识别到抓拍对象时,生成该抓拍信号。可选地,用户对该抓拍设备101进行抓拍触发操作,当该抓拍触发模块1011检测到该抓拍触发操作后,生成该抓拍信 号。
该抓拍模块1012,用于获取视频流,从抓拍触发模块1011接收抓拍信号,当接收到抓拍信号后,对视频流进行图片抓拍,并将抓拍到的图片序列发送至存储设备102。
在一种可能的实现方式中,该抓拍模块1012包括控制单元21、编码器22、缓存单元23以及打包单元24,例如图2所示的本申请实施例提供的一种抓拍模块的结构示意图。其中,控制单元21,用于生成序列起始控制信号以及序列结束控制信号,并将序列起始控制信号发送至编码器22,以指示编码器22是否对图片序列中的第一个抓拍图片进行抓拍,并将序列结束控制信号发送至打包单元24,以指示图片序列是否抓拍完成,由该打包单元24是否对该图片序列进行打包。
该编码器22,用于接收视频流、序列起始控制信号以及抓拍信号,并根据序列起始控制信号以及抓拍信号,对视频流进行图片抓拍,得到图片序列,并将抓拍到的图片序列以及该图片序列中各个抓拍图片的抓拍信息发送至缓存单元23,由缓存单元23进行存储。在一种可能的实现方式中,当接收到抓拍信号时,该编码器22根据该序列起始控制信号,确定抓拍设备101的抓拍状态,若该抓拍设备101的抓拍状态为非目标抓拍状态,则编码器22对该视频流中当前时刻的视频帧数据进行帧内编码,得到图片序列中的第一个抓拍图片,若该抓拍设备101的抓拍状态为目标抓拍状态,说明正在抓拍的图片序列中至少存在第一个抓拍图片,则该编码器22基于图片序列中的至少一个抓拍图片,对视频流中当前时刻的视频帧数据进行帧间编码,得到目标抓拍图片,并将该目标图片添加至图片序列,作为当前时刻该图片序列中的最后一个抓拍图片,直至该图片序列抓拍完成。其中,该非目标抓拍状态用于指示对图片序列中的第一个抓拍图片进行抓拍;该目标抓拍状态用于指示对图片序列中的抓拍图片进行抓拍;该目标抓拍图片为图片序列中除第一个抓拍图片以外的任一抓拍图片。在一种可能的实现方式中,该编码器22根据该序列起始控制信号,确定抓拍设备101的抓拍状态的过程是:该编码器22确定控制单元21输出的序列起始控制信号的状态,若该序列起始控制信号处于有效状态,说明该编码器22要开始对一个新的图片序列进行抓拍,也即是要对新的图片序列中的第一个抓拍图片进行抓拍,则该编码器22确定该抓拍设备101的抓拍状态为非目标抓拍状态,若该序列起始控制信号处于无效状态,说明当前正在抓拍的图片序列还未抓拍完成,则不能对新的图片序列中的第一个抓拍图片进行抓拍,仍要对当前正在抓拍的图片序列继续抓拍,则该编码器22确定该抓拍设备101的抓拍状态为目标抓拍状态。
缓存单元23,用于接收编码器22发送的图片序列以及该图片序列中各个抓拍图片的抓拍信息,并存储图片序列以及该图片序列中各个抓拍图片的抓拍信息。
打包单元24,用于接收控制单元21发送的序列结束控制信号,当接收到的序列结束控制信号处于有效状态时,说明编码器22已经抓拍完成一个图片序列,则该打包单元24从缓存单元23中获取该图片序列以及该图片序列中各个抓拍图片的抓拍信息,并将该图片序列以及该图片序列中各个抓拍图片的抓拍信息打包为一个抓拍文件,发送至存储设备102,由存储设备102进行存储。在一种可能的实现方式中,该打包单元24仅将图片序列打包为一个抓拍文件,将该抓拍文件与该图片序列中各个抓拍图片的抓拍信息一起发送至存储设备102。当该序列结束控制信号处于无效状态时,说明编码器22还未抓拍完成图片序列,则该打包单元24不能从缓存单元23中获取该图片序列以及该图片序列中各个抓拍图片的抓拍信息。
在一种可能的实现方式中,序列起始控制信号的状态由控制单元21来实时控制。可选地, 当该抓拍设备101的系统上电后,该控制单元21向编码器22实时输出处于有效状态的序列起始控制信号,当编码器22接收到抓拍信号后,若序列起始控制信号处于有效状态,说明此时抓拍设备101处于非目标状态,则编码器22对视频流进行抓拍,得到图片序列的第一个抓拍图片,并向控制单元21反馈一个第一信号,该第一信号用于指示图片序列中的第一个抓拍图片已经抓拍完成;当控制单元21接收到第一信号后,向编码器22输出处于无效状态的序列起始控制信号,并开始计时,此时抓拍设备101处于目标状态,后续编码器22再接收到抓拍信号时,基于图片序列中的至少一个抓拍图片,对视频流进行帧间编码,得到目标抓拍图片;当计时经过目标时长后,该控制单元21向编码器22输出处于有效状态的序列起始控制信号,使得抓拍设备101再次处于非目标抓拍状态,编码器22开始抓拍下一个图片序列。以目标时长为n为例,参见图3所示的本申请实施例提供的一种序列起始控制信号的控制机制示意图。抓拍设备101的系统上电后,控制单元21输出的序列起始控制信号处于有效状态,以指示编码器22对图片序列的第一个抓拍图片进行抓拍,当编码器22接收到抓拍信号(用于抓拍触发)后,编码器22对图片序列的第一个抓拍图片进行抓拍,当第一个抓拍图片抓拍完成后,控制单元21输出处于无效状态的序列起始控制信号,以指示编码器22对图片序列中除第一个抓拍图片以外的抓拍图片进行抓拍,且控制单元21内的计数器/计时器启动,开始计数/计时;在计数/计时的期间,编码器22可能接收到多次抓拍触发信号,由于序列起始控制信号一直处于无效状态,当编码器22每接收到一次抓拍触发信号时,则基于图片序列的中的至少一个图片,对视频流中当前时刻的视频帧数据进行帧间编码;当计数/计时结果为n时,计数/计时超时,则计数/计时复位为0,图片序列抓拍完成,控制单元21再次输出处于有效状态的序列起始控制信号,并通知打包单元24进行打包,以此类推。其中,n为大于0的数值。在另一种可能的实现方式中,当用户在该抓拍设备101上进行了用于触发该序列起始控制信号处于有效状态的第一操作,且该控制单元21检测到了该第一操作时,则触发该控制单元21向该编码器22输出处于有效状态的序列起始控制信号;当用户在该抓拍设备101上进行了用于触发该序列起始控制信号处于无效状态的第二操作,且该控制单元21检测到了该第二操作时,则触发该控制单元21向该编码器22输出处于无效状态的序列起始控制信号。
在一种可能的实现方式中,该序列结束控制信号是否处于有效状态也由控制单元21来实时控制。可选地,当该抓拍设备101的系统上电后,该控制单元21向打包单元24实时输出处于无效状态的序列结束控制信号,当控制单元21向编码器22输出的序列起始控制信号由无效状态变化为有效状态之后,说明编码器22已经抓拍出一个图片序列,则控制单元21能够向打包单元24输出处于有效状态的序列结束控制信号,以通知打包单元24进行打包;当打包单元24确定接收的序列结束控制信号处于有效状态,则打包单元24能够从缓存单元23中获取一个图片序列,并对获取到的图片序列进行打包。在另一种可能的实现方式中,可选地,当该抓拍设备101的系统上电后,该控制单元21向打包单元24实时输出处于无效状态序列结束控制信号,当用户在该抓拍设备101上进行了用于触发该序列结束控制信号处于有效状态的第三操作,且该控制单元21检测到了该第三操作时,则触发该控制单元21向打包单元24输出处于有效状态的序列结束控制信号。
存储设备102,用于接收抓拍设备101发送的图片序列以及该图片序列中各个抓拍图片的抓拍信息,生成图片序列中各个抓拍图片的索引信息,并将每个抓拍图片的索引信息与该图片序列进行关联存储,并向用户设备103发送各个抓拍图片的索引信息,以便用户设备103 来查询抓拍图片。存储设备102,还用于当接收到用户设备103发送的抓拍图片查询请求时,根据抓拍图片查询请求携带的索引信息,查询存储的抓拍图片,并向用户设备103发送查询到的抓拍图片。可选地,该存储设备102是一个服务器,或者是一个服务器集群,该存储设备102能够将图片序列存储在本地,也能够将图片序列存储在其他设备,或云存储系统。
用户设备103,用于接收存储设备发送的各个抓拍图片的索引信息,向存储设备102发送抓拍图片查询请求,接收并显示存储设备102返回的抓拍图片。可选地,该用户设备103是手机、电脑等终端设备。
图4是本申请实施例提供的另一种抓拍设备的结构示意图,该抓拍设备400可因配置或性能不同而产生比较大的差异,包括一个或一个以上的处理器401和一个或一个以上的存储器402,其中,所述存储器402中存储有至少一条程序代码,所述至少一条程序代码由所述处理器401加载并执行以实现下述各个方法实施例中抓拍设备所执行的操作。当然,该抓拍设备400还能够具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该抓拍设备400还包括其他用于实现设备功能的部件,在此不做赘述。
图5是本申请实施例提供的一种存储设备的结构示意图,该存储设备500可因配置或性能不同而产生比较大的差异,包括一个或一个以的处理器501和一个或一个以上的存储器502,其中,所述存储器502中存储有至少一条程序代码,所述至少一条程序代码由所述处理器501加载并执行以实现下述各个方法实施例中存储设备所执行的操作。当然,该存储设备500还能够具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该存储设备500还包括其他用于实现设备功能的部件,在此不做赘述。
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括程序代码的存储器,上述程序代码可由终端中的处理器执行以完成下述实施例中的方法。例如,该计算机可读存储介质是只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、只读光盘(compact disc read-only memory,CD-ROM)、磁带、软盘和光数据存储设备等。
抓拍设备能够抓拍多个图片序列,每个图片序列包括多个抓拍图片,每个抓拍图片为抓拍设备在获取到抓拍信号时,对视频流中的视频帧数据进行编码所得到的图片,为了进一步说明抓拍设备抓拍一个图片序列的抓拍过程,参见如图6所示的本申请实施例提供的一种图片抓拍方法的流程图。
601、该抓拍设备获取抓拍信号,该抓拍信号用于指示对视频流进行抓拍。
本步骤601能够由抓拍设备中的抓拍模块来执行,其中抓拍模块获取抓拍信号的过程,在上文中有相关介绍,在此,本申请实施例对本步骤601不做赘述。
602、该抓拍设备获取视频流中当前时刻的视频帧数据。
该视频流包括多个视频帧数据,每个视频数据组成一个视频帧,该视频流中的视频帧数据均是未编码的原始视频数据。可选地,该视频流是该抓拍设备实时录制的视频流,例如在车辆监控场景中,抓拍设备对道路上行驶的车辆进行实时录制,得到该视频流,可选地,此时该抓拍设备是摄像机。或者,该视频流为该抓拍设备从其他设备获取的,例如该抓拍设备获取摄像机录制的视频流,或者获取解码设备解码出的视频流,可选地,此时该抓拍设备可以服务器。
该抓拍设备能够实时获取该视频流,以便当该抓拍设备获取到抓拍信号后,从实时获取 的该视频流中获取当前时刻的视频帧数据,以便该抓拍设备对该视频帧数据进行编码,以实现图片抓拍。
603、该抓拍设备确定该抓拍设备的抓拍状态,该抓拍状态包括非目标抓拍状态或目标抓拍状态。
其中,该非目标抓拍状态用于指示对图片序列中的第一个抓拍图片进行抓拍,该目标抓拍状态用于指示对图片序列中的抓拍图片进行抓拍,例如对图片序列中除第一个抓拍图片以外的抓拍图片进行抓拍。在一种可能的实现方式中,该抓拍设备基于当前时刻序列起始控制信号的状态、在当前时刻图片序列中抓拍图片的个数、该图片序列的已抓拍时长或存储的抓拍状态,确定该抓拍设备的抓拍状态。其中,该序列起始控制信号用于指示是否对图片序列中的第一个抓拍图片进行抓拍;该图片序列为当前时刻正在抓拍的图片序列。该图片序列的已抓拍时长为该图片序列的起始抓拍时刻至当前时刻的时长,该起始抓拍时刻为该图片序列中第一个抓拍图片的抓拍时间。当前时刻也及时抓拍设备获取到抓拍信号的时刻。
可选地,若在当前时刻序列起始控制信号处于有效状态,由于该序列起始控制信号用于指示对图片序列中的第一个抓拍图片进行抓拍,则该抓拍设备确定该抓拍状态为非目标状态;若在当前时刻该序列起始信号处于无效状态,则该抓拍设备不对图片序列中的第一个抓拍图片进行抓拍,则该抓拍设备确定该抓拍状态为目标状态。也即是,若序列起始控制信号处于无效状态,则抓拍设备处于目标抓拍状态,若序列起始控制信号处于有效状态,则该抓拍设备处于非目标抓拍状态。
可选地,抓拍设备获取该图片序列的起始抓拍时刻,若该图片序列的起始抓拍时刻至当前时刻的时长大于或等于目标时长,其中,目标时长为抓拍一个图片序列所用的总时长,则说明该图片序列已经抓拍完成,开始抓拍下一个图片序列,则该抓拍设备确定该抓拍状态为非目标抓拍状态;由于该起始抓拍时刻为该图片序列中第一个抓拍图片的抓拍时间,若该图片序列的起始抓拍时刻至当前时刻的时长小于目标时长,则说明该图片序列还未抓拍完成,且该图片序列中的第一个抓拍图片已经抓拍完成,还需对图片序列中除第一个抓拍图片以外的抓拍图片进行抓拍,则该抓拍设备确定该抓拍状态为目标抓拍状态。也即是,若该图片序列的起始抓拍时刻至该当前时刻的时长小于目标时长,则该抓拍设备处于该目标抓拍状态,否则,该抓拍设备处于非目标抓拍状态。
可选地,抓拍设备获取在当前时刻该图片序列中抓拍图片的数量,若在当前时刻该图片序列中抓拍图片的数量大于或等于目标数量,其中,目标数量为预设的图片序列中抓拍图片的总数量,则说明该图片序列已经抓拍完成,开始抓拍下一个图片序列,则该抓拍设备确定该抓拍状态为非目标抓拍状态;若在当前时刻该图片序列中抓拍图片的数量小于目标数量,说明该图片序列还未抓拍完成,且该图片序列中的第一个抓拍图片已经抓拍完成,还需对图片序列中除第一个抓拍图片以外的抓拍图片进行抓拍,则该抓拍设备确定该抓拍状态为目标抓拍状态。也即是,若在该当前时刻该图片序列中抓拍图片的数量小于目标数量,则该抓拍设备处于该目标抓拍状态,否则,该抓拍设备处于非目标状态。
可选地,该抓拍设备还能够存储有该抓拍设备的抓拍状态,若在当前时刻存储的抓拍状态为非目标状态,则该抓拍设备确定该抓拍状态为非目标抓拍状态,若在当前时刻存储的抓拍状态为目标状态,则该抓拍设备确定该抓拍状态为目标抓拍状态。在初始时,该抓拍设备将该抓拍设备的抓拍状态存储为非目标抓拍状态,当抓拍到一个图片序列的第一个抓拍图片 时,该抓拍设备将存储的抓拍状态修改为目标抓拍状态,当该图片序列抓拍完成后,该抓拍设备再将存储的抓拍状态修改为非目标状态,并开始抓拍下一个图片序列。
需要说明的是,本步骤603能够由抓拍设备内的编码器来执行。在一种可能的实现方式中,控制单元不向编码器发送序列起始控制信号,而是向编码器发送序列起始消息,该序列起始消息用于指示对图片序列中的第一个抓拍图片进行抓拍,当编码器接收到该序列起始消息时,确定该抓拍状态为非目标状态;该控制单元还能够向编码器发送序列结束消息,该序列结束消息用于指示对图片序列中除第一个抓拍图片以外的抓拍图片进行抓拍,当编码器接收到该序列结束消息时,确定该抓拍状态为目标状态。
604、若该抓拍设备处于非目标抓拍状态,该抓拍设备对当前时刻的视频帧数据进行帧内编码,得到该图片序列中的第一个抓拍图片。
该第一个抓拍图片是帧内(intra)编码帧,也即是I帧。当该抓拍设备处于非目标抓拍状态时,说明该抓拍设备要开始抓拍一个图片序列,则该抓拍设备对当前时刻的视频帧数据进行帧内编码,得到该图片序列中的第一个抓拍图片。
该抓拍设备能够采用高于JPEG编码的压缩率的第一编码方式,对该视频帧数据进行帧内编码,得到该图片序列中的第一个抓拍图片。该第一编码方式包括高效率图档格式(high efficiency image file format,HEIF)编码方式、Webp编码方式、便携式网络图形(portable network graphics,PNG)编码方式以及位图(bitmap,BMP编码方式)等。
605、该抓拍设备将抓拍状态由非目标抓拍状态修改为目标抓拍状态。
由于此时图片序列中的第一个抓拍图片已经抓拍完成,则还须对该图片序列中除该第一个抓拍图片以外的抓拍图片进行抓拍,则该抓拍设备将抓拍状态修改为目标状态,以指示对图片序列中除第一个抓拍图片以外的抓拍图片进行抓拍。
在一种可能的实现方式中,本步骤605所示的过程能够由抓拍设备中的控制单元来执行。可选地,控制单元停止向编码器输出处于有效状态的序列起始控制信号,而是向编码器输出处于无效状态的序列起始控制信号,从而使得该抓拍设备的抓拍状态为由非目标抓拍状态转变为目标抓拍状态,以实现抓拍状态的修改。
在一种可能的实现方式中,本步骤605所示的过程能够由抓拍设备中的编码器来执行。可选地,编码器将存储的抓拍状态由非目标抓拍状态修改为目标抓拍状态,以实现抓拍状态的修改。
若该抓拍设备处于目标抓拍状态,当该抓拍设备每接收到一次抓拍信号时,均基于该图片序列中的至少一个抓拍图片,对当前时刻的视频帧数据进行帧间编码,得到图片序列中除第一个抓拍图片以外的一个抓拍图片,为了进一步说明该抓拍设备对图片序列中除第一个抓拍图片以外的任一抓拍图片进行抓拍的过程,请参见下述步骤606-611。
606、该抓拍设备获取另一个该抓拍信号。
本步骤606所示的过程与上述步骤601所示的过程同理,在此,本申请实施例对本步骤606不做赘述。
607、该抓拍设备获取该视频流中当前时刻的视频帧数据。
本步骤607所示的过程与上述步骤602所示的过程同理,在此,本申请实施例对本步骤607不做赘述。
需要说明的是,本步骤607中的当前时刻与上述步骤602中的当前时刻并不是同一个时 刻,本步骤607中的当前时刻为该抓拍设备在步骤606中获取到抓拍信号的时刻,而上述步骤602中的当前时刻为该抓拍设备在上述步骤601中获取到抓拍信号的时刻。
608、该抓拍设备确定该抓拍设备的抓拍状态。
本步骤608所示的过程与上述步骤603所示的过程同理,在此,本申请实施例对本步骤608不做赘述。
609、若该抓拍设备处于目标抓拍状态,该抓拍设备基于图片序列中的至少一个抓拍图片,对该视频帧数据进行帧间编码,得到目标抓拍图片。
该目标抓拍图片是帧间预测(predicted)编码帧,也即是P帧。该目标抓拍图片也即是基于新接收的抓拍信号所抓拍到的图片,其中,新接收的抓拍信号为步骤606中所接收的抓拍信号。该至少一个抓拍图片包括该图片序列中的第一个抓拍图片,或在当前时刻该图片序列中的最后M个抓拍图片,其中M为大于或等于1的整数。当该至少一个抓拍图片包括在当前时刻该图片序列中的最后M个抓拍图片时,若M等于1,则该在当前时刻该图片序列中的最后1个抓拍图片,也即是上一次抓拍到的抓拍图片。
当该抓拍设备处于目标抓拍状态时,说明该抓拍图片序列还未抓拍完成,且该图片序列中的第一个抓拍图片已经抓拍完成,此时该图片序列中存在至少一个抓拍图片,则该抓拍设备能够基于图片序列中的至少一个抓拍图片,对该视频帧数据进行帧间编码。在一种可能的实现方式中,该抓拍设备采用该第一编码方式,以该图片序列中的至少一个抓拍图片为参考帧,对该视频帧数据进行帧间预测编码,得到该目标抓拍图片。
本申请实施例以该至少一个抓拍图片为在当前时刻该图片序列中的最后1个抓拍图片为例进行说明,若在当前时刻该图片序列包括1-3个抓拍图片,依次为抓拍图片1-3,则抓拍图片1为第一个抓拍图片,抓拍图片2为第二个抓拍图片,抓拍图片3为第三个抓拍图片,则该抓拍设备将该抓拍图片3作为参考帧,对该视频帧数据进行帧间编码,得到抓拍图片4,该抓拍图片4也即是本次抓拍到的目标抓拍图片。
610、该抓拍设备将该目标抓拍图片添加至该图片序列。
该抓拍设备将该目标抓拍图片添加在该图片序列的末尾,那么,当该目标抓拍图片添加至该图片序列后,该目标抓拍图片为在当前时刻该图片序列中的最后一个抓拍图片。仍以目标抓拍图片为抓拍图片4为例,该抓拍设备将该抓拍图片4放置在抓拍图片3之后,从而使得在当前时刻该图片序列为抓拍图1、抓拍图2、抓拍图3、抓拍图4。
由于该图片序列中已经存在该第一个抓拍图片,则该目标抓拍图片也即是该图片序列中除第一个抓拍图片以外的一个抓拍图片。
需要说明的是,当抓拍设备每抓拍到一个抓拍图片后,记录该抓拍图片的抓拍信息。在一种可能的实现方式中,抓拍设备中的编码器每抓拍到一个抓拍图片后,记录该抓拍图片的抓拍信息,该抓拍信息包括该抓拍图片在其所属的图片序列的位置信息以及该抓拍图片的抓拍时间,其中,该位置信息是该抓拍图片在其所属的图片序列的偏移量(offset),可选地,该偏移量是该抓拍图片在其所属的图片序列中的编号,例如图片序列中的第一个抓拍图片的编号为1,图片序列中的第二个抓拍图片的编号为2,以此类推。该抓拍图片的抓拍时间是在抓拍该抓拍图片时获取抓拍信号的时间,或者该抓拍图片的编码时间。则上述步骤603中,可选地,该抓拍设备获取该图片序列的起始抓拍时刻的过程是:该抓拍设备获取该图片序列中第一个抓拍图片的抓拍信息,从该第一个抓拍图片的抓拍信息中获取该第一个抓拍图片的 抓拍时间,并将该第一个抓拍图片的抓拍时间确定为该图片序列的起始抓拍时刻。
611、该抓拍设备确定该目标抓拍图片是否为该图片序列中的最后一个抓拍图片。
在一种可能的实现方式中,该抓拍设备基于在当前时刻该图片序列中抓拍图片的个数或该图片序列的已抓拍时长,确定该目标抓拍图片是否为该图片序列中的最后一个图片。
在一种可能的实现方式中,若在当前时刻该图片序列中抓拍图片的个数大于或等于该目标数量,则该抓拍图片序列已经抓拍完成,该目标抓拍图片为该图片序列中的最后一个图片,否则,该目标抓拍图片不是该图片序列中的最后一个图片。
在一种可能的实现方式中,若该图片序列的已抓拍时长大于或等于目标时长,则该抓拍图片序列已经抓拍完成,该目标抓拍图片为该图片序列中的最后一个图片,否则,该目标抓拍图片不是该图片序列中的最后一个图片。
若该目标抓拍不是该图片序列中的最后一个图片,说明该图片序列还未抓拍完成,则该抓拍设备跳转执行步骤606-611所示的过程。也即是步骤606-611所示的过程为该抓拍设备对图片序列中除第一个抓拍图片以外的任一抓拍图片进行抓拍的过程,是一个循环过程,直至该图片序列抓拍完成。
612、若该目标抓拍图片为该图片序列中的最后一个抓拍图片,该抓拍设备将该抓拍状态由目标抓拍状态修改为非目标抓拍状态。
若该目标抓拍图片为该图片序列中的最后一个抓拍图片,则此时该图片序列已经抓拍完成,开始进行下一个图片序列的抓拍,只有在抓拍设备处于非目标抓拍状态时,该抓拍设备才能抓拍下一个图片序列的第一个抓拍图片,因此,该抓拍设备将该抓拍状态修改为非目标状态,以指示对图片序列中的第一个抓拍图片进行抓拍。
在一种可能的实现方式中,本步骤612所示的过程能够由抓拍设备中的控制单元来执行。可选地,控制单元停止向编码器输出处于无效状态的序列起始控制信号,而是向编码器输出处于有效状态的序列起始控制信号,从而使得该抓拍设备的抓拍状态为由目标状态转变为非目标抓拍状态,以实现抓拍状态的修改。
在一种可能的实现方式中,本步骤612所示的过程能够由抓拍设备中的编码器来执行。可选地,编码器将存储的抓拍状态由目标抓拍状态修改为非目标抓拍状态,以实现抓拍状态的修改。
当本步骤612所示的过程由该抓拍设备中的编码器来执行时,若该目标抓拍图片是该第图片序列中的最后一个图片,则该图片序列抓拍完成,该编码器将该图片序列以及该图片序列中多个抓拍图片的抓拍信息转移至缓存单元,由缓存单元存储。
613、若该目标抓拍图片是该图片序列中的最后一个图片,则抓拍设备向存储设备发送该图片序列以及该图片序列中多个抓拍图片的抓拍信息。
若该目标抓拍图片是该图片序列中的最后一个图片,说明该图片序列抓拍完成,则抓拍设备向存储设备发送该图片序列以及多个抓拍图片的抓拍信息。
本步骤613所示的过程也即是该抓拍设备输出该图片序列以及该多个抓拍图片的抓拍信息的过程。在一种可能的实现方式中,本步骤613所示的过程包括下述步骤6131-6132。
步骤6131、当序列结束控制信号处于有效状态时,该抓拍设备将该图片序列以及该多个抓拍图片的抓拍信息封装为抓拍序列文件,该序列结束控制信号用于指示图片序列抓拍是否结束。
本步骤6311所示的过程能够由该抓拍设备中的打包单元来执行,当序列结束控制信号处于有效状态时,说明该图片序列已经抓拍完成,则该打包单元从缓存单元中获取该图片序列以及该多个抓拍图片的抓拍信息,并将该图片序列以及该多个抓拍图片的抓拍信息封装为一个抓拍序列文件,其中,该多个抓拍图片的抓拍信息作为该图片序列的元数据存储在该抓拍序列文件中。
步骤6132、该抓拍设备向存储设备发送该抓拍序列文件。
本步骤6132所示过程的能够由该抓拍设备中的打包单元来执行。
在另外一种可能的实现方式中,该抓拍设备不生成该抓拍序列文件,不向存储设备发送该抓拍序列文件,而是将该图片序列和该多个抓拍图片的抓拍信息分别作为一个个体发送该存储设备。
本申请实施例提供的方法,通过基于图片序列中的抓拍图片,对视频流中当前时刻的视频帧数据进行帧间编码,以实现本次抓拍,而由于本次抓拍到的抓拍图片是参考图片序列中的抓拍图片进行帧间编码而来,从而能够降低图片序列中各个抓拍图片之间的冗余信息,降低了抓拍图片的数据量,则存储设备在存储该抓拍图片时,无需为该抓拍图片提供较大的存储空间,从而降低了存储设备的成本。
当存储设备获取到该抓拍设备输出的图片序列后,为该图片序列中的各个抓拍图片分配索引信息,存储该图片序列,并向用户设备发送各个抓拍图片的索引信息,以便用户设备查询各个抓拍图片。为了进一步说明该过程,请参见图7所示的本申请实施例提供的一种图片存储方法的流程图。
701、该存储设备接收抓拍到的图片序列以及该图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括该抓拍图片在该图片序列的位置信息和该抓拍图片的抓拍时间。
该存储设备能够获取该抓拍设备发送的该图片序列以及该多个抓拍图片的抓拍信息。在一种可能的实现方式中,该存储设备接收该抓拍设备发送的抓拍文件,从接收到的抓拍文件中获取该图片序列以及该多个抓拍图片的抓拍信息。
702、该存储设备根据该图片序列,生成该图片序列的索引标识。
该索引标识是该图片序列的编号,用于唯一指示该图片序列。该存储设备能够根据预设规则为接收到的每个图片序列分配索引标识,在一种可能的实现方式中,该存储设备根据每个图片序列到达该存储设备的先后顺序,为每个图片序列分配索引标识。例如第一个达到该存储设备的图片序列的索引标识为00001,第二个达到该存储设备的图片序列的索引标识为00002,以此类推。
703、该存储设备根据该索引标识以及该多个抓拍图片的抓拍信息,生成该多个抓拍图片的索引信息,一个该抓拍图片的索引信息包括该抓拍图片在该图片序列的位置信息、该抓拍时间以及该索引标识。
该存储设备将该抓拍图片在该图片序列的位置信息、该抓拍图片的抓拍时间以及该图片序列的索引标识,添加在一个空的索引信息中,以得到该抓拍图片的索引信息。
704、对于该图片序列中的任一抓拍图片,该存储设备将该抓拍图片的索引信息与该图片序列进行关联存储。
该存储设备将该图片序列存储在目标存储地址所指示的目标存储空间中,并将该目标存储地址与该抓拍图片的索引信息进行关联存储,以实现将该抓拍图片的索引信息与该图片序 列进行关联存储。可选地,该目标存储空间是该存储设备本地的存储空间、其他存储设备的存储空间或者是云存储空间。
以该图片序列包括F个抓拍图片,索引表示为S为例,该F个抓拍图片的索引信息分别为索引信息0-F,该F个抓拍图片的抓拍时间分别为时间1-K,位置信息分别为1-F,其中,F为大于2的整数,K为大于2的数值,参见表1所示的关联表。
表1
Figure PCTCN2021101906-appb-000001
705、该存储设备向用户设备发送该抓拍图片的索引信息。
706、该用户设备接收该抓拍图片的索引信息。
当该用户设备接收到该抓拍图片的索引信息后,存储该抓拍图片的索引信息,以便后续基于该索引信息向存储设备查询该抓拍图片,显示该抓拍图片的索引信息,以便用户查阅。
707、该用户设备生成抓拍图片查询请求,该抓拍图片查询请求用于指示查询目标抓拍图片。
该目标抓拍图片为待查询的抓拍图片。该抓拍图片查询请求包括该目标抓拍图片的索引信息、该目标抓拍图片的抓拍时间以及该抓拍时间所在的时间段中的至少一个。在一种可能的实现方式中,该抓拍图片查询请求还包括目标图像格式,该目标图像格式为请求存储设备返回的图片的图像格式。
在一种可能的实现方式中,抓拍图片查询请求的生成由用户操作触发,用户能够在该用户设备的查询界面内输入该目标抓拍图片的索引信息、目标抓拍图片的抓拍时间、该抓拍时间所在的时间段中至少一个,和/或该目标图像格式,在该查询界面内执行查询操作,当该用户设备检测到该查询操作时,触发该用户设备基于查询界面内用户所输入的信息,生成该抓拍图片请求。
708、该用户设备向存储设备发送该抓拍图片查询请求。
709、该存储设备接收该抓拍图片查询请求。
710、该存储设备根据该抓拍图片查询请求,确定存储的目标抓拍图片。
当该抓拍图片查询请求包括索引信息时,该存储设备将存储的抓拍图片中该索引信息所指示的抓拍图片,确定为该目标抓拍图片。
当该抓拍图片查询请求仅包括抓拍时间时,该存储设备从抓拍时间与索引信息之间的对应关系中,获取该抓拍图片查询请求中的抓拍时间所对应的至少一个索引信息,将存储的抓拍图片中该至少一个索引信息所指示的至少一个抓拍图片,确定为目标抓拍图片。
当该抓拍图片查询请求仅包括时间段时,该存储设备从抓拍时间与索引信息之间的对应关系中,获取该时间段所对应的至少一个索引信息,将存储的抓拍图片中该至少一个索引信息所指示的至少一个抓拍图片,确定为目标抓拍图片。
711、若该目标抓拍图片为图片序列中的第一个抓拍图片,则该存储设备从存储的该图片序列中,查询该目标抓拍图片,向该用户设备发送查询到的该目标抓拍图片。
该存储设备从该目标抓拍图片的索引信息中,获取该目标抓拍图片在该图片序列中的位置信息,并根据该位置信息,确定该目标抓拍图片是否为该图片序列中的第一个抓拍图片。若该目标抓拍图片为该图片序列中的第一个抓拍图片,则该存储设备执行本步骤711,否则执行步骤712。
该存储设备根据索引信息与图片序列的存储地址之间的对应关系,确定该目标抓拍图片的索引信息所对应的该图片序列的目标存储地址,该存储设备并根据该目标抓拍图片在该图片序列中的位置信息,查询该目标存储地址对应的存储空间中所存储的该目标抓拍图片。
若该抓拍图片查询请求未携带目标图像格式,或该抓拍图片查询请求携带的目标图像格式与该目标抓拍图片的图像格式相同时,则该存储设备向用户设备发送查询到的目标抓拍图片,或该图片序列;若该抓拍图片查询请求携带的目标图像格式与查询到的目标抓拍图片的图像格式不同时,则该存储设备执行步骤713-714所示的过程。
712、若该目标抓拍图片为该图片序列中除第一个抓拍图片以外的抓拍图片,该存储设备向该用户设备发送该图片序列。
由于该图片序列中除第一个抓拍图片以外的任一抓拍图片,均是抓拍设备根据该图片序列内该任一抓拍图片之前的至少一个抓拍图片编码得到,则该任一图片的解码需要用到该至少一个抓拍图片,若该抓拍图片查询请求未携带目标图像格式,或该抓拍图片查询请求携带的目标图像格式与该目标抓拍图片的图像格式相同时,为了便于用户设备在获取到该目标抓拍图片后,能够对该目标抓拍图片进行解码,则该存储设备向该用户设备发送该图片序列,或,向该用户设备发送该目标抓拍图片以及该图片序列中该目标抓拍图片之前的抓拍图片。若该抓拍图片查询请求携带的目标图像格式与查询到的目标抓拍图片的图像格式不同时,则该存储设备执行步骤713-714所示的过程。
仍以该图片序列包括F个抓拍图片为例,若该目标抓拍图片为该图片序列中的第三个抓拍图片,则该存储设备将该F个抓拍图片发送给该用户设备,或将该图片序列中的第一个、第二个以及第三个抓拍图片发送给该用户设备。
713、若该抓拍图片查询请求包括目标图像格式,且该目标图像格式与存储的该目标抓拍图片的图像格式不同,该存储设备获取该目标抓拍图片的解码数据。
该解码数据为一个视频帧数据,也即是该目标抓拍图片的原始视频数据。
在一种可能的实现方式中,若该目标抓拍图片为该图片序列中的第一个抓拍图片,则该存储设备对该目标抓拍图片进行帧内解码,得到该解码数据。可选地,该存储设备根据该目标抓拍图片的图像格式,确定目标抓拍图片抓拍过程中所采用的第一编码算法,并采用该第一编码算法的逆算法,对该目标抓拍图片进行帧内解码。
在一种可能的实现方式中,若该目标抓拍图片为该图片序列中除第一个抓拍图片以外的抓拍图片,则该存储设备查询存储的该图片序列中该目标抓拍图片之前的至少一个抓拍图片,并基于该至少一个抓拍图片,对该目标抓拍图片进行帧间解码,得到该解码数据。可选地,在查询到该至少一个抓拍图片后,该存储设备根据抓拍设备所使用的第一编码算法的逆算法依次对该至少一个抓拍图片进行帧间解码,当得到该至少一个抓拍图片中最后一个抓拍图片的解码数据后,该存储设备根据该最后一个抓拍图片的解码数据,对该目标抓拍图片进行帧间解码。
在一种可能的实现方式中,该存储设备根据抓拍设备所使用的第一编码算法的逆算法依 次对该至少一个抓拍图片进行帧间解码的过程是:该存储设备根据第一编码算法的逆算法,对该至少一个抓拍图片中的第一个图片进行帧内解码,得到该第一个图片的解码数据,并根据该第一个图片的解码数据,对该至少一个抓拍图片中该第二个图片进行帧间解码,以此类推,直至获取到该至少一个抓拍图片中最后一个图片的解码数据。其中,该至少一个图片中的第一个图片为该图片序列中的第一个抓拍图片,该至少一个图片中的最后一个图片为该图片序列中该目标抓拍图片的上一个抓拍图片。以该目标抓拍图片为该图片序列中的抓拍图片3为例,该存储设备先对该图片序列中的抓拍图片1进行帧内解码,得到抓拍图片1的解码数据,然后,再根据抓拍图片1的解码数据,对该图片序列中的抓拍图片2进行帧间解码,得到抓拍图片2的解码数据,最后,再根据抓拍图片2的解码数据,对抓拍图片3进行帧间解码,得到抓拍图片3的解码数据。
在另一种可能的实现方式中,若该目标图像格式用于指示图片的原始视频数据时,则当该存储设备获取到该目标抓拍图片的解码数据后,向用户设备发送解码数据。
714、该存储设备将该解码数据编码为该目标图像格式的编码图片。
以目标抓拍图片的图像格式为HEIF格式,目标图像格式为JPEG格式为例,该存储设备对该目标抓拍图片进行HEIF解码,得到该目标抓拍图片的解码数据,并对该解码数据进行JPEG编码,得到图像格式为JPEG的编码图片。
715、该存储设备向该用户设备发送该编码图片。
需要说明的是,上述步骤707-715所示的过程为存储设备基于抓拍图片查询请求,向用户设备返回图片的过程,而在一种可能的实现方式中,该存储设备无需基于抓拍图片查询请求,就能够主动向用户设备发送图片。可选地,当该存储设备获取到图片序列后,向用户设备发送该图片序列以及该图片序列中各个抓拍图片的抓拍信息。可选地,当该存储设备获取到图片序列后,对该图片序列进行解码,得到该图片序列中的各个抓拍图片的解码数据,并向用户设备发送各个抓拍图片的解码数据,或者将各个抓拍图片的解码数据编码为目标图像格式的编码图片,向用户设备发送目标图像格式的编码图片。
在本申请实施例提供的方法中,由于图片序列中抓拍图片是根据图片序列中已存在的抓拍图片编码而来,从而能够降低图片序列中各个抓拍图片之间的冗余信息,降低了抓拍图片的数据量,则存储设备在存储这种方式编码来的抓拍图片时,无需为该抓拍图片提供较大的存储空间,从而降低了存储设备的成本。并且,当用户设备查询的抓拍图片与用户设备要求的图像格式不一致时,存储设备还能对查询到的抓拍图片进行解码,并将解码数据重新编码为用户设备要求的图像格式的编码图片,从而能够实现图片管理的兼容性。
为了进一步说明步骤701-715所示的过程,以图片序列包括HEIF格式的抓拍图片为例,参见图8所示的本申请实施例提供的一种图片管理方法的流程图。当接收到HEIF格式的抓拍序列文件(在图8中简称HEIF文件)后,存储设备生成该抓拍序列文件中图片序列内各个抓拍图片的索引信息,将各个抓拍图片的索引信息与抓拍序列文或抓拍序列文件中的图片序列进行关联存储,以实现下盘,其中,一个抓拍图片的索引信息包括图片序列的索引标识、该抓拍图片的抓拍时间以及该抓拍图片在图片序列中的偏移量。当接收到包括索引信息的抓拍图片查询请求时,若抓拍图片查询请求没有对查询的图片有格式上的要求,则存储设备从存储的各个图片序列中,下载与抓拍图片查询请求中的索引信息对应的图片序列,并将下载的图片序列发送给用户设备;若抓拍图片查询请求要求返回JPEG格式的抓拍图片,则存储 设备对下载的图片序列进行解码,并对解码得到的解码数据进行JPEG编码,从而得到JPEG文件,并将PEG文件发送给用户设备,其中JPEG文件包括至少一个JPEG格式的抓拍图片;若抓拍图片查询请求要求返回查询的图片的解码数据,则存储设备对下载的图片序列进行解码,得到该图片序列的解码数据,将该图片序列的解码数据发送给用户设备。或者,当接收到HEIF格式的抓拍序列文件后,存储设备将该抓拍序列文件转发给用户设备,无需用户设备查询。或者,当接收到HEIF格式的抓拍序列文件后,存储设备对该抓拍序列文件中的图片序列进行解码,并将解码得到的解码数据发送给用户设备,或者是,存储设备对将解码得到的解码数据进行JPEG编码,并将编码得到的JPEG文件转发给用户设备,无需用户设备查询。
图9是本申请实施例提供的一种图片抓拍装置的结构示意图,该装置900包括:
获取模块901,用于获取抓拍信号,所述抓拍信号用于指示对视频流进行抓拍;
所述获取模块901,还用于获取所述视频流中当前时刻的视频帧数据;
编码模块902,用于若所述抓拍设备处于目标抓拍状态,基于图片序列中的至少一个抓拍图片,对所述视频帧数据进行帧间编码,得到目标抓拍图片;
添加模块903,用于将所述目标抓拍图片添加至所述图片序列。
可选地,所述获取模块901,还用于获取另一个所述抓拍信号;
所述获取模块901,还用于获取所述视频流中当前时刻的视频帧数据;
所述编码模块902,还用于若所述抓拍设备处于非目标抓拍状态,对所述视频帧数据进行帧内编码,得到所述图片序列中的第一个抓拍图片,所述非目标抓拍状态用于指示对图片序列中的第一个抓拍图片进行抓拍。
可选地,所述装置900还包括:
修改模块,用于将所述抓拍设备的抓拍状态由所述非目标抓拍状态修改为所述目标抓拍状态。
可选地,所述修改模块,还用于若所述目标抓拍图片为所述图片序列的最后一个抓拍图片,则将所述抓拍设备的抓拍状态由所述目标抓拍状态修改为所述非目标抓拍状态。
可选地,所述装置900还包括:
输出模块,用于输出所述图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间。
可选地,所述输出模块用于:
当序列结束控制信号处于有效状态时,将所述图片序列以及所述多个抓拍图片的抓拍信息封装为抓拍序列文件,所述序列结束控制信号用于指示图片序列抓拍是否结束;
输出所述抓拍序列文件。
可选地,所述图片序列的第一个抓拍图片为帧内编码帧,所述图片序列中除所述第一个抓拍图片以外的抓拍图片均为帧间预测编码帧。
可选地,若序列起始控制信号处于无效状态,则所述抓拍设备处于所述目标抓拍状态,所述序列起始控制信号用于指示是否对图片序列中的第一个抓拍图片进行抓拍;
或,若所述图片序列的起始抓拍时刻至所述当前时刻的时长小于目标时长,则所述抓拍设备处于所述目标抓拍状态;
或,若在所述当前时刻所述图片序列中抓拍图片的数量小于目标数量,则所述抓拍设备处于所述目标抓拍状态。
可选地,所述目标抓拍状态用于指示对图片序列中的抓拍图片进行抓拍。
需要说明的是:上述实施例提供的图片抓拍装置在进行图片抓拍时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的图片抓拍方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
图10是本申请实施例提供的一种图片存储装置的结构示意图,该装置1000包括:
接收模块1001,用于接收抓拍到的图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间;
生成模块1002,用于根据所述图片序列,生成所述图片序列的索引标识;
所述生成模块1002,还用于根据所述索引标识以及所述多个抓拍图片的抓拍信息,生成所述多个抓拍图片的索引信息,所述抓拍图片的索引信息包括所述位置信息、所述抓拍时间以及所述索引标识;
存储模块1003,用于将所述索引信息与所述图片序列进行关联存储。
可选地,所述装置1000包括第一发送模块:
所述接收模块1001,还用于接收抓拍图片查询请求,所述抓拍图片查询请求用于指示查询目标抓拍图片;
所述第一发送模块,用于若所述目标抓拍图片属于所述图片序列,向用户设备发送所述图片序列,或,向所述用户设备发送所述目标抓拍图片以及所述图片序列中所述目标抓拍图片之前的抓拍图片。
可选地,所述第一发送模块,还用于若所述目标抓拍图片为所述图片序列中的第一个抓拍图片,则从存储的所述图片序列中,查询所述目标抓拍图片;向用户设备发送查询到的所述目标抓拍图片。
可选地,所述装置1000还包括:
获取模块,用于当所述目标图像格式与存储的所述目标抓拍图片的图像格式不同时,获取所述目标抓拍图片的解码数据;
编码模块,用于将所述解码数据编码为所述目标图像格式的编码图片;
第二发送模块,用于向所述用户设备发送所述编码图片。
可选地,所述获取模块用于:
若所述目标抓拍图片属于所述图片序列,查询存储的所述图片序列中所述目标抓拍图片之前的至少一个抓拍图片;
基于所述至少一个抓拍图片,对所述目标抓拍图片进行帧间解码,得到所述解码数据。
可选地,所述抓拍图片查询请求包括所述目标抓拍图片的索引信息、所述目标抓拍图片的抓拍时间和所述抓拍时间所属的时间段中的至少一项。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
需要说明的是:上述实施例提供的图片存储装置在存储抓拍图片时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的图片存储方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中,抓拍设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该抓拍设备执行上述图片抓拍方法。
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中,存储设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该存储设备执行上述图片存储方法。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (18)

  1. 一种图片抓拍方法,其特征在于,应用于抓拍设备,所述方法包括:
    获取抓拍信号,所述抓拍信号用于指示对视频流进行抓拍;
    获取所述视频流中当前时刻的视频帧数据;
    若所述抓拍设备处于目标抓拍状态,基于图片序列中的至少一个抓拍图片,对所述视频帧数据进行帧间编码,得到目标抓拍图片;
    将所述目标抓拍图片添加至所述图片序列。
  2. 根据权利要求1所述的方法,其特征在于,所述获取抓拍信号之前,所述方法还包括:
    获取另一个所述抓拍信号;
    获取所述视频流中当前时刻的视频帧数据;
    若所述抓拍设备处于非目标抓拍状态,对所述视频帧数据进行帧内编码,得到所述图片序列中的第一个抓拍图片,所述非目标抓拍状态用于指示对图片序列中的第一个抓拍图片进行抓拍。
  3. 根据权利要求1所述的方法,其特征在于,所述将所述目标抓拍图片添加至所述图片序列之后,所述方法还包括:
    输出所述图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间。
  4. 根据权利要求1-3任一项权利要求所述的方法,其特征在于,所述图片序列的第一个抓拍图片为帧内编码帧,所述图片序列中除所述第一个抓拍图片以外的抓拍图片均为帧间预测编码帧。
  5. 根据权利要求1-3任一项权利要求所述的方法,其特征在于,
    若序列起始控制信号处于无效状态,则所述抓拍设备处于所述目标抓拍状态,所述序列起始控制信号用于指示是否对图片序列中的第一个抓拍图片进行抓拍;
    或,若所述图片序列的起始抓拍时刻至所述当前时刻的时长小于目标时长,则所述抓拍设备处于所述目标抓拍状态;
    或,若在所述当前时刻所述图片序列中抓拍图片的数量小于目标数量,则所述抓拍设备处于所述目标抓拍状态。
  6. 根据权利要求1-3任一项权利要求所述的方法,其特征在于,所述目标抓拍状态用于指示对图片序列中的抓拍图片进行抓拍。
  7. 一种图片存储方法,其特征在于,所述方法包括:
    接收抓拍到的图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的 抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间;
    根据所述图片序列,生成所述图片序列的索引标识;
    根据所述索引标识以及所述多个抓拍图片的抓拍信息,生成所述多个抓拍图片的索引信息,所述抓拍图片的索引信息包括所述位置信息、所述抓拍时间以及所述索引标识;
    将所述索引信息与所述图片序列进行关联存储。
  8. 根据权利要求7所述的方法,其特征在于,所述将所述索引信息与所述图片序列进行关联存储之后,所述方法包括:
    接收抓拍图片查询请求,所述抓拍图片查询请求用于指示查询目标抓拍图片;
    若所述目标抓拍图片属于所述图片序列,向用户设备发送所述图片序列,或,向所述用户设备发送所述目标抓拍图片以及所述图片序列中所述目标抓拍图片之前的抓拍图片。
  9. 根据权利要求7或8所述的方法,其特征在于,所述抓拍图片查询请求包括目标图像格式,所述接收抓拍图片查询请求之后,所述方法还包括:
    当所述目标图像格式与存储的所述目标抓拍图片的图像格式不同时,获取所述目标抓拍图片的解码数据;
    将所述解码数据编码为所述目标图像格式的编码图片;
    向所述用户设备发送所述编码图片。
  10. 根据权利要求9所述的方法,其特征在于,所述获取所述目标抓拍图片的解码数据包括:
    若所述目标抓拍图片属于所述图片序列,查询存储的所述图片序列中所述目标抓拍图片之前的至少一个抓拍图片;
    基于所述至少一个抓拍图片,对所述目标抓拍图片进行帧间解码,得到所述解码数据。
  11. 一种图片抓拍系统,其特征在于,所述系统包括抓拍设备和存储设备;
    所述抓拍设备用于:
    获取抓拍信号,所述抓拍信号用于指示对视频流进行抓拍;
    获取所述视频流中当前时刻的视频帧数据;
    若所述抓拍设备处于目标抓拍状态,基于图片序列中的至少一个抓拍图片,对所述视频帧数据进行帧间编码,得到所述当前时刻的目标抓拍图片;
    将所述目标抓拍图片添加至所述图片序列;
    向所述存储设备输出所述图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间;
    所述存储设备用于:
    接收抓拍到的所述图片序列以及所述多个抓拍图片的抓拍信息;
    根据所述图片序列,生成所述图片序列的索引标识;
    根据所述索引标识以及所述多个抓拍图片的抓拍信息,生成所述多个抓拍图片的索引信 息,所述抓拍图片的索引信息包括所述位置信息、所述抓拍时间以及所述索引标识;
    将所述索引信息与所述图片序列进行关联存储。
  12. 一种图片抓拍装置,其特征在于,所述装置包括:
    获取模块,用于获取抓拍信号,所述抓拍信号用于指示对视频流进行抓拍;
    所述获取模块,还用于获取所述视频流中当前时刻的视频帧数据;
    编码模块,用于若所述抓拍设备处于目标抓拍状态,基于图片序列中的至少一个抓拍图片,对所述视频帧数据进行帧间编码,得到目标抓拍图片;
    添加模块,用于将所述目标抓拍图片添加至所述图片序列。
  13. 根据权利要求12所述的装置,其特征在于,
    所述获取模块,还用于获取另一个所述抓拍信号;
    所述获取模块,还用于获取所述视频流中当前时刻的视频帧数据;
    所述编码模块,还用于若所述抓拍设备处于非目标抓拍状态,对所述视频帧数据进行帧内编码,得到所述图片序列中的第一个抓拍图片,所述非目标抓拍状态用于指示对图片序列中的第一个抓拍图片进行抓拍。
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:
    输出模块,用于输出所述图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间。
  15. 根据权利要求12-14任一项权利要求所述的装置,其特征在于,所述图片序列的第一个抓拍图片为帧内编码帧,所述图片序列中除所述第一个抓拍图片以外的抓拍图片均为帧间预测编码帧。
  16. 一种图片存储装置,其特征在于,所述装置包括:
    接收模块,用于接收抓拍到的图片序列以及所述图片序列中多个抓拍图片的抓拍信息,一个抓拍图片的抓拍信息包括所述抓拍图片在所述图片序列的位置信息和所述抓拍图片的抓拍时间;
    生成模块,用于根据所述图片序列,生成所述图片序列的索引标识;
    所述生成模块,还用于根据所述索引标识以及所述多个抓拍图片的抓拍信息,生成所述多个抓拍图片的索引信息,所述抓拍图片的索引信息包括所述位置信息、所述抓拍时间以及所述索引标识;
    存储模块,用于将所述索引信息与所述图片序列进行关联存储。
  17. 一种抓拍设备,其特征在于,所述抓拍设备包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述程序代码由所述处理器加载并执行以实现如权利要求1至权利要求6任一项所述的图片抓拍方法所执行的操作。
  18. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如权利要求1至权利要求10任一项所述的方法所执行的操作。
PCT/CN2021/101906 2020-09-17 2021-06-23 图片抓拍方法、图片存储方法、系统、设备以及存储介质 WO2022057358A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010982791.8A CN114205513A (zh) 2020-09-17 2020-09-17 图片抓拍方法、图片存储方法、系统、设备以及存储介质
CN202010982791.8 2020-09-17

Publications (1)

Publication Number Publication Date
WO2022057358A1 true WO2022057358A1 (zh) 2022-03-24

Family

ID=80644904

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101906 WO2022057358A1 (zh) 2020-09-17 2021-06-23 图片抓拍方法、图片存储方法、系统、设备以及存储介质

Country Status (2)

Country Link
CN (1) CN114205513A (zh)
WO (1) WO2022057358A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160219284A1 (en) * 2011-01-13 2016-07-28 Texas Instruments Incorporated Methods and systems for facilitating multimedia data encoding
CN105933624A (zh) * 2016-06-17 2016-09-07 武汉斗鱼网络科技有限公司 一种用于网站视频录制方法及装置
CN106803936A (zh) * 2017-02-24 2017-06-06 深圳英飞拓科技股份有限公司 基于内存编码机制的视频抓拍方法及装置
CN108769600A (zh) * 2018-06-12 2018-11-06 杭州叙简科技股份有限公司 一种基于视频流调帧率的桌面共享系统及其桌面共享方法
CN110087042A (zh) * 2019-05-08 2019-08-02 深圳英飞拓智能技术有限公司 一种实时同步视频流和元数据的人脸抓拍方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160219284A1 (en) * 2011-01-13 2016-07-28 Texas Instruments Incorporated Methods and systems for facilitating multimedia data encoding
CN105933624A (zh) * 2016-06-17 2016-09-07 武汉斗鱼网络科技有限公司 一种用于网站视频录制方法及装置
CN106803936A (zh) * 2017-02-24 2017-06-06 深圳英飞拓科技股份有限公司 基于内存编码机制的视频抓拍方法及装置
CN108769600A (zh) * 2018-06-12 2018-11-06 杭州叙简科技股份有限公司 一种基于视频流调帧率的桌面共享系统及其桌面共享方法
CN110087042A (zh) * 2019-05-08 2019-08-02 深圳英飞拓智能技术有限公司 一种实时同步视频流和元数据的人脸抓拍方法及系统

Also Published As

Publication number Publication date
CN114205513A (zh) 2022-03-18

Similar Documents

Publication Publication Date Title
CN105791431B (zh) 一种在线分布式监控视频处理任务调度方法及装置
CN110784740A (zh) 视频处理方法、装置、服务器及可读存储介质
CN110392284B (zh) 视频编码、视频数据处理方法、装置、计算机设备和存储介质
CN114079820A (zh) 在摄像机设备上借助于神经网络输入的以感兴趣的事件/对象为中心的间隔拍摄视频生成
CN114125371B (zh) 在摄像机设备上借助于神经网络输入的通过降低视频的位率以节省带宽的智能间隔拍摄视频
CN108965883A (zh) 使用虚拟帧内帧对视频内容进行编码的系统和方法
CN106791875B (zh) 视频数据解码方法、编码方法以及相关设备
CN103957341A (zh) 图片传输的方法及其相关设备
JP2014239428A (ja) デジタルビデオデータを符号化するための方法
CN113271464B (zh) 视频编码方法、解码方法及相关装置
CN111436009B (zh) 一种实时视频流传送、显示方法以及传送和播放系统
US20050226327A1 (en) MPEG coding method, moving picture transmitting system and method using the same
WO2021051912A1 (zh) 媒体数据传输方法及相关设备
WO2022057358A1 (zh) 图片抓拍方法、图片存储方法、系统、设备以及存储介质
WO2025124158A1 (zh) 一种音视频数据的上传方法、系统及存储介质
CN114827542A (zh) 多路视频码流抓图方法、系统、设备及介质
JP7338075B2 (ja) ビデオブロック化方法、伝送方法、サーバー、アダプタ及び記憶媒体
TWI680668B (zh) 畫面影像傳輸方法、影像復原方法、畫面影像傳輸系統、影像復原系統、畫面影像傳輸程式、影像復原程式、影像壓縮方法、影像壓縮系統及影像壓縮程式
CN109086457A (zh) 一种分布式视频帧随机读取的元数据服务系统及工作方法
EP4564818A1 (en) Video decoding method and apparatus, and electronic device, computer-readable storage medium and computer program product
WO2020078391A1 (zh) 存储视频数据的方法和装置
CN104980763B (zh) 一种视频码流、视频编解码方法及装置
US20160295064A1 (en) Photo cluster detection and compression
US20140369424A1 (en) Video codec system and video stream transmission method
CN113747171B (zh) 一种自恢复的视频解码方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21868187

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868187

Country of ref document: EP

Kind code of ref document: A1