KR20230007718A - Electronic apparatus and method for intelligent video conversion - Google Patents

Electronic apparatus and method for intelligent video conversion Download PDF

Info

Publication number
KR20230007718A
KR20230007718A KR1020210088394A KR20210088394A KR20230007718A KR 20230007718 A KR20230007718 A KR 20230007718A KR 1020210088394 A KR1020210088394 A KR 1020210088394A KR 20210088394 A KR20210088394 A KR 20210088394A KR 20230007718 A KR20230007718 A KR 20230007718A
Authority
KR
South Korea
Prior art keywords
image
horizontal
aspect ratio
conversion
vertical
Prior art date
Application number
KR1020210088394A
Other languages
Korean (ko)
Other versions
KR102596308B1 (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 KR1020210088394A priority Critical patent/KR102596308B1/en
Priority to PCT/KR2022/002168 priority patent/WO2023282426A2/en
Publication of KR20230007718A publication Critical patent/KR20230007718A/en
Application granted granted Critical
Publication of KR102596308B1 publication Critical patent/KR102596308B1/en

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/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4046Scaling of whole images or parts thereof, e.g. expanding or contracting using neural networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
    • H04N7/0122Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal the input and the output signals having different aspect ratios
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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
    • G06T5/002
    • G06T5/009
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0135Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving interpolation processes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Graphics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The present invention relates to an electronic device and method for intelligent video conversion. The electronic device according to one embodiment of the present invention converts and plays a video and comprises: a sensor unit that detects a sensor value related to a holding state of the electronic device; and a control unit that performs conversion on the video depending on the holding state according to the sensor value and the aspect ratio of the video. The control unit performs at least one of a first conversion that improves video quality while maintaining the content of the video, a second conversion that adds new video content to the content of the video, and a third conversion that improves video quality while enlarging at least a portion of the content of the video. Accordingly, the present invention can increase the visual satisfaction of a user.

Description

지능적 영상 변환을 위한 전자 장치 및 방법{ELECTRONIC APPARATUS AND METHOD FOR INTELLIGENT VIDEO CONVERSION}Electronic device and method for intelligent video conversion {ELECTRONIC APPARATUS AND METHOD FOR INTELLIGENT VIDEO CONVERSION}

본 발명은 동영상 재생에 관련된 전자 장치 및 방법에 관한 것으로서, 더욱 상세하게는 단말의 파지 상태와 동영상(이하, “영상”이라 지칭함)의 영상비율에 따라 적응적으로 영상을 변환하는 전자 장치 및 방법에 관한 것이다.The present invention relates to an electronic device and method related to video playback, and more particularly, to an electronic device and method for adaptively converting an image according to a holding state of a terminal and an aspect ratio of a video (hereinafter referred to as “video”). It is about.

종래의 화면비율 변환 기술(이하, “종래 기술”이라 지칭함)에 따라, 단말에서 영상을 재생할 경우, 영상비율(즉, 영상 소스의 가로와 세로 간의 비율)을 유지한 채 화면비율(즉, 단말 화면의 가로와 세로 간의 비율)의 크기에 맞춰 최대한 크기로 영상을 재생한다. According to the conventional aspect ratio conversion technology (hereinafter referred to as the “prior art”), when playing an image on a terminal, the aspect ratio (ie, the aspect ratio of the terminal) while maintaining the aspect ratio (ie, the ratio between the width and height of the video source) The video is played back at the maximum size according to the size of the screen's width-to-height ratio).

도 1은 종래 기술이 적용된 다양한 화면비율의 단말에서 16:9 영상비율의 영상을 재생 시에 대한 예들을 나타낸다.1 shows examples of playing an image of 16:9 aspect ratio in terminals having various aspect ratios to which the prior art is applied.

이에 따라, 종래 기술을 적용하면 단말 화면의 상하 또는 좌우에 빈 공간이 생기게 되며, 해당 빈 공간은 검은색으로 처리된다. 즉, 도 1을 참조하면, 4:3 화면비율을 가지는 단말에서 16:9 영상비율의 영상을 재생하면 단말 화면의 상하에 생기는 빈 공간에 레터 박스(letter box)라는 검은 영상이 삽입된다. 또한, 21:9 화면비율의 단말에서 16:9 영상비율의 영상을 재생하면 단말 화면의 좌우에 생기는 빈 공간에 필러 박스(pillar box)라는 검은 영상이 삽입된다.Accordingly, when the prior art is applied, an empty space is created on the top, bottom or left and right sides of the terminal screen, and the empty space is treated as black. That is, referring to FIG. 1 , when a video having an aspect ratio of 16:9 is reproduced in a terminal having an aspect ratio of 4:3, a black image called a letter box is inserted into an empty space at the top and bottom of the screen of the terminal. In addition, when a video having an aspect ratio of 16:9 is reproduced in a terminal having an aspect ratio of 21:9, a black image called a pillar box is inserted into an empty space formed on the left and right sides of the screen of the terminal.

즉, 종래 기술은 단순히 영상비율을 유지하면서 단말의 화면에 맞게 재생하는 기술에 불과하므로, 단말의 화면비율이 영상비율과 맞지 않는 경우에 과도한 레터 박스 또는 필러의 사용으로 인해 사용자의 시각적 만족도가 낮아지는 문제점이 있다. 특히, 종래 기술이 적용된 단말의 화면 상태가 세로 상태(단말의 화면비율이 가로 보다 세로가 더 긴 상태)인 경우에 가로 영상(세로 보다 가로가 더 긴 영상비율을 가지는 영상)이 재생되면 해당 화면비율에 맞게 가로영상이 축소 재생되면서 이러한 문제점이 더욱 부각될 수밖에 없다.That is, since the prior art is merely a technology of reproducing according to the screen of the terminal while maintaining the aspect ratio, when the aspect ratio of the terminal does not match the aspect ratio, the user's visual satisfaction is low due to excessive use of letter boxes or fillers. There is a losing problem. In particular, when the screen state of a terminal to which the prior art is applied is in a vertical state (a state in which the aspect ratio of the terminal is longer than the horizontal ratio), when a horizontal video (an image having an aspect ratio longer than vertical) is played, the corresponding screen As the horizontal video is scaled down and reproduced according to the ratio, this problem is inevitably highlighted.

KR10- 2007-0039790 AKR10- 2007-0039790 A

상기한 바와 같은 종래 기술의 문제점을 해결하기 위하여, 본 발명은 단말의 파지 상태와 영상의 영상비율에 따라 적응적으로 영상을 변환하는 기술을 제공하는데 그 목적이 있다.In order to solve the problems of the prior art as described above, an object of the present invention is to provide a technique for adaptively converting an image according to a holding state of a terminal and an aspect ratio of an image.

다만, 본 발명이 해결하고자 하는 과제는 이상에서 언급한 과제에 제한되지 않으며, 언급되지 않은 또 다른 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.However, the problem to be solved by the present invention is not limited to the above-mentioned problems, and other problems not mentioned can be clearly understood by those skilled in the art from the description below. There will be.

상기와 같은 과제를 해결하기 위한 본 발명의 일 실시예에 따른 전자 장치는 영상을 변환하여 재생하는 전자 장치로서, 상기 전자 장치의 파지 상태에 관련된 센서 값을 감지하는 센서부; 및 상기 센서 값에 따른 파지 상태 및 상기 영상의 영상비율에 따라, 상기 영상에 대한 변환을 수행하는 제어부;를 포함한다.An electronic device according to an embodiment of the present invention for solving the above problems is an electronic device that converts and reproduces an image, and includes a sensor unit that detects a sensor value related to a holding state of the electronic device; and a control unit that converts the image according to a holding state according to the sensor value and an aspect ratio of the image.

상기 제어부는 상기 영상의 내용을 유지하면서 화질을 개선하는 제1 변환, 상기 영상의 내용에 새로운 영상 내용을 추가 합성하는 제2 변환, 및 상기 영상의 내용에서 적어도 일부분을 확대하되 세로가 더 긴 영상비율의 세로 영상으로 확대하면서 화질을 개선하는 제3 변환 중 적어도 하나의 변환을 수행할 수 있다.The control unit performs a first transformation for improving the image quality while maintaining the contents of the video, a second transformation for adding and synthesizing new video contents to the contents of the video, and a longer image while enlarging at least a part of the contents of the video. At least one of the third transformations for improving picture quality while enlarging the vertical image at a ratio may be performed.

상기 제어부는 가로가 더 긴 화면비율의 가로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행할 수 있다.The controller may perform the first conversion or the second conversion on a horizontal image having a longer horizontal aspect ratio when the image is held horizontally with a longer horizontal aspect ratio.

상기 제어부는 세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로 영상에 대해 상기 제3 변환을 수행할 수 있다.The control unit may perform the third conversion on the horizontal image when the vertical image is held in a vertical holding state of a longer vertical aspect ratio.

상기 제어부는 상기 가로 파지 상태 또는 상기 세로 파지 상태인 경우에 세로가 더 긴 영상비율의 세로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행할 수 있다.The controller may perform the first conversion or the second conversion on a vertical image having a longer vertical aspect ratio in the horizontal holding state or the vertical holding state.

상기 제어부는 상기 가로 파지 상태에서 상기 가로 영상에 필러 박스(pillar box) 또는 레터 박스(letter box)의 영역을 채워서 재생해야 하는 경우에 상기 가로 영상에 대해 상기 제2 변환을 수행하며, 필러 박스(pillar box) 또는 레터 박스(letter box)의 영역이 불필요한 경우에 상기 가로 영상에 대해 상기 제1 변환을 수행할 수 있다.The control unit performs the second conversion on the horizontal image when the horizontal image needs to be reproduced by filling the area of a pillar box or letter box in the horizontal holding state, and the pillar box ( When a pillar box or letter box area is unnecessary, the first transformation may be performed on the horizontal image.

상기 제어부는 제1 변환의 수행 시, 상기 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환할 수 있다.When the first conversion is performed, the control unit generates an enlarged image by applying a pre-learned machine learning model to enlarge the image to an image larger than the screen size in the holding state while improving the image quality, and then generates the enlarged image It can be converted into the aspect ratio of the holding state by performing size interpolation on .

상기 제어부는 상기 제2 변환의 수행 시, 이전 및 이후 프레임 영상을 이용하여 대응점 매칭 기반으로 현재 프레임 영상에 이전 또는 이후 프레임 영상에 포함된 새로운 영상 내용을 합성할 수 있다.When the second transformation is performed, the control unit may synthesize new image contents included in previous or subsequent frame images with the current frame image based on corresponding point matching using previous and subsequent frame images.

상기 제어부는 상기 제2 변환의 수행 시, 상기 합성된 현재 프레임 영상이 목표 영상의 해상도에 미달하는 경우에 해당 현재 프레임 영상에 생성적 적대 신경망(Generative Adversarial Network; GAN) 기반의 경계 확장을 수행하여 새로운 영상 내용을 합성할 수 있다.When the second transformation is performed, the control unit performs boundary expansion based on a generative adversarial network (GAN) on the current frame image when the synthesized current frame image does not reach the resolution of the target image, New video contents can be synthesized.

상기 제어부는 상기 제2 변환의 수행 시, 상기 합성된 현재 프레임 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환할 수 있다.When the second transformation is performed, the control unit generates an enlarged image by applying a pre-learned machine learning model to enlarge the synthesized current frame image to an image larger than the screen size of the holding state while improving the image quality. Afterwards, size interpolation is performed on the enlarged image to convert it to the aspect ratio of the holding state.

상기 제어부는 상기 제3 변환의 수행 시, 상기 가로 영상의 프레임 영상마다 해당 프레임 영상의 컨텐츠를 분석하여 해당 프레임 영상의 일부에 해당하는 재생 영역을 산출하는 과정과, 상기 가로 영상을 다수의 소단위로 분리하고 영상의 컨텐츠 종류 별로 기 학습된 다수의 AI(artificial intelligence) 모델 중에서 해당 소단위 내 가로 영상의 컨텐츠에 따라 소단위 별로 적용되는 최적 AI 모델을 선택하는 과정과, 상기 재생 영역을 기반으로 상기 가로 영상에서 세로가 더 긴 영상비율의 세로 영상을 프레임 영상마다 추출하는 과정과, 선택된 최적 AI 모델을 소단위 별로 적용하여 추출된 세로 영상을 확대 변환하는 과정을 각각 수행할 수 있다.When the third conversion is performed, the control unit analyzes the content of the corresponding frame image for each frame image of the horizontal image and calculates a playback area corresponding to a part of the corresponding frame image, and divides the horizontal image into a plurality of small units. A process of selecting an optimal AI model applied to each subunit according to the content of the horizontal video within the corresponding subunit from among a plurality of AI (artificial intelligence) models previously learned for each content type of the video; In , a process of extracting a vertical image having a longer vertical aspect ratio for each frame image and a process of enlarging and converting the extracted vertical image by applying the selected optimal AI model to each subunit may be performed, respectively.

상기 제어부는 상기 산출하는 과정에서, 각 프레임 영상에서 객체와 얼굴에 대한 영역을 각각 검출하여 검출된 영역을 포함하는 최대 재생 영역을 산출하며, 산출된 최대 재생 영역에 대한 잘라내기 과정을 통해 가로 보다 세로가 더 긴 제2 영상비율을 가지는 적어도 하나의 상기 재생 영역을 산출할 수 있다.In the calculation process, the control unit detects areas for objects and faces in each frame image, calculates a maximum reproduction area including the detected areas, and cuts the calculated maximum reproduction area to obtain a horizontally wider area. At least one play area having a longer second aspect ratio may be calculated.

상기 최대 재생 영역은 상기 검출된 영역이 복수개인 경우에 상기 각 검출된 영역을 모두 포함하는 영역일 수 있다.The maximum reproduction area may be an area including all of the detected areas when there are a plurality of the detected areas.

상기 각 AI 모델은 머신 러닝(machine learning) 기법에 따라 서로 다른 컨텐츠의 저화질 영상으로부터 화질 개선된 확대 영상을 생성하도록 학습된 모델일 수 있다.Each AI model may be a model learned to generate an enlarged image with improved quality from low-quality images of different contents according to a machine learning technique.

상기 최적 AI 모델은 해상도 증가, 노이즈 제거 및 다이나믹 레인지 증가 중 적어도 하나의 화질 개선을 수행할 수 있다.The optimal AI model may improve at least one image quality among resolution increase, noise removal, and dynamic range increase.

상기 제어부는 상기 제3 변환에 따라 확대된 영상을 디스플레이의 모든 화소에서 재생하도록 제어할 수 있다.The control unit may control an image enlarged according to the third transformation to be reproduced in all pixels of the display.

본 발명의 일 실시예에 따른 방법은 전자 장치에서 영상을 변환하여 재생하기 위한 방법으로서, 상기 전자 장치의 파지 상태에 관련된 센서 값을 감지하는 단계; 및 상기 센서 값에 따른 파지 상태 및 상기 영상의 영상비율에 따라, 상기 영상에 대한 변환을 수행하는 단계;를 포함한다.A method according to an embodiment of the present invention is a method for converting and reproducing an image in an electronic device, comprising: sensing a sensor value related to a holding state of the electronic device; and performing conversion on the image according to a holding state according to the sensor value and an aspect ratio of the image.

상기 변환을 수행하는 단계는, 상기 영상의 내용을 유지하면서 화질을 개선하는 제1 변환을 수행하는 단계와, 상기 영상의 내용에 새로운 영상 내용을 추가 합성하는 제2 변환을 수행하는 단계와, 상기 영상의 내용에서 적어도 일부분을 확대하면서 화질을 개선하는 제3 변환을 수행하는 단계 중에 적어도 하나의 단계를 포함할 수 있다.The performing of the conversion may include: performing a first conversion for improving image quality while maintaining the content of the video; performing a second conversion for adding and synthesizing new video content to the content of the video; At least one of the steps of performing a third transformation for improving image quality while enlarging at least a part of the content of the image may be included.

상기 변환을 수행하는 단계는 가로가 더 긴 화면비율의 가로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행하고, 세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제3 변환을 수행하며, 상기 가로 파지 상태 또는 상기 세로 파지 상태인 경우에 세로가 더 긴 영상비율의 세로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행하는 단계를 포함할 수 있다.The performing of the conversion may include performing the first conversion or the second conversion on a horizontal image having a longer horizontal aspect ratio when the horizontal holding state has a longer horizontal aspect ratio, and the longer vertical aspect ratio. The third conversion is performed on a horizontal image having a longer horizontal aspect ratio in the case of a vertical holding state, and the third transformation is performed on a vertical image having a longer aspect ratio in the horizontal holding state or the vertical holding state. It may include performing the first transformation or the second transformation.

상기 제1 변환을 수행하는 단계는, 상기 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환하는 단계를 포함할 수 있다.In the step of performing the first conversion, an enlarged image is generated by applying a pre-learned machine learning model to enlarge the image to an image larger than the screen size of the holding state while improving the image quality, and then the enlarged image It may include performing size interpolation on and converting to an aspect ratio of the holding state.

상기 제2 변환을 수행하는 단계는 이전 및 이후 프레임 영상을 이용하여 대응점 매칭 기반으로 현재 프레임 영상에 이전 또는 이후 프레임 영상에 포함된 새로운 영상 내용을 합성하는 단계를 포함할 수 있다.The performing of the second transformation may include synthesizing new image contents included in previous or subsequent frame images with the current frame image based on corresponding point matching using previous and subsequent frame images.

상기 제2 변환을 수행하는 단계는 상기 합성된 현재 프레임 영상이 목표 영상의 해상도에 미달하는 경우에 해당 현재 프레임 영상에 생성적 적대 신경망(Generative Adversarial Network; GAN) 기반의 경계 확장을 수행하여 새로운 영상 내용을 단계를 포함할 수 있다.In the step of performing the second transformation, when the synthesized current frame image does not meet the resolution of the target image, boundary expansion based on a generative adversarial network (GAN) is performed on the corresponding current frame image to generate a new image. Content can include steps.

상기 제2 변환을 수행하는 단계는 상기 합성된 현재 프레임 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환하는 단계를 포함할 수 있다.The step of performing the second transformation generates an enlarged image by applying a pre-learned machine learning model to enlarge the synthesized current frame image to an image larger than the screen size of the holding state while improving the image quality, It may include performing size interpolation on the enlarged image and converting it into an aspect ratio of the holding state.

상기 변환을 수행하는 단계는 세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제3 변환을 수행하는 단계를 포함할 수 있다.The performing of the conversion may include performing the third conversion on a horizontal image having a longer horizontal aspect ratio when the vertical holding state has a longer vertical aspect ratio.

상기 제3 변환을 수행하는 단계는, 상기 가로 영상의 프레임 영상마다 해당 프레임 영상의 컨텐츠를 분석하여 해당 프레임 영상의 일부에 해당하는 재생 영역을 산출하는 단계; 상기 가로 영상을 다수의 소단위로 분리하고 영상의 컨텐츠 종류 별로 기 학습된 다수의 AI(artificial intelligence) 모델 중에서 해당 소단위 내 가로 영상의 컨텐츠에 따라 소단위 별로 적용되는 최적 AI 모델을 선택하는 단계; 상기 재생 영역을 기반으로 상기 가로 영상에서 세로가 더 긴 영상비율의 세로 영상을 프레임 영상마다 추출하는 단계; 및 선택된 최적 AI 모델을 소단위 별로 적용하여 추출된 세로 영상을 확대 변환하는 단계;를 포함할 수 있다.The performing of the third transformation may include analyzing content of the corresponding frame image for each frame image of the horizontal image and calculating a reproduction area corresponding to a part of the corresponding frame image; Separating the horizontal image into a plurality of sub-units and selecting an optimal AI model applied for each sub-unit according to the content of the horizontal video within the sub-unit from among a plurality of AI (artificial intelligence) models pre-learned for each content type of the image; extracting, for each frame image, a vertical image having a longer vertical aspect ratio in the horizontal image based on the play area; and enlarging and converting the extracted vertical image by applying the selected optimal AI model for each subunit.

상기와 같이 구성되는 본 발명은 영상의 영상비율과 이를 재생하는 전자 장치의 화면비율이 다를 때, 검은 영상(필러 박스 또는 레터 박스)를 삽입하는 것이 아니라, 영상의 영상비율이 조정되도록 처리함으로써 이를 재생하는 전자 장치의 화면비율에 해당 영상을 적합하게 맞출 수 있는 이점이 있다. The present invention configured as described above does not insert a black image (pillar box or letter box) when the aspect ratio of the image and the aspect ratio of the electronic device that reproduces the image are different, but adjusts the aspect ratio of the image. There is an advantage in that a corresponding image can be appropriately matched to an aspect ratio of an electronic device that reproduces the image.

또한, 본 발명은 전자 장치의 파지 상태와 영상의 영상비율에 따라 제1 내지 제3 변환 중 적어도 하나의 변환을 적응적으로 수행함으로써 영상의 영상비율에 대한 변환을 효과적으로 수행할 수 있을 뿐만 아니라, 변환된 영상의 고해상도화를 도모할 수 있는 이점 있다.In addition, the present invention not only effectively converts the aspect ratio of an image by adaptively performing at least one of the first to third conversions according to the holding state of the electronic device and the aspect ratio of the image, There is an advantage that high resolution of the converted image can be promoted.

또한, 본 발명은 영상 재생 시, 레터 박스 또는 필러 박스를 최소화할 수 있을 뿐 아니라, 그 영상의 주요 객체를 포함하면서 확대하되, 확대하면서 발생하는 저화질의 문제를 개선한 고화질의 영상으로 재생할 수 있으므로, 사용자의 시각적 만족도를 높일 수 있는 이점이 있다. In addition, the present invention can not only minimize the letter box or pillar box when reproducing an image, but also enlarge it while including the main object of the image, but reproduce the low-quality problem that occurs while enlarging it as a high-definition image. , there is an advantage of increasing the user's visual satisfaction.

또한, 본 발명은 전자 장치의 화면을 최대한 활용하여 재생할 수 있어 시청 몰입감의 증대될 뿐 아니라, 노출 효과도 커, 재생 영상이 광고일 경우에 그 광고 효과가 큰 이점이 있다. In addition, since the screen of the electronic device can be reproduced using the screen of the electronic device as much as possible, the viewing immersion is increased, and the exposure effect is also great, so that the advertisement effect is great when the reproduced image is an advertisement.

또한, 본 발명은 다양한 화질 개선 기법의 적용 가능하므로, 주문형 비디오(video on demand; VOD) 뿐 아니라 실시간 스트리밍에도 적용 가능한 이점이 있다.In addition, since the present invention can be applied to various picture quality improvement techniques, there is an advantage that it can be applied not only to video on demand (VOD) but also to real-time streaming.

본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtainable in the present invention are not limited to the effects mentioned above, and other effects not mentioned can be clearly understood by those skilled in the art from the description below. will be.

도 1은 종래 기술이 적용된 다양한 화면비율의 단말에서 16:9 영상비율의 영상을 재생 시에 대한 예들을 나타낸다.
도 2는 본 발명의 일 실시예에 따른 전자 장치(100)의 블록 구성도를 나타낸다.
도 3은 본 발명의 일 실시예에 따른 방법의 순서도를 나타낸다.
도 4는 제어부(160)에 의해 수행되는 제1 변환에 대한 순서도를 나타낸다.
도 5는 영상에 대한 다양한 확대에 대한 예시를 나타낸다.
도 6은 제어부(160)에 의해 수행되는 제2 변환에 대한 순서도를 나타낸다.
도 7은 제2 변환에 대한 예시를 나타낸다.
도 8은 제어부(160)에 의해 수행되는 제3 변환에 대한 순서도를 나타낸다.
도 9는 제3 변환에서 S310에 대한 보다 상세한 순서도를 나타낸다.
도 10은 S320에서 최적 AI 모델을 선택하는 일 예를 나타낸다.
도 11은 세로 파지 상태의 전자 장치에서 가로 영상을 재생하는 예를 비교하여 나타낸다.
도 12는 본 발명의 일 실시예에 따른 방법의 S20에서 전자 장치(100)가 가로 파지 상태일 경우에 가로 영상에 대한 영상처리의 보다 상세한 순서도를 나타낸다.
도 13는 본 발명의 일 실시예에 따른 방법의 S20에서 전자 장치(100)가 세로 파지 상태일 경우에 가로 영상에 대한 영상처리의 보다 상세한 순서도를 나타낸다.
1 shows examples of playing an image of 16:9 aspect ratio in terminals having various aspect ratios to which the prior art is applied.
2 shows a block configuration diagram of an electronic device 100 according to an embodiment of the present invention.
3 shows a flow chart of a method according to one embodiment of the present invention.
4 shows a flowchart of the first conversion performed by the control unit 160 .
5 shows examples of various magnifications of an image.
6 shows a flowchart of the second conversion performed by the control unit 160 .
7 shows an example for the second transformation.
8 shows a flowchart of the third conversion performed by the control unit 160 .
9 shows a more detailed flow chart for S310 in the third transformation.
10 shows an example of selecting an optimal AI model in S320.
11 compares and shows an example of reproducing a horizontal image in an electronic device in a vertical holding state.
FIG. 12 shows a more detailed flowchart of image processing for a horizontal image when the electronic device 100 is in a horizontal grip state in S20 of the method according to an embodiment of the present invention.
13 shows a more detailed flowchart of image processing for a horizontal image when the electronic device 100 is in a vertical holding state in S20 of the method according to an embodiment of the present invention.

본 발명의 상기 목적과 수단 및 그에 따른 효과는 첨부된 도면과 관련한 다음의 상세한 설명을 통하여 보다 분명해질 것이며, 그에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 또한, 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략하기로 한다.The above objects and means of the present invention and the effects thereof will become clearer through the following detailed description in conjunction with the accompanying drawings, and accordingly, those skilled in the art to which the present invention belongs can easily understand the technical idea of the present invention. will be able to carry out. In addition, in describing the present invention, if it is determined that a detailed description of a known technology related to the present invention may unnecessarily obscure the subject matter of the present invention, the detailed description will be omitted.

본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며, 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 경우에 따라 복수형도 포함한다. 본 명세서에서, "포함하다", “구비하다”, “마련하다” 또는 “가지다” 등의 용어는 언급된 구성요소 외의 하나 이상의 다른 구성요소의 존재 또는 추가를 배제하지 않는다.Terms used in this specification are for describing the embodiments and are not intended to limit the present invention. In this specification, singular forms also include plural forms in some cases unless otherwise specified in the text. In this specification, terms such as "comprise", "have", "provide" or "have" do not exclude the presence or addition of one or more other elements other than the mentioned elements.

본 명세서에서, “또는”, “적어도 하나” 등의 용어는 함께 나열된 단어들 중 하나를 나타내거나, 또는 둘 이상의 조합을 나타낼 수 있다. 예를 들어, “또는 B”“및 B 중 적어도 하나”는 A 또는 B 중 하나만을 포함할 수 있고, A와 B를 모두 포함할 수도 있다.In this specification, terms such as “or” and “at least one” may represent one of the words listed together, or a combination of two or more. For example, "or B" and "at least one of B" may include only one of A or B, or may include both A and B.

본 명세서에서, “예를 들어” 등에 따르는 설명은 인용된 특성, 변수, 또는 값과 같이 제시한 정보들이 정확하게 일치하지 않을 수 있고, 허용 오차, 측정 오차, 측정 정확도의 한계와 통상적으로 알려진 기타 요인을 비롯한 변형과 같은 효과로 본 발명의 다양한 실시 예에 따른 발명의 실시 형태를 한정하지 않아야 할 것이다.In this specification, descriptions following "for example" may not exactly match the information presented, such as cited characteristics, variables, or values, and tolerances, measurement errors, limits of measurement accuracy and other commonly known factors It should not be limited to the embodiments of the present invention according to various embodiments of the present invention with effects such as modifications including.

본 명세서에서, 어떤 구성요소가 다른 구성요소에 '연결되어’ 있다거나 '접속되어' 있다고 기재된 경우, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성 요소에 '직접 연결되어' 있다거나 '직접 접속되어' 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해될 수 있어야 할 것이다.In this specification, when a component is described as being 'connected' or 'connected' to another component, it may be directly connected or connected to the other component, but there may be other components in the middle. It should be understood that it may be On the other hand, when a component is referred to as 'directly connected' or 'directly connected' to another component, it should be understood that no other component exists in the middle.

본 명세서에서, 어떤 구성요소가 다른 구성요소의 '상에' 있다거나 '접하여' 있다고 기재된 경우, 다른 구성요소에 상에 직접 맞닿아 있거나 또는 연결되어 있을 수 있지만, 중간에 또 다른 구성요소가 존재할 수 있다고 이해되어야 할 것이다. 반면, 어떤 구성요소가 다른 구성요소의 '바로 위에' 있다거나 '직접 접하여' 있다고 기재된 경우에는, 중간에 또 다른 구성요소가 존재하지 않은 것으로 이해될 수 있다. 구성요소 간의 관계를 설명하는 다른 표현들, 예를 들면, '~사이에'와 '직접 ~사이에' 등도 마찬가지로 해석될 수 있다.In the present specification, when an element is described as being 'on' or 'in contact with' another element, it may be in direct contact with or connected to the other element, but another element may be present in the middle. It should be understood that On the other hand, if an element is described as being 'directly on' or 'directly in contact with' another element, it may be understood that another element in the middle does not exist. Other expressions describing the relationship between components, such as 'between' and 'directly between', can be interpreted similarly.

본 명세서에서, '제1', '제2' 등의 용어는 다양한 구성요소를 설명하는데 사용될 수 있지만, 해당 구성요소는 위 용어에 의해 한정되어서는 안 된다. 또한, 위 용어는 각 구성요소의 순서를 한정하기 위한 것으로 해석되어서는 안되며, 하나의 구성요소와 다른 구성요소를 구별하는 목적으로 사용될 수 있다. 예를 들어, '제1구성요소'는 '제2구성요소'로 명명될 수 있고, 유사하게 '제2구성요소'도 '제1구성요소'로 명명될 수 있다.In this specification, terms such as 'first' and 'second' may be used to describe various elements, but the elements should not be limited by the above terms. In addition, the above terms should not be interpreted as limiting the order of each component, and may be used for the purpose of distinguishing one component from another. For example, a 'first element' may be named a 'second element', and similarly, a 'second element' may also be named a 'first element'.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어는 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또한, 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다.Unless otherwise defined, all terms used in this specification may be used in a meaning commonly understood by those of ordinary skill in the art to which the present invention belongs. In addition, terms defined in commonly used dictionaries are not interpreted ideally or excessively unless explicitly specifically defined.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일 실시예를 상세히 설명하도록 한다. Hereinafter, a preferred embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 일 실시예에 따른 전자 장치(100)의 블록 구성도를 나타낸다.2 shows a block configuration diagram of an electronic device 100 according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 전자 장치(100)는 영상을 변환하여 재생하는 장치이다. 이때, 영상은 동영상(video)을 지칭할 수 있으며, 기 저장된 영상이거나 타 장치(서버)로부터 전송된 영상일 수 있다. 예를 들어, 본 전자 장치(100)가 제공하는 서비스는 기 저장된 영상을 재생하는 서비스, 주문형 비디오(video on demand; VOD) 또는 실시간 스트리밍 등의 서비스일 수 있으나, 이에 한정되는 것은 아니다.The electronic device 100 according to an embodiment of the present invention is a device that converts and reproduces an image. In this case, the image may refer to a video, and may be a pre-stored image or an image transmitted from another device (server). For example, the service provided by the electronic device 100 may be a service of playing a pre-stored video, a video on demand (VOD) service, or a service such as real-time streaming, but is not limited thereto.

특히, 영상은 세로 보다 가로가 더 긴 영상비율의 컨텐츠를 가지는 영상(이하, “가로 영상”이라 지칭함)이거나, 가로 보다 세로가 더 긴 영상비율의 컨텐츠를 가지는 영상(이하, “세로 영상”이라 지칭함)일 수 있다. 또한, 파지 상태는 전자 장치(100)가 사용자에 의해 주어진 상태로서, 디스플레이(130)가 세로보다 가로가 더 긴 화면비율의 상태(이하, “가로 파지 상태”라 지칭함)이거나, 가로보다 세로가 더 긴 화면비율의 상태(이하, “세로 파지 상태”라 지칭함)일 수 있다In particular, the video is an image having content with an aspect ratio longer than the vertical (hereinafter referred to as “horizontal video”) or an image having content with an aspect ratio longer than horizontal (hereinafter referred to as “vertical video”). referred to). In addition, the holding state is a state given by the user of the electronic device 100, and the display 130 is in a state in which the aspect ratio of the display 130 is longer than the vertical (hereinafter, referred to as “horizontal holding state”), or the display 130 is in a vertical rather than horizontal state. It may be a state of longer aspect ratio (hereinafter referred to as “vertical holding state”)

즉, 전자 장치(100)는 현재의 파지 상태 및 영상의 영상비율(즉, 가로 영상인지 세로 영상인지 여부)에 따라, 해당 영상에 대해 다양한 변환을 수행한 후 재생할 수 있다.That is, the electronic device 100 may reproduce a corresponding image after performing various transformations according to the current holding state and the aspect ratio of the image (that is, whether the image is horizontal or vertical).

이때, 전자 장치(100)은 컴퓨팅(computing)이 가능한 단말일 수 있다. 예를 들어, 전자 장치(100)는 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 태블릿 PC(tablet personal computer), 넷북 컴퓨터(netbook computer), 워크스테이션(workstation), PDA(personal digital assistant), 스마트폰(smart phone), 스마트패드(smart pad), 또는 휴대폰(mobile phone) 등일 수 있으나, 이에 한정되는 것은 아니다.In this case, the electronic device 100 may be a terminal capable of computing. For example, the electronic device 100 includes a desktop personal computer (PC), a laptop personal computer (laptop PC), a tablet personal computer (tablet PC), a netbook computer, a workstation, and a personal PDA (personal PDA). It may be a digital assistant, a smart phone, a smart pad, or a mobile phone, but is not limited thereto.

이러한 전자 장치(100)은, 도 2에 도시된 바와 같이, 입력부(110), 통신부(120), 디스플레이(130), 메모리(140) 및 제어부(160)를 포함할 수 있다.As shown in FIG. 2 , the electronic device 100 may include an input unit 110, a communication unit 120, a display 130, a memory 140, and a control unit 160.

입력부(110)는 다양한 사용자의 입력에 대응하여, 입력데이터를 발생시키며, 다양한 입력수단을 포함할 수 있다.The input unit 110 generates input data in response to various user inputs and may include various input means.

예를 들어, 입력부(110)는 키보드(key board), 키패드(key pad), 돔 스위치(dome switch), 터치 패널(touch panel), 터치 키(touch key), 터치 패드(touch pad), 마우스(mouse), 메뉴 버튼(menu button) 등을 포함할 수 있으나, 이에 한정되는 것은 아니다.For example, the input unit 110 includes a keyboard, a key pad, a dome switch, a touch panel, a touch key, a touch pad, and a mouse. (mouse), menu button (menu button), etc. may be included, but is not limited thereto.

통신부(120)는 서버 등 다른 장치와의 통신을 수행하는 구성으로서, 영상에 대한 비트스트림, 기 학습된 모델(AI 모델, 머신 러닝 모델, GAN 모델 등)에 대한 정보 등을 다른 장치로부터 수신할 수 있다. The communication unit 120 is a component that communicates with other devices such as a server, and receives information about a bitstream for an image and a pre-learned model (AI model, machine learning model, GAN model, etc.) from another device. can

예를 들어, 통신부(120)는 5G(5th generation communication), LTE-A(long term evolution-advanced), LTE(long term evolution), 블루투스, BLE(bluetooth low energy), NFC(near field communication), 와이파이(WiFi) 통신 등의 무선 통신을 수행하거나, 케이블 통신 등의 유선 통신을 수행할 수 있으나, 이에 한정되는 것은 아니다.For example, the communication unit 120 may perform 5th generation communication (5G), long term evolution-advanced (LTE-A), long term evolution (LTE), Bluetooth, bluetooth low energy (BLE), near field communication (NFC), Wireless communication such as WiFi communication or wired communication such as cable communication may be performed, but is not limited thereto.

디스플레이(130)는 다양한 영상 데이터를 화면으로 표시하는 것으로서, 비발광형 패널이나 발광형 패널로 구성될 수 있다. 또한, 디스플레이(230)는 파지 상태 및 영상의 영상비율에 따라 변환된 영상을 표시할 수 있다. The display 130 displays various image data on a screen, and may be composed of a non-emissive panel or a light-emitting panel. Also, the display 230 may display the converted image according to the holding state and the aspect ratio of the image.

예를 들어, 디스플레이(130)는 액정 디스플레이(LCD; liquid crystal display), 발광 다이오드(LED; light emitting diode) 디스플레이, 유기 발광 다이오드(OLED; organic LED) 디스플레이, 마이크로 전자기계 시스템(MEMS; micro electro mechanical systems) 디스플레이, 또는 전자 종이(electronic paper) 디스플레이 등을 포함할 수 있으나, 이에 한정되는 것은 아니다. 또한, 디스플레이(130)는 입력부(120, 220)와 결합되어 터치 스크린(touch screen) 등으로 구현될 수 있다.For example, the display 130 may include a liquid crystal display (LCD), a light emitting diode (LED) display, an organic LED (OLED) display, and a micro electromechanical system (MEMS). mechanical systems) display, or electronic paper (electronic paper) display, etc. may be included, but is not limited thereto. Also, the display 130 may be combined with the input units 120 and 220 and implemented as a touch screen or the like.

