CN116721377A - Scene acquisition method, device and electronic equipment - Google Patents

Scene acquisition method, device and electronic equipment Download PDF

Info

Publication number
CN116721377A
CN116721377A CN202210191293.0A CN202210191293A CN116721377A CN 116721377 A CN116721377 A CN 116721377A CN 202210191293 A CN202210191293 A CN 202210191293A CN 116721377 A CN116721377 A CN 116721377A
Authority
CN
China
Prior art keywords
scene
target
image
picture
picture card
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210191293.0A
Other languages
Chinese (zh)
Inventor
李世焘
刘昭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210191293.0A priority Critical patent/CN116721377A/en
Publication of CN116721377A publication Critical patent/CN116721377A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a scene acquisition method and device and electronic equipment, and belongs to the technical field of electronic equipment. The scene acquisition method comprises the following steps: acquiring scene characteristics corresponding to a target scene, wherein the scene characteristics comprise main body characteristics corresponding to a target object in the target scene and background characteristics corresponding to a background part; acquiring a first image card associated with the main body feature and a second image card associated with the background feature; and combining the first image card and the second image card based on the position relation between the target object and the background part to obtain an image card combined picture corresponding to the target scene.

Description

场景获取方法、装置和电子设备Scene acquisition method, device and electronic equipment

技术领域Technical field

本申请属于电子设备技术领域,具体涉及一种场景获取方法、装置和电子设备。This application belongs to the technical field of electronic equipment, and specifically relates to a scene acquisition method, device and electronic equipment.

背景技术Background technique

目前,在电子设备的开发调试阶段,需要通过电子设备对大量不同的真实场景进行拍摄,通过拍摄得到的大量图像来验证电子设备的拍摄效果是否存在问题。At present, in the development and debugging stage of electronic equipment, a large number of different real scenes need to be photographed by electronic equipment, and a large number of images obtained are used to verify whether there are problems with the shooting effect of the electronic equipment.

相关技术中,不同的真实场景经常处于不同位置,因此测试人员在对选取的大量真实场景进行拍摄时,会耗费大量的人力和时间,导致设备测试成本较高。In related technologies, different real scenes are often in different positions. Therefore, testers will spend a lot of manpower and time when shooting a large number of selected real scenes, resulting in high equipment testing costs.

发明内容Contents of the invention

本申请实施例的目的是提供一种场景获取方法、装置和电子设备,能够解决相关技术中电子设备的开发调试阶段需要耗费大量的人力和时间,设备测试成本较高的问题。The purpose of the embodiments of this application is to provide a scene acquisition method, device and electronic equipment, which can solve the problem in related technologies that the development and debugging phase of electronic equipment requires a lot of manpower and time, and the equipment testing cost is high.

第一方面,本申请实施例提供了一种场景获取方法,该方法包括:获取目标场景对应的场景特征,其中,场景特征包括目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征;获取与主体特征关联的第一图卡,以及与背景特征关联的第二图卡;基于目标对象与背景部分的位置关系,对第一图卡和第二图卡进行组合,得到目标场景对应的图卡组合画面。In the first aspect, embodiments of the present application provide a scene acquisition method. The method includes: acquiring scene features corresponding to the target scene, where the scene features include subject features corresponding to the target object in the target scene, and background features corresponding to the background part. ; Obtain the first picture card associated with the subject features and the second picture card associated with the background features; based on the positional relationship between the target object and the background part, combine the first picture card and the second picture card to obtain the target scene correspondence The picture card combination screen.

第二方面,本申请实施例提供了一种场景获取装置,该装置包括:获取模块,用于获取目标场景对应的场景特征,其中,场景特征包括目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征;获取模块,还用于获取与主体特征关联的第一图卡,以及与背景特征关联的第二图卡;场景模块,用于基于目标对象与背景部分的位置关系,对第一图卡和第二图卡进行组合,得到目标场景对应的图卡组合画面。In the second aspect, embodiments of the present application provide a scene acquisition device. The device includes: an acquisition module, used to acquire scene features corresponding to the target scene, where the scene features include subject features corresponding to the target object in the target scene, and background The background features corresponding to the part; the acquisition module is also used to obtain the first picture card associated with the subject features and the second picture card associated with the background features; the scene module is used to obtain the target object based on the positional relationship between the target object and the background part. The first picture card and the second picture card are combined to obtain a picture card combination picture corresponding to the target scene.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的场景获取方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, the following is implemented: The steps of the first aspect of the scene acquisition method.

第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的场景获取方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the scene acquisition method of the first aspect are implemented.

第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的场景获取方法的步骤。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the steps of the scene acquisition method in the first aspect.

第六方面,本申请实施例提供了一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的场景获取方法的步骤。In a sixth aspect, embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement the steps of the scene acquisition method as described in the first aspect.

在本申请实施例中,可以获取目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征,并通过主体特征获取到第一图卡,通过背景特征获取到第二图卡。由于第一图卡、第二图卡分别与目标场景中的目标对象、背景部分相对应,因此基于目标对象与背景部分的位置关系组合第一图卡和第二图卡,能够模拟出该目标场景,从而得到该目标场景的模拟场景,即图卡组合画面。基于此,测试人员无需去到真实的目标场景进行拍摄,而是通过拍摄第一图卡和第二图卡和图卡组合画面,即可完成设备测试,无需进行实景拍摄,有效节省时间和人力,降低设备测试成本。In the embodiment of the present application, the subject characteristics corresponding to the target object in the target scene and the background characteristics corresponding to the background part can be obtained, and the first picture card is obtained through the subject characteristics, and the second picture card is obtained through the background characteristics. Since the first picture card and the second picture card respectively correspond to the target object and the background part in the target scene, the target can be simulated by combining the first picture card and the second picture card based on the positional relationship between the target object and the background part. scene, thereby obtaining the simulation scene of the target scene, that is, the picture card combination screen. Based on this, testers do not need to go to the real target scene to shoot. Instead, they can complete the equipment test by shooting the first picture card and the second picture card and the picture card combination. There is no need for real-life shooting, which effectively saves time and manpower. , reduce equipment testing costs.

附图说明Description of the drawings

图1是本申请实施例提供的场景获取方法的流程示意图之一;Figure 1 is one of the flow diagrams of the scene acquisition method provided by the embodiment of the present application;

图2是本申请实施例提供的图卡组合界面的示例的示意图;Figure 2 is a schematic diagram of an example of a picture card combination interface provided by an embodiment of the present application;

图3是本申请实施例提供的场景获取方法的流程示意图之二;Figure 3 is the second schematic flowchart of the scene acquisition method provided by the embodiment of the present application;

图4是本申请实施例提供的场景获取方法的流程示意图之三;Figure 4 is the third schematic flowchart of the scene acquisition method provided by the embodiment of the present application;

图5是本申请实施例提供的场景获取方法的流程示意图之四;Figure 5 is the fourth schematic flowchart of the scene acquisition method provided by the embodiment of the present application;

图6是本申请实施例提供的一种场景获取装置的结构示意图;Figure 6 is a schematic structural diagram of a scene acquisition device provided by an embodiment of the present application;

图7是本申请实施例提供的一种电子设备的结构示意图;Figure 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图8是本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

如背景技术,在电子设备的开发调试阶段,需要通过电子设备对大量不同的真实场景进行拍摄,通过拍摄得到的大量图像来验证电子设备的拍摄效果是否存在问题。不同的真实场景经常处于不同位置,因此测试人员在对选取的大量真实场景进行拍摄时,会耗费大量的人力和时间,导致设备测试成本较高。As in the background art, during the development and debugging stage of electronic equipment, a large number of different real scenes need to be photographed by the electronic equipment, and a large number of images obtained are used to verify whether there are problems with the shooting effect of the electronic equipment. Different real scenes are often in different locations, so testers will spend a lot of manpower and time when shooting a large number of selected real scenes, resulting in high equipment testing costs.

