WO2023050677A1 - Vehicle, image capture method and apparatus, device, storage medium, and computer program product - Google Patents

Vehicle, image capture method and apparatus, device, storage medium, and computer program product Download PDF

Info

Publication number
WO2023050677A1
WO2023050677A1 PCT/CN2022/075169 CN2022075169W WO2023050677A1 WO 2023050677 A1 WO2023050677 A1 WO 2023050677A1 CN 2022075169 W CN2022075169 W CN 2022075169W WO 2023050677 A1 WO2023050677 A1 WO 2023050677A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
special effect
virtual
vehicle
display
Prior art date
Application number
PCT/CN2022/075169
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
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023050677A1 publication Critical patent/WO2023050677A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • 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
    • H04N23/62Control of parameters via user interfaces
    • 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
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices

Abstract

Embodiments of the present application disclose a vehicle, an image capture method and apparatus, a device, a storage medium, and a computer program product. The method comprises: in response to an interaction terminal located in a vehicle cabin receiving a first instruction, acquiring a first image captured by a camera of a vehicle-mounted camera, the first instruction being used to trigger the vehicle-mounted camera to perform image capture; detecting a key feature of a preset object in the first image, and determining at least one preset object in the first image; performing special effect processing on the at least one preset object in the first image on the basis of set first special effect display information to obtain a second image; and displaying the second image on a capture interface of the vehicle-mounted camera.

Description

