CN111343454B - Image processing method, device and system - Google Patents

Image processing method, device and system Download PDF

Info

Publication number
CN111343454B
CN111343454B CN201910087258.2A CN201910087258A CN111343454B CN 111343454 B CN111343454 B CN 111343454B CN 201910087258 A CN201910087258 A CN 201910087258A CN 111343454 B CN111343454 B CN 111343454B
Authority
CN
China
Prior art keywords
image
decoding
target
coding
device type
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.)
Active
Application number
CN201910087258.2A
Other languages
Chinese (zh)
Other versions
CN111343454A (en
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.)
Hangzhou Haikang Huiying Technology Co ltd
Original Assignee
Hangzhou Haikang Huiying Technology 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 Hangzhou Haikang Huiying Technology Co ltd filed Critical Hangzhou Haikang Huiying Technology Co ltd
Priority to CN201910087258.2A priority Critical patent/CN111343454B/en
Publication of CN111343454A publication Critical patent/CN111343454A/en
Application granted granted Critical
Publication of CN111343454B publication Critical patent/CN111343454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • 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

Landscapes

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

Abstract

The application provides an image processing method, device and system, wherein the method comprises the following steps: identifying the equipment type of the image acquisition equipment corresponding to the current frame high-definition image; determining a target coding mode of the current frame high-definition image according to the device type, wherein the target coding mode comprises lossless coding or lossy coding; and encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to an image decoding end through a transmission channel so that the image decoding end performs corresponding lossless decoding or lossy decoding on the encoded image according to the equipment type. According to the embodiment of the application, the transmission bandwidth of the high-definition image is reduced while the coding quality is ensured, so that the transmission cost of a transmission channel for transmitting the coded image is reduced, the transmission distance is increased, and the real-time, long-distance, low-cost and high-reliability transmission of the high-definition image is realized.

Description

