WO2022111000A1 - Display device and display method - Google Patents

Display device and display method Download PDF

Info

Publication number
WO2022111000A1
WO2022111000A1 PCT/CN2021/119076 CN2021119076W WO2022111000A1 WO 2022111000 A1 WO2022111000 A1 WO 2022111000A1 CN 2021119076 W CN2021119076 W CN 2021119076W WO 2022111000 A1 WO2022111000 A1 WO 2022111000A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
camera
image
display device
ratio
Prior art date
Application number
PCT/CN2021/119076
Other languages
French (fr)
Chinese (zh)
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
Priority claimed from CN202011363628.XA external-priority patent/CN114567804A/en
Priority claimed from CN202110902251.9A external-priority patent/CN114285986B/en
Priority claimed from CN202110901318.7A external-priority patent/CN114285985B/en
Application filed by 海信视像科技股份有限公司 filed Critical 海信视像科技股份有限公司
Priority to CN202180067795.6A priority Critical patent/CN116325762A/en
Publication of WO2022111000A1 publication Critical patent/WO2022111000A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the display device 200 includes a rotating assembly 276, a controller 250, a display 275, and a rotating assembly 276 connected to the backplane.
  • the rotating assembly 276 can rotate the display screen from the front of the display device. From the viewing angle, the rotating component 276 can rotate the display screen to the vertical screen state, that is, the vertical side length of the screen is larger than the horizontal side length, or the screen can be rotated to the horizontal screen state, that is, the horizontal side length of the screen is larger than the vertical screen state. The state of the side length in the direction.
  • FIG. 5 exemplarily shows a content that can be presented on a user interface, which may include, but is not limited to, at least one of live TV, VOD, media center, application center, game application, and the like.
  • a user interface which may include, but is not limited to, at least one of live TV, VOD, media center, application center, game application, and the like.
  • applications that need to use the camera can be included.
  • the image captured by the camera is rotated by 90 degrees and displayed at the first display ratio.
  • the image captured by the camera is rotated by 90 degrees and displayed at the second display ratio.
  • the image captured by the camera is displayed at the second display ratio
  • the display device first receives an instruction to turn on the camera input by the user. Secondly, the display device determines the display ratio of the image collected by the camera on the display according to the installation position of the camera and the display mode of the display. Finally, the display device displays the image captured by the camera on the display at the display ratio.
  • the embodiment of the present application determines an appropriate display ratio to display the image captured by the camera through the installation position of the camera and the display mode of the display, so as to avoid the image captured by the camera from being unable to be accurately displayed on the rotating TV.
  • step S412 If yes, go to step S412, otherwise go to step S404.
  • FIG. 9 exemplarily shows a schematic flowchart of still another display method according to some embodiments. As shown in FIG. 9 , the method includes:
  • FIG. 11 schematically shows a flowchart of another display method according to some embodiments, as shown in FIG. 11 , the method includes:
  • the display device first receives an instruction to turn on the camera input by the user. Secondly, the display device determines the installation position of the camera according to the type of the camera and the serial bus port connected to the camera. Thirdly, the display device determines the display ratio of the image collected by the camera on the display according to the installation position of the camera and the display mode of the display. Finally, the display device displays the image captured by the camera on the display at the display ratio.
  • the embodiment of the present application determines an appropriate display ratio to display the image captured by the camera through the installation position of the camera and the display mode of the display, so as to avoid the image captured by the camera from being unable to be accurately displayed on the rotating TV.
  • the step of determining the rotation state includes: acquiring an image captured by a camera; and determining a rotation state of the image according to the image, where the rotation state includes rotation or no rotation.
  • the step of determining the rotation state of the image includes: extracting features of the image, inputting the features into a preset classifier, and determining the rotation state of the image.
  • the image with the preset preview image ratio of 16:9 will be captured, and the preview image ratio of the captured image will be 9:16, and the The captured image is displayed on the display. It should be noted that, in some embodiments, when the captured image is displayed, the image method can be used to display the image in full screen.
  • the preview image ratio supported by the camera is pre-stored.
  • the image ratio captured by the camera is n:m.
  • some cameras Preview image ratio n:m cannot be supported. Therefore, when the screen state is in the horizontal screen state, the display rotation command is received and the display is rotated to the vertical screen.
  • the screen state is in the vertical screen state, and if the screen state is in the vertical screen state, the image captured by the camera according to the preset preview image ratio is captured according to the preview image ratio n:m, and the captured image
  • the displayed image is displayed on the display; receiving the rotation instruction of the display, changing the screen state and rotating the display to the horizontal screen, controlling the camera to capture the image according to the preset preview image ratio m:n, and rotating the preset angle, and displaying the rotated image
  • the screen state is the horizontal screen state, then the image of the image m:n captured by the camera according to the preset preview image ratio is intercepted, the image of the ratio n:m is captured, and the captured image is rotated and previewed.
  • the preset application may be a camera application, and the focus on the display device is moved by the control device, the focus is moved to the control of the preset application, and the confirmation key on the control device is pressed to generate a startup preset.
  • the user interface is displayed as shown in FIG. 22, and the image captured by the camera is displayed in the preview box of the user interface.
  • the user can move the focus to the photographing control through the control device to achieve the purpose of photographing.
  • the image captured by the camera according to the second preview image ratio n:m is rotated by the preset angle and displayed on the on the display; receiving the display rotation instruction, changing the screen state, and rotating the display to the vertical screen, and displaying the image captured by the camera according to the second preview image ratio n:m on the display.
  • the second preview image ratio is n:m, where n is 9 and m is 16.
  • Embodiments of the present application further provide a program product, such as a computer-readable storage medium, where instructions are stored in the program product, and when the program product runs on a computer, the computer executes the display method provided by the above method embodiments.
  • a program product such as a computer-readable storage medium

Abstract

A display device and a display method. The display device comprises a display; and a controller which is respectively connected to the display and a camera accessing the display device and is configured to: receive a starting instruction of the camera, according to the mounting position of the camera and a display mode of the display, determine a display scale of an image collected by the camera on the display, the display scale being used for representing the length-to-width ratio of the image displaying on the display, and display the image collected by the camera on the display at the display scale.

Description

