WO2020192499A1 - 一种图像处理方法及设备 - Google Patents

一种图像处理方法及设备 Download PDF

Info

Publication number
WO2020192499A1
WO2020192499A1 PCT/CN2020/079750 CN2020079750W WO2020192499A1 WO 2020192499 A1 WO2020192499 A1 WO 2020192499A1 CN 2020079750 W CN2020079750 W CN 2020079750W WO 2020192499 A1 WO2020192499 A1 WO 2020192499A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
processed
resolution
digital
random access
Prior art date
Application number
PCT/CN2020/079750
Other languages
English (en)
French (fr)
Inventor
卞学飞
马强
王军
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Priority to US17/427,788 priority Critical patent/US20220130010A1/en
Priority to EP20776395.4A priority patent/EP3910585A4/en
Publication of WO2020192499A1 publication Critical patent/WO2020192499A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20016Hierarchical, coarse-to-fine, multiscale or multiresolution image processing; Pyramid transform

Definitions

  • This application relates to the field of image processing technology, and in particular to an image processing method and device.
  • 720P non-real-time image coding equipment the maximum resolution of the image that this type of equipment can encode is the resolution corresponding to 720P.
  • the resolution corresponding to 720P the resolution corresponding to 1080P.
  • the purpose of the embodiments of the present application is to provide an image processing method and device to reduce the requirements for image resolution in the image processing process.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides an image processing method, the method including:
  • the resolution of the second image is increased to a preset resolution as a result of image processing.
  • the obtaining the first image obtained by performing resolution reduction processing on the image to be processed includes:
  • the obtaining the image to be processed includes:
  • the image to be processed determined according to the digital image is stored in a random access memory.
  • the obtaining the first image obtained by performing resolution reduction processing on the image to be processed according to a preset Half mode includes:
  • the storing the to-be-processed image determined according to the digital image in a random access memory includes:
  • the obtaining the first image obtained by reducing the resolution of the image to be processed according to the preset Half mode includes:
  • the method further includes:
  • the storing the to-be-processed image determined according to the digital image in a random access memory includes:
  • an embodiment of the present application provides an image processing device, the device includes: an image collector and an image processor, wherein:
  • the image collector is used to obtain images to be processed
  • the image processor is configured to obtain a first image obtained by performing resolution reduction processing on the image to be processed; perform image processing on the first image to obtain a second image; and increase the resolution of the second image To the preset resolution, as a result of image processing.
  • the image processor is specifically configured to obtain a first image obtained by performing resolution reduction processing on the image to be processed according to a preset Half mode, where the Half mode is: Decrease the resolution by half in the width direction of the image and/or decrease the resolution by half in the height direction of the image.
  • the image collector is an analog-to-digital converter
  • the device further includes: an image input interface and a random access memory; wherein,
  • the analog-to-digital converter is configured to obtain an analog image, convert the analog image into a digital image, and send the image to the image input interface based on the digital image;
  • the image input interface is used to receive the image sent by the analog-to-digital converter, and send the image to the random access memory according to the received image
  • the random access memory is used to store the image to be processed determined according to the received image.
  • the analog-to-digital converter is specifically configured to send the digital image to the image input interface
  • the image input interface is specifically configured to send the digital image to the random access memory
  • the random access memory is specifically configured to store the digital image as an image to be processed
  • the image processor is specifically configured to obtain the image to be processed from the random access memory; according to a preset Half mode, perform a resolution reduction process on the image to be processed to obtain a first image.
  • the analog-to-digital converter is specifically configured to directly determine the digital image as the image to be processed, and perform resolution reduction processing on the image to be processed according to a preset Half mode, And sending the to-be-processed image after resolution reduction processing to the image input interface;
  • the image input interface is specifically configured to send the image to be processed to the random access memory
  • the random access memory is specifically used to store the image to be processed
  • the image processor is specifically configured to obtain the image stored in the random access memory as the first image.
  • the image input interface is integrated with a resolution reduction chip
  • the analog-to-digital converter is specifically configured to send the digital image to the image input interface
  • the image input interface is specifically configured to receive the digital image sent by the analog-to-digital converter, perform resolution reduction processing on the digital image according to a preset Half mode through the resolution reduction chip, and pass the The resolution reduction chip sends the image obtained by the resolution reduction processing to the random access memory;
  • the random access memory is specifically configured to store the received image as an image to be processed
  • the image encoder is specifically configured to obtain the image to be processed from the random access memory as the first image.
  • the device further includes an image noise reduction chip:
  • the image input interface is specifically configured to receive the digital image sent by the analog-to-digital converter, and send the digital image to the image noise reduction chip;
  • the image noise reduction chip is configured to preprocess the digital image to remove image noise in the digital image, and send the digital image with image noise removed to the random access memory;
  • the random access memory is specifically configured to store the image to be processed determined according to the digital image from which image noise is removed.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program in the computer-readable storage medium.
  • the computer program is executed by a processor, the image processing described in the embodiment of the present application is implemented. Method steps.
  • the embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the image processing method described in the embodiments of the present application.
  • the solution provided by the embodiments of the present application for image processing after obtaining the image to be processed, the first image with the resolution of the image to be processed is obtained, and then the original need is completed by performing image processing on the first image.
  • Image processing of the image to be processed in order to ensure that the resolution of the image in the final image processing result is consistent with actual requirements, after image processing is performed on the first image to obtain the second image, the resolution of the second image is also improved deal with. Since the above-mentioned first image is an image obtained by performing resolution reduction processing on the image to be processed, from the perspective of resolution, the first image will be smaller than the image to be processed. Therefore, the solution provided in this embodiment of the application is applied to the image. During processing, the resolution range of the image processed by the image processing device can be expanded, and when the solution provided by the embodiment of the present application is applied for image processing, the requirement on the image resolution can be reduced.
  • FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of this application.
  • FIG. 2 is a schematic flowchart of another image processing method provided by an embodiment of the application.
  • FIG. 3 is a schematic structural diagram of an image processing device provided by an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of another image processing device provided by an embodiment of the application.
  • the execution subject of the embodiments of the present application may be understood as an image processing device.
  • FIG. 1 shows a schematic flowchart of an image processing method provided by an embodiment of the present application, and the method includes:
  • the digital image to be processed can be directly obtained as the image to be processed, or after the analog image to be processed is obtained, analog-to-digital conversion is performed on the analog image to obtain a digital image as the image to be processed.
  • S102 Obtain a first image obtained by performing resolution reduction processing on the image to be processed.
  • reducing the resolution of the image to be processed can be down-sampling the image to be processed, of course, it can also be reducing the image to be processed, as long as it can reduce the resolution of the image to be processed, it can be applied to this Steps, this embodiment of the application does not limit this.
  • obtaining the first image obtained by performing resolution reduction processing on the image to be processed may specifically be obtaining the first image obtained by performing resolution reduction processing on the image to be processed according to a preset Half mode.
  • the above-mentioned Half mode is: reducing the resolution by half along the image width direction and/or reducing the resolution by half along the image height direction.
  • the above Half mode can be one of the following three situations:
  • Case 1 Reduce the resolution by half along the width of the image
  • Case 2 Reduce the resolution by half along the image height direction
  • Case 3 Reduce the resolution by half along the image width direction, and reduce the resolution by half along the image height direction.
  • the first image obtained may be in the following three situations One of them.
  • the first case when the resolution is reduced by half along the image width direction, the image resolution after the reduction is 960x1080, that is, the resolution of the first image is 960x1080.
  • the amount of data of the first image is reduced by one-half compared with the image data before the resolution is reduced, which can reduce the memory resources and CPU resources required for subsequent image processing by one-half.
  • the second case when the resolution is reduced by half along the image height direction, the resolution of the image after the reduced resolution is 1920x540, that is, the resolution of the above-mentioned first image is 1920x540.
  • the amount of data of the first image is also reduced by one-half compared with the image data before the resolution is reduced, which can reduce the memory resources and CPU resources required for subsequent image processing by one-half.
  • the image resolution after the reduction is 960x540, that is, the resolution of the first image is 960x540.
  • the data volume of the first image is reduced by three quarters relative to the image data volume before the resolution reduction, that is, the data volume of the first image is reduced to a quarter of the image data volume before the resolution reduction, which can make subsequent
  • the required memory resources and CPU resources are also reduced by three-quarters.
  • the image to be processed may be reduced in resolution, and may also be reduced in the direction of image width and/or image height according to other ratios.
  • the above-mentioned other ratios may be 2:3, 3:4, etc., that is, reduce the resolution by two-thirds, reduce the resolution by three-quarters, and so on.
  • S103 Perform image processing on the first image to obtain a second image.
  • the first image when performing image processing on the first image, the first image may be processed according to requirements in a specific application. For example, encoding processing, filtering processing, etc. are performed on the first image.
  • the execution subject of the solution provided in the embodiments of the present application may be a device with video encoding function, for example, it may be a hard disk video recorder, a network hard disk video recorder;
  • Function and video coding function equipment for example, can be a video camera with video coding function, a device integrated with a lens and a processor with coding function.
  • S104 Increase the resolution of the second image to a preset resolution as a result of image processing.
  • the aforementioned preset resolution may be the original resolution of the image to be processed, that is, the resolution of the image to be processed before the resolution is reduced.
  • the aforementioned preset resolution may also be a preset resolution.
  • the above-mentioned preset resolution may be a resolution predetermined according to the resolution of the display device used to display the image processing result.
  • the aforementioned preset resolution can be 1920x1080 or 1440x1080.
  • the aforementioned preset resolution is 1920x1080. If the resolution of the aforementioned display device is 1440 ⁇ 1080, in order to enable the display device to have a better display effect, the aforementioned preset resolution is 1440 ⁇ 1080.
  • the solutions provided by the above embodiments for image processing after obtaining the image to be processed, obtain the first image with the reduced resolution processing of the image to be processed, and then perform image processing on the first image to complete the original need Image processing of the image to be processed.
  • the resolution of the second image is also improved deal with. Since the above-mentioned first image is an image obtained by reducing the resolution of the image to be processed, in terms of resolution, the first image will be smaller than the image to be processed. Therefore, the solutions provided in the above embodiments are used to perform the image processing.
  • the resolution range of the image processed by the image processing device can be expanded, and when the solutions provided by the foregoing embodiments are applied for image processing, the requirements on the image resolution can be reduced.
  • the resolution range of the image that can be processed is broadened, thereby improving the compatibility of the image processing device with respect to the connected image from the perspective of resolution.
  • the resolution of the image processed by the image processing device is reduced, the data volume of the processed image is also reduced. Therefore, even if the maximum resolution of the image that the image processing device can process is low, it can also process the original resolution in real time. High image.
  • the above S101 obtains the image to be processed, including:
  • S101A Obtain an analog image, and convert the analog image into a digital image.
  • Converting an analog image into a digital image that is, converting an analog image into an image represented by a two-dimensional digital group.
  • an ADC Analog-to-Digital Converter, analog-to-digital converter
  • ADC Analog-to-Digital Converter, analog-to-digital converter
  • S101B Store the to-be-processed image determined according to the above digital image to the random access memory.
  • the aforementioned random access memory may be DDR (Double Data SDRAM, double-rate synchronous dynamic random access memory).
  • DDR Double Data SDRAM, double-rate synchronous dynamic random access memory.
  • the image to be processed stored in the above-mentioned random access memory may be the above-mentioned digital image.
  • the above-mentioned obtaining of the first image obtained by reducing the resolution of the image to be processed according to the preset Half mode can be achieved through the following steps:
  • the preset Half mode the first image obtained by reducing the resolution of the image to be processed.
  • the image to be processed stored in the above-mentioned random access memory is the image before the resolution reduction processing. Therefore, to obtain the above-mentioned first image, it is necessary to read the image to be processed from the random access memory, and perform resolution reduction processing on the read image.
  • the image stored in the above-mentioned random access memory may be an image that has undergone resolution reduction processing.
  • the step of storing the to-be-processed image determined according to the above-mentioned digital image to the RAM can be achieved through the following steps:
  • the image to be processed stored in the random access memory is the image after the resolution is reduced in the Half mode, that is, the first image.
  • the foregoing obtaining the first image obtained by performing resolution reduction processing on the image to be processed according to the preset Half mode is: obtaining the image to be processed stored in the random access memory as the first image.
  • the digital image may also be preprocessed to remove image noise in the digital image.
  • the image to be processed determined according to the digital image is stored in the random access memory, specifically, the image to be processed determined according to the digital image from which image noise is removed is stored in the random access memory.
  • the image noise in the digital image is first removed, so that a high-quality first image can be obtained in the subsequent process, thereby improving the effect of image processing.
  • an embodiment of the present application also provides an image processing device.
  • FIG. 3 is a schematic structural diagram of an image processing device provided by an embodiment of the application.
  • the device includes: an image collector 301 and an image processor 302, wherein,
  • the image collector 301 is used to obtain images to be processed
  • the image processor 302 is configured to obtain a first image obtained by performing resolution reduction processing on the image to be processed; perform image processing on the first image to obtain a second image; and improve the resolution of the second image Rate to the preset resolution as a result of image processing.
  • the image processor 302 is specifically configured to obtain a first image obtained by performing resolution reduction processing on the image to be processed according to a preset Half mode, where the Half mode is: Reduce the resolution by half along the width of the image and/or reduce the resolution by half along the height of the image.
  • the image processing device provided in the above embodiments is used for image processing
  • the first image of the image to be processed is obtained by down-resolution processing
  • the first image is processed by image processing.
  • the second image is also resolved Rate increase processing. Since the above-mentioned first image is an image obtained by reducing the resolution of the image to be processed, from the perspective of resolution, the first image will be smaller than the image to be processed.
  • the image processing device provided in the above embodiments is used to When the image is processed, the resolution range of the image processed by the image processing device can be expanded, and when the image processing device provided in each of the foregoing embodiments is used for image processing, the requirement on the image resolution can be reduced.
  • FIG. 4 there is provided a schematic structural diagram of another image processing device.
  • the above-mentioned image collector 301 is specifically an analog-to-digital converter 301A.
  • the device also includes: an image input interface 303 and a random access memory 304; among them,
  • the analog-to-digital converter 301A is used to obtain an analog image, convert the analog image into a digital image, and send the image to the image input interface 303 based on the digital image;
  • the image input interface 303 is configured to receive the image sent by the analog-to-digital converter 301A, and send the image to the random access memory 304 according to the received image;
  • the random access memory 304 is used to store the image to be processed determined according to the received image.
  • the above-mentioned analog-to-digital converter 301A may be an ADC, which is a device capable of converting an analog image into an image represented by a two-dimensional digital group.
  • the image input interface 303 may also be a video input interface.
  • the image input interface 303 described above is relative to the image processor 302, that is, the image input interface 303 is an interface for providing an input image to the image processor 302.
  • the image input interface 303 in addition to sending the received image to the analog-to-digital converter 301A, can also send the received image to the display device, so that the staff can preview the image through the display device.
  • the image before processing can also send the received image to the display device, so that the staff can preview the image through the display device. The image before processing.
  • the image to be processed is stored in the RAM 304, and when the number of images to be processed that can be acquired in a unit time exceeds the number of images processed in the unit time, the image to be processed cannot be processed in real time. Cache, which can effectively prevent the phenomenon of loss of to-be-processed images that cannot be processed in time.
  • the above-mentioned random access memory 304 may be DDR.
  • DDR digital versatile disk drive
  • the use of DDR as a random access memory can save the cost of image acquisition equipment to a certain extent.
  • the analog-to-digital converter 301A is specifically configured to send the digital image to the image input interface 303;
  • the image input interface 303 is specifically configured to send the digital image to the random access memory 304;
  • the random access memory 304 is specifically configured to store the digital image as an image to be processed
  • the image processor 302 is specifically configured to obtain the image to be processed from the random access memory 304; according to a preset Half mode, perform a resolution reduction process on the image to be processed to obtain a first image.
  • the image to be processed stored in the aforementioned RAM 304 is a digital image obtained by analog-to-digital conversion, that is, an image before the resolution reduction processing.
  • the image processor 302 performs the work of reducing the resolution. Therefore, the image processor 302 can determine how to reduce the resolution of the image to be processed according to its actual situation, such as idle hardware resources.
  • the image processor 302 can determine how to reduce the resolution of the image to be processed according to the fluctuation of the current bit rate, the image content of each image being processed continuously, and idle CPU resources.
  • the analog-to-digital converter 301A is specifically configured to directly determine the digital image as the image to be processed, and reduce the resolution of the image to be processed according to a preset Half mode Processing, and sending the to-be-processed image after resolution reduction processing to the image input interface 303;
  • the image input interface 303 is specifically configured to send the image to be processed to the random access memory
  • the random access memory 304 is specifically used to store the image to be processed
  • the image processor 302 is specifically configured to obtain an image stored in the random access memory as the first image.
  • the resolution reduction processing based on the Half mode is completed by the analog-to-digital converter 301A, that is, the analog-to-digital converter 301A outputs the reduced-resolution image to be processed, that is, the output is the first image described above . Furthermore, the above-mentioned first image is stored in the above-mentioned random access memory 304. At this time, when the image processor 302 obtains the first image, the first image can be directly read from the above-mentioned random access memory 304.
  • the analog-to-digital converter 301A completes the resolution reduction process, so that the subsequent image input interface 303, random access memory 304, and image processor 302 process all images after resolution reduction, thereby reducing the amount of image data to be processed by each device , Reducing the workload of these devices.
  • the image input interface 303 is integrated with a resolution reduction chip
  • the analog-to-digital converter 301A is specifically configured to send the digital image to the image input interface;
  • the image input interface 303 is specifically configured to receive the digital image sent by the analog-to-digital converter, perform resolution reduction processing on the digital image according to a preset Half mode through the resolution reduction chip, and pass Sending, by the resolution reduction chip, the image obtained by the resolution reduction processing to the random access memory;
  • the random access memory 304 is specifically configured to store the received image as an image to be processed
  • the image processor 302 is specifically configured to obtain the image to be processed from the random access memory as the first image.
  • the resolution reduction processing based on the Half mode is neither completed by the analog-to-digital converter 301A nor the image processor 302, but by the resolution reduction chip integrated in the image input interface 303.
  • what the image input interface 303 outputs to the RAM 304 is also a reduced-resolution image to be processed, that is, the first image is output.
  • the above-mentioned first image is stored in the above-mentioned random access memory 304. At this time, when the image processor 302 obtains the first image, the first image can be directly read from the above-mentioned random access memory 304.
  • the resolution reduction processing performed by the resolution reduction chip can make the data volume of the image sent by the subsequent resolution reduction chip to the RAM 304, the data volume of the image stored in the RAM 304, and the data volume of the image to be processed by the image processor 302 all Reduce the data volume of the image after the resolution is reduced, thereby reducing the workload of these devices.
  • the image input interface can actually output the image after the resolution reduction, or the image before the resolution reduction.
  • the image input interface 303 may reduce the resolution after the resolution reduction chip is used. If the user needs to preview a large screen, the image input interface 303 can directly output the image before the resolution is reduced to the display device.
  • the device further includes an image noise reduction chip:
  • the image input interface 303 is specifically configured to receive the digital image sent by the analog-to-digital converter 301A, and send the digital image to the image noise reduction chip;
  • the image noise reduction chip is configured to preprocess the digital image to remove image noise in the digital image, and send the digital image with image noise removed to the random access memory 304;
  • the random access memory 304 is specifically used to store the image to be processed determined according to the digital image from which image noise is removed.
  • the image noise in the digital image is first removed, so that a high-quality first image can be obtained in the subsequent process, thereby improving the effect of image processing.
  • an embodiment of the present application also provides an image processing device.
  • an image processing device is provided, and the device includes:
  • the image acquisition module is used to obtain the image to be processed
  • a resolution reduction module configured to obtain a first image obtained by performing resolution reduction processing on the image to be processed
  • An image processing module configured to perform image processing on the first image to obtain a second image
  • the resolution up module is used to increase the resolution of the second image to a preset resolution as a result of image processing.
  • the resolution reduction module is specifically configured to obtain a first image obtained by performing resolution reduction processing on the image to be processed according to a preset Half mode, where the Half mode is: Reduce the resolution by half along the width of the image and/or reduce the resolution by half along the height of the image.
  • the image acquisition module includes:
  • An analog-to-digital conversion unit for acquiring an analog image and converting the analog image into a digital image
  • the image storage unit is used to store the to-be-processed image determined according to the digital image in a random access memory.
  • the resolution reduction module is specifically used for:
  • the image storage unit is specifically used for:
  • the resolution reduction module is specifically configured to obtain the image to be processed stored in the random access memory as the first image.
  • the image obtaining module further includes:
  • a noise removing unit configured to preprocess the digital image to remove image noise in the digital image after the analog-to-digital conversion unit converts the analog image into a digital image;
  • the image storage unit is specifically configured to store the to-be-processed image determined according to the image noise-removed digital image to the random access memory.
  • the solutions provided by the above embodiments for image processing after obtaining the image to be processed, obtain the first image with the reduced resolution processing of the image to be processed, and then perform image processing on the first image to complete the original need Image processing of the image to be processed.
  • the resolution of the second image is also improved deal with. Since the above-mentioned first image is an image obtained by reducing the resolution of the image to be processed, in terms of resolution, the first image will be smaller than the image to be processed. Therefore, the solutions provided in the above embodiments are used to perform the image processing.
  • the resolution range of the image processed by the image processing device can be expanded, and when the solutions provided by the foregoing embodiments are applied for image processing, the requirements on the image resolution can be reduced.
  • a computer-readable storage medium stores a computer program.
  • the computer program is executed by a processor, the Image processing method.
  • the foregoing image processing method includes:
  • the resolution of the second image is increased to a preset resolution as a result of image processing.
  • the computer program stored in the machine-readable storage medium provided in this embodiment is executed to perform image processing, since the above-mentioned first image is an image obtained after the resolution of the image to be processed is reduced, from the perspective of resolution, the first image is An image will be smaller than the image to be processed. Therefore, when the image processing device provided by the foregoing embodiments is used to process the image, the resolution range of the image processed by the image processing device can be expanded, and the image processing provided by the foregoing embodiments can be applied. When the device performs image processing, it can reduce the requirements for image resolution.
  • the foregoing image processing method includes:
  • the resolution of the second image is increased to a preset resolution as a result of image processing.
  • the computer program product provided in this embodiment is run on a computer to perform image processing, since the first image is an image obtained by reducing the resolution of the image to be processed, from the perspective of resolution, the first image is more The image to be processed is small. Therefore, when the image processing device provided in the above embodiments is used to process the image, the resolution range of the image processed by the image processing device can be expanded, and the image processing device provided in the above embodiments can be used for image processing. Time, can reduce the requirements for image resolution
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

