KR102516812B1 - Method and system for optimization of image encode quality - Google Patents

Method and system for optimization of image encode quality Download PDF

Info

Publication number
KR102516812B1
KR102516812B1 KR1020200151448A KR20200151448A KR102516812B1 KR 102516812 B1 KR102516812 B1 KR 102516812B1 KR 1020200151448 A KR1020200151448 A KR 1020200151448A KR 20200151448 A KR20200151448 A KR 20200151448A KR 102516812 B1 KR102516812 B1 KR 102516812B1
Authority
KR
South Korea
Prior art keywords
image
quality
machine learning
data
computer device
Prior art date
Application number
KR1020200151448A
Other languages
Korean (ko)
Other versions
KR20220065188A (en
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 KR1020200151448A priority Critical patent/KR102516812B1/en
Publication of KR20220065188A publication Critical patent/KR20220065188A/en
Application granted granted Critical
Publication of KR102516812B1 publication Critical patent/KR102516812B1/en

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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • G06N20/10Machine learning using kernel methods, e.g. support vector machines [SVM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

기계학습을 이용하여 이미지 압축 품질을 최적화하는 방법 및 시스템이 개시된다. 이미지 압축 최적화 방법은, 이미지 품질 파라미터와 이미지 특징을 학습한 기계학습 모델을 통해 입력 이미지에 대한 목표 PSNR(Peak Signal to Noise Ratio)을 만족하는 최적화 품질을 추정하는 단계; 및 상기 최적화 품질로 인코딩된 이미지 파일을 상기 입력 이미지에 대한 압축 파일로 출력하는 단계를 포함할 수 있다.A method and system for optimizing image compression quality using machine learning are disclosed. The image compression optimization method includes: estimating an optimization quality that satisfies a target peak signal to noise ratio (PSNR) for an input image through a machine learning model that has learned image quality parameters and image characteristics; and outputting the image file encoded with the optimized quality as a compressed file for the input image.

Figure R1020200151448
Figure R1020200151448

Description

기계학습을 이용하여 이미지 압축 품질을 최적화하는 방법 및 시스템{METHOD AND SYSTEM FOR OPTIMIZATION OF IMAGE ENCODE QUALITY}Method and system for optimizing image compression quality using machine learning {METHOD AND SYSTEM FOR OPTIMIZATION OF IMAGE ENCODE QUALITY}

아래의 설명은 이미지 압축 최적화 기술에 관한 것이다.The description below relates to image compression optimization techniques.

네트워크를 통해 전송되는 웹 컨텐츠 중에서 페이지 로딩 속도에 가장 큰 영향을 미치는 것은 이미지 컨텐츠이다.Among web contents transmitted over a network, image contents have the greatest influence on page loading speed.

JPEG(Joint Photographic Experts Group) 포맷은 손실 압축 방식으로, 24비트의 이미지 화소를 표현할 수 있으면서, 다른 포맷에 비해 압축율이 높아 웹 환경에서 많이 사용되고 있다. 일반적으로 웹 상에서 유통되고 있는 이미지 포맷 중 JPEG가 높은 비중을 차지하고 있다.The JPEG (Joint Photographic Experts Group) format is a lossy compression method and is widely used in a web environment because it can express 24-bit image pixels and has a high compression rate compared to other formats. In general, among the image formats distributed on the web, JPEG occupies a high proportion.

JPEG 압축 방법의 일 예로 한국공개특허 제10-2002-0035726호(공개일 2002년 05월 15일) "정지 영상 압축 및 복원 방법"에는 입력 영상신호를 웨이브렛 변환(Wavelet Transform)을 이용하여 압축하는 기술이 개시되어 있다.As an example of a JPEG compression method, Korea Patent Publication No. 10-2002-0035726 (published on May 15, 2002) "Still Image Compression and Restoration Method" compresses an input image signal using wavelet transform A technique is disclosed.

JPEG 이미지 포맷이 웹 환경에서 차지하는 비중이 높음에 따라 JPEG 이미지의 압축률 개선을 위한 최적화 기술이 요구되고 있다. 이미지 기반 서비스 플랫폼에서는 JPEG 인코딩 옵션으로 JPEG 압축 최적화 방법인 JAQ(JPEG adaptive quality) 기술을 제공하고 있다.As the JPEG image format occupies a high proportion in the web environment, an optimization technique for improving the compression rate of JPEG images is required. The image-based service platform provides JAQ (JPEG adaptive quality) technology, a JPEG compression optimization method, as a JPEG encoding option.

JAQ 기술은 육안상 이미지의 품질이 저하되지 않는 기준을 설정하고(PSNR 45.2db) JPEG의 품질 파라미터를 낮춰가며 최적의 파라미터를 추정하는 과정을 반복한다.The JAQ technology sets a criterion for not deteriorating image quality to the naked eye (PSNR 45.2db) and repeats the process of estimating the optimal parameters by lowering the quality parameters of JPEG.

기존 JAQ 기술은 반복 과정을 통해 최적 품질 파라미터를 추정하는데, 특히 고해상도 영상에서 처리 시간의 저하가 발생한다.Existing JAQ technology estimates optimal quality parameters through an iterative process, but especially in high-resolution images, processing time decreases.

이미지 처리 전용 SIMD(single instruction multiple data)를 이용하여 JAQ를 고속화할 수 있는 방법과 시스템을 제공한다.Provided is a method and system capable of speeding up JAQ using SIMD (single instruction multiple data) dedicated to image processing.

기계학습(ML) 프레임워크를 적용하여 반복(iteration) 과정 없이 단일 추론 모델을 통해 JAQ를 고속화할 수 있는 방법과 시스템을 제공한다.We provide a method and system that can speed up JAQ through a single inference model without an iteration process by applying a machine learning (ML) framework.

컴퓨터 장치에서 실행되는 이미지 압축 최적화 방법에 있어서, 상기 컴퓨터 장치는 메모리에 포함된 컴퓨터 판독가능한 명령들을 실행하도록 구성된 적어도 하나의 프로세서를 포함하고, 상기 이미지 압축 최적화 방법은, 상기 적어도 하나의 프로세서에 의해, 이미지 품질 파라미터와 이미지 특징을 학습한 기계학습 모델을 통해 입력 이미지에 대한 목표 PSNR(Peak Signal to Noise Ratio)을 만족하는 최적화 품질을 추정하는 단계; 및 상기 적어도 하나의 프로세서에 의해, 상기 최적화 품질로 인코딩된 이미지 파일을 상기 입력 이미지에 대한 압축 파일로 출력하는 단계를 포함하는 이미지 압축 최적화 방법을 제공한다.A method for optimizing image compression executed in a computer device, the computer device comprising at least one processor configured to execute computer readable instructions contained in a memory, the method for optimizing image compression performed by the at least one processor , estimating an optimization quality that satisfies a target peak signal to noise ratio (PSNR) for an input image through a machine learning model that has learned image quality parameters and image characteristics; and outputting, by the at least one processor, an image file encoded with the optimized quality as a compressed file for the input image.

일 측면에 따르면, 상기 기계학습 모델은 이미지의 세부 성분을 분석하는 특징 추출자를 입력으로 하여 정답 데이터에 해당되는 품질 데이터와 근사한 값을 추론하는 학습 파이프라인을 포함할 수 있다.According to one aspect, the machine learning model may include a learning pipeline for inferring quality data corresponding to correct answer data and approximate values by taking a feature extractor for analyzing detailed components of an image as an input.

다른 측면에 따르면, 상기 기계학습 모델은 데이터 정규화를 통해 학습 데이터를 정제한 후 정제된 데이터를 이용하여 SVR(support vector regressor) 모델을 학습하는 학습 파이프라인을 포함할 수 있다.According to another aspect, the machine learning model may include a learning pipeline that refines learning data through data normalization and then learns a support vector regressor (SVR) model using the refined data.

또 다른 측면에 따르면, 상기 SVR 모델은 교차 검증(hold-out validation) 방식 또는 그리드탐색 검증(grid-search validation) 방식을 이용하여 학습 메타 데이터를 추출할 수 있다.According to another aspect, the SVR model may extract training metadata using a hold-out validation method or a grid-search validation method.

또 다른 측면에 따르면, 상기 기계학습 모델은 상기 입력 이미지의 인코딩에 사용할 품질 파라미터를 추정하는 추론 파이프라인을 포함할 수 있다.According to another aspect, the machine learning model may include an inference pipeline for estimating a quality parameter to be used for encoding the input image.

또 다른 측면에 따르면, 상기 기계학습 모델은 상기 학습 데이터에서 추출되는 정규화 요소와 상기 SVR 모델에서 추출되는 학습 메타 데이터가 상기 추론 파이프라인의 학습 파라미터로 제공할 수 있다.According to another aspect, the machine learning model may provide a normalization factor extracted from the learning data and learning metadata extracted from the SVR model as learning parameters of the inference pipeline.

또 다른 측면에 따르면, 상기 추정하는 단계는, U-LBP(uniform local binary pattern) 방법을 사용하여 상기 입력 이미지를 특징 히스토그램(feature histogram)으로 구성하는 단계를 포함할 수 있다.According to another aspect, the estimating may include configuring the input image into a feature histogram using a uniform local binary pattern (U-LBP) method.

또 다른 측면에 따르면, 상기 추정하는 단계는, 상기 특징 히스토그램으로 구성하는 단계 이전에, 상기 입력 이미지의 사이즈를 정해진 사이즈로 조절하는 단계를 더 포함할 수 있다.According to another aspect, the estimating step may further include adjusting the size of the input image to a predetermined size, before the step of constructing the feature histogram.

또 다른 측면에 따르면, 상기 기계학습 모델에 포함된 적어도 하나의 기계학습 컴포넌트에 SIMD(single instruction multiple data)가 적용될 수 있다.According to another aspect, single instruction multiple data (SIMD) may be applied to at least one machine learning component included in the machine learning model.

또 다른 측면에 따르면, 상기 기계학습 컴포넌트로서 이미지 리사이즈(image resize) 과정, LBP(local binary pattern) 구성 과정, 및 이미지 품질 추론 과정 중 적어도 하나에 상기 SIMD가 적용될 수 있다.According to another aspect, the SIMD may be applied to at least one of an image resize process, a local binary pattern (LBP) construction process, and an image quality inference process as the machine learning component.

상기 이미지 압축 최적화 방법을 상기 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독가능한 기록 매체에 저장되는 컴퓨터 프로그램을 제공한다.It provides a computer program stored in a computer readable recording medium to execute the image compression optimization method on the computer device.

컴퓨터 장치에 있어서, 메모리에 포함된 컴퓨터 판독가능한 명령들을 실행하도록 구성된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 이미지 품질 파라미터와 이미지 특징을 학습한 기계학습 모델을 통해 입력 이미지에 대한 목표 PSNR을 만족하는 최적화 품질을 추정하는 과정; 및 상기 최적화 품질로 인코딩된 이미지 파일을 상기 입력 이미지에 대한 압축 파일로 출력하는 과정을 처리하는 컴퓨터 장치를 제공한다.A computer device, comprising at least one processor configured to execute computer readable instructions contained in a memory, wherein the at least one processor is configured to generate information about an input image through a machine learning model that has learned image quality parameters and image characteristics. estimating an optimization quality that satisfies a target PSNR; and outputting the image file encoded with the optimized quality as a compressed file for the input image.

본 발명의 실시예들에 따르면, SIMD를 이용하여 JAQ에서 병목 구간이 되는 연산 기능을 고속화함으로써 이미지 압축 최적화에 대한 처리 시간을 개선할 수 있다.According to embodiments of the present invention, processing time for image compression optimization can be improved by using SIMD to speed up an arithmetic function that is a bottleneck in JAQ.

본 발명의 실시예들에 따르면, 기계학습 프레임워크를 적용하여 반복 과정 없이 JAQ로부터 추정된 JPEG 품질 파라미터와 이미지의 특징값을 학습하여 단일 추론 모델을 통해 JAQ를 고속화함으로써 이미지 압축 최적화에 대한 처리 시간을 개선할 수 있다.According to the embodiments of the present invention, processing time for image compression optimization is reduced by applying a machine learning framework to speed up JAQ through a single inference model by learning the JPEG quality parameters and image feature values estimated from JAQ without an iterative process. can improve

도 1은 본 발명의 일실시예에 있어서 컴퓨터 시스템의 내부 구성의 일례를 설명하기 위한 블록도이다.
도 2 내지 도 5는 목표 PSNR을 만족하는 최적화 품질을 찾는 과정의 일례를 설명하기 위한 예시 도면을 나타낸 것이다.
도 6은 본 발명의 일실시예에 있어서 기계학습을 이용한 JAQ 고속화 방법을 나타낸 것이다.
도 7은 본 발명의 일실시예에 있어서 학습 데이터 셋 구성 예시를 나타낸 것이다.
도 8은 본 발명의 일실시예에 있어서 교차 검증 방법을 설명하기 위한 예시 도면이다.
도 9는 본 발명의 일실시예에 있어서 LBP 이미지를 생성하는 과정을 설명하기 위한 예시 도면이다.
도 10은 본 발명의 일실시예에 있어서 기계학습을 이용한 JAQ를 이미지 처리 서버(IPS)에 적용하기 위한 시퀀스를 나타낸 것이다.
1 is a block diagram for explaining an example of an internal configuration of a computer system according to an embodiment of the present invention.
2 to 5 show exemplary diagrams for explaining an example of a process of finding an optimization quality that satisfies a target PSNR.
6 shows a JAQ speedup method using machine learning in one embodiment of the present invention.
7 shows an example of a learning data set configuration according to an embodiment of the present invention.
8 is an exemplary diagram for explaining a cross-validation method according to an embodiment of the present invention.
9 is an exemplary diagram for explaining a process of generating an LBP image according to an embodiment of the present invention.
10 illustrates a sequence for applying JAQ using machine learning to an image processing server (IPS) according to an embodiment of the present invention.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 실시예들은 이미지 압축 최적화 기술에 관한 것이다.Embodiments of the present invention relate to image compression optimization techniques.

본 명세서에서 구체적으로 개시되는 것들을 포함하는 실시예들은 JAQ에서 병목 구간이 되는 연산 기능을 고속화할 수 있다.Embodiments, including those specifically disclosed herein, can speed up computational functions that are bottlenecks in JAQ.

본 실시예들은 JPEG 압축 최적화 기술인 JAQ를 고속화하기 위한 기술에 관한 것으로, 이미지 기반 서비스 플랫폼의 이미지 처리 서버(IPS, image processing server)에 적용될 수 있다.The present embodiments relate to a technology for speeding up JAQ, which is a JPEG compression optimization technology, and can be applied to an image processing server (IPS) of an image-based service platform.

도 1은 본 발명의 일실시예에 따른 컴퓨터 시스템의 예를 도시한 블록도이다. 예를 들어, 본 발명의 실시예들에 따른 이미지 압축 최적화 시스템은 도 1을 통해 도시된 컴퓨터 시스템(100)에 의해 구현될 수 있다.1 is a block diagram illustrating an example of a computer system according to one embodiment of the present invention. For example, an image compression optimization system according to embodiments of the present invention may be implemented by the computer system 100 shown in FIG. 1 .

도 1에 도시된 바와 같이 컴퓨터 시스템(100)은 본 발명의 실시예들에 따른 이미지 압축 최적화 방법을 실행하기 위한 구성요소로서, 메모리(110), 프로세서(120), 통신 인터페이스(130) 그리고 입출력 인터페이스(140)를 포함할 수 있다.As shown in FIG. 1, a computer system 100 is a component for executing an image compression optimization method according to embodiments of the present invention, and includes a memory 110, a processor 120, a communication interface 130, and an input/output. Interface 140 may be included.

메모리(110)는 컴퓨터에서 판독 가능한 기록매체로서, RAM(random access memory), ROM(read only memory) 및 디스크 드라이브와 같은 비소멸성 대용량 기록장치(permanent mass storage device)를 포함할 수 있다. 여기서 ROM과 디스크 드라이브와 같은 비소멸성 대용량 기록장치는 메모리(110)와는 구분되는 별도의 영구 저장 장치로서 컴퓨터 시스템(100)에 포함될 수도 있다. 또한, 메모리(110)에는 운영체제와 적어도 하나의 프로그램 코드가 저장될 수 있다. 이러한 소프트웨어 구성요소들은 메모리(110)와는 별도의 컴퓨터에서 판독 가능한 기록매체로부터 메모리(110)로 로딩될 수 있다. 이러한 별도의 컴퓨터에서 판독 가능한 기록매체는 플로피 드라이브, 디스크, 테이프, DVD/CD-ROM 드라이브, 메모리 카드 등의 컴퓨터에서 판독 가능한 기록매체를 포함할 수 있다. 다른 실시예에서 소프트웨어 구성요소들은 컴퓨터에서 판독 가능한 기록매체가 아닌 통신 인터페이스(130)를 통해 메모리(110)에 로딩될 수도 있다. 예를 들어, 소프트웨어 구성요소들은 네트워크(160)를 통해 수신되는 파일들에 의해 설치되는 컴퓨터 프로그램에 기반하여 컴퓨터 시스템(100)의 메모리(110)에 로딩될 수 있다.The memory 110 is a computer-readable recording medium and may include a random access memory (RAM), a read only memory (ROM), and a permanent mass storage device such as a disk drive. Here, a non-perishable mass storage device such as a ROM and a disk drive may be included in the computer system 100 as a separate permanent storage device separate from the memory 110 . Also, an operating system and at least one program code may be stored in the memory 110 . These software components may be loaded into the memory 110 from a recording medium readable by a separate computer from the memory 110 . The separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, a disk, a tape, a DVD/CD-ROM drive, and a memory card. In another embodiment, software components may be loaded into the memory 110 through the communication interface 130 rather than a computer-readable recording medium. For example, software components may be loaded into memory 110 of computer system 100 based on a computer program installed by files received over network 160 .

프로세서(120)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(110) 또는 통신 인터페이스(130)에 의해 프로세서(120)로 제공될 수 있다. 예를 들어 프로세서(120)는 메모리(110)와 같은 기록 장치에 저장된 프로그램 코드에 따라 수신되는 명령을 실행하도록 구성될 수 있다.The processor 120 may be configured to process commands of a computer program by performing basic arithmetic, logic, and input/output operations. Instructions may be provided to processor 120 by memory 110 or communication interface 130 . For example, processor 120 may be configured to execute received instructions according to program codes stored in a recording device such as memory 110 .

통신 인터페이스(130)은 네트워크(160)를 통해 컴퓨터 시스템(100)이 다른 장치와 서로 통신하기 위한 기능을 제공할 수 있다. 일례로, 컴퓨터 시스템(100)의 프로세서(120)가 메모리(110)와 같은 기록 장치에 저장된 프로그램 코드에 따라 생성한 요청이나 명령, 데이터, 파일 등이 통신 인터페이스(130)의 제어에 따라 네트워크(160)를 통해 다른 장치들로 전달될 수 있다. 역으로, 다른 장치로부터의 신호나 명령, 데이터, 파일 등이 네트워크(160)를 거쳐 컴퓨터 시스템(100)의 통신 인터페이스(130)를 통해 컴퓨터 시스템(100)으로 수신될 수 있다. 통신 인터페이스(130)를 통해 수신된 신호나 명령, 데이터 등은 프로세서(120)나 메모리(110)로 전달될 수 있고, 파일 등은 컴퓨터 시스템(100)이 더 포함할 수 있는 저장 매체(상술한 영구 저장 장치)로 저장될 수 있다.Communication interface 130 may provide functionality for computer system 100 to communicate with other devices via network 160 . For example, a request, command, data, file, etc. generated according to a program code stored in a recording device such as the memory 110 by the processor 120 of the computer system 100 is transferred to a network ( 160) to other devices. Conversely, signals, commands, data, files, etc. from other devices may be received into the computer system 100 via the communication interface 130 of the computer system 100 via the network 160 . Signals, commands, data, etc. received through the communication interface 130 may be transmitted to the processor 120 or memory 110, and files, etc. may be stored in the computer system 100. permanent storage).

통신 방식은 제한되지 않으며, 네트워크(160)가 포함할 수 있는 통신망(일례로, 이동통신망, 유선 인터넷, 무선 인터넷, 방송망)을 활용하는 통신 방식뿐만 아니라 기기들간의 근거리 유선/무선 통신 역시 포함될 수 있다. 예를 들어, 네트워크(160)는, PAN(personal area network), LAN(local area network), CAN(campus area network), MAN(metropolitan area network), WAN(wide area network), BBN(broadband network), 인터넷 등의 네트워크 중 하나 이상의 임의의 네트워크를 포함할 수 있다. 또한, 네트워크(160)는 버스 네트워크, 스타 네트워크, 링 네트워크, 메쉬 네트워크, 스타-버스 네트워크, 트리 또는 계층적(hierarchical) 네트워크 등을 포함하는 네트워크 토폴로지 중 임의의 하나 이상을 포함할 수 있으나, 이에 제한되지 않는다.The communication method is not limited, and may include not only a communication method utilizing a communication network (eg, a mobile communication network, wired Internet, wireless Internet, and broadcasting network) that the network 160 may include, but also short-distance wired/wireless communication between devices. there is. For example, the network 160 may include a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), and a broadband network (BBN). , one or more arbitrary networks such as the Internet. In addition, the network 160 may include any one or more of network topologies including a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree or a hierarchical network, and the like. Not limited.