메모리(140)는 전자 장치(100)의 동작에 필요한 각종 정보를 저장한다. 메모리(140)의 저장 정보로는 영상, 모델, 변환된 영상, 후술할 방법에 관련된 프로그램 정보 등이 포함될 수 있으나, 이에 한정되는 것은 아니다. 특히, AI 모델은 복수개가 저장될 수 있으며, 압축 처리된 형태로 저장될 수 있으나, 이에 한정되는 것은 아니다.The memory 140 stores various types of information necessary for the operation of the electronic device 100 . The storage information of the memory 140 may include, but is not limited to, images, models, converted images, program information related to a method to be described later, and the like. In particular, a plurality of AI models may be stored, and may be stored in a compressed form, but is not limited thereto.

예를 들어, 메모리(140)는 그 유형에 따라 하드디스크 타입(hard disk type), 마그네틱 매체 타입(magnetic media type), CD-ROM(compact disc read only memory), 광 기록 매체 타입(optical Media type), 자기-광 매체 타입(magneto-optical media type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 플래시 저장부 타입(flash memory type), 롬 타입(read only memory type), 또는 램 타입(random access memory type) 등을 포함할 수 있으나, 이에 한정되는 것은 아니다. 또한, 메모리(140)는 그 용도/위치에 따라 캐시(cache), 버퍼, 주기억장치, 또는 보조기억장치이거나 별도로 마련된 저장 시스템일 수 있으나, 이에 한정되는 것은 아니다.For example, the memory 140 may be of a hard disk type, a magnetic media type, a compact disc read only memory (CD-ROM), or an optical media type according to its type. ), magneto-optical media type, multimedia card micro type, flash memory type, read only memory type, or RAM type (random access memory type), etc., but is not limited thereto. In addition, the memory 140 may be a cache, a buffer, a main memory, an auxiliary memory, or a separately provided storage system depending on its purpose/location, but is not limited thereto.