本申请实施例提供了一种图像处理方法及设备,涉及图像处理技术领域,其中,上述方法包括:获得待处理图像;获得对所述待处理图像进行降分辨率处理得到的第一图像;对所述第一图像进行图像处理,得到第二图像;提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。应用本申请实施例提供的方案进行图像处理,能够降低图像处理过程中对图像分辨率的要求。

Description

一种图像处理方法及设备
本申请要求于2019年3月28日提交中国专利局、申请号为201910243416.9发明名称为“一种图像处理方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及图像处理技术领域,特别是涉及一种图像处理方法及设备。
背景技术
随着硬件技术的快速发展,视频监控等领域中常用的模拟相机、硬盘录像机等设备越来越成熟,进而出现了多种具有不同处理能力的图像处理设备。
例如,720P非实时级图像编码设备,这类设备所能够编码图像的最大分辨率为720P对应的分辨率。然而实际应用中随着硬件技术的发展,越来越多的用户拥有的相机、手机等图像采集设备所采集图像的分辨率为1080P对应的分辨率。
这种情况下,上述720P非实时级图像编码设备难以处理分辨率为1080P所对应分辨率的图像,而只能处理分辨率为720P所对应分辨率及其以下的图像。
可见,采用现有的图像处理设备进行图像处理时,对所要处理图像的分辨率具有较高的要求。
发明内容
本申请实施例的目的在于提供一种图像处理方法及设备,以降低图像处理过程中对图像分辨率的要求。具体技术方案如下:
第一方面,本申请实施例提供了一种图像处理方法,所述方法包括:
获得待处理图像;
获得对所述待处理图像进行降分辨率处理得到的第一图像;
对所述第一图像进行图像处理,得到第二图像;
提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
本申请的一个实施例中,所述获得对所述待处理图像进行降分辨率处理得到的第一图像,包括:
获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
本申请的一个实施例中,所述获得待处理图像,包括:
获取模拟图像,并将所述模拟图像转换为数字图像;
将根据所述数字图像确定的待处理图像存储到随机存储器。
本申请的一个实施例中,所述获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,包括:
从所述随机存储器获得所述待处理图像;
按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
本申请的一个实施例中,所述将根据所述数字图像确定的待处理图像存储到随机存储器,包括:
直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理;
将降分辨率处理后的所述待处理图像存储到随机存储器;
相应地,所述获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,包括:
获得所述随机存储器中存储的所述待处理图像,作为第一图像。
本申请的一个实施例中,在所述将所述模拟图像转换为数字图像之后,还包括:
对所述数字图像进行预处理去除所述数字图像中的图像噪声;
相应地,所述将根据所述数字图像确定的待处理图像存储到随机存储器,包括:
将根据去除图像噪声的数字图像确定的待处理图像存储到随机存储器。
第二方面,本申请实施例提供了一种图像处理设备,所述设备包括:图像采集器和图像处理器,其中,
所述图像采集器,用于获得待处理图像;
所述图像处理器,用于获得对所述待处理图像进行降分辨率处理得到的 第一图像;对所述第一图像进行图像处理,得到第二图像;提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
本申请的一个实施例中,所述图像处理器,具体用于获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
本申请的一个实施例中,所述图像采集器为模数转换器,所述设备还包括:图像输入接口和随机存储器;其中,
所述模数转换器,用于获取模拟图像,并将所述模拟图像转换为数字图像,并基于所述数字图像向所述图像输入接口发送图像;
所述图像输入接口,用于接收所述模数转换器发送的图像,并根据所接收的图像向所述随机存储器发送图像
所述随机存储器,用于存储根据所接收图像确定的待处理图像。
本申请的一个实施例中,所述模数转换器,具体用于向所述图像输入接口发送所述数字图像;
所述图像输入接口,具体用于向所述随机存储器发送所述数字图像;
所述随机存储器,具体用于将所述数字图像作为待处理图像存储;
所述图像处理器,具体用于从所述随机存储器获得所述待处理图像;按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
本申请的一个实施例中,所述模数转换器,具体用于直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理,并向所述图像输入接口发送降分辨率处理后的所述待处理图像;
所述图像输入接口,具体用于向所述随机存储器发送所述待处理图像;
所述随机存储器,具体用于存储所述待处理图像;
所述图像处理器,具体用于获得所述随机存储器中存储的图像,作为第一图像。
本申请的一个实施例中,所述图像输入接口集成有降分辨率芯片;
所述模数转换器,具体用于向所述图像输入接口发送所述数字图像;
所述图像输入接口,具体用于接收所述模数转换器发送的所述数字图像, 通过所述降分辨率芯片按照预设的Half模式对所述数字图像进行降分辨率处理,并通过所述降分辨率芯片向所述随机存储器发送降分辨率处理得到的图像;
所述随机存储器,具体用于将所接收的图像作为待处理图像存储;
所述图像编码器,具体用于从所述随机存储器获得所述待处理图像,作为第一图像。
本申请的一个实施例中,所述设备还包括图像降噪芯片:
所述图像输入接口,具体用于接收所述模数转换器发送的所述数字图像,并向所述图像降噪芯片发送所述数字图像;
所述图像降噪芯片,用于对所述数字图像进行预处理去除所述数字图像中的图像噪声,并向所述随机存储器发送去除图像噪声的所述数字图像;
所述随机存储器,具体用于存储根据去除图像噪声的所述数字图像确定的待处理图像。
第三方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例所述的图像处理方法步骤。
第四方面,本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例所述的图像处理方法。
由以上可见,应用本申请实施例提供的方案进行图像处理时,在获得待处理图像后,获得对待处理图像进行降分辨率处理的第一图像,然后通过对第一图像进行图像处理完成原本需要对待处理图像进行的图像处理,另外,为保证最终图像处理结果中图像的分辨率与实际需求相一致,在对第一图像进行图像处理得到第二图像后,还对第二图像进行分辨率提升处理。由于上述第一图像是对待处理图像进行降分辨率处理后得到的图像,所以从分辨率角度而言,第一图像会比待处理图像小,因此,应用本申请实施例提供的方案对图像进行处理时,能够扩大图像处理设备所处理图像的分辨率范围,进而应用本申请实施例提供的方案进行图像处理时,能够降低对图像分辨率的要求。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种图像处理方法的流程示意图;
图2为本申请实施例提供的另一种图像处理方法的流程示意图;
图3为本申请实施例提供的一种图像处理设备的结构示意图;
图4为本申请实施例提供的另一种图像处理设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例的执行主体可以理解为图像处理设备。
参见图1示出了本申请实施例提供的一种图像处理方法的流程示意图,该方法包括:
S101:获得待处理图像。
具体的,本步骤中可以直接获得要进行处理的数字图像作为待处理图像,也可以在获得要进行处理的模拟图像后,对模拟图像进行模数转换得到数字图像,作为待处理图像。
S102:获得对待处理图像进行降分辨率处理得到的第一图像。
具体的,对待处理图像进行降分辨率处理可以是对待处理图像进行下采样处理,当然,也可以是对待处理图像进行缩小处理,只要是能够降低待处理图像分辨率的方式,均可以应用于本步骤,本申请实施例并不对此进行限定。
本申请的一个实施例中,获得对待处理图像进行降分辨率处理得到的第一图像,具体可以是获得按照预设的Half模式对待处理图像进行降分辨率处 理得到的第一图像。
其中,上述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
也就是说,上述Half模式可以是以下三种情况中的一种:
情况一:沿图像宽度方向降低二分之一分辨率;
情况二:沿图像高度方向降低二分之一分辨率;
情况三:沿图像宽度方向降低二分之一分辨率,并且沿图像高度方向降低二分之一分辨率。
例如,按照上述Half模式对分辨率为1080P所对应分辨率的图像进行降分辨率处理时,也就是对分辨率为1920x1080的图像进行降分辨率处理时,所得第一图像可能为以下三种情况中的一种。
第一种情况:沿图像宽度方向降低二分之一分辨率时,降低分辨率后图像分辨率为:960x1080,也就是,上述第一图像的分辨率为960x1080。这种情况下第一图像相对于降分辨率前的图像数据量降低二分之一,可以使得后续图像处理时,需要的内存资源、CPU资源也降低二分之一。
第二种情况:沿图像高度方向降低二分之一分辨率时,降低分辨率后图像分辨率为:1920x540,也就是,上述第一图像的分辨率为1920x540。这种情况下第一图像相对于降分辨率前的图像数据量也降低二分之一,可以使得后续图像处理时,需要的内存资源、CPU资源也降低二分之一。
第三种情况:沿图像宽度方向和图像高度方向均降低二分之一分辨率时,降低分辨率后图像分辨率为:960x540,也就是,上述第一图像的分辨率为960x540。这种情况下第一图像相对于降分辨率前的图像数据量降低四分之三,也就是,第一图像的数据量降低为降分辨率前图像数据量的四分之一,可以使得后续图像处理时,需要的内存资源、CPU资源也降低四分之三。
值得一提的是,发明人在实验过程中发现,上述Half模式选择沿图像宽度方向降低二分之一分辨率而沿图像高度方向不进行降分辨率处理时,后续步骤对第一图像进行图像处理,并对经图像处理得到的第二图像进行提升分辨率的处理后,也就是,沿图像宽度方向对图像进行放大后,图像在用户主观和客观上产生的影响较小,所还原出图像的画质效果较佳。
除此之外,对待处理图像进行降分辨率处理,还可以按照其他比例沿图像宽度和/或图像高度方向进行降分辨率处理。例如,上述其他比例可以是2:3、3:4等,也就是降低三分之二分辨率、降低四分之三分辨率等。
S103:对第一图像进行图像处理,得到第二图像。
具体的,对第一图像进行图像处理时,可以根据具体应用中的需求对第一图像进行处理。例如,对第一图像进行编码处理、滤波处理等。
在上述图像处理为对第一图像进行编码处理时,本申请实施例所提供方案的执行主体可以为具有视频编码功能的设备,比如,可以为硬盘录像机,网络硬盘录像机;也可以为具有图像采集功能和视频编码功能的设备,比如,可以为具有视频编码功能的摄像机,集成有镜头和具有编码功能的处理器的设备。
S104:提升第二图像的分辨率至预设分辨率,作为图像处理的结果。
具体的,上述预设分辨率可以为待处理图像的原始分辨率,也就是,对待处理图像进行降分辨率处理之前的分辨率。上述预设分辨率还可以是预先设定的一分辨率。一种情况下,上述预先设定的分辨率可以是根据用于显示图像处理结果的显示设备的分辨率预先确定的分辨率。
例如,若待处理图像的分辨率为1920x1080,第一图像的分辨率为960x1080时,上述预设分辨率可以为1920x1080,也可以为1440x1080。
再若上述显示设备的分辨率为1920x1080,则为使得显示设备具有较佳的显示效果,上述预先设定的分辨率为1920x1080。若上述显示设备的分辨率为1440x1080,则为使得显示设备具有较佳的显示效果,上述预先设定的分辨率为1440x1080。
由以上可见,应用上述各个实施例提供的方案进行图像处理时,在获得待处理图像后,获得对待处理图像进行降分辨率处理的第一图像,然后通过对第一图像进行图像处理完成原本需要对待处理图像进行的图像处理,另外,为保证最终图像处理结果中图像的分辨率与实际需求相一致,在对第一图像进行图像处理得到第二图像后,还对第二图像进行分辨率提升处理。由于上述第一图像是对待处理图像进行降分辨率处理后得到的图像,所以从分辨率角度而言,第一图像会比待处理图像小,因此,应用上述各个实施例提供的 方案对图像进行处理时,能够扩大图像处理设备所处理图像的分辨率范围,进而应用上述各个实施例提供的方案进行图像处理时,能够降低对图像分辨率的要求。
也就是,图像处理设备在对图像进行处理时,能够处理的图像的分辨率范围被拓宽,从而从分辨率角度提高了图像处理设备针对接入图像的兼容性。
另外,由于图像处理设备所处理图像的分辨率降低,所以,所处理图像的数据量也降低,因而,即使图像处理设备能够处理图像的最大分辨率较低时,也能够实时处理原始分辨率较高的图像。
由于对图像进行图像处理时,是由图像处理设备完成的,而图像处理设备可能包含不同的硬件资源,所以,这些硬件资源相互配合完成图像处理。鉴于此,本申请的一个实施例中,参见图2,提供了另一种图像处理方法的流程示意图,与前述实施例相对比,本实施例中,上述S101获得待处理图像,包括:
S101A:获取模拟图像,并将模拟图像转换为数字图像。
将模拟图像转换为数字图像,也就是将模拟图像转换为以二维数字组表示的图像。具体的,可以利用ADC(Analog-to-Digital Converter,模/数转换器)将模拟图像转换为数字图像。
S101B:将根据上述数字图像确定的待处理图像存储到随机存储器。
将上述待处理图像存储到随机存储器,这样在单位时间内获取的待处理图像的数量超过单位时间内处理的图像数量时,对不能完成处理的待处理图像进行缓存,从而能够有效防止不能及时处理的待处理图像丢失的现象发生。
具体的,上述随机存储器可以为DDR(Double Data SDRAM,双倍速率同步动态随机存储器)。由于DDR成本一般较低,因而,采用DDR作为随机存储器,可以在一定程度上节省图像采集设备的成本。
下面在上述图2所示实施例的基础上,再通过两个更加具体的实施例对本申请实施例提供的图像处理方法进行说明。
本申请的一个实施例中,上述随机存储器中存储的待处理图像可以为上 述数字图像。
这种情况下,上述获得按照预设的Half模式对待处理图像进行降分辨率处理得到的第一图像可以通过以下步骤实现:
从随机存储器获得待处理图像;
按照预设的Half模式,对待处理图像进行降分辨率处理得到的第一图像。
也就是说,这种情况下,上述随机存储器中存储的待处理图像为降分辨率处理之前的图像。因而要获得上述第一图像,需要从随机存储器读取待处理图像,并对所读取的图像进行降分辨率处理。
本申请的另一个实施例中,上述随机存储器中存储的图像可以为进行降分辨率处理后的图像。鉴于此,将根据上述数字图像确定的待处理图像存储到随机存储器这一步骤,可以通过以下步骤实现:
直接将上述数字图像确定为待处理图像,并按照预设的Half模式,对上述待处理图像进行降分辨率处理;
将降分辨率处理后的待处理图像存储到随机存储器。
从上述描述可以看出,这种情况下,上述随机存储器中存储的待处理图像即为按照Half模式进行降分辨率处理后的图像,也就是上述第一图像。
因此,与上述情况相对应,上述获得按照预设的Half模式对待处理图像进行降分辨率处理得到的第一图像为:获得随机存储器中存储的待处理图像,作为第一图像。
本申请的一个实施例中,在将模拟图像转换为数字图像之后,还可以对数字图像进行预处理去除数字图像中的图像噪声。
这种情况下,将根据数字图像确定的待处理图像存储到随机存储器,具体是将根据去除图像噪声的数字图像确定的待处理图像存储到随机存储器。
对第一图像进行图像处理之前,先去除数字图像中的图像噪声,这样可以在后续过程中得到高质量的第一图像,从而可以提高图像处理的效果。
与上述图像处理方法相对应,本申请实施例还提供了一种图像处理设备。
图3为本申请实施例提供的一种图像处理设备的结构示意图,该设备包括:图像采集器301和图像处理器302,其中,
所述图像采集器301,用于获得待处理图像;
所述图像处理器302,用于获得对所述待处理图像进行降分辨率处理得到的第一图像;对所述第一图像进行图像处理,得到第二图像;提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
本申请的一个实施例中,所述图像处理器302,具体用于获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
由以上可见,应用上述各个实施例提供的图像处理设备进行图像处理时,在获得待处理图像后,获得对待处理图像进行降分辨率处理的第一图像,然后通过对第一图像进行图像处理完成原本需要对待处理图像进行的图像处理,另外,为保证最终图像处理结果中图像的分辨率与实际需求相一致,在对第一图像进行图像处理得到第二图像后,还对第二图像进行分辨率提升处理。由于上述第一图像是对待处理图像进行降分辨率处理后得到的图像,所以从分辨率角度而言,第一图像会比待处理图像小,因此,应用上述各个实施例提供的图像处理设备对图像进行处理时,能够扩大图像处理设备所处理图像的分辨率范围,进而应用上述各个实施例提供的图像处理设备进行图像处理时,能够降低对图像分辨率的要求。
本申请的一个实施例中,参见图4,提供了另一种图像处理设备的结构示意图,与前述实施例相比,本实施例中,上述图像采集器301具体为模数转换器301A,上述设备还包括:图像输入接口303和随机存储器304;其中,
所述模数转换器301A,用于获取模拟图像,并将所述模拟图像转换为数字图像,并基于所述数字图像向所述图像输入接口303发送图像;
所述图像输入接口303,用于接收所述模数转换器301A发送的图像,并根据所接收的图像向所述随机存储器304发送图像;
所述随机存储器304,用于存储根据所接收图像确定的待处理图像。
具体的,上述模数转换器301A,可以为ADC,它是一种能够将模拟图像转换为以二维数字组表示的图像的器件。
在上述待处理图像为视频中的一帧时,上述图像输入接口303也可以是视频输入接口。
另外,上述图像输入接口303是相对于图像处理器302而言的,也就是,图像输入接口303是用于向图像处理器302提供输入图像的接口。
本申请的一个实施例中,图像输入接口303,除了向模数转换器301A发送接收到的图像外,还可以向显示设备发送接收到的图像,这样可以使得工作人员能够通过显示设备预览进行图像处理之前的图像。
本实施例提供的方案中,将待处理图像存储到随机存储器304,能够在单位时间内获取的待处理图像的数量超过单位时间内处理的图像数量时,对不能实时完成处理的待处理图像进行缓存,从而能够有效防止不能及时处理的待处理图像丢失的现象发生。
具体的,上述随机存储器304可以为DDR。由于DDR成本一般较低,因而,采用DDR作为随机存储器,可以在一定程度上节省图像采集设备的成本。
下面在上述图4所示实施例的基础上,再通过更加具体的三个实施例对本申请实施例提供的图像采集设备进行说明。
本申请的一个实施例中,所述模数转换器301A,具体用于向所述图像输入接口303发送所述数字图像;
所述图像输入接口303,具体用于向所述随机存储器304发送所述数字图像;
所述随机存储器304,具体用于将所述数字图像作为待处理图像存储;
所述图像处理器302,具体用于从所述随机存储器304获得所述待处理图像;按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
这种情况下,上述随机存储器304中存储的待处理图像为模数转换得到的数字图像,也就是,降分辨率处理之前的图像。降分辨率处理这一项工作 由图像处理器302来完成。因此,图像处理器302可以根据其实际的情况,例如,空闲硬件资源等,确定如何对待处理图像进行降分辨率处理。
例如,图像处理器302对图像进行编码处理时,图像处理器302可以根据当前码率的波动情况、连续处理的各图像的图像内容、空闲CPU资源等确定如何对待处理图像进行降分辨率处理。
本申请的另一个实施例中,所述模数转换器301A,具体用于直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理,并向所述图像输入接口303发送降分辨率处理后的所述待处理图像;
所述图像输入接口303,具体用于向所述随机存储器发送所述待处理图像;
所述随机存储器304,具体用于存储所述待处理图像;
所述图像处理器302,具体用于获得所述随机存储器中存储的图像,作为第一图像。
这种情况下,基于Half模式的降分辨率处理由模数转换器301A完成,也就是,模数转换器301A输出的是降分辨率后的待处理图像,也即输出的是上述第一图像。进而上述随机存储器304中存储的是上述第一图像。这时图像处理器302获得第一图像时,直接从上述随机存储器304读取这一第一图像即可。由模数转换器301A完成降分辨率处理,可以使得后续图像输入接口303、随机存储器304以及图像处理器302处理的均为降分辨率之后的图像,从而降低了各个器件所要处理图像的数据量,减轻了这些器件的工作负载。
另外,上述情况下,由于模数转换器301A前端直接对接外部输入的图像,而后端输出的则直接为降分辨率之后的图像,后续各个器件不再面对大分辨率图像。因此,这种由模数转换器301A完成降分辨率处理的方案尤其适用于整体性能较低的图像处理设备。
本申请的再一个实施例中,所述图像输入接口303集成有降分辨率芯片;
所述模数转换器301A,具体用于向所述图像输入接口发送所述数字图像;
所述图像输入接口303,具体用于接收所述模数转换器发送的所述数字图 像,通过所述降分辨率芯片按照预设的Half模式对所述数字图像进行降分辨率处理,并通过所述降分辨率芯片向所述随机存储器发送降分辨率处理得到的图像;
所述随机存储器304,具体用于将所接收的图像作为待处理图像存储;
所述图像处理器302,具体用于从所述随机存储器获得所述待处理图像,作为第一图像。
这种情况下,基于Half模式的降分辨率处理既非由模数转换器301A完成,也非由图像处理器302完成,而是由图像输入接口303中集成的降分辨率芯片完成。基于此上述图像输入接口303向随机存储器304输出的也是降分辨率后的待处理图像,也即输出的是上述第一图像。进而上述随机存储器304中存储的是上述第一图像。这时图像处理器302获得第一图像时,直接从上述随机存储器304读取这一第一图像即可。由降分辨率芯片完成降分辨率处理,可以使得后续降分辨率芯片向随机存储器304发送的图像的数据量、随机存储器304所存储图像的数据量以及图像处理器302要处理图像的数据量均降低为降分辨率之后图像的数据量,从而减轻了这些器件的工作负载。
另外,基于上述情况,由降分辨率芯片进行降分辨率处理时,上述图像输入接口实际可以对外输出降分辨率之后的图像,也可以输出降分辨率之前的图像。鉴于此,本申请的一个实施例中,在需要多画面预览图像处理之前的图像的情况下,若用户需要预览小画面,则上述图像输入接口303可以通过上述降分辨率芯片将降分辨率之后的图像输出至显示设备;若用户需要预览大画面,则上述图像输入接口303可以直接将降分辨率之前的图像输出至显示设备。
本申请的一个实施例中,所述设备还包括图像降噪芯片:
所述图像输入接口303,具体用于接收所述模数转换器301A发送的所述数字图像,并向所述图像降噪芯片发送所述数字图像;
所述图像降噪芯片,用于对所述数字图像进行预处理去除所述数字图像中的图像噪声,并向所述随机存储器304发送去除图像噪声的所述数字图像;
所述随机存储器304,具体用于存储根据去除图像噪声的所述数字图像确 定的待处理图像。
对第一图像进行图像处理之前,先去除数字图像中的图像噪声,这样可以在后续过程中得到高质量的第一图像,从而可以提高图像处理的效果。
与前述图像处理方法相对应,本申请实施例还提供了一种图像处理装置。
本申请的一个实施例中,提供了一种图像处理装置,所述装置包括:
图像获得模块,用于获得待处理图像;
降分辨率模块,用于获得对所述待处理图像进行降分辨率处理得到的第一图像;
图像处理模块,用于对所述第一图像进行图像处理,得到第二图像;
升分辨率模块,用于提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
本申请的一个实施例中,所述降分辨率模块,具体用于获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
本申请的一个实施例中,所述图像获得模块,包括:
模数转换单元,用于获取模拟图像,并将所述模拟图像转换为数字图像;
图像存储单元,用于将根据所述数字图像确定的待处理图像存储到随机存储器。
本申请的一个实施例中,所述降分辨率模块,具体用于:
从所述随机存储器获得所述待处理图像;
按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
本申请的一个实施例中,所述图像存储单元,具体用于:
直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理;
将降分辨率处理后的所述待处理图像存储到随机存储器;
相应地,所述降分辨率模块,具体用于获得所述随机存储器中存储的所 述待处理图像,作为第一图像。
本申请的一个实施例中,所述图像获得模块,还包括:
噪声去除单元,用于在所述模数转换单元将所述模拟图像转换为数字图像之后,对所述数字图像进行预处理去除所述数字图像中的图像噪声;
相应地,所述图像存储单元,具体用于将根据去除图像噪声的数字图像确定的待处理图像存储到随机存储器。
由以上可见,应用上述各个实施例提供的方案进行图像处理时,在获得待处理图像后,获得对待处理图像进行降分辨率处理的第一图像,然后通过对第一图像进行图像处理完成原本需要对待处理图像进行的图像处理,另外,为保证最终图像处理结果中图像的分辨率与实际需求相一致,在对第一图像进行图像处理得到第二图像后,还对第二图像进行分辨率提升处理。由于上述第一图像是对待处理图像进行降分辨率处理后得到的图像,所以从分辨率角度而言,第一图像会比待处理图像小,因此,应用上述各个实施例提供的方案对图像进行处理时,能够扩大图像处理设备所处理图像的分辨率范围,进而应用上述各个实施例提供的方案进行图像处理时,能够降低对图像分辨率的要求。
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供的图像处理方法。
具体的,上述图像处理方法,包括:
获得待处理图像;
获得对所述待处理图像进行降分辨率处理得到的第一图像;
对所述第一图像进行图像处理,得到第二图像;
提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
需要说明的是,通过上述计算机可读存储介质实现图像处理方法的其他实施例,与前述方法实施例部分提供的实施例相同,这里不再赘述。
执行本实施例提供的机器可读存储介质中存储的计算机程序来进行图像处理时,由于上述第一图像是对待处理图像进行降分辨率处理后得到的图像, 所以从分辨率角度而言,第一图像会比待处理图像小,因此,应用上述各个实施例提供的图像处理设备对图像进行处理时,能够扩大图像处理设备所处理图像的分辨率范围,进而应用上述各个实施例提供的图像处理设备进行图像处理时,能够降低对图像分辨率的要求。
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例提供的图像处理方法。
具体的,上述图像处理方法,包括:
获得待处理图像;
获得对所述待处理图像进行降分辨率处理得到的第一图像;
对所述第一图像进行图像处理,得到第二图像;
提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
需要说明的是,通过上述计算机可读存储介质实现图像处理方法的其他实施例,与前述方法实施例部分提供的实施例相同,这里不再赘述。
本实施例提供的计算机程序产品在计算机上运行而进行图像处理时,由于上述第一图像是对待处理图像进行降分辨率处理后得到的图像,所以从分辨率角度而言,第一图像会比待处理图像小,因此,应用上述各个实施例提供的图像处理设备对图像进行处理时,能够扩大图像处理设备所处理图像的分辨率范围,进而应用上述各个实施例提供的图像处理设备进行图像处理时,能够降低对图像分辨率的要求
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等) 方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备、计算机可读存储介质以及计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (20)

  1. 一种图像处理方法,其特征在于,所述方法包括:
    获得待处理图像;
    获得对所述待处理图像进行降分辨率处理得到的第一图像;
    对所述第一图像进行图像处理,得到第二图像;
    提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
  2. 根据权利要求1所述的方法,其特征在于,所述获得对所述待处理图像进行降分辨率处理得到的第一图像,包括:
    获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
  3. 根据权利要求2所述的方法,其特征在于,所述获得待处理图像,包括:
    获取模拟图像,并将所述模拟图像转换为数字图像;
    将根据所述数字图像确定的待处理图像存储到随机存储器。
  4. 根据权利要求3所述的方法,其特征在于,所述获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,包括:
    从所述随机存储器获得所述待处理图像;
    按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
  5. 根据权利要求3所述的方法,其特征在于,所述将根据所述数字图像确定的待处理图像存储到随机存储器,包括:
    直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理;
    将降分辨率处理后的所述待处理图像存储到随机存储器;
    相应地,所述获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,包括:
    获得所述随机存储器中存储的所述待处理图像,作为第一图像。
  6. 根据权利要求3-5中任一项所述的方法,其特征在于,在所述将所述 模拟图像转换为数字图像之后,还包括:
    对所述数字图像进行预处理去除所述数字图像中的图像噪声;
    相应地,所述将根据所述数字图像确定的待处理图像存储到随机存储器,包括:
    将根据去除图像噪声的数字图像确定的待处理图像存储到随机存储器。
  7. 一种图像处理设备,其特征在于,所述设备包括:图像采集器和图像处理器,其中,
    所述图像采集器,用于获得待处理图像;
    所述图像处理器,用于获得对所述待处理图像进行降分辨率处理得到的第一图像;对所述第一图像进行图像处理,得到第二图像;提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
  8. 根据权利要求7所述的设备,其特征在于,
    所述图像处理器,具体用于获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
  9. 根据权利要求8所述的设备,其特征在于,所述图像采集器为模数转换器,所述设备还包括:图像输入接口和随机存储器;其中,
    所述模数转换器,用于获取模拟图像,并将所述模拟图像转换为数字图像,并基于所述数字图像向所述图像输入接口发送图像;
    所述图像输入接口,用于接收所述模数转换器发送的图像,并根据所接收的图像向所述随机存储器发送图像;
    所述随机存储器,用于存储根据所接收图像确定的待处理图像。
  10. 根据权利要求9所述的设备,其特征在于,
    所述模数转换器,具体用于向所述图像输入接口发送所述数字图像;
    所述图像输入接口,具体用于向所述随机存储器发送所述数字图像;
    所述随机存储器,具体用于将所述数字图像作为待处理图像存储;
    所述图像处理器,具体用于从所述随机存储器获得所述待处理图像;按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
  11. 根据权利要求9所述的设备,其特征在于,
    所述模数转换器,具体用于直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理,并向所述图像输入接口发送降分辨率处理后的所述待处理图像;
    所述图像输入接口,具体用于向所述随机存储器发送所述待处理图像;
    所述随机存储器,具体用于存储所述待处理图像;
    所述图像处理器,具体用于获得所述随机存储器中存储的图像,作为第一图像。
  12. 根据权利要求9所述的设备,其特征在于,所述图像输入接口集成有降分辨率芯片;
    所述模数转换器,具体用于向所述图像输入接口发送所述数字图像;
    所述图像输入接口,具体用于接收所述模数转换器发送的所述数字图像,通过所述降分辨率芯片按照预设的Half模式对所述数字图像进行降分辨率处理,并通过所述降分辨率芯片向所述随机存储器发送降分辨率处理得到的图像;
    所述随机存储器,具体用于将所接收的图像作为待处理图像存储;
    所述图像处理器,具体用于从所述随机存储器获得所述待处理图像,作为第一图像。
  13. 根据权利要求9-12中任一项所述的设备,其特征在于,所述设备还包括图像降噪芯片:
    所述图像输入接口,具体用于接收所述模数转换器发送的所述数字图像,并向所述图像降噪芯片发送所述数字图像;
    所述图像降噪芯片,用于对所述数字图像进行预处理去除所述数字图像中的图像噪声,并向所述随机存储器发送去除图像噪声的所述数字图像;
    所述随机存储器,具体用于存储根据去除图像噪声的所述数字图像确定的待处理图像。
  14. 一种图像处理装置,其特征在于,所述装置包括:
    图像获得模块,用于获得待处理图像;
    降分辨率模块,用于获得对所述待处理图像进行降分辨率处理得到的第一图像;
    图像处理模块,用于对所述第一图像进行图像处理,得到第二图像;
    升分辨率模块,用于提升所述第二图像的分辨率至预设分辨率,作为图像处理的结果。
  15. 根据权利要求14所述的装置,其特征在于,
    所述降分辨率模块,具体用于获得按照预设的Half模式对所述待处理图像进行降分辨率处理得到的第一图像,其中,所述Half模式为:沿图像宽度方向降低二分之一分辨率和/或沿图像高度方向降低二分之一分辨率。
  16. 根据权利要求15所述的装置,其特征在于,所述图像获得模块,包括:
    模数转换单元,用于获取模拟图像,并将所述模拟图像转换为数字图像;
    图像存储单元,用于将根据所述数字图像确定的待处理图像存储到随机存储器。
  17. 根据权利要求16所述的装置,其特征在于,所述降分辨率模块,具体用于:
    从所述随机存储器获得所述待处理图像;
    按照预设的Half模式,对所述待处理图像进行降分辨率处理得到的第一图像。
  18. 根据权利要求16所述的装置,其特征在于,所述图像存储单元,具体用于:
    直接将所述数字图像确定为待处理图像,并按照预设的Half模式,对所述待处理图像进行降分辨率处理;
    将降分辨率处理后的所述待处理图像存储到随机存储器;
    相应地,所述降分辨率模块,具体用于获得所述随机存储器中存储的所述待处理图像,作为第一图像。
  19. 根据权利要求16-18中任一项所述的装置,其特征在于,所述图像获得模块,还包括:
    噪声去除单元,用于在所述模数转换单元将所述模拟图像转换为数字图像之后,对所述数字图像进行预处理去除所述数字图像中的图像噪声;
    相应地,所述图像存储单元,具体用于将根据去除图像噪声的数字图像 确定的待处理图像存储到随机存储器。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6任一所述的方法步骤。
PCT/CN2020/079750 2019-03-28 2020-03-17 一种图像处理方法及设备 WO2020192499A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/427,788 US20220130010A1 (en) 2019-03-28 2020-03-17 Image Processing Method and Device
EP20776395.4A EP3910585A4 (en) 2019-03-28 2020-03-17 IMAGE PROCESSING METHOD AND APPARATUS

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910243416.9A CN111754387B (zh) 2019-03-28 2019-03-28 一种图像处理方法及设备
CN201910243416.9 2019-03-28

Publications (1)

Publication Number Publication Date
WO2020192499A1 true WO2020192499A1 (zh) 2020-10-01

Family

ID=72609118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079750 WO2020192499A1 (zh) 2019-03-28 2020-03-17 一种图像处理方法及设备

Country Status (4)

Country Link
US (1) US20220130010A1 (zh)
EP (1) EP3910585A4 (zh)
CN (1) CN111754387B (zh)
WO (1) WO2020192499A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040091164A1 (en) * 2002-11-11 2004-05-13 Minolta Co., Ltd. Image processing program product and device for executing retinex processing
CN104134191A (zh) * 2014-07-11 2014-11-05 三星电子(中国)研发中心 图像去噪方法及其装置
US9361664B2 (en) * 2002-02-13 2016-06-07 Canon Kabushiki Kaisha Data processing apparatus, image processing apparatus, and method therefor
CN106663314A (zh) * 2014-09-19 2017-05-10 英特尔公司 实时皮肤平滑图像增强滤波器
CN106663320A (zh) * 2014-07-08 2017-05-10 高通股份有限公司 使用全局最小化和深度内插的立体深度估计的系统和方法
CN107492066A (zh) * 2016-06-10 2017-12-19 现代自动车株式会社 用于执行预处理以获得清晰度提高的图像的图像处理装置和方法
CN108428215A (zh) * 2017-02-15 2018-08-21 阿里巴巴集团控股有限公司 一种图像处理方法、装置和设备
CN108921806A (zh) * 2018-08-07 2018-11-30 Oppo广东移动通信有限公司 一种图像处理方法、图像处理装置及终端设备

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69917489T2 (de) * 1998-11-09 2005-06-02 Broadcom Corp., Irvine Anzeigesystem zur mischung von graphischen daten und videodaten
JP2002044421A (ja) * 2000-07-28 2002-02-08 Ricoh Co Ltd 画像読取装置および画像読取装置の制御方法および画像処理装置
CN100515036C (zh) * 2004-10-10 2009-07-15 倚强科技股份有限公司 智能型图像处理闭路电视摄像机装置及其物体追踪方法
US7801223B2 (en) * 2006-07-27 2010-09-21 Lsi Corporation Method for video decoder memory reduction
CN100547618C (zh) * 2006-10-30 2009-10-07 北京市中山新技术设备研究所 视频分车器
US8824831B2 (en) * 2007-05-25 2014-09-02 Qualcomm Technologies, Inc. Advanced noise reduction in digital cameras
KR100902419B1 (ko) * 2007-06-25 2009-06-11 주식회사 코아로직 캡쳐 영상을 시간 지연 없이 표시할 수 있는 영상 처리장치, 방법 및 상기 방법을 프로그램화하여 수록한컴퓨터로 읽을 수 있는 기록매체
WO2012111757A1 (ja) * 2011-02-18 2012-08-23 ソニー株式会社 画像処理装置および画像処理方法
JP6232778B2 (ja) * 2013-06-27 2017-11-22 セイコーエプソン株式会社 画像処理装置、画像表示装置、および画像処理装置の制御方法
CN105516423A (zh) * 2015-12-24 2016-04-20 努比亚技术有限公司 移动终端、数据传输系统及移动终端拍摄方法
CN107357404A (zh) * 2016-05-10 2017-11-17 联发科技(新加坡)私人有限公司 图像显示方法及其电子装置
JP6714078B2 (ja) * 2016-05-10 2020-06-24 オリンパス株式会社 画像処理装置、画像処理方法及び画像処理プログラム

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9361664B2 (en) * 2002-02-13 2016-06-07 Canon Kabushiki Kaisha Data processing apparatus, image processing apparatus, and method therefor
US20040091164A1 (en) * 2002-11-11 2004-05-13 Minolta Co., Ltd. Image processing program product and device for executing retinex processing
CN106663320A (zh) * 2014-07-08 2017-05-10 高通股份有限公司 使用全局最小化和深度内插的立体深度估计的系统和方法
CN104134191A (zh) * 2014-07-11 2014-11-05 三星电子(中国)研发中心 图像去噪方法及其装置
CN106663314A (zh) * 2014-09-19 2017-05-10 英特尔公司 实时皮肤平滑图像增强滤波器
CN107492066A (zh) * 2016-06-10 2017-12-19 现代自动车株式会社 用于执行预处理以获得清晰度提高的图像的图像处理装置和方法
CN108428215A (zh) * 2017-02-15 2018-08-21 阿里巴巴集团控股有限公司 一种图像处理方法、装置和设备
CN108921806A (zh) * 2018-08-07 2018-11-30 Oppo广东移动通信有限公司 一种图像处理方法、图像处理装置及终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3910585A4