입출력 인터페이스(140)는 입출력 장치(150)와의 인터페이스를 위한 수단일 수 있다. 예를 들어, 입력 장치는 마이크, 키보드, 카메라 또는 마우스 등의 장치를, 그리고 출력 장치는 디스플레이, 스피커와 같은 장치를 포함할 수 있다. 다른 예로 입출력 인터페이스(140)는 터치스크린과 같이 입력과 출력을 위한 기능이 하나로 통합된 장치와의 인터페이스를 위한 수단일 수도 있다. 입출력 장치(150)는 컴퓨터 시스템(100)과 하나의 장치로 구성될 수도 있다.The input/output interface 140 may be a means for interface with the input/output device 150 . For example, the input device may include devices such as a microphone, keyboard, camera, or mouse, and the output device may include devices such as a display and a speaker. As another example, the input/output interface 140 may be a means for interface with a device in which functions for input and output are integrated into one, such as a touch screen. The input/output device 150 may be configured as one device with the computer system 100 .

또한, 다른 실시예들에서 컴퓨터 시스템(100)은 도 1의 구성요소들보다 더 적은 혹은 더 많은 구성요소들을 포함할 수도 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다. 예를 들어, 컴퓨터 시스템(100)은 상술한 입출력 장치(150) 중 적어도 일부를 포함하도록 구현되거나 또는 트랜시버(transceiver), 카메라, 각종 센서, 데이터베이스 등과 같은 다른 구성요소들을 더 포함할 수도 있다.Also, in other embodiments, computer system 100 may include fewer or more elements than those of FIG. 1 . However, there is no need to clearly show most of the prior art components. For example, the computer system 100 may be implemented to include at least some of the aforementioned input/output devices 150 or may further include other components such as a transceiver, a camera, various sensors, and a database.