센서부(150)는 전자 장치(100)나 그 주변의 상태 정보를 감지한다. 이러한 센서부(150)는 가속 센서, 자이로 센서(Gyro Sensor), 근접 센서, RGB 센서, 밝기 센서, 홀 센서, 모션 센서, 온도/습도 센서, 기압계, 지자기 센서 등 다양한 센서를 포함할 수 있다.The sensor unit 150 detects state information of the electronic device 100 or its surroundings. The sensor unit 150 may include various sensors such as an acceleration sensor, a gyro sensor, a proximity sensor, an RGB sensor, a brightness sensor, a Hall sensor, a motion sensor, a temperature/humidity sensor, a barometer, and a geomagnetic sensor.

특히, 전자 장치(100)는 다양한 파지 상태에 있을 수 있으며, 센서부(150)는 이를 감지할 수 있다. 즉, 센서부(150)는 자이로 센서(Gyro Sensor), 모션 센서 등과 같이 전자 장치(100)의 파지 상태에 관련된 센서 값을 감지하는 센서를 포함할 수 있다.In particular, the electronic device 100 may be in various holding states, and the sensor unit 150 may detect them. That is, the sensor unit 150 may include a sensor that detects a sensor value related to a holding state of the electronic device 100, such as a gyro sensor or a motion sensor.

제어부(160)는 전자 장치(100)의 다양한 제어 동작을 수행할 수 있다. 즉, 제어부(160)는 후술할 방법의 수행을 제어할 수 있으며, 전자 장치(100)의 나머지 구성, 즉 입력부(110), 통신부(120), 디스플레이(130), 메모리(140), 센서부(150) 등의 동작을 제어할 수 있다.The controller 160 may perform various control operations of the electronic device 100 . That is, the controller 160 may control the execution of a method to be described later, and the rest of the components of the electronic device 100, that is, the input unit 110, the communication unit 120, the display 130, the memory 140, and the sensor unit. (150) and the like can be controlled.

예를 들어, 제어부(160)는 하드웨어인 프로세서(processor) 또는 해당 프로세서에서 수행되는 소프트웨어인 프로세스(process) 등을 포함할 수 있으나, 이에 한정되는 것은 아니다.For example, the control unit 160 may include, but is not limited to, a processor that is hardware or a process that is software that is executed in the corresponding processor.

특히, 제어부(160)는 센서부(150)의 파지 상태 관련 센서의 센서 값을 이용하여 전자 장치(100)의 파지 상태를 파악할 수 있으며, 파악된 파지 상태와 영상의 영상비율에 따라, 영상에 대한 변환을 수행을 제어할 수 있다.In particular, the control unit 160 can determine the holding state of the electronic device 100 using the sensor value of the sensor unit 150 related to the holding state, and the image is displayed according to the grasped holding state and the aspect ratio of the image. You can control the execution of conversions.

이때, 영상에 대한 변환은 제1 내지 제3 변환 중 적어도 하나일 수 있다. 즉, 제1 변환은 영상의 내용을 유지하면서 확대하되 그 화질 개선도 함께 수행하는 변환이다. 제2 변환은 영상의 내용에 새로운 영상 내용을 추가 합성하면서 확대하는 변환이다. 물론, 제2 변환은 새로운 영상 내용이 추가 합성된 후에 제1 변환이 추가적으로 수행되는 변환일 수 있다. 또한, 제3 변환은 영상의 내용에서 적어도 일부분을 확대하되 세로 영상으로 확대하면서 그 화질 개선도 함께 수행하는 변환이다.In this case, the transformation of the image may be at least one of the first to third transformations. That is, the first transformation is a transformation that enlarges the image while maintaining the content of the image, but also improves the image quality. The second transformation is a transformation in which new video content is added and synthesized while enlarging the video content. Of course, the second transformation may be a transformation in which the first transformation is additionally performed after new video content is additionally synthesized. In addition, the third transformation is a transformation in which at least a part of the content of the video is enlarged to a vertical video while improving the image quality.

하기의 표 1은 파지 상태와 영상의 영상비율에 따라 제어부(160)가 수행하는 변환의 종류를 나타낸다.Table 1 below shows the type of conversion performed by the controller 160 according to the holding state and the aspect ratio of the image.

가로 파지 상태horizontal gripping state 세로 파지 상태vertical gripping state 가로 영상horizontal video 제1 변환 또는 제2 변환First Transformation or Second Transformation 제3 변환Third Transformation 세로 영상vertical video 제1 변환 또는 제2 변환First Transformation or Second Transformation 제1 변환 또는 제2 변환First Transformation or Second Transformation

즉, 제어부(160)는 전자 장치(100)가 가로 파지 상태이고 가로 영상인 경우에 가로 영상에 대해 제1 변환 또는 제2 변환을 수행하도록 제어할 수 있다. 이때, 제어부(160)는 필러 박스(pillar box)의 영역이 필요한지 여부에 따라 제1 변환 또는 제2 변환을 수행할 수 있다. 즉, 가로 파지 상태 및 가로 영상이되 가로 영상에 필러 박스(pillar box)의 영역을 채워서 재생해야 하는 경우(가령, 원본 가로 영상의 해상도가 부족하여 변환되는 가로 영상에 필러 박스의 영역이 필요한 경우), 가로 영상에 대해 상기 제2 변환을 수행할 수 있다. 반면, 가로 파지 상태 및 가로 영상이되 가로 영상에 필러 박스의 영역을 채울 필요가 없는 경우(가령, 원본 가로 영상의 해상도가 충분하여 변환되는 가로 영상에 필러 박스의 영역이 불필요한 경우), 가로 영상에 대해 제1 변환을 수행할 수 있다.또한, 제어부(160)는 전자 장치(100)가 세로 파지 상태인 경우에 가로 영상에 대해 제3 변환을 수행하도록 제어할 수 있다.That is, when the electronic device 100 is in a horizontal holding state and is in a horizontal image, the controller 160 may control the first transform or the second transform to be performed on the horizontal image. In this case, the controller 160 may perform a first transformation or a second transformation depending on whether a pillar box area is required. That is, when the horizontal holding state and the horizontal image are reproduced by filling the area of the pillar box in the horizontal image (for example, when the converted horizontal image requires the area of the pillar box because the resolution of the original horizontal image is insufficient) ), the second transformation may be performed on the horizontal image. On the other hand, when the horizontal holding state and the horizontal image do not need to fill the pillar box area in the horizontal image (for example, when the original horizontal image has sufficient resolution and the converted horizontal image does not require the pillar box area), the horizontal image The first conversion may be performed on the image. In addition, the controller 160 may control the horizontal image to perform the third conversion when the electronic device 100 is in a vertical holding state.

또한, 제어부(160)는 전자 장치(100)가 가로 파지 상태 또는 세로 파지 상태인 경우에 세로 영상에 대해 제1 변환 또는 제2 변환을 수행하도록 제어할 수 있다. 이때, 제어부(160)는 필러 박스(pillar box)의 영역이 필요한지 여부에 따라 제1 변환 또는 제2 변환을 수행할 수 있다. 즉, 세로 영상에 필러 박스(pillar box)의 영역을 채워서 재생해야 하는 경우(가령, 원본 세로 영상의 해상도가 부족하여 변환되는 가로 또는 세로 영상에 필러 박스의 영역이 필요한 경우), 세로 영상에 대해 상기 제2 변환을 수행할 수 있다. 반면, 세로 영상에 필러 박스의 영역을 채울 필요가 없는 경우(가령, 원본 세로 영상의 해상도가 충분하여 변환되는 가로 또는 세로 영상에 필러 박스의 영역이 불필요한 경우), 세로 영상에 대해 제1 변환을 수행할 수 있다.Also, when the electronic device 100 is in a horizontal holding state or a vertical holding state, the controller 160 may control the vertical image to perform a first conversion or a second conversion. In this case, the controller 160 may perform a first transformation or a second transformation depending on whether a pillar box area is required. That is, when a vertical image needs to be reproduced by filling a pillar box area (for example, when a horizontal or vertical image to be converted requires a pillar box area because the resolution of the original vertical image is insufficient), for a vertical image The second transformation may be performed. On the other hand, when it is not necessary to fill the pillar box area in the vertical image (for example, when the original vertical image has sufficient resolution and the converted horizontal or vertical image does not need the pillar box area), a first transformation is performed on the vertical image. can be done

도 3은 본 발명의 일 실시예에 따른 방법의 순서도를 나타낸다. 3 shows a flow chart of a method according to one embodiment of the present invention.

본 발명의 일 실시예에 따른 방법은 전자 장치(100)에서 영상을 변환하여 재생하기 위한 방법으로서, 도 3에 도시된 바와 같이, S10 내지 S30을 포함한다. 이때, S100 내지 S300은 제어부(160)의 다양한 하드웨어 구성 또는 소프트웨어인 프로세스를 통해 그 수행이 제어할 수 있다.A method according to an embodiment of the present invention is a method for converting and reproducing an image in the electronic device 100, and includes S10 to S30 as shown in FIG. 3 . At this time, the execution of S100 to S300 can be controlled through various hardware configurations or software processes of the control unit 160 .

먼저, 제어부(160)는 전자 장치(100)의 파지 상태에 관련된 센서 값을 감지하여, 파지 상태를 파악한다(S10). 이때, 제어부(160)는 센서부(150)의 파질 상태 관련 센서로부터 감지된 센서 값을 이용하여, 전자 장치(100)의 파지 상태를 파악할 수 있다. 즉, 전자 장치(100)가 가로 파지 상태인지 세로 파지 상태인지를 파악할 수 있다. First, the control unit 160 detects a sensor value related to the holding state of the electronic device 100 to determine the holding state (S10). At this time, the control unit 160 may determine the gripping state of the electronic device 100 by using the sensor value detected from the gripping state related sensor of the sensor unit 150 . That is, it is possible to determine whether the electronic device 100 is in a horizontal gripping state or a vertical gripping state.