Image processing method, device and system
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a system for image processing.
Background
The digital operating room system is now a standard configuration of all hospitals, plays an important role in the operation business of the hospitals, and is a technical guarantee for ensuring the efficient and safe operation. With the development of image acquisition and processing technology, the resolution and frame rate of video terminals in digital operating rooms are continuously improved, and products such as surgical field cameras, electronic endoscopes and the like which are mainstream in various manufacturers achieve the performance of 60 frames per second with 1080P resolution, and high-end products with 60 frames per second with 4K resolution are successively released. Along with the improvement of image resolution and frame rate, the requirement of high-quality image transmission of an electronic endoscope is met, in order to realize the long-distance real-time transmission of high-definition images, the quality requirement on transmission wires is higher and higher, relay equipment needs to be introduced to ensure the transmission distance, the transmission cost is continuously improved, and meanwhile, the transmission stability is also reduced.
Disclosure of Invention
In view of the foregoing, the present application provides a method, an apparatus and a system for image processing.
Specifically, the method is realized through the following technical scheme:
in a first aspect, the present application provides a method of image processing, the method comprising:
identifying the equipment type of the image acquisition equipment corresponding to the current frame high-definition image;
determining a target coding mode of the current frame high-definition image according to the device type, wherein the target coding mode comprises lossless coding or lossy coding;
and encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to an image decoding end through a transmission channel so that the image decoding end performs corresponding lossless decoding or lossy decoding on the encoded image according to the equipment type.
Preferably, the determining the target encoding mode of the current frame high definition image according to the device type includes:
if the equipment type is the designated equipment type, determining that the target coding mode is lossless coding;
and if the equipment type is not the specified equipment type, determining that the target coding mode is lossy coding.
Preferably, the encoding the current frame high definition image by using the target encoding method includes:
determining a device type mark corresponding to the device type;
and when the current frame high-definition image is coded by adopting the target coding mode, the equipment type mark is added into the coding header information.
Preferably, the identifying the device type of the image capturing device corresponding to the current frame image includes:
and identifying the equipment type of the current frame high-definition image by adopting a pre-generated classifier model so as to judge whether the equipment type corresponding to the current frame high-definition image is a specified equipment type, wherein the classifier model is obtained by training according to the imaging characteristic information of the equipment corresponding to the specified equipment type.
In a second aspect, the present application provides a method of image processing, the method comprising:
receiving the encoded image from the transmission channel;
acquiring a device type mark corresponding to the coded image;
determining a target decoding mode of the coded image according to the device type mark, wherein the target decoding mode comprises lossless decoding or lossy decoding;
and decoding the coded image by adopting the target decoding mode, and outputting the decoded image.
Preferably, the determining a target decoding manner of the encoded image according to the device type flag includes:
determining the equipment type of the acquisition equipment corresponding to the coded image according to the equipment type mark;
if the equipment type is the specified equipment type, determining that the target decoding mode is lossless decoding;
and if the equipment type is not the specified equipment type, determining that the target decoding mode is lossy decoding.
Preferably, the acquiring a device type flag corresponding to the encoded image includes:
and acquiring the device type mark from the coding header information of the coding image.
In a third aspect, the present application provides an image processing apparatus comprising:
the device type identification module is used for identifying the device type of the image acquisition device corresponding to the current frame high-definition image;
a target coding mode determining module, configured to determine a target coding mode of the current frame high-definition image according to the device type, where the target coding mode includes lossless coding or lossy coding;
the coding module is used for coding the current frame high-definition image by adopting the target coding mode to generate a coded image;
and the image sending module is used for sending the coded image to an image decoding end through a transmission channel so that the image decoding end performs corresponding lossless decoding or lossy decoding on the coded image according to the equipment type.
In a fourth aspect, the present application provides an image processing apparatus comprising:
the image receiving module is used for receiving the coded image from the transmission channel;
the device type mark acquisition module is used for acquiring a device type mark corresponding to the coded image;
a target decoding mode determining module, configured to determine a target decoding mode of the encoded image according to the device type flag, where the target decoding mode includes lossless decoding or lossy decoding;
the decoding module is used for decoding the coded image by adopting the target decoding mode;
and the image output module is used for outputting the decoded image.
In a fifth aspect, the present application provides an image processing system comprising an image encoding side and an image decoding side, wherein,
the image encoding end is used for:
identifying the equipment type of the image acquisition equipment corresponding to the current frame high-definition image;
determining a target coding mode of the current frame high-definition image according to the device type, wherein the target coding mode comprises lossless coding or lossy coding;
encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to the image decoding end through a transmission channel;
the image decoding end is used for:
receiving the encoded image from the transmission channel;
acquiring a device type mark corresponding to the coded image;
determining a target decoding mode of the coded image according to the device type mark, wherein the target decoding mode comprises lossless decoding or lossy decoding;
and decoding the coded image by adopting the target decoding mode, and outputting the decoded image.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, the device type of the image acquisition device corresponding to the image can be automatically identified according to the received current frame high-definition image, then the target coding mode of the current frame high-definition image is selected in a self-adaptive mode according to the device type, and the current frame high-definition image is coded and transmitted by adopting the target coding mode, so that the transmission bandwidth of the high-definition image is reduced while the coding quality is ensured, the transmission cost of a transmission channel for transmitting the coded image is reduced, the transmission distance is increased, and the real-time, long-distance, low-cost and high-reliability transmission of the high-definition image is realized.
Drawings
FIG. 1 is a flow chart illustrating steps of a method embodiment of image processing according to an exemplary embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of a method embodiment of image processing according to another exemplary embodiment of the present application;
FIG. 3 is a hardware block diagram of the device in which the apparatus of the present application is located;
FIG. 4 is a block diagram of an embodiment of an image processing apparatus according to an exemplary embodiment of the present application;
FIG. 5 is a block diagram of an embodiment of an image processing apparatus according to another exemplary embodiment of the present application;
fig. 6 is a block diagram illustrating an embodiment of an image processing system according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for image processing according to an exemplary embodiment of the present application is shown, where the method specifically includes the following steps:
step 101, identifying the equipment type of image acquisition equipment corresponding to a current frame high-definition image;
as an example, the high definition images may include a high definition 1080P image with a resolution of 1920 x 1080 and an ultra high definition 4K image with a resolution of 3840 x 2160.
The embodiment of the application can be applied to an image coding end, and the image coding end is realized on the basis of an FPGA (Field Programmable Gate Array). The image coding end can be connected with the image acquisition equipment, and after the image acquisition equipment is connected to the image coding end, the acquired high-definition images can be sent to the image coding end, and the image coding end performs image coding processing.
After the image encoding end receives the high-definition image sent by the image acquisition device, the image encoding end may first identify the device type of the current image acquisition device according to the high-definition image.
In a preferred embodiment of the present application, step 101 may include the following sub-steps:
and identifying the equipment type of the current frame high-definition image by adopting a pre-generated classifier model so as to judge whether the equipment type corresponding to the current frame high-definition image is a specified equipment type, wherein the classifier model is obtained by training according to the imaging characteristic information of the equipment corresponding to the specified equipment type.
In specific implementation, a certain number of image samples acquired by equipment of a specified equipment type can be acquired as positive samples, image samples acquired by other equipment can be acquired as negative samples, and a deep learning algorithm is adopted to train a classifier model according to imaging feature information of the equipment corresponding to the specified equipment type extracted from the positive samples.
The classifier model can then be used for device type recognition of the received high-definition image to output a corresponding device type.
In practice, the classifier may be a two-classifier or a multi-classifier. When the device type is the second classifier, the recognition result of whether the device type corresponding to the high-definition image is the specified device type or not can be output. And when the image is a multi-classifier, outputting the device type corresponding to the high-definition image.
Of course, the device type identification may be performed through a pattern recognition model trained by a pattern recognition algorithm, as well as through a classifier model, which is not limited in the embodiment of the present application.
In an embodiment, the embodiment of the present application may be applied to a digital operating room, and the image capturing device connected to the image encoding end may include an electronic endoscope device and other teaching devices, such as a surgical field camera, a panoramic camera, and the like. Correspondingly, the specified device type may include electronic endoscopic devices in a digital operating room; the non-specified device type may include other teaching-type devices in the digital operating room in addition to the electronic endoscopic device.
Step 102, determining a target coding mode of the current frame high-definition image according to the equipment type;
the target encoding mode may include lossless encoding or lossy encoding.
Specifically, after the device type of the current access device is identified, the target encoding mode of the current frame high-definition image may be determined according to whether the device type is a designated device type.
In a preferred embodiment of the present application, the step 102 may further include the following sub-steps:
if the equipment type is the specified equipment type, determining that the target coding mode is lossless coding; and if the equipment type is not the specified equipment type, determining that the target coding mode is lossy coding.
Here, image coding, also called image compression, is a technique for representing an image or information included in an image with a small number of bits under the condition that a certain quality (a requirement of a signal-to-noise ratio or a subjective evaluation score) is satisfied. One type of compression is reversible, namely, the original image can be completely recovered from the compressed data without loss of information, and the method is called lossless compression coding; another type of compression is irreversible, i.e. the original image cannot be completely restored from the compressed data, and there is a certain loss of information, which is called lossy compression coding.
The embodiment of the application adopts a lossless coding mode for the high-definition images corresponding to the specified device types, and adopts a lossy coding mode for the high-definition images corresponding to the unspecified device types. For example, a high-definition image input by an electronic endoscope apparatus may be determined to have a lossless encoding as a target encoding scheme, and a high-definition image input by another teaching apparatus may be determined to have a lossy encoding as a target encoding scheme. The lossless coding can be adopted to preferentially ensure the image quality and reduce the coding compression efficiency; the use of lossy coding, while reducing high-definition image quality, can further reduce transmission bandwidth.
And 103, encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to an image decoding end through a transmission channel so that the image decoding end performs corresponding lossless decoding or lossy decoding on the encoded image according to the equipment type.
Specifically, after the target encoding mode of the current frame high definition image is determined, the target encoding mode may be adopted to perform encoding and compression processing on the current frame high definition image.
For example, if the currently accessed device is identified as an electronic endoscope device according to the currently received high-definition 1080P image, and belongs to a specified device type, and it can be determined that the target encoding mode of the high-definition 1080P image is lossless encoding, the high-definition image can be lossless encoded in real time, and the encoding process is real-time and has no delay, so as to obtain an encoded image.
For another example, if the currently accessed device type is identified as a non-specified device type according to the currently received ultra high definition 4K image, for example, the currently received ultra high definition 4K image is an operative field camera, and it can be determined that the target coding mode of the ultra high definition 4K image is lossy coding, the high definition image can be subjected to real-time lossy coding, and a coding process is real-time without delay, so as to obtain a coded image.
In an implementation, step 103 may comprise the following sub-steps in order to better distinguish different device types in subsequent operations:
determining a device type mark corresponding to the device type; and when the current frame high-definition image is coded by adopting the target coding mode, the equipment type mark is added into the coding header information.
In an implementation, different device type flags may be set for different device types, for example, the device type flag may be set to a value of 1 for a specified device type, and the device type flag may be set to a value of 0 for a non-specified device type (i.e., other teaching-type device types).
In encoding, the device type flag may be encoded into the encoded image as part of the encoding, for example, as encoded header information to facilitate delivery of the device type flag to the receiving end.
Of course, in addition to the above manners, in the embodiment of the present application, a device type flag may be added to the transport stream, as long as the device type flag of the current frame high definition image can be sent to the receiving end, and the sending manner of the device type flag is not limited in the embodiment of the present application.
After the image coding end obtains the coded image, the coded image can be sent to a transmission channel through a high-speed interface, and the transmission channel is responsible for completing the transmission of the coded image from the image coding end to the image decoding end.
In the embodiment of the application, the high-definition image is subjected to lossy coding or lossless coding, so that the transmission bandwidth of the high-definition image can be reduced, the transmission cost is saved, and the transmission distance is obviously improved. For example, after lossless coding is performed on a 1080P image, the transmission bandwidth is reduced from the original 3Gbps to 375Mbps to 750Mbps (to about the original 25%), the transmission channel only needs to support the transmission rate of 750Mbps and does not need to support the original 1080P image transmission bandwidth of 3Gbps, and the feasibility of realizing network transmission through a gigabit network is achieved while the image quality is not lost. For the ultra-high definition 4K image, after lossy coding, the transmission bandwidth is reduced from the original 12Gbps to 1.5Gbps to 3Gbps (reduced to less than the original 12.5%), the transmission channel only needs to support the transmission rate of 3Gbps and does not need to support the original transmission bandwidth of the 4K image of 12Gbps, and meanwhile, compared with the transmission rate of 12Gbps, the transmission stability at the rate of 3Gbps is more guaranteed. Therefore, the requirement on transmission wires is obviously reduced, the transmission distance can be greatly expanded, the transmission stability is more guaranteed, and the image transmission can be realized through a gigabit network.
In the embodiment of the application, the device type of the image acquisition device corresponding to the image can be automatically identified according to the received current frame high-definition image, then the target coding mode of the current frame high-definition image is selected in a self-adaptive mode according to the device type, and the current frame high-definition image is coded and transmitted by adopting the target coding mode, so that the transmission bandwidth of the high-definition image is reduced while the coding quality is ensured, the transmission cost of a transmission channel for transmitting the coded image is reduced, the transmission distance is increased, and the real-time, long-distance, low-cost and high-reliability transmission of the high-definition image is realized.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a method for image processing according to another exemplary embodiment of the present application is shown, which may specifically include the following steps:
step 201, receiving a coded image from a transmission channel;
the embodiment of the application can be applied to an image decoding end, and the image decoding end is realized by an FPGA (Field Programmable Gate Array). And the image decoding end receives the coded image sent by the image coding end through the transmission channel.
Step 202, acquiring a device type mark corresponding to the coded image;
in one embodiment, after the image decoding end receives the encoded image transmitted by the transmission channel, the device type flag of the current image may be first obtained from the encoded header information of the encoded image.
Of course, the embodiment of the present application is not limited to the above-mentioned manner in which the image decoding end obtains the device type flag, and the device type flag of the current image may also be directly obtained from the information attached to the transfer stream.
Step 203, determining a target decoding mode of the coded image according to the device type mark, wherein the target decoding mode comprises lossless decoding or lossy decoding;
in a preferred embodiment of the present application, step 203 may further include the following sub-steps:
determining the equipment type of the acquisition equipment corresponding to the coded image according to the equipment type mark; if the equipment type is the specified equipment type, determining that the target decoding mode is lossless decoding; and if the equipment type is not the specified equipment type, determining that the target decoding mode is lossy decoding.
In one embodiment, if the device type is marked as a value 1, determining that the device type of the acquisition device corresponding to the coded image is a specified device type; and if the equipment type mark is 0, judging that the equipment type of the acquisition equipment corresponding to the coded image is not the specified equipment type.
Specifically, if the device type is marked as a numerical value 1, it is determined that the acquisition device corresponding to the current image is the acquisition device of the specified device type, and at this time, it may be determined that the target decoding mode is lossless decoding; if the device type mark is a value 0, the acquisition device corresponding to the current image is judged to be the acquisition device of the non-specified device type, and at this time, the target decoding mode can be determined to be lossy decoding.
And 204, decoding the coded image by adopting the target decoding mode, and outputting the decoded image.
Specifically, when the target decoding mode is lossless decoding, real-time lossless decoding corresponding to the encoding mode is performed on the encoded image, the decoding process is real-time without delay, and the original high-definition image is obtained after decoding. And when the target decoding mode is lossy decoding, performing real-time lossy decoding corresponding to the encoding mode on the encoded image, wherein the decoding process is real-time without delay, and obtaining a lossy original high-definition image after decoding.
For example, when the device type of the current image obtained by the decoding end is marked as a numerical value 1, it is determined that the acquisition device corresponding to the current image is an electronic endoscope device, and at this time, the encoded 1080P image can be subjected to real-time lossless decoding corresponding to the encoding mode, the decoding process is real-time without delay, and the high-quality original high-definition 1080P endoscope image is restored after decoding.
For another example, when the device type mark of the current image obtained by the decoding end is a numerical value 0, it is determined that the acquisition device corresponding to the current image is not the electronic endoscope device, and at this time, real-time lossy decoding corresponding to the encoding mode can be performed on the encoded 4K image, the decoding process is real-time without delay, and a lossy ultra-high-definition 4K image is obtained after decoding.
In a preferred embodiment of the present application, the outputting the decoded image includes:
outputting the decoded image to a display device through a display interface; and/or outputting the decoded image to a storage device through a storage interface.
Specifically, after the image decoding end completes decoding to obtain the high-definition image, the high-definition image may be sent to the display device for displaying, or sent to the storage device for storing. For example, the image decoding end can output the high-definition images to a medical display through a display interface such as HDMI, SDI, DP and the like for image real-time preview, or send the high-definition images to a medical video recorder through a storage interface for video recording storage and playback use.
In the embodiment of the application, after the coded image is received, the target decoding mode matched with the current coded image can be determined according to the device type mark corresponding to the coded image, and the coded image is decoded and output according to the target decoding mode, so that a high-quality decoded image is obtained, and the decoded image can be matched with the requirement of the current access device.
Corresponding to the embodiment of the method, the application also provides an embodiment of the image processing device.
The embodiment of the image processing device can be applied to terminal equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 3, the hardware structure diagram of the device in the present application is a hardware structure diagram of an apparatus, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 3, the apparatus where the device is located in the embodiment may also include other hardware according to an actual function of the device, which is not described again.
Referring to fig. 4, a block diagram of an embodiment of an image processing apparatus according to an exemplary embodiment of the present application is shown, and specifically includes the following modules:
the device type identification module 401 is configured to identify a device type of the image acquisition device corresponding to the current frame high-definition image;
a target encoding mode determining module 402, configured to determine a target encoding mode of the current frame high-definition image according to the device type, where the target encoding mode includes lossless encoding or lossy encoding;
the encoding module 403 is configured to encode the current frame high-definition image in the target encoding manner to generate an encoded image;
an image sending module 404, configured to send the encoded image to an image decoding end through a transmission channel, so that the image decoding end performs corresponding lossless decoding or lossy decoding on the encoded image according to the device type.
In a preferred embodiment of the present application, the target encoding manner determining module 402 is specifically configured to:
if the equipment type is the specified equipment type, determining that the target coding mode is lossless coding;
and if the equipment type is not the specified equipment type, determining that the target coding mode is lossy coding.
In a preferred embodiment of the present application, the encoding module 403 includes:
the mark determining submodule is used for determining a device type mark corresponding to the device type;
and the encoding sub-module is used for adding the equipment type mark into encoding header information when the current frame high-definition image is encoded by adopting the target encoding mode.
In a preferred embodiment of the present application, the device type identification module 401 is specifically configured to:
and identifying the equipment type of the current frame high-definition image by adopting a pre-generated classifier model so as to judge whether the equipment type corresponding to the current frame high-definition image is a specified equipment type, wherein the classifier model is obtained by training according to the imaging characteristic information of the equipment corresponding to the specified equipment type.
Referring to fig. 5, a block diagram of an embodiment of an image processing apparatus according to another exemplary embodiment of the present application is shown, and specifically includes the following modules:
an image receiving module 501, configured to receive an encoded image from a transmission channel;
a device type flag obtaining module 502, configured to obtain a device type flag corresponding to the encoded image;
a target decoding mode determining module 503, configured to determine a target decoding mode of the encoded image according to the device type flag, where the target decoding mode includes lossless decoding or lossy decoding;
a decoding module 504, configured to decode the encoded image in the target decoding manner;
and an image output module 505, configured to output the decoded image.
In a preferred embodiment of the present application, the target decoding manner determining module 503 is specifically configured to:
determining the equipment type of the acquisition equipment corresponding to the coded image according to the equipment type mark;
if the equipment type is the specified equipment type, determining that the target decoding mode is lossless decoding;
and if the equipment type is not the specified equipment type, determining that the target decoding mode is lossy decoding.
In a preferred embodiment of the present application, the device type flag obtaining module 502 is specifically configured to:
and acquiring the device type mark from the coding header information of the coding image.
Referring to fig. 6, a block diagram of an embodiment of an image processing system according to an exemplary embodiment of the present application is shown, the image processing system includes an image encoding end 10 and an image decoding end 20, wherein,
the image encoding terminal 10 is configured to:
identifying the equipment type of the image acquisition equipment corresponding to the current frame high-definition image;
determining a target coding mode of the current frame high-definition image according to the device type, wherein the target coding mode comprises lossless coding or lossy coding;
encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to the image decoding end through a transmission channel;
the image decoding end 20 is configured to:
receiving the encoded image from the transmission channel;
acquiring a device type mark corresponding to the coded image;
determining a target decoding mode of the coded image according to the device type mark, wherein the target decoding mode comprises lossless decoding or lossy decoding;
and decoding the coded image by adopting the target decoding mode, and outputting the decoded image.
For the device and system embodiments, since they correspond substantially to the method embodiments, reference may be made to the method embodiments for their part of the description.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the above-described method embodiments.
The embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method embodiments when executing the program.
Embodiments of the subject matter and the functional operations described in this specification can be implemented in: digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on a tangible, non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode and transmit information to suitable receiver apparatus for execution by the data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
Computers suitable for executing computer programs include, for example, general and/or special purpose microprocessors, or any other type of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory and/or a random access memory. The essential components of a computer include a central processing unit for implementing or executing instructions, and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer does not necessarily have such a device. Further, the computer may be embedded in another device, e.g., a vehicle-mounted terminal, a mobile telephone, a Personal Digital Assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device such as a Universal Serial Bus (USB) flash drive, to name a few.
Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In another aspect, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A method of image processing, the method comprising:
identifying the equipment type of the image acquisition equipment corresponding to the current frame high-definition image;
determining a target coding mode of the current frame high-definition image according to the device type, wherein the target coding mode comprises lossless coding or lossy coding; when the device type is a specified device type, the target coding mode is lossless coding, and when the device type is not the specified device type, the target coding mode is lossy coding;
and encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to an image decoding end through a transmission channel so that the image decoding end performs corresponding lossless decoding or lossy decoding on the encoded image according to the equipment type.
2. The method according to claim 1, wherein the encoding the current frame high definition image in the target encoding manner includes:
determining a device type mark corresponding to the device type;
and when the current frame high-definition image is coded by adopting the target coding mode, the equipment type mark is added into the coding header information.
3. The method according to any one of claims 1-2, wherein the identifying the device type of the image acquisition device corresponding to the current frame high definition image comprises:
and identifying the equipment type of the current frame high-definition image by adopting a pre-generated classifier model so as to judge whether the equipment type corresponding to the current frame high-definition image is a specified equipment type, wherein the classifier model is obtained by training according to the imaging characteristic information of the equipment corresponding to the specified equipment type.
4. A method of image processing, the method comprising:
receiving the encoded image from the transmission channel;
acquiring a device type mark corresponding to the coded image;
determining a target decoding mode of the coded image according to the device type mark, wherein the target decoding mode comprises lossless decoding or lossy decoding; wherein the determining a target decoding mode of the encoded image according to the device type flag comprises: determining the equipment type of the acquisition equipment corresponding to the coded image according to the equipment type mark, and if the equipment type is the specified equipment type, determining that the target decoding mode is lossless decoding; if the equipment type is not the specified equipment type, determining that the target decoding mode is lossy decoding;
and decoding the coded image by adopting the target decoding mode, and outputting the decoded image.
5. The method according to claim 4, wherein the obtaining of the device type identifier corresponding to the encoded image comprises:
and acquiring the device type mark from the coding header information of the coding image.
6. An image processing apparatus, characterized in that the apparatus comprises:
the device type identification module is used for identifying the device type of the image acquisition device corresponding to the current frame high-definition image;
a target coding mode determining module, configured to determine a target coding mode of the current frame high-definition image according to the device type, where the target coding mode includes lossless coding or lossy coding; when the device type is a specified device type, the target coding mode is lossless coding, and when the device type is not the specified device type, the target coding mode is lossy coding;
the coding module is used for coding the current frame high-definition image by adopting the target coding mode to generate a coded image;
and the image sending module is used for sending the coded image to an image decoding end through a transmission channel so that the image decoding end performs corresponding lossless decoding or lossy decoding on the coded image according to the equipment type.
7. An image processing apparatus, characterized in that the apparatus comprises:
the image receiving module is used for receiving the coded image from the transmission channel;
the device type mark acquisition module is used for acquiring a device type mark corresponding to the coded image;
a target decoding mode determining module, configured to determine a target decoding mode of the encoded image according to the device type flag, where the target decoding mode includes lossless decoding or lossy decoding; wherein the determining a target decoding mode of the encoded image according to the device type flag comprises: determining the equipment type of the acquisition equipment corresponding to the coded image according to the equipment type mark, and if the equipment type is the specified equipment type, determining that the target decoding mode is lossless decoding; if the equipment type is not the specified equipment type, determining that the target decoding mode is lossy decoding;
the decoding module is used for decoding the coded image by adopting the target decoding mode;
and the image output module is used for outputting the decoded image.
8. An image processing system comprising an image encoding side and an image decoding side, wherein,
the image encoding end is used for:
identifying the equipment type of the image acquisition equipment corresponding to the current frame high-definition image;
determining a target coding mode of the current frame high-definition image according to the device type, wherein the target coding mode comprises lossless coding or lossy coding; when the device type is a designated device type, the target coding mode is lossless coding, and when the device type is not the designated device type, the target coding mode is lossy coding;
encoding the current frame high-definition image by adopting the target encoding mode to generate an encoded image, and sending the encoded image to the image decoding end through a transmission channel;
the image decoding end is used for:
receiving the encoded image from the transmission channel;
acquiring a device type mark corresponding to the coded image;
determining a target decoding mode of the coded image according to the device type mark, wherein the target decoding mode comprises lossless decoding or lossy decoding; wherein the determining a target decoding mode of the encoded image according to the device type flag comprises: determining the equipment type of the acquisition equipment corresponding to the coded image according to the equipment type mark, and if the equipment type is the specified equipment type, determining that the target decoding mode is lossless decoding; if the equipment type is not the specified equipment type, determining that the target decoding mode is lossy decoding;
and decoding the coded image by adopting the target decoding mode, and outputting the decoded image.
CN201910087258.2A 2019-01-29 2019-01-29 Image processing method, device and system Active CN111343454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910087258.2A CN111343454B (en) 2019-01-29 2019-01-29 Image processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910087258.2A CN111343454B (en) 2019-01-29 2019-01-29 Image processing method, device and system

Publications (2)

Publication Number Publication Date
CN111343454A CN111343454A (en) 2020-06-26
CN111343454B true CN111343454B (en) 2022-05-31

Family

ID=71186736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910087258.2A Active CN111343454B (en) 2019-01-29 2019-01-29 Image processing method, device and system

Country Status (1)

Country Link
CN (1) CN111343454B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114159007B (en) * 2022-02-11 2022-05-06 极限人工智能有限公司 Endoscope, endoscopic imaging system, and surgical robot

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783952A (en) * 2010-03-01 2010-07-21 广东威创视讯科技股份有限公司 Coding optimization method and coding optimization device for images
CN103873877A (en) * 2012-12-14 2014-06-18 华为技术有限公司 Image transmission method and device for remote desktop
CN105430247A (en) * 2015-11-26 2016-03-23 上海创米科技有限公司 Method and device for taking photograph by using image pickup device
CN108989804A (en) * 2018-08-23 2018-12-11 杭州雄迈集成电路技术有限公司 The coding method of image and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101415619B1 (en) * 2012-04-02 2014-07-07 서울대학교산학협력단 Compression system of medical image using visually lossless compression and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783952A (en) * 2010-03-01 2010-07-21 广东威创视讯科技股份有限公司 Coding optimization method and coding optimization device for images
CN103873877A (en) * 2012-12-14 2014-06-18 华为技术有限公司 Image transmission method and device for remote desktop
CN105430247A (en) * 2015-11-26 2016-03-23 上海创米科技有限公司 Method and device for taking photograph by using image pickup device
CN108989804A (en) * 2018-08-23 2018-12-11 杭州雄迈集成电路技术有限公司 The coding method of image and device