본 실시예에서는 JPEG 압축 최적화 방법인 JAQ의 처리 시간을 개선하기 위한 기술을 제공한다.In this embodiment, a technique for improving the processing time of JAQ, which is a JPEG compression optimization method, is provided.

먼저, SIMD 처리를 이용한 JAQ 고속화 기술을 설명하면 다음과 같다.First, a JAQ speedup technique using SIMD processing will be described.

SIMD는 병렬 프로세스의 한 종류로, 하나의 명령어로 여러 개의 값을 동시에 계산하는 방식이다. SIMD는 그래픽 카드와 같은 멀티미디어 분야에서 주로 사용되며, 이하에서는 SIMD의 일례로 IPP를 활용할 수 있다.SIMD is a type of parallel processing, in which multiple values are computed simultaneously with a single instruction. SIMD is mainly used in a multimedia field such as a graphic card, and IPP can be used as an example of SIMD below.

도 2 내지 도 5는 목표 PSNR을 만족하는 최적화 품질을 찾는 과정의 일례를 설명하기 위한 예시 도면을 나타낸 것이다.2 to 5 show exemplary diagrams for explaining an example of a process of finding an optimization quality that satisfies a target PSNR.

JAQ 기술은 입력 이미지에 요구되는 압축 품질을 최적화 하기 위한 과정으로 압축 품질을 기준으로 설정된 품질 범위 내에서 목표 PSNR(Peak Signal to Noise Ratio)을 만족하는 최적화 품질을 찾는 것이다. 이미지에 대해 압축 품질과 유사한 품질이면서 동시에 PSNR이 목표치 이상이 되는 품질을 찾아 인코딩을 수행한다. 최적화 품질은 압축 품질보다 낮은 품질 범위 내에서 찾는다.JAQ technology is a process for optimizing the compression quality required for an input image, and finds an optimization quality that satisfies a target PSNR (Peak Signal to Noise Ratio) within a quality range set based on compression quality. Encoding is performed by finding a quality similar to the compression quality of the image and at the same time having a PSNR equal to or greater than the target value. Optimization quality is sought within a lower quality range than compression quality.

PSNR은 서로 다른 영상을 비교하는데 유의미한 지표이나, PSNR이 일정 레벨 이하인 경우 사람의 육안으로 두 영상의 차이를 구분하지 못한다는 점에서 사람이 구분하는 품질과 동일한 지표는 아니다고 할 수 있다. 따라서, 사람의 눈으로 품질이 구분되지 않는 PSNR(즉, 목표 PSNR)을 결정하고 이미지에 요구되는 압축 품질을 목표 PSNR을 만족하는 품질로 낮춤으로써 품질 최적화를 통해 파일 사이즈를 감소시킬 수 있다.PSNR is a significant index for comparing different images, but it can be said that it is not the same index as the quality that humans distinguish in that the human eye cannot distinguish the difference between the two images when the PSNR is below a certain level. Accordingly, the file size can be reduced through quality optimization by determining a PSNR (ie, a target PSNR) whose quality is indistinguishable from the human eye and reducing the compression quality required for the image to a quality that satisfies the target PSNR.