显示设备以及显示方法Display device and display method
本申请要求在2020年11月27日提交中国专利局、申请号为202011363628.X、名称为“显示设备及显示方法”的中国专利申请的优先权,以及在2021年8月6日提交中国专利局、申请号为202110901318.7、名称为“一种摄像头预览方向的确定方法及显示设备”的中国专利申请的优先权,以及在2021年8月6日提交中国专利局、申请号为202110902251.9、名称为“一种摄像头拍摄图像的方法及显示设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011363628.X and titled "Display Device and Display Method" filed with the China Patent Office on November 27, 2020, and the Chinese patent application filed on August 6, 2021 Office, application number 202110901318.7, and the priority of a Chinese patent application entitled "A method for determining the preview direction of a camera and a display device", and submitted to the Chinese Patent Office on August 6, 2021, application number 202110902251.9, titled The priority of the Chinese patent application for "A method for capturing images with a camera and a display device", the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请实施例涉及显示技术。更具体地讲,涉及一种显示设备以及显示方法。The embodiments of the present application relate to display technologies. More specifically, it relates to a display device and a display method.
背景技术Background technique
随着智能电视的发展,智能旋转电视逐渐出现在用户的视野中。智能旋转电视包括有横屏显示和竖屏模式,通过横屏模式和竖屏模式可以方便用户采用不同的角度来观看电视节目。With the development of smart TVs, smart rotating TVs gradually appear in the user's field of vision. The smart rotating TV includes a horizontal screen display and a vertical screen mode, and the horizontal screen mode and the vertical screen mode can facilitate users to watch TV programs from different angles.
相关技术中,智能旋转电视的摄像头可以固定在智能旋转电视上,也可以安装在电视柜等其他位置。由于智能旋转电视为横屏模式和竖屏模式,从而导致摄像头采集到的图像在某一种模式下可能无法以正确的角度显示,或者,显示的范围偏离智能旋转电视的显示屏的中心。In the related art, the camera of the smart rotating TV can be fixed on the smart rotating TV, or can be installed in other positions such as a TV cabinet. Because the smart rotating TV is in landscape mode and portrait mode, the images captured by the camera may not be displayed at the correct angle in a certain mode, or the display range may deviate from the center of the display screen of the smart rotating TV.
发明内容SUMMARY OF THE INVENTION
第一方面,本申请实施例提供一种显示设备,包括:In a first aspect, an embodiment of the present application provides a display device, including:
显示器;monitor;
控制器,所述控制器分别与所述显示器以及接入所述显示设备的摄像头连接,所述控制器被配置为:a controller, the controller is respectively connected with the display and the camera connected to the display device, and the controller is configured as:
接收所述摄像头的开启指示;receiving an opening instruction of the camera;
根据所述摄像头的安装位置及所述显示器的显示模式,确定所述摄像头采集到的图像在所述显示器上的显示比例,所述显示比例用于表征所述图像在所述显示器上显示时的长宽比;According to the installation position of the camera and the display mode of the display, the display ratio of the image collected by the camera on the display is determined, and the display ratio is used to represent the display ratio of the image when displayed on the display. aspect ratio;
以所述显示比例在显示器上显示所述摄像头采集到的图像。The image collected by the camera is displayed on the display at the display ratio.
第二方面,本申请实施例提供一种显示方法,所述方法包括:In a second aspect, an embodiment of the present application provides a display method, the method comprising:
接收摄像头的开启指示;Receive the opening instruction of the camera;
根据所述摄像头的安装位置及所述显示器的显示模式,确定所述摄像头采集到的图像在所述显示器上的显示比例,所述显示比例用于表征所述图像在所述显示器上显示时的长宽比;According to the installation position of the camera and the display mode of the display, the display ratio of the image collected by the camera on the display is determined, and the display ratio is used to represent the display ratio of the image when displayed on the display. aspect ratio;
以所述显示比例在显示器上显示所述摄像头采集到的图像。The image collected by the camera is displayed on the display at the display ratio.
第三方面,本申请还提供一种电子设备,包括:In a third aspect, the application also provides an electronic device, comprising:
存储器与处理器;memory and processor;
所述存储器,用于存储所述处理器的可执行指令;the memory for storing executable instructions of the processor;
所述处理器配置为经由执行所述可执行指令来执行第二方面所述的方法。The processor is configured to perform the method of the second aspect by executing the executable instructions.
第四方面,本发明还提供一种存储有计算机指令的非瞬时计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第二方面中任意一种可能的方法。In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium storing computer instructions, and a computer program is stored thereon, and when the computer program is executed by a processor, any one of the possible methods in the second aspect is implemented .
附图说明Description of drawings
为了更清楚地说明本申请实施例或相关技术中的实施方式,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the implementations in the related technologies, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or related technologies. Obviously, the drawings in the following description are the For some embodiments of the application, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings.
图1A为本申请一些实施例提供的一种显示设备的应用场景图;FIG. 1A is an application scenario diagram of a display device provided by some embodiments of the present application;
图1B为本申请一些实施例提供的一种显示设备的后视图;FIG. 1B is a rear view of a display device provided by some embodiments of the present application;
图2为本申请一些实施例提供的图1中控制装置100的硬件配置框图;FIG. 2 is a block diagram of the hardware configuration of the control apparatus 100 in FIG. 1 provided by some embodiments of the present application;
图3为本申请一些实施例提供的图1中显示设备200的硬件配置框图;FIG. 3 is a block diagram of the hardware configuration of the display device 200 in FIG. 1 according to some embodiments of the present application;
图4为本申请一些实施例提供的显示设备200存储器中操作系统的架构配置框图;FIG. 4 is a block diagram of the architecture configuration of the operating system in the memory of the display device 200 provided by some embodiments of the present application;
图5为本申请一些实施例提供的一种用户界面;FIG. 5 provides a user interface according to some embodiments of the present application;
图6a-6d中示例性示出了根据一些实施例的示例性的摄像头的安装位置的示意图;Figures 6a-6d exemplarily show schematic diagrams of installation positions of exemplary cameras according to some embodiments;
图7中示例性示出了根据一些实施例的一种显示方法的流程示意图;FIG. 7 exemplarily shows a schematic flowchart of a display method according to some embodiments;
图8中示例性示出了根据一些实施例的另一种显示方法的流程示意图;FIG. 8 exemplarily shows a schematic flowchart of another display method according to some embodiments;
图9中示例性示出了根据一些实施例的再一种显示方法的流程示意图;FIG. 9 exemplarily shows a schematic flowchart of still another display method according to some embodiments;
图10中示例性示出了根据一些实施例的摄像头类型界面的示意图;FIG. 10 exemplarily shows a schematic diagram of a camera type interface according to some embodiments;
图11中示例性示出了根据一些实施例的又一种显示方法的流程示意图;FIG. 11 exemplarily shows a schematic flowchart of still another display method according to some embodiments;
图12中示例性示出了根据一些实施例的不同摄像头类型的摄像头示意图;FIG. 12 exemplarily shows a schematic diagram of a camera of different camera types according to some embodiments;
图13-图20中示例性示出了相关技术中摄像头拍摄的一种图像示意图;Figures 13-20 exemplarily show a schematic diagram of an image captured by a camera in the related art;
图21中示例性示出了一种摄像头预览方向的确定方法的流程图;FIG. 21 exemplarily shows a flowchart of a method for determining a camera preview direction;
图22中示例性示出了一种用户界面示意图;Figure 22 exemplarily shows a schematic diagram of a user interface;
图23中示例性示出了另一种用户界面示意图;Figure 23 exemplarily shows another schematic diagram of the user interface;
图24中示例性示出了一种摄像头拍摄图像的方法的流程图;Figure 24 exemplarily shows a flow chart of a method for a camera to capture an image;
图25中示例性示出了一种用户界面示意图。A schematic diagram of a user interface is exemplarily shown in FIG. 25 .
具体实施方式Detailed ways
为使本申请的目的、实施方式和优点更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,所描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。In order to make the objectives, implementations and advantages of the present application clearer, the exemplary embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the exemplary embodiments of the present application. Obviously, the exemplary embodiments described It is only a part of the embodiments of the present application, but not all of the embodiments.
旋转电视是一种新型智能电视,主要包括显示器以及旋转组件。其中,显示器通过旋转组件固定在墙壁或支架上,可通过旋转组件调节显示器放置角度,达到旋转的目的,以适应不同宽高比的显示画面。例如,多数情况下显示器横向放置,以显示宽高比为16:9、18:9等比例的视频画面。当视频画面的宽高比为9:16、9:18等比例时,横向放置的显示器需要对画面进行缩放,且在显示器的两侧显示黑色区域。因此,可以通过旋转组件将显示器竖向放置,以适应9:16、9:18等比例的视频画面。A rotating TV is a new type of smart TV, which mainly includes a display and rotating components. Among them, the display is fixed on the wall or bracket through the rotating component, and the placement angle of the display can be adjusted through the rotating component to achieve the purpose of rotation, so as to adapt to the display images of different aspect ratios. For example, in most cases the monitor is placed in landscape orientation to display video images with aspect ratios such as 16:9 and 18:9. When the aspect ratio of the video image is 9:16, 9:18, etc., the monitor that is placed horizontally needs to scale the image, and black areas are displayed on both sides of the monitor. Therefore, the display can be placed vertically by rotating the assembly to accommodate 9:16, 9:18, etc. video images.
为方便用户在显示器不同的横竖屏状态展示目标媒资详情页,便于提升显示设备在不同观看状态时的用户观看体验,本申请实施例提供了一种显示设备、详情页展示方法及计算机存储介质,显示设备如旋转电视。需要说明的是,本实施例提供的方法不仅适用于旋转电视,还适用于其它显示设备,如计算机、平板电脑等。In order to facilitate the user to display the detail page of the target media asset in different horizontal and vertical screen states of the display, and to improve the user's viewing experience of the display device in different viewing states, the embodiments of the present application provide a display device, a method for displaying a detail page, and a computer storage medium , a display device such as a rotating TV. It should be noted that the method provided in this embodiment is not only applicable to rotating a TV, but also applicable to other display devices, such as a computer, a tablet computer, and the like.
本申请中说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”等是用于区别类似或同类的对象或实体,而不必然意味着限定特定的顺序或先后次序,除非另外注明(Unless otherwise indicated)。应该理解这样使用的用语在适当情况下可以互换,例如能够根据本申请实施例图示或描述中给出那些以外的顺序实施。The terms "first", "second", "third", etc. in the description and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and are not necessarily meant to limit specific Order or precedence unless otherwise indicated. It should be understood that the terms so used are interchangeable under appropriate circumstances, eg, can be implemented in an order other than those given in the illustration or description of the embodiments of the present application.
此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖但不排他的包含,例如,包含了一系列组件的产品或设备不必限于清楚地列出的那些组件,而是可包括没有清楚地列出的或对于这些产品或设备固有的其它组件。Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover but not exclusively include, for example, a product or device incorporating a series of components is not necessarily limited to those explicitly listed, but may include No other components are expressly listed or inherent to these products or devices.
本申请中使用的术语“模块”,是指任何已知或后来开发的硬件、软件、固件、人工智能、模糊逻辑或硬件或/和软件代码的组合,能够执行与该元件相关的功能。The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware or/and software code capable of performing the function associated with that element.
本申请中使用的术语“遥控器”,是指电子设备(如本申请中公开的显示设备)的一个组件,通常可在较短的距离范围内无线控制电子设备。一般使用红外线和/或射频(RF)信号和/或蓝牙与电子设备连接,也可以包括WiFi、无线USB、蓝牙、动作传感器等功能模块。例如:手持式触摸遥控器,是以触摸屏中用户界面取代一般遥控装置中的大部分物理内置硬键。As used in this application, the term "remote control" refers to a component of an electronic device, such as the display device disclosed in this application, that can wirelessly control the electronic device, usually over a short distance. Generally, infrared and/or radio frequency (RF) signals and/or Bluetooth are used to connect with electronic devices, and functional modules such as WiFi, wireless USB, Bluetooth, and motion sensors may also be included. For example, a hand-held touch remote control replaces most of the physical built-in hard keys in a general remote control device with a user interface in a touch screen.
本申请中使用的术语“手势”,是指用户通过一种手型的变化或手部运动等动作,用于表达预期想法、动作、目的/或结果的用户行为。The term "gesture" used in this application refers to a user's behavior that is used by a user to express an expected thought, action, purpose/or result through an action such as a change of hand shape or hand movement.
图1中示例性示出了根据实施例中显示设备与控制装置之间操作场景的示意图。如图1中示出,用户可通过移动终端300和控制装置100操作显示设备200。FIG. 1 exemplarily shows a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in FIG. 1 , a user may operate the display apparatus 200 through the mobile terminal 300 and the control apparatus 100 .
在一些实施例中,控制装置100可以是遥控器,遥控器和显示设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式等,通过无线或其他有线方式来控制显示设备200。用户可以通过遥控器上按键,语音输入、控制面板输入等输入用户指令,来控制显示设备200。如:用户可以通过遥控器上音量加减键、频道控制键、上/下/左/右的移动按键、语音输入按键、菜单键、开关机按键等输入相应控制指令,来实现控制显示设备200的功能。In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, etc., and controls the display device 200 by wireless or other wired methods. The user can control the display device 200 by inputting user instructions through keys on the remote control, voice input, control panel input, and the like. For example, the user can control the display device 200 by inputting corresponding control commands through the volume up/down key, channel control key, up/down/left/right movement keys, voice input key, menu key, power-on/off key, etc. on the remote control. function.
在一些实施例中,也可以使用移动终端、平板电脑、计算机、笔记本电脑、和其他智能设备以控制显示设备200。例如,使用在智能设备上运行的应用程序控制显示设备200。该应用程序通过配置可以在与智能设备关联的屏幕上,在直观的用户界面(UI)中为用户提供各种控制。In some embodiments, mobile terminals, tablet computers, computers, notebook computers, and other smart devices may also be used to control the display device 200 . For example, the display device 200 is controlled using an application running on the smart device. The app can be configured to provide users with various controls in an intuitive user interface (UI) on the screen associated with the smart device.
显示设备200,可以液晶显示器、OLED显示器、投影显示设备。具体显示设备类型,尺寸大小和分辨率等不作限定,本领技术人员可以理解的是,显示设备200可以根据需要做性能和配置上一些改变。The display device 200 may be a liquid crystal display, an OLED display, or a projection display device. The specific display device type, size and resolution are not limited. Those skilled in the art can understand that the display device 200 can make some changes in performance and configuration as required.
在一些实施例中,如图1B所示,显示设备200包括旋转组件276,控制器250,显示器275以及和背板连接的旋转组件276,旋转组件276可以是显示屏进行旋转,从显示设备正面观看的角度,旋转组件276可以将显示屏旋转到竖屏状态,即屏幕竖向的边长大于横向的边长的状态,也可以将屏幕旋转至横屏状态,即屏幕横向的边长大于竖向的边长的 状态。In some embodiments, as shown in FIG. 1B , the display device 200 includes a rotating assembly 276, a controller 250, a display 275, and a rotating assembly 276 connected to the backplane. The rotating assembly 276 can rotate the display screen from the front of the display device. From the viewing angle, the rotating component 276 can rotate the display screen to the vertical screen state, that is, the vertical side length of the screen is larger than the horizontal side length, or the screen can be rotated to the horizontal screen state, that is, the horizontal side length of the screen is larger than the vertical screen state. The state of the side length in the direction.
图2中示例性示出了控制装置100的配置框图。如图2所示,控制装置100包括控制器110、存储器120、通信器130、用户输入接口140、用户输出接口150、供电电源160。A block diagram of the configuration of the control device 100 is exemplarily shown in FIG. 2 . As shown in FIG. 2 , the control device 100 includes a controller 110 , a memory 120 , a communicator 130 , a user input interface 140 , a user output interface 150 , and a power supply 160 .
图3中示例性示出了显示设备200的硬件配置框图。如图3所示,显示设备200中可以包括但不限于调谐解调器210、通信器220、检测器230、外部装置接口240、控制器250、存储器260、用户接口265、视频处理器270、显示器275、旋转组件276、监测组件277、音频处理器280、音频输出接口285、供电电源290中的至少一个。A block diagram of a hardware configuration of the display device 200 is exemplarily shown in FIG. 3 . As shown in FIG. 3 , the display device 200 may include, but is not limited to, a tuner demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a memory 260, a user interface 265, a video processor 270, At least one of the display 275 , the rotating component 276 , the monitoring component 277 , the audio processor 280 , the audio output interface 285 , and the power supply 290 .
其中,旋转组件276可以包括驱动电机、旋转轴等部件。其中,驱动电机可以连接控制器250,受控制器250的控制输出旋转角度;旋转轴的一端连接驱动电机的动力输出轴,另一端连接显示器275,以使显示器275可以通过旋转组件276固定安装在墙壁或支架上。The rotating assembly 276 may include components such as a drive motor, a rotating shaft, and the like. The drive motor can be connected to the controller 250, and is controlled by the controller 250 to output a rotation angle; one end of the rotating shaft is connected to the power output shaft of the drive motor, and the other end is connected to the display 275, so that the display 275 can be fixedly installed on the rotating assembly 276. on a wall or stand.
旋转组件276还可以包括其他部件,如传动部件、检测部件等。其中,传动部件可以通过特定传动比,调整旋转组件276输出的转速和力矩,可以为齿轮传动方式;检测部件可以由设置在旋转轴上的传感器组成,例如角度传感器、姿态传感器等。这些传感器可以对旋转组件276旋转的角度等参数进行检测,并将检测的参数发送给控制器250,以使控制器250能够根据检测的参数判断或调整显示设备200的状态。实际应用中,旋转组件276可以包括但不限于上述部件中的一种或多种。The rotating assembly 276 may also include other components, such as transmission components, detection components, and the like. The transmission component can adjust the rotational speed and torque output by the rotating component 276 through a specific transmission ratio, which can be a gear transmission mode; the detection component can be composed of sensors arranged on the rotating shaft, such as an angle sensor, an attitude sensor, and the like. These sensors can detect parameters such as the rotation angle of the rotating component 276, and send the detected parameters to the controller 250, so that the controller 250 can judge or adjust the state of the display device 200 according to the detected parameters. In practical applications, the rotating assembly 276 may include, but is not limited to, one or more of the above components.
监测组件277,用于监测旋转组件276的组件旋转信息,并输出所述组件旋转信息至控制器。其中,监测组件277可以独立设置,也可以设置在控制器内。The monitoring component 277 is used to monitor the component rotation information of the rotating component 276 and output the component rotation information to the controller. Wherein, the monitoring component 277 can be set independently, or can be set in the controller.
检测器230,是显示设备200用于采集外部环境或与外部交互的信号的组件。检测器230可以包括声音采集器231,如麦克风,可以用于接收用户的声音,如用户控制显示设备200的控制指令的语音信号;或者,可以采集用于识别环境场景类型的环境声音,实现显示设备200可以自适应环境噪声。The detector 230 is a component of the display device 200 for collecting external environment or external interaction signals. The detector 230 can include a sound collector 231, such as a microphone, which can be used to receive the user's voice, such as the voice signal of the user's control instruction to control the display device 200; Device 200 can adapt to ambient noise.
在其他一些示例性实施例中,检测器230,还可以包括图像采集器232,如相机、摄像头等,可以用于采集外部环境场景,以自适应变化显示设备200的显示参数;以及用于采集用户的属性或与用户交互手势,以实现显示设备与用户之间互动的功能。In some other exemplary embodiments, the detector 230 may further include an image collector 232, such as a camera, a camera, etc., which may be used to collect external environmental scenes to adaptively change the display parameters of the display device 200; Attributes of the user or gestures to interact with the user to realize the function of interaction between the display device and the user.
外部装置接口240,是提供控制器250控制显示设备200与外部设备间数据传输的组件。外部装置接口240可按照有线/无线方式与诸如机顶盒、游戏装置、笔记本电脑等外部设备连接,可接收外部设备的诸如视频信号(例如运动图像)、音频信号(例如音乐)、附加信息(例如EPG)等数据。The external device interface 240 is a component that provides the controller 250 to control data transmission between the display device 200 and the external device. The external device interface 240 can be connected with external devices such as set-top boxes, game devices, notebook computers, etc. in a wired/wireless manner, and can receive external devices such as video signals (such as moving images), audio signals (such as music), additional information (such as EPG) ) and other data.
其中,外部装置接口240可以包括:高清多媒体接口(HDMI)端子241、复合视频消隐同步(CVBS)端子242、模拟或数字分量端子243、通用串行总线(USB)端子244、组件(Component)端子(图中未示出)、红绿蓝(RGB)端子(图中未示出)等任一个或多个。The external device interface 240 may include: a high-definition multimedia interface (HDMI) terminal 241, a composite video blanking synchronization (CVBS) terminal 242, an analog or digital component terminal 243, a universal serial bus (USB) terminal 244, a component (Component) Any one or more of terminals (not shown in the figure), red, green and blue (RGB) terminals (not shown in the figure).
控制器250,通过运行存储在存储器260上的各种软件控制程序(如操作系统和各种应用程序),来控制显示设备200的工作和响应用户的操作。The controller 250 controls the operation of the display device 200 and responds to user operations by running various software control programs (such as an operating system and various application programs) stored in the memory 260 .
如图3所示,控制器250包括随机存取存储器(RAM)251、只读存储器(ROM)252、图形处理器253、CPU处理器254、通信接口255、通信总线256、旋转处理器257和动画处理器258。其中,RAM251、ROM252以及图形处理器253、CPU处理器254通信接口255、旋转处理器257和动画处理器258通过通信总线256相连接。在后续实施例中会对旋转处 理器257和动画处理器258的功能作以详细的说明。As shown in FIG. 3, the controller 250 includes a random access memory (RAM) 251, a read only memory (ROM) 252, a graphics processor 253, a CPU processor 254, a communication interface 255, a communication bus 256, a rotation processor 257 and Animation processor 258. Among them, the RAM 251 , the ROM 252 , the graphics processor 253 , the communication interface 255 of the CPU processor 254 , the rotation processor 257 and the animation processor 258 are connected through a communication bus 256 . The functions of the rotation processor 257 and the animation processor 258 will be described in detail in subsequent embodiments.
图4中示例性示出了显示设备200存储器中操作系统的架构配置框图。该操作系统架构从上到下依次是应用层、中间件层和内核层。FIG. 4 exemplarily shows a block diagram of the architecture configuration of the operating system in the memory of the display device 200 . The operating system architecture is, from top to bottom, the application layer, the middleware layer and the kernel layer.
应用层,系统内置的应用程序以及非系统级的应用程序都是属于应用层。负责与用户进行直接交互。应用层可包括多个应用程序,如设置应用程序、电子帖应用程序、媒体中心应用程序等。这些应用程序主要基于Android系统开发,可以为开发语言为Java/C++。这些应用程序也可以被实现为Web应用,其基于WebKit引擎来执行,具体可基于HTML5、层叠样式表(CSS)和JavaScript来开发并执行。The application layer, built-in applications in the system and non-system-level applications belong to the application layer. Responsible for direct interaction with users. The application layer may include multiple applications, such as a settings application, an electronic post application, a media center application, and the like. These applications are mainly developed based on the Android system, and the development language can be Java/C++. These applications can also be implemented as web applications, which are executed based on the WebKit engine, and in particular can be developed and executed based on HTML5, Cascading Style Sheets (CSS) and JavaScript.
中间件层,可以提供一些标准化的接口,以支持各种环境和系统的操作。例如,中间件层可以实现为与数据广播相关的中间件的多媒体和超媒体信息编码专家组(MHEG),还可以实现为与外部设备通信相关的中间件的DLNA中间件,还可以实现为提供显示设备内各应用程序所运行的浏览器环境的中间件等。The middleware layer can provide some standardized interfaces to support the operation of various environments and systems. For example, the middleware layer may be implemented as Multimedia and Hypermedia Information Coding Experts Group (MHEG) for data broadcasting related middleware, DLNA middleware for external device communication related middleware, and also for providing Displays the middleware of the browser environment in which each application program in the device runs.
内核层,提供核心系统服务,例如:文件管理、内存管理、进程管理、网络管理、系统安全权限管理等服务。内核层可以被实现为基于各种操作系统的内核,例如,基于Linux操作系统的内核。The kernel layer provides core system services, such as file management, memory management, process management, network management, and system security authority management. The kernel layer may be implemented as a kernel based on various operating systems, for example, a kernel based on a Linux operating system.
内核层也同时提供系统软件和硬件之间的通信,为各种硬件提供设备驱动服务,例如:为显示器275提供显示驱动程序、为摄像头提供摄像头驱动程序、为遥控器提供按键驱动程序、为WI FI模块提供WiFi驱动程序、为音频输出接口提供音频驱动程序、为电源管理(PM)模块提供电源管理驱动等。The kernel layer also provides communication between system software and hardware, and provides device driver services for various hardware, such as: display driver for display 275, camera driver for camera, button driver for remote control, and WI The FI module provides a WiFi driver, an audio driver for the audio output interface, a power management driver for the power management (PM) module, and so on.
图3中,用户接口265,接收各种用户交互。具体的,用于将用户的输入信号发送给控制器250,或者,将从控制器250的输出信号传送给用户。示例性的,遥控器100A可将用户输入的诸如电源开关信号、频道选择信号、音量调节信号等输入信号发送至用户接口265,再由用户接口265转送至控制器250;或者,遥控器100A可接收经控制器250处理从用户接口265输出的音频、视频或数据等输出信号,并且显示接收的输出信号或将接收的输出信号输出为音频或振动形式。In FIG. 3, user interface 265, receives various user interactions. Specifically, it is used to send the user's input signal to the controller 250, or to transmit the output signal from the controller 250 to the user. Exemplarily, the remote control 100A may send input signals input by the user, such as power switch signals, channel selection signals, volume adjustment signals, etc., to the user interface 265, and then the user interface 265 forwards them to the controller 250; or, the remote control 100A may The controller 250 processes an output signal such as audio, video or data output from the user interface 265, and displays the received output signal or outputs the received output signal in the form of audio or vibration.
“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphicuserinterface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、控件、菜单、选项卡、文本框、对话框、状态栏、频道栏、Widget等可视的界面元素。"User interface" is a medium interface for interaction and information exchange between application programs or operating systems and users, which realizes the conversion between the internal form of information and the form acceptable to users. A commonly used form of user interface is a graphical user interface (graphic user interface, GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, wherein the control can include icons, controls, menus, tabs, text boxes, dialog boxes, status bars, channel bars, Widgets, etc. visual interface elements.
或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户接口265通过传感器识别出声音或手势,来接收用户输入命令。Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user interface 265 recognizes the sound or gesture through a sensor to receive the user input command.
图5示例性的示出了一种用户界面上可呈现的内容,可以包括但不限于直播电视、视频点播VOD、媒体中心、应用程序中心、游戏应用等中的至少一个。在应用程序中心中,可包含有需要使用摄像头的应用等。FIG. 5 exemplarily shows a content that can be presented on a user interface, which may include, but is not limited to, at least one of live TV, VOD, media center, application center, game application, and the like. In the application center, applications that need to use the camera can be included.
目前,随着智能电视的发展,智能旋转电视逐渐出现在用户的视野中。智能旋转电视包括有横屏显示和竖屏模式,通过横屏模式和竖屏模式可以方便用户采用不同的角度来观看电视节目。At present, with the development of smart TVs, smart rotating TVs gradually appear in the user's field of vision. The smart rotating TV includes a horizontal screen display and a vertical screen mode, and the horizontal screen mode and the vertical screen mode can facilitate users to watch TV programs from different angles.
相关技术中,智能旋转电视的摄像头可以固定在智能旋转电视上,也可以独立于电视放置在电视柜等其他位置。由于智能旋转电视可以为横屏模式和竖屏模式,从而导致摄像头采集到的图像在某一种模式下可能无法以正确的角度显示,或者,显示的范围偏离智能旋转电视的显示屏的中心。In the related art, the camera of the smart rotating TV can be fixed on the smart rotating TV, or can be placed in other positions such as a TV cabinet independently of the TV. Since the smart rotating TV can be in landscape mode and portrait mode, the image captured by the camera may not be displayed at the correct angle in a certain mode, or the display range may deviate from the center of the display screen of the smart rotating TV.
本申请实施例提供一种显示设备以及显示方法,通过摄像头的安装位置以及显示器的显示模式确定合适的显示比例显示摄像头采集到的图像,以避免摄像头采集到的图像在旋转电视中无法准确显示。Embodiments of the present application provide a display device and a display method, wherein an appropriate display ratio is determined by the installation position of the camera and the display mode of the display to display the image collected by the camera, so as to avoid the image collected by the camera from being unable to be accurately displayed on the rotating TV.
需要说明的是,本申请实施例涉及的摄像头,可以安装在显示设备上作为显示设备的一部分,也可以由外部接入显示设备,本申请实施例对此不做限制。It should be noted that the camera involved in the embodiments of the present application may be installed on the display device as a part of the display device, or may be externally connected to the display device, which is not limited in the embodiments of the present application.
可以理解,上述显示方法可以通过本申请实施例提的显示设备实现。下面以集成或安装有相关执行代码的显示设备为例以具体地实施例对本申请实施例的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。It can be understood that the above display method can be implemented by the display device provided in the embodiment of the present application. The technical solutions of the embodiments of the present application will be described in detail below by taking a display device integrated or installed with relevant execution codes as an example with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
本申请实施例提供一种显示方法,涉及如何在智能旋转电视中显示摄像头采集到的图像的具体过程。该显示方法可以由显示设备实现,或者,有显示设备中的控制器实现。An embodiment of the present application provides a display method, which involves a specific process of how to display an image captured by a camera in a smart rotating TV. The display method may be implemented by a display device, or implemented by a controller in the display device.
在本申请实施例中,当用户需要在显示设备上播放摄像头采集到的图像时,可以由用户向显示设备输入摄像头的开启指示。或者,当用户打开摄像头的开启按钮后,摄像头会向显示设备发送开启指示。In this embodiment of the present application, when the user needs to play the image captured by the camera on the display device, the user may input an instruction to turn on the camera to the display device. Alternatively, when the user turns on the turn-on button of the camera, the camera sends a turn-on instruction to the display device.
本申请实施例对于如何向显示设备输入摄像头的开启指示不做限制,在一些实施例中,用户可以通过点击遥控器上的按钮来向显示设备输入摄像头的开启指示。The embodiments of the present application do not limit how to input a camera turn-on instruction to the display device. In some embodiments, a user may input a camera turn-on instruction to the display device by clicking a button on the remote control.
随后,在本申请实施例中,当接收到开启指示后,显示设备可以根据摄像头的类型以及接入摄像头的串行总线端口,确定摄像头的安装位置。Subsequently, in the embodiment of the present application, after receiving the opening instruction, the display device may determine the installation position of the camera according to the type of the camera and the serial bus port to which the camera is connected.
其中,摄像头的类型可以包括第一类型和第二类型。第一类型可例如坐立式,第二类型可例如插入式。应理解,存在底座及外接引线的摄像头为第一类型,第一类型摄像头通常设置在电视柜上。应理解,整体嵌入到整机中,可以跟随整机一起旋转的摄像头为第二类型,第二类型射线头通常设置在显示器的横屏顶端或显示器的竖屏顶端。The types of cameras may include a first type and a second type. The first type may be, for example, a sit-stand type, and the second type may be, for example, a plug-in type. It should be understood that the camera with the base and the external lead is the first type, and the first type of camera is usually arranged on the TV cabinet. It should be understood that the camera that is integrally embedded in the whole machine and can rotate along with the whole machine is of the second type. The second type of ray head is usually arranged at the top of the horizontal screen of the display or the top of the vertical screen of the display.
在一些实施例中,摄像头的类型可以通过用户来输入。示例性的,若检测摄像头接入显示设备,则显示设备控制显示器显示摄像头类型界面。随后,由用户在摄像头类型界面中输入摄像头的类型。显示设备在接收到用户输入的摄像头的类型后,可以将摄像头的类型保存在本地。In some embodiments, the type of camera may be entered by the user. Exemplarily, if it is detected that the camera is connected to the display device, the display device controls the display to display the camera type interface. Then, the type of the camera is input by the user in the camera type interface. After receiving the camera type input by the user, the display device may save the camera type locally.
应理解,本申请实施例中摄像头的串行总线端口可以位于显示设备的横屏顶端或显示器的竖屏顶端,本申请实施例对此不做限制。It should be understood that the serial bus port of the camera in the embodiment of the present application may be located at the top of the horizontal screen of the display device or the top of the vertical screen of the display, which is not limited in the embodiment of the present application.
在一些实施例中,显示设备可以通过USB路径下的文件名来确定接入摄像头的串行总线端口。其中,文件名与接入设备的类型相关。示例性的,当摄像头插入显示设备后,可以在显示设备的摄像头目录中增加设备节点。随后,若查询到USB路径下的文件名是否满足videoX,则确定摄像头接入该USB端口。其中,X表示0,1等格式。In some embodiments, the display device can determine the serial bus port connected to the camera through the file name under the USB path. The file name is related to the type of the access device. Exemplarily, after the camera is inserted into the display device, a device node may be added to the camera directory of the display device. Then, if it is queried whether the file name under the USB path satisfies videoX, it is determined that the camera is connected to the USB port. Among them, X represents the format of 0, 1 and so on.
下面提供一些根据摄像头的类型以及接入摄像头的串行总线端口来确定摄像头的安装位置的方式。Below are some ways to determine the camera installation location based on the type of camera and the serial bus port to which the camera is connected.
在第一种情况中,若摄像头类型为第一类型,则确定摄像头未安装在显示设备上。In the first case, if the camera type is the first type, it is determined that the camera is not installed on the display device.
在第一种情况中,若摄像头类型为第二类型且接入摄像头的串行总线端口位于显示器的横屏顶端,则确定摄像头安装于显示器的横屏顶端。In the first case, if the camera type is the second type and the serial bus port connected to the camera is located at the top of the horizontal screen of the display, it is determined that the camera is installed at the top of the horizontal screen of the display.
在第一种情况中,若摄像头类型为第二类型且接入摄像头的串行总线端口位于显示器的竖屏顶端,则确定摄像头安装于显示器的竖屏顶端。In the first case, if the camera type is the second type and the serial bus port to which the camera is connected is located at the top of the vertical screen of the display, it is determined that the camera is installed at the top of the vertical screen of the display.
相关技术中,旋转电视的显示器由于可以旋转,被应用在多种使用场景中。为方便用户使用,当前旋转电视存在可以外接摄像头的端口,所述端口包括第一端口和第二端口,第一端口位于显示器处于横屏时显示器的上端,第二端口位于显示器处于竖屏时显示器的上端,即显示器处于横屏时显示器的一侧。In the related art, the display of the rotating TV is applied in various usage scenarios because it can be rotated. For the convenience of users, the current rotating TV has a port for connecting an external camera. The port includes a first port and a second port. The first port is located at the upper end of the display when the display is in landscape orientation, and the second port is located at the display when the display is in portrait orientation. , which is the side of the monitor when the monitor is in landscape orientation.
示例性的,图6a-6d示例性示出了根据一些实施例的摄像头的安装位置的示意图。如图6a-6d所示的摄像头均为第二类型摄像头。在图6a中,显示设备的显示器的显示模式为横屏显示,摄像头安装在述显示器的横屏顶端。在图6b中,显示设备的显示器的显示模式为横屏显示,摄像头安装在述显示器的竖屏顶端。在图6c中,显示设备的显示器的显示模式为竖屏显示,摄像头安装在述显示器的横屏顶端。在图6d中,显示设备的显示器的显示模式为竖屏显示,摄像头安装在述显示器的竖屏顶端。Illustratively, FIGS. 6a-6d exemplarily show schematic diagrams of installation positions of cameras according to some embodiments. The cameras shown in Figures 6a-6d are all second type cameras. In Fig. 6a, the display mode of the display of the display device is landscape display, and the camera is installed at the top of the landscape display. In Fig. 6b, the display mode of the display of the display device is landscape display, and the camera is installed at the top of the vertical screen of the display. In Fig. 6c, the display mode of the display of the display device is vertical screen display, and the camera is installed at the top of the horizontal screen of the display. In Fig. 6d, the display mode of the display of the display device is vertical screen display, and the camera is installed at the top of the vertical screen of the display.
在本申请实施例中,当确定摄像头的安装位置后,可以根据摄像头的安装位置以及显示器的显示模式,确定摄像头采集到的图像在显示器上的显示比例。In the embodiment of the present application, after the installation position of the camera is determined, the display ratio of the image collected by the camera on the display can be determined according to the installation position of the camera and the display mode of the display.
其中,显示比例用于表征图像在显示器上显示时的长宽比,可以通过分辨率来确定。显示比例可以包括第一显示比例和第二显示比例,第一显示比例用于显示横屏图像,第二显示比例用于显示竖屏图像。示例性的,第一显示比例可以为16:9,第一显示比例可以为9:16。Among them, the display ratio is used to represent the aspect ratio of the image when displayed on the display, which can be determined by the resolution. The display ratio may include a first display ratio and a second display ratio, the first display ratio is used for displaying a landscape screen image, and the second display ratio is used for displaying a portrait screen image. Exemplarily, the first display ratio may be 16:9, and the first display ratio may be 9:16.
下面对于如何确定显示比例进行说明。The following describes how to determine the display ratio.
在一些实施例中,若摄像头未安装在显示设备上且显示器的显示模式为横屏显示,或者,或者,摄像头安装于显示器的竖屏顶端、显示器的显示模式为横屏显示并且摄像头不支持第二显示比例,再或者,摄像头安装于显示器的横屏顶端且显示器的显示模式为横屏显示,则确定摄像头采集到的图像在显示器上以第一显示比例进行显示,第一显示比例用于显示横屏图像。In some embodiments, if the camera is not installed on the display device and the display mode of the display is landscape display, or, alternatively, the camera is installed at the top of the portrait screen of the display, the display mode of the display is landscape display and the camera does not support the first 2. Display ratio. Alternatively, if the camera is installed at the top of the horizontal screen of the display and the display mode of the display is horizontal display, then it is determined that the image captured by the camera is displayed on the display at the first display ratio, and the first display ratio is used to display Landscape image.
若摄像头安装于显示器的横屏顶端且显示器的显示模式为竖屏显示,则将摄像头采集到的图像旋转九十度后以第一显示比例进行显示。If the camera is installed at the top of the horizontal screen of the display and the display mode of the display is vertical screen display, the image captured by the camera is rotated by 90 degrees and displayed at the first display ratio.
在一些实施例中,若摄像头未安装在显示设备上且显示器的显示模式为竖屏显示,或者,摄像头安装于显示器的竖屏顶端、显示器的显示模式为竖屏显示,则对摄像头采集到的图像进行裁剪,并以第二显示比例显示裁剪后的图像,第二显示比例用于显示竖屏图像;In some embodiments, if the camera is not installed on the display device and the display mode of the display is vertical screen display, or if the camera is installed at the top of the vertical screen of the display and the display mode of the display is vertical screen display, then The image is cropped, and the cropped image is displayed in a second display ratio, and the second display ratio is used to display a portrait image;
在一些实施例中,若摄像头安装于显示器的竖屏顶端、显示器的显示模式为竖屏显示并且所述摄像头支持所述第二显示比例,则以第二显示比例显示摄像头采集到的图像。In some embodiments, if the camera is installed at the top of the vertical screen of the display, the display mode of the display is vertical screen display, and the camera supports the second display scale, the image captured by the camera is displayed at the second display scale.
在一些实施例中,若摄像头安装于显示器的竖屏顶端、显示器的显示模式为横屏显示并且所述摄像头支持所述第二显示比例,则将摄像头采集到的图像旋转九十度后以第二显示比例显示摄像头采集到的图像。In some embodiments, if the camera is installed at the top of the vertical screen of the display, the display mode of the display is landscape display, and the camera supports the second display ratio, the image captured by the camera is rotated by 90 degrees and displayed in the first The second display ratio displays the image captured by the camera.
下面对于显示过程中显示设备发生旋转的情况进行说明。The following describes the situation that the display device rotates during the display process.
若未安装在显示设备上,当显示器从横屏模式旋转为竖屏模式时,则对摄像头采集到的图像进行裁剪以满足第二显示比例,从而由第一显示比例转变为由第二显示比例显示摄 像头采集到的图像。当显示器从竖屏模式旋转为横屏模式时,则由第二显示比例转变为由第一显示比例显示摄像头采集到的图像。If it is not installed on the display device, when the display is rotated from the landscape mode to the portrait mode, the image captured by the camera is cropped to meet the second display ratio, so that the first display ratio is converted to the second display ratio. Displays the image captured by the camera. When the display is rotated from the portrait screen mode to the landscape screen mode, the image captured by the camera is displayed from the second display ratio to the first display ratio.
若摄像头安装于显示器的横屏顶端,当显示器从横屏模式旋转为竖屏模式时,则将摄像头采集到的图像旋转九十度后以第一显示比例进行显示。当显示器从竖屏模式旋转为横屏模式时,则将摄像头采集到的图像以第一显示比例进行显示。If the camera is installed at the top of the horizontal screen of the display, when the display is rotated from the horizontal screen mode to the vertical screen mode, the image captured by the camera is rotated by 90 degrees and displayed at the first display ratio. When the display is rotated from the portrait mode to the landscape mode, the image captured by the camera is displayed at the first display ratio.
若摄像头安装于显示器的竖屏顶端,当显示器从竖屏模式旋转为横屏模式时,则将摄像头采集到的图像旋转九十度后以第二显示比例进行显示。当显示器从横屏模式旋转为竖屏模式时,则将摄像头采集到的图像以第二显示比例进行显示If the camera is installed at the top of the vertical screen of the display, when the display is rotated from the vertical screen mode to the horizontal screen mode, the image captured by the camera is rotated by 90 degrees and displayed at the second display ratio. When the display is rotated from landscape mode to portrait mode, the image captured by the camera is displayed at the second display ratio
需要说明的是,若摄像头安装于显示器的竖屏顶端,但摄像头不支持第二显示比例,则可以将摄像头按照未安装在显示设备上的方式确定显示比例。It should be noted that, if the camera is installed at the top of the vertical screen of the display, but the camera does not support the second display ratio, the display ratio can be determined in a way that the camera is not installed on the display device.
在本申请实施例中,当确定摄像头采集到的图像在显示器上的显示比例,显示设备可以以显示比例在显示器上显示摄像头采集到的图像。In this embodiment of the present application, when the display ratio of the image collected by the camera on the display is determined, the display device may display the image collected by the camera on the display at the display ratio.
本申请实施例提供的显示方法,显示设备首先接收用户输入的摄像头的开启指示。其次,显示设备根据摄像头的安装位置以及显示器的显示模式,确定摄像头采集到的图像在显示器上的显示比例。最后,显示设备以显示比例在显示器上显示摄像头采集到的图像。与现有技术相比,本申请实施例通过摄像头的安装位置以及显示器的显示模式确定合适的显示比例显示摄像头采集到的图像,以避免摄像头采集到的图像在旋转电视中无法准确显示。In the display method provided by the embodiment of the present application, the display device first receives an instruction to turn on the camera input by the user. Secondly, the display device determines the display ratio of the image collected by the camera on the display according to the installation position of the camera and the display mode of the display. Finally, the display device displays the image captured by the camera on the display at the display ratio. Compared with the prior art, the embodiment of the present application determines an appropriate display ratio to display the image captured by the camera through the installation position of the camera and the display mode of the display, so as to avoid the image captured by the camera from being unable to be accurately displayed on the rotating TV.
图7示例性示出了根据一些实施例的一种显示方法的流程示意图,如图7所示,该方法包括:FIG. 7 exemplarily shows a schematic flowchart of a display method according to some embodiments. As shown in FIG. 7 , the method includes:
S301、接收摄像头的开启指示。S301. Receive an instruction for turning on the camera.
S302、根据摄像头的安装位置以及显示器的显示模式,确定摄像头采集到的图像在显示器上的显示比例。S302 , according to the installation position of the camera and the display mode of the display, determine the display ratio of the image collected by the camera on the display.
S303、以显示比例在显示器上显示摄像头采集到的图像。S303. Display the image collected by the camera on the display at a display ratio.
在上述实施例的基础上,下面对于如何确定摄像头采集到的图像在显示器上的显示比例进行详细说明。图8例性示出了根据一些实施例的另一种显示方法的流程示意图,如图8示,该方法包括:On the basis of the foregoing embodiment, the following describes in detail how to determine the display ratio of the image captured by the camera on the display. FIG. 8 exemplarily shows a schematic flowchart of another display method according to some embodiments. As shown in FIG. 8 , the method includes:
S401、接收用户输入的摄像头的开启指示。S401 . Receive a camera startup instruction input by a user.
S402、获取摄像头的类型、接入摄像头的串行总线端口以及摄像头支持的显示比例。S402. Obtain the type of the camera, the serial bus port connected to the camera, and the display ratio supported by the camera.
S403、确定摄像头类型是否为第一类型。S403. Determine whether the camera type is the first type.
若是,则执行步骤S404,若否,则执行步骤S407。If yes, go to step S404, if not, go to step S407.
S404、确定显示器的显示模式是否为横屏显示。S404. Determine whether the display mode of the display is landscape display.
若是,则执行步骤S405,若否则执行步骤S406。If yes, go to step S405, otherwise go to step S406.
S405、以第一显示比例显示摄像头采集到的图像。S405. Display the image collected by the camera at a first display scale.
S406、对摄像头采集到的图像进行裁剪,并以第二显示比例显示裁剪后的图像。S406 , crop the image collected by the camera, and display the cropped image in a second display ratio.
S407、确定接入摄像头的USB端口是否为横屏端口。S407. Determine whether the USB port connected to the camera is a horizontal screen port.
若是,则执行步骤S408,若否则执行步骤S411。If yes, go to step S408, otherwise go to step S411.
S408、确定显示器的显示模式是否为横屏显示。S408, determine whether the display mode of the display is landscape display.
若是,则执行步骤S409,若否则执行步骤S410。If yes, go to step S409, otherwise go to step S410.
S409、以第一显示比例显示摄像头采集到的图像。S409. Display the image collected by the camera at a first display scale.
S410、将摄像头采集到的图像旋转九十度后以第一显示比例显示摄像头采集到的图像。S410. After rotating the image collected by the camera by 90 degrees, display the image collected by the camera at a first display scale.
S411、确定摄像头是否支持第二显示比例。S411. Determine whether the camera supports the second display scale.
若是,则执行步骤S412,若否则执行步骤S404。If yes, go to step S412, otherwise go to step S404.
S412、确定显示器的显示模式是否为竖屏显示。S412. Determine whether the display mode of the display is vertical screen display.
若是,则执行步骤S413,若否则执行步骤S414。If yes, go to step S413, otherwise go to step S414.
S413、以第二显示比例显示摄像头采集到的图像。S413. Display the image collected by the camera at a second display scale.
S414、将摄像头采集到的图像旋转九十度后以第二显示比例显示摄像头采集到的图像。S414. After rotating the image collected by the camera by 90 degrees, display the image collected by the camera at a second display scale.
在上述实施例的基础上,下面对于显示设备如何获取接入的摄像头的类型进行说明。图9例性示出了根据一些实施例的再一种显示方法的流程示意图,如图9示,该方法包括:On the basis of the above-mentioned embodiment, the following describes how the display device acquires the type of the connected camera. FIG. 9 exemplarily shows a schematic flowchart of still another display method according to some embodiments. As shown in FIG. 9 , the method includes:
S501、若检测摄像头接入显示设备,则控制显示器显示摄像头类型界面。S501. If it is detected that the camera is connected to the display device, control the display to display the camera type interface.
S502、接收用户输入的摄像头的类型。S502. Receive the type of the camera input by the user.
S503、在显示设备的存储器中存储摄像头的类型。S503. Store the type of the camera in the memory of the display device.
本申请实施例对于如何检测显示设备中接入摄像头不做限制,在一些实施例中,显示设备在检测到USB插入事件后,可以获取显示设备的系统中挂载的摄像头的数量。若已挂载的摄像头的数量大于0,则确定有摄像头接入显示设备。The embodiments of the present application do not limit how to detect a camera connected to a display device. In some embodiments, after detecting a USB insertion event, the display device may acquire the number of cameras mounted in the system of the display device. If the number of mounted cameras is greater than 0, it is determined that a camera is connected to the display device.
应理解,在一些实施例中,当确定有摄像头接入显示设备,则显示设备可以直接控制显示器显示摄像头类型界面。在另一些实施例中,当确定有摄像头接入显示设备,还需要确定该显示设备是否已记录过该摄像头的类型。若未记录过摄像头的类型,则控制显示器显示摄像头类型界面。It should be understood that, in some embodiments, when it is determined that a camera is connected to the display device, the display device may directly control the display to display a camera type interface. In other embodiments, when it is determined that a camera is connected to the display device, it is also necessary to determine whether the display device has recorded the type of the camera. If the camera type has not been recorded, the display is controlled to display the camera type interface.
示例性的,显示设备可以通过获取摄像头的插入记录对应的属性来确定。若摄像头的插入记录对应的属性为0,则确定显示设备未记录过该摄像头的类型,此时可以控制显示器显示摄像头类型界面。若摄像头的插入记录对应的属性不为0,则确定显示设备已记录过该摄像头的类型,此时无需控制显示器显示摄像头类型界面。Exemplarily, the display device may determine by acquiring the attribute corresponding to the insertion record of the camera. If the attribute corresponding to the insertion record of the camera is 0, it is determined that the display device has not recorded the type of the camera, and at this time, the display can be controlled to display the camera type interface. If the attribute corresponding to the insertion record of the camera is not 0, it is determined that the display device has recorded the type of the camera, and in this case, there is no need to control the display to display the camera type interface.
应理解,本申请实施例中的摄像头类型界面用于供用户选择摄像头的类型。示例性的,图10性示出了根据一些实施例的摄像头类型界面的示意图,如图10,在摄像头类型界面中显示了第二类型以及第一类型两种摄像头的示意图,在第二类型以及第一类型两种摄像头的示意图下相同设置有对应的控件,用户通过触发控件来向显示设备输入的摄像头的类型。It should be understood that the camera type interface in this embodiment of the present application is used for a user to select a camera type. Exemplarily, FIG. 10 schematically shows a schematic diagram of a camera type interface according to some embodiments. As shown in FIG. 10 , a schematic diagram of two cameras of the second type and the first type is displayed in the camera type interface. The schematic diagrams of the two cameras of the first type are identically provided with corresponding controls, and the user can input the type of camera to the display device by triggering the controls.
在上述实施例的基础上,下面对于在开机导航下或开机动画下或音响模式下显示摄像头类型界面的情况进行说明。图11性示出了根据一些实施例的又一种显示方法的流程示意图,如图11,该方法包括:On the basis of the above embodiment, the following describes the case where the camera type interface is displayed under boot navigation, boot animation, or sound mode. FIG. 11 schematically shows a flowchart of another display method according to some embodiments, as shown in FIG. 11 , the method includes:
S601、确定是否有摄像头接入显示设备。S601. Determine whether a camera is connected to a display device.
若否,则执行步骤S602,若是,则执行步骤S603。If not, go to step S602, if yes, go to step S603.
S602、等待插入摄像头响应。S602, waiting for a response from the camera being inserted.
S603、确定是否处于开机导航模式下。S603. Determine whether the device is in the boot navigation mode.
若否,则执行步骤S604,若是,则每隔3s轮询一次步骤S603。If not, step S604 is executed; if yes, step S603 is polled every 3s.
S604、确定是否正在播放开机动画。S604. Determine whether the boot animation is being played.
若否,则执行步骤S605,若是,则每隔3s轮询一次步骤S604。If no, step S605 is executed; if yes, step S604 is polled every 3s.
S605、确定是否处于音响模式下。S605. Determine whether it is in the audio mode.
若是,则执行步骤S606,若否,则执行步骤S607。If yes, go to step S606, if not, go to step S607.
S606、退出音响模式。S606. Exit the audio mode.
S607、显示摄像头类型界面。S607. Display a camera type interface.
本申请实施例提供的显示方法,显示设备首先接收用户输入的摄像头的开启指示。其次,显示设备根据摄像头的类型以及接入摄像头的串行总线端口,确定摄像头的安装位置。再次,显示设备根据摄像头的安装位置以及显示器的显示模式,确定摄像头采集到的图像在显示器上的显示比例。最后,显示设备以显示比例在显示器上显示摄像头采集到的图像。与现有技术相比,本申请实施例通过摄像头的安装位置以及显示器的显示模式确定合适的显示比例显示摄像头采集到的图像,以避免摄像头采集到的图像在旋转电视中无法准确显示。In the display method provided by the embodiment of the present application, the display device first receives an instruction to turn on the camera input by the user. Secondly, the display device determines the installation position of the camera according to the type of the camera and the serial bus port connected to the camera. Thirdly, the display device determines the display ratio of the image collected by the camera on the display according to the installation position of the camera and the display mode of the display. Finally, the display device displays the image captured by the camera on the display at the display ratio. Compared with the prior art, the embodiment of the present application determines an appropriate display ratio to display the image captured by the camera through the installation position of the camera and the display mode of the display, so as to avoid the image captured by the camera from being unable to be accurately displayed on the rotating TV.
下面再以更加具体形象的方式,对本申请进行示例性的阐述。Hereinafter, the present application will be exemplarily described in a more concrete and figurative manner.
显示设备支持通过端口插入不同摄像头类型的摄像头,所述摄像头类型包括直插式类型或坐立式类型,如图12所示,直插式类型摄像头51是指摄像头会跟随显示器旋转,坐立式类型的摄像头52是指通过传输线53将摄像头和端口连接,当显示器旋转时坐立式类型的摄像头不发生旋转。The display device supports inserting cameras of different camera types through the port. The camera types include in-line type or sit-stand type. As shown in Figure 12, the in-line type camera 51 means that the camera rotates with the display, and the sit-stand type The type of camera 52 refers to the connection between the camera and the port through the transmission line 53, and the camera of the sit-stand type does not rotate when the display is rotated.
图13-19中显示有在不同情况下摄像头拍摄的图像,其中,图13-19中的图像是在拍摄对象位置不变的情况下拍摄得到。图13中示出了屏幕状态处于横屏状态,摄像头插入第一端口,且所述摄像头类型为直插式类型时,摄像头拍摄的图像,可以看出该图像正常显示。图14中示出了屏幕状态处于横屏状态,摄像头插入第一端口,且所述摄像头类型为坐立式类型时,摄像头拍摄的图像,可以看出该图像正常显示,并未发生旋转。本申请实施例中,坐立式类型的摄像头的摆放位置可以任意设置,示例性的,在拍摄得到图14中的图像时,坐立式类型的摄像头与图13中直插式摄像头的位置相同,图14中仅表示存在坐立式类型的摄像头,但并不表示在拍摄得到图14中的图像时坐立式摄像头的位置。Figures 13-19 show images captured by the camera in different situations, wherein the images in Figure 13-19 are captured under the condition that the position of the photographed object remains unchanged. FIG. 13 shows the image captured by the camera when the screen state is in the landscape state, the camera is inserted into the first port, and the camera type is an in-line type, and it can be seen that the image is displayed normally. FIG. 14 shows the image captured by the camera when the screen is in a landscape state, the camera is inserted into the first port, and the camera type is a sitting type. It can be seen that the image is displayed normally and does not rotate. In the embodiment of the present application, the placement position of the sit-to-stand type camera can be arbitrarily set. Exemplarily, when the image in FIG. 14 is captured, the positions of the sit-to-stand type camera and the in-line camera in FIG. 13 are In the same way, FIG. 14 only shows that there is a sit-stand type camera, but does not show the position of the sit-stand camera when the image in FIG. 14 is captured.
图15中示出了屏幕状态处于横屏状态,摄像头插入第二端口,且所述摄像头类型为直插式类型时,摄像头拍摄的图像,可以看出该图像不能正常显示,发生了旋转。Figure 15 shows the image captured by the camera when the screen is in the landscape state, the camera is inserted into the second port, and the camera type is an in-line type. It can be seen that the image cannot be displayed normally and rotates.
本申请实施例中由于摄像头位于第一端口和第二端口,相对于人物位置不同,所以位于第一端口上的摄像头和位于第二端口上的摄像头的拍摄范围也有所不同,示例性的,图14中人物未超出显示器的显示界面边界,图15中人物超出显示界面边界,此时用户可以通过调节人物位置实现人物全部位于显示界面内。In the embodiment of the present application, since the cameras are located at the first port and the second port, and the positions of the cameras are different with respect to the person, the shooting ranges of the cameras located on the first port and the cameras located on the second port are also different. Exemplary, Fig. In Figure 14, the characters do not exceed the display interface boundary of the display. In Figure 15, the characters exceed the display interface boundary. At this time, the user can adjust the position of the characters to realize that all characters are located in the display interface.
图16中示出了屏幕状态处于横屏状态,摄像头插入第二端口,且所述摄像头类型为坐立式类型时,摄像头拍摄的图像,可以看出该图像正常显示,并未发生旋转。图17中示出了屏幕状态处于竖屏状态,摄像头插入第一端口,且所述摄像头类型为直插式类型,摄像头拍摄的图像,可以看出该图像不能正常显示,发生了旋转。图18中示出了屏幕状态处于竖屏状态,摄像头插入第一端口,且所述摄像头类型为坐立式类型,摄像头拍摄的图像,可以看出该图像可以正常显示,并未发生旋转。图19中示出了屏幕状态处于竖屏状态,摄像头插入第二端口,且所述摄像头类型为直插式类型,摄像头拍摄的图像,可以看出该图像可以正常显示,并未发生旋转。图20中示出了屏幕状态处于竖屏状态,摄像头插入第二端口,且所述摄像头类型为坐立式类型,摄像头拍摄的图像,可以看出该图像 可以正常显示,并未发生旋转。Figure 16 shows the image captured by the camera when the screen is in the landscape state, the camera is inserted into the second port, and the camera type is the sitting type. It can be seen that the image is displayed normally and does not rotate. FIG. 17 shows that the screen state is in the vertical screen state, the camera is inserted into the first port, and the camera type is an in-line type. The image captured by the camera cannot be displayed normally and rotates. FIG. 18 shows that the screen state is in the vertical screen state, the camera is inserted into the first port, and the camera type is a sitting type. The image captured by the camera can be displayed normally without rotation. FIG. 19 shows that the screen state is in the vertical screen state, the camera is inserted into the second port, and the camera type is an in-line type. The image captured by the camera can be displayed normally without rotation. Figure 20 shows that the screen state is in the vertical screen state, the camera is inserted into the second port, and the camera type is a sit-stand type, and the image captured by the camera can be seen to be displayed normally without rotation.
综上,可以看出当屏幕状态处于横屏状态,摄像头插入第二端口,且所述摄像头类型为直插式类型,以及,屏幕状态处于竖屏状态,摄像头插入第一端口,且所述摄像头类型为直插式类型,两种情况下图像不能正常显示。需要说明的是,图15和图17中的异常情况的图像翻转方向仅为一个示例,在一些实施例中,异常情况还可以包括其他翻转方向,示例性的,如图15所示,以摄像头在显示设备的方向为正向,图15中的人像的头像所在方向位于摄像头相对显示设备的反向,在一些实施例中,该人像的头像所在方向位于摄像头相对显示设备的方向的同一方向上。To sum up, it can be seen that when the screen state is in the horizontal screen state, the camera is inserted into the second port, and the camera type is an in-line type, and when the screen state is in the vertical screen state, the camera is inserted into the first port, and the camera is inserted into the first port. The type is an in-line type, and the image cannot be displayed normally in two cases. It should be noted that the image flip direction of the abnormal situation in FIG. 15 and FIG. 17 is only an example. In some embodiments, the abnormal situation may also include other flip directions. Exemplarily, as shown in FIG. When the direction of the display device is forward, the direction of the head of the portrait in FIG. 15 is located in the opposite direction of the camera relative to the display device. In some embodiments, the direction of the head of the portrait is located in the same direction as the direction of the camera relative to the display device. .
需要说明的是,本申请涉及的方案针对插入显示设备的摄像头的数量为一个时展开,不针对插入两个摄像头的情况,当存在两个摄像头时提示用户拔出其中一个摄像头,或者按照预设方法选择其中一个摄像头用于拍摄图像。It should be noted that the solution involved in this application is deployed when the number of cameras inserted into the display device is one, and not for the situation where two cameras are inserted. When there are two cameras, the user is prompted to pull out one of the cameras, or the preset The method selects one of the cameras to use to capture the image.
为了解决上述技术问题,本申请实施例提供一种摄像头预览方向的确定方法,该方法可以当屏幕状态处于横屏状态,摄像头插入第二端口,且所述摄像头类型为直插式类型,以及,屏幕状态处于竖屏状态,摄像头插入第一端口,且所述摄像头类型为直插式类型的情况下,使摄像头拍摄的图像可以正常显示在显示器中。In order to solve the above technical problems, the embodiment of the present application provides a method for determining the preview direction of a camera, which can be used when the screen state is in a landscape state, the camera is inserted into the second port, and the camera type is an in-line type, and, When the screen state is in the vertical screen state, the camera is inserted into the first port, and the camera type is an in-line type, the image captured by the camera can be normally displayed on the display.
一些实施例中,所述方法,如图21所示,包括:In some embodiments, the method, as shown in Figure 21, includes:
S701、接收启动预设应用的指令,判断是否存在摄像头插入到显示设备。S701. Receive an instruction to start a preset application, and determine whether there is a camera inserted into the display device.
一些实施例中,所述启动预设应用的指令,所述预设应用可以为拍照应用,通过控制装置移动显示设备上的焦点,将焦点移动到该预设应用的控件上,并按压控制装置上的确认键,生成启动预设应用的指令,启动该预设应用后,用户界面显示如图22所示,在该用户界面的预览框中显示通过摄像头拍摄的图像。一些实施例中,用户可以通过控制装置将焦点移动到拍照控件上,实现拍摄照片的目的。In some embodiments, the instruction to start the preset application, the preset application may be a camera application, move the focus on the display device through the control device, move the focus to the control of the preset application, and press the control device. The confirmation button on the screen generates an instruction to start the preset application. After starting the preset application, the user interface is displayed as shown in Figure 22, and the image captured by the camera is displayed in the preview box of the user interface. In some embodiments, the user can move the focus to the photographing control through the control device to achieve the purpose of photographing.
如果存在摄像头插入到显示设备,则确定所述摄像头插入显示设备的端口信息,其中所述端口信息包括第一端口或第二端口。当存在摄像头插入到显示设备,则确定摄像头具体插入显示设备中的端口。If there is a camera inserted into the display device, determine the port information of the camera inserted into the display device, wherein the port information includes the first port or the second port. When there is a camera inserted into the display device, it is determined that the camera is specifically inserted into the port in the display device.
如果不存在摄像头插入到显示设备,则控制显示器显示插入摄像头的提示信息,该提示信息的形式不限,可以为图片、文字或声音,示例性的,如图23所示,该提示信息为未检测到摄像头,请检查当前摄像头是否已连接。If there is no camera inserted into the display device, the display is controlled to display the prompt information for inserting the camera. The form of the prompt information is not limited, and it can be a picture, text or sound. For example, as shown in FIG. 23, the prompt information is not Camera detected, please check if the current camera is connected.
一些实施例中,检测到摄像头插入显示设备,生成第一预设文件。所述判断是否存在摄像头插入到显示设备的步骤包括:判断是否存在第一预设文件;如果存在第一预设文件,则确定存在摄像头插入到显示设备;如果不存在第一预设文件,则确定不存在摄像头插入到显示设备。本申请实施例中,当摄像头插入显示设备,自动生成第一预设文件。当执行判断是否存在摄像头插入到显示设备的步骤时,直接判断是否存在第一预设文件。如果存在,则确定存在摄像头插入到显示设备,如果不存在,则不存在摄像头插入到显示设备。本申请也可以采用其他方法判断是否存在摄像头插入到显示设备,本申请对该方法并不做具体限制。In some embodiments, it is detected that the camera is inserted into the display device, and the first preset file is generated. The step of judging whether there is a camera inserted into the display device includes: judging whether there is a first preset file; if there is a first preset file, determining that there is a camera inserted into the display device; if the first preset file does not exist, then Make sure there is no camera plugged into the display device. In the embodiment of the present application, when the camera is inserted into the display device, the first preset file is automatically generated. When the step of determining whether there is a camera inserted into the display device is performed, it is directly determined whether there is a first preset file. If it exists, it is determined that there is a camera inserted into the display device, and if it does not exist, there is no camera inserted into the display device. The present application may also use other methods to determine whether there is a camera inserted into the display device, which is not specifically limited in the present application.
一些实施例中,获取端口信息、屏幕状态和旋转状态,其中所述端口信息用于指示摄像头插入的端口,所述屏幕状态用于指示屏幕横向或纵向放置,所述旋转状态用于指示图像是否发生旋转。In some embodiments, port information, screen status and rotation status are obtained, wherein the port information is used to indicate the port into which the camera is inserted, the screen status is used to indicate that the screen is placed in landscape or portrait orientation, and the rotation status is used to indicate whether the image is Rotation occurs.
一些实施例中,检测到摄像头插入显示设备,生成第二预设文件;所述确定所述摄像头插入显示设备的端口信息的步骤包括:判断是否存在第二预设文件;如果存在第二预设文件,则根据第二预设文件的文件名,确定端口信息。本申请实施例中,当摄像头插入显示设备,根据插入的端口自动生成第二预设文件。该第二预设文件的文件名根据端口生成,当插入到不同端口时,第二预设文件的文件名不同。当端口信息为第一端口时,第二预设文件的文件名为第一文件名;当端口信息为第二端口时,第二预设文件的文件名为第二文件名;所述根据第二预设文件的文件名,确定端口信息的步骤包括:判断是否存在第一文件名的第二预设文件,如果存在,则确定端口信息为第一端口,如果不存在,则确定端口信息为第二端口。In some embodiments, it is detected that the camera is inserted into the display device, and a second preset file is generated; the step of determining the port information of the camera inserted into the display device includes: judging whether there is a second preset file; if there is a second preset file; file, the port information is determined according to the file name of the second preset file. In the embodiment of the present application, when the camera is inserted into the display device, the second preset file is automatically generated according to the inserted port. The file name of the second preset file is generated according to the port, and when inserted into different ports, the file name of the second preset file is different. When the port information is the first port, the file name of the second preset file is the first file name; when the port information is the second port, the file name of the second preset file is the second file name; 2. The file name of the preset file, and the step of determining the port information includes: judging whether there is a second preset file with the first file name, if it exists, then determining that the port information is the first port, and if it does not exist, then determining that the port information is second port.
一些实施例中,所述确定旋转状态的步骤包括:获取摄像头拍摄的图像;根据所述图像,确定图像的旋转状态,所述旋转状态包括发生旋转或未发生旋转。一些实施例中,根据所述图像,确定图像的旋转状态的步骤包括:提取图像的特征,将所述特征输入预设分类器,确定图像的旋转状态。In some embodiments, the step of determining the rotation state includes: acquiring an image captured by a camera; and determining a rotation state of the image according to the image, where the rotation state includes rotation or no rotation. In some embodiments, according to the image, the step of determining the rotation state of the image includes: extracting features of the image, inputting the features into a preset classifier, and determining the rotation state of the image.
本申请实施例中,通过样本数据训练所述预设分类器。一些实施例中,所述图像的特征为纹理特征,所述纹理特征是指物体的轮廓。所述样本数据包括发生旋转时物体中的纹理特征和旋转状态,通过该样本数据训练预设分类器,需要说明的是,本申请实施例中,发生旋转仅是指发生90°旋转。In this embodiment of the present application, the preset classifier is trained through sample data. In some embodiments, the feature of the image is a texture feature, and the texture feature refers to the outline of an object. The sample data includes the texture feature and the rotation state of the object when the rotation occurs, and the preset classifier is trained by the sample data. It should be noted that, in the embodiment of the present application, the occurrence of rotation only refers to the occurrence of 90° rotation.
一些实施例中,提取图像的纹理特征,将所述纹理特征输入预设分类器,得到图像的旋转状态。In some embodiments, the texture feature of the image is extracted, and the texture feature is input into a preset classifier to obtain the rotation state of the image.
一些实施例中,所述预设分类器的数量可以为多个,示例性的,包括第一预设分类器和第二预设分类器,首先提取图像的特征,输入第一预设分类器,得到图像的旋转状态,为了避免利用第一预设分类器,确定图像的旋转状态不准确,将利用第一预设分类器确定的图像的旋转状态为发生旋转对应的图像,继续提取图像的与第二预设分类器对应的特征,输入第二预设分类器,得到图像的旋转状态,如果利用第二预设分类器,仍然确定图像的旋转状态为发生旋转,则最终确定图像的旋转状态为发生旋转,这样可以准确判定图像的旋转状态。In some embodiments, the number of the preset classifiers may be multiple, exemplarily, including a first preset classifier and a second preset classifier, first extract the features of the image, and input the first preset classifier. , obtain the rotation state of the image, in order to avoid using the first preset classifier to determine that the rotation state of the image is inaccurate, the rotation state of the image determined by the first preset classifier is the image corresponding to the rotation, and continue to extract the rotation state of the image. The feature corresponding to the second preset classifier is input into the second preset classifier to obtain the rotation state of the image. If the second preset classifier is used, it is still determined that the rotation state of the image is rotated, then the rotation of the image is finally determined. The state is rotated, so that the rotation state of the image can be accurately determined.
本申请实施例中,所述显示设备还包括陀螺仪,利用所述陀螺仪确定屏幕状态,所述屏幕状态用于指示屏幕横向或纵向放置。In this embodiment of the present application, the display device further includes a gyroscope, and the gyroscope is used to determine a screen state, where the screen state is used to indicate that the screen is placed in a landscape orientation or a portrait orientation.
本申请实施例中,在将图像显示在用户界面上之前,通过调整摄像头拍摄的图像,使图像可以正常的显示在用户界面上,避免出现图像旋转,影响用户的使用。In the embodiment of the present application, before the image is displayed on the user interface, the image captured by the camera is adjusted so that the image can be displayed on the user interface normally, so as to avoid image rotation and affect the use of the user.
一些实施例中,S702、根据所述端口信息、屏幕状态和旋转状态,确定摄像头类型。In some embodiments, in S702, the camera type is determined according to the port information, the screen state and the rotation state.
一些实施例中,根据所述端口信息、屏幕状态和旋转状态,确定摄像头类型的步骤包括:In some embodiments, according to the port information, the screen state and the rotation state, the step of determining the camera type includes:
所述屏幕状态包括横屏状态或竖屏状态;所述旋转状态包括发生旋转或未发生旋转;所述摄像头类型包括直插式类型或坐立式类型。一些实施例中,所述直插式类型的摄像头可以为外接摄像头,另一些实施例中,所述直插式类型的摄像头可以为内置在显示设备中的摄像头。The screen state includes a landscape screen state or a portrait screen state; the rotation state includes rotation or no rotation; and the camera type includes an in-line type or a sit-stand type. In some embodiments, the in-line type camera may be an external camera, and in other embodiments, the in-line type camera may be a camera built in a display device.
如果所述端口信息为第一端口,所述屏幕状态为竖屏状态,且所述图像发生旋转,则确定所述摄像头类型为直插式类型。If the port information is the first port, the screen state is a portrait screen state, and the image is rotated, it is determined that the camera type is an in-line type.
如果所述端口信息为第二端口,所述屏幕状态为横屏状态,且所述图像发生旋转,则确定所述摄像头类型为直插式类型。If the port information is the second port, the screen state is a landscape state, and the image is rotated, it is determined that the camera type is an in-line type.
如果所述端口信息为第一端口,所述屏幕状态为横屏状态,且所述图像未发生旋转,则确定所述摄像头类型为预设类型,所述预设类型包括直插式类型或坐立式类型。If the port information is the first port, the screen state is a landscape state, and the image is not rotated, it is determined that the camera type is a preset type, and the preset type includes an in-line type or a sitting type. Vertical type.
如果所述端口信息为第二端口,所述屏幕状态为横屏状态,且所述图像未发生旋转,则确定所述摄像头类型为坐立式类型。If the port information is the second port, the screen state is a landscape state, and the image is not rotated, it is determined that the camera type is a sit-stand type.
如果所述端口信息为第一端口,所述屏幕状态为竖屏状态,且所述图像未发生旋转,则确定所述摄像头类型为坐立式类型。If the port information is the first port, the screen state is a portrait screen state, and the image is not rotated, it is determined that the camera type is a sit-stand type.
如果所述端口信息为第二端口,所述屏幕状态为竖屏状态,且图像未发生旋转,则确定所述摄像头类型为预设类型。If the port information is the second port, the screen state is a portrait screen state, and the image is not rotated, it is determined that the camera type is a preset type.
一些实施例中,S703、根据所述摄像头类型、端口信息和屏幕状态,控制摄像头拍摄图像,以使拍摄得到的图像正常显示在所述显示器中,所述正常显示在显示器中是指图像并未发生旋转。In some embodiments, S703: Control the camera to capture an image according to the camera type, port information and screen status, so that the captured image is displayed on the display normally, and the normal display on the display means that the image is not displayed. Rotation occurs.
一些实施例中,根据所述摄像头类型、端口信息和屏幕状态,控制摄像头拍摄图像的步骤包括:In some embodiments, according to the camera type, port information and screen status, the step of controlling the camera to capture images includes:
如果所述摄像头类型为坐立式类型,所述屏幕状态为横屏状态,控制摄像头按照预设预览图像比例m:n,拍摄图像;接收显示器旋转指令,改变屏幕状态且旋转所述显示器至竖屏。当接收到显示器旋转指令,将屏幕状态改变至竖屏状态,一些实施例中,用户界面上设置有旋转控件,用户可以通过控制装置将焦点移动到旋转控件上,并按压控制装置上的确认键,实现生成显示器旋转指令;当显示器的屏幕状态为竖屏状态,判断摄像头是否支持预览图像比例n:m,如果支持,则控制摄像头按照预览图像比例n:m拍摄图像;如果不支持,则将摄像头按照预设预览图像比例拍摄的图像,按照预览图像比例n:m截取,最大限度保留拍摄的图像内容,将截取后的图像显示在显示器中。示例性的,所述显示器的比例为m:n,显示器的尺寸为1920:1080,所述预设预览图像比例为m:n,m为16,n为9。当显示器的屏幕状态为竖屏状态时,且不支持预览图像比例9:16,则将按照预设预览图像比例16:9的图像进行截取,截取图像的预览图像比例为9:16,并将该截取后的图像显示在显示器中,需要说明的是,一些实施例中,在显示截取后的图像时可以将该图像方法,使该图像被全屏显示。If the camera type is a sit-stand type and the screen state is a landscape screen state, control the camera to capture images according to the preset preview image ratio m:n; receive a display rotation instruction, change the screen state and rotate the display to vertical Screen. When the display rotation instruction is received, the screen state is changed to the vertical screen state. In some embodiments, a rotation control is provided on the user interface. The user can move the focus to the rotation control through the control device and press the confirmation key on the control device. , to generate the display rotation instruction; when the screen state of the display is in the vertical screen state, determine whether the camera supports the preview image ratio n:m, if so, control the camera to shoot images according to the preview image ratio n:m; if not, it will The image captured by the camera according to the preset preview image ratio is captured according to the preview image ratio n:m, the captured image content is preserved to the maximum extent, and the captured image is displayed on the display. Exemplarily, the ratio of the display is m:n, the size of the display is 1920:1080, the ratio of the preset preview image is m:n, m is 16, and n is 9. When the screen state of the display is in the vertical screen state and the preview image ratio 9:16 is not supported, the image with the preset preview image ratio of 16:9 will be captured, and the preview image ratio of the captured image will be 9:16, and the The captured image is displayed on the display. It should be noted that, in some embodiments, when the captured image is displayed, the image method can be used to display the image in full screen.
本申请实施例中预存有摄像头支持的预览图像比例,示例性的,当摄像头支持预览图像比例n:m,则摄像头拍摄的图像比例为n:m,但是由于不同的摄像头的性能不同,一些摄像头不能支持预览图像比例n:m。所以当屏幕状态为横屏状态,接收到显示器旋转指令,将显示器旋转至竖屏,由于摄像头不支持预览图像比例n:m,则需要对摄像头拍摄的图像进行处理,将处理后的图像显示在显示器中,本申请实施例中,将摄像头拍摄的图像按照预览图像比例n:m进行截取,将截取后的图像显示在显示器中,这样可以满足显示器需要显示n:m比例的要求。In the embodiment of the present application, the preview image ratio supported by the camera is pre-stored. Exemplarily, when the camera supports the preview image ratio n:m, the image ratio captured by the camera is n:m. However, due to the different performances of different cameras, some cameras Preview image ratio n:m cannot be supported. Therefore, when the screen state is in the horizontal screen state, the display rotation command is received and the display is rotated to the vertical screen. Since the camera does not support the preview image ratio n:m, the image captured by the camera needs to be processed, and the processed image is displayed in the In the display, in the embodiment of the present application, the image captured by the camera is intercepted according to the preview image ratio n:m, and the intercepted image is displayed on the display, which can meet the requirement that the display needs to display the n:m ratio.
如果所述摄像头类型为坐立式类型,所述屏幕状态为竖屏状态,判断摄像头是否支持预览图像比例n:m,如果支持,则控制摄像头按照预览图像比例n:m,拍摄图像;如果不支持,则将摄像头按照预设预览图像比例拍摄的图像,按照预览图像比例n:m截取,将截取后的图像显示在显示器中;接收显示器旋转指令,控制改变屏幕状态,且旋转所述显示 器至横屏,控制摄像头按照预设预览比例m:n拍摄图像,将拍摄的图像显示在显示器中。If the camera type is a sitting-stand type and the screen state is a vertical screen state, determine whether the camera supports the preview image ratio n:m, if so, control the camera to capture images according to the preview image ratio n:m; if not If yes, the image captured by the camera according to the preset preview image ratio is captured according to the preview image ratio n:m, and the captured image is displayed on the display; the display rotation instruction is received, the screen state is controlled to be changed, and the display is rotated to Horizontal screen, control the camera to capture images according to the preset preview ratio m:n, and display the captured images on the monitor.
如果所述摄像头类型为直插式类型,所述端口信息为第一端口,且所述屏幕状态为竖屏状态,将摄像头按照预设预览图像比例m:n拍摄的图像,旋转预设角度后,显示在显示器上,示例性的,所述预设角度为90°,当旋转预设角度后,图像正常显示在显示器上,未发生旋转。接收显示器旋转指令,改变屏幕状态且旋转所述显示器至横屏,控制摄像头按照预设预览图像比例m:n,拍摄图像,将拍摄的图像显示在显示中。If the type of the camera is an in-line type, the port information is the first port, and the screen state is the vertical screen state, the image captured by the camera according to the preset preview image ratio m:n is rotated by the preset angle. , which is displayed on the display. Exemplarily, the preset angle is 90°. After the preset angle is rotated, the image is normally displayed on the display without rotation. Receive a display rotation instruction, change the screen state and rotate the display to landscape, control the camera to capture images according to the preset preview image ratio m:n, and display the captured images on the display.
如果所述摄像头类型为直插式类型,所述端口信息为第一端口,且所述屏幕状态为横屏状态,控制摄像头按照预设预览图像比例m:n,拍摄图像;接收显示器旋转指令,改变屏幕状态且旋转所述显示器至竖屏,将摄像头按照预设预览图像比例m:n拍摄的图像,旋转预设角度后,显示在显示器上。If the camera type is an in-line type, the port information is the first port, and the screen state is a horizontal screen state, control the camera to capture images according to the preset preview image ratio m:n; receive a display rotation instruction, The screen state is changed and the display is rotated to a vertical screen, and the image captured by the camera according to the preset preview image ratio m:n is rotated by the preset angle and displayed on the display.
如果所述摄像头类型为直插式类型,且所述端口信息为第二端口,判断摄像头是否支持预览图像比例n:m,如果支持,判断是否所述屏幕状态是竖屏状态,如果所述屏幕状态为竖屏状态,则控制摄像头按照预览图像比例n:m,拍摄图像;接收显示器旋转指令,改变屏幕状态且旋转所述显示器至横屏,将摄像头按照预览图像比例n:m拍摄的图像,旋转预设角度后,显示在显示器上;如果所述屏幕状态为横屏状态,则将摄像头按照预览图像比例n:m拍摄的图像,旋转预设角度后,显示在显示器上,接收显示器旋转指令,改变屏幕状态且旋转所述显示器至竖屏,控制摄像头按照预览图像比例n:m拍摄图像,并将图像显示在显示器上。If the camera type is an in-line type and the port information is the second port, determine whether the camera supports the preview image ratio n:m; If the state is the vertical screen state, then control the camera to capture images according to the preview image ratio n:m; receive the display rotation instruction, change the screen state and rotate the display to the horizontal screen, and take the image captured by the camera according to the preview image ratio n:m, After rotating the preset angle, it is displayed on the display; if the screen state is landscape, the image captured by the camera according to the preview image ratio n:m is rotated by the preset angle, displayed on the display, and the display rotation instruction is received. , change the screen state and rotate the display to a vertical screen, control the camera to capture images according to the preview image ratio n:m, and display the images on the display.
如果不支持,判断是否所述屏幕状态为竖屏状态,如果所述屏幕状态为竖屏状态,则将摄像头按照预设预览图像比例拍摄的图像,按照预览图像比例n:m截取,将截取后的图像显示在显示器上;接收显示器旋转指令,改变屏幕状态且旋转所述显示器至横屏,控制摄像头按照预设预览图像比例m:n拍摄图像,并旋转预设角度,将旋转后的图像显示在显示器上;如果所述屏幕状态为横屏状态,则将摄像头按照预设预览图像比例拍摄的图像m:n的图像截取,截取得到比例n:m的图像,并将截取得到的图像旋转预设角度,显示在显示器上;接收显示器旋转指令,改变屏幕状态且所述显示器至竖屏,将图像反向旋转预设角度,并显示在显示器上。一些实施例中,截取并旋转后的图像全屏显示在显示器上。If it is not supported, determine whether the screen state is in the vertical screen state, and if the screen state is in the vertical screen state, the image captured by the camera according to the preset preview image ratio is captured according to the preview image ratio n:m, and the captured image The displayed image is displayed on the display; receiving the rotation instruction of the display, changing the screen state and rotating the display to the horizontal screen, controlling the camera to capture the image according to the preset preview image ratio m:n, and rotating the preset angle, and displaying the rotated image On the display; if the screen state is the horizontal screen state, then the image of the image m:n captured by the camera according to the preset preview image ratio is intercepted, the image of the ratio n:m is captured, and the captured image is rotated and previewed. Set the angle and display it on the display; receive the rotation instruction of the display, change the screen state and the display to the vertical screen, rotate the image in the reverse direction by a preset angle, and display it on the display. In some embodiments, the cropped and rotated image is displayed full screen on the display.
上述实施例中,一种摄像头预览方向的确定方法及显示设备,本申请实施例根据摄像头类型、端口信息和屏幕状态,调整摄像头拍摄的图像,以使得图像正常显示在显示器中,提高用户的使用体验。该方法包括:接收启动预设应用的指令,获取端口信息、屏幕状态和旋转状态,其中所述端口信息用于指示摄像头插入的端口,所述屏幕状态用于指示屏幕横向或纵向放置,所述旋转状态用于指示图像是否发生旋转;根据所述端口信息、屏幕状态和旋转状态,确定摄像头类型;根据所述摄像头类型、端口信息和屏幕状态,控制摄像头拍摄图像。In the above-mentioned embodiment, a method for determining the preview direction of a camera and a display device, the embodiment of the present application adjusts the image captured by the camera according to the type of the camera, port information and screen status, so that the image is normally displayed on the display, improving the user's use experience. The method includes: receiving an instruction to start a preset application, and obtaining port information, a screen state and a rotation state, wherein the port information is used to indicate a port into which a camera is inserted, the screen state is used to indicate that the screen is placed in a landscape orientation or a portrait orientation, and the The rotation status is used to indicate whether the image is rotated; the camera type is determined according to the port information, the screen status and the rotation status; the camera is controlled to capture images according to the camera type, the port information and the screen status.
本申请的另一种实现图像不出错方式是提前提醒用户插入到哪个插口中,以使得图像不出错。例如,根据当前显示器的横屏状态,提醒用户插入到长边方向(此时的屏幕上方)的接口中;根据当前显示器的竖屏状态,提醒用户插入到短边方向(此时的屏幕上方)的接口中。Another way of realizing the image error-free in the present application is to remind the user in advance which socket to insert into, so that the image is error-free. For example, according to the current horizontal screen state of the display, the user is reminded to insert into the interface in the long-side direction (the top of the screen at this time); according to the current vertical screen state of the display, the user is reminded to insert into the short-side direction (the top of the screen at this time) in the interface.
也就是说,如何对摄像头进行选择,以及如何保证摄像头拍摄的图像显示在显示器中不发生旋转,成为本领域技术人员亟待解决的问题。That is to say, how to select the camera and how to ensure that the image captured by the camera is displayed on the display without being rotated have become problems to be solved by those skilled in the art.
本申请实施例提供一种摄像头拍摄图像的方法,该方法可以在多个摄像头插入显示设备时,将摄像头拍摄的图像正常的显示在显示器中,此时图像在显示器中显示时未发生旋转。An embodiment of the present application provides a method for capturing an image with a camera, which can normally display images captured by the cameras on a display when multiple cameras are inserted into a display device, and the images are not rotated when displayed on the display.
所述方法,如图24所示,包括:The method, as shown in Figure 24, includes:
S801、接收启动预设应用的指令,获取显示设备上的端口被摄像头插入的顺序和屏幕状态,所述屏幕状态用于指示屏幕横向或纵向放置。S801. Receive an instruction to start a preset application, and acquire the sequence in which the ports on the display device are inserted by the camera and the screen status, where the screen status is used to indicate that the screen is placed horizontally or vertically.
一些实施例中,所述预设应用可以为拍照应用,通过控制装置移动显示设备上的焦点,将焦点移动到该预设应用的控件上,并按压控制装置上的确认键,生成启动预设应用的指令,启动该预设应用后,用户界面显示如图22所示,在该用户界面的预览框中显示通过摄像头拍摄的图像。一些实施例中,用户可以通过控制装置将焦点移动到拍照控件上,实现拍摄照片的目的。In some embodiments, the preset application may be a camera application, and the focus on the display device is moved by the control device, the focus is moved to the control of the preset application, and the confirmation key on the control device is pressed to generate a startup preset. After starting the preset application, the user interface is displayed as shown in FIG. 22, and the image captured by the camera is displayed in the preview box of the user interface. In some embodiments, the user can move the focus to the photographing control through the control device to achieve the purpose of photographing.
一些实施例中,确定显示设备上的端口被摄像头插入的顺序的步骤包括:In some embodiments, the step of determining the order in which the ports on the display device are inserted by the camera includes:
启动预设服务,利用预设服务判断是否存在摄像头插入到显示设备,以及监听端口插入信息,所述端口插入信息包括端口被摄像头插入和摄像头从端口拔出。本申请实施例中,所述预设服务可以为后台服务(GlobalUI)。Start the preset service, use the preset service to determine whether there is a camera inserted into the display device, and monitor port insertion information, where the port insertion information includes the port inserted by the camera and the camera unplugged from the port. In this embodiment of the present application, the preset service may be a background service (GlobalUI).
一些实施例中,检测到摄像头插入显示设备,生成第一预设文件。所述判断是否存在摄像头插入到显示设备的步骤包括:判断是否存在第一预设文件;如果存在第一预设文件,则确定存在摄像头插入到显示设备;如果不存在第一预设文件,则确定不存在摄像头插入到显示设备。本申请实施例中,当摄像头插入显示设备,自动生成第一预设文件。当执行判断是否存在摄像头插入到显示设备的步骤时,直接判断是否存在第一预设文件。如果存在,则确定存在摄像头插入到显示设备,如果不存在,则不存在摄像头插入到显示设备。本申请也可以采用其他方法判断是否存在摄像头插入到显示设备,本申请对该方法并不做具体限制。In some embodiments, it is detected that the camera is inserted into the display device, and the first preset file is generated. The step of judging whether there is a camera inserted into the display device includes: judging whether there is a first preset file; if there is a first preset file, determining that there is a camera inserted into the display device; if the first preset file does not exist, then Make sure there is no camera plugged into the display device. In the embodiment of the present application, when the camera is inserted into the display device, the first preset file is automatically generated. When the step of determining whether there is a camera inserted into the display device is performed, it is directly determined whether there is a first preset file. If it exists, it is determined that there is a camera inserted into the display device, and if it does not exist, there is no camera inserted into the display device. The present application may also use other methods to determine whether there is a camera inserted into the display device, which is not specifically limited in the present application.
如果不存在摄像头插入到显示设备,则控制显示器显示插入摄像头的提示信息,该提示信息的形式不限,可以为图片、文字或声音,示例性的,如图23所示,该提示信息为未检测到摄像头,请检查当前摄像头是否已连接。If there is no camera inserted into the display device, the display is controlled to display the prompt information for inserting the camera. The form of the prompt information is not limited, and it can be a picture, text or sound. For example, as shown in FIG. 23, the prompt information is not Camera detected, please check if the current camera is connected.
一些实施例中,如果存在摄像头插入到显示设备,且第一端口和第二端口均被插入,则控制显示器显示拔出摄像头的提示信息,该拔出摄像头的提示信息的形式也不做限制,示例性的,如图25所示,该提示信息为为了保证你的最佳使用状态,请确认摄像头始终仅插在屏幕正上方。In some embodiments, if there is a camera inserted into the display device, and both the first port and the second port are inserted, the display is controlled to display a prompt message for unplugging the camera, and the form of the prompt message for unplugging the camera is also not limited. Exemplarily, as shown in Figure 25, the prompt message is to ensure that you are in the best use state, please make sure that the camera is always only inserted directly above the screen.
一些实施例中,如果存在摄像头插入到显示设备中,确定显示设备上的端口被摄像头插入的顺序。当监听到端口被摄像头插入,或者监听到摄像头从端口中拔出时,更新显示设备上的端口被摄像头插入的顺序。当监听到摄像头从端口中拔出或监听到端口被摄像头插入时,根据所述屏幕状态,利用更新后顺序中的位于预设次序的端口对应的摄像头,拍摄图像。In some embodiments, if there is a camera inserted into the display device, the order in which the ports on the display device are inserted by the camera is determined. When listening to the port being inserted by the camera, or listening to the camera being unplugged from the port, update the order in which the ports on the display device are inserted by the camera. When it is monitored that the camera is pulled out of the port or that the port is inserted by the camera, according to the screen state, the camera corresponding to the port in the preset sequence in the updated sequence is used to capture an image.
当存在摄像头插入到显示设备中,首先确定摄像头插入显示设备的端口信息,所述端口信息包括第一端口和/或第二端口,同时确定有每一个端口对应的插入顺序。当识别到摄像头插入第一端口后,确定该端口被插入的插入顺序。当识别到摄像头插入第二端口后,确定该端口被插入的插入顺序。When there is a camera inserted into the display device, first determine the port information of the camera inserted into the display device, the port information includes the first port and/or the second port, and determine the insertion sequence corresponding to each port. When it is recognized that the camera is inserted into the first port, the insertion sequence in which the port is inserted is determined. After it is recognized that the camera is inserted into the second port, the insertion sequence in which the port is inserted is determined.
一些实施例中,检测到摄像头插入显示设备,生成第二预设文件。所述确定所述摄像头插入显示设备的端口信息的步骤包括:判断是否存在第二预设文件;如果存在第二预设文件,则根据第二预设文件的文件名,确定端口信息。本申请实施例中,当摄像头插入显示设备,根据插入的端口自动生成第二预设文件。该第二预设文件的文件名根据端口生成,当插入到不同端口时,第二预设文件的文件名不同。当端口信息为第一端口时,第二预设文件的文件名为第一文件名;当端口信息为第二端口时,第二预设文件的文件名为第二文件名;所述根据第二预设文件的文件名,确定端口信息的步骤包括:判断是否存在第一文件名的第二预设文件,如果存在,则确定端口信息为第一端口,如果不存在,则确定端口信息为第二端口。In some embodiments, it is detected that the camera is inserted into the display device, and the second preset file is generated. The step of determining the port information of the camera inserted into the display device includes: judging whether there is a second preset file; if there is a second preset file, determining the port information according to the file name of the second preset file. In the embodiment of the present application, when the camera is inserted into the display device, the second preset file is automatically generated according to the inserted port. The file name of the second preset file is generated according to the port, and when inserted into different ports, the file name of the second preset file is different. When the port information is the first port, the file name of the second preset file is the first file name; when the port information is the second port, the file name of the second preset file is the second file name; 2. The file name of the preset file, and the step of determining the port information includes: judging whether there is a second preset file with the first file name, if it exists, then determining that the port information is the first port, and if it does not exist, then determining that the port information is second port.
一些实施例中,该第二预设文件包括第一标识。当摄像头插入到显示设备时,摄像头按插入顺序被配置第一标识,示例性的,第一个摄像头插入到显示设备,此时将该摄像头被配置第一标识(videox)为0,第二个摄像头插入到显示设备,此时将该摄像头被配置第一标识为1。当第一个摄像头从显示设备中拔出,第三个摄像头插入显示设备,则此时该摄像头被配置为第一标识为2。In some embodiments, the second preset file includes the first identifier. When the camera is inserted into the display device, the cameras are configured with the first identifier in the order of insertion. Exemplarily, the first camera is inserted into the display device. At this time, the camera is configured with the first identifier (videox) as 0, and the second camera is configured with the first identifier (videox) as 0. The camera is inserted into the display device, and the camera is configured with a first identifier of 1 at this time. When the first camera is unplugged from the display device and the third camera is inserted into the display device, at this time, the camera is configured with a first identifier of 2.
显示设备上的端口被配置第二标识,所述第二标识(logicalID)是根据插入端口的摄像头的第一标识(videox)确定的,所述第二标识包括第三标识LandscapeID和第四标识PortraitID表示,所述第三标识为第一端口的标识,所述第四标识为第二端口的标识。示例性的,第一标识为0的摄像头插入的端口为第一端口,此时第三标识LandscapeID为0,第一标识为1的摄像头插入的端口为第二端口,此时第四标识PortraitID为1。与此同时,在摄像头插入到显示设备的端口时,确定端口被摄像头插入的顺序,利用第五标识表示,所述第五标识包括第六标识LandscapeInsertID和第七标识PortraitInsterID表示,所述第五标识为第一端口插入次序的标识,所述第六标识为第二端口插入次序的标识,示例性的,首先被插入摄像头的端口为第一端口,此时对应的第六标识为0,其次被插入摄像头的端口为第二端口,此时对应的第七标识为1。当第六标识为0的端口中的摄像头被拔出,将原第七标识为1的端口对应的第七标识由1改变为0,第六标识由0改变为默认值-1。需要说明的是,第五标识为非负数,且数值越小,代表对应的端口越先被插入。The port on the display device is configured with a second identification, the second identification (logicalID) is determined according to the first identification (videox) of the camera inserted into the port, and the second identification includes the third identification LandscapeID and the fourth identification PortraitID means that the third identifier is the identifier of the first port, and the fourth identifier is the identifier of the second port. Exemplarily, the port into which the camera with the first identification 0 is inserted is the first port, the third identification LandscapeID is 0 at this time, the port into which the camera with the first identification 1 is inserted is the second port, and the fourth identification PortraitID is 1. At the same time, when the camera is inserted into the port of the display device, the order in which the port is inserted by the camera is determined, and is represented by a fifth identifier, which includes a sixth identifier LandscapeInsertID and a seventh identifier PortraitInsterID, and the fifth identifier It is the identification of the first port insertion order, and the sixth identification is the identification of the second port insertion order. Exemplarily, the port that is first inserted into the camera is the first port, and the corresponding sixth identification is 0 at this time. The port into which the camera is inserted is the second port, and the corresponding seventh identifier is 1 at this time. When the camera in the port whose sixth identifier is 0 is pulled out, the seventh identifier corresponding to the port whose seventh identifier is 1 is changed from 1 to 0, and the sixth identifier is changed from 0 to the default value -1. It should be noted that the fifth identifier is a non-negative number, and the smaller the value is, the earlier the corresponding port is inserted.
下面针对以下场景,确定第六标识和第七标识,最终确定端口被摄像头插入的顺序,一些实施例中,预设次序的端口为顺序中的位于首位的端口。In the following scenarios, the sixth identifier and the seventh identifier are determined, and finally the order in which the ports are inserted by the camera is determined. In some embodiments, the ports in the preset order are the first ports in the order.
场景一:显示设备处于开机状态,且未插入摄像头的状态下,插入一个摄像头。如果是第一端口被插入摄像头,所述第一标识为X,对应的第三标识为X,代表插入次序的第六标识为0。第二端口未被插入,此时第一标识设置为默认值-1,第四标识为-1,代表插入次序的第七标识为-1。由于第六标识为非负数,所以插入第一端口作为插入顺序中位于首位的端口。Scenario 1: Insert a camera when the display device is turned on and the camera is not inserted. If the camera is inserted into the first port, the first identifier is X, the corresponding third identifier is X, and the sixth identifier representing the insertion order is 0. The second port is not inserted. At this time, the first flag is set to a default value of -1, the fourth flag is -1, and the seventh flag representing the insertion order is -1. Since the sixth identifier is a non-negative number, the first port is inserted as the first port in the insertion order.
场景二:显示设备处于开机状态,且已经插入一个摄像头的状态下,再次插入一个摄像头。如果在开机状态下已经插入摄像头的是第一端口,再次插入的摄像头的是第二端口。此时第一端口的第一标识为X,对应的第三标识为X,代表插入次序的第六标识为0,第二端口的第一标识为X+1,对应的第四标识为X+1,代表插入次序的第七标识为1。由于第六标识和第七标识都为非负数,且第六标识小于第七标识,则确定第一端口作为插入顺序中位于首位的端口。Scenario 2: When the display device is turned on and a camera has been inserted, insert a camera again. If the camera has been plugged into the first port in the power-on state, the second port of the re-plugged camera is used. At this time, the first identifier of the first port is X, the corresponding third identifier is X, the sixth identifier representing the insertion sequence is 0, the first identifier of the second port is X+1, and the corresponding fourth identifier is X+ 1, the seventh flag representing the insertion order is 1. Since both the sixth identifier and the seventh identifier are non-negative numbers, and the sixth identifier is smaller than the seventh identifier, the first port is determined as the port at the first position in the insertion sequence.
场景三:显示设备处于开机状态,且已经插入一个摄像头的状态下,移除该摄像头。此时第三标识、第四标识、第六标识和第七标识均为默认值-1,此时不存在插入顺序中位于首位的端口。Scenario 3: When the display device is turned on and a camera has been inserted, remove the camera. At this time, the third identifier, the fourth identifier, the sixth identifier and the seventh identifier are all default values -1, and there is no port at the first position in the insertion sequence at this time.
场景四:显示设备处于开机状态,且已经插入两个摄像头,当显示设备开机后,移除一个摄像头。如果将第一端口出的摄像头移除,第三标识为预设值-1,第六标识为预设值-1,此时第四标识为X,第七标识为0,最终确定第二端口作为插入顺序中的首位的端口。Scenario 4: The display device is powered on, and two cameras have been inserted. After the display device is powered on, one camera is removed. If the camera from the first port is removed, the third flag is the preset value -1, the sixth flag is the preset value -1, the fourth flag is X, the seventh flag is 0, and the second port is finally determined. Port as first in insertion order.
本申请实施例中,实时监测端口被摄像头插入的顺序,利用位于首位的端口对应的摄像头拍摄图像。In this embodiment of the present application, the order in which the ports are inserted by the camera is monitored in real time, and the camera corresponding to the first port is used to capture an image.
S802、根据所述屏幕状态,利用所述顺序中位于预设次序的端口对应的摄像头,拍摄图像。本申请实施例摄像头支持第一预览图像比例m:n,以及第二预览图像比例n:m。S802. According to the screen state, use the camera corresponding to the port located in the preset sequence in the sequence to capture an image. The camera in this embodiment of the present application supports the first preview image ratio m:n and the second preview image ratio n:m.
一些实施例中,根据所述屏幕状态,利用所述插入顺序中预设次序的端口对应的摄像头,拍摄图像的步骤包括:In some embodiments, according to the screen state, using the camera corresponding to the port in the preset sequence in the insertion sequence, the step of capturing an image includes:
如果所述插入顺序中位于预设次序的端口为第一端口,且所述屏幕状态为横屏状态,则控制摄像头按照第一预览图像比例m:n,拍摄图像;接收显示器旋转指令,改变屏幕状态,且旋转所述显示器至竖屏,将摄像头按照第一预览图像比例m:n拍摄的图像,旋转预设角度后,显示在显示器上。示例性的,所述第一预览图像比例m:n,m为16,n为9。If the port in the preset order in the insertion sequence is the first port, and the screen state is the horizontal screen state, control the camera to capture images according to the first preview image ratio m:n; receive the display rotation instruction to change the screen state, and the display is rotated to a vertical screen, and the image captured by the camera according to the first preview image ratio m:n is rotated by a preset angle and displayed on the display. Exemplarily, the first preview image ratio is m:n, where m is 16 and n is 9.
如果所述插入顺序中位于预设次序的端口为第一端口,且屏幕状态为竖屏状态,则将摄像头按照第一预览图像比例m:n拍摄的图像,旋转预设角度后,显示在显示器上;接收显示器旋转指令,改变屏幕状态,且旋转所述显示器至横屏,将摄像头按照第一预览图像比例m:n拍摄的图像,显示在显示器上。If the port in the preset order in the insertion sequence is the first port, and the screen state is the vertical screen state, the image captured by the camera according to the first preview image ratio m:n is rotated by the preset angle and displayed on the display. Receive the display rotation instruction, change the screen state, and rotate the display to the horizontal screen, and display the image captured by the camera according to the first preview image ratio m:n on the display.
如果所述插入顺序中位于预设次序的端口为第二端口,且所述屏幕状态为横屏状态,则摄像头按照第二预览图像比例n:m拍摄的图像,旋转预设角度后,显示在显示器上;接收显示器旋转指令,改变屏幕状态,且旋转所述显示器至竖屏,将摄像头按照第二预览图像比例n:m拍摄的图像,显示在显示器上。示例性的,第二预览图像比例n:m,n为9,m为16。If the port in the preset order in the insertion sequence is the second port, and the screen state is the landscape state, the image captured by the camera according to the second preview image ratio n:m is rotated by the preset angle and displayed on the on the display; receiving the display rotation instruction, changing the screen state, and rotating the display to the vertical screen, and displaying the image captured by the camera according to the second preview image ratio n:m on the display. Exemplarily, the second preview image ratio is n:m, where n is 9 and m is 16.
如果所述插入顺序中位于预设次序的端口为第二端口,且所述屏幕状态为竖屏状态,控制摄像头按照第二预览图像比例n:m,拍摄图像;接收显示器旋转指令,改变屏幕状态,且旋转所述显示器至横屏,将摄像头按照第二预览图像比例n:m拍摄的图像,旋转预设角度后,显示在显示器上。If the port in the preset order in the insertion sequence is the second port, and the screen state is the vertical screen state, control the camera to capture images according to the second preview image ratio n:m; receive the display rotation instruction to change the screen state , and rotate the display to a landscape orientation, and rotate the image captured by the camera according to the second preview image ratio n:m to a preset angle and display it on the display.
上述实施例中,一种摄像头拍摄图像的方法及显示设备,本申请实施例利于位于预设次序的端口对应的摄像头,结合屏幕状态,调整摄像头拍摄的图像,以使得图像正常显示在显示器中,提高用户的使用体验。该方法包括:接收启动预设应用的指令,获取显示设备上的端口被摄像头插入的顺序和屏幕状态,所述屏幕状态用于指示屏幕横向或纵向放置;根据所述屏幕状态,利用所述顺序中位于预设次序的端口对应的摄像头,拍摄图像。In the above-mentioned embodiment, a method for capturing an image by a camera and a display device, the embodiment of the present application is beneficial to the camera corresponding to the port located in the preset order, and the image captured by the camera is adjusted in combination with the screen state, so that the image is normally displayed on the display, Improve user experience. The method includes: receiving an instruction to start a preset application, and acquiring the sequence in which the ports on the display device are inserted by the camera and the screen state, where the screen state is used to indicate that the screen is placed horizontally or vertically; and according to the screen state, using the sequence The camera corresponding to the port in the preset order takes an image.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
本申请实施例还提供一种程序,该程序在被处理器执行时用于执行以上方法实施例提 供的显示方法。The embodiment of the present application further provides a program, which is used to execute the display method provided by the above method embodiment when the program is executed by the processor.
本申请实施例还提供一种程序产品,例如计算机可读存储介质,该程序产品中存储有指令,当其在计算机上运行时,使得计算机执行上述方法实施例提供的显示方法。Embodiments of the present application further provide a program product, such as a computer-readable storage medium, where instructions are stored in the program product, and when the program product runs on a computer, the computer executes the display method provided by the above method embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生根据本发明实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present invention result in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (10)

  1. 一种显示设备,包括:A display device comprising:
    显示器;monitor;
    控制器,所述控制器分别与所述显示器以及接入所述显示设备的摄像头连接,所述控制器被配置为:a controller, the controller is respectively connected with the display and the camera connected to the display device, and the controller is configured as:
    接收所述摄像头的开启指示;receiving an instruction to turn on the camera;
    根据所述摄像头的安装位置及所述显示器的显示模式,确定所述摄像头采集到的图像在所述显示器上的显示比例,所述显示比例用于表征所述图像在所述显示器上显示时的长宽比;According to the installation position of the camera and the display mode of the display, the display ratio of the image collected by the camera on the display is determined, and the display ratio is used to represent the display ratio of the image when displayed on the display. aspect ratio;
    以所述显示比例在显示器上显示所述摄像头采集到的图像。The image collected by the camera is displayed on the display at the display ratio.
  2. 根据权利要求1所述的显示设备,所述控制器还被配置为:The display device of claim 1, the controller further configured to:
    根据所述摄像头的类型以及接入所述摄像头的串行总线端口,确定所述摄像头的安装位置。The installation position of the camera is determined according to the type of the camera and the serial bus port connected to the camera.
  3. 根据权利要求2所述的显示设备,所述控制器还被配置为:The display device of claim 2, the controller further configured to:
    若检测到所述摄像头接入所述显示设备,则根据各串行总线端口的存储路径下的文件名,确定接入所述摄像头的串行总线端口,所述文件名与接入设备的类型相关。If it is detected that the camera is connected to the display device, the serial bus port to which the camera is connected is determined according to the file name under the storage path of each serial bus port, and the file name and the type of the connected device are determined. related.
  4. 根据权利要求1所述的显示设备,所述控制器具体被配置为:The display device according to claim 1, the controller is specifically configured to:
    若所述摄像头类型为第一类型,则确定所述摄像头未安装在所述显示设备上;If the camera type is the first type, determining that the camera is not installed on the display device;
    若所述摄像头类型为第二类型且接入所述摄像头的串行总线端口位于所述显示器的横屏顶端,则确定所述摄像头安装于所述显示器的横屏顶端;If the camera type is the second type and the serial bus port connected to the camera is located at the top of the horizontal screen of the display, determine that the camera is installed at the top of the horizontal screen of the display;
    若所述摄像头类型为所述第二类型且接入所述摄像头的串行总线端口位于所述显示器的竖屏顶端,则确定所述摄像头安装于所述显示器的竖屏顶端。If the camera type is the second type and the serial bus port connected to the camera is located at the top of the vertical screen of the display, it is determined that the camera is installed at the top of the vertical screen of the display.
  5. 根据权利要求4所述的显示设备,所述控制器具体被配置为:The display device according to claim 4, the controller is specifically configured to:
    若所述摄像头未安装在所述显示设备上且所述显示器的显示模式为横屏显示,或者,若所述摄像头安装于所述显示器的横屏顶端且所述显示器的显示模式为横屏显示,或者,所述摄像头安装于所述显示器的竖屏顶端、所述显示器的显示模式为横屏显示并且所述摄像头不支持第二显示比例,则确定所述摄像头采集到的图像在所述显示器上以第一显示比例进行显示,所述第一显示比例用于显示横屏图像,所述第二显示比例用于显示竖屏图像。If the camera is not installed on the display device and the display mode of the display is landscape display, or, if the camera is installed at the top of the landscape screen of the display and the display mode of the display is landscape display , or, if the camera is installed at the top of the vertical screen of the display, the display mode of the display is landscape display, and the camera does not support the second display ratio, then it is determined that the image captured by the camera is displayed on the display The above is displayed in a first display ratio, the first display ratio is used for displaying a landscape screen image, and the second display ratio is used for displaying a portrait screen image.
  6. 根据权利要求4所述的显示设备,所述控制器具体被配置为:The display device according to claim 4, the controller is specifically configured to:
    若所述摄像头安装于所述显示器的横屏顶端且所述显示器的显示模式为竖屏显示,则将所述摄像头采集到的图像旋转九十度后以第一显示比例进行显示。If the camera is installed at the top of the horizontal screen of the display and the display mode of the display is vertical screen display, the image captured by the camera is rotated by 90 degrees and displayed at the first display ratio.
  7. 根据权利要求4所述的显示设备,所述控制器具体被配置为:The display device according to claim 4, the controller is specifically configured to:
    若所述摄像头未安装在所述显示设备上且所述显示器的显示模式为竖屏显示,或者,所述摄像头安装于所述显示器的竖屏顶端、所述显示器的显示模式为竖屏显示并且所述摄像头不支持第二显示比例,则对所述摄像头采集到的图像进行裁剪,并以第二显示比例显示裁剪后的图像。If the camera is not installed on the display device and the display mode of the display is vertical screen display, or, the camera is installed at the top of the vertical screen of the display, the display mode of the display is vertical screen display and If the camera does not support the second display ratio, the image collected by the camera is cropped, and the cropped image is displayed in the second display ratio.
  8. 根据权利要求4所述的显示设备,所述控制器具体被配置为:The display device according to claim 4, the controller is specifically configured to:
    若所述摄像头安装于所述显示器的竖屏顶端、所述显示器的显示模式为竖屏显示并且所述摄像头支持第二显示比例,则以所述第二显示比例显示所述摄像头采集到的图像。If the camera is installed at the top of the vertical screen of the display, the display mode of the display is vertical screen display, and the camera supports a second display ratio, the image captured by the camera is displayed at the second display ratio .
  9. 根据权利要求4所述的显示设备,所述控制器具体被配置为:The display device according to claim 4, the controller is specifically configured to:
    若所述摄像头安装于所述显示器的竖屏顶端、所述显示器的显示模式为横屏显示并且所述摄像头支持第二显示比例,则将所述摄像头采集到的图像旋转九十度后以所述第二显示比例显示所述摄像头采集到的图像。If the camera is installed at the top of the vertical screen of the display, the display mode of the display is landscape display, and the camera supports the second display ratio, the image captured by the camera is rotated 90 degrees so that the The second display scale displays the image collected by the camera.
  10. 一种显示方法,所述方法包括:A display method, the method comprising:
    接收摄像头的开启指示;Receive the opening instruction of the camera;
    根据所述摄像头的安装位置及所述显示器的显示模式,确定所述摄像头采集到的图像在所述显示器上的显示比例,所述显示比例用于表征所述图像在所述显示器上显示时的长宽比;According to the installation position of the camera and the display mode of the display, the display ratio of the image collected by the camera on the display is determined, and the display ratio is used to represent the display ratio of the image when displayed on the display. aspect ratio;
    以所述显示比例在显示器上显示所述摄像头采集到的图像。The image collected by the camera is displayed on the display at the display ratio.
PCT/CN2021/119076 2020-11-27 2021-09-17 Display device and display method WO2022111000A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202180067795.6A CN116325762A (en) 2020-11-27 2021-09-17 Display device and display method

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202011363628.XA CN114567804A (en) 2020-11-27 2020-11-27 Display apparatus and display method
CN202011363628.X 2020-11-27
CN202110902251.9 2021-08-06
CN202110901318.7 2021-08-06
CN202110902251.9A CN114285986B (en) 2021-08-06 2021-08-06 Method for shooting image by camera and display equipment
CN202110901318.7A CN114285985B (en) 2021-08-06 2021-08-06 Method for determining preview direction of camera and display device

Publications (1)

Publication Number Publication Date
WO2022111000A1 true WO2022111000A1 (en) 2022-06-02

Family

ID=81753982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119076 WO2022111000A1 (en) 2020-11-27 2021-09-17 Display device and display method

Country Status (2)

Country Link
CN (1) CN116325762A (en)
WO (1) WO2022111000A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237556A (en) * 2008-03-03 2008-08-06 宇龙计算机通信科技(深圳)有限公司 Realization method, image display method and communication terminal for terminal with dual cameras
CN106101553A (en) * 2016-07-27 2016-11-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN106125933A (en) * 2016-06-28 2016-11-16 维沃移动通信有限公司 The method of a kind of display interface rotation and mobile terminal
CN106973228A (en) * 2017-03-31 2017-07-21 联想(北京)有限公司 A kind of image pickup method and electronic equipment
CN107172337A (en) * 2017-06-29 2017-09-15 京东方科技集团股份有限公司 A kind of switching method of intelligent picture frame and image collecting device therein
US20190222757A1 (en) * 2016-09-27 2019-07-18 SZ DJI Technology Co., Ltd. Control method
CN110956106A (en) * 2019-11-20 2020-04-03 广州华多网络科技有限公司 Processing method, device, storage medium and equipment for live broadcast

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237556A (en) * 2008-03-03 2008-08-06 宇龙计算机通信科技(深圳)有限公司 Realization method, image display method and communication terminal for terminal with dual cameras
CN106125933A (en) * 2016-06-28 2016-11-16 维沃移动通信有限公司 The method of a kind of display interface rotation and mobile terminal
CN106101553A (en) * 2016-07-27 2016-11-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
US20190222757A1 (en) * 2016-09-27 2019-07-18 SZ DJI Technology Co., Ltd. Control method
CN106973228A (en) * 2017-03-31 2017-07-21 联想(北京)有限公司 A kind of image pickup method and electronic equipment
CN107172337A (en) * 2017-06-29 2017-09-15 京东方科技集团股份有限公司 A kind of switching method of intelligent picture frame and image collecting device therein
CN110956106A (en) * 2019-11-20 2020-04-03 广州华多网络科技有限公司 Processing method, device, storage medium and equipment for live broadcast

Also Published As

Publication number Publication date
CN116325762A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
WO2021179359A1 (en) Display device and display picture rotation adaptation method
CN111970548B (en) Display device and method for adjusting angle of camera
WO2021212463A1 (en) Display device and screen projection method
WO2022048203A1 (en) Display method and display device for manipulation prompt information of input method control
CN111787388A (en) Display device
WO2021179363A1 (en) Display device and boot animation display method
CN114285985B (en) Method for determining preview direction of camera and display device
CN114285986B (en) Method for shooting image by camera and display equipment
WO2022028060A1 (en) Display device and display method
WO2021213097A1 (en) Display apparatus and screen projection method
WO2021031608A1 (en) Displaying method and device for locking state of camera physical switch
WO2021212470A1 (en) Display device and projected-screen image display method
WO2021179361A1 (en) Display apparatus
CN112506859A (en) Method for maintaining hard disk data and display device
CN113556591A (en) Display equipment and projection screen image rotation display method
WO2022111000A1 (en) Display device and display method
WO2022083357A1 (en) Display device and camera control method
WO2021180223A1 (en) Display method and display device
WO2022193475A1 (en) Display device, method for receiving screen projection content, and screen projection method
WO2023010968A1 (en) Image processing method and display device
WO2021248671A1 (en) Display device
WO2021208016A1 (en) Display device and display method for application interface
WO2021195918A1 (en) Display device and method for restoring locked-rotor state
CN113825001B (en) Panoramic picture browsing method and display device
CN113473239B (en) Intelligent terminal, server and image processing method

Legal Events

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

Ref document number: 21896504

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21896504

Country of ref document: EP

Kind code of ref document: A1