针对相关技术中出现的问题,本申请实施例提供了一种场景获取方法,可以获取目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征,并通过主体特征获取到第一图卡,通过背景特征获取到第二图卡。由于第一图卡、第二图卡分别与目标场景中的目标对象、背景部分相对应,因此基于目标对象与背景部分的位置关系组合第一图卡和第二图卡,能够模拟出该目标场景,从而得到该目标场景的模拟场景,即图卡组合画面。基于此,测试人员无需去到真实的目标场景进行拍摄,而是通过拍摄第一图卡和第二图卡和图卡组合画面,即可完成设备测试,无需进行实景拍摄,有效节省时间和人力,降低设备测试成本,解决了相关技术中电子设备的开发调试阶段需要耗费大量的人力和时间,设备测试成本较高的问题。In view of the problems that arise in related technologies, embodiments of the present application provide a scene acquisition method, which can obtain the subject characteristics corresponding to the target object in the target scene and the background characteristics corresponding to the background part, and obtain the first picture card through the subject characteristics. , the second picture card is obtained through background features. Since the first picture card and the second picture card respectively correspond to the target object and the background part in the target scene, the target can be simulated by combining the first picture card and the second picture card based on the positional relationship between the target object and the background part. scene, thereby obtaining the simulation scene of the target scene, that is, the picture card combination screen. Based on this, testers do not need to go to the real target scene to shoot. Instead, they can complete the equipment test by shooting the first picture card and the second picture card and the picture card combination. There is no need for real-life shooting, which effectively saves time and manpower. , reduce equipment testing costs, and solve the problem that the development and debugging phase of electronic equipment in related technologies requires a lot of manpower and time, and equipment testing costs are high.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的场景获取方法进行详细地说明。The scene acquisition method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

图1是本申请实施例提供的一种场景获取方法的流程示意图,该场景获取方法的执行主体可以为电子设备。需要说明的是,上述执行主体并不构成对本申请的限定。Figure 1 is a schematic flowchart of a scene acquisition method provided by an embodiment of the present application. The execution subject of the scene acquisition method may be an electronic device. It should be noted that the above execution subjects do not constitute a limitation on this application.

如图1所示,本申请实施例提供的场景获取方法可以包括步骤110-步骤130。As shown in Figure 1, the scene acquisition method provided by the embodiment of the present application may include steps 110 to 130.

步骤110,获取目标场景对应的场景特征。Step 110: Obtain scene features corresponding to the target scene.

其中,场景特征包括目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征。Among them, the scene features include subject features corresponding to the target object in the target scene, and background features corresponding to the background part.

目标场景可以为用户想要模拟或构建的场景,即待模拟场景。The target scenario can be the scenario that the user wants to simulate or build, that is, the scenario to be simulated.

例如,测试人员想要测试电子设备在室外强光下的拍摄效果,则可以将室外强光场景作为目标场景,通过获取室外强光场景的场景特征,即可模拟出该室外强光场景。For example, if a tester wants to test the shooting effect of an electronic device under outdoor strong light, the outdoor strong light scene can be used as the target scene, and the outdoor strong light scene can be simulated by obtaining the scene characteristics of the outdoor strong light scene.

目标对象可以为目标场景中的拍摄主体,目标场景中目标对象的数量可以为至少一个,背景部分为除拍摄主体以外的部分。The target object may be the shooting subject in the target scene, the number of target objects in the target scene may be at least one, and the background part may be a part other than the shooting subject.

示例性地,如图2所示,在目标场景201中,目标对象为201中的拍摄主体202,则背景部分为201中除202以外的部分203。For example, as shown in Figure 2, in the target scene 201, the target object is the shooting subject 202 in 201, and the background part is the part 203 in 201 except 202.

步骤120,获取与主体特征关联的第一图卡,以及与背景特征关联的第二图卡。Step 120: Obtain the first image card associated with the subject features and the second image card associated with the background features.

具体地,电子设备可以从多张图卡中获取与主体特征匹配的图卡,得到与目标对象关联的第一图卡,从多张图卡中获取与背景特征匹配的图卡,得到与背景部分关联的第二图卡。在目标对象包括多个的情况下,电子设备可以获取到与每个目标对象关联的至少一张第一图卡。Specifically, the electronic device can obtain a picture card that matches the characteristics of the subject from multiple picture cards to obtain the first picture card associated with the target object, obtain a picture card that matches the background characteristics from multiple picture cards, and obtain a picture card that matches the background characteristics. Partially related second picture card. When there are multiple target objects, the electronic device can obtain at least one first picture card associated with each target object.

示例性地,多张图卡包括18个灰度值,主体特征为灰度值50%,背景特征为灰度值10%,则可以从18个灰度值的图卡中选取灰度值为50%的图卡为第一图卡,灰度值为10%的图卡为第二图卡。For example, if multiple picture cards include 18 grayscale values, the main feature is a grayscale value of 50%, and the background feature is a grayscale value of 10%, then the grayscale value can be selected from the picture card with 18 grayscale values as The 50% picture card is the first picture card, and the picture card with a grayscale value of 10% is the second picture card.

需要说明的是,第一图卡或第二图卡的数量可以为至少一张,本申请不对第一图卡和第二图卡的数量进行具体限定。It should be noted that the number of the first picture card or the second picture card may be at least one, and the number of the first picture card and the second picture card is not specifically limited in this application.

在一个示例中,如图2所示,与目标对象202关联的第一图卡包括四张,四张第一图卡对应三个颜色,其共同组合为目标对象202对应的图卡组合205。In one example, as shown in FIG. 2 , the first picture cards associated with the target object 202 include four, and the four first picture cards correspond to three colors, and their combination together forms the picture card combination 205 corresponding to the target object 202 .

在另一个示例中,第二图卡包括两张,分别为纯白图卡与18%中性灰图卡。若两个第二图卡在画面中所占比例不同,则可对应不同的背景。In another example, the second picture card includes two pictures, a pure white picture card and an 18% neutral gray picture card. If the two second picture cards occupy different proportions in the screen, they can correspond to different backgrounds.

步骤130,基于目标对象与背景部分的位置关系,对第一图卡和第二图卡进行组合,得到目标场景对应的图卡组合画面。Step 130: Based on the positional relationship between the target object and the background part, combine the first picture card and the second picture card to obtain a picture card combination picture corresponding to the target scene.

示例性地,如图2所示,四张第一图卡共同组合得到目标对象202对应的图卡组合,第二图卡206与背景部分203相对应,第一图卡与第二图卡的图卡组合画面204可以作为目标场景201的模拟场景,因此无需去到真实的目标场景201拍摄,通过拍摄图卡组合画面204,即可得到目标场景201的场景图像。For example, as shown in Figure 2, four first picture cards are combined together to obtain a picture card combination corresponding to the target object 202, the second picture card 206 corresponds to the background part 203, and the first picture card and the second picture card are The picture card combination screen 204 can be used as a simulated scene of the target scene 201. Therefore, there is no need to go to the real target scene 201 to shoot. By shooting the picture card combination screen 204, the scene image of the target scene 201 can be obtained.

本申请实施例提供的场景获取方法,可以获取目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征,并通过主体特征获取到第一图卡,通过背景特征获取到第二图卡。由于第一图卡、第二图卡分别与目标场景中的目标对象、背景部分相对应,因此基于目标对象与背景部分的位置关系组合第一图卡和第二图卡,能够模拟出该目标场景,从而得到该目标场景的模拟场景,即图卡组合画面。基于此,测试人员无需去到真实的目标场景进行拍摄,而是通过拍摄第一图卡和第二图卡和图卡组合画面,即可完成设备测试,无需进行实景拍摄,有效节省时间和人力,降低设备测试成本。The scene acquisition method provided by the embodiment of the present application can obtain the subject characteristics corresponding to the target object in the target scene and the background characteristics corresponding to the background part, and obtain the first picture card through the subject characteristics, and obtain the second picture card through the background characteristics. . Since the first picture card and the second picture card respectively correspond to the target object and the background part in the target scene, the target can be simulated by combining the first picture card and the second picture card based on the positional relationship between the target object and the background part. scene, thereby obtaining the simulation scene of the target scene, that is, the picture card combination screen. Based on this, testers do not need to go to the real target scene to shoot. Instead, they can complete the equipment test by shooting the first picture card and the second picture card and the picture card combination. There is no need for real-life shooting, which effectively saves time and manpower. , reduce equipment testing costs.

上述步骤110-步骤130的具体实现方式,在下文进行详细说明。The specific implementation manner of the above steps 110 to 130 will be described in detail below.

涉及步骤110,获取目标场景对应的场景特征。Referring to step 110, the scene characteristics corresponding to the target scene are obtained.

在本申请的一些实施例中,在步骤110之前,该方法还可以具体包括下述步骤:接收用户输入的预设维度信息;根据预设维度信息确定场景特征包括的内容。In some embodiments of the present application, before step 110, the method may further specifically include the following steps: receiving preset dimension information input by the user; and determining content included in the scene features based on the preset dimension information.