프로세서(120)는 최적화 품질을 찾기 위한 품질 범위의 최대값과 최소값을 설정한다. 최대값은 이미지에 요구되는 압축 품질로 설정한다. 최소값은 최대값으로 설정된 압축 품질보다 낮은 품질 값이 설정되며, 일 예로는 이미지 압축에 적용 가능한 품질 값 중 가장 작은 값을 품질 범위의 최소값으로 설정할 수 있다. 이미지 압축에 적용 가능한 품질 범위가 62~100이고 사용자가 요구하는 품질이 94라고 가정할 때, 최적화 품질을 찾기 위한 품질 범위는 62~94로 설정될 수 있다.The processor 120 sets the maximum and minimum values of the quality range for finding the optimal quality. The maximum value is set to the compression quality required for the image. The minimum value is set to a quality value lower than the compression quality set to the maximum value. For example, the smallest value among quality values applicable to image compression may be set as the minimum value of the quality range. Assuming that the quality range applicable to image compression is 62 to 100 and the quality required by the user is 94, the quality range for finding the optimal quality may be set to 62 to 94.

도 2를 참조하면, 이미지 압축에 적용 가능한 품질 범위가 62~100이고 사용자가 요구하는 품질이 94라고 가정할 때, 최적화 품질을 찾기 위한 품질 범위의 최대값은 94가 되고 최소값은 62가 될 수 있다.Referring to FIG. 2, assuming that the quality range applicable to image compression is 62 to 100 and the quality required by the user is 94, the maximum value of the quality range for finding the optimal quality can be 94 and the minimum value can be 62. there is.

62~94의 품질 범위에서 목표 PSNR을 만족하는 최적화 품질을 찾을 수 있다. 예를 들어, 목표 PSNR을 45.2로 가정한다.Optimization quality that satisfies the target PSNR can be found in the quality range of 62 to 94. For example, assume a target PSNR of 45.2.

도 3을 참조하면, Step1에서 프로세서(120)는 품질 범위 62~94의 평균값에 해당되는 78의 품질로 이미지를 인코딩한 후 디코딩을 거쳐 PSNR을 추출한다. 78의 품질에 대한 PSNR이 32인 경우 목표 PSNR 45.2보다 작기 때문에 품질 범위의 최소값을 78로 갱신하고 품질 탐색 과정을 계속한다.Referring to FIG. 3 , in Step1, the processor 120 encodes an image with a quality of 78 corresponding to the average value of the quality range 62 to 94, and then extracts the PSNR through decoding. If the PSNR for the quality of 78 is 32, it is smaller than the target PSNR of 45.2, so the minimum value of the quality range is updated to 78 and the quality search process continues.

Step2에서 프로세서(120)는 품질 범위 78~94의 평균값에 해당되는 86의 품질로 이미지를 인코딩한 후 디코딩을 거쳐 PSNR을 추출한다. 86의 품질에 대한 PSNR이 38인 경우 목표 PSNR 45.2보다 작기 때문에 품질 범위의 최소값을 86으로 갱신하고 품질 탐색 과정을 계속한다.In Step 2, the processor 120 encodes the image with a quality of 86 corresponding to the average value of the quality range of 78 to 94, and then extracts the PSNR through decoding. If the PSNR for the quality of 86 is 38, it is smaller than the target PSNR of 45.2, so the minimum value of the quality range is updated to 86, and the quality search process continues.

Step3에서 프로세서(120)는 품질 범위 86~94의 평균값에 해당되는 90의 품질로 이미지를 인코딩한 후 디코딩을 거쳐 PSNR을 추출한다. 90의 품질에 대한 PSNR이 44.1인 경우 목표 PSNR 45.2보다 작기 때문에 품질 범위의 최소값을 90으로 갱신하고 품질 탐색 과정을 계속한다.In Step 3, the processor 120 encodes the image with a quality of 90 corresponding to the average value of the quality range 86 to 94, and then extracts the PSNR through decoding. If the PSNR for the quality of 90 is 44.1, it is smaller than the target PSNR of 45.2, so the minimum value of the quality range is updated to 90 and the quality search process continues.

Step4에서 프로세서(120)는 품질 범위 90~94의 평균값에 해당되는 92의 품질로 이미지를 인코딩한 후 디코딩을 거쳐 PSNR을 추출한다. 92의 품질에 대한 PSNR이 45.7인 경우 목표 PSNR 45.2 이상이 되기 때문에 품질 92를 사용자가 요구하는 품질 94와 유사하면서 목표 PSNR 45.2 이상이 되는 최적화 품질로 결정하고 품질 탐색 과정과 인코딩 과정을 종료한다.In step 4, the processor 120 encodes the image with a quality of 92 corresponding to the average value of the quality range of 90 to 94, and then extracts the PSNR through decoding. If the PSNR for the quality of 92 is 45.7, the target PSNR is 45.2 or more. Therefore, the quality 92 is determined as an optimized quality similar to the quality 94 requested by the user and the target PSNR is 45.2 or more, and the quality search process and encoding process are finished.

프로세서(120)는 최적화 품질로 인코딩된 이미지 파일을 최종 압축 파일로 적용하여 출력할 수 있다.The processor 120 may apply and output an image file encoded with an optimized quality as a final compressed file.

따라서, 이미지에 요구되는 압축 품질을 목표 PSNR을 만족하는 품질로 낮춰 이미지를 인코딩 함으로써 시각적으로는 이미지에 요구되는 압축 품질과 거의 유사한 품질의 이미지를 획득할 수 있고 이와 동시에 압축 파일 사이즈를 감소시킬 수 있다.Therefore, by encoding the image by lowering the compression quality required for the image to a quality that satisfies the target PSNR, it is possible to visually obtain an image with a quality almost similar to the compression quality required for the image and at the same time reduce the compressed file size. there is.

최적화 품질을 찾기 위해 인코딩이 반복되게 되는데, 도 4를 참조하면 한 번의 인코딩 과정(400)은 JPEG 파일을 YCbCr로 변환하는 인코딩 과정(410)과, 인코딩 과정(410)의 결과 값을 RGB로 변환하는 디코딩 과정(420)과, 디코딩 과정(420)의 결과 값을 YUV로 변환하는 YUV 변환 과정(430)과, YUV 변환 과정(430)의 결과 값을 이용하여 PSNR을 추출하는 PSNR 과정(440)을 포함한다.Encoding is repeated to find the optimal quality. Referring to FIG. 4, one encoding process 400 includes an encoding process 410 for converting a JPEG file into YCbCr and converting the resulting value of the encoding process 410 into RGB. A decoding process 420, a YUV conversion process 430 converting the resultant value of the decoding process 420 into YUV, and a PSNR process 440 extracting PSNR using the resultant value of the YUV conversion process 430 includes

목표 PSNR을 만족하는 최적화 품질을 찾는 과정에서 예를 들어 도 5에 도시한 바와 같이 총 4번(Step1~Step4)의 인코딩이 수행된다고 할 때 이미지에 대해 인코딩 과정(410), 디코딩 과정(420), YUV 변환 과정(430), PSNR 과정(440)이 동일하게 각각 4번 반복된다.In the process of finding the optimal quality that satisfies the target PSNR, for example, as shown in FIG. 5, when a total of 4 encodings (Step1 to Step4) are performed, the encoding process 410 and the decoding process 420 for the image , YUV conversion process 430 and PSNR process 440 are repeated four times, respectively.

본 실시예에서는 상기한 과정의 JAQ에서 병목 구간이 되는 일부 연산 기능을 SIMD로 고속화할 수 있다.In this embodiment, some calculation functions that are bottlenecks in JAQ in the above process can be speeded up with SIMD.

프로세서(120)는 반복 루프로 구현되는 JAQ를 SIMD를 이용하여 고속화하는 것으로, JAQ에서 구현상 병목이 되는 지점으로 색상 변환(color conversion)(RGB to Gray) 과정(410~430)과 PSNR 연산 과정(440)에서 병렬성을 가지고 있는 요소를 SIMD 처리를 통해 고속화할 수 있다.The processor 120 speeds up JAQ implemented in an iterative loop using SIMD, and the color conversion (RGB to Gray) process 410 to 430 and the PSNR calculation process are the bottlenecks in JAQ implementation. In step 440, elements having parallelism can be speeded up through SIMD processing.

일례로, 프로세서(120)는 JAQ에 적용된 색상 변환 과정과 PSNR 연산 과정을 SIMD를 이용하여 고속화할 수 있다. MSE(mean squared error)를 수학식 1이라 할 때, PSNR은 수학식 2와 같이 정의될 수 있다.For example, the processor 120 may speed up the color conversion process and the PSNR calculation process applied to JAQ using SIMD. When mean squared error (MSE) is Equation 1, PSNR can be defined as Equation 2.