이후, 제어부(160)는 파악된 파지 상태 및 영상이 가지는 영상비율에 따라, 영상에 대한 변환을 적응적으로 수행한다(S20). 즉, 제어부(160)는 파지 상태(즉, 가로 파지 상태/세로 파지 상태) 및 영상비율(즉, 가로 영상/세로 영상)의 여부에 따라, 제1 내지 제3 변환 중에 적어도 하나를 수행할 수 있다. 물론, S20의 수행 전에, 제어부(160)는 메모리(140)에 기 저장되거나 통신부(120)을 통해 수신된 영상이 가로 영상인지 세로 영상인지 여부에 대해서 파악하며, 이후에 S20을 수행할 수 있다.Thereafter, the controller 160 adaptively converts the image according to the grasped holding state and the aspect ratio of the image (S20). That is, the controller 160 may perform at least one of the first to third conversions according to the holding state (ie, horizontal holding state/vertical holding state) and aspect ratio (ie, horizontal image/vertical image). there is. Of course, before performing S20, the controller 160 determines whether the image previously stored in the memory 140 or received through the communication unit 120 is a horizontal image or a vertical image, and then performs S20. .

이후, 제어부(160)는 제1 내지 제3 변환 중 적어도 하나가 수행된 영상을 재생하여 디스플레이(130)에서 표시되도록 제어한다(S30). Thereafter, the controller 160 reproduces the image on which at least one of the first to third conversions has been performed and controls the image to be displayed on the display 130 (S30).

즉, 가로 파지 상태 및 가로 영상인 경우, 가로 영상에 대해 제1 변환 또는 제2 변환이 수행된 변환 가로 영상이 디스플레이(130)에 표시될 수 있다. 또한, 세로 파지 상태 및 가로 영상인 경우, 가로 영상에 대해 제3 변환이 수행된 고화질의 세로 영상이 디스플레이(130)에 표시될 수 있다. 이때, 확대 변환된 고화질의 세로 영상은, 도 11에 도시된 바와 같이, 전자 장치(100)의 디스플레이(140)의 모든 화소에서 재생될 수 있으나, 이에 한정되는 것은 아니다. 또한, 파지 상태와 상관없이 세로 영상인 경우, 세로 영상에 대해 제1 변환 또는 제2 변환이 수행된 변환 가로 또는 세로 영상이 디스플레이(130)에 표시될 수 있다.That is, in the case of a horizontal holding state and a horizontal image, a converted horizontal image obtained by performing a first conversion or a second conversion on the horizontal image may be displayed on the display 130 . Also, in the case of a vertical holding state and a horizontal image, a high-quality vertical image obtained by performing a third conversion on the horizontal image may be displayed on the display 130 . In this case, the enlarged and converted high-quality vertical image may be reproduced in all pixels of the display 140 of the electronic device 100 as shown in FIG. 11 , but is not limited thereto. In addition, regardless of the gripping state, in the case of a vertical image, a converted horizontal or vertical image obtained by performing a first conversion or a second conversion on the vertical image may be displayed on the display 130 .

물론, S30에서, 제어부(160)는 제1 내지 제3 변환 중 적어도 하나가 수행된 영상의 재생 시에 해당 영상에 대한 오디오도 함께 동기화하여 전자 장치(100)에서 출력(재생)되도록 제어할 수 있다.Of course, in S30, the control unit 160 may control the electronic device 100 to output (reproduce) the audio of the corresponding video by synchronizing the audio of the video when at least one of the first to third conversions is performed. there is.

<제1 변환><First Transformation>

제1 변환을 수행할 경우, 제어부(160)는 영상에 대해 화질을 개선하면서 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 제1 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 생성된 확대 영상에 대한 크기 보간을 수행하여 파지 상태의 화면비율에 맞도록 변환할 수 있다.When performing the first conversion, the control unit 160 generates an enlarged image by applying a first machine learning model that has been previously learned to enlarge the image to a larger image than the screen size of the holding state while improving the image quality, and then generates It can be converted to fit the aspect ratio of the holding state by performing size interpolation on the enlarged image.

도 4는 제어부(160)에 의해 수행되는 제1 변환에 대한 순서도를 나타내며, 도 5는 영상에 대한 다양한 확대에 대한 예시를 나타낸다. FIG. 4 shows a flowchart of the first transformation performed by the controller 160, and FIG. 5 shows examples of various enlargements of an image.

구체적으로, 도 4를 참조하면, 제어부(160)는 제1 변환을 수행할 경우에 S101 내지 S104를 수행할 수 있다.Specifically, referring to FIG. 4 , the controller 160 may perform S101 to S104 when performing the first conversion.

제어부(160)는 현재 변환 대상이 되는 영상(입력 영상)과 변환 후의 영상(목표 영상) 간의 화면비를 계산한다(S101). 이때, 목표 영상은 전자 장치(100)의 현재 파지 상태에 따른 영상이다.The controller 160 calculates an aspect ratio between an image to be converted (input image) and an image after conversion (target image) (S101). At this time, the target image is an image according to the current holding state of the electronic device 100 .

즉, S101에서, 제어부(160)는 입력 영상의 가로 및 세로 화소 개수와, 목표 영상의 가로 및 세로 화소 개수를 파악하며, 파악된 각 화소 개수 간의 비율을 계산할 수 있다. 물론, 제어부(160)는 가로 비율(즉, 입력 영상 및 목표 영상 간의 가로 화소 개수 비율)과, 가로 비율(즉, 입력 영상 및 목표 영상 간의 세로 화소 개수 비율)을 계산할 수 있다. 예를 들어, 입력 영상이 320×240이고 목표 영상이 720×480인 경우, 제어부(160)는 가로/세로 비율을 각각 2.25/2으로 계산할 수 있다.That is, in S101 , the controller 160 may determine the number of horizontal and vertical pixels of the input image and the number of horizontal and vertical pixels of the target image, and calculate a ratio between the determined number of pixels. Of course, the controller 160 may calculate the horizontal ratio (ie, the ratio of the number of horizontal pixels between the input image and the target image) and the horizontal ratio (ie, the ratio of the number of vertical pixels between the input image and the target image). For example, when the input image is 320×240 and the target image is 720×480, the controller 160 may calculate the horizontal/vertical ratio as 2.25/2, respectively.

이후, 제어부(160)는 가로/세로 확대 비율을 각각 설정한다(S102). 이때, 가로 확대 비율은 입력 영상에 대해 가로 방향에서 확대하기 위한 비율이며, 세로 확대 비율은 입력 영상에 대해 세로 방향에서 확대하기 위한 비율이다. 이러한 가로/세로 확대 비율은 S101에서 계산된 가로/세로 비율과 다를 수 있으며, 특히 S101에서 계산된 가로/세로 비율보다 크게 설정될 수 있다. 예를 들어, S101에서 가로/세로 비율이 각각 2.25/2로 계산된 경우, 제어부(160)는 가로 확대 비율을 2.25보다 크게 설정하고, 세로 확대 비율을 2보다 크게 설정할 수 있다.Thereafter, the controller 160 sets each horizontal/vertical magnification ratio (S102). In this case, the horizontal expansion ratio is a ratio for horizontally expanding the input image, and the vertical expansion ratio is a ratio for vertically expanding the input image. This horizontal/vertical expansion ratio may be different from the horizontal/vertical ratio calculated in S101, and may be set larger than the horizontal/vertical ratio calculated in S101. For example, when the horizontal/vertical ratio is calculated to be 2.25/2 in S101, the controller 160 may set the horizontal expansion ratio to be greater than 2.25 and the vertical expansion ratio to be greater than 2.

이후, 제어부(160)는 기 학습된 제1 머신 러닝 모델에 입력 영상 및 가로/세로 확대 비율을 입력함으로써, 입력 영상에 대해 화질을 개선하면서 가로/세로 확대 비율로 확대된 영상을 생성할 수 있다. 이때, 생성된 확대 영상은 목표 영상(즉, 현재 파지 상태의 화면 크기를 가지는 영상) 보다 큰 해상도의 영상이다.Thereafter, the controller 160 may generate an image enlarged at the horizontal/vertical magnification ratio while improving the image quality of the input image by inputting the input image and the horizontal/vertical magnification ratio to the pre-learned first machine learning model. . At this time, the generated enlarged image is an image having a higher resolution than the target image (ie, an image having the screen size of the current holding state).

만일, 종래 기술을 적용하면, 영상이 단순히 일정 비율로 확대 변환되므로, 저해상도 등과 같이 화질 저하가 발생되어 사용자의 시각적 만족도는 낮아질 수밖에 없다. 이를 해결하기 위해, 본 발명에서는 제1 머신 러닝 모델을 이용함으로써, 입력 영상을 확대 변환하되 그 화질도 개선할 수 있다. 즉, 제1 머신 러닝 모델은 머신 러닝(machine learning) 기법에 따라 학습된 모델로서, 저화질 영상으로부터 화질 개선된 영상을 생성하되 입력된 가로/세로 확대 비율에 따라 확대된 영상을 생성하도록 학습된 모델이다. If the prior art is applied, since the image is simply enlarged and converted at a certain ratio, image quality degradation such as low resolution occurs, and thus the user's visual satisfaction is inevitably lowered. In order to solve this problem, in the present invention, by using the first machine learning model, the input image can be enlarged and converted, but the image quality can also be improved. That is, the first machine learning model is a model learned according to a machine learning technique, and generates an image with improved quality from a low-quality image, but is trained to generate an enlarged image according to the input horizontal / vertical magnification ratio to be.

구체적으로, 제1 머신 러닝 모델은 입력 데이터 및 출력 데이터 쌍(데이터셋)의 학습 데이터를 통해 지도 학습(supervised learning)의 머신 러닝 기법에 따라 학습된 모델이다. 즉, 제1 머신 러닝 모델은 저화질 영상 및 가로/세로 확대 비율의 입력 데이터와, 가로/세로 확대 비율에 따라 확대되되 화질 개선된 영상의 출력 데이터를 포함하는 학습 데이터를 이용해 학습될 수 있다. 이에 따라, 제1 머신 러닝 모델은 입력 데이터인 저화질 영상 및 가로/세로 확대 비율과, 출력 데이터인 화질 개선된 확대 영상 간의 관계에 대한 함수를 가지며, 이를 다양한 파라미터를 이용해 표현한다. Specifically, the first machine learning model is a model learned according to a machine learning technique of supervised learning through training data of input data and output data pairs (datasets). That is, the first machine learning model may be learned using training data including input data of a low-quality image and horizontal/vertical magnification, and output data of an image enlarged according to the horizontal/vertical magnification but with improved quality. Accordingly, the first machine learning model has a function for a relationship between input data, such as a low-quality image and horizontal/vertical magnification ratio, and output data, an enlarged image with improved quality, and expresses the function using various parameters.

예를 들어, 제1 머신 러닝 모델은 가중치(Weights)와 편향치(Biases)의 파라미터를 이용해 저화질 영상과 화질 개선되면서 가로/세로 확대 비율로 확대된 영상 간의 관계를 표현할 수 있다. 이에 따라, 학습된 제1 머신 러닝 모델에 저화질의 입력 영상과 가로/세로 확대 비율의 입력 데이터가 입력되는 경우, 해당 함수에 따라 가로/세로 확대 비율로 확대되면서 화질 개선된 확대 영상의 출력 데이터가 출력될 수 있다.For example, the first machine learning model may express a relationship between a low-quality image and an image enlarged at a horizontal/vertical magnification ratio with improved image quality using parameters of weights and biases. Accordingly, when a low-quality input image and input data of horizontal/vertical magnification are input to the first machine learning model learned, the output data of the enlarged image with improved quality is enlarged at the horizontal/vertical magnification according to the corresponding function. can be output.

이때, 화질 개선 종류는 저화질 영상에 비해 해상도 증가, 노이즈 제거 및 다이나믹 레인지 증가 중 적어도 하나일 수 있다. 즉, 제1 머신 러닝 모델은 저화질 영상이 입력되면, 해상도 증가, 노이즈 제거 및 다이나믹 레인지 증가 중 어느 하나의 화질 개선 영상을 출력할 수 있다. 다만, 입력 영상이 확대 변환되어야 하므로, 해상도 증가는 반드시 포함되는 것이 바람직할 수 있다. 가령, 제1 머신 러닝 모델은 저화질 영상 및 가로/세로 확대 비율이 입력되면, 가로/세로 확대 비율로의 해상도 증가의 화질 개선 영상을 출력하거나, 가로/세로 확대 비율로의 해상도 증가 및 노이즈 제거의 화질 개선 영상을 출력하거나, 가로/세로 확대 비율로의 해상도 증가 및 다이나믹 레인지 증가의 화질 개선 영상을 출력할 수 있다.In this case, the quality improvement type may be at least one of resolution increase, noise removal, and dynamic range increase compared to the low-quality image. That is, when a low-quality image is input, the first machine learning model may output one of image quality improvement among resolution increase, noise removal, and dynamic range increase. However, since the input image needs to be enlarged and converted, it may be desirable to necessarily include an increase in resolution. For example, when a low-quality image and horizontal/vertical expansion ratio are input, the first machine learning model outputs a quality-enhanced image of increasing the resolution in the horizontal/vertical expansion ratio, or increasing the resolution in the horizontal/vertical expansion ratio and removing noise. A quality-enhanced image may be output, or a quality-enhanced image with an increase in resolution and an increase in dynamic range may be output.

이후, 제어부(160)는 S103에서 생성된 확대 영상에 대해 해상도 변형 기법을 적용하여 크기 보간을 수행함으로써, 전자 장치(100)의 현재 파지 상태의 화면비율에 맞는 영상으로 변환할 수 있다. 예를 들어, 해상도 변형 기법은 Bilinear, bicubic interpolation, down-sampling 등일 수 있으나, 이에 한정되는 것은 아니다. Then, the controller 160 may convert the enlarged image generated in step S103 into an image suitable for the aspect ratio of the current holding state of the electronic device 100 by performing size interpolation by applying a resolution modification technique. For example, the resolution transformation technique may be bilinear, bicubic interpolation, down-sampling, etc., but is not limited thereto.

특히, 도 5를 참조하면, 종래의 딥러닝 기반 화면 확대 기법의 경우, 가로/세로에 대해 고정 비율로만 확대가 가능한 제약이 있다. 이러한 제약을 개선하기 위해, 본 발명은 가로/세로 확대 비율을 목표 영상의 해상도 보다 크게 설정하여, 제1 머신 러닝 모델을 통해 목표 영상보다 큰 영상을 생성하며, 이후 전통적인 해상도 변형 기법(Bilinear, bicubic interpolation, down-sampling 등)을 추가적으로 적용하여 크기 보간을 수행함으로써 생성된 확대 영상에 대한 미세한 화면비율의 보정이 가능하다.In particular, referring to FIG. 5 , in the case of the conventional deep learning-based screen magnification technique, there is a limitation that can only be enlarged at a fixed ratio for width/length. In order to improve this limitation, the present invention sets the horizontal / vertical magnification ratio to be larger than the resolution of the target image, generates an image larger than the target image through the first machine learning model, and then uses traditional resolution transformation techniques (Bilinear, bicubic interpolation, down-sampling, etc.) is additionally applied to perform size interpolation, so that it is possible to fine-tune the aspect ratio of the generated enlarged image.

<제2 변환><Second Transformation>

한편, 제2 변환을 수행할 경우, 제어부(160)는 이전 및 이후 프레임 영상을 이용하여 대응점 매칭 기반으로 현재 프레임 영상에 새로운 영상 내용을 합성함으로써, 현재 프레임 영상을 확대 변환할 수 있다. 물론, 이와 같이 확대 변환된 현재 프레임 영상이 목표 영상의 해상도에 미달하는 경우, 제어부(160)는 해당 현재 프레임 영상에 대해 생성적 적대 신경망(Generative Adversarial Network; GAN) 기반의 경계 확장 기법(border extension)을 적용함으로써, 해당 현재 프레임 영상에 새로운 영상 내용을 합성할 수 있다.Meanwhile, when the second transformation is performed, the controller 160 may magnify and transform the current frame image by combining new video content with the current frame image based on correspondence point matching using previous and subsequent frame images. Of course, when the resolution of the current frame image enlarged and converted in this way is less than the resolution of the target image, the controller 160 performs a border extension technique based on a generative adversarial network (GAN) for the corresponding current frame image. ), it is possible to synthesize new image contents to the corresponding current frame image.