Also Published As

Publication number Publication date
CN111343454A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US9392218B2 (en) Image processing method and device
US20210337217A1 (en) Video analytics encoding for improved efficiency of video processing and compression
CN106210884B (en) The code-transferring method and device of video file
KR20130129471A (en) Object of interest based image processing
US20170064344A1 (en) Video encoding for reduced streaming latency
CN111818295B (en) Image acquisition method and device
US11968379B2 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and electronic device
CN111343454B (en) Image processing method, device and system
CN111263192A (en) Video processing method and related equipment
US20220398692A1 (en) Video conferencing based on adaptive face re-enactment and face restoration
MX2014008979A (en) Encoding device and encoding method, and decoding device and decoding method.
US20140022383A1 (en) Surveillance system, image compression serializer and image decompression deserializer
CN105210366B (en) Image processing apparatus and image processing method
CN107155114A (en) A kind of video pictures method of adjustment and system
US11095901B2 (en) Object manipulation video conference compression
CN106331847B (en) Audio and video playing method and apparatus
JP5808485B2 (en) Mobile terminal recording method, related apparatus and system
EP3054677A1 (en) Methods and systems for image encoding and decoding and terminal
US6526173B1 (en) Method and system for compression encoding video signals representative of image frames
US10764578B2 (en) Bit rate optimization system and method
CN113727073A (en) Method and system for realizing vehicle-mounted video monitoring based on cloud computing
CN114581631A (en) Data processing method and device for immersive media and computer-readable storage medium
KR101760760B1 (en) Method and video transmission server for transmitting motion vector, and method and device for reproducing video
US20170155837A1 (en) System and a method for manipulating a video file on receiving instructions from a user
US6181747B1 (en) Methods and systems for high compression rate encoding and decoding of quasi-stable objects in video and film

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
GR01 Patent grant
GR01 Patent grant