一种车辆及图像拍摄方法、装置、设备、存储介质及计算机程序产品A vehicle and image capturing method, device, equipment, storage medium and computer program product
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202111162365.0、申请日为2021年09月30日、申请名称为“一种车辆及图像拍摄方法、装置、设备、存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number 202111162365.0, the application date is September 30, 2021, and the application name is "a vehicle and image shooting method, device, equipment, storage medium", and requires the Chinese patent application Priority, the entire content of this Chinese patent application is hereby incorporated into this application as a reference.
技术领域technical field
本申请涉及但不限于信息技术领域,尤其涉及一种车辆及图像拍摄方法、装置、设备、存储介质及计算机程序产品。The present application relates to but not limited to the field of information technology, and in particular relates to a vehicle and an image capturing method, device, equipment, storage medium and computer program product.
背景技术Background technique
随着信息技术的发展,智能汽车的应用越来越广泛。但是,相关技术中的智能汽车主要实现的是驾驶功能上的智能化,并未充分考虑汽车娱乐属性的智能化,从而无法很好地满足用户的体验需求。With the development of information technology, the application of smart cars is becoming more and more extensive. However, the smart car in the related art mainly realizes the intelligence of the driving function, and does not fully consider the intelligence of the car's entertainment attributes, so that it cannot well meet the user's experience needs.
发明内容Contents of the invention
本申请实施例提供一种车辆及图像拍摄方法、装置、设备、存储介质及计算机程序产品。Embodiments of the present application provide a vehicle and an image capturing method, device, equipment, storage medium, and computer program product.
本申请实施例的技术方案是这样实现的:The technical scheme of the embodiment of the application is realized in this way:
本申请实施例提供一种图像拍摄方法,所述方法包括:An embodiment of the present application provides an image capturing method, the method comprising:
响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;Responding to the interactive terminal located in the cabin receiving a first instruction, acquiring a first image captured by the camera of the vehicle-mounted camera; wherein, the first instruction is used to trigger the vehicle-mounted camera to take an image;
对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;Detecting key features of preset objects in the first image, and determining at least one preset object in the first image;
基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;performing special effect processing on at least one of the preset objects in the first image based on the set first special effect display information to obtain a second image;
在所述车载相机的拍摄界面显示所述第二图像。The second image is displayed on the shooting interface of the vehicle-mounted camera.
本申请实施例提供一种图像拍摄装置,包括:An embodiment of the present application provides an image capture device, including:
第一获取部分,被配置为响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;The first acquisition part is configured to acquire a first image captured by the camera of the vehicle-mounted camera in response to the interactive terminal located in the vehicle cabin receiving a first instruction; wherein, the first instruction is used to trigger the vehicle-mounted camera to perform an image shoot;
第一检测部分,被配置为对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;The first detection part is configured to detect key features of preset objects in the first image, and determine at least one preset object in the first image;
第一处理部分,被配置为基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;The first processing part is configured to perform special effect processing on at least one of the preset objects in the first image based on the set first special effect display information to obtain a second image;
显示部分,被配置为在所述车载相机的拍摄界面显示所述第二图像。The display part is configured to display the second image on the shooting interface of the vehicle camera.
本申请实施例提供一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述方法中的步骤。An embodiment of the present application provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the steps in the above method when executing the program.
本申请实施例提供一种车辆,包括:An embodiment of the present application provides a vehicle, including:
车载相机,用于拍摄车舱内的图像信息;Car camera, used to capture image information in the car cabin;
车载交互终端,与所述车载相机连接,用于:接收触发车载相机进行图像拍摄的第一指令;向处理器发送所述第一指令;显示所述车载相机的拍摄界面;The vehicle-mounted interactive terminal is connected with the vehicle-mounted camera, and is used to: receive a first instruction triggering the vehicle-mounted camera to take image; send the first instruction to the processor; display the shooting interface of the vehicle-mounted camera;
处理器,用于:响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;向所述交互终端发送所述第二图像以在所述车载相机的拍摄界面显示所述第二图像。The processor is configured to: acquire a first image captured by the camera of the vehicle-mounted camera in response to the interactive terminal located in the vehicle cabin receiving a first instruction; wherein, the first instruction is used to trigger the vehicle-mounted camera to take an image; Detecting key features of preset objects in the first image, determining at least one preset object in the first image; displaying information on at least one of the first images based on the set first special effect display information The preset object is subjected to special effect processing to obtain a second image; the second image is sent to the interactive terminal to display the second image on the shooting interface of the vehicle camera.
本申请实施例提供一种计算机存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法中的步骤。An embodiment of the present application provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现上述方法中的步骤。An embodiment of the present application provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, the steps in the above method are realized.
本申请实施例中,通过响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;在所述车载相机的拍摄界面显示所述第二图像。这样,用户可以利用设定的第一特效显示信息对车载相机的摄像头拍摄的第一图像中的至少一个预设对象进行特效处理,得到第二图像,从而可以提高车载相机拍摄得到的图像的成像质量和趣味性,并能提高人车之间的互娱性,进而可以更好地满足用户的体验需求。In the embodiment of the present application, by responding to the interactive terminal located in the vehicle cabin receiving the first instruction, the first image captured by the camera of the vehicle-mounted camera is obtained; the key features of the preset object in the first image are detected, determining at least one preset object in the first image; performing special effect processing on at least one preset object in the first image based on the set first special effect display information to obtain a second image; The shooting interface of the vehicle-mounted camera displays the second image. In this way, the user can use the set first special effect display information to perform special effect processing on at least one preset object in the first image captured by the camera of the vehicle-mounted camera to obtain a second image, thereby improving the imaging of the image captured by the vehicle-mounted camera Quality and fun, and can improve the mutual entertainment between people and vehicles, so as to better meet the experience needs of users.
附图说明Description of drawings
图1为本申请实施例提供的一种图像拍摄方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flow of an image capturing method provided in an embodiment of the present application;
图2为本申请实施例提供的一种图像拍摄方法的实现流程示意图;FIG. 2 is a schematic diagram of an implementation flow of an image capturing method provided in an embodiment of the present application;
图3为本申请实施例提供的一种图像拍摄方法的实现流程示意图;FIG. 3 is a schematic diagram of an implementation flow of an image capturing method provided in an embodiment of the present application;
图4为本申请实施例提供的一种图像拍摄方法的实现流程示意图;FIG. 4 is a schematic diagram of an implementation flow of an image capturing method provided in an embodiment of the present application;
图5为本申请实施例提供的一种图像拍摄装置的组成结构示意图;FIG. 5 is a schematic diagram of the composition and structure of an image capture device provided by an embodiment of the present application;
图6为本申请实施例提供的一种计算机设备的硬件实体示意图。FIG. 6 is a schematic diagram of a hardware entity of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图和实施例对本申请的技术方案进一步详细阐述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the application more clear, the technical solution of the application will be further elaborated below in conjunction with the accompanying drawings and embodiments. The described embodiments should not be considered as limiting the application. All other embodiments obtained under the premise of no creative work belong to the scope of protection of this application.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.
如果申请文件中出现“第一/第二”的类似描述则增加以下的说明,在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。If there is a similar description of "first/second" in the application documents, add the following explanation. In the following description, the terms "first\second\third" are only used to distinguish similar objects and do not mean Regarding the specific ordering of objects, it can be understood that "first\second\third" can be interchanged with specific order or sequence if allowed, so that the embodiment of the application described here can be used in addition to the performed in an order other than that shown or described.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terminology used herein is for the purpose of describing the application only and is not intended to limit the application.
本申请实施例提供一种图像拍摄方法,该方法可以由计算机设备执行,其中,计算机设备可以为如智能显示设备、车载控制器、车载交互设备、车舱内的用户终端、服务 器、网络摄像机、笔记本电脑、平板电脑、台式计算机、移动设备(例如移动电话、便携式视频播放器、个人数字助理、专用消息设备、便携式游戏设备)等任意合适的具备数据处理能力的设备。如图1所示,该方法包括如下步骤S101至步骤S104:An embodiment of the present application provides an image capturing method, which can be executed by a computer device, where the computer device can be, for example, an intelligent display device, a vehicle controller, a vehicle interactive device, a user terminal in the vehicle cabin, a server, a network camera, Notebook computers, tablet computers, desktop computers, mobile devices (such as mobile phones, portable video players, personal digital assistants, dedicated messaging devices, portable gaming devices) and other suitable devices with data processing capabilities. As shown in Figure 1, the method includes the following steps S101 to S104:
步骤S101,响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄。Step S101 , in response to the interactive terminal in the vehicle cabin receiving a first instruction, acquire a first image captured by a camera of the vehicle-mounted camera; wherein the first instruction is used to trigger the vehicle-mounted camera to take an image.
这里,车舱内的交互终端可以是位于车舱内的具有交互功能的任意合适的电子设备。在实施时,该交互终端可以设置在车舱内任意合适的位置处,包括但不限于车辆的中控台、车门或座椅等位置处,本申请实施例对此并不限定。Here, the interactive terminal in the vehicle cabin may be any suitable electronic device with interactive functions located in the vehicle cabin. During implementation, the interactive terminal can be set at any suitable position in the vehicle cabin, including but not limited to the center console, door or seat of the vehicle, which is not limited in this embodiment of the present application.
在一些实施例中,车舱内的交互终端可以是能够支持车载信息处理及娱乐等功能的车机,可以包括主机和显示屏。车机的主机和显示屏可以是组合在一起的,也可以是分离的。In some embodiments, the interactive terminal in the car cabin may be a car machine capable of supporting functions such as in-vehicle information processing and entertainment, and may include a host computer and a display screen. The main unit and the display screen of the car machine can be combined or separated.
或者,上述交互终端也可以是用户终端,例如用户的移动终端。用户终端可以具有显示组件,用来显示照片。用户终端可以安装有用于控制车载相机的应用程序,其可以通过云端向车载相机下发拍摄指令,也可以通过云端接收车载相机拍摄并上传的照片。Alternatively, the above-mentioned interactive terminal may also be a user terminal, such as a user's mobile terminal. The user terminal may have a display assembly for displaying photos. The user terminal can be installed with an application program for controlling the vehicle camera, which can send shooting instructions to the vehicle camera through the cloud, and can also receive photos taken and uploaded by the vehicle camera through the cloud.
车载相机为任意合适的设置在车辆中的相机,可以是安装在车辆中的摄像机产品,也可以是运行在车舱内的交互终端中的相机应用,这里并不限定。在一些实施例中,在车载相机为独立的摄像机产品的情况下,车舱内的交互终端即可以为该摄像机产品。The vehicle-mounted camera is any suitable camera installed in the vehicle, and may be a camera product installed in the vehicle, or a camera application running on an interactive terminal in the vehicle cabin, which is not limited here. In some embodiments, if the vehicle-mounted camera is an independent camera product, the interactive terminal in the vehicle cabin can be the camera product.
车载相机拍摄的图像可以是照片,也可以是视频。在一些实施例中,在车载相机开启的情况下,可以在车舱内的交互终端上显示该车载相机的拍摄界面。车载相机的拍摄界面为待进行照片或视频拍摄的用户界面,用户可以在拍摄界面上进行照片或视频的拍摄操作。The image captured by the car camera can be a photo or a video. In some embodiments, when the vehicle-mounted camera is turned on, the shooting interface of the vehicle-mounted camera can be displayed on the interactive terminal in the vehicle cabin. The shooting interface of the vehicle-mounted camera is a user interface for taking photos or videos, and the user can perform photo or video shooting operations on the shooting interface.
第一指令为任意合适的可以在车载相机的拍摄界面触发车载相机进行图像拍摄的指令,可以包括但不限于在拍摄界面的拍摄按钮或空白区域进行点击操作触发的操作指令、在交互终端上输入的拍摄触发手势指令、输入的拍摄触发语音指令、输入的方向盘拍摄按键指令、输入的交互终端的拍摄按键指令、隔空手势控制或表情控制的拍摄指令等中的一种或多种。响应于位于车舱内的交互终端接收到第一指令,可以触发车载相机进行图像的拍摄,得到车载相机的摄像头拍摄的第一图像。其中,隔空手势控制或表情控制的拍摄指令可以由与交互终端通信连接的车载智能设备通过对车上乘客的手势图像或表情图像进行检测和识别而获得。The first instruction is any suitable instruction that can trigger the on-board camera to take image on the shooting interface of the on-board camera. One or more of the shooting trigger gesture command, the input shooting trigger voice command, the input steering wheel shooting button command, the input shooting button command of the interactive terminal, the shooting command of gesture control or expression control in the air, etc. One or more. In response to the interactive terminal located in the vehicle cabin receiving the first instruction, the vehicle-mounted camera may be triggered to capture an image, and the first image captured by the camera of the vehicle-mounted camera may be obtained. Wherein, the shooting instruction of air gesture control or expression control can be obtained by detecting and recognizing gesture images or expression images of passengers on the vehicle by the on-board smart device communicatively connected with the interactive terminal.
在一些实施例中,车载相机的摄像头可以是与车舱内的交互终端设置在一起的,也可以是与该交互终端分离的,车载相机可以利用该摄像头进行图像的拍摄。在实施时,车舱内的交互终端可以采用有线通信或无线通信的方式与设置在车舱内或车舱外的任意合适的摄像头进行连接,以利用该摄像头对待拍摄的图像进行采集,实现图像的拍摄。例如,车载相机可以与安装在车舱内的摄像头(如安装在中控台、车门等处的摄像头)进行连接,也可以与安装在车舱外的摄像头(如行车记录仪、倒车摄像头等)进行连接,还可以与外部摄像头(如具有摄像头的手机、具有摄像头的平板电脑、便携式摄像头等)进行连接,本申请实施例对此并不限定。In some embodiments, the camera of the vehicle-mounted camera can be set together with the interactive terminal in the vehicle cabin, or can be separated from the interactive terminal, and the vehicle-mounted camera can use the camera to capture images. During implementation, the interactive terminal in the cabin can be connected to any suitable camera installed inside or outside the cabin by means of wired or wireless communication, so as to use the camera to collect images to be captured and realize image shooting. For example, the car camera can be connected with cameras installed in the cabin (such as cameras installed in the center console, doors, etc.), and can also be connected with cameras installed outside the cabin (such as driving recorders, reversing cameras, etc.) The connection may also be made with an external camera (such as a mobile phone with a camera, a tablet computer with a camera, a portable camera, etc.), which is not limited in this embodiment of the present application.
步骤S102,对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象。Step S102, detecting key features of preset objects in the first image, and determining at least one preset object in the first image.
这里,预设对象可以包括车舱内任意合适的一种或多种待进行特效处理的对象,例如,人员、动物、或者人脸、人手、人体、汽车座椅、猫脸、狗脸等。在实施时,预设对象可以是用户根据实际情况预先设定的,也可以是系统默认的,这里并不限定。Here, the preset object may include any suitable one or more objects to be processed with special effects in the vehicle cabin, for example, people, animals, or human faces, human hands, human bodies, car seats, cat faces, dog faces, and the like. During implementation, the preset object may be preset by the user according to the actual situation, or may be defaulted by the system, which is not limited here.
预设对象的关键特征可以包括任意合适的用于识别该预设对象的特征。在实施时,可以根据实际采用的预设对象确定合适用于识别该预设对象的关键特征,本申请实施例 对此并不限定。例如,在预设对象为人脸的情况下,预设对象的关键特征可以为人脸的关键点特征;在预设对象为汽车座椅的情况下,预设对象的关键特征可以为汽车座椅的轮廓特征;在预设对象为猫脸的情况下,预设对象的关键特征可以为猫脸的关键点特征。The key feature of the preset object may include any suitable feature for identifying the preset object. During implementation, the key features suitable for identifying the preset object can be determined according to the preset object actually used, which is not limited in this embodiment of the present application. For example, when the preset object is a human face, the key feature of the preset object can be the key point feature of the human face; when the preset object is a car seat, the key feature of the preset object can be the Contour features; in the case that the preset object is a cat face, the key features of the preset object may be key point features of the cat face.
在一些实施方式中,可以采用任意合适的目标检测模型,对第一图像中的预设对象的关键特征进行检测,得到第一图像中的至少一个预设对象。In some implementations, any suitable target detection model may be used to detect key features of the preset object in the first image to obtain at least one preset object in the first image.
步骤S103,基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像。Step S103, performing special effect processing on at least one preset object in the first image based on the set first special effect display information to obtain a second image.
这里,第一特效显示信息为设定的用于对第一图像中的至少一个预设对象进行特效处理的任意合适的特效显示信息,可以包括但不限于待显示的特效素材、特效素材的显示方式、特效素材的显示参数、触发显示特效素材的事件、对预设对象或第一图像的整体图像变换方式等中的一种或多种。其中,特效素材的显示方式可以例如为叠加在原图片上、对原图片的部分或全部区域进行图像尺寸或色彩等属性的转换处理、删除原图片中元素,等等。特效素材的显示参数可以包括但不限于显示位置参数、显示尺寸参数、显示时间参数中的至少一种。触发显示特效素材的事件可以例如包括但不限于:预设对象执行特定的动作、呈现特定的状态、预设对象的数量发生变化中的至少一种。在实施时,第一特效显示信息可以是系统默认的,也可以是用户在进行图像拍摄之前或图像拍摄的过程中根据拍摄需求设定的,本领域技术人员可以根据实际情况设定合适的第一特效显示信息。Here, the first special effect display information is any suitable special effect display information set for performing special effect processing on at least one preset object in the first image, which may include but not limited to display of special effect materials and special effect materials. One or more of methods, display parameters of special effect materials, events that trigger the display of special effect materials, overall image transformation methods for preset objects or first images, and the like. Wherein, the display method of the special effect material may be superimposed on the original picture, converting part or all of the original picture to attributes such as image size or color, deleting elements in the original picture, and so on. The display parameters of the special effect material may include but not limited to at least one of a display position parameter, a display size parameter, and a display time parameter. The event that triggers the display of the special effect material may include, but is not limited to, at least one of: preset objects perform a specific action, present a specific state, and the number of preset objects changes. During implementation, the first special effect display information may be the default of the system, or it may be set by the user according to the shooting requirements before or during the image shooting. Those skilled in the art can set an appropriate first effect according to the actual situation. A special effect display information.
基于第一特效显示信息可以对第一图像中的至少一个预设对象进行特效处理。例如,可以基于设定的美颜素材,对第一图像中的至少一个人脸进行美颜处理;也可以基于设定的贴纸素材和贴纸素材的显示参数,在第一图像中的至少一个人脸上显示该贴纸素材,或者基于至少一个人脸在第一图像中的位置,在第一图像中显示该贴纸素材。在实施时,可以将特效处理后的第一图像直接作为第二图像,也可以对特效处理后的第一图像进行画面改善后得到第二图像,这里并不限定。Special effect processing may be performed on at least one preset object in the first image based on the first special effect display information. For example, at least one human face in the first image may be beautified based on the set beautifying material; The sticker material is displayed on the face, or based on the position of at least one human face in the first image, the sticker material is displayed in the first image. During implementation, the first image after special effect processing can be directly used as the second image, or the second image can be obtained after image improvement is performed on the first image after special effect processing, which is not limited here.
在这里,可以根据第一特效显示信息中的显示方式、图像变换方式、显示参数等中的至少一种确定对第一图像或第一图像中的预设对象的处理方式,并根据该处理方式对第一图像或第一图像中的预设对象进行处理得到第二图像。Here, the processing method for the first image or the preset object in the first image can be determined according to at least one of the display method, image conversion method, display parameter, etc. in the first special effect display information, and according to the processing method The second image is obtained by processing the first image or a preset object in the first image.
在一些实施例中,在第一图像为单个图像帧的情况下,可以基于设定的第一特效显示信息,对该单个图像帧中的至少一个预设对象进行特效处理,得到包含单个图像帧的第二图像。In some embodiments, when the first image is a single image frame, special effect processing may be performed on at least one preset object in the single image frame based on the set first special effect display information to obtain of the second image.
在一些实施例中,在第一图像为包含连续的多个图像帧的第一视频的情况下,可以基于设定的第一特效显示信息,对该第一视频中的每一图像帧中的至少一个预设对象进行特效处理,得到第二视频,也即第二图像。In some embodiments, in the case that the first image is a first video containing a plurality of continuous image frames, based on the set first special effect display information, the image in each image frame in the first video may be At least one preset object is subjected to special effect processing to obtain a second video, that is, a second image.
步骤S104,在所述车载相机的拍摄界面显示所述第二图像。Step S104, displaying the second image on the shooting interface of the vehicle camera.
这里,可以根据实际情况采用合适的方式在车载相机的拍摄界面显示第二图像,本申请实施例对此并不限定。Here, the second image may be displayed on the shooting interface of the vehicle-mounted camera in an appropriate manner according to actual conditions, which is not limited in this embodiment of the present application.
在一些实施例中,所述交互终端包括如下至少一项:车载交互终端、车舱内的用户终端。这里,车载交互终端可以是任意合适的安装在车舱内的交互终端,如车机、车载显示设备等。车舱内的用户终端可以是位于车舱内的任意合适的用户终端,包括但不限于手机、平板电脑等。在实施时,车舱内的用户终端可以由车舱内的用户手持,也可以放置在车舱内,还可以采用可拆卸的方式固定在车舱内,这里并不限定。In some embodiments, the interactive terminal includes at least one of the following: a vehicle interactive terminal, and a user terminal in the vehicle cabin. Here, the vehicle-mounted interactive terminal may be any suitable interactive terminal installed in the vehicle cabin, such as a vehicle machine, a vehicle-mounted display device, and the like. The user terminal in the vehicle cabin may be any suitable user terminal located in the vehicle cabin, including but not limited to a mobile phone, a tablet computer, and the like. During implementation, the user terminal in the vehicle cabin can be held by the user in the vehicle cabin, placed in the vehicle cabin, or fixed in the vehicle cabin in a detachable manner, which is not limited here.
本申请实施例中,通过响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;基于设定的第一特效显示信息对所述第一图像中 的至少一个所述预设对象进行特效处理,得到第二图像;在所述车载相机的拍摄界面显示所述第二图像。这样,用户可以利用设定的第一特效显示信息对车载相机的摄像头拍摄的第一图像中的至少一个预设对象进行特效处理,得到第二图像,从而可以提高车载相机拍摄得到的图像的成像质量和趣味性,将拍照和图像特效处理拓展至车内场景,丰富了人与车的交互方式,并能提高人车之间的互娱性,进而可以更好地满足用户的体验需求。In the embodiment of the present application, by responding to the interactive terminal located in the vehicle cabin receiving the first instruction, the first image captured by the camera of the vehicle-mounted camera is obtained; the key features of the preset object in the first image are detected, determining at least one preset object in the first image; performing special effect processing on at least one preset object in the first image based on the set first special effect display information to obtain a second image; The shooting interface of the vehicle-mounted camera displays the second image. In this way, the user can use the set first special effect display information to perform special effect processing on at least one preset object in the first image captured by the camera of the vehicle-mounted camera to obtain a second image, thereby improving the imaging of the image captured by the vehicle-mounted camera Quality and fun, the camera and image special effects processing is extended to the scene in the car, which enriches the interaction between people and cars, and can improve the mutual entertainment between people and cars, so as to better meet the experience needs of users.
在一些实施例中,在上述步骤S103之前还可以包括:In some embodiments, before the above step S103, it may also include:
步骤S111,响应于在所述拍摄界面进行的第一特效设置操作,获取设定的第一特效显示信息。Step S111 , in response to the first special effect setting operation performed on the shooting interface, acquire the set first special effect display information.
这里,用户可以根据实际需求在车载相机的拍摄界面进行任意合适的第一特效设置操作,为图像的拍摄设置合适的第一特效显示信息,以使得最终得到的第二图像呈现相应的特效效果。第一特效设置操作可以包括但不限于特效效果的添加、删除、显示参数设置等操作中的一种或多种。可以添加的特效效果包括但不限于贴纸特效、美颜特效、美妆特效、背景特效、前景特效、镜头特效等中的一种或多种。针对不同的特效效果可以设置不同的显示信息,获取的第一特效显示信息中可以包括第一特效设置操作设置的至少一个特效效果的特效素材以及每一特效素材的显示参数。例如,在第一特效设置操作设置的特效效果为美颜特效的情况下,获取的第一特效显示信息可以包括设置的美颜类型以及该美颜类型的作用区域、效果强度、透明度等。又如,在第一特效设置操作设置的特效效果为贴纸特效的情况下,获取的第一特效显示信息可以包括添加的贴纸素材以及为该贴纸素材设置的显示位置、显示大小、透明度等。Here, the user can perform any appropriate first special effect setting operation on the shooting interface of the vehicle-mounted camera according to actual needs, and set appropriate first special effect display information for image shooting, so that the finally obtained second image presents a corresponding special effect. The first special effect setting operation may include, but not limited to, one or more of operations such as adding and deleting special effects, and setting display parameters. The special effects that can be added include but are not limited to one or more of sticker effects, beauty effects, makeup effects, background effects, foreground effects, and lens effects. Different display information can be set for different special effects, and the obtained first special effect display information can include the special effect material of at least one special effect set by the first special effect setting operation and the display parameters of each special effect material. For example, in the case that the special effect set by the first special effect setting operation is a beauty effect, the acquired first special effect display information may include the set beauty type, the effect area, effect strength, transparency, etc. of the beauty type. For another example, when the special effect set by the first special effect setting operation is a sticker special effect, the obtained first special effect display information may include the added sticker material and the display position, display size, transparency, etc. set for the sticker material.
在上述实施例中,响应于在拍摄界面进行的第一特效设置操作,获取设定的第一特效显示信息。这样,用户可以根据实际需求对拍摄所采用的特效显示信息进行设置,从而可以进一步提高人车之间的互娱性,进而可以更好地满足用户的体验需求。In the above embodiment, in response to the first special effect setting operation performed on the shooting interface, the set first special effect display information is acquired. In this way, the user can set the special effect display information used in shooting according to actual needs, thereby further improving the mutual entertainment between people and vehicles, and thus better meeting the user's experience needs.
在一些实施例中,上述方法还可以包括如下步骤S121至步骤S122:In some embodiments, the above method may also include the following steps S121 to S122:
步骤S121,响应于在所述车载相机的图像编辑界面对待编辑的第四图像进行的第二特效设置操作,获取设定的第二特效显示信息。Step S121, in response to the second special effect setting operation performed on the image editing interface of the vehicle camera for the fourth image to be edited, to acquire the set second special effect display information.
这里,车载相机的图像编辑界面可以是车载相机中任意合适的对第四图像进行编辑的界面。第四图像可以包括但不限于车载相机历史拍摄的图像、车载相机当前拍摄的图像、导入的图像等。在一些实施例中,车载相机的图像编辑界面可以显示在交互终端上。Here, the image editing interface of the vehicle-mounted camera may be any suitable interface for editing the fourth image in the vehicle-mounted camera. The fourth image may include, but is not limited to, images captured by the vehicle camera in the past, images currently captured by the vehicle camera, imported images, and the like. In some embodiments, the image editing interface of the vehicle camera can be displayed on the interactive terminal.
第二特效设置操作可以是用户根据实际需求为对第四图像进行特效编辑而执行的任意合适的操作。第二特效设置操作可以包括但不限于特效效果的添加、删除、显示参数设置等操作中的一种或多种。可以添加的特效效果包括但不限于贴纸特效、美颜特效、美妆特效、背景特效、前景特效、镜头特效等中的一种或多种。针对不同的特效效果可以设置不同的显示参数,获取的第二特效显示信息中可以包括第二特效设置操作设置的至少一个特效效果的特效素材以及每一特效素材的显示参数。例如,在第二特效设置操作设置的特效效果为美颜特效的情况下,获取的第二特效显示信息可以包括设置的美颜类型以及该美颜类型的作用区域、效果强度、透明度等。又如,在第二特效设置操作设置的特效效果为贴纸特效的情况下,获取的第一特效显示信息可以包括添加的贴纸素材以及为该贴纸素材设置的显示位置、显示大小、透明度等。The second special effect setting operation may be any suitable operation performed by the user to edit the special effect on the fourth image according to actual needs. The second special effect setting operation may include, but not limited to, one or more of operations such as adding and deleting special effects, and setting display parameters. The special effects that can be added include but are not limited to one or more of sticker effects, beauty effects, makeup effects, background effects, foreground effects, and lens effects. Different display parameters may be set for different special effects, and the obtained second special effect display information may include the special effect material of at least one special effect set by the second special effect setting operation and the display parameters of each special effect material. For example, in the case that the special effect set by the second special effect setting operation is a beautification special effect, the obtained second special effect display information may include the set beautification type, the effect area, effect strength, transparency, etc. of the beautification type. For another example, when the special effect set by the second special effect setting operation is a sticker special effect, the obtained first special effect display information may include the added sticker material and the display position, display size, transparency, etc. set for the sticker material.
步骤S122,基于所述第二特效显示信息,对所述第四图像进行特效处理。Step S122, performing special effect processing on the fourth image based on the second special effect display information.
这里,基于第二特效显示信息,可以对第四图像进行特效处理。例如,可以基于设定的美颜素材,对第四图像中的至少一个人脸进行美颜处理;也可以基于设定的贴纸素材和贴纸素材的显示参数,在第四图像中显示该贴纸素材。Here, based on the second special effect display information, special effect processing may be performed on the fourth image. For example, at least one human face in the fourth image can be beautified based on the set beautifying material; the sticker material can also be displayed in the fourth image based on the set sticker material and the display parameters of the sticker material .
本申请实施例中,响应于在车载相机的图像编辑界面对待编辑的第四图像进行的第 二特效设置操作,获取设定的第二特效显示信息,并基于第二特效显示信息,对该第四图像进行特效处理。这样,用户可以根据实际需求对在车载相机的图像编辑界面为待编辑的图像设置特效,从而可以进一步提高人车之间的交互的针对性,进而可以更好地满足用户的体验需求。In the embodiment of the present application, in response to the second special effect setting operation performed on the fourth image to be edited on the image editing interface of the vehicle-mounted camera, the set second special effect display information is obtained, and based on the second special effect display information, the second special effect display information is displayed. Four images are processed with special effects. In this way, the user can set special effects for the image to be edited on the image editing interface of the vehicle-mounted camera according to actual needs, thereby further improving the pertinence of the interaction between people and the vehicle, thereby better meeting the user's experience needs.
本申请实施例提供一种图像拍摄方法,该方法可以由计算机设备执行。如图2所示,该方法包括如下步骤S201至步骤S207:An embodiment of the present application provides an image capturing method, and the method may be executed by a computer device. As shown in Figure 2, the method includes the following steps S201 to S207:
步骤S201,在所述摄像头开启的情况下,获取所述摄像头采集的第三图像。Step S201, when the camera is turned on, acquire a third image captured by the camera.
这里,第三图像可以是摄像头在开启的情况下采集的任意合适的图像。Here, the third image may be any suitable image captured by the camera when it is turned on.
步骤S202,基于所述第三图像确定至少一个预设对象的位置信息。Step S202, determining position information of at least one preset object based on the third image.
这里,通过对第三图像中的预设对象的关键特征进行检测,可以得到第三图像中至少一个预设对象的位置信息。预设对象的位置信息可以是任意合适的可以表征预设对象在第一图像中的位置的信息,包括但不限于预设对象的中心点在第一图像中的坐标、预设对象在第一图像中所占的像素区域等。Here, position information of at least one preset object in the third image can be obtained by detecting key features of the preset object in the third image. The position information of the preset object can be any suitable information that can characterize the position of the preset object in the first image, including but not limited to the coordinates of the center point of the preset object in the first image, the position of the preset object in the first image, The pixel area occupied by the image, etc.
步骤S203,基于至少一个所述预设对象的位置信息,调整所述摄像头的取景范围和/或拍摄角度。Step S203, based on the position information of at least one preset object, adjust the viewing range and/or shooting angle of the camera.
这里,可以基于至少一个预设对象的位置信息,将车载相机的摄像头的取景范围和/或拍摄角度调整至合适的值,使得车载相机的摄像头能够自动适应车舱内预设对象的位置分布情况。在实施时,可以根据实际情况基于至少一个预设对象的位置信息,采用合适的调整策略调整摄像头的取景范围和/或拍摄角度,这里并不限定。例如,在第三图像中只检测到驾驶员的情况下,可以基于驾驶员的位置信息,减小摄像头的取景范围和/或调整摄像头的拍摄角度,使得摄像头只拍摄驾驶员所在区域。又如,在第三图像检测到多个乘车人员的情况下,可以基于多个乘车人员的位置信息,增大摄像头的取景范围和/或调整摄像头的拍摄角度,使得摄像头能够更好地拍摄到该多个乘车人员。Here, based on the position information of at least one preset object, the viewing range and/or shooting angle of the camera head of the vehicle-mounted camera can be adjusted to an appropriate value, so that the camera head of the vehicle-mounted camera can automatically adapt to the position distribution of the preset objects in the vehicle cabin . During implementation, an appropriate adjustment strategy may be used to adjust the viewing range and/or shooting angle of the camera based on the position information of at least one preset object according to the actual situation, which is not limited here. For example, if only the driver is detected in the third image, based on the location information of the driver, the viewing range of the camera may be reduced and/or the shooting angle of the camera may be adjusted so that the camera only captures the area where the driver is located. As another example, in the case that multiple occupants are detected in the third image, based on the position information of the multiple occupants, the viewing range of the camera may be increased and/or the shooting angle of the camera may be adjusted so that the camera can better The multiple passengers are photographed.
步骤S204,响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄。Step S204, in response to the interactive terminal in the vehicle cabin receiving a first instruction, acquire a first image captured by the camera of the vehicle-mounted camera; wherein the first instruction is used to trigger the vehicle-mounted camera to take an image.
步骤S205,对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象。Step S205, detecting key features of preset objects in the first image, and determining at least one preset object in the first image.
步骤S206,基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像。Step S206, performing special effect processing on at least one preset object in the first image based on the set first special effect display information to obtain a second image.
步骤S207,在所述车载相机的拍摄界面显示所述第二图像。Step S207, displaying the second image on the shooting interface of the vehicle camera.
这里,上述步骤S204至步骤S207分别对应于前述步骤S101至步骤S104,在实施时可以参照前述步骤S101至步骤S104的具体实施方式。Here, the above-mentioned steps S204 to S207 correspond to the above-mentioned steps S101 to S104 respectively, and the specific implementation manners of the above-mentioned steps S101 to S104 can be referred to for implementation.
本申请实施例中,在摄像头开启的情况下,获取摄像头采集的第三图像;基于第三图像确定至少一个预设对象的位置信息;基于至少一个预设对象的位置信息,调整摄像头的取景范围和/或拍摄角度。这样,可以使得车载相机的摄像头能够自动适应车舱内预设对象的位置分布情况,进行取景范围和/或拍摄角度的调整,实现更灵活的拍摄取景范围和/或拍摄角度的控制,有利于拍摄更高质量的图片。In the embodiment of the present application, when the camera is turned on, the third image captured by the camera is acquired; the position information of at least one preset object is determined based on the third image; and the viewing range of the camera is adjusted based on the position information of at least one preset object and/or camera angle. In this way, the camera of the vehicle-mounted camera can automatically adapt to the position distribution of preset objects in the cabin, adjust the viewfinder range and/or shooting angle, and realize more flexible control of the shooting viewfinder range and/or shooting angle, which is beneficial Take higher quality pictures.
在一些实施例中,所述车载相机设置于所述车舱内的驾驶员座位的前方或车舱内最前排座位的前方,所述位置信息包括乘车位置信息;上述步骤S203可以包括:In some embodiments, the vehicle-mounted camera is set in front of the driver's seat in the vehicle cabin or in front of the front seat in the vehicle cabin, and the position information includes riding position information; the above step S203 may include:
步骤S211,在根据所述乘车位置信息确定所述车舱内的各所述预设对象乘坐于所述车舱内的最前排座位的情况下,调整所述摄像头的取景范围为与最前排座位对应的第一预设取景范围,和/或调整所述摄像头的拍摄角度为与最前排座位对应的第一预设角度;Step S211, when it is determined according to the riding position information that each of the preset objects in the cabin is seated in the front row seat in the cabin, adjust the viewing range of the camera to be the same as the front row seat. The first preset viewing range corresponding to the seat, and/or adjusting the shooting angle of the camera to the first preset angle corresponding to the front seat;
这里,乘车位置信息可以是预设对象在车舱内所处的座位区域,可以包括但不限于车舱内的最前排座位、第二排座位、最后排座位、驾驶员座位、副驾驶座位等中的一种 或多种。Here, the riding position information may be the seat area where the preset object is located in the cabin, which may include but not limited to the front seat, the second row of seats, the last row of seats, the driver's seat, and the passenger's seat in the cabin. one or more of these.
在实施时,可以根据实际情况预先设定车舱内至少一个座位区域与摄像头的取景范围和/或拍摄角度之间的对应关系,基于该对应关系,可以确定与最前排座位对应的第一预设取景范围,和/或与最前排座位对应的第一预设角度;也可以通过图像识别技术,自动识别车舱内最前排座位所在的区域,并基于该区域自动确定合适的第一预设取景范围和/或第一预设角度。During implementation, the corresponding relationship between at least one seat area in the cabin and the viewing range and/or shooting angle of the camera can be preset according to the actual situation. Based on the corresponding relationship, the first preset corresponding to the front seat can be determined. Set the viewfinder range, and/or the first preset angle corresponding to the front row of seats; image recognition technology can also be used to automatically identify the area where the front row of seats in the cabin is located, and automatically determine the appropriate first preset based on this area Viewing range and/or first preset angle.
步骤S212,在根据所述乘坐位置信息确定所述车舱内的至少两个所述预设对象乘坐于所述车舱内的至少两排不同的座位的情况下,调整所述摄像头的取景范围为与车舱内的所有座位区域对应的第二预设取景范围,和/或调整所述摄像头的拍摄角度为与车舱内的所有座位区域对应的第二预设角度。Step S212, when it is determined according to the seating position information that at least two of the preset objects in the cabin are sitting in at least two different rows of seats in the cabin, adjusting the viewing range of the camera It is the second preset viewing range corresponding to all the seating areas in the cabin, and/or adjusting the shooting angle of the camera to be the second preset angle corresponding to all the seating areas in the cabin.
这里,与车舱内的所有座位区域对应的第二预设取景范围和/或第二预设角度,可以是预先设定的,也可以是通过图像识别技术自动确定的,这里并不限定。Here, the second preset viewing range and/or the second preset angle corresponding to all the seating areas in the cabin may be preset or automatically determined by image recognition technology, which is not limited here.
在上述实施例中,根据车舱内至少一个预设对象的乘车座位信息,自动调整所述摄像头的取景范围和/或拍摄角度,可以进一步提高人车之间的互娱性。In the above embodiment, the viewing range and/or shooting angle of the camera are automatically adjusted according to the passenger seat information of at least one preset object in the vehicle cabin, which can further improve the mutual entertainment between people and vehicles.
在一些实施例中,特效显示信息可以包括特效素材的显示位置配置信息。显示位置配置信息是用于配置特效素材在图像中的显示位置的信息。这种情况下,本申请的实施例提供一种图像拍摄方法,该方法可以由计算机设备执行。如图3所示,该方法包括如下步骤S301至步骤S305:In some embodiments, the special effect display information may include display position configuration information of the special effect material. The display position configuration information is information for configuring the display position of the special effect material in the image. In this case, an embodiment of the present application provides an image capturing method, which can be executed by a computer device. As shown in Figure 3, the method includes the following steps S301 to S305:
步骤S301,响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄。Step S301, in response to the interactive terminal in the vehicle cabin receiving a first instruction, acquire a first image captured by the camera of the vehicle-mounted camera; wherein the first instruction is used to trigger the vehicle-mounted camera to take an image.
步骤S302,对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象。Step S302, detecting key features of preset objects in the first image, and determining at least one preset object in the first image.
这里,上述步骤S301至步骤S302分别对应于前述步骤S101至步骤S102,在实施时可以参照前述步骤S101至步骤S102的具体实施方式。Here, the above-mentioned steps S301 to S302 correspond to the above-mentioned steps S101 to S102 respectively, and the specific implementation manners of the above-mentioned steps S101 to S102 can be referred to for implementation.
步骤S303,基于设定的所述特效素材的显示位置配置信息,对所述第一图像中的至少一个所述预设对象进行与所述特效素材对应的显示效果处理。Step S303, based on the set display position configuration information of the special effect material, perform display effect processing corresponding to the special effect material on at least one of the preset objects in the first image.
这里,特效素材的显示位置配置信息可以是用于确定特效素材在第一图像中的显示位置的配置信息。在实施时,可以根据实际情况为特效素材设定合适的显示位置配置信息,这里并不限定。例如,显示位置配置信息可以包括特效素材在第一图像中的显示位置的坐标,也可以包括特效素材的显示位置的坐标与预设对象的关键点的位置之间的映射关系等。Here, the display position configuration information of the special effect material may be configuration information for determining a display position of the special effect material in the first image. During implementation, appropriate display position configuration information can be set for the special effect material according to the actual situation, which is not limited here. For example, the display position configuration information may include the coordinates of the display position of the special effect material in the first image, and may also include a mapping relationship between the coordinates of the display position of the special effect material and the positions of the key points of the preset object.
基于特效素材的显示位置配置信息,可以对第一图像进行对应的显示效果处理。可选地,可以为第一图像中的至少一个预设对象添加该特效素材。添加的特效素材可以是呈现在预设对象上的,也可以呈现在第一图像中预设对象之外的其他位置。或者,可以根据特效素材的显示位置配置信息,对第一图像中的预设对象执行与该特效素材对应的图像处理。例如,可以基于设定的美颜素材,对第一图像中的至少一个人脸进行美颜处理;也可以基于设定的贴纸素材和贴纸素材的显示参数,在第一图像中的至少一个人脸上显示该贴纸素材;还可以基于设定的贴纸素材和贴纸素材的显示参数,在第一图像中的至少一个汽车座椅周围显示该贴纸素材。Based on the display position configuration information of the special effect material, corresponding display effect processing may be performed on the first image. Optionally, the special effect material can be added to at least one preset object in the first image. The added special effect material may be presented on the preset object, or may be presented in other positions in the first image than the preset object. Alternatively, image processing corresponding to the special effect material may be performed on the preset object in the first image according to the display position configuration information of the special effect material. For example, at least one human face in the first image may be beautified based on the set beautifying material; The sticker material is displayed on the face; the sticker material may also be displayed around at least one car seat in the first image based on the set sticker material and display parameters of the sticker material.
在一些实施方式中,可以根据至少一个预设对象的位置区域和特效素材的显示位置配置信息,在第一图像中呈现该特效素材。具体来说,特效素材的显示位置配置信息中包括显示位置的坐标与预设对象的位置区域之间的映射关系,可以根据该映射关系确定与第一图像中至少一个预设对象的位置区域对应的至少一个显示位置,并在该显示位置呈现该特效素材,例如在人眼位置处叠加墨镜图片素材以实现人佩戴墨镜的显示效果; 或者,针对第一图像中该显示位置对应的区域进行诸如图像亮度变换、色度转换、风格变换等处理以实现与特效素材对应的显示效果,例如美颜特效处理中可以针对人脸区域的颜色值进行调整以实现“美白”特效素材对应的显示效果。In some implementations, the special effect material may be presented in the first image according to the location area of at least one preset object and the display position configuration information of the special effect material. Specifically, the display position configuration information of the special effect material includes the mapping relationship between the coordinates of the display position and the position area of the preset object, and the corresponding position area of at least one preset object in the first image can be determined according to the mapping relationship. at least one display position, and present the special effect material at the display position, for example, superimposing the sunglasses picture material at the position of the human eye to realize the display effect of the person wearing sunglasses; or, for the area corresponding to the display position in the first image, such as Image brightness conversion, chroma conversion, style conversion and other processing to achieve the display effect corresponding to the special effect material. For example, in the beauty special effect processing, the color value of the face area can be adjusted to achieve the display effect corresponding to the "whitening" special effect material.
步骤S304,将进行与所述特效素材对应的显示效果处理后的所述第一图像,确定为第二图像。In step S304, the first image after the display effect processing corresponding to the special effect material is determined as the second image.
步骤S305,在所述车载相机的拍摄界面显示所述第二图像。Step S305, displaying the second image on the shooting interface of the vehicle camera.
这里,上述步骤S305于前述步骤S104,在实施时可以参照前述步骤S104的具体实施方式。Here, the above-mentioned step S305 is superior to the above-mentioned step S104, and the specific implementation manner of the above-mentioned step S104 can be referred to for implementation.
本申请实施例中,第一特效显示信息包括特效素材和特效素材的显示位置配置信息,基于设定的特效素材的显示位置配置信息,对第一图像中的至少一个预设对象进行与特效素材对应的显示效果处理,并将显示效果处理后的图像确定为第二图像。这样,可以简单快速地对第一图像中的至少一个预设对象进行特效处理并预览特效处理结果,提升车舱内的图像处理方式的灵活性和处理效率。。In the embodiment of the present application, the first special effect display information includes the special effect material and the display position configuration information of the special effect material, based on the set display position configuration information of the special effect material, at least one preset object in the first image is compared with the special effect material Corresponding display effect processing, and determining the image after the display effect processing as the second image. In this way, it is possible to simply and quickly perform special effect processing on at least one preset object in the first image and preview the special effect processing result, thereby improving the flexibility and processing efficiency of the image processing method in the vehicle cabin. .
在一些实施例中,所述预设对象包括以下至少之一:车舱内的人员(人体)、人体部位、动物;所述特效素材包括以下至少之一:美颜素材、美妆素材、滤镜素材、贴纸素材。In some embodiments, the preset object includes at least one of the following: people (human bodies) in the cabin, human body parts, animals; the special effect material includes at least one of the following: beauty material, makeup material, filter Mirror material, sticker material.
这里,特效素材为呈现特效效果所需要的素材,可以包括但不限于贴纸素材(如卡通贴纸、花朵贴纸、星星贴纸、虚拟车舱场景贴纸、虚拟机舱场景贴纸、虚拟过山车场景贴纸等)、美颜素材(如磨皮、瘦脸、放大眼睛等特效效果所需的素材)、美妆素材(如口红、睫毛膏、眼影、腮红等)、滤镜素材(如怀旧滤镜、柔和滤镜、除霾滤镜等特效效果所需的素材)等中的一种或多种。Here, the special effect material is the material needed to present the special effect, which may include but not limited to sticker materials (such as cartoon stickers, flower stickers, star stickers, virtual car cabin scene stickers, virtual cabin scene stickers, virtual roller coaster scene stickers, etc.), beauty Make-up materials (such as materials required for special effects such as skin smoothing, face-lifting, and eye enlargement), beauty materials (such as lipstick, mascara, eye shadow, blush, etc.), filter materials (such as nostalgic filters, soft filters, One or more of the materials required for special effects such as haze removal filters), etc.
在一些实施例中,所述预设对象包括人脸,所述显示位置配置信息包括特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系;上述步骤S303可以包括步骤S311和/或步骤S312:In some embodiments, the preset object includes a human face, and the display position configuration information includes a first mapping relationship between the display position parameters of the special effect material and the positions of the key points of the human face; the above step S303 may include step S311 And/or step S312:
步骤S311,基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定设定的所述特效素材的显示位置,并根据所述特效素材的显示位置将所述特效素材叠加到所述人脸上。Step S311, based on the position of at least one face key point in the first image and the first mapping relationship, determine the set display position of the special effect material, and place the set display position of the special effect material according to the display position of the special effect material The special effect material is superimposed on the face of the person.
步骤S312,确定与设定的所述特效素材对应的图像处理方式;基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定设定的所述特效素材的显示位置,并按照所述图像处理方式对所述人脸中与所述特效素材的显示位置对应的图像区域进行处理。Step S312: Determine the image processing method corresponding to the set special effect material; determine the set special effect material based on the position of at least one face key point in the first image and the first mapping relationship , and process the image area of the face corresponding to the display position of the special effect material according to the image processing manner.
这里,可以对第一图像中的人脸关键点进行检测,确定第一图像中的至少一个人脸关键点的位置。基于特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系,可以确定对应于至少一个人脸关键点的位置的特效素材的显示位置。根据确定的特效素材的显示位置,在第一图像中通过叠加、覆盖的方式呈现该特效素材,即可将该特效素材叠加到第一图像中的至少一个人脸上。叠加到人脸上的素材可以如美颜素材、美妆素材、滤镜素材、贴纸素材等中的一种或多种。或者,可以根据预先配置的特效素材对应的图像处理方式,对图像中的人脸区域进行对应的图像处理,例如,可以根据“美白”特效素材对应的像素值变换方式,对人脸中与该特效素材的显示位置对应的图像区域进行像素值变换,以实现对图像中的人脸的“美白”处理。Here, the key points of human face in the first image may be detected, and the position of at least one key point of human face in the first image may be determined. Based on the first mapping relationship between the display position parameter of the special effect material and the position of the facial key point, the display position of the special effect material corresponding to the position of at least one human face key point can be determined. According to the determined display position of the special effect material, the special effect material can be superimposed on at least one human face in the first image by presenting the special effect material in a manner of overlaying or covering in the first image. The material superimposed on the human face can be one or more of beauty material, makeup material, filter material, sticker material, etc. Or, according to the image processing method corresponding to the pre-configured special effect material, the corresponding image processing can be performed on the face area in the image. For example, according to the pixel value conversion method corresponding to the "whitening" special effect material, The pixel value of the image area corresponding to the display position of the special effect material is transformed, so as to realize the "whitening" processing of the human face in the image.
在一些实施方式中,特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系可以包括设定的特效素材的显示位置参数与人脸关键点的位置之间的对应关系。在一些实施例中,特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系可以是特效素材的显示位置参数与人脸关键点的位置之间互相转换的方式,例如,用于根据 人脸关键点的位置计算特效素材的显示位置参数的公式,或者将人脸关键点的位置转换至特效素材的显示位置参数的转换算法等。In some implementations, the first mapping relationship between the display position parameter of the special effect material and the position of the facial key point may include a set correspondence between the display position parameter of the special effect material and the position of the key point of the human face. In some embodiments, the first mapping relationship between the display position parameter of the special effect material and the position of the key point of the face may be the way of mutual conversion between the display position parameter of the special effect material and the position of the key point of the face, for example, The formula used to calculate the display position parameters of the special effect material according to the position of the key points of the face, or the conversion algorithm for converting the position of the key points of the face to the display position parameters of the special effect material, etc.
在一些实施例中,所述预设对象包括车舱内的人员,所述特效素材包括虚拟行驶工具贴纸;上述步骤S303可以包括:In some embodiments, the preset object includes people in the cabin, and the special effect material includes virtual driving tool stickers; the above step S303 may include:
步骤S321,基于设定的所述虚拟行驶工具贴纸的显示位置配置信息,在所述第一图像中呈现至少一个所述车舱内的人员乘坐虚拟行驶工具的特效场景。Step S321 , based on the set display position configuration information of the sticker of the virtual driving tool, present in the first image at least one special effect scene of a person in the vehicle cabin riding a virtual driving tool.
这里,车舱内的人员可以包括车舱内的驾驶员或乘客。在实施时,可以对第一图像中的人脸关键点进行检测,确定第一图像中的至少一个车舱内人员;也可以对第一图像中的人体姿态进行检测,确定第一图像中的至少一个车舱内人员,这里并不限定。Here, the people in the cabin may include the driver or passengers in the cabin. During implementation, the face key points in the first image can be detected to determine at least one person in the cabin in the first image; the human body posture in the first image can also be detected to determine the At least one person in the cabin is not limited here.
虚拟行驶工具贴纸可以是任意合适的呈现虚拟行驶工具乘坐效果的贴纸,例如,虚拟车舱贴纸、虚拟机舱贴纸、虚拟过山车贴纸等。基于设定的虚拟行驶工具贴纸的显示位置配置信息,可以确定虚拟行驶工具贴纸在第一图像中的显示位置,从而可以基于该显示位置在第一图像中呈现至少一个车舱内的人员乘坐虚拟行驶工具的特效场景。这样,可以进一步增强车载相机进行图像拍摄的趣味性。The sticker of the virtual driving tool may be any suitable sticker showing the riding effect of the virtual driving tool, for example, a sticker of a virtual cabin, a sticker of a virtual cabin, a sticker of a virtual roller coaster, and the like. Based on the set display position configuration information of the virtual driving tool sticker, the display position of the virtual driving tool sticker in the first image can be determined, so that at least one passenger in the cabin can be presented in the first image based on the display position. Special effects scene for driving tools. In this way, the fun of image shooting by the vehicle-mounted camera can be further enhanced.
在一些实施例中,上述步骤S303可以包括如下步骤S331至步骤S332:In some embodiments, the above step S303 may include the following steps S331 to S332:
步骤S331,基于所述第一图像,检测与所述特效素材匹配的特效触发动作。Step S331 , based on the first image, detect a special effect triggering action matching the special effect material.
这里,每一特效素材可以具有相应的特效触发动作,特效触发动作可以包括但不限于人脸动作、手势、肢体动作等中的一种或多种。在实施时,与特效素材匹配的特效触发动作可以是默认的,也可以通过查询特效素材与特效触发动作之间预设的对应关系,确定与特效素材匹配的特效触发动作;还可以获取用户基于设定的特效素材在图像拍摄前或图像拍摄的过程中设定的特效触发动作,这里并不限定。Here, each special effect material may have a corresponding special effect triggering action, and the special effect triggering action may include but not limited to one or more of facial movements, gestures, body movements, and the like. During implementation, the special effect triggering action matching the special effect material can be the default, or the special effect triggering action matching the special effect material can be determined by querying the preset correspondence between the special effect material and the special effect triggering action; The special effect trigger action set by the set special effect material before or during image shooting is not limited here.
步骤S332,响应于检测到所述特效触发动作,基于设定的所述特效素材的显示位置配置信息,为所述第一图像中的至少一个所述预设对象添加所述特效素材。Step S332, in response to detecting the special effect triggering action, adding the special effect material to at least one of the preset objects in the first image based on the set display position configuration information of the special effect material.
这里,可以在第一图像中检测到特效触发动作的情况下,基于设定的特效素材的显示位置配置信息,为第一图像中的至少一个预设对象添加特效素材。这样,可以进一步提高车载相机进行图像拍摄的趣味性,并能进一步提高人车之间的互娱性,进而可以更好地满足用户的体验需求。Here, when a special effect triggering action is detected in the first image, based on the set display position configuration information of the special effect material, a special effect material may be added to at least one preset object in the first image. In this way, the fun of image shooting by the vehicle-mounted camera can be further improved, and the mutual entertainment between people and vehicles can be further improved, thereby better satisfying user experience needs.
在一些实施例中,所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系;上述方法还可以包括如下步骤S341:In some embodiments, the display position configuration information of the virtual driving tool sticker includes a second mapping relationship between the display position of at least one virtual seating area in the virtual driving tool sticker and the position of the person in the image; the above method also May include the following step S341:
步骤S341,基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置。Step S341 , detecting the seating position of at least one person in the vehicle cabin based on the first image.
这里,人员的乘坐位置可以是人员所处的位置,也可以是人员乘坐的座位的位置,这里并不限定。Here, the seating position of the person may be the position where the person is, or the seat where the person is sitting, which is not limited here.
上述步骤S321可以包括如下步骤S342至步骤S343:The above step S321 may include the following steps S342 to S343:
步骤S342,基于所述乘坐位置以及所述第二映射关系,确定与所述乘坐位置对应的目标虚拟乘坐区域的第一显示位置。Step S342, based on the seating position and the second mapping relationship, determine a first display position of the target virtual seating area corresponding to the seating position.
这里,基于虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系,可以确定对应于车舱内的至少一个人员的乘坐位置的目标虚拟乘坐区域的第一显示位置。Here, based on the second mapping relationship between the display position of at least one virtual seating area in the sticker of the virtual driving tool and the position of the person in the image, the target virtual seating position corresponding to the seating position of at least one person in the cabin can be determined. The first display position of the region.
在一些实施方式中,虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系可以包括设定的虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的对应关系。在一些实施例中,虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系可以是虚拟乘坐区域的显示位置与图像中的人员的位置之间互相转换 的方式,例如,用于根据图像中的人员的位置计算虚拟乘坐区域的显示位置的公式,或者将图像中的人员的位置转换至虚拟乘坐区域的显示位置的转换算法等。In some implementations, the second mapping relationship between the display position of at least one virtual seating area in the virtual driving tool sticker and the position of the person in the image may include at least one virtual seating area in the set virtual driving tool sticker The correspondence between the display position of the image and the position of the person in the image. In some embodiments, the second mapping relationship between the display position of at least one virtual seating area in the sticker of the virtual driving tool and the position of the person in the image may be the relationship between the display position of the virtual riding area and the position of the person in the image For example, the formula used to calculate the display position of the virtual seating area according to the position of the person in the image, or the conversion algorithm for converting the position of the person in the image to the display position of the virtual seating area, etc.
步骤S343,基于所述第一显示位置在所述第一图像中显示所述虚拟行驶工具贴纸,以呈现至少一个所述人员乘坐在所述虚拟乘坐区域中的特效场景。Step S343, displaying the sticker of the virtual driving tool in the first image based on the first display position, so as to present at least one special effect scene in which the person rides in the virtual riding area.
在上述实施例中,基于第一图像检测车舱内的至少一个人员的乘坐位置;基于乘坐位置以及虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系,确定目标虚拟乘坐区域的第一显示位置;基于该第一显示位置在第一图像中显示虚拟行驶工具贴纸,以呈现至少一个人员乘坐在虚拟乘坐区域中的特效场景。这样,可以根据车舱内人员的乘坐位置,自动在合适的位置显示虚拟行驶工具贴纸,从而可以进一步提高车载相机进行图像拍摄的趣味性,并能进一步提高人车之间的互娱性,进而可以更好地满足用户的体验需求。In the above embodiment, the seating position of at least one person in the cabin is detected based on the first image; The second mapping relationship is to determine the first display position of the target virtual seating area; based on the first display position, the virtual driving tool sticker is displayed in the first image to present a special effect scene of at least one person riding in the virtual seating area. In this way, the virtual driving tool stickers can be automatically displayed at appropriate positions according to the seating positions of the people in the cabin, which can further improve the fun of image capture by the on-board camera, and further improve the mutual entertainment between people and vehicles. Can better meet the user's experience needs.
在一些实施例中,上述步骤S343可以包括:步骤S351,将所述虚拟行驶工具的贴纸按照如下方式叠加在所述第一图像上:所述目标虚拟乘坐区域显示在所述第一显示位置处。这里,可以简单快速地通过贴纸叠加的方式对虚拟行驶工具贴纸进行显示,呈现至少一个人员乘坐在虚拟乘坐区域中的特效场景。In some embodiments, the above step S343 may include: step S351, superimposing the sticker of the virtual driving tool on the first image in the following manner: the target virtual riding area is displayed at the first display position . Here, the virtual driving tool stickers can be displayed simply and quickly by superimposing stickers, presenting a special effect scene of at least one person riding in the virtual riding area.
在一些实施例中,所述虚拟行驶工具贴纸包括至少一个显示参数可调的虚拟元件,所述显示参数包括显示位置和/或显示尺寸;所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个所述虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系;上述方法还可以包括如下步骤S361和步骤S362中的至少一个:In some embodiments, the virtual driving tool sticker includes at least one virtual element with adjustable display parameters, and the display parameters include display position and/or display size; the display position configuration information of the virtual driving tool sticker includes virtual driving A third mapping relationship between the display position of at least one virtual element in the tool sticker and the position of the person in the image; the above method may also include at least one of the following steps S361 and S362:
步骤S361,基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置,并基于所述乘坐位置和所述第三映射关系确定至少一个所述虚拟元件的第二显示位置。Step S361 , detecting the seating position of at least one person in the vehicle cabin based on the first image, and determining a second display position of at least one virtual element based on the seating position and the third mapping relationship.
这里,可以通过任意合适的图像检测方法,基于第一图像检测车舱内的至少一个人员的乘坐位置。Here, the seating position of at least one person in the vehicle cabin may be detected based on the first image through any suitable image detection method.
虚拟元件为虚拟行驶工具贴纸中显示参数可调的任意合适的元件,例如,虚拟座位元件、虚拟方向盘元件、虚拟车窗元件等中的一种或多种。虚拟元件的显示参数可以根据车舱内人员的乘坐位置或尺寸等自动调节,也可以由用户手动调节,这里并不限定。在实施时,通过调整虚拟行驶工具贴纸中虚拟元件的显示参数,可以在不同场景下使得虚拟行驶工具贴纸完全覆盖车舱内的座位、方向盘等关键部件,例如,在过山车贴纸中可以通过调整虚拟的过山车车头图形的显示显示位置和显示尺寸来覆盖车舱内真实场景的方向盘等部件。The virtual element is any suitable element with adjustable display parameters in the virtual driving tool sticker, for example, one or more of virtual seat elements, virtual steering wheel elements, virtual window elements, and the like. The display parameters of the virtual element can be automatically adjusted according to the seating position or size of the occupants in the cabin, or manually adjusted by the user, which is not limited here. During implementation, by adjusting the display parameters of the virtual components in the virtual driving tool stickers, the virtual driving tool stickers can completely cover key components such as seats and steering wheels in the cabin under different scenarios. For example, in the roller coaster stickers, you can adjust the virtual The display position and display size of the front graphics of the roller coaster are used to cover the steering wheel and other components of the real scene in the cabin.
基于虚拟行驶工具贴纸中的至少一个所述虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系,可以确定对应于车舱内的至少一个人员的乘坐位置的虚拟元件的第二显示位置。Based on the third mapping relationship between the display position of at least one virtual element in the sticker of the virtual driving tool and the position of the person in the image, the first position of the virtual element corresponding to the seating position of at least one person in the cabin can be determined. Two shows the location.
在一些实施方式中,虚拟行驶工具贴纸中的至少一个虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系可以包括设定的虚拟行驶工具贴纸中的至少一个虚拟元件的显示位置与图像中的人员的位置之间的对应关系。在一些实施例中,虚拟行驶工具贴纸中的至少一个虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系可以是虚拟元件的显示位置与图像中的人员的位置之间互相转换的方式,例如,用于根据图像中的人员的位置计算虚拟元件的显示位置的公式,或者将图像中的人员的位置转换至虚拟元件的显示位置的转换算法等。In some implementations, the third mapping relationship between the display position of at least one virtual element in the virtual driving tool sticker and the position of the person in the image may include the display of at least one virtual element in the set virtual driving tool sticker The correspondence between the location and the location of the person in the image. In some embodiments, the third mapping relationship between the display position of at least one virtual element in the virtual driving tool sticker and the position of the person in the image may be the mutual relationship between the display position of the virtual element and the position of the person in the image. The conversion method, for example, a formula used to calculate the display position of the virtual component according to the position of the person in the image, or a conversion algorithm for converting the position of the person in the image to the display position of the virtual component, etc.
步骤S362,基于所述第一图像确定所述车舱内的至少一个人员的尺寸,并基于所述尺寸确定至少一个所述虚拟元件的目标显示尺寸。Step S362, determining the size of at least one person in the vehicle cabin based on the first image, and determining a target display size of at least one virtual element based on the size.
这里,人员的尺寸可以包括但不限于人员在第一图像中所占的面积、头部宽度、身体宽度、身体长度等中的一种或多种,这里并不限定。Here, the size of the person may include but not limited to one or more of the area occupied by the person in the first image, head width, body width, body length, etc., which is not limited here.
虚拟元件的显示尺寸可以是根据虚拟元件的形状、类型确定的合适的显示指标,例如,虚拟元件的长度、宽度、面积、周长、直径等。在一些实施方式中,虚拟元件可以是二维的,也可以是三维的,在虚拟元件为三维元件的情况下,显示尺寸还可以包括虚拟元件的高度。The display size of the virtual element may be an appropriate display index determined according to the shape and type of the virtual element, for example, the length, width, area, circumference, diameter, etc. of the virtual element. In some implementations, the virtual element may be two-dimensional or three-dimensional, and when the virtual element is a three-dimensional element, the display size may also include the height of the virtual element.
在实施时,可以根据实际需求采用合适的方式基于车舱内的至少一个人员的尺寸确定至少一个虚拟元件的目标显示尺寸,这里并不限定。例如,可以预先设定车舱内人员的尺寸与虚拟元件的显示尺寸之间的对应关系,根据该对应关系,可以确定与至少一个人员的尺寸对应的至少一个虚拟元件的目标显示尺寸。During implementation, the target display size of at least one virtual element may be determined based on the size of at least one person in the cabin in an appropriate manner according to actual needs, which is not limited here. For example, the corresponding relationship between the size of the person in the vehicle cabin and the display size of the virtual element can be preset, and according to the corresponding relationship, the target display size of at least one virtual element corresponding to the size of at least one person can be determined.
上述步骤S321可以包括如下步骤S363:The above step S321 may include the following step S363:
步骤S363,基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示至少一个所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。Step S363, based on the second display position and/or target display size of at least one virtual component, display at least one virtual component in the first image to present at least one special effect of the person riding on the virtual driving tool Scenes.
在上述实施例中,可以根据车舱内人员的乘坐位置和尺寸,确定虚拟行驶工具贴纸中至少一个显示参数可调的虚拟元件的第二显示位置和/或显示尺寸,并基于至少一个虚拟元件的第二显示位置和/或目标显示尺寸,在第一图像中显示相应的虚拟元件,从而可以根据车舱内人员的乘坐位置和尺寸显示合适的虚拟行驶工具贴纸,进一步提高人车之间的互娱性,进而可以更好地满足用户的体验需求。In the above embodiment, the second display position and/or display size of at least one virtual element with adjustable display parameters in the virtual driving tool sticker can be determined according to the seating position and size of the occupants in the cabin, and based on the at least one virtual element The second display position and/or target display size of the corresponding virtual element is displayed in the first image, so that the appropriate virtual driving tool stickers can be displayed according to the seating position and size of the occupants in the cabin, further improving the relationship between people and vehicles. Interactive entertainment, which can better meet the user's experience needs.
在一些实施例中,上述步骤S363可以包括步骤S371至步骤S373之一:In some embodiments, the above step S363 may include one of step S371 to step S373:
步骤S371,基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,确定所述第一图像中的虚拟元件绘制区域,并在所述虚拟元件绘制区域绘制至少一个所述虚拟元件。Step S371, based on the second display position and/or target display size of at least one virtual component, determine a virtual component drawing area in the first image, and draw at least one virtual component in the virtual component drawing area .
这里,可以根据实际情况采用合适的方式确定第一图像中的虚拟元件绘制区域的形状、显示效果等,本申请实施例对此并不限定。Here, the shape, display effect, etc. of the virtual element drawing area in the first image may be determined in an appropriate manner according to the actual situation, which is not limited in this embodiment of the present application.
步骤S372,基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中渲染至少一个所述虚拟元件。Step S372: Render at least one virtual element in the first image based on the second display position and/or the target display size of the at least one virtual element.
这里,可以采用任意合适的图像渲染算法在第一图像中渲染虚拟元件,本申请实施例对此并不限定。Here, any suitable image rendering algorithm may be used to render the virtual element in the first image, which is not limited in this embodiment of the present application.
步骤S373,基于每一个所述虚拟元件的第二显示位置和/或目标显示尺寸,对至少一个所述虚拟元件进行拼接以生成所述贴纸,将所述贴纸添加至所述第一图像中。Step S373, based on the second display position and/or target display size of each of the virtual components, splicing at least one of the virtual components to generate the sticker, and adding the sticker to the first image.
在一些实施例中,上述方法还可以包括:步骤S381,基于所述第一图像中所述车舱内的人员的数量,确定所述虚拟行驶工具贴纸中所述虚拟元件的数量。In some embodiments, the above method may further include: Step S381, based on the number of people in the cabin in the first image, determine the number of the virtual elements in the virtual driving tool sticker.
这里,虚拟行驶工具贴纸中虚拟元件的数量可以与第一图像中车舱内的人员的数量相同或相关,这里并不限定。在一些实施方式中,可以根据实际情况确定合适的数量对应关系,并利用该数量对应关系基于第一图像中车舱内的人员的数量,确定虚拟行驶工具贴纸中虚拟元件的数量。Here, the number of virtual elements in the virtual driving tool sticker may be the same as or related to the number of people in the cabin in the first image, which is not limited here. In some implementations, an appropriate quantity correspondence can be determined according to actual conditions, and the quantity of virtual elements in the virtual driving tool sticker can be determined based on the number of people in the cabin in the first image by using the quantity correspondence.
上述步骤S363可以包括:步骤S382,基于所述虚拟行驶工具贴纸中虚拟元件的数量以及每一所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示每一所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。The above step S363 may include: step S382, based on the number of virtual elements in the virtual driving tool sticker and the second display position and/or target display size of each virtual element, displaying each virtual element in the first image The virtual element is used to present at least one special effect scene in which the person rides a virtual driving tool.
在上述实施例中,基于第一图像中车舱内的人员的数量,确定虚拟行驶工具贴纸中虚拟元件的数量,并基于虚拟元件的数量以及每一虚拟元件的第二显示位置和目标显示尺寸,在第一图像中显示每一虚拟元件,以呈现至少一个人员乘坐虚拟行驶工具的特效场景。这样,可以在车舱内有多个人员的场景,根据人员的数量以及每个人员的乘车位置,针对性设置虚拟行驶工具中虚拟元件的数量和显示参数,例如,在过山车贴纸中设置与车舱内的人员的数量和乘坐位置均一致的虚拟座位的数量和位置,不同座位的贴纸 元件调整后可以拼接为一个完整的贴纸,这样贴纸可以更准确地拟合车舱内人员的数量和乘坐位置,而可以更好地满足用户的体验需求。In the above embodiment, based on the number of people in the cabin in the first image, the number of virtual elements in the virtual driving tool sticker is determined, and based on the number of virtual elements and the second display position and target display size of each virtual element , each virtual element is displayed in the first image to present a special effect scene of at least one person riding a virtual driving tool. In this way, in the scene where there are multiple people in the cabin, according to the number of people and the riding position of each person, the number and display parameters of the virtual components in the virtual driving tool can be set in a targeted manner. The number of people in the cabin and the number and position of the virtual seats are the same. The sticker elements of different seats can be spliced into a complete sticker after adjustment, so that the sticker can more accurately fit the number and location of people in the cabin. The seating position can better meet the user's experience needs.
本申请实施例提供一种图像拍摄方法,该方法可以由计算机设备执行。如图4所示,该方法包括如下步骤S401至步骤S406:An embodiment of the present application provides an image capturing method, and the method may be executed by a computer device. As shown in Figure 4, the method includes the following steps S401 to S406:
步骤S401,响应于所述交互终端接收到第二指令,获取所述车载相机的行车限制状态;其中,所述第二指令用于触发所述车载相机启动。Step S401, in response to the interactive terminal receiving a second instruction, acquire the driving restriction status of the vehicle camera; wherein the second instruction is used to trigger the vehicle camera to start.
这里,第二指令可以是任意合适的可以触发车载相机启动的指令,可以包括但不限于在车舱内的交互终端的显示屏上进行相机启动点击操作触发的操作指令、输入的相机启动语音指令、输入的相机启动按键指令等中的一种或多种。Here, the second instruction can be any suitable instruction that can trigger the start-up of the vehicle-mounted camera, and can include but not limited to an operation instruction triggered by a click operation to start the camera on the display screen of the interactive terminal in the cabin, an input voice command to start the camera , one or more of the inputted camera start key command and the like.
车载相机的行车限制状态为表征是否对行车过程中车载相机的使用进行限制的状态。行车限制状态可以是开启或关闭。在行车限制状态为开启的情况下,可以对行车过程中车载相机的使用进行限制;在行车限制状态为关闭的情况下,不用对行车过程中车载相机的使用进行限制。在实施时,行车限制状态可以是用户预先设置的,也可以是系统默认的,还可以是基于交互终端所在车辆的当前行驶状态自动确定的,这里并不限定。The driving restriction state of the vehicle-mounted camera is a state representing whether to restrict the use of the vehicle-mounted camera during driving. The driving restriction status can be on or off. When the driving restriction state is on, the use of the vehicle camera during driving can be restricted; when the driving restriction state is off, there is no need to restrict the use of the vehicle camera during driving. During implementation, the driving restriction state may be preset by the user, may be defaulted by the system, or may be automatically determined based on the current driving state of the vehicle where the interactive terminal is located, which is not limited here.
步骤S402,基于所述行车限制状态,控制所述车载相机的启动状态。Step S402, based on the driving restriction state, control the activation state of the vehicle camera.
这里,响应于交互终端接收到第二指令,可以基于获取的行车限制状态,控制车载相机的启动状态。例如,可以在行车限制状态为开启的情况下,禁止启动车载相机,在行车限制状态为关闭的情况下,启动车载相机;还可以在行车限制状态为开启且交互终端所在车辆的行驶速度大于设定的速度阈值的情况下,禁止启动车载相机。Here, in response to the interactive terminal receiving the second instruction, the activation state of the vehicle-mounted camera may be controlled based on the acquired driving restriction state. For example, when the driving restriction state is on, it is forbidden to start the vehicle camera, and when the driving restriction state is off, start the vehicle camera; In the case of a certain speed threshold, it is forbidden to activate the on-board camera.
步骤S403,响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄。Step S403, in response to the interactive terminal in the vehicle cabin receiving a first instruction, acquire a first image captured by the camera of the vehicle-mounted camera; wherein, the first instruction is used to trigger the vehicle-mounted camera to take an image.
步骤S404,对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象。Step S404, detecting key features of preset objects in the first image, and determining at least one preset object in the first image.
步骤S405,基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像。Step S405, performing special effect processing on at least one preset object in the first image based on the set first special effect display information to obtain a second image.
步骤S406,在所述车载相机的拍摄界面显示所述第二图像。Step S406, displaying the second image on the shooting interface of the vehicle camera.
本申请实施例中,响应于交互终端接收到触发车载相机启动的第二指令,获取该车载相机的行车限制状态,并基于行车限制状态,控制车载相机的启动状态。这样,可以根据实际需求灵活控制车载相机的使用,从而更好地满足用户的使用体验。In the embodiment of the present application, in response to the interactive terminal receiving the second instruction triggering the start-up of the vehicle-mounted camera, the driving restriction state of the vehicle-mounted camera is obtained, and the activation state of the vehicle-mounted camera is controlled based on the driving restriction state. In this way, the use of the vehicle-mounted camera can be flexibly controlled according to actual needs, thereby better satisfying the user experience.
在一些实施例中,上述步骤S402可以包括如下步骤S411、步骤S412或步骤S413:In some embodiments, the above step S402 may include the following step S411, step S412 or step S413:
步骤S411,在所述行车限制状态为开启且所述交互终端所在车辆的行驶速度不超过预设阈值的情况下,启动所述车载相机。这样,可以保证使用车载相机进行拍摄娱乐的情况下车辆的行驶速度不超过预设阈值,从而可以有效提升车载相机使用过程中的安全性。Step S411, when the driving restriction state is on and the driving speed of the vehicle where the interactive terminal is located does not exceed a preset threshold, start the vehicle camera. In this way, it can be ensured that the driving speed of the vehicle does not exceed a preset threshold when the vehicle-mounted camera is used for shooting and entertainment, thereby effectively improving the safety during the use of the vehicle-mounted camera.
步骤S412,在所述行车限制状态为开启且所述交互终端所在车辆的驻车信号指示所述车辆处于驻停状态的情况下,启动所述车载相机。这样,可以保证使用车载相机进行拍摄娱乐的情况下车辆处于驻停状态,从而可以有效提升车载相机使用过程中的安全性。Step S412, when the driving restriction state is on and the parking signal of the vehicle where the interactive terminal is located indicates that the vehicle is in a parked state, start the vehicle-mounted camera. In this way, it can be ensured that the vehicle is in a parked state when the vehicle-mounted camera is used for shooting entertainment, thereby effectively improving the safety of the vehicle-mounted camera during use.
步骤S413,在所述行车限制状态为关闭的情况下,启动所述车载相机。这样,用户可以根据实际需求将车载相机的行车限制状态设置为关闭,从而使得车载相机的使用不受车辆的行驶状态的限制,以更好地满足用户的使用需求。Step S413, when the state of the driving restriction is off, start the on-board camera. In this way, the user can set the driving restriction state of the vehicle-mounted camera to off according to actual needs, so that the use of the vehicle-mounted camera is not restricted by the driving state of the vehicle, so as to better meet the user's use requirements.
下面将说明本申请实施例在实际应用场景中的示例性应用。Exemplary applications of the embodiments of the present application in actual application scenarios will be described below.
相关技术中,汽车作为出行场景下的代表产品,开始超越代步工具的单一属性,逐步升级为智能移动空间,被赋予更多娱乐属性。在相关技术的一些方案中,汽车产品基 于车载摄像头推出了相机功能,用于车主自驾游或全家出行场景下的自拍照。但是,由于车内特殊场景(如车内光线较暗等)的原因,这些自拍照通常成像质量较低,而且车主也无法拍摄趣味性和互动性较强的照片。In related technologies, automobiles, as representative products in travel scenarios, have begun to surpass the single attribute of means of transportation, and gradually upgraded to intelligent mobile spaces, endowed with more entertainment attributes. In some schemes of related technologies, automobile products have introduced a camera function based on the vehicle-mounted camera, which is used for self-portraiting under the car owner's self-driving tour or family travel scene. However, due to the special scene in the car (such as dark light inside the car, etc.), these selfies usually have low imaging quality, and the car owner cannot take interesting and interactive photos.
有鉴于此,本申请实施例提供一种图像拍摄方法,能够采用车舱内的人脸检测和手势识别等视觉识别技术,将设定的美颜,滤镜、贴纸等特效素材有效贴合人脸呈现,可以有效改善车载相机自拍照成像质量不高的问题,同时增强汽车车舱和车主用户的互动性与娱乐性。例如,在车主独自自驾出行,希望拍一张手握方向盘的自拍照的情况下,基于本申请实施例提供的图像拍摄方法,车主可以启动车载相机并打开一键美颜功能,拍摄一张美颜后的照片。又如,在车主一家四口自驾游出行,希望拍摄一张趣味性强的全家福的情况下,基于本申请实施例提供的图像拍摄方法,车主可以启动车载相机并选定一款贴纸,全家人同时做与该贴纸匹配的手势触发贴纸特效,进而可以拍摄一张具有趣味性的全家福。In view of this, the embodiment of the present application provides an image capture method, which can use visual recognition technologies such as face detection and gesture recognition in the car cabin to effectively fit the set beauty, filters, stickers and other special effect materials to the human body. Face presentation can effectively improve the low-quality image quality of car camera selfies, and at the same time enhance the interaction and entertainment of car cabins and car owners and users. For example, when a car owner travels by himself and wants to take a selfie with the steering wheel in hand, based on the image capture method provided in the embodiment of this application, the car owner can start the car camera and turn on the one-key beauty function, and after taking a selfie Photo. For another example, when a car owner’s family of four travels by car and wishes to take an interesting family portrait, based on the image shooting method provided in the embodiment of this application, the car owner can activate the car camera and select a sticker, and the whole family At the same time, make a gesture that matches the sticker to trigger the special effect of the sticker, and then you can take an interesting family portrait.
本申请实施例提供一种图像拍摄方法可以包括如下步骤S501至步骤S504:The embodiment of the present application provides an image capturing method that may include the following steps S501 to S504:
步骤S501,用户在车舱内通过点击车机按钮或语音唤醒等方式启动车载相机。In step S501, the user activates the on-board camera in the car cabin by clicking the on-board button or waking up by voice.
在一些实施例中,由于车辆安全性的考虑,可以为车载相机设计车辆移动开关(相当于前述实施例中的行车限制状态)。在车辆移动开关打开的情况下,当车辆处于静止状态时,用户可以启动车载相机;当车辆处于移动状态时,用户无法启动车载相机。在车辆移动开关关闭的情况下,无论车辆处于移动状态还是静止状态,用户均可启动车载相机。In some embodiments, due to the consideration of vehicle safety, a vehicle movement switch (equivalent to the driving restriction state in the foregoing embodiments) may be designed for the vehicle-mounted camera. When the vehicle movement switch is turned on, when the vehicle is stationary, the user can activate the vehicle camera; when the vehicle is moving, the user cannot activate the vehicle camera. When the vehicle movement switch is turned off, the user can activate the on-board camera regardless of whether the vehicle is moving or stationary.
在一些实施例中,车辆移动开关可以默认打开。In some embodiments, the vehicle mobility switch may be on by default.
步骤S502,车载相机启动后控制该车载相机的摄像头启动,并将摄像头拍摄的画面实时显示在车机上车载相机的拍摄界面上。Step S502 , after the vehicle-mounted camera is started, the camera of the vehicle-mounted camera is controlled to start up, and the images captured by the camera are displayed on the shooting interface of the vehicle-mounted camera in real time.
这里,车载相机的摄像头的拍摄角度覆盖整个汽车车舱内的环境。车载相机通过搭载的人脸关键点检测及追踪视觉算法,检测及追踪汽车车舱内的人脸和乘车人员。由于车舱场景包含副驾驶位的乘车人员和后排的乘车人员,摄像头的视场角(Field of View,FOV)设计角度可以大于等于120度,人脸关键点检测及追踪视觉算法可识别的人脸像素可以小于等于64*64。Here, the shooting angle of the camera of the vehicle-mounted camera covers the environment in the entire vehicle cabin. The on-board camera detects and tracks the faces and passengers in the car cabin through the equipped face key point detection and tracking vision algorithm. Since the cabin scene includes the passenger in the co-pilot seat and the passenger in the rear row, the design angle of the field of view (Field of View, FOV) of the camera can be greater than or equal to 120 degrees, and the facial key point detection and tracking vision algorithm can The recognized face pixels can be less than or equal to 64*64.
步骤S503,用户使用车载相机中的一款或几款美颜素材、贴纸素材和/或滤镜素材,车载相机根据人脸关键点检测及追踪视觉算法,将所选的美颜素材和/或滤镜素材贴合在车内的乘车人员的人脸上,并将贴合后的效果显示在车载相机的拍摄界面上。Step S503, the user uses one or several beautifying materials, sticker materials and/or filter materials in the car camera, and the car camera converts the selected beautifying materials and/or The filter material is pasted on the face of the passenger in the car, and the pasted effect is displayed on the shooting interface of the car camera.
步骤S504,用户使用车载相机的拍照功能拍摄带有美颜素材、贴纸素材和/或滤镜素材的照片或视频。Step S504, the user uses the camera function of the vehicle camera to take photos or videos with beautifying materials, sticker materials and/or filter materials.
在一些实施例中,用户还可根据所选的美颜素材、贴纸素材和/或滤镜素材,做出相应的脸部动作或者手势动作,人脸关键点检测及追踪视觉算法检测到对应的脸部动作的情况下,或者手势检测及追踪算法检测到对应手势动作的情况下,在车载相机的拍摄界面上触发显示相应的美颜素材、贴纸素材和/或滤镜素材。In some embodiments, the user can also make corresponding facial movements or gestures according to the selected beauty material, sticker material and/or filter material, and the facial key point detection and tracking vision algorithm detects the corresponding In the case of facial movements, or when the gesture detection and tracking algorithm detects corresponding gestures, trigger the display of corresponding beauty material, sticker material and/or filter material on the shooting interface of the vehicle camera.
在一些实施例中,由于车内乘车人员位置是由近及远分布的,且相对固定,车载相机可以向用户推荐豪车、飞机、过山车等贴纸,用户使用豪车、飞机或过山车等贴纸后,车载相机可以将拍摄的照片/视频中的车舱场景虚拟化为相应的豪车、飞机或过山车等趣味性更强的场景。In some embodiments, since the positions of the occupants in the car are distributed from near to far and are relatively fixed, the on-board camera can recommend stickers such as luxury cars, airplanes, and roller coasters to the user. Finally, the car camera can virtualize the car cabin scene in the captured photos/videos into more interesting scenes such as corresponding luxury cars, airplanes or roller coasters.
在一些实施例中,用户可在车机本地端查看、删除拍摄完成的照片或者视频,同时用户可以将拍摄的照片或者视频上传至云端。In some embodiments, the user can view and delete the captured photos or videos locally on the vehicle, and at the same time, the user can upload the captured photos or videos to the cloud.
在一些实施例中,用户也可基于车载相机中的美颜素材、贴纸素材和/或滤镜素材,对拍摄完成的照片或者视频进行特效编辑。In some embodiments, the user can also edit the photos or videos with special effects based on the beauty material, sticker material and/or filter material in the vehicle camera.
基于前述的实施例,本申请实施例提供一种图像拍摄装置,该装置包括所包括的各单元、以及各单元所包括的各部分,可以通过计算机设备中的处理器来实现;当然也可通过具体的逻辑电路实现;在实施的过程中,处理器可以为中央处理器(Central Processing Unit,CPU)、微处理器(Microprocessor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field-Programmable Gate Array,FPGA)等。Based on the aforementioned embodiments, this embodiment of the present application provides an image capture device, which includes each unit included, and each part included in each unit, which can be realized by a processor in a computer device; of course, it can also be implemented by Specific logic circuit implementation; in the process of implementation, the processor can be a central processing unit (Central Processing Unit, CPU), a microprocessor (Microprocessor Unit, MPU), a digital signal processor (Digital Signal Processor, DSP) or on-site Programmable gate array (Field-Programmable Gate Array, FPGA), etc.
图5为本申请实施例提供的一种图像拍摄装置的组成结构示意图,如图5所示,该图像拍摄装置700包括:第一获取部分710、第一检测部分720、第一处理部分730和显示部分740,其中:FIG. 5 is a schematic diagram of the composition and structure of an image capturing device provided in an embodiment of the present application. As shown in FIG. Portion 740 is displayed, wherein:
第一获取部分710,被配置为响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;The first acquisition part 710 is configured to acquire the first image captured by the camera of the vehicle-mounted camera in response to the interactive terminal located in the vehicle cabin receiving a first instruction; wherein the first instruction is used to trigger the vehicle-mounted camera to perform image capture;
第一检测部分720,被配置为对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;The first detection part 720 is configured to detect key features of preset objects in the first image, and determine at least one preset object in the first image;
第一处理部分730,被配置为基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;The first processing part 730 is configured to perform special effect processing on at least one of the preset objects in the first image based on the set first special effect display information to obtain a second image;
显示部分740,被配置为在所述车载相机的拍摄界面显示所述第二图像。The display part 740 is configured to display the second image on the shooting interface of the vehicle camera.
在一些实施例中,所述装置还包括:第二获取部分,被配置为在所述摄像头开启的情况下,获取所述摄像头采集的第三图像;第一确定部分,被配置为基于所述第三图像确定至少一个预设对象的位置信息;调整部分,被配置为基于至少一个所述预设对象的位置信息,调整所述摄像头的取景范围和/或拍摄角度。In some embodiments, the device further includes: a second acquiring part configured to acquire a third image captured by the camera when the camera is turned on; a first determining part configured to acquire a third image captured by the camera based on the The third image determines the position information of at least one preset object; the adjustment part is configured to adjust the viewing range and/or shooting angle of the camera based on the position information of at least one preset object.
在一些实施例中,所述车载相机设置于所述车舱内的驾驶员座位的前方或车舱内最前排座位的前方,所述位置信息包括乘车位置信息;所述调整部分还被配置为:在根据所述乘车位置信息确定所述车舱内的各所述预设对象乘坐于所述车舱内的最前排座位的情况下,调整所述摄像头的取景范围为与最前排座位对应的第一预设取景范围,和/或调整所述摄像头的拍摄角度为与最前排座位对应的第一预设角度;在根据所述乘坐位置信息确定所述车舱内的至少两个所述预设对象乘坐于所述车舱内的至少两排不同的座位的情况下,调整所述摄像头的取景范围为与车舱内的所有座位区域对应的第二预设取景范围,和/或调整所述摄像头的拍摄角度为与车舱内的所有座位区域对应的第二预设角度。In some embodiments, the vehicle-mounted camera is arranged in front of the driver's seat in the vehicle cabin or in front of the front seat in the vehicle cabin, and the position information includes riding position information; the adjustment part is further configured It is: when it is determined according to the riding position information that each of the preset objects in the cabin is seated in the frontmost seat in the cabin, adjust the viewing range of the camera to match the frontmost seat The corresponding first preset viewing range, and/or adjust the shooting angle of the camera to the first preset angle corresponding to the front seat; at least two of the seats in the cabin are determined according to the seating position information In the case where the preset object is seated in at least two different rows of seats in the cabin, adjust the viewing range of the camera to a second preset viewing range corresponding to all seating areas in the cabin, and/or Adjusting the shooting angle of the camera to a second preset angle corresponding to all seating areas in the cabin.
在一些实施例中,所述第一特效显示信息包括特效素材和所述特效素材的显示位置配置信息;所述第一处理部分还被配置为:基于设定的所述特效素材的显示位置配置信息,对所述第一图像中的至少一个所述预设对象进行与所述特效素材对应的显示效果处理;将添加所述特效素材后的所述第一图像,确定为第二图像。In some embodiments, the first special effect display information includes special effect material and display position configuration information of the special effect material; the first processing part is further configured to: based on the set display position configuration of the special effect material information, performing display effect processing corresponding to the special effect material on at least one of the preset objects in the first image; determining the first image after adding the special effect material as a second image.
在一些实施例中,所述预设对象包括以下至少之一:车舱内的人员、人体部位、动物;所述特效素材包括以下至少之一:美颜素材、美妆素材、滤镜素材、贴纸素材。In some embodiments, the preset object includes at least one of the following: people in the cabin, human body parts, animals; the special effect material includes at least one of the following: beauty material, makeup material, filter material, Sticker material.
在一些实施例中,所述预设对象包括人脸,所述显示位置配置信息包括特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系;所述第一处理部分还被配置为以下至少之一:基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定所述设定的所述特效素材的显示位置,并根据所述设定的所述特效素材的显示位置将所述特效素材叠加到所述人脸上;确定与设定的所述特效素材对应的图像处理方式,基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定设定的所述特效素材的显示位置,并按照所述图像处理方式对所述人脸中与所述特效素材的显示位置对应的图像区域进行处理。In some embodiments, the preset object includes a human face, and the display position configuration information includes a first mapping relationship between the display position parameters of the special effect material and the key points of the human face; the first processing part further It is configured as at least one of the following: based on the position of at least one human face key point in the first image and the first mapping relationship, determine the set display position of the special effect material, and according to the Superimposing the special effect material on the face at the set display position of the special effect material; determining an image processing method corresponding to the set special effect material based on at least one human face in the first image The positions of the key points and the first mapping relationship determine the set display position of the special effect material, and perform image processing on the image area corresponding to the display position of the special effect material in the face according to the image processing method deal with.
在一些实施例中,所述预设对象包括车舱内的人员,所述特效素材包括虚拟行驶工具贴纸;所述第一处理部分还被配置为:基于设定的所述虚拟行驶工具贴纸的显示位置配置信息,在所述第一图像中呈现至少一个所述车舱内的人员乘坐虚拟行驶工具的特效场景。In some embodiments, the preset object includes people in the cabin, and the special effect material includes a virtual driving tool sticker; the first processing part is further configured to: based on the set virtual driving tool sticker Position configuration information is displayed, and at least one special effect scene of people in the vehicle cabin riding a virtual driving tool is presented in the first image.
在一些实施例中,所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系;所述装置还包括:第二检测部分,被配置为基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置;所述第一处理部分还被配置为:基于所述乘坐位置以及所述第二映射关系,确定与所述乘坐位置对应的目标虚拟乘坐区域的第一显示位置;基于所述第一显示位置在所述第一图像中显示所述虚拟行驶工具贴纸,以呈现至少一个所述人员乘坐在所述虚拟乘坐区域中的特效场景。In some embodiments, the display position configuration information of the virtual driving tool sticker includes a second mapping relationship between the display position of at least one virtual seating area in the virtual driving tool sticker and the position of the person in the image; the device It also includes: a second detection part configured to detect the seating position of at least one person in the cabin based on the first image; the first processing part is further configured to: based on the seating position and the The second mapping relationship is to determine the first display position of the target virtual seating area corresponding to the seating position; display the virtual driving tool sticker in the first image based on the first display position, so as to present at least one of the A special effect scene in which the person rides in the virtual ride area.
在一些实施例中,所述第一处理部分还被配置为:将所述虚拟行驶工具的贴纸按照如下方式叠加在所述第一图像上:所述目标虚拟乘坐区域显示在所述第一显示位置处。In some embodiments, the first processing part is further configured to: superimpose the sticker of the virtual driving tool on the first image in the following manner: the target virtual riding area is displayed on the first display location.
在一些实施例中,所述虚拟行驶工具贴纸包括至少一个显示参数可调的虚拟元件,所述显示参数包括显示位置和/或显示尺寸;所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个所述虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系;所述装置还包括:第二确定部分,被配置为基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置,并基于所述乘坐位置和所述第三映射关系确定至少一个所述虚拟元件的第二显示位置,和/或被配置为基于所述第一图像确定所述车舱内的至少一个人员的尺寸,并基于所述尺寸确定至少一个所述虚拟元件的目标显示尺寸;所述第一处理部分还被配置为:基于至少一个所述虚拟元件的第二显示位置和目标显示尺寸,在所述第一图像中显示至少一个所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。In some embodiments, the virtual driving tool sticker includes at least one virtual element with adjustable display parameters, and the display parameters include display position and/or display size; the display position configuration information of the virtual driving tool sticker includes virtual driving A third mapping relationship between the display position of at least one of the virtual elements in the tool sticker and the position of the person in the image; the device further includes: a second determining part configured to detect the detected position based on the first image the seating position of at least one person in the vehicle cabin, and determine the second display position of at least one virtual element based on the seating position and the third mapping relationship, and/or be configured to be based on the first image determining the size of at least one person in the cabin, and determining a target display size of at least one virtual element based on the size; the first processing part is further configured to: based on the first display size of at least one virtual element and secondly, displaying the position and target display size, displaying at least one virtual element in the first image to present at least one special effect scene in which the person rides a virtual driving tool.
在一些实施例中,所述第一处理部分还被配置为以下之一:基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,确定所述第一图像中的虚拟元件绘制区域,并在所述虚拟元件绘制区域绘制至少一个所述虚拟元件;基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中渲染至少一个所述虚拟元件;基于每一个所述虚拟元件的第二显示位置和/或目标显示尺寸,对至少一个所述虚拟元件进行拼接以生成所述贴纸,将所述贴纸添加至所述第一图像中。In some embodiments, the first processing part is further configured to be one of the following: based on a second display position and/or a target display size of at least one of the virtual elements, determine the rendering of the virtual element in the first image area, and draw at least one virtual element in the virtual element drawing area; based on the second display position and/or target display size of at least one virtual element, render at least one virtual element in the first image Components: based on the second display position and/or target display size of each of the virtual components, splicing at least one of the virtual components to generate the sticker, and adding the sticker to the first image.
在一些实施例中,所述装置还包括:第三确定部分,被配置为基于所述第一图像中所述车舱内的人员的数量,确定所述虚拟行驶工具贴纸中所述虚拟元件的数量;所述第一处理部分还被配置为:基于所述虚拟行驶工具贴纸中虚拟元件的数量以及每一所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示每一所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。In some embodiments, the device further includes: a third determination part configured to determine the number of the virtual element in the virtual driving tool sticker based on the number of people in the cabin in the first image. quantity; the first processing part is further configured to: based on the number of virtual elements in the virtual driving tool sticker and the second display position and/or target display size of each virtual element, in the first image Each of the virtual elements is displayed in to present at least one special effect scene of the person riding on the virtual driving tool.
在一些实施例中,所述第一处理部分还被配置为:基于所述第一图像,检测与所述特效素材匹配的特效触发动作;响应于检测到所述特效触发动作,基于设定的所述特效素材的显示位置配置信息,为所述第一图像中的至少一个所述预设对象添加所述特效素材。In some embodiments, the first processing part is further configured to: based on the first image, detect a special effect triggering action matching the special effect material; in response to detecting the special effect triggering action, based on the set The display position configuration information of the special effect material is to add the special effect material to at least one of the preset objects in the first image.
在一些实施例中,所述装置还包括:第三获取部分,被配置为响应于所述交互终端接收到第二指令,获取所述车载相机的行车限制状态;其中,所述第二指令用于触发所述车载相机启动;控制部分,被配置为基于所述行车限制状态,控制所述车载相机的启动状态。In some embodiments, the device further includes: a third acquisition part configured to acquire the driving restriction status of the vehicle-mounted camera in response to the interaction terminal receiving a second instruction; wherein, the second instruction uses triggering the start-up of the vehicle-mounted camera; the control part is configured to control the start-up state of the vehicle-mounted camera based on the driving restriction state.
在一些实施例中,所述控制部分还被配置为:在满足如下至少一个条件的情况下,启动所述车载相机:所述行车限制状态为开启且所述交互终端所在车辆的行驶速度不超 过预设阈值;所述行车限制状态为开启且所述交互终端所在车辆的驻车信号指示所述车辆处于驻停状态;所述行车限制状态为关闭。In some embodiments, the control part is further configured to: activate the on-board camera when at least one of the following conditions is met: the driving restriction state is on and the driving speed of the vehicle where the interactive terminal is located does not exceed A preset threshold; the state of the driving restriction is on and the parking signal of the vehicle where the interactive terminal is located indicates that the vehicle is in a parked state; the state of the driving restriction is off.
在一些实施例中,所述交互终端包括如下至少一项:车载交互终端、车舱内的用户终端。In some embodiments, the interactive terminal includes at least one of the following: a vehicle interactive terminal, and a user terminal in the vehicle cabin.
以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
在本申请实施例以及其他的实施例中,“部分”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是单元,还可以是模块也可以是非模块化的。In the embodiment of the present application and other embodiments, a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course it may also be a unit, a module or a non-modular one.
本申请实施例提供一种车辆,包括:An embodiment of the present application provides a vehicle, including:
车载相机,用于拍摄车舱内的图像信息;Car camera, used to capture image information in the car cabin;
车载交互终端,与所述车载相机连接,用于:接收触发车载相机进行图像拍摄的第一指令;向处理器发送所述第一指令;显示所述车载相机的拍摄界面;The vehicle-mounted interactive terminal is connected with the vehicle-mounted camera, and is used to: receive a first instruction triggering the vehicle-mounted camera to take image; send the first instruction to the processor; display the shooting interface of the vehicle-mounted camera;
处理器,用于:响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;响应于在车载相机的拍摄界面进行的拍摄触发操作,获取所述车载相机的摄像头拍摄的第一图像;对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;向所述交互终端发送所述第二图像以在所述车载相机的拍摄界面显示所述第二图像。The processor is configured to: acquire a first image captured by the camera of the vehicle-mounted camera in response to the interactive terminal located in the vehicle cabin receiving a first instruction; wherein, the first instruction is used to trigger the vehicle-mounted camera to take an image; Responding to a shooting trigger operation performed on the shooting interface of the vehicle-mounted camera, acquiring a first image captured by the camera of the vehicle-mounted camera; detecting key features of a preset object in the first image, and determining the first image at least one preset object in the first image; perform special effect processing on at least one preset object in the first image based on the set first special effect display information to obtain a second image; send the first image to the interactive terminal and displaying the second image on the shooting interface of the vehicle-mounted camera.
以上车辆实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请车辆实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The description of the above vehicle embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the vehicle embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的图像拍摄方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是车机、个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present application, if the above-mentioned image capturing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the embodiment of the present application or the part that contributes to the related technology can be embodied in the form of a software product, the software product is stored in a storage medium, and includes several instructions to make a An electronic device (which may be a vehicle, a personal computer, a server, or a network device, etc.) executes all or part of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read-only memory (Read Only Memory, ROM), magnetic disk or optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
本申请实施例提供一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述方法中的步骤。An embodiment of the present application provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the steps in the above method when executing the program.
本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法中的步骤。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现上述方法中的步骤。An embodiment of the present application provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, the steps in the above method are realized.
这里需要指出的是:以上存储介质、设备、车辆和计算机程序产品实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质、设备和计算机程序产品实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that: the above descriptions of the storage medium, equipment, vehicle and computer program product embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium, device, and computer program product of the present application, please refer to the description of the method embodiments of the present application for understanding.
需要说明的是,图6为本申请实施例中计算机设备的一种硬件实体示意图,如图6所示,该计算机设备800的硬件实体包括:处理器801、通信接口802和存储器803, 其中,It should be noted that FIG. 6 is a schematic diagram of a hardware entity of a computer device in the embodiment of the present application. As shown in FIG. 6 , the hardware entity of the computer device 800 includes: a processor 801, a communication interface 802, and a memory 803, wherein,
处理器801通常控制计算机设备800的总体操作。 Processor 801 generally controls the overall operation of computer device 800 .
通信接口802可以使计算机设备通过网络与其他终端或服务器通信。The communication interface 802 enables the computer device to communicate with other terminals or servers through the network.
存储器803配置为存储由处理器801可执行的指令和应用,还可以缓存待处理器801以及计算机设备800中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(Random Access Memory,RAM)实现。The memory 803 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or processed by the processor 801 and various modules in the computer device 800 (for example, image data, audio data, voice communication data and Video communication data) can be realized by flash memory (FLASH) or random access memory (Random Access Memory, RAM).
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation. The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in computer-readable storage media. When the program is executed, the execution includes The steps of the foregoing method embodiments; and the foregoing storage media include: removable storage devices, read-only memory (Read Only Memory, ROM), magnetic disks or optical disks and other media that can store program codes.
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a An electronic device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks.
以上所述,仅为本申请的实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖 在本申请的保护范围之内。The above is only the embodiment of the present application, but the scope of protection of the present application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, and should covered within the scope of protection of this application.
工业实用性Industrial Applicability
本申请实施例公开了一种车辆及图像拍摄方法、装置、设备、存储介质及计算机程序产品,其中,所述方法包括:响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;在所述车载相机的拍摄界面显示所述第二图像。根据本申请实施例,用户可以利用设定的第一特效显示信息对车载相机的摄像头拍摄的第一图像中的至少一个预设对象进行特效处理,得到第二图像,从而可以提高车载相机拍摄得到的图像的成像质量和趣味性,并能提高人车之间的互娱性,进而可以更好地满足用户的体验需求。The embodiment of the present application discloses a vehicle and image capturing method, device, equipment, storage medium and computer program product, wherein the method includes: in response to the interactive terminal in the vehicle cabin receiving the first instruction, acquiring the vehicle-mounted camera The first image taken by the camera; wherein, the first instruction is used to trigger the on-board camera to take an image; detect the key features of the preset object in the first image, and determine the at least one preset object; based on the set first special effect display information, perform special effect processing on at least one preset object in the first image to obtain a second image; display the set on the shooting interface of the vehicle camera Describe the second image. According to the embodiment of the present application, the user can use the set first special effect display information to perform special effect processing on at least one preset object in the first image captured by the camera of the vehicle-mounted camera to obtain a second image, thereby improving the performance obtained by the vehicle-mounted camera. The imaging quality and interest of the image can be improved, and the mutual entertainment between people and vehicles can be improved, which can better meet the user's experience needs.

Claims (36)

  1. 一种图像拍摄方法,所述方法包括:An image capture method, the method comprising:
    响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;Responding to the interactive terminal located in the cabin receiving a first instruction, acquiring a first image captured by the camera of the vehicle-mounted camera; wherein, the first instruction is used to trigger the vehicle-mounted camera to take an image;
    对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;Detecting key features of preset objects in the first image, and determining at least one preset object in the first image;
    基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;performing special effect processing on at least one of the preset objects in the first image based on the set first special effect display information to obtain a second image;
    在所述车载相机的拍摄界面显示所述第二图像。The second image is displayed on the shooting interface of the vehicle-mounted camera.
  2. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, said method further comprising:
    在所述摄像头开启的情况下,获取所述摄像头采集的第三图像;When the camera is turned on, acquire a third image collected by the camera;
    基于所述第三图像确定至少一个预设对象的位置信息;determining position information of at least one preset object based on the third image;
    基于至少一个所述预设对象的位置信息,调整所述摄像头的取景范围和/或拍摄角度。Adjusting the viewing range and/or shooting angle of the camera based on the position information of at least one preset object.
  3. 根据权利要求2所述的方法,其中,所述车载相机设置于所述车舱内的驾驶员座位的前方或车舱内最前排座位的前方,所述位置信息包括乘车位置信息;The method according to claim 2, wherein the vehicle-mounted camera is arranged in front of the driver's seat in the vehicle cabin or in front of the frontmost row of seats in the vehicle cabin, and the position information includes passenger position information;
    所述基于至少一个所述预设对象的位置信息,调整所述摄像头的取景范围和/或拍摄角度,包括:The adjusting the viewing range and/or shooting angle of the camera based on the position information of at least one preset object includes:
    在根据所述乘车位置信息确定所述车舱内的各所述预设对象乘坐于所述车舱内的最前排座位的情况下,调整所述摄像头的取景范围为与最前排座位对应的第一预设取景范围,和/或调整所述摄像头的拍摄角度为与最前排座位对应的第一预设角度;When it is determined according to the riding position information that each of the preset objects in the cabin is seated in the frontmost seat in the cabin, adjust the viewfinder range of the camera to correspond to the frontmost seat A first preset viewing range, and/or adjusting the shooting angle of the camera to be the first preset angle corresponding to the front seat;
    在根据所述乘坐位置信息确定所述车舱内的至少两个所述预设对象乘坐于所述车舱内的至少两排不同的座位的情况下,调整所述摄像头的取景范围为与车舱内的所有座位区域对应的第二预设取景范围,和/或调整所述摄像头的拍摄角度为与车舱内的所有座位区域对应的第二预设角度。When it is determined according to the seating position information that at least two of the preset objects in the cabin are seated in at least two rows of different seats in the cabin, adjust the viewing range of the camera to be the same as that of the vehicle. The second preset viewing range corresponding to all the seating areas in the cabin, and/or adjust the shooting angle of the camera to the second preset angle corresponding to all the seating areas in the cabin.
  4. 根据权利要求1至3中任一所述的方法,其中,所述第一特效显示信息包括特效素材和所述特效素材的显示位置配置信息;The method according to any one of claims 1 to 3, wherein the first special effect display information includes special effect material and display position configuration information of the special effect material;
    所述基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像,包括:Performing special effect processing on at least one of the preset objects in the first image based on the set first special effect display information to obtain a second image, including:
    基于设定的所述特效素材的显示位置配置信息,对所述第一图像中的至少一个所述预设对象进行与所述特效素材对应的显示效果处理;performing display effect processing corresponding to the special effect material on at least one of the preset objects in the first image based on the set display position configuration information of the special effect material;
    将进行显示效果处理后的所述第一图像,确定为第二图像。The first image after the display effect processing is determined as the second image.
  5. 根据权利要求4所述的方法,其中,所述预设对象包括以下至少之一:车舱内的人员、人体部位、动物;所述特效素材包括以下至少之一:美颜素材、美妆素材、滤镜素材、贴纸素材。The method according to claim 4, wherein the preset object includes at least one of the following: people in the cabin, human body parts, animals; the special effect material includes at least one of the following: beauty material, makeup material , filter material, sticker material.
  6. 根据权利要求4或5所述的方法,其中,所述预设对象包括人脸,所述显示位置配置信息包括特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系;The method according to claim 4 or 5, wherein the preset object includes a human face, and the display position configuration information includes a first mapping relationship between the display position parameters of the special effect material and the positions of the key points of the human face;
    所述基于设定的所述特效素材的显示位置配置信息,对所述第一图像中的至少一个所述预设对象进行与所述特效素材对应的显示效果处理,包括以下至少之一:The display effect processing corresponding to the special effect material is performed on at least one of the preset objects in the first image based on the set display position configuration information of the special effect material, including at least one of the following:
    基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定设定的所述特效素材的显示位置,并根据所述特效素材的显示位置将所述特效素材叠加到所述人脸上;Based on the position of at least one face key point in the first image and the first mapping relationship, determine the set display position of the special effect material, and display the special effect material according to the display position of the special effect material superimposed on said face;
    确定与设定的所述特效素材对应的图像处理方式;基于所述第一图像中的至少一 个人脸关键点的位置以及所述第一映射关系,确定设定的所述特效素材的显示位置,并按照所述图像处理方式对所述人脸中与所述特效素材的显示位置对应的图像区域进行处理。Determine the image processing method corresponding to the set special effect material; determine the set display position of the special effect material based on the position of at least one face key point in the first image and the first mapping relationship , and process the image area of the face corresponding to the display position of the special effect material according to the image processing manner.
  7. 根据权利要求4至6中任一项所述的方法,其中,所述预设对象包括车舱内的人员,所述特效素材包括虚拟行驶工具贴纸;The method according to any one of claims 4 to 6, wherein the preset object includes people in the cabin, and the special effect material includes virtual driving tool stickers;
    所述基于设定的所述特效素材的显示位置配置信息,对所述第一图像中的至少一个所述预设对象进行与所述特效素材对应的显示效果处理,包括:The performing display effect processing corresponding to the special effect material on at least one of the preset objects in the first image based on the set display position configuration information of the special effect material includes:
    基于设定的所述虚拟行驶工具贴纸的显示位置配置信息,在所述第一图像中呈现至少一个所述车舱内的人员乘坐虚拟行驶工具的特效场景。Based on the set display position configuration information of the sticker of the virtual driving tool, at least one special effect scene of a person in the cabin riding a virtual driving tool is presented in the first image.
  8. 根据权利要求7所述的方法,其中,所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系;所述方法还包括:The method according to claim 7, wherein the display position configuration information of the virtual driving tool sticker includes a second mapping between the display position of at least one virtual seating area in the virtual driving tool sticker and the position of the person in the image relationship; the method also includes:
    基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置;detecting a seating position of at least one person in the cabin based on the first image;
    所述基于设定的所述虚拟行驶工具贴纸的显示位置配置信息,在所述第一图像中呈现至少一个所述车舱内的人员乘坐虚拟行驶工具的特效场景,包括:Based on the set display position configuration information of the sticker of the virtual driving tool, presenting in the first image at least one special effect scene of people in the vehicle cabin riding a virtual driving tool, including:
    基于所述乘坐位置以及所述第二映射关系,确定与所述乘坐位置对应的目标虚拟乘坐区域的第一显示位置;Based on the seating position and the second mapping relationship, determine a first display position of a target virtual seating area corresponding to the seating position;
    基于所述第一显示位置在所述第一图像中显示所述虚拟行驶工具贴纸,以呈现至少一个所述人员乘坐在所述虚拟乘坐区域中的特效场景。The virtual driving tool sticker is displayed in the first image based on the first display position to present at least one special effect scene in which the person rides in the virtual riding area.
  9. 根据权利要求8所述的方法,其中,所述基于所述第一显示位置在所述第一图像中显示所述虚拟行驶工具贴纸,包括:The method of claim 8, wherein displaying the virtual vehicle sticker in the first image based on the first display position comprises:
    将所述虚拟行驶工具的贴纸按照如下方式叠加在所述第一图像上:所述目标虚拟乘坐区域显示在所述第一显示位置处。The sticker of the virtual driving tool is superimposed on the first image in the following manner: the target virtual riding area is displayed at the first display position.
  10. 根据权利要求7至9任一项所述的方法,其中,所述虚拟行驶工具贴纸包括至少一个显示参数可调的虚拟元件,所述显示参数包括显示位置和/或显示尺寸;The method according to any one of claims 7 to 9, wherein the virtual driving tool sticker includes at least one virtual element with adjustable display parameters, the display parameters including display position and/or display size;
    所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个所述虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系;The display position configuration information of the virtual driving tool sticker includes a third mapping relationship between the display position of at least one virtual element in the virtual driving tool sticker and the position of the person in the image;
    所述方法还包括:基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置,并基于所述乘坐位置和所述第三映射关系确定至少一个所述虚拟元件的第二显示位置;和/或,基于所述第一图像确定所述车舱内的至少一个人员的尺寸,并基于所述尺寸确定至少一个所述虚拟元件的目标显示尺寸;The method further includes: detecting a seating position of at least one person in the cabin based on the first image, and determining a second display of at least one virtual element based on the seating position and the third mapping relationship position; and/or, determining a size of at least one person in the cabin based on the first image, and determining a target display size of at least one virtual element based on the size;
    所述基于设定的所述虚拟行驶工具贴纸的显示位置配置信息,在所述第一图像中呈现至少一个所述车舱内的人员乘坐虚拟行驶工具的特效场景,包括:Based on the set display position configuration information of the sticker of the virtual driving tool, presenting in the first image at least one special effect scene of people in the vehicle cabin riding a virtual driving tool, including:
    基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示至少一个所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。Based on the second display position and/or target display size of the at least one virtual component, at least one virtual component is displayed in the first image to present at least one special effect scene in which the person rides a virtual driving tool.
  11. 根据权利要求10所述的方法,其中,所述基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示至少一个所述虚拟元件,包括以下之一:The method according to claim 10, wherein said displaying at least one of said virtual elements in said first image based on a second display position and/or a target display size of at least one of said virtual elements comprises the following one:
    基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,确定所述第一图像中的虚拟元件绘制区域,并在所述虚拟元件绘制区域绘制至少一个所述虚拟元件;determining a virtual element drawing area in the first image based on a second display position and/or a target display size of at least one virtual element, and drawing at least one virtual element in the virtual element drawing area;
    基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中渲染至少一个所述虚拟元件;rendering at least one of said virtual elements in said first image based on a second display position and/or a target display size of at least one of said virtual elements;
    基于每一个所述虚拟元件的第二显示位置和/或目标显示尺寸,对至少一个所述虚拟元件进行拼接以生成所述贴纸,将所述贴纸添加至所述第一图像中。Based on the second display position and/or target display size of each of the virtual components, splicing at least one of the virtual components to generate the sticker, and adding the sticker to the first image.
  12. 根据权利要求10或11所述的方法,所述方法还包括:The method according to claim 10 or 11, said method further comprising:
    基于所述第一图像中所述车舱内的人员的数量,确定所述虚拟行驶工具贴纸中所述虚拟元件的数量;determining the number of virtual elements in the virtual vehicle sticker based on the number of people in the cabin in the first image;
    所述基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示至少一个所述虚拟元件,包括:The displaying at least one virtual element in the first image based on the second display position and/or target display size of at least one virtual element includes:
    基于所述虚拟行驶工具贴纸中虚拟元件的数量以及每一所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示每一所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。Based on the number of virtual elements in the virtual driving tool sticker and the second display position and/or target display size of each virtual element, each of the virtual elements is displayed in the first image to present at least one The special effects scene where the person rides the virtual driving tool.
  13. 根据权利要求4至12中任一项所述的方法,其中,所述基于设定的所述特效素材的显示位置配置信息,为所述第一图像中的至少一个所述预设对象添加所述特效素材,包括:The method according to any one of claims 4 to 12, wherein, based on the set display position configuration information of the special effect material, the at least one preset object in the first image is added with the The above-mentioned special effects materials include:
    基于所述第一图像,检测与所述特效素材匹配的特效触发动作;Detecting a special effect triggering action matching the special effect material based on the first image;
    响应于检测到所述特效触发动作,基于设定的所述特效素材的显示位置配置信息,为所述第一图像中的至少一个所述预设对象添加所述特效素材。In response to detecting the special effect triggering action, based on the set display position configuration information of the special effect material, the special effect material is added to at least one of the preset objects in the first image.
  14. 根据权利要求1至13中任一项所述的方法,所述方法还包括:The method according to any one of claims 1 to 13, further comprising:
    响应于所述交互终端接收到第二指令,获取所述车载相机的行车限制状态;其中,所述第二指令用于触发所述车载相机启动;Responsive to the interactive terminal receiving a second instruction, acquiring the driving restriction status of the vehicle camera; wherein the second instruction is used to trigger the vehicle camera to start;
    基于所述行车限制状态,控制所述车载相机的启动状态。Based on the driving restriction state, the activation state of the vehicle camera is controlled.
  15. 根据权利要求14所述的方法,其中,所述基于所述行车限制状态,控制所述车载相机的启动状态,包括:The method according to claim 14, wherein the controlling the activation state of the vehicle camera based on the driving restriction state comprises:
    在满足如下至少一个条件的情况下,启动所述车载相机:In the case of meeting at least one of the following conditions, start the vehicle camera:
    所述行车限制状态为开启且所述交互终端所在车辆的行驶速度不超过预设阈值;The driving restriction state is on and the driving speed of the vehicle where the interactive terminal is located does not exceed a preset threshold;
    所述行车限制状态为开启且所述交互终端所在车辆的驻车信号指示所述车辆处于驻停状态;The driving restriction state is turned on and the parking signal of the vehicle where the interactive terminal is located indicates that the vehicle is in a parked state;
    所述行车限制状态为关闭。The driving restriction state is off.
  16. 根据权利要求1至15中任一项所述的方法,其中,所述交互终端包括如下至少一项:车载交互终端、车舱内的用户终端。The method according to any one of claims 1 to 15, wherein the interactive terminal includes at least one of the following: a vehicle-mounted interactive terminal, and a user terminal in a vehicle cabin.
  17. 一种图像拍摄装置,包括:An image capture device, comprising:
    第一获取部分,被配置为响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;The first acquisition part is configured to acquire a first image captured by the camera of the vehicle-mounted camera in response to the interactive terminal located in the vehicle cabin receiving a first instruction; wherein, the first instruction is used to trigger the vehicle-mounted camera to perform an image shoot;
    第一检测部分,被配置为对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;The first detection part is configured to detect key features of preset objects in the first image, and determine at least one preset object in the first image;
    第一处理部分,被配置为基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;The first processing part is configured to perform special effect processing on at least one of the preset objects in the first image based on the set first special effect display information to obtain a second image;
    显示部分,被配置为在所述车载相机的拍摄界面显示所述第二图像。The display part is configured to display the second image on the shooting interface of the vehicle camera.
  18. 根据权利要求17所述的装置,其中,所述装置还包括:第二获取部分,被配置为在所述摄像头开启的情况下,获取所述摄像头采集的第三图像;第一确定部分,被配置为基于所述第三图像确定至少一个预设对象的位置信息;调整部分,被配置为基于至少一个所述预设对象的位置信息,调整所述摄像头的取景范围和/或拍摄角度。The device according to claim 17, wherein the device further comprises: a second acquiring part configured to acquire a third image captured by the camera when the camera is turned on; a first determining part is configured to It is configured to determine the position information of at least one preset object based on the third image; the adjustment part is configured to adjust the viewing range and/or shooting angle of the camera based on the position information of at least one preset object.
  19. 根据权利要求18所述的装置,其中,所述车载相机设置于所述车舱内的驾驶员座位的前方或车舱内最前排座位的前方,所述位置信息包括乘车位置信息;所述调整部分还被配置为:在根据所述乘车位置信息确定所述车舱内的各所述预设对象乘坐于所述车舱内的最前排座位的情况下,调整所述摄像头的取景范围为与最前排座位对应的第 一预设取景范围,和/或调整所述摄像头的拍摄角度为与最前排座位对应的第一预设角度;在根据所述乘坐位置信息确定所述车舱内的至少两个所述预设对象乘坐于所述车舱内的至少两排不同的座位的情况下,调整所述摄像头的取景范围为与车舱内的所有座位区域对应的第二预设取景范围,和/或调整所述摄像头的拍摄角度为与车舱内的所有座位区域对应的第二预设角度。The device according to claim 18, wherein the vehicle-mounted camera is arranged in front of the driver's seat in the vehicle cabin or in front of the front row of seats in the vehicle cabin, and the position information includes riding position information; The adjustment part is further configured to: adjust the viewing range of the camera when it is determined according to the riding position information that each of the preset objects in the cabin is seated in the front row seat in the cabin It is the first preset framing range corresponding to the front row of seats, and/or adjusting the shooting angle of the camera to the first preset angle corresponding to the front row of seats; In the case where at least two of the preset objects are seated in at least two different rows of seats in the cabin, adjust the viewfinder range of the camera to the second preset viewfinder corresponding to all seating areas in the cabin range, and/or adjust the shooting angle of the camera to a second preset angle corresponding to all seating areas in the cabin.
  20. 根据权利要求17至19中任一项所述的装置,其中,所述第一特效显示信息包括特效素材和所述特效素材的显示位置配置信息;所述第一处理部分还被配置为:基于设定的所述特效素材的显示位置配置信息,对所述第一图像中的至少一个所述预设对象进行与所述特效素材对应的显示效果处理;将添加所述特效素材后的所述第一图像,确定为第二图像。The device according to any one of claims 17 to 19, wherein the first special effect display information includes special effect material and display position configuration information of the special effect material; the first processing part is further configured to: The display position configuration information of the special effect material is set, and the display effect processing corresponding to the special effect material is performed on at least one of the preset objects in the first image; The first image is determined as the second image.
  21. 根据权利要求20所述的装置,其中,所述预设对象包括以下至少之一:车舱内的人员、人体部位、动物;所述特效素材包括以下至少之一:美颜素材、美妆素材、滤镜素材、贴纸素材。The device according to claim 20, wherein the preset object includes at least one of the following: people in the cabin, human body parts, animals; the special effect material includes at least one of the following: beauty material, makeup material , filter material, sticker material.
  22. 根据权利要求20或21所述的装置,其中,所述预设对象包括人脸,所述显示位置配置信息包括特效素材的显示位置参数与人脸关键点的位置之间的第一映射关系;所述第一处理部分还被配置为以下至少之一:基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定所述设定的所述特效素材的显示位置,并根据所述设定的所述特效素材的显示位置将所述特效素材叠加到所述人脸上;确定与设定的所述特效素材对应的图像处理方式,基于所述第一图像中的至少一个人脸关键点的位置以及所述第一映射关系,确定设定的所述特效素材的显示位置,并按照所述图像处理方式对所述人脸中与所述特效素材的显示位置对应的图像区域进行处理。The device according to claim 20 or 21, wherein the preset object includes a human face, and the display position configuration information includes a first mapping relationship between the display position parameters of the special effect material and the key points of the human face; The first processing part is further configured as at least one of the following: based on the position of at least one human face key point in the first image and the first mapping relationship, determine the set display position, and superimpose the special effect material on the face according to the set display position of the special effect material; determine the image processing method corresponding to the set special effect material, based on the first The position of at least one key point of the human face in the image and the first mapping relationship, determine the set display position of the special effect material, and compare the human face and the special effect material according to the image processing method The image area corresponding to the display position is processed.
  23. 根据权利要求20至22中任一项所述的装置,其中,所述预设对象包括车舱内的人员,所述特效素材包括虚拟行驶工具贴纸;所述第一处理部分还被配置为:基于设定的所述虚拟行驶工具贴纸的显示位置配置信息,在所述第一图像中呈现至少一个所述车舱内的人员乘坐虚拟行驶工具的特效场景。The device according to any one of claims 20 to 22, wherein the preset object includes people in the cabin, and the special effect material includes virtual driving tool stickers; the first processing part is further configured to: Based on the set display position configuration information of the sticker of the virtual driving tool, at least one special effect scene of a person in the cabin riding a virtual driving tool is presented in the first image.
  24. 根据权利要求23所述的装置,其中,所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个虚拟乘坐区域的显示位置与图像中的人员的位置之间的第二映射关系;所述装置还包括:第二检测部分,被配置为基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置;所述第一处理部分还被配置为:基于所述乘坐位置以及所述第二映射关系,确定与所述乘坐位置对应的目标虚拟乘坐区域的第一显示位置;基于所述第一显示位置在所述第一图像中显示所述虚拟行驶工具贴纸,以呈现至少一个所述人员乘坐在所述虚拟乘坐区域中的特效场景。The device according to claim 23, wherein the display position configuration information of the virtual driving tool sticker includes a second mapping between the display position of at least one virtual seating area in the virtual driving tool sticker and the position of the person in the image relationship; the device also includes: a second detection part configured to detect the seating position of at least one person in the cabin based on the first image; the first processing part is also configured to: based on the The seating position and the second mapping relationship, determining a first display position of a target virtual seating area corresponding to the seating position; displaying the virtual driving tool sticker in the first image based on the first display position, to present at least one special effect scene in which the person rides in the virtual seating area.
  25. 根据权利要求24所述的装置,其中,所述第一处理部分还被配置为:将所述虚拟行驶工具的贴纸按照如下方式叠加在所述第一图像上:所述目标虚拟乘坐区域显示在所述第一显示位置处。The device according to claim 24, wherein the first processing part is further configured to: superimpose the sticker of the virtual driving tool on the first image in the following manner: the target virtual riding area is displayed on at the first display position.
  26. 根据权利要求23至25中任一项所述的装置,其中,所述虚拟行驶工具贴纸包括至少一个显示参数可调的虚拟元件,所述显示参数包括显示位置和/或显示尺寸;所述虚拟行驶工具贴纸的显示位置配置信息包括虚拟行驶工具贴纸中的至少一个所述虚拟元件的显示位置与图像中的人员的位置之间的第三映射关系;所述装置还包括:第二确定部分,被配置为基于所述第一图像检测所述车舱内的至少一个人员的乘坐位置,并基于所述乘坐位置和所述第三映射关系确定至少一个所述虚拟元件的第二显示位置,和/或被配置为基于所述第一图像确定所述车舱内的至少一个人员的尺寸,并基于所述尺寸确定至少一个所述虚拟元件的目标显示尺寸;所述第一处理部分还被配置为:基于至少一个所述虚拟元件的第二显示位置和目标显示尺寸,在所述第一图像中显示至少一个所 述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。The device according to any one of claims 23 to 25, wherein the virtual driving tool sticker includes at least one virtual element with adjustable display parameters, and the display parameters include display position and/or display size; the virtual The display position configuration information of the driving tool sticker includes a third mapping relationship between the display position of at least one virtual element in the virtual driving tool sticker and the position of the person in the image; the device also includes: a second determining part, configured to detect a seating position of at least one person in the vehicle cabin based on the first image, and determine a second display position of at least one virtual element based on the seating position and the third mapping relationship, and /or configured to determine the size of at least one person in the cabin based on the first image, and determine a target display size of at least one virtual element based on the size; the first processing part is further configured It is: based on the second display position and the target display size of at least one virtual component, display at least one virtual component in the first image to present at least one special effect scene in which the person rides a virtual driving tool.
  27. 根据权利要求26所述的装置,其中,所述第一处理部分还被配置为以下之一:基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,确定所述第一图像中的虚拟元件绘制区域,并在所述虚拟元件绘制区域绘制至少一个所述虚拟元件;基于至少一个所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中渲染至少一个所述虚拟元件;基于每一个所述虚拟元件的第二显示位置和/或目标显示尺寸,对至少一个所述虚拟元件进行拼接以生成所述贴纸,将所述贴纸添加至所述第一图像中。The apparatus according to claim 26, wherein the first processing part is further configured as one of: determining the first image based on a second display position and/or a target display size of at least one of the virtual elements in the virtual element drawing area, and draw at least one virtual element in the virtual element drawing area; based on the second display position and/or target display size of at least one virtual element, render in the first image At least one of the virtual components; based on the second display position and/or target display size of each of the virtual components, splicing at least one of the virtual components to generate the sticker, adding the sticker to the second in an image.
  28. 根据权利要求26或27所述的装置,其中,所述装置还包括:第三确定部分,被配置为基于所述第一图像中所述车舱内的人员的数量,确定所述虚拟行驶工具贴纸中所述虚拟元件的数量;所述第一处理部分还被配置为:基于所述虚拟行驶工具贴纸中虚拟元件的数量以及每一所述虚拟元件的第二显示位置和/或目标显示尺寸,在所述第一图像中显示每一所述虚拟元件,以呈现至少一个所述人员乘坐虚拟行驶工具的特效场景。The device according to claim 26 or 27, wherein the device further comprises: a third determining part configured to determine the virtual driving tool based on the number of people in the cabin in the first image The number of virtual elements in the sticker; the first processing part is further configured to: based on the number of virtual elements in the virtual driving tool sticker and the second display position and/or target display size of each virtual element , displaying each of the virtual elements in the first image to present at least one special effect scene in which the person rides a virtual driving tool.
  29. 根据权利要求20至28中任一项所述的装置,其中,所述第一处理部分还被配置为:基于所述第一图像,检测与所述特效素材匹配的特效触发动作;响应于检测到所述特效触发动作,基于设定的所述特效素材的显示位置配置信息,为所述第一图像中的至少一个所述预设对象添加所述特效素材。The apparatus according to any one of claims 20 to 28, wherein the first processing part is further configured to: based on the first image, detect a special effect triggering action matching the special effect material; To the special effect trigger action, adding the special effect material to at least one of the preset objects in the first image based on the set display position configuration information of the special effect material.
  30. 根据权利要求17至29中任一项所述的装置,其中,所述装置还包括:第三获取部分,被配置为响应于所述交互终端接收到第二指令,获取所述车载相机的行车限制状态;其中,所述第二指令用于触发所述车载相机启动;控制部分,被配置为基于所述行车限制状态,控制所述车载相机的启动状态。The device according to any one of claims 17 to 29, wherein the device further comprises: a third obtaining part, configured to obtain the driving data of the vehicle-mounted camera in response to the interaction terminal receiving the second instruction. Restricted state; wherein, the second instruction is used to trigger the start-up of the vehicle-mounted camera; the control part is configured to control the start-up state of the vehicle-mounted camera based on the driving restriction state.
  31. 根据权利要求30所述的装置,其中,所述控制部分还被配置为:在满足如下至少一个条件的情况下,启动所述车载相机:所述行车限制状态为开启且所述交互终端所在车辆的行驶速度不超过预设阈值;所述行车限制状态为开启且所述交互终端所在车辆的驻车信号指示所述车辆处于驻停状态;所述行车限制状态为关闭。The device according to claim 30, wherein the control part is further configured to: activate the vehicle-mounted camera when at least one of the following conditions is met: the driving restriction state is on and the vehicle where the interactive terminal is located The driving speed does not exceed the preset threshold; the driving restriction state is on and the parking signal of the vehicle where the interactive terminal is located indicates that the vehicle is in a parked state; the driving restriction state is off.
  32. 根据权利要求17至31中任一项所述的装置,其中,所述交互终端包括如下至少一项:车载交互终端、车舱内的用户终端。The device according to any one of claims 17 to 31, wherein the interactive terminal includes at least one of the following: a vehicle-mounted interactive terminal, and a user terminal in a vehicle cabin.
  33. 一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1至16任一项所述方法中的步骤。A computer device, comprising a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the steps in the method of any one of claims 1 to 16 when executing the program .
  34. 一种车辆,包括:A vehicle comprising:
    车载相机,用于拍摄车舱内的图像信息;Car camera, used to capture image information in the car cabin;
    车载交互终端,与所述车载相机连接,用于:接收触发车载相机进行图像拍摄的第一指令;向处理器发送所述第一指令;显示所述车载相机的拍摄界面;The vehicle-mounted interactive terminal is connected with the vehicle-mounted camera, and is used to: receive a first instruction triggering the vehicle-mounted camera to take image; send the first instruction to the processor; display the shooting interface of the vehicle-mounted camera;
    处理器,用于:响应于位于车舱内的交互终端接收到第一指令,获取车载相机的摄像头拍摄的第一图像;其中,所述第一指令用于触发所述车载相机进行图像拍摄;对所述第一图像中的预设对象的关键特征进行检测,确定所述第一图像中的至少一个预设对象;基于设定的第一特效显示信息对所述第一图像中的至少一个所述预设对象进行特效处理,得到第二图像;向所述交互终端发送所述第二图像以在所述车载相机的拍摄界面显示所述第二图像。The processor is configured to: acquire a first image captured by the camera of the vehicle-mounted camera in response to the interactive terminal located in the vehicle cabin receiving a first instruction; wherein, the first instruction is used to trigger the vehicle-mounted camera to take an image; Detecting key features of preset objects in the first image, determining at least one preset object in the first image; displaying information on at least one of the first images based on the set first special effect display information The preset object is subjected to special effect processing to obtain a second image; the second image is sent to the interactive terminal to display the second image on the shooting interface of the vehicle camera.
  35. 一种计算机存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现权利要求1至16任一项所述方法中的步骤。A computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method of any one of claims 1 to 16 are realized.
  36. 一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现权利要求1至16任一项所述方法中的步骤。A computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, when the computer program is read and executed by a computer, the method described in any one of claims 1 to 16 is realized in the steps.
PCT/CN2022/075169 2021-09-30 2022-01-30 Vehicle, image capture method and apparatus, device, storage medium, and computer program product WO2023050677A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111162365.0 2021-09-30
CN202111162365.0A CN113923355A (en) 2021-09-30 2021-09-30 Vehicle, image shooting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023050677A1 true WO2023050677A1 (en) 2023-04-06

Family

ID=79237635

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/075169 WO2023050677A1 (en) 2021-09-30 2022-01-30 Vehicle, image capture method and apparatus, device, storage medium, and computer program product

Country Status (2)

Country Link
CN (1) CN113923355A (en)
WO (1) WO2023050677A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117635663A (en) * 2023-12-12 2024-03-01 中北数科(河北)科技有限公司 Target vehicle video tracking method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923355A (en) * 2021-09-30 2022-01-11 上海商汤临港智能科技有限公司 Vehicle, image shooting method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008083184A (en) * 2006-09-26 2008-04-10 Clarion Co Ltd Driving evaluation system
CN209112092U (en) * 2018-10-25 2019-07-16 浙江吉利汽车研究院有限公司 Interior filming apparatus and automobile
CN110738173A (en) * 2019-10-15 2020-01-31 安徽江淮汽车集团股份有限公司 Face recognition system and method
CN112396676A (en) * 2019-08-16 2021-02-23 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112929582A (en) * 2021-02-04 2021-06-08 北京字跳网络技术有限公司 Special effect display method, device, equipment and medium
CN113923355A (en) * 2021-09-30 2022-01-11 上海商汤临港智能科技有限公司 Vehicle, image shooting method, device, equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8948790B1 (en) * 2012-11-13 2015-02-03 Christine Hana Kim Apparatus and method for vehicle interior zone-based prevention of a dangerous user behavior with a mobile communication device
CN107566728A (en) * 2017-09-25 2018-01-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107995415A (en) * 2017-11-09 2018-05-04 深圳市金立通信设备有限公司 A kind of image processing method, terminal and computer-readable medium
US11030813B2 (en) * 2018-08-30 2021-06-08 Snap Inc. Video clip object tracking
CN209224945U (en) * 2018-10-21 2019-08-09 江门市隆吉减震器有限公司 Motorcycle instrument with self-timer U.S. face function
JP6916852B2 (en) * 2018-11-05 2021-08-11 本田技研工業株式会社 Vehicle control systems, vehicle control methods, and vehicle control programs
CN110602400B (en) * 2019-09-17 2021-03-12 Oppo(重庆)智能科技有限公司 Video shooting method and device and computer readable storage medium
DE102020106003A1 (en) * 2020-03-05 2021-09-09 Gestigon Gmbh METHOD AND SYSTEM FOR TRIGGERING A PICTURE RECORDING OF THE INTERIOR OF A VEHICLE BASED ON THE DETERMINATION OF A GESTURE OF CLEARANCE
CN111565282A (en) * 2020-05-11 2020-08-21 Oppo(重庆)智能科技有限公司 Shooting control processing method, device, equipment and storage medium
CN111667603A (en) * 2020-05-27 2020-09-15 奇瑞商用车(安徽)有限公司 Vehicle-mounted shooting sharing system and control method thereof
CN113067985A (en) * 2021-03-31 2021-07-02 Oppo广东移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN113194254A (en) * 2021-04-28 2021-07-30 上海商汤智能科技有限公司 Image shooting method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008083184A (en) * 2006-09-26 2008-04-10 Clarion Co Ltd Driving evaluation system
CN209112092U (en) * 2018-10-25 2019-07-16 浙江吉利汽车研究院有限公司 Interior filming apparatus and automobile
CN112396676A (en) * 2019-08-16 2021-02-23 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110738173A (en) * 2019-10-15 2020-01-31 安徽江淮汽车集团股份有限公司 Face recognition system and method
CN112929582A (en) * 2021-02-04 2021-06-08 北京字跳网络技术有限公司 Special effect display method, device, equipment and medium
CN113923355A (en) * 2021-09-30 2022-01-11 上海商汤临港智能科技有限公司 Vehicle, image shooting method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117635663A (en) * 2023-12-12 2024-03-01 中北数科(河北)科技有限公司 Target vehicle video tracking method and electronic equipment

Also Published As

Publication number Publication date
CN113923355A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
US20200014848A1 (en) Autonomous media capturing
US11367307B2 (en) Method for processing images and electronic device
WO2023050677A1 (en) Vehicle, image capture method and apparatus, device, storage medium, and computer program product
US11189104B2 (en) Generating 3D data in a messaging system
US10850693B1 (en) Determining comfort settings in vehicles using computer vision
US20210065448A1 (en) Providing 3d data for messages in a messaging system
US20220060639A1 (en) Live style transfer on a mobile device
CN111566612A (en) Visual data acquisition system based on posture and sight line
IT201900011403A1 (en) DETECTING ILLEGAL USE OF PHONE TO PREVENT THE DRIVER FROM GETTING A FINE
KR20210011416A (en) Shared environment for vehicle occupants and remote users
US11891002B1 (en) Determining comfort settings in vehicles using computer vision
US11457196B2 (en) Effects for 3D data in a messaging system
KR20160135652A (en) Image processing for Head mounted display devices
WO2016079470A1 (en) Mixed reality information and entertainment system and method
US11024090B2 (en) Virtual frame for guided image composition
CN112116716A (en) Virtual content located based on detected objects
US11477366B2 (en) Selfie setup and stock videos creation
CN113850726A (en) Image transformation method and device
CN112396705A (en) Mitigation of small field of view display using transitional visual content
WO2020059327A1 (en) Information processing device, information processing method, and program
TW202032968A (en) Electronic apparatus and solid-state image capture device
CN113574849A (en) Object scanning for subsequent object detection
WO2021026848A1 (en) Image processing method and device, and photographing apparatus, movable platform and storage medium
JP5910639B2 (en) Image processing apparatus, image processing method, and computer program
US11276241B2 (en) Augmented reality custom face filter