[수학식 1][Equation 1]

Figure 112020121524809-pat00001
Figure 112020121524809-pat00001

[수학식 2][Equation 2]

Figure 112020121524809-pat00002
Figure 112020121524809-pat00002

MSE를 구하는 과정에서 for-loop가 영상 사이즈 증가에 따라 처리 시간이 증가한다. SIMD에서는 NormDiff 관련 함수를 제공하며, MSE를 SIMD로 고속화 가능하다.In the process of obtaining the MSE, the processing time of the for-loop increases as the image size increases. SIMD provides NormDiff related functions, and MSE can be accelerated with SIMD.

PSNR 연산 과정에서의 for-loop 연산을 SIMD에서 제공하는 NormDiff 함수로 대체할 수 있으며, 불필요한 sqrt/log 연산을 제거하기 위해 수학식 2에 정의된 PSNR의 마지막 유도식을 사용한다.The for-loop operation in the PSNR operation process can be replaced with the NormDiff function provided by SIMD, and the last derivation of PSNR defined in Equation 2 is used to eliminate unnecessary sqrt/log operations.

일례로, JAQ의 PSNR 연산 과정에 전체 영상 단위로 SIMD를 적용할 수 있다(표 1).As an example, SIMD can be applied to the JAQ PSNR computation process in units of whole images (Table 1).

AS-ISAS-IS Input: A, B // two images
Output: psnr
Procedure getPSNR(A, B)
MSE := 0
for pixelA, pixelB in image of A, B
MSE := pow(pixelA - pixelB, 2)
end for
MSE := sqrt(MSE / imageSize)
psnr := 20.0 * log10(255.0/MSE)
End procedure
Input: A, B // two images
Output: psnr
Procedure getPSNR(A, B)
MSE := 0
for pixelA, pixelB in image of A, B
MSE := pow(pixelA - pixelB, 2)
end for
MSE := sqrt(MSE / imageSize)
psnr := 20.0 * log10(255.0/MSE)
End procedure
TO-BETO-BE Input: A, B // two imagesOutput: psnr
Procedure PSNR(A, B)
A := vectorized A
B := vectorized B
mse := normDiff_L2(A, B) / imageSize
psnr := 48.1308036 - 10.0 * log10(mse)
End procedure
Input: A, B // two imagesOutput: psnr
Procedure PSNR(A, B)
A := vectorized A
B := vectorized B
mse := normDiff_L2(A, B) / imageSize
psnr := 48.1308036 - 10.0 * log10(mse)
End procedure

따라서, JAQ에서 반복 루프로 구현되는 일부 과정에 SIMD를 적용하여 고속화를 통해 처리 시간을 개선할 수 있다.다음으로, 기계학습을 이용한 JAQ 고속화 기술을 설명하면 다음과 같다.Therefore, processing time can be improved through speeding up by applying SIMD to some processes implemented as iterative loops in JAQ. Next, a JAQ speeding up technique using machine learning will be described.

본 실시예에서는 JAQ의 병목이 되는 반복 과정을 제거하고 JAQ로부터 추정된 JPEG 품질 파라미터와 입력 이미지의 특징 값을 학습하여 단일 추론 모델을 통해 처리 속도를 개선할 수 있다.In this embodiment, it is possible to improve the processing speed through a single inference model by removing the repetitive process that is the bottleneck of JAQ and learning the JPEG quality parameter estimated from JAQ and the feature value of the input image.

도 6은 본 발명의 일실시예에 있어서 기계학습을 이용한 JAQ 고속화 방법을 나타낸 것이다.6 shows a JAQ speedup method using machine learning in one embodiment of the present invention.

도 6을 참조하면, 프로세서(120)는 일반적인 기계학습 프레임워크와 마찬가지로 학습 파이프라인(610)과 추론 파이프라인(620)을 포함한다.Referring to FIG. 6 , the processor 120 includes a learning pipeline 610 and an inference pipeline 620 like a general machine learning framework.

프로세서(120)는 특징 추출 과정(feature extraction)(622), 데이터 정규화 과정(data normalization)(623), 추론 과정(inference)(회귀분석)(624)을 통해 이미지의 품질 파라미터를 추정할 수 있다.The processor 120 may estimate a quality parameter of an image through a feature extraction process 622, a data normalization process 623, and an inference process (regression analysis) 624. .

특징 추출 과정(622)은 이미지의 세부 성분(detail)을 표현하는 U-LBP(uniform local binary pattern) 방법 등이 적용될 수 있으며, 추론 성능을 높이기 위한 데이터 정제 과정인 데이터 정규화 과정(623)으로 제로-평균 정규화(zero-mean normalization) 방법 등이 적용될 수 있다. 추론 과정(624)은 이미지의 특징 값을 분석하여 JPEG 품질 파라미터를 추정하기 위한 SVR(support vector regressor) 추론 모델 등이 적용될 수 있다.In the feature extraction process 622, a U-LBP (uniform local binary pattern) method representing details of an image may be applied, and a data normalization process 623, which is a data refinement process to improve inference performance, - A zero-mean normalization method may be applied. In the inference process 624, a support vector regressor (SVR) inference model for estimating a JPEG quality parameter by analyzing feature values of an image may be applied.

학습 파이프라인(610)은 SVR 학습을 위해 일반적인 감독 학습(supervised learning) 방법과 같이 정답 데이터와 특징 추출자를 포함한다. 일례로, 기존 JAQ의 품질 파라미터를 정답 데이터로 구성하고, 입력의 특징 추출자를 U-LBP로 구성할 수 있다. 학습 파이프라인(610)은 이미지의 세부 성분을 분석하는 U-LBP을 입력으로 하여 정답 데이터인 기존 JAQ가 추정한 품질 데이터와 근사한 값을 추론하도록 동작한다.The learning pipeline 610 includes answer data and feature extractors like a general supervised learning method for SVR learning. For example, the quality parameter of the existing JAQ can be configured as correct answer data, and the feature extractor of the input can be configured as U-LBP. The learning pipeline 610 operates to infer a value approximate to the quality data estimated by the existing JAQ, which is correct answer data, by taking U-LBP for analyzing detailed components of an image as an input.

학습 파이프라인(610)은 학습 데이터 로딩(611) 후 데이터 정규화 과정(612)을 통해 정제된 특징 값을 이용하여 SVR 모델 학습 과정(614)을 진행한다. SVR 모델 학습 과정(614)은 SVR의 학습 메타를 추출하기 위해 사용되는 학습 방법론이 적용될 수 있으며, 예를 들어 교차 검증(hold-out validation) 방식, 그리드탐색 검증(grid-search validation) 방식 등이 이용될 수 있다.The learning pipeline 610 proceeds with the SVR model learning process 614 using the feature values refined through the data normalization process 612 after loading the training data 611 . The SVR model learning process 614 may apply a learning methodology used to extract the learning meta of SVR, for example, a hold-out validation method, a grid-search validation method, and the like. can be used

상세하게, 학습 데이터 로딩 과정(611)에서 프로세서(120)는 CSV 파일 및 기타 포맷으로 학습 데이터 셋을 로딩할 수 있다. 도 7을 참조하면, 학습 데이터 셋은 CSV 파일에서 구분 기호(,)를 기준으로 분리하여 구성할 수 있고, CSV 파일의 첫 번째 인덱스는 라벨 데이터(label data)로 구성할 수 있다.In detail, in the training data loading process 611, the processor 120 may load a training data set in a CSV file or other format. Referring to FIG. 7 , a training data set can be configured by separating based on a delimiter (,) in the CSV file, and the first index of the CSV file can be configured with label data.

데이터 정규화 과정(612)에서 프로세서(120)는 제로-평균 정규화 방법을 사용하여 로딩된 학습 데이터를 정제할 수 있다(표 2).In the data normalization process 612, the processor 120 may refine the loaded training data using a zero-average normalization method (Table 2).

Input: trainData
Output: normalTrainData
Procedure zero_mean(trainData)
for i := 0 to trainData columns
mean, sigma := getMeanStdDev(trainData. column(i))
normalTrainData.column(i) := (trainData. column(i) - mean) / sigma
end for
End procedure
Input: trainData
Output: normalTrainData
Procedure zero_mean(trainData)
for i := 0 to trainData columns
mean, sigma := getMeanStdDev(trainData. column(i))
normalTrainData.column(i) := (trainData.column(i) - mean) / sigma
end for
End procedure

데이터 분리 과정(split/shuffle)(613)에서 프로세서(120)는 정제된 학습 데이터를 검증을 위한 데이터로 만들 수 있다(표 3).In the data separation process (split/shuffle) 613, the processor 120 may make the refined training data into data for verification (Table 3).