Also Published As

Publication number Publication date
EP3910585A1 (en) 2021-11-17
EP3910585A4 (en) 2022-04-06
US20220130010A1 (en) 2022-04-28
CN111754387B (zh) 2023-08-04
CN111754387A (zh) 2020-10-09

Similar Documents

Publication Publication Date Title
US8922665B2 (en) Rapidly initializing and dynamically adjusting media streams
CN110868625A (zh) 一种视频播放方法、装置、电子设备及存储介质
CN107948713B (zh) 一种延时直播方法及系统
US10003767B2 (en) Image processing apparatus and image processing method
TWI637631B (zh) 影像處理裝置、影視子系統與影視處理電路
US20220279224A1 (en) Systems and methods for video processing
CN104053015A (zh) 一种传输媒体数据的方法及虚拟桌面服务器
US9819957B2 (en) Method and apparatus for decoding a progressive JPEG image
US9967465B2 (en) Image frame processing method
WO2021204015A1 (zh) 数据处理的方法和系统
US20140009563A1 (en) Non-video codecs with video conferencing
US20090284538A1 (en) Video streaming data processing method
WO2023010755A1 (zh) 一种hdr视频转换方法、装置、设备及计算机存储介质
JP2020058014A (ja) 映像処理装置、ビデオ会議システム、映像処理方法、およびプログラム
WO2020192499A1 (zh) 一种图像处理方法及设备
US10360660B2 (en) Image processing apparatus and image processing method for handling raw images
US20200106821A1 (en) Video processing apparatus, video conference system, and video processing method
CN104639979A (zh) 视频分享方法及系统
TWI523541B (zh) 無線影音傳輸系統及其方法,及其電腦程式產品
CN112911186B (zh) 图像存储方法及装置、电子设备、存储介质
WO2022061723A1 (zh) 一种图像处理方法、设备、终端及存储介质
TWI520614B (zh) 視訊編碼方法及裝置
CN117857877A (zh) 视频图像处理方法、装置、电子设备和存储介质
US20150264368A1 (en) Method to bypass re-sampling process in shvc with bit-depth and 1x scalability
KR20080041857A (ko) 해상도가 다른 영상을 저장하는 촬영장치

Legal Events

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

Ref document number: 20776395

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020776395

Country of ref document: EP

Effective date: 20210811

NENP Non-entry into the national phase

Ref country code: DE