其中,该目标拍摄策略可以包括电子设备对应的自动曝光策略、自动白平衡策略中的至少一项。The target shooting strategy may include at least one of an automatic exposure strategy and an automatic white balance strategy corresponding to the electronic device.

可选地,若预设维度信息为自动曝光(Automatic Exposure,AE),则主体特征包括的内容可以为目标对象对应的平均灰度值,背景特征包括的内容可以为亮区与暗区在背景部分中的所占比例;若预设维度信息为自动白平衡(Automatic white balance,AWB),则主体特征包括的内容可以为饱和度,背景特征包括的内容可以为光源占背景部分的比例。Optionally, if the preset dimension information is Automatic Exposure (AE), the content included in the subject feature can be the average gray value corresponding to the target object, and the content included in the background feature can be the bright area and dark area in the background. The proportion in the part; if the preset dimension information is automatic white balance (AWB), the content included in the subject feature can be saturation, and the content included in the background feature can be the proportion of the light source in the background.

在本申请实施例中,场景特征中主体特征与背景特征包括的内容均由预设维度信息来决定,因此用户可以自定义想要关注的维度,将预设维度信息输入电子设备之后,电子设备可以获取到与该预设维度信息匹配的主体特征和背景特征。如此,能够使组合得到的图卡组合画面适配于预设维度信息,尽量模拟出符合用户所关注维度的目标场景,便于对该维度下的拍摄效果进行测试。In the embodiment of the present application, the contents of the subject features and background features in the scene features are determined by the preset dimension information. Therefore, the user can customize the dimensions he wants to focus on. After inputting the preset dimension information into the electronic device, the electronic device The subject characteristics and background characteristics matching the preset dimension information can be obtained. In this way, the combined picture card picture can be adapted to the preset dimension information, and a target scene that conforms to the dimension that the user is concerned about can be simulated as much as possible, so as to facilitate testing of the shooting effect in this dimension.

在本申请的一些实施例中,场景特征包括的内容可以包括以下至少一项:灰度值、亮度、动态范围、反射率、对比度、颜色、色彩饱和度、种类。In some embodiments of the present application, the scene characteristics may include at least one of the following: gray value, brightness, dynamic range, reflectivity, contrast, color, color saturation, and category.

需要说明的是,场景特征中包括的参数越多,获取到的第一图卡与目标对象越匹配,获取到的第二图卡与背景部分越匹配,因此第一图卡与第二图卡的图卡组合画面越接近目标场景。It should be noted that the more parameters included in the scene features, the better the obtained first picture card matches the target object, and the closer the obtained second picture card matches the background part. Therefore, the first picture card and the second picture card The picture card combination picture is closer to the target scene.

在一个示例中,多张图卡包括24个颜色,主体特征为饱和度较高的红色和黄色相组合,则可以从24个颜色的图卡中选取红色图卡和黄色图卡作为第一图卡;背景特征为饱和度较低的白色和灰色相组合,则可以从24个颜色的图卡中选取白色图卡和灰色图卡作为第二图卡。In one example, multiple picture cards include 24 colors, and the main feature is a combination of red and yellow with high saturation. Then the red picture card and the yellow picture card can be selected from the 24 color picture cards as the first picture. card; the background feature is a combination of white and gray with low saturation, then you can select a white card and a gray card from 24 color cards as the second card.

在本申请实施例中,场景特征包括的内容可以为任意类型的参数,因此能够使场景特征尽量满足各种目标场景的需求,提升组合得到的图卡组合画面与场景的适配度,扩大图卡组合画面可模拟场景的场景范围。In the embodiment of the present application, the contents included in the scene features can be any type of parameters. Therefore, the scene features can be made to meet the needs of various target scenes as much as possible, improve the adaptability of the combined picture card combination picture and the scene, and expand the picture. The card combination screen can simulate the scene range of the scene.

在本申请的一些实施例中,图3是本申请实施例提供的另一种场景获取方法的流程示意图,步骤110可以包括图3所示的步骤310和步骤320。In some embodiments of the present application, FIG. 3 is a schematic flowchart of another scene acquisition method provided by the embodiment of the present application. Step 110 may include step 310 and step 320 shown in FIG. 3 .

步骤310,获取第一图像。Step 310: Obtain the first image.

其中,第一图像的拍摄场景即为目标场景,第一图像可以包括至少一张。The shooting scene of the first image is the target scene, and the first image may include at least one image.

在一个实施例中,在对电子设备的相机效果进行测试时,会存在一些固定测试场景,因此目标场景可以为任意固定测试场景,在目标场景拍摄一次图像之后,可以保存目标场景对应的图像。若之后需测试电子设备,可以直接获取目标场景对应的图像,即第一图像,通过第一图像还原该目标场景。In one embodiment, when testing the camera effect of an electronic device, there will be some fixed test scenes, so the target scene can be any fixed test scene. After taking an image of the target scene, the image corresponding to the target scene can be saved. If the electronic device needs to be tested later, the image corresponding to the target scene, that is, the first image, can be directly obtained, and the target scene can be restored through the first image.

示例性地,该第一图像可以为用户手动提交。Illustratively, the first image may be submitted manually by the user.

在另一个实施例中,该第一图像可以为电子设备拍摄的问题图像,目标场景为问题图像对应的拍摄场景,通过向设备输入该问题图像,可以复现拍摄该问题图像时存在的问题。可选地,该问题图像可以是测试人员手动输入的,或者,该电子设备与客户投诉系统连接,客户投诉系统在接收到用户投诉请求时,可以将用户投诉请求中的问题图像发送给电子设备,从而使电子设备接收到问题图像,通过该问题图像模拟拍摄问题图像时的场景。In another embodiment, the first image may be a problem image captured by an electronic device, and the target scene is a shooting scene corresponding to the problem image. By inputting the problem image to the device, the problem existing when the problem image was captured can be reproduced. Optionally, the problem image can be manually input by the tester, or the electronic device is connected to a customer complaint system. When the customer complaint system receives the user complaint request, it can send the problem image in the user complaint request to the electronic device. , so that the electronic device receives the problem image, and uses the problem image to simulate the scene when the problem image was taken.

步骤320,基于预设识别算法对第一图像进行识别,确定第一图像中的目标对象和背景部分,并生成目标对象对应的主体特征,以及背景部分对应的背景特征。Step 320: Recognize the first image based on a preset recognition algorithm, determine the target object and the background part in the first image, and generate subject features corresponding to the target object and background features corresponding to the background part.

其中,预设识别算法可以根据所需识别精度进行设置,本申请在此不做具体限定。The preset recognition algorithm can be set according to the required recognition accuracy, which is not specifically limited in this application.

可选地,若所需精度较低,则该预设识别算法可以为边缘分割算法;若所需精度较高,则该预设识别算法可以为AI识别算法。Optionally, if the required accuracy is low, the preset recognition algorithm may be an edge segmentation algorithm; if the required accuracy is high, the preset recognition algorithm may be an AI recognition algorithm.

例如,电子设备可以通过边缘分割算法识别第一图像中靠近中央位置处的物体为目标对象,或者,为简化运算,可将第一图像等分为9个区域(类似相机预览界面可调出的构图线),仅对最中间区域进行识别,将最中间区域作为目标对象。For example, the electronic device can identify the object near the center in the first image as the target object through an edge segmentation algorithm, or, to simplify the operation, the first image can be divided into nine equal areas (similar to the ones that can be called up in the camera preview interface). Composition line), only the middle area is recognized, and the middle area is used as the target object.

在本申请实施例中,在获取到第一图像之后,可以基于预设识别算法对第一图像进行识别,确定第一图像中的目标对象和背景部分,并生成目标对象对应的主体特征,以及背景部分对应的背景特征。基于此,可以根据主体特征和背景特征获取到与目标对象匹配的第一图卡和与背景部分匹配的第二图卡,通过第一图卡和第二图卡模拟第一图像中的画面,即模拟拍摄第一图像时的目标场景。因此,通过拍摄图卡组合画面,即可得到目标场景对应的场景图像,测试人员无需去到真实的目标场景进行拍摄,降低测试成本,缩短测试时长。当第一图像为问题图像时,能够通过图卡组合画面灵活模拟拍摄问题图像时的目标场景,通过分析拍摄图卡组合画面得到的场景图像,可以快速复现拍摄问题图像时存在的问题,提升问题处理效率。In the embodiment of the present application, after the first image is acquired, the first image can be recognized based on a preset recognition algorithm, the target object and the background part in the first image are determined, and the subject characteristics corresponding to the target object are generated, and Background features corresponding to the background part. Based on this, the first picture card matching the target object and the second picture card matching the background part can be obtained according to the subject characteristics and the background characteristics, and the picture in the first image is simulated through the first picture card and the second picture card, That is, the target scene when shooting the first image is simulated. Therefore, by shooting the picture card combination, the scene image corresponding to the target scene can be obtained. The tester does not need to go to the real target scene to shoot, which reduces the test cost and shortens the test time. When the first image is a problem image, the target scene when shooting the problem image can be flexibly simulated through the picture card combination screen. By analyzing the scene image obtained by shooting the picture card combination screen, the problems that existed when shooting the problem image can be quickly reproduced, improving Problem handling efficiency.