Input: totalTrainData, ratio
Output: trainData, testData
Procedure setTrainDataForValidation(totalTrainData, ratio)
totalTrainData := shuffle for train data
trainData, testData := splitData(totalTrainData, ratio) // split data
End procedure
Input: totalTrainData, ratio
Output: trainData, testData
Procedure setTrainDataForValidation(totalTrainData, ratio)
totalTrainData := shuffle for train data
trainData, testData := splitData(totalTrainData, ratio) // split data
End procedure

SVR 모델 학습 과정(614)인 검증 과정에서 프로세서(120)는 교차 검증 방식(예를 들어, 도 8에 도시한 교차 검증 방법)을 통해 SVR의 하이퍼파라미터를 추정할 수 있다.In the verification process, which is the SVR model learning process 614, the processor 120 may estimate the hyperparameters of the SVR through a cross-validation method (eg, the cross-validation method shown in FIG. 8).

학습 파이프라인(610)은 학습 데이터(611)로부터 추출되는 정규화 요소(특징 값 데이터의 평균과 분산)와 SVR 모델 학습 과정(614)을 통해 추출된 SVR 메타 데이터를 추론 파이프라인(620)의 학습 파라미터로 제공한다.The learning pipeline 610 uses the normalization factors (average and variance of feature value data) extracted from the training data 611 and the SVR metadata extracted through the SVR model training process 614 to train the inference pipeline 620. provided as a parameter.

추론 파이프라인(620)에서의 추론 과정은 학습 파이프라인(610)과 같이 학습 데이터 구성에서 사용한 특징 추출 과정(622)과 데이터 정규화 과정(623)을 적용하고 SVR을 통해 JPEG 인코더(630)에서 사용할 품질 파라미터를 추정할 수 있다.The inference process in the inference pipeline 620 applies the feature extraction process 622 and data normalization process 623 used in the training data construction like the learning pipeline 610 and uses it in the JPEG encoder 630 through SVR. Quality parameters can be estimated.

특징 추출 과정(622)에서 사용되는 U-LBP는 컴퓨터 비전 분야 등에서 많이 사용되는 것으로, 이미지의 세부 성분을 59차원으로 표현하는 특징 추출자이다. JAQ에서 추출되는 JPEG 품질 파라미터의 결과가 이미지의 세부 성분에 따라 동작되므로 U-LBP를 추론 파이프라인(620)에서의 특징 추출자로 사용할 수 있다.U-LBP used in the feature extraction process 622 is widely used in the field of computer vision, etc., and is a feature extractor that expresses detailed components of an image in 59 dimensions. Since the result of the JPEG quality parameter extracted from JAQ is operated according to the detailed component of the image, U-LBP can be used as a feature extractor in the inference pipeline 620.

U-LBP는 이미지의 점, 선, 면에 대한 특징을 59차원의 특징 히스토그램(feature histogram)으로 구성할 수 있으며, 예를 들어 도 9를 참조하면 현재 픽셀(901)을 주변 픽셀과 비교하여 8-비트 라벨을 생성할 수 있다. 입력 이미지에 대해 총 256개의 라벨로 구성된 LBP 이미지가 출력으로 나오면 256 차원을 59 차원으로 변경함으로써 LBP 이미지를 59차원의 히스토그램으로 생성할 수 있다.U-LBP can configure the features of points, lines, and planes of an image as a 59-dimensional feature histogram. For example, referring to FIG. -Bit labels can be created. When the LBP image composed of a total of 256 labels for the input image is output, the LBP image can be created as a 59-dimensional histogram by changing the 256-dimensional to 59-dimensional.

U-LBP는 입력 크기 불변한(scale-invariant) 특징 추출자가 아니기 때문에 추론 파이프라인(620)에는 품질과 처리시간의 성능을 높이기 위한 전처리 컴포넌트로서 학습 결과에 대한 테스트를 통해 입력 이미지의 해상도를 적정 사이즈(예컨대, 512×512 해상도)로 조절하는 이미지 리사이즈 과정(621)이 추가될 수 있다.Since U-LBP is not a scale-invariant feature extractor, the inference pipeline 620 is a preprocessing component to improve quality and processing time, and the resolution of the input image is appropriately tested through a test on the learning result. An image resizing process 621 for adjusting the size (eg, 512×512 resolution) may be added.

실시예에 따라서는 기계학습을 이용한 JAQ 또한 병목이 될 수 있는 요소에 대해 기계학습 컴포넌트 별로 SIMD를 적용할 수 있다.Depending on the embodiment, JAQ using machine learning can also apply SIMD to each machine learning component for an element that can be a bottleneck.

일례로, 이미지 리사이즈 과정(621), 즉 입력 이미지를 512×512 사이즈로 리사이즈하는 과정에서 SIMD 리사이즈를 이용할 수 있다.For example, SIMD resizing may be used in the image resizing process 621, that is, in the process of resizing an input image to a size of 512×512.

다른 예로, 특징 추출 과정(622)에서 LBP 구성 과정을 SIMD로 구현할 수 있다(표 4).As another example, in the feature extraction process 622, the LBP construction process can be implemented with SIMD (Table 4).

Input : A // image
Output : histogram // feature result
Procedure Histogram(A)
LBPImage := GetLBPImageUsingSIMD (inputImage)
histogram :=GetHistogramUsingSIMD(LBPImage)
End procedure
Input : A // image
Output: histogram // feature result
Procedure Histogram (A)
LBPImage := GetLBPImageUsingSIMD(inputImage)
histogram :=GetHistogramUsingSIMD(LBPImage)
End procedure

또 다른 예로, JAQ의 결과를 얻어내는 추론 과정(624)에서 SIMD 최적화를 적용할 수 있다(표 5). GetFastDotProduct는 일반적인 내적 연산을 반복문을 통해 연산하고, GetFastDotProductUsingSIMD는 SIMD 처리를 이용하여 내적을 연산한다.As another example, SIMD optimization may be applied in the inference process 624 for obtaining the result of JAQ (Table 5). GetFastDotProduct calculates a general dot product through a loop statement, and GetFastDotProductUsingSIMD calculates a dot product using SIMD processing.

AS-ISAS-IS Input : vectorA, vectorB
Output : scalarResult
Procedure Dotprod(vectorA, vectorB)
scalarResult := GetDotProduct(vectorA, vectorB)
End procedure
Input : vectorA, vectorB
Output: scalarResult
Procedure Dotprod(vectorA, vectorB)
scalarResult := GetDotProduct(vectorA, vectorB)
End procedure
TO-BETO-BE Input : vectorA, vectorB Output : scalarResult
Procedure Dotprod(vectorA, vectorB)
scalarResult := GetFastDotProductUsingSIMD(vectorA, vectorB)
End procedure
Input: vectorA, vectorB Output: scalarResult
Procedure Dotprod(vectorA, vectorB)
scalarResult := GetFastDotProductUsingSIMD(vectorA, vectorB)
End procedure

따라서, JAQ에서 병목이 될 수 있는 기계학습 컴포넌트에 SIMD를 적용하여 고속화를 통해 처리 시간을 개선할 수 있다.Therefore, processing time can be improved through speeding up by applying SIMD to machine learning components that can be bottlenecks in JAQ.

도 10은 본 발명의 일실시예에 있어서 기계학습을 이용한 JAQ를 이미지 처리 서버(IPS)에 적용하기 위한 시퀀스를 나타낸 것이다.10 illustrates a sequence for applying JAQ using machine learning to an image processing server (IPS) according to an embodiment of the present invention.

도 10을 참조하면, Reset()는 회귀분석(Regressor)을 통한 추론 클래스(SVR)에서 사용될 학습 메타데이터를 초기화하는 기능을 수행한다(초기 1회 수행)(1~2). 이미지 입력 클래스의 Encode()와 품질 최적화 클래스의 GetJpegQuality()는 각 메소드를 통해 JAQ 기능을 호출하는 역할을 한다(3~6). 내부적으로, 특징 추출 과정(FeatureExtractor), 데이터 정규화 과정(Normalizer), 추론 과정(Regressor)의 순서로 이미지의 품질 파라미터를 추정하는 JAQ 기능을 수행한다(7~12). 최종적으로, 상기한 JAQ 기능을 통해 추정된 품질 파라미터를 이용하여 이미지 인코딩(JpegEncoder)을 수행한다(13~14).Referring to FIG. 10, Reset() performs a function of initializing learning metadata to be used in a reasoning class (SVR) through regression analysis (first time performed) (1 to 2). Encode() of the image input class and GetJpegQuality() of the quality optimization class play a role in calling JAQ functions through each method (3~6). Internally, the JAQ function that estimates the quality parameters of the image is performed in the order of feature extraction process (FeatureExtractor), data normalization process (Normalizer), and inference process (Regressor) (7 to 12). Finally, image encoding (JpegEncoder) is performed using the quality parameter estimated through the JAQ function (13 to 14).

이처럼 본 발명의 실시예들에 따르면, 기계학습 또는 SIMD를 이용하여 JAQ의 병목이 되는 과정을 고속화함으로써 이미지 압축 최적화에 대한 처리 시간을 개선할 수 있다. JAQ의 고속화를 통해 포토 클라우드 플랫폼의 JPEG 이미지 최적화 기술을 적용하고 있는 서비스에서 서버의 응답성을 개선함에 따라 사용성을 증대시킬 수 있고 스토리지 및 네트워크 대역폭을 절감할 수 있다.As such, according to embodiments of the present invention, processing time for image compression optimization can be improved by speeding up the process that is the bottleneck of JAQ using machine learning or SIMD. Through JAQ's high-speed, it is possible to increase usability and save storage and network bandwidth by improving the responsiveness of the server in the service to which the JPEG image optimization technology of the photo cloud platform is applied.

이상에서 설명된 장치는 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The devices described above may be implemented as hardware components, software components, and/or a combination of hardware components and software components. For example, devices and components described in the embodiments include a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), and a programmable PLU (programmable logic unit). logic unit), microprocessor, or any other device capable of executing and responding to instructions. The processing device may run an operating system (OS) and one or more software applications running on the operating system. A processing device may also access, store, manipulate, process, and generate data in response to execution of software. For convenience of understanding, there are cases in which one processing device is used, but those skilled in the art will understand that the processing device includes a plurality of processing elements and/or a plurality of types of processing elements. It can be seen that it can include. For example, a processing device may include a plurality of processors or a processor and a controller. Other processing configurations are also possible, such as parallel processors.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 컴퓨터 저장 매체 또는 장치에 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.Software may include a computer program, code, instructions, or a combination of one or more of the foregoing, which configures a processing device to operate as desired or processes independently or collectively. The device can be commanded. The software and/or data may be embodied in any tangible machine, component, physical device, computer storage medium or device to be interpreted by or to provide instructions or data to a processing device. there is. Software may be distributed on networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer readable media.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 이때, 매체는 컴퓨터로 실행 가능한 프로그램을 계속 저장하거나, 실행 또는 다운로드를 위해 임시 저장하는 것일 수도 있다. 또한, 매체는 단일 또는 수 개의 하드웨어가 결합된 형태의 다양한 기록수단 또는 저장수단일 수 있는데, 어떤 컴퓨터 시스템에 직접 접속되는 매체에 한정되지 않고, 네트워크 상에 분산 존재하는 것일 수도 있다. 매체의 예시로는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium), 및 ROM, RAM, 플래시 메모리 등을 포함하여 프로그램 명령어가 저장되도록 구성된 것이 있을 수 있다. 또한, 다른 매체의 예시로, 어플리케이션을 유통하는 앱 스토어나 기타 다양한 소프트웨어를 공급 내지 유통하는 사이트, 서버 등에서 관리하는 기록매체 내지 저장매체도 들 수 있다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer readable medium. In this case, the medium may continuously store a program executable by a computer or temporarily store the program for execution or download. In addition, the medium may be various recording means or storage means in the form of a single or combined hardware, but is not limited to a medium directly connected to a certain computer system, and may be distributed on a network. Examples of the medium include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROM and DVD, magneto-optical media such as floptical disks, and ROM, RAM, flash memory, etc. configured to store program instructions. In addition, examples of other media include recording media or storage media managed by an app store that distributes applications, a site that supplies or distributes various other software, and a server.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described with limited examples and drawings, those skilled in the art can make various modifications and variations from the above description. For example, the described techniques may be performed in an order different from the method described, and/or components of the described system, structure, device, circuit, etc. may be combined or combined in a different form than the method described, or other components may be used. Or even if it is replaced or substituted by equivalents, appropriate results can be achieved.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents of the claims are within the scope of the following claims.

Claims (20)

컴퓨터 장치에서 실행되는 이미지 압축 최적화 방법에 있어서,
상기 컴퓨터 장치는 메모리에 포함된 컴퓨터 판독가능한 명령들을 실행하도록 구성된 적어도 하나의 프로세서를 포함하고,
상기 이미지 압축 최적화 방법은,
상기 적어도 하나의 프로세서에 의해, 이미지 품질 파라미터와 이미지 특징을 학습한 기계학습 모델을 통해 입력 이미지에 대한 목표 PSNR(Peak Signal to Noise Ratio)을 만족하는 최적화 품질을 추정하는 단계; 및
상기 적어도 하나의 프로세서에 의해, 상기 최적화 품질로 인코딩된 이미지 파일을 상기 입력 이미지에 대한 압축 파일로 출력하는 단계
를 포함하고,
상기 기계학습 모델은 상기 최적화 품질을 찾기 위해 반복(iteration)되는 과정이 제거된 기계학습 프레임워크의 단일 추론 모델로서, 이미지의 세부 성분을 분석하는 특징 추출자를 입력으로 하여 정답 데이터에 해당되는 품질 데이터와 근사한 값을 추론하는 파이프라인을 포함하는 것
을 특징으로 하는 이미지 압축 최적화 방법.
An image compression optimization method executed on a computer device,
The computer device includes at least one processor configured to execute computer readable instructions contained in a memory;
The image compression optimization method,
estimating, by the at least one processor, an optimization quality that satisfies a target peak signal to noise ratio (PSNR) for an input image through a machine learning model that has learned image quality parameters and image characteristics; and
Outputting, by the at least one processor, an image file encoded with the optimized quality as a compressed file for the input image.
including,
The machine learning model is a single inference model of a machine learning framework in which the process of iteration to find the optimized quality is removed, and quality data corresponding to correct answer data using a feature extractor that analyzes detailed components of an image as input including a pipeline that infers values approximated by
Image compression optimization method characterized by.
삭제delete 제1항에 있어서,
상기 기계학습 모델은 데이터 정규화를 통해 학습 데이터를 정제한 후 정제된 데이터를 이용하여 SVR(support vector regressor) 모델을 학습하는 학습 파이프라인을 포함하는 것
을 특징으로 하는 이미지 압축 최적화 방법.
According to claim 1,
The machine learning model includes a learning pipeline for learning a support vector regressor (SVR) model using the refined data after refining the learning data through data normalization
Image compression optimization method characterized by.
제3항에 있어서,
상기 SVR 모델은 교차 검증(hold-out validation) 방식 또는 그리드탐색 검증(grid-search validation) 방식을 이용하여 학습 메타 데이터를 추출하는 것
을 특징으로 하는 이미지 압축 최적화 방법.
According to claim 3,
The SVR model extracts learning metadata using a hold-out validation method or a grid-search validation method.
Image compression optimization method characterized by.
제3항에 있어서,
상기 기계학습 모델은 상기 입력 이미지의 인코딩에 사용할 품질 파라미터를 추정하는 추론 파이프라인을 포함하는 것
을 특징으로 하는 이미지 압축 최적화 방법.
According to claim 3,
The machine learning model includes an inference pipeline for estimating a quality parameter to be used for encoding the input image.
Image compression optimization method characterized by.
제5항에 있어서,
상기 기계학습 모델은 상기 학습 데이터에서 추출되는 정규화 요소와 상기 SVR 모델에서 추출되는 학습 메타 데이터가 상기 추론 파이프라인의 학습 파라미터로 제공되는 것
을 특징으로 하는 이미지 압축 최적화 방법.
According to claim 5,
In the machine learning model, a normalization factor extracted from the training data and learning metadata extracted from the SVR model are provided as learning parameters of the inference pipeline.
Image compression optimization method characterized by.
제1항에 있어서,
상기 추정하는 단계는,
U-LBP(uniform local binary pattern) 방법을 사용하여 상기 입력 이미지를 특징 히스토그램(feature histogram)으로 구성하는 단계
를 포함하는 이미지 압축 최적화 방법.
According to claim 1,
The estimating step is
Constructing the input image into a feature histogram using a U-LBP (uniform local binary pattern) method
Image compression optimization method comprising a.
제7항에 있어서,
상기 추정하는 단계는,
상기 특징 히스토그램으로 구성하는 단계 이전에, 상기 입력 이미지의 사이즈를 정해진 사이즈로 조절하는 단계
를 더 포함하는 이미지 압축 최적화 방법.
According to claim 7,
The estimating step is
Before configuring the feature histogram, adjusting the size of the input image to a predetermined size
Image compression optimization method further comprising a.
제1항에 있어서,
상기 기계학습 모델에 포함된 적어도 하나의 기계학습 컴포넌트에 SIMD(single instruction multiple data)가 적용되는 것
을 특징으로 하는 이미지 압축 최적화 방법.
According to claim 1,
Applying SIMD (single instruction multiple data) to at least one machine learning component included in the machine learning model
Image compression optimization method characterized by.
제9항에 있어서,
상기 기계학습 컴포넌트로서 이미지 리사이즈(image resize) 과정, LBP(local binary pattern) 구성 과정, 및 이미지 품질 추론 과정 중 적어도 하나에 상기 SIMD가 적용되는 것
을 특징으로 하는 이미지 압축 최적화 방법.
According to claim 9,
Applying the SIMD to at least one of an image resize process, a local binary pattern (LBP) construction process, and an image quality inference process as the machine learning component.
Image compression optimization method characterized by.
제1항, 제3항 내지 제10항 중 어느 한 항의 이미지 압축 최적화 방법을 상기 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독가능한 기록 매체에 저장되는 컴퓨터 프로그램.A computer program stored in a computer readable recording medium to execute the image compression optimization method of any one of claims 1, 3 to 10 in the computer device. 컴퓨터 장치에 있어서,
메모리에 포함된 컴퓨터 판독가능한 명령들을 실행하도록 구성된 적어도 하나의 프로세서
를 포함하고,
상기 적어도 하나의 프로세서는,
이미지 품질 파라미터와 이미지 특징을 학습한 기계학습 모델을 통해 입력 이미지에 대한 목표 PSNR을 만족하는 최적화 품질을 추정하는 과정; 및
상기 최적화 품질로 인코딩된 이미지 파일을 상기 입력 이미지에 대한 압축 파일로 출력하는 과정
을 처리하고,
상기 기계학습 모델은 상기 최적화 품질을 찾기 위해 반복(iteration)되는 과정이 제거된 기계학습 프레임워크의 단일 추론 모델로서, 이미지의 세부 성분을 분석하는 특징 추출자를 입력으로 하여 정답 데이터에 해당되는 품질 데이터와 근사한 값을 추론하는 파이프라인을 포함하는 것
을 특징으로 하는 컴퓨터 장치.
In a computer device,
at least one processor configured to execute computer readable instructions contained in memory;
including,
The at least one processor,
estimating an optimization quality that satisfies a target PSNR for an input image through a machine learning model that has learned image quality parameters and image features; and
Outputting an image file encoded with the optimized quality as a compressed file for the input image
processing,
The machine learning model is a single inference model of a machine learning framework in which the process of iteration to find the optimized quality is removed, and quality data corresponding to correct answer data using a feature extractor that analyzes detailed components of an image as input including a pipeline that infers values approximated by
Characterized by a computer device.
삭제delete 제12항에 있어서,
상기 기계학습 모델은 데이터 정규화를 통해 학습 데이터를 정제한 후 정제된 데이터를 이용하여 SVR 모델을 학습하는 학습 파이프라인을 포함하는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 12,
The machine learning model includes a learning pipeline for learning the SVR model using the refined data after refining the learning data through data normalization
Characterized by a computer device.
제14항에 있어서,
상기 SVR 모델은 교차 검증 방식 또는 그리드탐색 검증 방식을 이용하여 학습 메타 데이터를 추출하는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 14,
The SVR model extracts learning metadata using a cross-validation method or a grid search validation method.
Characterized by a computer device.
제14항에 있어서,
상기 기계학습 모델은 상기 입력 이미지의 인코딩에 사용할 품질 파라미터를 추정하는 추론 파이프라인을 포함하는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 14,
The machine learning model includes an inference pipeline for estimating a quality parameter to be used for encoding the input image.
Characterized by a computer device.
제16항에 있어서,
상기 기계학습 모델은 상기 학습 데이터에서 추출되는 정규화 요소와 상기 SVR 모델에서 추출되는 학습 메타 데이터가 상기 추론 파이프라인의 학습 파라미터로 제공되는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 16,
In the machine learning model, a normalization factor extracted from the training data and learning metadata extracted from the SVR model are provided as learning parameters of the inference pipeline.
Characterized by a computer device.
제12항에 있어서,
상기 적어도 하나의 프로세서는,
U-LBP 방법을 사용하여 상기 입력 이미지를 특징 히스토그램으로 구성하는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 12,
The at least one processor,
Constructing the input image into a feature histogram using the U-LBP method
Characterized by a computer device.
제18항에 있어서,
상기 적어도 하나의 프로세서는,
상기 특징 히스토그램을 구성하기 이전에, 상기 입력 이미지의 사이즈를 정해진 사이즈로 조절하는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 18,
The at least one processor,
Adjusting the size of the input image to a predetermined size before constructing the feature histogram
Characterized by a computer device.
제12항에 있어서,
상기 기계학습 모델에 포함된 적어도 하나의 기계학습 컴포넌트로서 이미지 리사이즈 과정, LBP 구성 과정, 및 이미지 품질 추론 과정 중 적어도 하나에 SIMD가 적용되는 것
을 특징으로 하는 컴퓨터 장치.
According to claim 12,
As at least one machine learning component included in the machine learning model, SIMD is applied to at least one of an image resizing process, an LBP construction process, and an image quality inference process.
Characterized by a computer device.
KR1020200151448A 2020-11-13 2020-11-13 Method and system for optimization of image encode quality KR102516812B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200151448A KR102516812B1 (en) 2020-11-13 2020-11-13 Method and system for optimization of image encode quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200151448A KR102516812B1 (en) 2020-11-13 2020-11-13 Method and system for optimization of image encode quality

Publications (2)

Publication Number Publication Date
KR20220065188A KR20220065188A (en) 2022-05-20
KR102516812B1 true KR102516812B1 (en) 2023-03-31

Family

ID=81798735

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200151448A KR102516812B1 (en) 2020-11-13 2020-11-13 Method and system for optimization of image encode quality

Country Status (1)

Country Link
KR (1) KR102516812B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007104678A (en) * 2005-10-03 2007-04-19 Xerox Corp Method of classifying images in connection with jpeg compression history
JP2019012426A (en) * 2017-06-30 2019-01-24 キヤノン株式会社 Image recognition device, learning device, image recognition method, learning method and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101832418B1 (en) * 2015-12-31 2018-02-26 네이버 주식회사 Method and system for optimization of image encode quality
KR102096388B1 (en) * 2018-06-05 2020-04-06 네이버 주식회사 Optimization for dnn conposition with real-time inference in mobile environment
KR102164190B1 (en) * 2018-10-18 2020-10-12 한양대학교 산학협력단 Artificial neural network module and scheduling method thereof for highly effective operation processing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007104678A (en) * 2005-10-03 2007-04-19 Xerox Corp Method of classifying images in connection with jpeg compression history
JP2019012426A (en) * 2017-06-30 2019-01-24 キヤノン株式会社 Image recognition device, learning device, image recognition method, learning method and program

Also Published As

Publication number Publication date
KR20220065188A (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN107665364B (en) Neural network method and apparatus
US11798131B2 (en) Method for processing image for improving the quality of the image and apparatus for performing the same
KR101832418B1 (en) Method and system for optimization of image encode quality
US20190095787A1 (en) Sparse coding based classification
US11177823B2 (en) Data compression by local entropy encoding
CN114766035A (en) Pre-processing and data enhancement of frequency domain data
KR20200119372A (en) Artificial Neural Network Based Object Region Detection Method, Device and Computer Program Thereof
CN116547969A (en) Processing method of chroma subsampling format in image decoding based on machine learning
KR20220042455A (en) Method and apparatus for neural network model compression using micro-structured weight pruning and weight integration
CN114781499A (en) Method for constructing ViT model-based intensive prediction task adapter
EP3156943A1 (en) Method and device for clustering patches of a degraded version of an image
KR102516366B1 (en) Method and apparatuis for acquaring feature data
US20230412821A1 (en) Encoding a Video Frame Using Different Compression Ratios for Text Blocks and Non-Text Blocks
US20220270209A1 (en) Removing compression artifacts from digital images and videos utilizing generative machine-learning models
KR102516812B1 (en) Method and system for optimization of image encode quality
Jeong et al. An overhead-free region-based JPEG framework for task-driven image compression
KR20170057118A (en) Method and apparatus for recognizing object, and method and apparatus for training recognition model
KR20200091661A (en) Apparatus and method for determining manipulated image
KR102371292B1 (en) A method for image processing with contextual style transfer
CN115546236B (en) Image segmentation method and device based on wavelet transformation
WO2022100140A1 (en) Compression encoding method and apparatus, and decompression method and apparatus
KR102649612B1 (en) Method, computer device, and computer program to detecting line segment based on real-time and light-weight deep learning
US20220269652A1 (en) Computation apparatus and compression method
US20240119601A1 (en) Image processing apparatus, image processing method, and computer readable recording medium
CN114708471B (en) Cross-modal image generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant