CN114691603A - Target information storage method, device, electronic equipment and medium - Google Patents

Target information storage method, device, electronic equipment and medium Download PDF

Info

Publication number
CN114691603A
CN114691603A CN202011636126.XA CN202011636126A CN114691603A CN 114691603 A CN114691603 A CN 114691603A CN 202011636126 A CN202011636126 A CN 202011636126A CN 114691603 A CN114691603 A CN 114691603A
Authority
CN
China
Prior art keywords
target
detection
compression format
image
quality score
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011636126.XA
Other languages
Chinese (zh)
Inventor
辛辉敏
田江涛
高凯凯
吴辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202011636126.XA priority Critical patent/CN114691603A/en
Publication of CN114691603A publication Critical patent/CN114691603A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the application discloses a target information storage method and device, electronic equipment and a medium. The method comprises the following steps: determining a target image of a detection target in the original image in the low compression format, and determining a detection quality score of the target image; if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image; and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises a detection quality score and the high-compression format target image. The scheme can effectively save the storage space while realizing the storage of high-quality images.

Description

Target information storage method, device, electronic equipment and medium
Technical Field
The embodiment of the application relates to the technical field of image caching, in particular to a target information storage method and device, electronic equipment and a medium.
Background
The application of the face detection and recognition technology in the field of monitoring security and protection is becoming more and more extensive, and face detection snapshot gradually becomes a basic function applied to each monitoring facility. Under the background, on one hand, high-quality face snapshot puts higher requirements on hardware configuration, and on the other hand, demands on functions and effects are also placed on low-end monitoring products.
At present, caching high-quality images occupies a large memory space. For example, for a camera with a resolution of 4MP, the buffer size of each YUV format file is 6MB, and if 40 face images are to be buffered, 40 × 6 — 240M memory is required, which occupies a large memory space.
Disclosure of Invention
Embodiments of the present invention provide a target information storage method, an apparatus, an electronic device, and a medium, so as to implement storage of a high-quality image and save storage space.
In one embodiment, an embodiment of the present application provides a target information storage method, including:
determining a target image of a detection target in an original image in a low compression format, and determining a detection quality score of the target image;
if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image;
and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
In another embodiment, an embodiment of the present application further provides a target information storage apparatus, including:
the detection quality score determining module is used for determining a target image of a detection target in the low-compression format original image and determining the detection quality score of the target image;
the format conversion module is used for extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image and converting the low-compression format original image into a high-compression format original image if the detection quality score is the highest quality score of the detection target;
and the storage module is used for determining the target information of the detection target and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
In another embodiment, an embodiment of the present application further provides an electronic device, including: one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the target information storage method according to any one of the embodiments of the present application.
In yet another embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the target information storage method according to any one of the embodiments of the present application.
In the embodiment of the application, a target image of a detection target in an original image in a low-compression format is determined, and a detection quality score of the target image is determined; if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image; and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image, so that the storage of the high-quality target image is realized, and the storage space is saved through format conversion.
Drawings
FIG. 1 is a flow chart of a target information storage method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a target information storage method according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a target information storage device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a target information storage method according to an embodiment of the present invention. The target information storage method provided by the embodiment of the application can be applied to the situation of storing the information of the target detected in the image. Typically, the embodiments of the present application are applicable to the case of caching the target information. The method may be specifically executed by a target information storage apparatus, which may be implemented by software and/or hardware, and may be integrated in an electronic device capable of implementing the target information storage method. Referring to fig. 1, the method of the embodiment of the present application specifically includes:
and S110, determining a target image of a detection target in the low-compression format original image, and determining a detection quality score of the target image.
The low-compression format original image may be an image obtained by encoding an image or a video frame image acquired by an image acquirer based on a low-compression method, such as a YUV image. If the resolution of the image collector is 4MP, the size of a frame of YUV image is about 6M. The target detection is carried out on the low-compression format original image, so that the target image can be detected more accurately. The detection target is an image obtained by performing target detection on the original image in the low-compression format.
In the embodiment of the application, target detection is performed on one frame of the obtained low-compression format original image, detection targets in the low-compression format original image are locked, and a corresponding target image in the low-compression format original image is determined for each detection target. And performing quality analysis on the target image of the detection target, and determining the detection quality score of the target image.
And S120, if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image.
For example, if the image quality of the target image of the detection target determined in the currently acquired low-compression format original image is the highest, the target image is more valuable for business processing, and the target image needs to be stored. However, if the original image in the low compression format is directly stored or the target image in the low compression format is stored, a large memory is occupied and storage resources are wasted. For example, a frame of YUV image has a size of about 6M, and storing 40 frames of YUV images requires 240M memory, which consumes a large storage space. In the embodiment of the application, if the detection quality score of the target image is the highest quality score of the image of the detection target, and according to the position of the detection target appearing in the low-compression format original image, the low-compression format target image of the detection target is extracted from the low-compression format original image, the low-compression format target image is converted into the high-compression format target image, and the low-compression format original image is converted into the high-compression format original image, so that the memory occupied during storage is reduced. The high compression format may be a lossy compression format, such as JPEG, PNG, and the like. The image collected by the image collector with the resolution of 4MP is converted into a JPEG format, the size of the image is 800K under the condition of high image quality, and the occupied memory amount is greatly reduced compared with the size of a YUV image of 6M.
S130, determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
The storage may be in a form of cache, or may also be in a form of memory. In the embodiment of the application, the score value corresponding to the highest quality score and the high-compression format target image are used as the target information of the detection target, and the target information and the high-compression format original image are stored in the storage area, so that the storage of the high-quality image of the detection target is realized, and the occupied memory is reduced. And releasing the low-compression format original image after the target information is stored.
In the embodiment of the application, no matter how many targets are detected from the low-compression-format original image, when the detection quality score of the target image of the detection target in the low-compression-format original image is the highest quality score of the detection target and the low-compression-format original image needs to be stored, the low-compression-format original image is converted into the high-compression-format original image, only one high-compression-format original image needs to be stored, and repeated storage is not needed, so that the storage space of the storage area is saved.
In the embodiment of the application, a target image of a detection target in an original image in a low-compression format is determined, and a detection quality score of the target image is determined; if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image; and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image, so that the storage of the high-quality target image is realized, and the storage space is saved through format conversion.
In the embodiment of the present application, the target information further includes a target identifier; the process of determining whether the detection quality score is the highest quality score of the detection target comprises: matching the target identification of the detection target with the target identification of the storage target in the storage area; the storage target is a detection target which is stored in the storage area; and if the matching is not successful, determining the detection quality score as the highest quality score of the detection target.
For each target there is a unique target identification. The target identification of the detection target detected in the low-compression format original image is matched with the target identification of the target stored in the storage area. And if the target identification of the non-storage target is matched with the target identification of the detection target, determining the detection target as a new target. And if the target identification of the storage target is matched with the target identification of the detection target, determining that the detection target does not appear in the image acquired by the image acquisition device for the first time and has been detected before. In an original image in a low compression format, there may be a plurality of target images of detection targets, some of which may appear for the first time, some of which may not appear for the first time, or all of which may not appear for the first time. If all the detection targets in the low-compression format original image appear for the first time, all the detection targets are processed according to S120, and the high-compression format target images corresponding to all the detection targets are stored, and because all the low-compression format target images are extracted from the same low-compression format original image, the image frame numbers of the high-compression format original images to which all the high-compression format target images belong are the same, only one high-compression format original image is stored, and the high-compression format original image is associated with all the high-compression format target images according to the image frame numbers, so that the storage space is saved, and repeated storage is avoided.
Specifically, if the target identifier of the storage target does not match the target identifier of the detection target in the storage area, the detection target is determined to be a new target, the detection quality score of the target image of the detection target is the highest quality score of the detection target, and the target information of the detection target and the high-compression format original image need to be stored in the storage area, that is, the target identifier of the detection target, the detection quality score of the target image, the high-compression format target image and the high-compression format original image are stored in the storage area. The detection target stored in the storage area becomes a storage target.
In an embodiment of the present application, the determining whether the detection quality score is the highest quality score of the detection target further includes: if the target identification of the storage target and the target identification of the detection target are successfully matched in the storage area, determining that the storage target and the detection target are the same target; comparing the detection quality score of the target image of the detection target with the storage quality score of the storage target in the storage area; if the detection quality score is higher than the storage quality score corresponding to the storage target, determining that the detection quality score is the highest quality score of the detection target; and if the detection quality score is lower than or equal to the storage quality score corresponding to the storage target, ending the processing operation on the target image of the detection target. If the detection quality score is higher than the storage quality score corresponding to the storage target, determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the method comprises the following steps: and replacing the target information of the storage target in the storage area with the target information of the detection target.
For example, if the matching between the target identifier of the storage target and the target identifier of the detection target in the storage area is successful, it is determined that the detection target is not a new target and has been detected in the image captured by the image capture device before, and therefore, it is necessary to determine whether the detection quality score of the target image of the detection target is the highest quality score relative to the storage quality score corresponding to the storage target in the storage area. And if the detection quality score is higher than the storage quality score corresponding to the storage target, determining the detection quality score as the highest quality score of the detection target, and replacing the target information of the detection target with the target information of the storage target in the storage area, so that the image with the highest detection target quality is stored in the storage area. And if the detection quality score is lower than or equal to the storage quality score corresponding to the storage target, determining that the image quality of the target image of the detection target is not the highest, so that the target information of the detection target does not need to be stored, the target information corresponding to the storage target is still stored, the processing operation on the detection target is ended, and the processing on the next detection target is continued.
The scheme has the advantages that the target information of the detected target can be comprehensively stored through the matching of the target identification, and the repeated storage can be avoided. In addition, through comparison of image quality scores, the images stored in the storage area are guaranteed to be the images with the highest target quality, and therefore the method has higher value for business processing.
Fig. 2 is a flowchart of a target information storage method according to another embodiment of the present invention. For further optimization of the embodiments, details which are not described in detail in the embodiments of the present application are described in the embodiments. Referring to fig. 2, a target information storage method provided in an embodiment of the present application may include:
s210, determining a target image of a detection target in the low-compression format original image, and determining a detection quality score of the target image.
And S220, if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image.
And S230, determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score, the high-compression format target image and a detection count value of the detection target.
Determining target information of the detection target, including: clearing the detection count value of the detection target; and if the detection target is not detected continuously, accumulating the detection count value according to a preset time interval.
For example, when a detection target is identified in the low-compression format original image, the detection count value of the detection target is cleared. During the subsequent detection, the detection count value is accumulated according to a preset time interval, for example, one increase per second. If the detection target is identified, clearing the detection count value corresponding to the detection target, and if the target is not detected, continuously accumulating the detection count value.
S240, if the detection count value is larger than the preset detection count value, moving the target information of the detection target out of the storage area.
The preset detection count value may be set according to actual conditions, for example, to 10. If the detection count value is increased by one every second, when the detection count value reaches 10, the detection target is not detected within 10 seconds, namely the detection target is not in the acquisition range of the image acquisition device for 10 seconds. If the detection count value is larger than the preset detection count value, the detection target cannot be detected in the original image in the low-compression format, and the detection target does not appear in the acquisition range of the image acquirer continuously. Therefore, the target information of the detection target can be moved out of the storage area to save the space of the storage area. Target information of the detection target may be sent to a server or the like for service processing.
In the embodiment of the application, when the detection count value is detected to be greater than the preset detection count value and the target information of the detection target is moved out of the storage area, the moved target information is the target identifier, the detection count value, the detection quality score and the high-compression format target image of the detection target, and the high-compression format original image is not moved out.
And S250, determining whether the image frame number of the high-compression-format original image in the storage area still exists in the target information of the storage target in the storage area.
In this embodiment of the present application, the target information further includes an image frame number of the original image in the high compression format to which the target image in the high compression format belongs. Illustratively, whether or not the image frame number of the original image in the high-compression format stored in the storage area is still present in the object information of the storage object in the storage area is detected in real time. If the high-compression format target image exists, the high-compression format target image which is extracted from the high-compression format original image corresponding to the image frame number is determined to exist in the storage area, and therefore other processing is not carried out.
And S260, if the high-compression format original image does not exist, removing the high-compression format original image from the storage area.
For example, if the image frame number of the high-compression format original image stored in the storage area does not exist in the object information of the storage object in the storage area, it is determined that all the high-compression format object images extracted from the high-compression format original image corresponding to the frame number have been shifted out, and the high-compression format original image corresponding to the frame number also has no effect, so that the high-compression format original image corresponding to the frame number is shifted out from the storage area and released, thereby realizing timely cleaning of useless images in the storage area, and effectively saving the storage space of the storage area.
The scheme of the embodiment of the application. When the detection target is determined to be no longer present in the acquisition range of the image acquisition device through the detection count value, the target information of the detection target is deleted from the storage area in time, and when the image frame number of the high-compression format original image stored in the storage area is detected and does not exist in the target information of the storage target in the storage area, the high-compression format original image corresponding to the frame number is removed from the storage area in time, so that the situation that the image of the target which is no longer present occupies the memory of the storage area is avoided, and the storage space of the storage area is effectively saved.
FIG. 3 is a schematic structural diagram of a target information storage device according to an embodiment of the present invention. The device can be suitable for the condition of coding the images or videos collected by the image collector. Typically, the embodiment of the application is suitable for the situation that the image or the video is coded by refining and determining the coding parameters. The apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in an electronic device. Referring to fig. 3, the apparatus specifically includes:
a detection quality score determining module 310, configured to determine a target image of a detection target in the low-compression format original image, and determine a detection quality score of the target image;
a format conversion module 320, configured to, if the detection quality score is the highest quality score of the detection target, extract a low-compression format target image of the detection target from the low-compression format original image, convert the low-compression format target image into a high-compression format target image, and convert the low-compression format original image into a high-compression format original image;
the storage module 330 is configured to determine target information of the detection target, and store the target information and the high-compression format original image in a storage area, where the target information includes the detection quality score and the high-compression format target image.
In the embodiment of the present application, the target information further includes a target identifier;
the device further comprises:
the matching module is used for matching the target identification of the detection target with the target identification of the target stored in the storage area; the storage target is a detection target which is stored in the storage area;
and the first score determining module is used for determining that the detection quality score is the highest quality score of the detection target if the matching is not successful.
In an embodiment of the present application, the apparatus further includes:
the same target determining module is used for determining that the storage target and the detection target are the same target if the target identification of the storage target and the target identification of the detection target are successfully matched in the storage area;
the comparison module is used for comparing the detection quality score of the target image of the detection target with the storage quality score of the storage target in the storage area;
a second score determining module, configured to determine that the detection quality score is the highest quality score of the detection target if the detection quality score is higher than a storage quality score corresponding to the storage target;
and the ending operation determining module is used for ending the processing operation on the target image of the detection target if the detection quality score is lower than or equal to the storage quality score corresponding to the storage target.
In this embodiment of the application, the storage module 330 is specifically configured to:
and replacing the target information of the storage target in the storage area with the target information of the detection target.
In this embodiment of the present application, the target information further includes a detection count value of the detection target;
the storage module 330 includes:
a zero clearing unit, configured to zero a detection count value of the detection target;
and the accumulation unit is used for accumulating the detection count value according to a preset time interval if the detection target is not continuously detected.
In an embodiment of the present application, the apparatus further includes:
and the target information shifting-out module is used for shifting out the target information of the detection target from the storage area if the detection count value is greater than a preset detection count value.
In this embodiment of the application, the target information further includes an image frame number of the original image in the high compression format to which the target image in the high compression format belongs;
the device further comprises:
the frame number searching module is used for determining whether the image frame number of the high-compression format original image in the storage area still exists in the target information of the storage target in the storage area;
and the original image shifting-out module is used for shifting out the original image in the high-compression format from the storage area if the original image does not exist.
The target information storage device provided by the embodiment of the application can execute the target information storage method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the present application. The electronic device 412 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present application.
As shown in fig. 4, the electronic device 412 may include: one or more processors 416; the memory 428 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 416, the one or more processors 416 are enabled to implement the target information storage method provided by the embodiment of the present application, including:
determining a target image of a detection target in an original image in a low compression format, and determining a detection quality score of the target image;
if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image;
and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
The components of the electronic device 412 may include, but are not limited to: one or more processors or processors 416, a memory 428, and a bus 418 that couples the various device components including the memory 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, transaction ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer device-readable storage media. These storage media may be any available storage media that can be accessed by electronic device 412 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
Memory 428 can include computer-device readable storage media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer device storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 418 by one or more data storage media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating device, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown in FIG. 4, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, among others.
The processor 416 executes various functional applications and data processing by executing at least one of other programs of the plurality of programs stored in the memory 428, for example, to implement a target information storage method provided by the embodiment of the present application.
One embodiment of the present invention provides a storage medium containing computer-executable instructions which, when executed by a computer processor, perform a target information storage method, comprising:
determining a target image of a detection target in an original image in a low compression format, and determining a detection quality score of the target image;
if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image;
and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
The computer storage media of embodiments of the present application may take any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of storing target information, the method comprising:
determining a target image of a detection target in an original image in a low compression format, and determining a detection quality score of the target image;
if the detection quality score is the highest quality score of the detection target, extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image, and converting the low-compression format original image into a high-compression format original image;
and determining target information of the detection target, and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
2. The method of claim 1, wherein the target information further comprises a target identification;
the process of determining whether the detection quality score is the highest quality score of the detection target comprises:
matching the target identification of the detection target with the target identification of the storage target in the storage area; the storage target is a detection target which is stored in the storage area;
and if the matching is not successful, determining the detection quality score as the highest quality score of the detection target.
3. The method of claim 1, wherein determining whether the detection quality score is the highest quality score of the detection targets further comprises:
if the target identification of the storage target and the target identification of the detection target are successfully matched in the storage area, determining that the storage target and the detection target are the same target;
comparing the detection quality score of the target image of the detection target with the storage quality score of the storage target in the storage area;
if the detection quality score is higher than the storage quality score corresponding to the storage target, determining that the detection quality score is the highest quality score of the detection target;
and if the detection quality score is lower than or equal to the storage quality score corresponding to the storage target, ending the processing operation on the target image of the detection target.
4. The method of claim 3, wherein determining target information for the detected target and storing the target information and the high-compression format original image in a storage area if the detected quality score is higher than a stored quality score corresponding to the stored target comprises:
and replacing the target information of the storage target in the storage area with the target information of the detection target.
5. The method according to claim 1, wherein the target information further includes a detection count value of the detection target;
determining target information of the detection target, including:
clearing the detection count value of the detection target;
and if the detection target is not detected continuously, accumulating the detection count value according to a preset time interval.
6. The method of claim 5, wherein after accumulating the detection count values at predetermined time intervals, the method further comprises:
and if the detection count value is larger than a preset detection count value, moving the target information of the detection target out of the storage area.
7. The method according to any of claims 1-6, wherein the target information further comprises an image frame number of a high compression format original image to which the high compression format target image belongs;
after determining the target information of the detection target and storing the target information and the high-compression format original image in the storage area, the method further comprises:
determining whether the image frame number of the high-compression format original image in the storage area still exists in the object information of the storage object in the storage area;
and if not, moving the high-compression format original image out of the storage area.
8. A target information storage device, the device comprising:
the detection quality score determining module is used for determining a target image of a detection target in the low-compression format original image and determining the detection quality score of the target image;
the format conversion module is used for extracting a low-compression format target image of the detection target from the low-compression format original image, converting the low-compression format target image into a high-compression format target image and converting the low-compression format original image into a high-compression format original image if the detection quality score is the highest quality score of the detection target;
and the storage module is used for determining the target information of the detection target and storing the target information and the high-compression format original image in a storage area, wherein the target information comprises the detection quality score and the high-compression format target image.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the target information storage method of any one of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, which program, when executed by a processor, implements the object information storage method of any one of claims 1 to 7.
CN202011636126.XA 2020-12-31 2020-12-31 Target information storage method, device, electronic equipment and medium Pending CN114691603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011636126.XA CN114691603A (en) 2020-12-31 2020-12-31 Target information storage method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011636126.XA CN114691603A (en) 2020-12-31 2020-12-31 Target information storage method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114691603A true CN114691603A (en) 2022-07-01

Family

ID=82134596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011636126.XA Pending CN114691603A (en) 2020-12-31 2020-12-31 Target information storage method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114691603A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783512A (en) * 2019-11-11 2020-10-16 西安宇视信息科技有限公司 Image processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783512A (en) * 2019-11-11 2020-10-16 西安宇视信息科技有限公司 Image processing method, device, equipment and storage medium
CN111783512B (en) * 2019-11-11 2024-05-14 西安宇视信息科技有限公司 Image processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111031348B (en) Video scrambling method, device, server and storage medium
CN109729429B (en) Video playing method, device, equipment and medium
CN111209431A (en) Video searching method, device, equipment and medium
CN111290881B (en) Data recovery method, device, equipment and storage medium
CN114691603A (en) Target information storage method, device, electronic equipment and medium
CN112235598B (en) Video structured processing method and device and terminal equipment
CN111368593B (en) Mosaic processing method and device, electronic equipment and storage medium
EP3885934A1 (en) Video search method and apparatus, computer device, and storage medium
US10083720B2 (en) Method and system for video data stream storage
CN110263704B (en) Face data acquisition method, device, server, video acquisition device and medium
CN101930593B (en) Single object image extracting system and method
CN111047657A (en) Picture compression method, device, medium and electronic equipment
CN113191990B (en) Image processing method, device, electronic equipment and medium
CN112541429B (en) Intelligent image capture method and device, electronic equipment and storage medium
CN113361426A (en) Vehicle loss assessment image acquisition method, medium, device and electronic equipment
CN114694007A (en) Video structuring processing method and video structuring engine
CN112418234A (en) Method and device for identifying license plate number, electronic equipment and storage medium
US6615334B2 (en) Method and apparatus for I/O data management with an I/O buffer in compressed memory subsystem
CN111783512B (en) Image processing method, device, equipment and storage medium
CN116647686B (en) Image compression method, device, server and image compression system
CN113051415B (en) Image storage method, device, equipment and storage medium
CN111654646B (en) Image synthesis method, device, system and storage medium
CN113449542B (en) Face-changing identification method, device, equipment and medium
CN110633663B (en) Method for automatically cutting multi-mode data in sign language video
CN103918002A (en) Memory controller for video analytics and encoding

Legal Events

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