在本申请的另一些实施例中,获取目标场景对应的场景特征,可以具体包括:接收用户输入的目标场景对应的场景特征。In other embodiments of the present application, obtaining the scene characteristics corresponding to the target scene may specifically include: receiving the scene characteristics corresponding to the target scene input by the user.

具体地,用户可以向电子设备直接输入待模拟的目标场景的场景特征,以使电子设备基于场景特征中的主体特征和背景特征模拟出该目标场景,从而得到目标场景对应的场景图像。Specifically, the user can directly input the scene characteristics of the target scene to be simulated to the electronic device, so that the electronic device simulates the target scene based on the subject characteristics and background characteristics in the scene characteristics, thereby obtaining a scene image corresponding to the target scene.

示例性地,目标场景为白加场景,则场景特征可以包括画面中浅色占比较高;或者,目标场景为黑减场景,则场景特征可以包括画面中深色占比较高;或者,目标场景为高动态范围(High Dynamic Range,HDR)场景,则场景特征可以包括画面中动态范围较广。For example, if the target scene is a white-plus scene, then the scene characteristics may include a higher proportion of light colors in the picture; or if the target scene is a black-minus scene, then the scene characteristics may include a higher proportion of dark colors in the picture; or, the target scene If it is a High Dynamic Range (HDR) scene, the scene characteristics may include a wider dynamic range in the picture.

在本申请实施例中,通过接收用户输入的待模拟的目标场景的主体特征和背景特征,可以获取到与主体特征匹配的第一图卡和与背景特征匹配的第二图卡,从而得到与目标对象匹配的第一图卡和与背景部分匹配的第二图卡。基于此,通过组合第一图卡和第二图卡,即可构建出目标场景的模拟场景,即图卡组合画面,通过拍摄该图卡组合画面获取到该目标场景对应的场景图像。在目标场景包括多个的情况下,通过分别向电子设备输入每个目标场景的场景特征,可以快速得到每个目标场景对应的图卡组合画面,从而快速得到多个目标场景对应的场景图像,缩短电子设备的调试周期,提升测试效率。In the embodiment of the present application, by receiving the subject characteristics and background characteristics of the target scene to be simulated input by the user, the first picture card matching the subject characteristics and the second picture card matching the background characteristics can be obtained, thereby obtaining The first picture card matches the target object and the second picture card matches the background part. Based on this, by combining the first picture card and the second picture card, a simulation scene of the target scene, that is, the picture card combination picture, can be constructed, and the scene image corresponding to the target scene is obtained by shooting the picture card combination picture. When the target scene includes multiple target scenes, by inputting the scene characteristics of each target scene to the electronic device respectively, the picture card combination picture corresponding to each target scene can be quickly obtained, thereby quickly obtaining the scene images corresponding to the multiple target scenes. Shorten the debugging cycle of electronic equipment and improve test efficiency.

涉及步骤130,基于目标对象与背景部分的位置关系,对第一图卡和第二图卡进行组合,得到目标场景对应的图卡组合画面。Relating to step 130, based on the positional relationship between the target object and the background part, the first picture card and the second picture card are combined to obtain a picture card combination picture corresponding to the target scene.

在本申请的一些实施例中,电子设备可以与抓取部件连接,背景特征包括至少两个特征参数值,与背景特征关联的第二图卡包括至少两张,至少两张第二图卡对应的特征参数值不同,图4是本申请实施例提供的另一种场景获取方法的流程示意图,步骤130可以包括图4所示的步骤410和步骤420。In some embodiments of the present application, the electronic device can be connected to the grabbing component, the background feature includes at least two feature parameter values, the second picture card associated with the background feature includes at least two, and the at least two second picture cards correspond to The characteristic parameter values are different. Figure 4 is a schematic flowchart of another scene acquisition method provided by an embodiment of the present application. Step 130 may include step 410 and step 420 shown in Figure 4.

步骤410,确定背景部分中每个子区域占背景部分的比例。Step 410: Determine the proportion of each sub-region in the background part to the background part.

其中,背景部分中的子区域基于所述特征参数值划分,子区域占背景部分的比例可以为子区域占背景部分的面积之比。Wherein, the sub-regions in the background part are divided based on the characteristic parameter values, and the proportion of the sub-regions to the background part may be the ratio of the sub-regions to the area of the background part.

示例性地,目标场景的背景部分P由亮区和暗区组成,因此背景特征可以包括特征参数值:平均亮度值A1,平均亮度值A2,与背景特征关联的第二图卡包括图卡a1和图卡a2,其中,图卡a1对应平均亮度值A1,图卡a2对应平均亮度值A2。电子设备可以将背景部分P划分为对应A1的子区域P1,以及对应A2的子区域P2,并确定P1与P的面积之比为x1,P2与P的面积之比为x2。For example, the background part P of the target scene consists of bright areas and dark areas, so the background features may include feature parameter values: average brightness value A1, average brightness value A2, and the second picture card associated with the background feature includes picture card a1 and chart a2, where chart a1 corresponds to the average brightness value A1, and chart a2 corresponds to the average brightness value A2. The electronic device can divide the background part P into a sub-region P1 corresponding to A1 and a sub-region P2 corresponding to A2, and determine that the ratio of the areas of P1 and P is x1, and the ratio of the areas of P2 and P is x2.

步骤420,控制抓取部件抓取第一图卡和第二图卡,并根据位置关系放置第一图卡和第二图卡中的至少一者,以及根据比例放置至少两张第二图卡,得到图卡组合画面。Step 420: Control the grabbing component to grab the first picture card and the second picture card, and place at least one of the first picture card and the second picture card according to the positional relationship, and place at least two second picture cards according to the proportion. , get the picture card combination screen.

具体地,电子设备可以放置第一图卡和第二图卡中的至少一者,在第二图卡固定的情况下,可以将第一图卡放置至第二图卡所在的平面;或者,在第一图卡固定的情况下,可以将第二图卡放置至第一图卡所在的平面;或者,将第一图卡与第二图卡放置至同一平面。Specifically, the electronic device can place at least one of the first picture card and the second picture card, and when the second picture card is fixed, the first picture card can be placed on the plane where the second picture card is located; or, When the first picture card is fixed, the second picture card can be placed on the plane where the first picture card is located; or, the first picture card and the second picture card can be placed on the same plane.

参照上述示例,目标场景的背景部分P由亮区和暗区组成,与背景特征关联的第二图卡包括图卡a1和图卡a2,其中,图卡a1对应平均亮度值A1,图卡a2对应平均亮度值A2。电子设备可以将背景部分P划分为对应A1的子区域P1,以及对应A2的子区域P2,并确定P1与P的面积之比为x1,P2与P的面积之比为x2。因此,在放置图卡a1和图卡a2时,可以参考x1和x2进行放置,得到背景图卡组合画面,以使放置后的图卡a1占整个背景图卡组合画面的比例接近x1,图卡a2占整个背景图卡组合画面的比例接近x2。同时,参照目标场景中目标对象Q位于目标场景的中心位置,电子设备可以控制抓取部件,例如控制机械臂抓取实体的第一图卡,将第一图卡放置于背景图卡组合画面的中心位置,得到最终的图卡组合画面。Referring to the above example, the background part P of the target scene consists of bright areas and dark areas. The second picture card associated with the background features includes picture card a1 and picture card a2, where picture card a1 corresponds to the average brightness value A1 and picture card a2 Corresponds to the average brightness value A2. The electronic device can divide the background part P into a sub-region P1 corresponding to A1 and a sub-region P2 corresponding to A2, and determine that the ratio of the areas of P1 and P is x1, and the ratio of the areas of P2 and P is x2. Therefore, when placing picture card a1 and picture card a2, you can place it with reference to x1 and x2 to obtain the background picture card combination picture, so that the ratio of placed picture card a1 to the entire background picture card combination picture is close to x1, and the picture card The proportion of a2 in the entire background image card combination screen is close to x2. At the same time, referring to the target object Q in the target scene being located at the center of the target scene, the electronic device can control the grabbing component, for example, controlling the robotic arm to grab the first picture card of the entity, and place the first picture card on the background picture card combination screen. Center position to get the final picture card combination screen.