도 6은 제어부(160)에 의해 수행되는 제2 변환에 대한 순서도를 나타내며, 도 7은 제2 변환에 대한 예시를 나타낸다. 도 7에서, F(N)은 현재 프레임 영상이고, F(N-1)은 이전 프레임 영상이며, F(N+1)은 이후 프레임 영상이다.6 shows a flowchart of the second transformation performed by the control unit 160, and FIG. 7 shows an example of the second transformation. In FIG. 7 , F(N) is a current frame image, F(N−1) is a previous frame image, and F(N+1) is a subsequent frame image.

구체적으로, 도 6을 참조하면, 제어부(160)는 제2 변환을 수행할 경우에 S201 내지 S202을 수행할 수 있다.Specifically, referring to FIG. 6 , the controller 160 may perform S201 to S202 when performing the second conversion.

즉, 제어부(160)는 F(N-1), F(N) 및 F(N+1)을 이용하여, F(N-1) 또는 F(N+1)에 포함된 새로운 영상 내용을 F(N)에 추가함으로써 F'(N)을 합성할 수 있다(S201). 이때, 제어부(160)는 F(N)에서 매칭되는 F(N-1) 및 F(N+1)의 대응점을 찾아 해당 대응점에 따른 F(N-1) 또는 F(N+1)의 일부 영상을 F(N)에 추가하여 F(N)'을 생성할 수 있다. 즉, F(N-1) 및 F(N+1)에서 F(N)와 중첩되는 부분을 제외한 나머지 부분 중의 일부 영상을 F(N)에 추가하는 기하학적 합성을 수행할 수 있다.That is, the controller 160 uses F(N-1), F(N), and F(N+1) to convert new image contents included in F(N-1) or F(N+1) to F By adding to (N), F'(N) can be synthesized (S201). At this time, the control unit 160 finds a corresponding point of F(N-1) and F(N+1) that matches in F(N), and F(N-1) or a part of F(N+1) according to the corresponding corresponding point An image can be added to F(N) to create F(N)′. That is, geometric synthesis may be performed by adding some images among the remaining portions of F(N−1) and F(N+1) to F(N) except for the portion overlapping with F(N).

이후, 만일 F(N) 보다 큰 해상도를 갖는 F'(N)이 목표 영상의 해상도에 미달하는 경우, 제어부(160)는 F'(N)에 대해 GAN 기반의 경계 확장을 수행하여 새로운 영상 내용을 F'(N)에 추가함으로써 F''(N)을 합성할 수 있다(S202). 즉, 제어부(160)는 GAN 기법에 따라 기 학습된 GAN 모델에 F'(N)을 입력함으로써, F'(N)의 가장자리 부분의 영상을 더 확장하는 F''(N)을 생성할 수 있다.Thereafter, if F′(N) having a higher resolution than F(N) does not reach the resolution of the target image, the controller 160 performs GAN-based boundary expansion on F′(N) to create new image content. By adding to F'(N), F''(N) can be synthesized (S202). That is, the controller 160 may generate F'(N) that further expands the image of the edge of F'(N) by inputting F'(N) to the GAN model previously learned according to the GAN technique. there is.

이러한 GAN 기법은 미리 정의된 2개의 네트워크 모델인 생성기(G)와 분류기(D)를 이용한 방식이다. 즉, 분류기(D)를 먼저 학습시킨 후, 생성기(G)를 학습시키며, 서로의 결과를 주고받으면서 반복 학습시키는 방식으로서, 생성기(G)와 분류기(D)가 서로 경쟁하여 조금씩 학습되는 방식이다. 이때, 분류기(D)의 경우, 실제 입력 영상(진짜 데이터)을 입력 받아 해당 입력 영상이 실제(진짜)인 것으로 분류하도록 학습시킨 후, 이와 반대로 생성기(G)에서 생성한 합성 입력 영상(가짜 데이터)을 입력 받아 해당 입력 영상이 합성(가짜)인 것으로 분류하도록 학습될 수 있다.This GAN technique is a method using two predefined network models, a generator (G) and a classifier (D). That is, the classifier (D) is trained first, then the generator (G) is trained, and the generator (G) and the classifier (D) compete with each other to learn little by little. . At this time, in the case of the classifier (D), after receiving the actual input image (real data) and learning to classify the input image as real (real), on the contrary, the synthetic input image (fake data) generated by the generator (G) ) and can be learned to classify the corresponding input image as synthesized (fake).

특히, 생성기(G)의 경우, 어떤 입력 영상을 입력 받아 그 입력 영상의 가장자리 부분을 확장한 영상을 생성하도록 학습될 수 있다. 이때, 생성기(G)에서 생성한 가짜 데이터를 판별기(D)에 입력하고, 가짜 데이터를 진짜라고 분류할 만큼 진짜 데이터와 유사한 데이터를 만들어 내도록 생성기(G)를 학습시킬 수 있다. 이와 같이 충분히 학습된 생성기(G)를 GAN 모델로 사용하여 F'(N)을 입력함으로써 F''(N)을 생성할 수 있다.In particular, in the case of the generator (G), it may be learned to receive an input image and generate an image by extending the edge of the input image. At this time, the fake data generated by the generator (G) is input to the discriminator (D), and the generator (G) can be trained to produce data similar to real data enough to classify the fake data as genuine. F''(N) can be generated by inputting F'(N) using the sufficiently learned generator G as a GAN model.

예를 들어, GAN 기법은 일반적인 GAN 외에도, DCGAN(Deep Convolutional GAN), LSGAN(Least Squares GAN), SGAN(Semi-Supervised GAN), ACGAN(Auxiliary Classifier GAN), WGAN(Wasserstein Generative Adversarial Networks, ConGAN(Continuous GAN), cGAN(Conditional GAN), SNcGAN(Spectral Normalization Conditional GAN), starGAN 등을 포함할 수 있으나, 이에 한정되는 것은 아니다.For example, in addition to general GAN, GAN techniques include DCGAN (Deep Convolutional GAN), LSGAN (Least Squares GAN), SGAN (Semi-Supervised GAN), ACGAN (Auxiliary Classifier GAN), WGAN (Wasserstein Generative Adversarial Networks, ConGAN (Continuous Continuous GAN) GAN), conditional GAN (cGAN), spectral normalization conditional GAN (SNcGAN), starGAN, etc., but is not limited thereto.

<제3 변환><Third Transformation>

다음으로, 제3 변환을 수행할 경우, 제어부(160)는 세로 파지 상태에서 재생 가능하도록 가로 영상에 대해 다양한 영상처리를 수행한다. 즉, 제어부(160)는 가로 영상에 대해 가로 영상의 내용에서 적어도 일부분을 화질 개선하면서 확대하되 세로 영상으로 확대하도록 변환할 수 있다. 가령, 제어부(160)은 가로 영상에 대해 그 주요 컨텐츠 부분을 남기고 나머지를 잘라내어, 세로 영상으로 변경하고, 변경된 세로 영상을 세로 파지 상태의 화면 크기에 맞게 확대 변환할 수 있다.Next, when performing the third conversion, the controller 160 performs various image processing on the horizontal image so that it can be reproduced in a vertical holding state. That is, the controller 160 may convert a horizontal image to enlarge a horizontal image while improving image quality of at least a part of the contents of the horizontal image, but also to enlarge the vertical image. For example, the controller 160 may leave a main content portion of a horizontal image and cut out the remaining portion, change the horizontal image to a vertical image, and enlarge and convert the changed vertical image to fit the screen size in a vertical holding state.

도 8은 제어부(160)에 의해 수행되는 제3 변환에 대한 순서도를 나타낸다.8 shows a flowchart of the third conversion performed by the control unit 160 .

구체적으로, 도 8을 참조하면, 제어부(160)는 제3 변환을 수행할 경우에 S310 내지 S340을 수행할 수 있다. 물론, S310과 S320는 그 순서가 바뀌거나 동시에 병렬 수행될 수도 있다.Specifically, referring to FIG. 8 , the controller 160 may perform S310 to S340 when performing the third transformation. Of course, the order of S310 and S320 may be changed or performed in parallel at the same time.

먼저, 제어부(160)는 가로 영상에 대해 프레임 영상마다 해당 프레임 영상의 컨텐츠를 분석하여 해당 프레임 영상의 일부에 해당하는 재생 영역을 산출한다(S310). 즉, 제어부(160)는 가로 영상에 대해서 영상 컨텐츠 분석을 수행함으로써 재생 영역을 산출할 수 있다.First, the controller 160 analyzes the contents of the corresponding frame image for each frame image of the horizontal image and calculates a reproduction area corresponding to a part of the corresponding frame image (S310). That is, the controller 160 may calculate the play area by performing image content analysis on the horizontal image.

이때, 재생 영역은 가로 영상에 대해 프레임 영상마다 산출되는데, 해당 프레임 영상 중에 일부 영역으로서, 해당 프레임 영상의 주요 컨텐츠에 해당하는 영역이다. 가령, 전자 장치(100)가 세로 파지 상태에서의 재생을 위해 가로 영상 일부를 잘라내어 세로 영상으로 변경할 때, 그 가로 영상에서 해당 재생 영역은 주요 컨텐츠이므로 잘리지 않고 나머지 부분만이 잘려진다. 즉, 재생 영역은 전자 장치(100)에서 가로 영상을 세로 영상으로 변경 시에 세로 영상 내에 포함되어야 하는 영역으로 참조될 수 있다.At this time, the reproduction area is calculated for each frame image of the horizontal image, and is a partial area of the corresponding frame image, and is an area corresponding to the main content of the corresponding frame image. For example, when the electronic device 100 cuts a part of a horizontal image and changes it to a vertical image for playback in a vertical holding state, the corresponding play area in the horizontal image is not cut because it is the main content, and only the remaining portion is cut. That is, when the electronic device 100 changes a horizontal image to a vertical image, the play area may be referred to as an area to be included in the vertical image.

가령, 가로 영상이 1000개의 프레임을 가진다면, 1000개 프레임에 대해 각각 하나씩 적용되는 1000개의 재생 영역에 대한 정보가 산출될 수 있다.For example, if a horizontal image has 1000 frames, information on 1000 play areas applied to each of the 1000 frames may be calculated.

도 9는 제3 변환에서 S310에 대한 보다 상세한 순서도를 나타낸다.9 shows a more detailed flow chart for S310 in the third transformation.

구체적으로, 도 9를 참조하면, 제어부(160)는 가로 영상의 각 프레임 영상에서 객체와 얼굴에 대한 영역을 각각 검출한다(S311). 이때, 제어부(160)는 객체 검출기 및 얼굴 검출기를 이용하여 각 프레임 영상에서 객체에 대한 영역과 얼굴에 대한 영역을 검출할 수 있다. 즉, 객체 검출기는 주요 사물을 검출할 수 있으며, 얼굴 검출기는 주요 등장 인물의 얼굴을 검출할 수 있다. 이때, 각 검출기는 객체 탐지(object detection)에 관련된 다양한 알고리즘을 적용하여 각 영역을 검출하는 것으로서, 메모리(140)에 저장될 수 있다. Specifically, referring to FIG. 9 , the controller 160 detects the object and face regions in each frame image of the horizontal image (S311). In this case, the controller 160 may detect an object area and a face area in each frame image using an object detector and a face detector. That is, the object detector may detect a main object, and the face detector may detect a face of a main character. In this case, each detector detects each region by applying various algorithms related to object detection, and may be stored in the memory 140 .

예를 들어, 각 검출기는 Canny Edger, Harris corner, Haar-like feature, HOG(Histogram of Oriented Gradient), SIFT(Scale Invariant Feature Transform), 또는 머신 러닝 모델 등을 이용한 검출기일 수 있으며, 이에 한정되는 것은 아니다.For example, each detector may be a detector using a Canny Edger, Harris corner, Haar-like feature, Histogram of Oriented Gradient (HOG), Scale Invariant Feature Transform (SIFT), or a machine learning model. not.

이후, 제어부(160)는 검출된 각 영역을 포함하는 영역(이하, “최대 재생 영역”이라 지칭함)을 산출한다(S312). 즉, S311에서 검출된 각 영역은 재생 영역이 될 수 있는 후보 영역에 해당하므로, 이들을 모두 포함하는 최대 재생 영역을 산출한다. 가령, S311에서 검출된 영역이 복수개인 경우, 각 검출된 영역은 최대 재생 영역에 모두 포함될 수 있다.Then, the controller 160 calculates an area (hereinafter, referred to as a "maximum reproduction area") including each detected area (S312). That is, since each region detected in S311 corresponds to a candidate region that can become a reproduction region, the maximum reproduction region including all of them is calculated. For example, if there are a plurality of regions detected in S311, each detected region may be included in the maximum reproduction region.

특히, S311에서 하나의 검출기 대신 객체 검출기 및 얼굴 검출기를 함께 사용하고, S312에서 각 검출 영역을 모두 포함하도록 최대 재생 영역을 산출함으로써, 본 발명은 각 프레임 영상에 대한 영상 컨텐츠 분석의 정확성을 더욱 높일 수 있다.In particular, by using both an object detector and a face detector instead of one detector in S311 and calculating the maximum reproduction area to include all detection areas in S312, the present invention can further improve the accuracy of image content analysis for each frame image. can

이후, 제어부(160)는 산출된 최대 재생 영역에 대한 잘라내기 과정을 통해 세로 영상의 영상비율을 가지는 재생 영역을 각 프레임에서 산출한다(S313). 즉, 전자 장치(100)가 가질 수 있는 세로 파지 상태의 화면비율의 종류(1:1, 4:5, 9:16, 10:21 등)를 고려하여, 해당 화면비율에 맞도록 최대 재생 영역에 대해 잘라내기 과정을 수행한다. 물론, 전자 장치(100)가 가질 수 있는 세로 파지 상태의 화면비율은 세로가 가로보다 긴 화면비율인 것 외에 세로와 가로가 동일한 화면비율일 수도 있다.Thereafter, the controller 160 calculates a playback area having an aspect ratio of the vertical image in each frame through a cropping process for the calculated maximum playback area (S313). That is, considering the type of aspect ratio (1:1, 4:5, 9:16, 10:21, etc.) of the vertical holding state that the electronic device 100 can have, the maximum playback area to fit the corresponding aspect ratio Perform the cut-off process on . Of course, the aspect ratio of the vertical holding state that the electronic device 100 can have may be an aspect ratio in which the vertical and horizontal dimensions are the same, in addition to an aspect ratio in which the vertical axis is longer than the horizontal axis.

예를 들어, 잘라내기 과정은 최대 재생 영역의 일정 영역을 중심으로(가령, 특정 종류의 객체 또는 얼굴에 대한 영역을 중심으로) 그 외의 영역부터 잘라내도록 해당 과정이 수행될 수 있으나, 이에 한정되는 것은 아니다.For example, the cutting process may be performed to cut out from other areas around a certain area of the maximum reproduction area (eg, centered on a specific type of object or area for a face), but is limited thereto. It is not.

이후, 제어부(160)는 가로 영상을 다수의 소단위로 분리하고 영상의 컨텐츠 종류 별로 기 학습되어 메모리(140)에 기 저장된 다수의 AI 모델 중에서 해당 소단위 내 가로 영상의 컨텐츠에 따라 소단위 별로 적용되는 최적 AI 모델을 선택한다(S320).Thereafter, the control unit 160 divides the horizontal image into a plurality of sub-units, and among the plurality of AI models pre-learned for each type of content of the image and pre-stored in the memory 140, the optimum applied for each sub-unit according to the content of the horizontal image within the sub-unit. Select an AI model (S320).

이때, 제어부(160)는 다양한 장면 전환 검출(scene change detection) 알고리즘을 이용하여, 가로 영상을 다수의 소단위로 분리할 수 있다. 가령, 제어부(160)는 이웃한 프레임 간의 차이 값을 계산하고 계산된 차이 값이 특정 기준치 보다 클 경우에 샷 전환이 이루어진 것으로 판단하여, 각 소단위를 구분할 수 있다.In this case, the controller 160 may divide the horizontal image into a plurality of small units using various scene change detection algorithms. For example, the controller 160 may calculate a difference value between neighboring frames, determine that a shot change has been made when the calculated difference value is greater than a specific reference value, and classify each subunit.

물론, 분리된 각 소단위에 포함된 프레임 개수는 일정하지 않을 수 있다. 즉, 제1 소단위의 프레임 개수와 제2 소단위 프레임 개수는 같거나 다를 수 있다. 예를 들어, 소단위는 샷(shot), 씬(scene) 또는 시퀀스(sequence) 등에 따라 나눠질 수 있으나, 이에 한정되는 것은 아니다. 다만, 소단위는 프레임 보다 큰 단위인 것이 바람직할 수 있다. 즉, 각 소단위는 복수개의 프레임을 포함할 수 있다.Of course, the number of frames included in each divided subunit may not be constant. That is, the number of frames of the first sub-unit and the number of frames of the second sub-unit may be the same or different. For example, a small unit may be divided according to a shot, a scene, or a sequence, but is not limited thereto. However, it may be preferable that the small unit is a unit larger than the frame. That is, each subunit may include a plurality of frames.

한편, AI 모델은 변경된 세로 영상을 전자 장치(100)의 화면 크기에 맞게 확대 변환할 때 적용되는 모델이다. 만일, 종래 기술을 적용하면, 변경된 세로 영상이 단순히 일정 비율로 확대 변환되므로, 저해상도 등과 같이 화질 저하가 발생되어 사용자의 시각적 만족도는 낮아질 수밖에 없다. 이를 해결하기 위해, 본 발명에서는 AI 모델을 이용함으로써, 세로 영상으로 확대 변환하되 그 화질도 개선할 수 있다. 즉, AI 모델은 머신 러닝(machine learning) 기법에 따라 학습된 머신 러닝 모델로서, 저화질 영상으로부터 화질 개선된 확대 영상을 생성하도록 학습된 모델이다. Meanwhile, the AI model is a model applied when enlarging and converting the changed vertical image to fit the screen size of the electronic device 100 . If the prior art is applied, since the changed vertical image is simply enlarged and converted at a certain ratio, image quality deterioration such as low resolution occurs, and thus the user's visual satisfaction is inevitably lowered. In order to solve this problem, in the present invention, by using an AI model, it is possible to enlarge and convert a vertical image, but also improve the image quality. That is, the AI model is a machine learning model learned according to a machine learning technique, and is a model learned to generate an enlarged image with improved quality from a low-quality image.

구체적으로, AI 모델은 입력 데이터 및 출력 데이터 쌍(데이터셋)의 학습 데이터를 통해 지도 학습(supervised learning)의 머신 러닝 기법에 따라 학습된 머신 러닝 모델이다. 즉, AI 모델은 저화질 영상의 입력 데이터와 화질 개선된 확대 영상의 출력 데이터를 포함하는 학습 데이터를 이용해 학습될 수 있다. 이에 따라, AI 모델은 입력 데이터인 저화질 영상과 출력 데이터인 화질 개선된 확대 영상 간의 관계에 대한 함수를 가지며, 이를 다양한 파라미터를 이용해 표현한다. Specifically, the AI model is a machine learning model learned according to a machine learning technique of supervised learning through training data of input data and output data pairs (datasets). That is, the AI model may be learned using training data including input data of a low-quality image and output data of an enlarged image with improved quality. Accordingly, the AI model has a function for the relationship between a low-quality image, which is input data, and an enlarged image with improved quality, which is output data, and is expressed using various parameters.

예를 들어, AI 모델은 가중치(Weights)와 편향치(Biases)의 파라미터를 이용해 저화질 영상과 화질 개선된 확대 영상 간의 관계를 표현할 수 있다. 이에 따라, 학습된 AI 모델에 저화질 영상(가령, 변경된 세로 영상)의 입력 데이터가 입력되는 경우, 해당 함수에 따른 화질 개선된 확대 영상(가령, 전자 장치(100)의 화면 크기만큼 확대되되 고화질로 변환된 세로 영상)의 출력 데이터가 출력될 수 있다.For example, the AI model may express a relationship between a low-quality image and an enlarged image with improved quality using parameters of weights and biases. Accordingly, when input data of a low-quality image (eg, a changed vertical image) is input to the learned AI model, an enlarged image with improved quality according to the function (eg, the screen size of the electronic device 100 is enlarged to a high-definition image). Output data of the converted vertical image) may be output.

이때, 화질 개선 종류는 저화질 영상에 비해 해상도 증가, 노이즈 제거 및 다이나믹 레인지 증가 중 적어도 하나일 수 있다. 즉, AI 모델은 저화질 영상이 입력되면, 해상도 증가, 노이즈 제거 및 다이나믹 레인지 증가 중 어느 하나의 화질 개선 영상을 출력할 수 있다. 다만, 세로 영상이 확대 변환되어야 하므로, 해상도 증가는 반드시 포함되는 것이 바람직할 수 있다. 가령, AI 모델은 저화질 영상이 입력되면, 해상도 증가의 화질 개선 영상을 출력하거나, 해상도 증가 및 노이즈 제거의 화질 개선 영상을 출력하거나, 해상도 증가 및 다이나믹 레인지 증가의 화질 개선 영상을 출력할 수 있다.In this case, the quality improvement type may be at least one of resolution increase, noise removal, and dynamic range increase compared to the low-quality image. That is, when a low-quality image is input, the AI model may output one of image quality improvement among resolution increase, noise removal, and dynamic range increase. However, since the vertical image needs to be enlarged and converted, it may be desirable to necessarily include an increase in resolution. For example, when a low-quality image is input, the AI model may output a quality-improved image of increased resolution, an image of improved image quality of increased resolution and noise removal, or an image of improved image quality of increased resolution and increased dynamic range.

한편, AI 모델은 복수개가 메모리(140) 또는 전자 장치(100)가 접속하는 다른 장치에 저장될 수 있다. 이때, 각 AI 모델은 세로 영상이 그 컨텐츠 종류에 따라 학습된 모델일 수 있다. 예를 들어, 영상의 컨텐츠 종류는 스포츠(sports), 드라마(drama), 게임(game), 뉴스(news), 교육(education), 예능(entertainment) 등일 수 있으나, 이에 한정되는 것은 아니다.Meanwhile, a plurality of AI models may be stored in the memory 140 or another device to which the electronic device 100 accesses. In this case, each AI model may be a model in which vertical images are learned according to the content type. For example, the content type of video may be sports, drama, game, news, education, entertainment, etc., but is not limited thereto.

즉, 각 AI 모델은 서로 다른 종류의 컨텐츠를 가지는 영상을 기반으로 학습될 수 있다. 이와 같이 영상 컨텐츠 종류에 따라 다양하게 적용되는 다수의 AI 모델을 제공함으로써, 변경된 세로 영상을 확대 변환 시에 해당 화질 개선의 효율을 더욱 향상시킬 수 있는 이점이 있다.That is, each AI model can be learned based on images having different types of content. In this way, by providing a plurality of AI models that are applied in various ways according to the type of image content, there is an advantage in that the efficiency of image quality improvement can be further improved when the changed vertical image is enlarged and converted.

가령, 제어부(160)는 가로 영상을 샷(shot) 단위로 분리하고, 분리된 샷(shot) 내에 포함된 연속된 프레임 영상에 대한 정보를 입력으로 받아 샷(shot) 별로 최적 AI 모델을 선택할 수 있다. For example, the control unit 160 divides horizontal images into shot units, receives information on continuous frame images included in the separated shots as an input, and selects an optimal AI model for each shot. there is.

도 10은 S320에서 최적 AI 모델을 선택하는 일 예를 나타낸다.10 shows an example of selecting an optimal AI model in S320.

도 10을 참조하면, 제어부(160)는 분류기(classifier)를 이용하여 최적 AI 모델을 선택할 수 있다. 즉, 분류기는 입력 데이터 및 출력 데이터 쌍(데이터셋)의 학습 데이터를 통해 지도 학습(supervised learning)의 머신 러닝 기법에 따라 학습된 제2 머신 러닝 모델이다.Referring to FIG. 10 , the controller 160 may select an optimal AI model using a classifier. That is, the classifier is a second machine learning model learned according to a machine learning technique of supervised learning through learning data of input data and output data pairs (datasets).

이때, 분류기는 연속된 프레임 영상의 입력 데이터와 이들 프레임 영상의 컨텐츠 종류(예를 들어, 스포츠, 드라마, 게임, 뉴스, 교육, 예능 등)에 대한 출력 데이터를 포함하는 학습 데이터를 이용해 학습될 수 있다. 이에 따라, 분류기는 입력 데이터인 연속된 프레임 영상과 출력 데이터인 컨텐츠 종류 간의 관계에 대한 함수를 가지며, 이를 다양한 파라미터를 이용해 표현한다. At this time, the classifier may be learned using learning data including input data of consecutive frame images and output data for the content type (eg, sports, drama, game, news, education, entertainment, etc.) of these frame images. there is. Accordingly, the classifier has a function for a relationship between a continuous frame image as input data and a content type as output data, and expresses this function using various parameters.

예를 들어, 분류기는 가중치(Weights)와 편향치(Biases)의 파라미터를 이용해 연속된 프레임 영상과 이들 프레임 영상의 컨텐츠 종류 간의 관계를 표현할 수 있다. 이에 따라, 도 10에 도시된 바와 같이, 학습된 분류기에 어떤 소단위 내의 연속된 프레임 영상(F(t-1), F(t), F(t+1))의 입력 데이터가 입력되는 경우, 해당 함수에 따른 해당 소단위의 영상들(F(t-1), F(t), F(t+1))의 컨텐츠 종류에 대한 출력 데이터가 출력될 수 있다.For example, the classifier may express a relationship between continuous frame images and content types of these frame images using parameters of weights and biases. Accordingly, as shown in FIG. 10, when input data of consecutive frame images (F(t-1), F(t), F(t+1)) within a certain subunit is input to the learned classifier, Output data for the content type of the sub-unit images (F(t-1), F(t), F(t+1)) according to the corresponding function may be output.

예를 들어, AI 모델, 제1 머신 러닝 모델 및 제2 머신 러닝 모델(분류기)에 적용되는 머신 러닝 기법은 Artificial neural network, Boosting, Bayesian statistics, Decision tree, Gaussian process regression, Nearest neighbor algorithm, Support vector machine, Random forests, Symbolic machine learning, Ensembles of classifiers, 또는 Deep learning 등을 포함할 수 있으나, 이에 한정되는 것은 아니다.For example, machine learning techniques applied to the AI model, the first machine learning model and the second machine learning model (classifier) include Artificial neural network, Boosting, Bayesian statistics, Decision tree, Gaussian process regression, Nearest neighbor algorithm, Support vector machine, random forests, symbolic machine learning, ensembles of classifiers, or deep learning, but is not limited thereto.

특히, AI 모델, 제1 머신 러닝 모델 및 제2 머신 러닝 모델이 딥 러닝(Deep learning) 기법에 의해 학습된 딥 러닝 모델일 경우, 입력 데이터와 출력 데이터 간의 관계를 다수의 층(레이어)으로 표현하며, 이러한 다수의 표현층을 “신경망(neural network)”라 지칭하기도 한다. 이러한 딥 러닝 모델은 본 발명과 같은 영상처리 분야에서 고무적인 성능을 가질 수 있다.In particular, when the AI model, the first machine learning model, and the second machine learning model are deep learning models learned by deep learning techniques, the relationship between input data and output data is expressed in multiple layers (layers) These multiple expression layers are also referred to as “neural networks”. Such a deep learning model may have impressive performance in the field of image processing such as the present invention.

예를 들어, 딥 러닝 기법은 Deep Neural Network(DNN), Convolutional Neural Network(CNN), Recurrent Neural Network(RNN), Restricted Boltzmann Machine(RBM), Deep Belief Network(DBN), Deep Q-Networks 등을 포함할 수 있으나, 이에 한정되는 것은 아니다.For example, deep learning techniques include Deep Neural Network (DNN), Convolutional Neural Network (CNN), Recurrent Neural Network (RNN), Restricted Boltzmann Machine (RBM), Deep Belief Network (DBN), Deep Q-Networks, etc. It can be done, but is not limited thereto.

특히, 소단위(예를 들어, 샷 등) 내의 영상에 대해 새롭게 AI 모델을 생성하려는 경우, 그 학습 과정이 오래 걸리므로 실시간 전송에 적합하지 않다. 이에 따라, 본 발명에서는 영상의 컨텐츠 종류에 따라 미리 학습해 둔 다수의 AI 모델(즉, AI 모델 DB)을 메모리(140) 또는 별도의 데이터베이스 장치에 기 저장하고, 제어부(160)가 현재 소단위에 적합한 최적 AI 모델을 AI 모델 DB에서 검색하여 사용한다. 즉, 제어부(160)는 어떤 소단위의 연속된 프레임 영상의 입력에 대해 분류기가 출력하는 컨텐츠 종류에 매칭되는 AI 모델을 기 저장된 AI 모델 DB에서 검색하여 검색된 AI 모델을 해당 소단위에 적용되는 최적 AI 모델로 선택할 수 있다. 그 결과, 본 발명은 영상의 실시간 재생에 보다 부합될 수 있는 이점이 있다.In particular, when trying to create a new AI model for an image in a small unit (eg, a shot, etc.), the learning process takes a long time, so it is not suitable for real-time transmission. Accordingly, in the present invention, a plurality of AI models (ie, AI model DB) learned in advance according to the type of content of the image are previously stored in the memory 140 or a separate database device, and the control unit 160 is currently Search for and use the optimal AI model from the AI model DB. That is, the control unit 160 searches the pre-stored AI model DB for an AI model that matches the type of content output by the classifier for the input of a continuous frame image of a certain sub-unit, and the searched AI model is an optimal AI model applied to the sub-unit. can be selected with As a result, the present invention has the advantage of being more suitable for real-time reproduction of images.

또한, AI 모델이 영상의 컨텐츠 종류에 맞게 학습된 것이므로, 동일 컨텐츠 종류의 일련의 장면에 대한 단위인 샷 단위 또는 씬 단위로 나눠지는 경우가 보다 효과적일 수 있다.In addition, since the AI model is learned according to the type of content of the video, it may be more effective to divide the AI model by shot unit or scene unit, which is a unit for a series of scenes of the same content type.

이후, 제어부(160)는 S310에서 산출된 재생 영역을 기반으로 가로 영상에서 세로 영상을 프레임 영상마다 추출한다(S330). 즉, 가로 영상의 각 프레임 영상에서 해당 프레임의 재생 영역에 해당하는 부분을 남기고 그 나머지를 제거함으로써 해당 프레임의 세로 영상을 추출할 수 있다.Thereafter, the controller 160 extracts a vertical image for each frame image from the horizontal image based on the reproduction area calculated in S310 (S330). That is, a vertical image of a corresponding frame may be extracted by leaving a portion corresponding to the reproduction area of the corresponding frame in each frame image of the horizontal image and removing the remainder.

제어부(160)는 가로 영상의 각 프레임 영상에서 해당 프레임의 재생 영역에 해당하는 부분을 남기고 그 나머지를 제거함으로써 해당 프레임의 세로 영상을 추출할 수 있다.The controller 160 may extract a vertical image of a corresponding frame by leaving a portion corresponding to the reproduction area of the corresponding frame in each frame of the horizontal image and removing the remainder.

이후, 제어부(160)는 S320에서 선택된 최적 AI 모델 정보에 따른 AI 모델을 소단위 별로 적용하여, S330에서 추출된 세로 영상을 확대 변환한다(S340). 즉, 제어부(160) S330에서 분리된 저화질 영상인 세로 영상을 AI 모델에 입력한다. 그 결과, AI 모델은 내장된 함수에 따른 화질 개선된 확대 영상, 즉 전자 장치(100)의 디스플레이(140)의 크기만큼 확대되되 고화질의 세로 영상을 출력할 수 있다. Thereafter, the controller 160 enlarges and transforms the vertical image extracted in S330 by applying the AI model according to the optimal AI model information selected in S320 for each subunit (S340). That is, the vertical image, which is a low-quality image separated in S330 of the control unit 160, is input to the AI model. As a result, the AI model can output an enlarged image with improved quality according to the built-in function, that is, a high-quality vertical image enlarged by the size of the display 140 of the electronic device 100.

물론, 필요할 경우, 제어부(160)는 AI 모델에서 출력되면서 확대 변환된 고화질의 세로 영상의 일부를 자르는 과정의 영상처리를 수행하거나 해상도 변형 기법에 따른 크기 보간을 수행할 수도 있다. 이는 확대 변환된 고화질의 세로 영상이 전자 장치(100)의 디스플레이(140) 보다 클 경우에 수행될 수 있다. 예를 들어, 해상도 변형 기법은 Bilinear, bicubic interpolation, down-sampling 등일 수 있으나, 이에 한정되는 것은 아니다.Of course, if necessary, the controller 160 may perform image processing in the process of cropping a part of the high-definition vertical image that has been enlarged and converted while being output from the AI model, or may perform size interpolation according to a resolution transformation technique. This may be performed when the enlarged and converted high-quality vertical image is larger than the display 140 of the electronic device 100 . For example, the resolution transformation technique may be bilinear, bicubic interpolation, down-sampling, etc., but is not limited thereto.

도 11은 세로 파지 상태의 전자 장치에서 가로 영상을 재생하는 예를 비교하여 나타낸다. 즉, 좌측이 종래 기술에 따라 재생되는 영상이며, 우측이 본 발명에 따라 재생되는 영상이다.11 compares and shows an example of reproducing a horizontal image in an electronic device in a vertical holding state. That is, the left side is an image reproduced according to the prior art, and the right side is an image reproduced according to the present invention.

도 11을 참조하면, 가로 영상을 세로 파지 상태의 단말에서 재생 시, 본 발명은 종래 기술과 달리, 레터 박스 또는 필러를 최소화할 수 있을 뿐 아니라, 그 영상의 주요 객체를 포함하면서 확대하되, 확대하면서 발생하는 저화질의 문제를 개선한 고화질의 세로 영상으로 재생할 수 있다. 그 결과, 본 발명은 사용자의 시각적 만족도를 높일 수 있는 이점이 있다. Referring to FIG. 11, when a horizontal image is played on a terminal in a vertical holding state, the present invention, unlike the prior art, can not only minimize the letter box or pillar, but also enlarge it while including the main object of the image, It is possible to reproduce a high-definition vertical video that has improved the low-quality problem that occurs while playing. As a result, the present invention has the advantage of increasing the user's visual satisfaction.

즉, 종래 기술(도 11의 좌측)에서는 화면의 25%를 차지하는 반면, 본 발명의 경우(도 11의 우측) 화면의 전체를 활용할 수 있기 때문에 시각적 만족도가 높고, 노출 효과도 커 재생 영상이 광고일 경우에 그 광고 효과가 큰 이점이 있다.That is, while the prior art (left side of FIG. 11) occupies 25% of the screen, in the case of the present invention (right side of FIG. 11), the entire screen can be utilized, so the visual satisfaction is high and the exposure effect is large, so that the playback video is advertised. In one case, the advertising effect has a great advantage.

도 12는 본 발명의 일 실시예에 따른 방법의 S20에서 전자 장치(100)가 가로 파지 상태일 경우에 가로 영상에 대한 영상처리의 보다 상세한 순서도를 나타낸다.FIG. 12 shows a more detailed flowchart of image processing for a horizontal image when the electronic device 100 is in a horizontal grip state in S20 of the method according to an embodiment of the present invention.

한편, 전자 장치(100)가 가로 파지 상태일 경우에 가로 영상에 대한 영상처리를 수행할 경우, 도 12에 도시된 바와 같이, 제어부(160)는 S20에서 S211 내지 S214를 수행할 수 있다. Meanwhile, when image processing is performed on a horizontal image when the electronic device 100 is in a horizontal holding state, the controller 160 may perform S211 to S214 in S20 as shown in FIG. 12 .

즉, 제어부(160)는 검은 영상에 대한 필요 여부, 즉 필러 박스(pillar box) 또는 레터 박스(letter box)의 영역에 대한 필요 여부를 결정한다(S211). 즉, 전자 장치(100)의 파지 상태에 따른 디스플레이(130)의 화면비율, 가로 영상이 가지는 영상비율을 비교함으로써, 필러 박스 또는 레터 박스의 영역에 대한 필요 여부를 결정할 수 있다. That is, the controller 160 determines whether a black image is needed, that is, whether a pillar box or letter box area is needed (S211). That is, it is possible to determine whether a pillar box or letter box area is needed by comparing the aspect ratio of the display 130 according to the holding state of the electronic device 100 and the aspect ratio of the horizontal image.

만일, S211의 결과, 검은 영상 영역이 필요한 경우(즉, 가로 파지 상태에서 가로 영상에 필러 박스 또는 레터 박스의 영역을 채워서 디스플레이(130)에 재생해야 하는 경우), 제어부(160)는 가로 영상에 대해 상술한 제2 변환을 수행한다(S212).If, as a result of S211, if a black image area is required (that is, a case in which a pillar box or letter box area of a horizontal image needs to be filled in and reproduced on the display 130 in a horizontal gripping state), the controller 160 controls the horizontal image The above-described second conversion is performed on (S212).

반면, S211의 결과, 검은 영상 영역이 불필요한 경우(즉, 가로 파지 상태에서 가로 영상에 필러 박스 또는 레터 박스의 영역을 채울 필요 없이 가로 영상을 디스플레이(130)의 모든 화소에 재생할 수 있는 경우), 제어부(160)는 가로 영상에 대해 상술한 제1 변환을 수행한다(S214). On the other hand, as a result of S211, when the black image area is unnecessary (ie, when the horizontal image can be reproduced in all pixels of the display 130 without filling the pillar box or letter box area of the horizontal image in the horizontal gripping state), The controller 160 performs the above-described first transformation on the horizontal image (S214).

한편, S212를 수행한 후, 제어부(160)는 제2 변환이 수행된 가로 영상의 해상도와 디스플레이(130)의 가로 파지 상태의 화면 해상도를 비교하여, 해당 가로 영상의 해상도가 부족한지 여부를 확인한다(S213).Meanwhile, after performing S212, the controller 160 compares the resolution of the horizontal image on which the second conversion has been performed with the screen resolution of the display 130 in a horizontal holding state, and determines whether the resolution of the corresponding horizontal image is insufficient. Do (S213).

만일, S213의 결과, 디스플레이(130)의 가로 파지 상태의 화면 해상도가 제2 변환이 수행된 가로 영상의 해상도 보다 커서 해당 가로 영상의 해상도가 부족하다면, 제어부(160)는 제2 변환이 수행된 가로 영상에 대해 상술한 제1 변환을 추가 수행하여 가로 영상의 고해상화를 도모한다. 그 결과, 제어부(160)는 디스플레이(130)에서 제2 변환 및 제1 변환이 차례로 수행된 가로 영상을 고해상도로 재생시킬 수 있다.If, as a result of S213, the screen resolution of the display 130 in the horizontal holding state is greater than the resolution of the horizontal image on which the second conversion is performed, if the resolution of the corresponding horizontal image is insufficient, the controller 160 determines that the second conversion is performed. The above-described first transformation is additionally performed on the horizontal image to achieve high resolution of the horizontal image. As a result, the controller 160 can reproduce the horizontal image on which the second transformation and the first transformation are sequentially performed on the display 130 in high resolution.

반면, S213의 결과, 제2 변환이 수행된 가로 영상의 해상도가 디스플레이(130)의 가로 파지 상태의 화면 해상도가 보다 커서 해당 가로 영상의 해상도가 부족하지 않다면, 제어부(160)는 제2 변환이 수행된 가로 영상을 고해상도로 재생시킬 수 있다.On the other hand, as a result of S213, if the resolution of the horizontal image on which the second conversion is performed is greater than the resolution of the screen in the horizontal holding state of the display 130, and the resolution of the corresponding horizontal image is not insufficient, the controller 160 determines that the second conversion The performed horizontal image can be reproduced in high resolution.

물론, 상술한 S211 내지 S214는 전자 장치(100)가 세로 파지 상태일 경우에 세로 영상에 대한 영상처리를 수행할 경우에도 동일하게 S20에서 수행될 수 있다. 다만 이 경우, 상술한 S211 내지 S214의 내용에서, 가로 영상은 세로 영상으로 대체되고, 가로 파지 상태는 세로 파지 상태로 대체될 수 있다.Of course, the above-described S211 to S214 may be equally performed in S20 even when image processing is performed on a vertical image when the electronic device 100 is in a vertical holding state. However, in this case, in the above-described contents of S211 to S214, the horizontal image may be replaced with the vertical image, and the horizontal holding state may be replaced with the vertical holding state.

도 13는 본 발명의 일 실시예에 따른 방법의 S20에서 전자 장치(100)가 세로 파지 상태일 경우에 가로 영상에 대한 영상처리의 보다 상세한 순서도를 나타낸다.13 shows a more detailed flowchart of image processing for a horizontal image when the electronic device 100 is in a vertical holding state in S20 of the method according to an embodiment of the present invention.

또한, 전자 장치(100)가 세로 파지 상태일 경우에 가로 영상에 대한 영상처리를 수행할 경우, 도 13에 도시된 바와 같이, 제어부(160)는 S20에서 S221 내지 S223을 수행할 수 있다. In addition, when image processing is performed on a horizontal image when the electronic device 100 is in a vertical holding state, the controller 160 may perform S221 to S223 in S20 as shown in FIG. 13 .

즉, 제어부(160)는 가로 영상에 대해 상술한 제3 변환을 수행한다(S221). That is, the control unit 160 performs the above-described third transformation on the horizontal image (S221).

이후, 제어부(160)는 제3 변환이 수행된 세로 영상의 해상도와 디스플레이(130)의 세로 파지 상태의 화면 해상도를 비교하여, 해당 세로 영상의 해상도가 부족한지 여부를 확인한다(S222).Thereafter, the controller 160 compares the resolution of the vertical image for which the third conversion has been performed with the screen resolution of the display 130 in a vertically held state, and determines whether or not the resolution of the vertical image is insufficient (S222).

만일, S222의 결과, 디스플레이(130)의 세로 파지 상태의 화면 해상도가 제3 변환이 수행된 세로 영상의 해상도 보다 커서 해당 세로 영상의 해상도가 부족하다면, 제어부(160)는 제3 변환이 수행된 세로 영상에 대해 상술한 제1 변환을 추가 수행하여 세로 영상의 고해상화를 도모한다. 그 결과, 제어부(160)는 디스플레이(130)에서 제3 변환 및 제1 변환이 차례로 수행된 세로 영상을 고해상도로 재생시킬 수 있다.If, as a result of S222, if the screen resolution of the vertical holding state of the display 130 is greater than the resolution of the vertical image to which the third conversion has been performed, and the resolution of the corresponding vertical image is insufficient, the controller 160 determines that the third conversion is performed. The above-described first transformation is additionally performed on the vertical image to achieve high resolution of the vertical image. As a result, the controller 160 can reproduce the vertical image on which the third conversion and the first conversion are sequentially performed on the display 130 at high resolution.

반면, S222의 결과, 제3 변환이 수행된 세로 영상의 해상도가 디스플레이(130)의 세로 파지 상태의 화면 해상도가 보다 커서 해당 세로 영상의 해상도가 부족하지 않다면, 제어부(160)는 제3 변환이 수행된 세로 영상을 고해상도로 재생시킬 수 있다.On the other hand, as a result of S222, if the resolution of the vertical image on which the third conversion has been performed is greater than the resolution of the vertical image in the vertical holding state of the display 130, the controller 160 determines that the third conversion is performed. The performed vertical image can be reproduced in high resolution.

상술한 바와 같이 구성되는 본 발명은 영상의 영상비율과 이를 재생하는 전자 장치의 화면비율이 다를 때, 검은 영상(필러 박스 또는 레터 박스)를 삽입하는 것이 아니라, 영상의 영상비율이 조정되도록 처리함으로써 이를 재생하는 전자 장치의 화면비율에 해당 영상을 적합하게 맞출 수 있는 이점이 있다. 또한, 본 발명은 전자 장치의 파지 상태와 영상의 영상비율에 따라 제1 내지 제3 변환 중 적어도 하나의 변환을 적응적으로 수행함으로써 영상의 영상비율에 대한 변환을 효과적으로 수행할 수 있을 뿐만 아니라, 제2 또는 제3 변환을 수행한 후에도 추가적으로 제1 변환을 수행함으로써 변환된 영상의 고해상도화를 도모할 수 있는 이점 있다. 또한, 본 발명은 영상 재생 시, 레터 박스 또는 필러 박스를 최소화할 수 있을 뿐 아니라, 그 영상의 주요 객체를 포함하면서 확대하되, 확대하면서 발생하는 저화질의 문제를 개선한 고화질의 영상으로 재생할 수 있으므로, 사용자의 시각적 만족도를 높일 수 있는 이점이 있다. 또한, 본 발명은 전자 장치의 화면을 최대한 활용하여 재생할 수 있어 시청 몰입감의 증대될 뿐 아니라, 노출 효과도 커, 재생 영상이 광고일 경우에 그 광고 효과가 큰 이점이 있다. 또한, 본 발명은 다양한 화질 개선 기법의 적용 가능하므로, 주문형 비디오(video on demand; VOD) 뿐 아니라 실시간 스트리밍에도 적용 가능한 이점이 있다.The present invention configured as described above does not insert a black image (pillar box or letter box) when the aspect ratio of the image and the aspect ratio of the electronic device that reproduces the image are different, but adjusts the aspect ratio of the image. There is an advantage in that a corresponding image can be appropriately matched to the aspect ratio of an electronic device that reproduces the image. In addition, the present invention not only effectively converts the aspect ratio of an image by adaptively performing at least one of the first to third conversions according to the holding state of the electronic device and the aspect ratio of the image, By additionally performing the first transformation after performing the second or third transformation, there is an advantage in that the converted image can be improved in resolution. In addition, the present invention can not only minimize the letter box or pillar box when reproducing an image, but also enlarge it while including the main object of the image, but reproduce the low-quality problem that occurs while enlarging it as a high-definition image. , there is an advantage of increasing the user's visual satisfaction. In addition, since the screen of the electronic device can be reproduced by maximally utilizing the screen of the electronic device, the viewing immersion is increased, and the exposure effect is great, so that the advertisement effect is great when the reproduced image is an advertisement. In addition, since the present invention can be applied to various picture quality improvement techniques, there is an advantage that it can be applied to real-time streaming as well as video on demand (VOD).

본 발명의 상세한 설명에서는 구체적인 실시 예에 관하여 설명하였으나 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되지 않으며, 후술되는 청구범위 및 이 청구범위와 균등한 것들에 의해 정해져야 한다.In the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention is not limited to the described embodiments, and should be defined by the following claims and equivalents thereof.

100: 전자 장치 110: 입력부
120: 통신부 130: 디스플레이
140: 메모리 150: 센서부
160: 제어부
100: electronic device 110: input unit
120: communication unit 130: display
140: memory 150: sensor unit
160: control unit

Claims (20)

영상을 변환하여 재생하는 전자 장치로서,
상기 전자 장치의 파지 상태에 관련된 센서 값을 감지하는 센서부; 및
상기 센서 값에 따른 파지 상태 및 상기 영상의 영상비율에 따라, 상기 영상에 대한 변환을 수행하는 제어부;를 포함하며,
상기 제어부는,
상기 영상의 내용을 유지하면서 화질을 개선하는 제1 변환, 상기 영상의 내용에 새로운 영상 내용을 추가 합성하는 제2 변환, 및 상기 영상의 내용에서 적어도 일부분을 확대하되 세로가 더 긴 영상비율의 세로 영상으로 확대하면서 화질을 개선하는 제3 변환 중 적어도 하나의 변환을 수행하는 전자 장치.
An electronic device that converts and reproduces an image,
a sensor unit sensing a sensor value related to a holding state of the electronic device; and
A control unit that converts the image according to a holding state according to the sensor value and an aspect ratio of the image;
The control unit,
A first transformation that improves the image quality while maintaining the content of the video, a second transformation that adds and synthesizes new video content to the content of the video, and enlarges at least a part of the content of the video, but has a longer aspect ratio. An electronic device that performs at least one of the third transformations for improving image quality while enlarging an image.
제1항에 있어서,
상기 제어부는,
가로가 더 긴 화면비율의 가로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행하며,
세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로 영상에 대해 상기 제3 변환을 수행하고,
상기 가로 파지 상태 또는 상기 세로 파지 상태인 경우에 세로가 더 긴 영상비율의 세로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행하는 전자 장치.
According to claim 1,
The control unit,
Performing the first conversion or the second conversion on a horizontal image having a longer horizontal aspect ratio in a horizontal holding state of a longer horizontal aspect ratio;
Performing the third conversion on a horizontal image in the case of a vertical holding state of a longer vertical aspect ratio;
An electronic device that performs the first conversion or the second conversion on a vertical image having a longer vertical aspect ratio in the horizontal holding state or the vertical holding state.
제2항에 있어서,
상기 제어부는,
상기 가로 파지 상태에서 상기 가로 영상에 필러 박스(pillar box) 또는 레터 박스(letter box)의 영역을 채워서 재생해야 하는 경우에 상기 가로 영상에 대해 상기 제2 변환을 수행하며, 필러 박스(pillar box) 또는 레터 박스(letter box)의 영역이 불필요한 경우에 상기 가로 영상에 대해 상기 제1 변환을 수행하는 전자 장치.
According to claim 2,
The control unit,
In the horizontal holding state, when the horizontal image needs to be reproduced by filling a pillar box or letter box area, the second conversion is performed on the horizontal image, and the pillar box Alternatively, the electronic device that performs the first transformation on the horizontal image when a letter box area is unnecessary.
제1항에 있어서,
상기 제어부는 제1 변환의 수행 시,
상기 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환하는 전자 장치.
According to claim 1,
When the control unit performs the first conversion,
After generating an enlarged image by applying a pre-learned machine learning model to enlarge the image to an image larger than the screen size of the gripping state while improving the image quality, size interpolation is performed on the enlarged image to obtain the gripping state An electronic device that converts to an aspect ratio of .
제1항에 있어서,
상기 제어부는 상기 제2 변환의 수행 시,
이전 및 이후 프레임 영상을 이용하여 대응점 매칭 기반으로 현재 프레임 영상에 이전 또는 이후 프레임 영상에 포함된 새로운 영상 내용을 합성하는 전자 장치.
According to claim 1,
When the controller performs the second conversion,
An electronic device that synthesizes new image contents included in previous or subsequent frame images with a current frame image based on correspondence point matching using previous and subsequent frame images.
제5항에 있어서,
상기 제어부는 상기 제2 변환의 수행 시,
상기 합성된 현재 프레임 영상이 목표 영상의 해상도에 미달하는 경우에 해당 현재 프레임 영상에 생성적 적대 신경망(Generative Adversarial Network; GAN) 기반의 경계 확장을 수행하여 새로운 영상 내용을 합성하는 전자 장치.
According to claim 5,
When the controller performs the second conversion,
An electronic device for synthesizing new image content by performing boundary expansion based on a generative adversarial network (GAN) on the current frame image when the synthesized current frame image does not meet the resolution of the target image.
제5항 또는 제6항에 있어서,
상기 제어부는 상기 제2 변환의 수행 시,
상기 합성된 현재 프레임 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환하는 전자 장치.
According to claim 5 or 6,
When the controller performs the second conversion,
To the synthesized current frame image, an enlarged image is generated by applying a pre-learned machine learning model to enlarge an image larger than the screen size of the holding state while improving image quality, and then size interpolation is performed on the enlarged image An electronic device that converts the aspect ratio of the holding state by using
제1항에 있어서,
상기 제어부는 세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제3 변환을 수행하되, 상기 제3 변환의 수행 시,
상기 가로 영상의 프레임 영상마다 해당 프레임 영상의 컨텐츠를 분석하여 해당 프레임 영상의 일부에 해당하는 재생 영역을 산출하는 과정과,
상기 가로 영상을 다수의 소단위로 분리하고 영상의 컨텐츠 종류 별로 기 학습된 다수의 AI(artificial intelligence) 모델 중에서 해당 소단위 내 가로 영상의 컨텐츠에 따라 소단위 별로 적용되는 최적 AI 모델을 선택하는 과정과,
상기 재생 영역을 기반으로 상기 가로 영상에서 세로가 더 긴 영상비율의 세로 영상을 프레임 영상마다 추출하는 과정과,
선택된 최적 AI 모델을 소단위 별로 적용하여 추출된 세로 영상을 확대 변환하는 과정을 각각 수행하는 전자 장치.
According to claim 1,
The control unit performs the third conversion on a horizontal image having a longer horizontal aspect ratio when the vertical holding state has a longer vertical aspect ratio, and when performing the third conversion,
analyzing the content of the corresponding frame image for each frame image of the horizontal image and calculating a playback area corresponding to a part of the corresponding frame image;
A process of dividing the horizontal image into a plurality of sub-units and selecting an optimal AI model applied to each sub-unit according to the content of the horizontal video in the sub-unit from among a plurality of AI (artificial intelligence) models previously learned for each content type of the image;
extracting, for each frame image, a vertical image having a longer vertical aspect ratio in the horizontal image based on the play area;
An electronic device that each performs a process of enlarging and converting the extracted vertical image by applying the selected optimal AI model for each subunit.
제8항에 있어서,
상기 제어부는 상기 산출하는 과정에서, 각 프레임 영상에서 객체와 얼굴에 대한 영역을 각각 검출하여 검출된 영역을 포함하는 최대 재생 영역을 산출하며, 산출된 최대 재생 영역에 대한 잘라내기 과정을 통해 가로 보다 세로가 더 긴 제2 영상비율을 가지는 적어도 하나의 상기 재생 영역을 산출하는 전자 장치.
According to claim 8,
In the calculation process, the control unit detects areas for objects and faces in each frame image, calculates a maximum reproduction area including the detected areas, and cuts the calculated maximum reproduction area to obtain a horizontally wider area. An electronic device that calculates at least one play area having a second aspect ratio that is longer in height.
제9항에 있어서,
상기 최대 재생 영역은 상기 검출된 영역이 복수개인 경우에 상기 각 검출된 영역을 모두 포함하는 영역인 전자 장치.
According to claim 9,
The maximum reproduction area is an area including all of the detected areas when there are a plurality of the detected areas.
제8항에 있어서,
상기 각 AI 모델은 머신 러닝(machine learning) 기법에 따라 서로 다른 컨텐츠의 저화질 영상으로부터 화질 개선된 확대 영상을 생성하도록 학습된 모델인 전자 장치.
According to claim 8,
Each of the AI models is a model learned to generate an enlarged image with improved quality from low-quality images of different contents according to a machine learning technique.
제11항에 있어서,
상기 최적 AI 모델은 해상도 증가, 노이즈 제거 및 다이나믹 레인지 증가 중 적어도 하나의 화질 개선을 수행하는 전자 장치.
According to claim 11,
The optimal AI model is an electronic device that improves at least one of image quality among resolution increase, noise removal, and dynamic range increase.
제8항에 있어서,
상기 제어부는 상기 제3 변환에 따라 확대된 영상을 디스플레이의 모든 화소에서 재생하도록 제어하는 전자 장치.
According to claim 8,
The control unit controls to reproduce an image enlarged according to the third conversion in all pixels of a display.
전자 장치에서 영상을 변환하여 재생하기 위한 방법으로서,
상기 전자 장치의 파지 상태에 관련된 센서 값을 감지하는 단계; 및
상기 센서 값에 따른 파지 상태 및 상기 영상의 영상비율에 따라, 상기 영상에 대한 변환을 수행하는 단계;를 포함하며,
상기 변환을 수행하는 단계는,
상기 영상의 내용을 유지하면서 화질을 개선하는 제1 변환을 수행하는 단계;
상기 영상의 내용에 새로운 영상 내용을 추가 합성하는 제2 변환을 수행하는 단계; 및
상기 영상의 내용에서 적어도 일부분을 확대하면서 화질을 개선하는 제3 변환을 수행하는 단계;
중에 적어도 하나의 단계를 포함하는 방법.
As a method for converting and reproducing an image in an electronic device,
sensing a sensor value related to a holding state of the electronic device; and
Including; performing conversion on the image according to the gripping state according to the sensor value and the aspect ratio of the image;
The step of performing the conversion is,
performing a first transformation to improve picture quality while maintaining the contents of the video;
performing a second transformation to add and synthesize new video contents to the contents of the video; and
performing a third transformation to improve picture quality while enlarging at least a portion of the contents of the video;
A method comprising at least one step among
제14항에 있어서,
상기 변환을 수행하는 단계는,
가로가 더 긴 화면비율의 가로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행하고,
세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제3 변환을 수행하며,
상기 가로 파지 상태 또는 상기 세로 파지 상태인 경우에 세로가 더 긴 영상비율의 세로 영상에 대해 상기 제1 변환 또는 상기 제2 변환을 수행하는 단계를 포함하는 방법.
According to claim 14,
The step of performing the conversion is,
Performing the first conversion or the second conversion on a horizontal image having a longer horizontal aspect ratio in a horizontal holding state of a longer horizontal aspect ratio;
Performing the third conversion on a horizontal image of a longer horizontal aspect ratio in a vertical holding state of a longer aspect ratio;
and performing the first transformation or the second transformation on a vertical image having a longer vertical aspect ratio in the horizontal holding state or the vertical holding state.
제14항에 있어서,
상기 제1 변환을 수행하는 단계는,
상기 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환하는 단계를 포함하는 방법.
According to claim 14,
Performing the first transformation,
After generating an enlarged image by applying a pre-learned machine learning model to enlarge the image to an image larger than the screen size of the gripping state while improving the image quality, size interpolation is performed on the enlarged image to obtain the gripping state A method comprising converting to an aspect ratio of
제14항에 있어서,
상기 제2 변환을 수행하는 단계는,
이전 및 이후 프레임 영상을 이용하여 대응점 매칭 기반으로 현재 프레임 영상에 이전 또는 이후 프레임 영상에 포함된 새로운 영상 내용을 합성하는 단계를 포함하는 방법.
According to claim 14,
Performing the second transformation,
A method comprising synthesizing new image contents included in previous or subsequent frame images with a current frame image based on correspondence point matching using previous and subsequent frame images.
제14항에 있어서,
상기 제2 변환을 수행하는 단계는,
상기 합성된 현재 프레임 영상이 목표 영상의 해상도에 미달하는 경우에 해당 현재 프레임 영상에 생성적 적대 신경망(Generative Adversarial Network; GAN) 기반의 경계 확장을 수행하여 새로운 영상 내용을 단계를 포함하는 방법.
According to claim 14,
Performing the second transformation,
and performing boundary expansion based on a generative adversarial network (GAN) on the corresponding current frame image when the synthesized current frame image does not meet the resolution of the target image to obtain new image content.
제17항 또는 제18항에 있어서,
상기 제2 변환을 수행하는 단계는,
상기 합성된 현재 프레임 영상에 대해, 화질을 개선하면서 상기 파지 상태의 화면 크기보다 큰 영상으로 확대하도록 기 학습된 머신 러닝 모델을 적용하여 확대 영상을 생성한 후, 상기 확대 영상에 대한 크기 보간을 수행하여 상기 파지 상태의 화면비율로 변환하는 단계를 포함하는 방법.
The method of claim 17 or 18,
Performing the second transformation,
To the synthesized current frame image, an enlarged image is generated by applying a pre-learned machine learning model to enlarge an image larger than the screen size of the holding state while improving image quality, and then size interpolation is performed on the enlarged image and converting it into an aspect ratio of the holding state.
제14항에 있어서,
상기 변환을 수행하는 단계는 세로가 더 긴 화면비율의 세로 파지 상태인 경우에 가로가 더 긴 영상비율의 가로 영상에 대해 상기 제3 변환을 수행하는 단계를 포함하며,
상기 제3 변환을 수행하는 단계는,
상기 가로 영상의 프레임 영상마다 해당 프레임 영상의 컨텐츠를 분석하여 해당 프레임 영상의 일부에 해당하는 재생 영역을 산출하는 단계;
상기 가로 영상을 다수의 소단위로 분리하고 영상의 컨텐츠 종류 별로 기 학습된 다수의 AI(artificial intelligence) 모델 중에서 해당 소단위 내 가로 영상의 컨텐츠에 따라 소단위 별로 적용되는 최적 AI 모델을 선택하는 단계;
상기 재생 영역을 기반으로 상기 가로 영상에서 세로가 더 긴 영상비율의 세로 영상을 프레임 영상마다 추출하는 단계; 및
선택된 최적 AI 모델을 소단위 별로 적용하여 추출된 세로 영상을 확대 변환하는 단계;
를 포함하는 방법.
According to claim 14,
The performing of the conversion includes performing the third conversion on a horizontal image having a longer horizontal aspect ratio when the vertical holding state has a longer vertical aspect ratio,
Performing the third transformation,
calculating a playback area corresponding to a part of the corresponding frame image by analyzing contents of the corresponding frame image for each frame image of the horizontal image;
Separating the horizontal image into a plurality of sub-units and selecting an optimal AI model applied for each sub-unit according to the content of the horizontal video within the sub-unit from among a plurality of AI (artificial intelligence) models pre-learned for each content type of the image;
extracting, for each frame image, a vertical image having a longer vertical aspect ratio in the horizontal image based on the play area; and
Enlarging and converting the extracted vertical image by applying the selected optimal AI model for each subunit;
How to include.
KR1020210088394A 2021-07-06 2021-07-06 Electronic apparatus and method for intelligent video conversion KR102596308B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020210088394A KR102596308B1 (en) 2021-07-06 2021-07-06 Electronic apparatus and method for intelligent video conversion
PCT/KR2022/002168 WO2023282426A2 (en) 2021-07-06 2022-02-14 Electronic device and method for intelligent image conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210088394A KR102596308B1 (en) 2021-07-06 2021-07-06 Electronic apparatus and method for intelligent video conversion

Publications (2)

Publication Number Publication Date
KR20230007718A true KR20230007718A (en) 2023-01-13
KR102596308B1 KR102596308B1 (en) 2023-10-31

Family

ID=84801819

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210088394A KR102596308B1 (en) 2021-07-06 2021-07-06 Electronic apparatus and method for intelligent video conversion

Country Status (2)

Country Link
KR (1) KR102596308B1 (en)
WO (1) WO2023282426A2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070039790A (en) 2005-10-10 2007-04-13 주식회사 케이티프리텔 Portable terminal having function of conversion of picture
KR20190088406A (en) * 2018-01-04 2019-07-26 삼성전자주식회사 Video playback device and controlling method thereof
KR20200063329A (en) * 2018-11-21 2020-06-05 삼성전자주식회사 Image processing apparatus and controlling method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100987289B1 (en) * 2003-02-26 2010-10-12 삼성전자주식회사 Portable communication terminal capable of displaying data in the same direction with screen according to pivot position state of the screen and method thereof
KR20060070195A (en) * 2004-12-20 2006-06-23 주식회사 팬택앤큐리텔 Apparatus for screen display auto conversion in the swivel type mobile communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070039790A (en) 2005-10-10 2007-04-13 주식회사 케이티프리텔 Portable terminal having function of conversion of picture
KR20190088406A (en) * 2018-01-04 2019-07-26 삼성전자주식회사 Video playback device and controlling method thereof
KR20200063329A (en) * 2018-11-21 2020-06-05 삼성전자주식회사 Image processing apparatus and controlling method thereof

Also Published As

Publication number Publication date
WO2023282426A3 (en) 2023-03-23
WO2023282426A2 (en) 2023-01-12
KR102596308B1 (en) 2023-10-31

Similar Documents

Publication Publication Date Title
US10242265B2 (en) Actor/person centric auto thumbnail
US8416332B2 (en) Information processing apparatus, information processing method, and program
KR102628905B1 (en) Method and apparatus for converting an impression of a face in video
EP4154511A1 (en) Maintaining fixed sizes for target objects in frames
US20120287233A1 (en) Personalizing 3dtv viewing experience
CN113284073B (en) Image restoration method, device and storage medium
KR20190093722A (en) Electronic apparatus, method for controlling thereof, and computer program product thereof
US20230021533A1 (en) Method and apparatus for generating video with 3d effect, method and apparatus for playing video with 3d effect, and device
KR20220000758A (en) Image detection apparatus and method thereof
CN110418148B (en) Video generation method, video generation device and readable storage medium
KR102595096B1 (en) Electronic apparatus, system and method for intelligent horizontal-vertical video conversion
KR20200114898A (en) Image display apparatus
KR102596308B1 (en) Electronic apparatus and method for intelligent video conversion
US20230209087A1 (en) Method and device for improving video quality
US20200195882A1 (en) Audio-video reproduction for closed caption display control based on multi-media content
KR101985669B1 (en) Apparatus and method for generating of cartoon using video
US20220217435A1 (en) Supplementing Entertainment Content with Ambient Lighting
WO2018123202A1 (en) Moving-image processing device, display device, moving-image processing method, and control program
US11847827B2 (en) Device and method for generating summary video
US20140320745A1 (en) Method and apparatus for displaying an image
KR102121530B1 (en) Method for Displaying Image and Apparatus Thereof
US20230162499A1 (en) Image analysis system, image analysis method, and program
CN112019923B (en) Video cutting processing method
CN110996173B (en) Image data processing method and device and storage medium
CN115086710B (en) Video playing method, terminal equipment, device, system and storage medium

Legal Events

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