在本申请实施例中,电子设备可以根据目标场景对应的场景特征,确定目标对象和背景部分的位置关系。这样,电子设备在控制抓取部件抓取到第一图卡和第二图卡时,可以根据目标对象和背景部分的位置关系放置第一图卡和第二图卡,以使得到的图卡组合画面最大程度地还原目标场景,提高目标场景与图卡组合画面的相似度。同时,在背景特征包括至少两个特征参数值,第二图卡包括至少两张的情况下,通过确定对应不同特征参数值的子区域分别占背景部分的比例,能够参照该比例放置至少两张第二图卡,使某一特征参数值对应的第二图卡占图卡组合画面的比例,适配于该特征参数值对应的子区域占背景部分的比例,提升背景部分与图卡组合画面中背景的相似度。In this embodiment of the present application, the electronic device can determine the positional relationship between the target object and the background part according to the scene characteristics corresponding to the target scene. In this way, when the electronic device controls the grabbing component to grab the first picture card and the second picture card, it can place the first picture card and the second picture card according to the positional relationship between the target object and the background part, so that the obtained picture card The combined picture restores the target scene to the greatest extent and improves the similarity between the target scene and the picture card combined picture. At the same time, when the background feature includes at least two feature parameter values and the second picture card includes at least two, by determining the proportion of the sub-regions corresponding to different feature parameter values in the background part, at least two pictures can be placed with reference to the proportion. For the second picture card, the proportion of the second picture card corresponding to a certain characteristic parameter value in the picture card combination picture is adapted to the proportion of the sub-region corresponding to the characteristic parameter value in the background part, thereby improving the background part and the picture card combination picture. similarity in the background.

在一个实施例中,两组备用图卡可以分开放置,一组备用图卡对应拍摄主体,一组备用图卡对应背景部分,每组均包括多张备用图卡。电子设备可以控制抓取部件在一组备用图卡中选取与拍摄主体对应的第一图卡,在另一组备用图卡中选取与背景部分对应的第二图卡。In one embodiment, two sets of spare picture cards can be placed separately, one set of spare picture cards corresponds to the subject, and one set of spare picture cards corresponds to the background part, and each group includes a plurality of spare picture cards. The electronic device can control the grabbing component to select a first picture card corresponding to the subject of the photograph from one set of backup picture cards, and to select a second picture card corresponding to the background part from another set of backup picture cards.

在本申请的一些实施例中,为了对设备的拍摄策略进行测试,该方法还可以包括下述步骤:接收用户输入的预设维度信息;根据预设维度信息确定目标拍摄策略;基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像。In some embodiments of the present application, in order to test the shooting strategy of the device, the method may also include the following steps: receiving preset dimension information input by the user; determining the target shooting strategy based on the preset dimension information; based on the target shooting strategy Take a picture card combination of the first picture card and the second picture card to obtain the scene image corresponding to the target scene.

可选地,电子设备可以直接拍摄图卡组合画面,或者,通过控制其它具有拍摄功能的电子设备拍摄该图卡组合画面。Optionally, the electronic device can directly shoot the picture card combination picture, or capture the picture card combination picture by controlling other electronic devices with shooting functions.

可选地,若预设维度信息为自动曝光(Automatic Exposure,AE),则可以确定目标拍摄策略为自动曝光策略;若预设维度信息为自动白平衡(Automatic white balance,AWB),则可以确定目标拍摄策略为自动白平衡策略。Optionally, if the preset dimension information is Automatic Exposure (AE), it can be determined that the target shooting strategy is an automatic exposure strategy; if the preset dimension information is Automatic White Balance (AWB), it can be determined The target shooting strategy is the automatic white balance strategy.

在本申请实施例中,用户可以通过向电子设备输入预设维度信息,自定义想要测试的设备策略,电子设备可以基于预设维度信息确定目标拍摄策略,并采用该目标拍摄策略对图卡组合画面进行拍摄。通过在不同场景下基于相同目标拍摄策略进行拍摄,能够找出多张场景图像中表现较差的场景图像,依据该场景图像及其对应拍摄场景提炼问题,开发人员根据存在的问题,对该目标拍摄策略进行调整,以改善电子设备的目标拍摄策略,保证电子设备可以在任何拍摄场景下均可以有较好的拍摄效果。In the embodiment of this application, the user can customize the device strategy that he wants to test by inputting the preset dimension information to the electronic device. The electronic device can determine the target shooting strategy based on the preset dimension information, and use the target shooting strategy to map the picture card. Combine the images for shooting. By shooting based on the same target shooting strategy in different scenes, it is possible to find scene images with poor performance among multiple scene images. Based on the scene images and their corresponding shooting scenes, the developers can refine the problems for the target based on the existing problems. The shooting strategy is adjusted to improve the target shooting strategy of the electronic device to ensure that the electronic device can achieve better shooting results in any shooting scene.

在本申请的一些实施例中,为了进一步提升图卡组合画面与目标场景的相似度,图5是本申请实施例提供的再一种场景获取方法的流程示意图,基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像可以具体包括图5所示的步骤510-步骤530。In some embodiments of the present application, in order to further improve the similarity between the picture card combination picture and the target scene, Figure 5 is a schematic flow chart of yet another scene acquisition method provided by the embodiment of the present application. The first picture is shot based on the target shooting strategy. Combining the pictures of the picture card and the picture card of the second picture card to obtain the scene image corresponding to the target scene may specifically include steps 510 to 530 shown in Figure 5 .

步骤510,根据场景特征,确定目标场景对应的光源信息。Step 510: Determine the light source information corresponding to the target scene according to the scene characteristics.

其中,光源信息可以包括以下至少一项:亮度值、色彩值、色温。The light source information may include at least one of the following: brightness value, color value, and color temperature.

步骤520,基于光源信息确定目标补光参数。Step 520: Determine target fill light parameters based on light source information.

可选地,电子设备可以直接确定光源信息对应参数为目标补光参数,或者,电子设备可以对光源信息中的参数进行调整,例如增加预设值,得到目标补光参数。Alternatively, the electronic device can directly determine the parameters corresponding to the light source information as the target fill light parameters, or the electronic device can adjust the parameters in the light source information, such as increasing a preset value, to obtain the target fill light parameters.

步骤530,基于目标补光参数对图卡组合画面进行补光,并基于目标拍摄策略拍摄补光后的图卡组合画面,得到目标场景对应的场景图像。Step 530: Fill the picture card combination picture based on the target fill light parameter, and shoot the picture card combination picture after the fill light based on the target shooting strategy to obtain a scene image corresponding to the target scene.

具体地,电子设备可以与光源系统连接,因此电子设备可以控制光源系统基于目标补光参数对图卡组合画面进行补光,以使图卡组合画面与目标场景对应的光源接近,保证图卡组合画面与目标场景的亮度、色温相似。Specifically, the electronic device can be connected to the light source system, so the electronic device can control the light source system to fill the picture card combination picture based on the target fill light parameter, so that the picture card combination picture is close to the light source corresponding to the target scene, ensuring that the picture card combination picture is close to the light source corresponding to the target scene. The brightness and color temperature of the picture and the target scene are similar.

示例性地,光源系统可以对应多种色温、色彩不同的光源,例如D75、D65、D50、CWF、TL84、A、H光等,每种光源的亮度值可以调节,以满足对图卡组合画面的补光需求。For example, the light source system can correspond to a variety of light sources with different color temperatures and colors, such as D75, D65, D50, CWF, TL84, A, H light, etc. The brightness value of each light source can be adjusted to meet the needs of the picture card combination. needs for supplementary light.

在本申请实施例中,由于拍照时周围光线的亮度、色温不同,也会对拍照效果产生影响,因此为了保证最终拍摄得到的场景图像与直接对目标场景拍摄得到的图像一致,电子设备可以基于目标场景的光源信息确定目标补光参数,通过该目标补光参数对图卡组合画面进行补光,能够使图卡组合画面与目标场景对应的光源接近,保证图卡组合画面与目标场景的亮度、色温相似,提升图卡组合画面与目标场景的相似度,进而提升拍摄得到的场景图像与直接对目标场景拍摄得到的图像的相似度。In the embodiment of the present application, since the brightness and color temperature of the surrounding light are different when taking pictures, they will also have an impact on the taking effect. Therefore, in order to ensure that the final scene image captured is consistent with the image obtained directly from the target scene, the electronic device can be based on The light source information of the target scene determines the target fill light parameters, and uses the target fill light parameters to fill in the picture card combination picture, which can make the picture card combination picture and the light source corresponding to the target scene close to each other, ensuring the brightness of the picture card combination picture and the target scene , the color temperature is similar, which improves the similarity between the picture card combination picture and the target scene, thereby improving the similarity between the captured scene image and the image captured directly on the target scene.

在本申请的另一些实施例中,在基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像之后,该方法还可以具体包括:获取场景图像对应的目标拍摄参数,目标拍摄参数包括自动曝光参数、自动白平衡参数中的至少一项;基于目标拍摄参数和预设拍摄参数,调整目标拍摄策略。In other embodiments of the present application, after photographing the picture card combination picture of the first picture card and the second picture card based on the target shooting strategy to obtain the scene image corresponding to the target scene, the method may also specifically include: obtaining the scene image Corresponding target shooting parameters, the target shooting parameters include at least one of an automatic exposure parameter and an automatic white balance parameter; adjust the target shooting strategy based on the target shooting parameters and the preset shooting parameters.

其中,预设拍摄参数可以为理想效果下的拍摄参数,目标拍摄参数与预设拍摄参数相对应。The preset shooting parameters may be shooting parameters under ideal effects, and the target shooting parameters correspond to the preset shooting parameters.

示例性地,在目标拍摄参数为场景图像对应的自动曝光参数的情况下,预设拍摄参数可以为理想效果下的自动曝光参数,目标拍摄策略可以为电子设备对应的自动曝光策略,通过比较两个自动曝光参数,可以对电子设备对应的自动曝光策略进行优化调整,以改善电子设备的拍照效果。For example, when the target shooting parameters are the automatic exposure parameters corresponding to the scene image, the preset shooting parameters can be the automatic exposure parameters under the ideal effect, and the target shooting strategy can be the automatic exposure strategy corresponding to the electronic device. By comparing the two An automatic exposure parameter can optimize and adjust the automatic exposure strategy corresponding to the electronic device to improve the photography effect of the electronic device.

在本申请实施例中,在基于目标拍摄策略拍摄得到场景图像之后,通过比较该场景图像对应的目标拍摄参数和预设拍摄参数,可以提炼场景图像中存在的问题,从而对目标拍摄策略存在的问题进行解决,优化目标拍摄策略,改善电子设备的拍照效果。In the embodiment of the present application, after the scene image is captured based on the target shooting strategy, by comparing the target shooting parameters corresponding to the scene image and the preset shooting parameters, the problems existing in the scene image can be refined, thereby solving the problems existing in the target shooting strategy. Solve problems, optimize target shooting strategies, and improve the photography effects of electronic devices.

需要说明的是,本申请实施例提供的场景获取方法,执行主体可以为场景获取装置,或者该场景获取装置中的用于执行场景获取的方法的控制模块。本申请实施例中以场景获取装置执行场景获取方法为例,说明本申请实施例提供的场景获取装置。下面对场景获取装置进行详细介绍。It should be noted that, for the scene acquisition method provided by the embodiment of the present application, the execution subject may be a scene acquisition device, or a control module in the scene acquisition device for executing the scene acquisition method. In the embodiment of the present application, the scene acquisition device executing the scene acquisition method is used as an example to illustrate the scene acquisition device provided by the embodiment of the present application. The scene acquisition device is introduced in detail below.

图6是本申请提供的一种场景获取装置的结构示意图。Figure 6 is a schematic structural diagram of a scene acquisition device provided by this application.

如图6所示,本申请实施例提供一种场景获取装置600,该场景获取装置600包括:获取模块610、场景模块620。As shown in Figure 6, this embodiment of the present application provides a scene acquisition device 600. The scene acquisition device 600 includes: an acquisition module 610 and a scene module 620.

其中,获取模块610,用于获取目标场景对应的场景特征,其中,场景特征包括目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征;获取模块610,还用于获取与主体特征关联的第一图卡,以及与背景特征关联的第二图卡;场景模块620,用于基于目标对象与背景部分的位置关系,对第一图卡和第二图卡进行组合,得到目标场景对应的图卡组合画面。Among them, the acquisition module 610 is used to acquire the scene features corresponding to the target scene, where the scene features include the subject features corresponding to the target object in the target scene, and the background features corresponding to the background part; the acquisition module 610 is also used to obtain the subject features corresponding to the target scene. The associated first picture card, and the second picture card associated with the background features; the scene module 620 is used to combine the first picture card and the second picture card based on the positional relationship between the target object and the background part to obtain the target scene The corresponding picture card combination screen.

本申请实施例提供的场景获取装置,可以获取目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征,并通过主体特征获取到第一图卡,通过背景特征获取到第二图卡。由于第一图卡、第二图卡分别与目标场景中的目标对象、背景部分相对应,因此基于目标对象与背景部分的位置关系组合第一图卡和第二图卡,能够模拟出该目标场景,从而得到该目标场景的模拟场景,即图卡组合画面。基于此,测试人员无需去到真实的目标场景进行拍摄,而是通过拍摄第一图卡和第二图卡和图卡组合画面,即可完成设备测试,无需进行实景拍摄,有效节省时间和人力,降低设备测试成本。The scene acquisition device provided by the embodiment of the present application can acquire the subject characteristics corresponding to the target object in the target scene and the background characteristics corresponding to the background part, and obtain the first picture card through the subject characteristics, and obtain the second picture card through the background characteristics. . Since the first picture card and the second picture card respectively correspond to the target object and the background part in the target scene, the target can be simulated by combining the first picture card and the second picture card based on the positional relationship between the target object and the background part. scene, thereby obtaining the simulation scene of the target scene, that is, the picture card combination screen. Based on this, testers do not need to go to the real target scene to shoot. Instead, they can complete the equipment test by shooting the first picture card and the second picture card and the picture card combination. There is no need for real-life shooting, which effectively saves time and manpower. , reduce equipment testing costs.

在本申请的一些实施例中,该装置还包括:接收模块,用于在获取目标场景对应的场景特征之前,接收用户输入的预设维度信息;确定模块,用于根据预设维度信息确定场景特征包括的内容。In some embodiments of the present application, the device further includes: a receiving module, used to receive the preset dimension information input by the user before obtaining the scene characteristics corresponding to the target scene; and a determining module, used to determine the scene according to the preset dimension information. What the features include.

在本申请的一些实施例中,场景特征包括的内容包括以下至少一项:灰度值、亮度、动态范围、反射率、对比度、颜色、色彩饱和度。In some embodiments of the present application, the scene characteristics include at least one of the following: gray value, brightness, dynamic range, reflectivity, contrast, color, and color saturation.

在本申请的一些实施例中,获取模块610包括:获取单元,用于获取第一图像;识别单元,用于基于预设识别算法对第一图像进行识别,确定第一图像中的目标对象和背景部分,并获取目标对象对应的主体特征,以及背景部分对应的背景特征。In some embodiments of the present application, the acquisition module 610 includes: an acquisition unit, used to acquire the first image; a recognition unit, used to recognize the first image based on a preset recognition algorithm, determine the target object in the first image and The background part, and obtains the subject features corresponding to the target object and the background features corresponding to the background part.

在本申请的一些实施例中,获取模块610具体用于:接收用户输入的目标场景对应的场景特征。In some embodiments of the present application, the acquisition module 610 is specifically configured to: receive scene features corresponding to the target scene input by the user.

在本申请的一些实施例中,该装置与抓取部件连接,背景特征包括至少两个特征参数值,与背景特征关联的第二图卡包括至少两张,至少两张第二图卡对应的特征参数值不同,场景模块具体用于:确定背景部分中每个子区域占背景部分的比例,其中,背景部分中的子区域基于特征参数值划分;控制抓取部件抓取第一图卡和第二图卡,并根据位置关系放置第一图卡和第二图卡中的至少一者,以及根据比例放置至少两张第二图卡,得到图卡组合画面。In some embodiments of the present application, the device is connected to the grabbing component, the background feature includes at least two feature parameter values, the second picture card associated with the background feature includes at least two, and the at least two second picture cards correspond to The characteristic parameter values are different, and the scene module is specifically used to: determine the proportion of each sub-region in the background part to the background part, where the sub-regions in the background part are divided based on the characteristic parameter values; control the grabbing component to grab the first picture card and the second picture card Two picture cards are placed, and at least one of the first picture card and the second picture card is placed according to the positional relationship, and at least two second picture cards are placed according to the proportion to obtain a picture card combination picture.

在本申请的一些实施例中,该装置还包括:接收模块,用于接收用户输入的预设维度信息;确定模块,用于根据预设维度信息确定目标拍摄策略;拍摄模块,用于基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像。In some embodiments of the present application, the device further includes: a receiving module for receiving preset dimension information input by the user; a determining module for determining a target shooting strategy based on the preset dimension information; and a shooting module for based on the target The shooting strategy is to shoot the picture card combination picture of the first picture card and the second picture card to obtain the scene image corresponding to the target scene.

在本申请的一些实施例中,拍摄模块包括:确定单元,用于根据场景特征,确定目标场景对应的光源信息;确定单元,还用于基于光源信息确定目标补光参数;拍摄单元,用于基于目标补光参数对图卡组合画面进行补光,并基于目标拍摄策略拍摄补光后的图卡组合画面,得到目标场景对应的场景图像。In some embodiments of the present application, the shooting module includes: a determining unit, used to determine the light source information corresponding to the target scene according to the scene characteristics; a determining unit, also used to determine the target fill light parameters based on the light source information; a shooting unit, used to Fill in the picture card combination picture based on the target fill light parameters, and shoot the picture card combination picture after the fill light based on the target shooting strategy to obtain the scene image corresponding to the target scene.

在本申请的一些实施例中,该装置还包括:获取模块610,用于在基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像之后,获取场景图像对应的目标拍摄参数,目标拍摄参数包括自动曝光参数、自动白平衡参数中的至少一项;调整模块,用于基于目标拍摄参数和预设拍摄参数,调整目标拍摄策略。In some embodiments of the present application, the device further includes: an acquisition module 610, configured to capture the picture card combination picture of the first picture card and the second picture card based on the target shooting strategy to obtain the scene image corresponding to the target scene, Obtain target shooting parameters corresponding to the scene image, and the target shooting parameters include at least one of automatic exposure parameters and automatic white balance parameters; an adjustment module is used to adjust the target shooting strategy based on the target shooting parameters and preset shooting parameters.

本申请实施例提供的场景获取装置能够实现图1-图5的方法实施例中电子设备所实现的各个过程,为避免重复,这里不再赘述。The scene acquisition device provided by the embodiment of the present application can implement each process implemented by the electronic device in the method embodiments of Figures 1 to 5. To avoid duplication, details will not be described here.

本申请实施例中的场景获取装置可以是电子设备,也可以是电子设备中的部件、集成电路、或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The scene acquisition device in the embodiment of the present application may be an electronic device, or may be a component, integrated circuit, or chip in the electronic device. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR) Devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., can also be servers, network attached storage (Network Attached Storage, NAS) , personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例中的场景获取装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The scene acquisition device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

可选地,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述场景获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 7, this embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instructions stored on the memory 702 and executable on the processor 701. The program Or when the instruction is executed by the processor 701, each process of the above scene acquisition method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.

需要注意的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图8为本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、以及处理器810等部件。The electronic device 800 includes but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, processor 810, etc. part.

本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 810 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,处理器810,用于获取目标场景对应的场景特征,其中,场景特征包括目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征;处理器810,还用于获取与主体特征关联的第一图卡,以及与背景特征关联的第二图卡;处理器810,用于基于目标对象与背景部分的位置关系,对第一图卡和第二图卡进行组合,得到目标场景对应的图卡组合画面。Among them, the processor 810 is used to obtain the scene features corresponding to the target scene, where the scene features include the subject features corresponding to the target object in the target scene, and the background features corresponding to the background part; the processor 810 is also used to obtain the subject features corresponding to the target scene. The associated first picture card, and the second picture card associated with the background features; the processor 810 is used to combine the first picture card and the second picture card based on the positional relationship between the target object and the background part to obtain the target scene The corresponding picture card combination screen.

在本申请实施例中,可以获取目标场景中目标对象对应的主体特征,以及背景部分对应的背景特征,并通过主体特征获取到第一图卡,通过背景特征获取到第二图卡。由于第一图卡、第二图卡分别与目标场景中的目标对象、背景部分相对应,因此基于目标对象与背景部分的位置关系组合第一图卡和第二图卡,能够模拟出该目标场景,从而得到该目标场景的模拟场景,即图卡组合画面。基于此,测试人员无需去到真实的目标场景进行拍摄,而是通过拍摄第一图卡和第二图卡和图卡组合画面,即可完成设备测试,无需进行实景拍摄,有效节省时间和人力,降低设备测试成本。In the embodiment of the present application, the subject characteristics corresponding to the target object in the target scene and the background characteristics corresponding to the background part can be obtained, and the first picture card is obtained through the subject characteristics, and the second picture card is obtained through the background characteristics. Since the first picture card and the second picture card respectively correspond to the target object and the background part in the target scene, the target can be simulated by combining the first picture card and the second picture card based on the positional relationship between the target object and the background part. scene, thereby obtaining the simulation scene of the target scene, that is, the picture card combination screen. Based on this, testers do not need to go to the real target scene to shoot. Instead, they can complete the equipment test by shooting the first picture card and the second picture card and the picture card combination. There is no need for real-life shooting, which effectively saves time and manpower. , reduce equipment testing costs.

在本申请的一些实施例中,用户输入单元807,用于在获取目标场景对应的场景特征之前,接收用户输入的预设维度信息;处理器810,用于根据预设维度信息确定场景特征包括的内容。In some embodiments of the present application, the user input unit 807 is used to receive preset dimension information input by the user before obtaining the scene characteristics corresponding to the target scene; the processor 810 is used to determine the scene characteristics according to the preset dimension information, including: Content.

在本申请的一些实施例中,场景特征包括的内容包括以下至少一项:灰度值、亮度、动态范围、反射率、对比度、颜色、色彩饱和度。In some embodiments of the present application, the scene characteristics include at least one of the following: gray value, brightness, dynamic range, reflectivity, contrast, color, and color saturation.

在本申请的一些实施例中,处理器810具体用于:获取第一图像;基于预设识别算法对第一图像进行识别,确定第一图像中的目标对象和背景部分,并获取目标对象对应的主体特征,以及背景部分对应的背景特征。In some embodiments of the present application, the processor 810 is specifically configured to: obtain the first image; identify the first image based on a preset recognition algorithm, determine the target object and the background part in the first image, and obtain the target object corresponding The main body characteristics, and the background characteristics corresponding to the background part.

在本申请的一些实施例中,处理器810具体用于:接收用户输入的目标场景对应的场景特征。In some embodiments of the present application, the processor 810 is specifically configured to: receive scene features corresponding to the target scene input by the user.

在本申请的一些实施例中,该电子设备与抓取部件连接,背景特征包括至少两个特征参数值,与背景特征关联的第二图卡包括至少两张,至少两张第二图卡对应的特征参数值不同,处理器810具体用于:确定背景部分中每个子区域占背景部分的比例,其中,背景部分中的子区域基于特征参数值划分;控制抓取部件抓取第一图卡和第二图卡,并根据位置关系放置第一图卡和第二图卡中的至少一者,以及根据比例放置至少两张第二图卡,得到图卡组合画面。In some embodiments of the present application, the electronic device is connected to the grabbing component, the background feature includes at least two feature parameter values, the second picture card associated with the background feature includes at least two, and the at least two second picture cards correspond to The characteristic parameter values are different, and the processor 810 is specifically used to: determine the proportion of each sub-region in the background part to the background part, where the sub-regions in the background part are divided based on the characteristic parameter values; control the grabbing component to grab the first picture card and the second picture card, and place at least one of the first picture card and the second picture card according to the positional relationship, and place at least two second picture cards according to the proportion, to obtain a picture card combination picture.

在本申请的一些实施例中,用户输入单元807,用于接收用户输入的预设维度信息;处理器810,用于根据预设维度信息确定目标拍摄策略;处理器810,用于基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像。In some embodiments of the present application, the user input unit 807 is used to receive preset dimension information input by the user; the processor 810 is used to determine the target shooting strategy based on the preset dimension information; the processor 810 is used to shoot based on the target Strategically shoot the picture card combination of the first picture card and the second picture card to obtain the scene image corresponding to the target scene.

在本申请的一些实施例中,处理器810具体用于:根据场景特征,确定目标场景对应的光源信息;基于光源信息确定目标补光参数;基于目标补光参数对图卡组合画面进行补光,并基于目标拍摄策略拍摄补光后的图卡组合画面,得到目标场景对应的场景图像。In some embodiments of the present application, the processor 810 is specifically configured to: determine the light source information corresponding to the target scene according to the scene characteristics; determine the target fill light parameters based on the light source information; and perform fill light on the picture card combination picture based on the target fill light parameters. , and based on the target shooting strategy, shoot the picture card combination picture after fill-in light to obtain the scene image corresponding to the target scene.

在本申请的一些实施例中,处理器810,用于在基于目标拍摄策略拍摄第一图卡和第二图卡的图卡组合画面,得到目标场景对应的场景图像之后,获取场景图像对应的目标拍摄参数,目标拍摄参数包括自动曝光参数、自动白平衡参数中的至少一项;处理器810,用于基于目标拍摄参数和预设拍摄参数,调整目标拍摄策略。In some embodiments of the present application, the processor 810 is configured to obtain the scene image corresponding to the scene image after shooting the picture card combination picture of the first picture card and the second picture card based on the target shooting strategy to obtain the scene image corresponding to the target scene. Target shooting parameters include at least one of automatic exposure parameters and automatic white balance parameters; the processor 810 is used to adjust the target shooting strategy based on the target shooting parameters and preset shooting parameters.

应理解的是,本申请实施例中,输入单元804可以包括图形处理器(GraphicsProcessing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072中的至少一种。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042. The graphics processor 8041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072 . Touch panel 8071, also known as touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器809可以包括易失性存储器或非易失性存储器,或者,存储器809可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器809包括但不限于这些和任意其它适合类型的存储器。Memory 809 can be used to store software programs as well as various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 809 may include volatile memory or nonvolatile memory, or memory 809 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 809 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器810可包括一个或多个处理单元;可选地,处理器810集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 810.

本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述场景获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by the processor, each process of the above scene acquisition method embodiment is implemented, and the same technology can be achieved. The effect will not be described here to avoid repetition.

其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,计算机可读存储介质的示例包括非暂态计算机可读存储介质,如计算机只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the above embodiment. Readable storage media includes computer-readable storage media. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. wait.

本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述场景获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above scene acquisition method embodiment, and can achieve the same To avoid repetition, the technical effects will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述场景获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above scene acquisition method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or device that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (11)

1. A scene acquisition method, comprising:
acquiring scene characteristics corresponding to a target scene, wherein the scene characteristics comprise main body characteristics corresponding to a target object in the target scene and background characteristics corresponding to a background part;
acquiring a first image card associated with the main body feature and a second image card associated with the background feature;
and combining the first image card and the second image card based on the position relation between the target object and the background part to obtain an image card combined picture corresponding to the target scene.
2. The method of claim 1, wherein prior to the acquiring the scene feature corresponding to the target scene, the method further comprises:
receiving preset dimension information input by a user;
and determining the content included in the scene characteristics according to the preset dimension information.
3. The method of claim 1, wherein the scene feature comprises content comprising at least one of: gray value, brightness, dynamic range, reflectivity, contrast, color saturation.
4. The method according to claim 1, wherein the obtaining the scene feature corresponding to the target scene includes:
Acquiring a first image;
and identifying the first image based on a preset identification algorithm, determining a target object and a background part in the first image, and acquiring main body characteristics corresponding to the target object and background characteristics corresponding to the background part.
5. The method according to claim 1, wherein the obtaining the scene feature corresponding to the target scene includes:
and receiving scene characteristics corresponding to the target scene input by the user.
6. The method according to claim 1, wherein the method is applied to an electronic device, the electronic device is connected with a grabbing component, the background feature includes at least two feature parameter values, the second graphics card associated with the background feature includes at least two graphics cards, feature parameter values corresponding to the at least two graphics cards are different, the combining of the first graphics card and the second graphics card based on the positional relationship between the target object and the background portion, and the obtaining of the graphics card combined picture corresponding to the target scene includes:
determining the proportion of each sub-region in the background part to the background part, wherein the sub-regions in the background part are divided based on the characteristic parameter values;
And controlling the grabbing component to grab the first image card and the second image card, placing at least one of the first image card and the second image card according to the position relation, and placing at least two second image cards according to the proportion to obtain the image card combined picture.
7. The method according to claim 1, wherein the method further comprises:
receiving preset dimension information input by a user;
determining a target shooting strategy according to the preset dimension information;
and shooting the picture card combined picture of the first picture card and the second picture card based on the target shooting strategy to obtain a scene image corresponding to the target scene.
8. The method of claim 7, wherein the capturing the combined picture of the first and second graphics cards based on the target capturing policy to obtain the scene image corresponding to the target scene comprises:
determining light source information corresponding to the target scene according to the scene characteristics;
determining a target light supplementing parameter based on the light source information;
and carrying out light filling on the image card combined picture based on the target light filling parameter, and shooting the light filled image card combined picture based on the target shooting strategy to obtain a scene image corresponding to the target scene.
9. The method according to claim 7, wherein after the capturing of the combined pictures of the first and second graphics cards based on the target capturing policy, to obtain the scene image corresponding to the target scene, the method further comprises:
acquiring target shooting parameters corresponding to the scene image, wherein the target shooting parameters comprise at least one of automatic exposure parameters and automatic white balance parameters;
and adjusting the target shooting strategy based on the target shooting parameters and preset shooting parameters.
10. A scene acquisition device, comprising:
the acquisition module is used for acquiring scene characteristics corresponding to a target scene, wherein the scene characteristics comprise main body characteristics corresponding to a target object in the target scene and background characteristics corresponding to a background part;
the acquisition module is further used for acquiring a first image card associated with the main body feature and a second image card associated with the background feature;
and the scene module is used for combining the first image card and the second image card based on the position relation between the target object and the background part to obtain an image card combined picture corresponding to the target scene.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the scene acquisition method as claimed in any one of claims 1 to 9.
CN202210191293.0A 2022-02-28 2022-02-28 Scene acquisition method, device and electronic equipment Pending CN116721377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210191293.0A CN116721377A (en) 2022-02-28 2022-02-28 Scene acquisition method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210191293.0A CN116721377A (en) 2022-02-28 2022-02-28 Scene acquisition method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116721377A true CN116721377A (en) 2023-09-08

Family

ID=87873917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210191293.0A Pending CN116721377A (en) 2022-02-28 2022-02-28 Scene acquisition method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116721377A (en)

Similar Documents

Publication Publication Date Title
US9756261B2 (en) Method for synthesizing images and electronic device thereof
CN109166156B (en) Camera calibration image generation method, mobile terminal and storage medium
CN109656800B (en) Method and device for testing image recognition application, terminal and storage medium
CN108551552B (en) Image processing method, device, storage medium and mobile terminal
CN113989387A (en) Camera shooting parameter adjustment method, device and electronic device
CN108805799A (en) Panoramic picture synthesizer, method and computer readable storage medium
CN111353965B (en) Image restoration method, device, terminal and storage medium
CN111476271B (en) Icon identification method, device, system, computer equipment and storage medium
CN112732553B (en) Image testing method and device, electronic equipment and storage medium
CN113592753B (en) Method and device for processing image shot by industrial camera and computer equipment
CN115914616A (en) Light source point detection method, device, equipment and computer readable storage medium
CN115379200A (en) Test method and device, electronic device and readable storage medium
CN113269730B (en) Image processing method, image processing device, computer equipment and storage medium
CN116721377A (en) Scene acquisition method, device and electronic equipment
CN109658360B (en) Image processing method, apparatus, electronic device and computer storage medium
CN114782692B (en) Repair method, device, electronic device and readable storage medium for house model
CN116091392B (en) Image processing method, system and storage medium
CN117011124A (en) Gain map generation method and device, electronic equipment and medium
CN113572974B (en) Image processing method and device and electronic equipment
CN108959075B (en) Method and device for testing algorithm library, storage medium and electronic equipment
US20240176566A1 (en) Processing method and apparatus thereof
TWI820889B (en) Image processing method and device
CN113923367B (en) Shooting method and shooting device
WO2024174711A1 (en) Image processing method and terminal device
CN117793513A (en) Video processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination