CN116594900A - A method, device, equipment and storage medium for determining difference information - Google Patents

A method, device, equipment and storage medium for determining difference information Download PDF

Info

Publication number
CN116594900A
CN116594900A CN202310620799.3A CN202310620799A CN116594900A CN 116594900 A CN116594900 A CN 116594900A CN 202310620799 A CN202310620799 A CN 202310620799A CN 116594900 A CN116594900 A CN 116594900A
Authority
CN
China
Prior art keywords
image
layer
screen projection
determining
target
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
CN202310620799.3A
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.)
Shenzhen Desai Xiwei Automobile Electronics Co ltd
Original Assignee
Shenzhen Desai Xiwei Automobile Electronics 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 Shenzhen Desai Xiwei Automobile Electronics Co ltd filed Critical Shenzhen Desai Xiwei Automobile Electronics Co ltd
Priority to CN202310620799.3A priority Critical patent/CN116594900A/en
Publication of CN116594900A publication Critical patent/CN116594900A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/776Validation; Performance evaluation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for determining difference information. The method is applied to a screen projection receiving end, and comprises the following steps: acquiring screen projection data of a screen projection transmitting end, and displaying an image to be checked in the screen projection receiving end according to the screen projection data; overlapping the design original image in the screen projection receiving end and the image to be checked to obtain a target double-layer; and determining difference information between the design original image and the current display interface according to the difference between the first image layer and the second image layer. The technical scheme of the embodiment of the invention realizes the difference between the actual interface and the design original image on two layers of the same equipment, solves the problems of complex operation and inaccuracy of the traditional comparison method, greatly reduces the workload of engineers such as front-end application development and test, and improves the working efficiency.

Description

一种确定差异信息的方法、装置、设备及存储介质A method, device, equipment and storage medium for determining difference information

技术领域technical field

本发明涉及测试技术领域,尤其涉及一种确定差异信息的方法、装置、设备及存储介质。The present invention relates to the technical field of testing, in particular to a method, device, equipment and storage medium for determining difference information.

背景技术Background technique

在前端开发应用过程中特别是移动端开发过程中,产品页面设计师会提供每个页面的设计图,而前端应用开发工程要严格按照设计图中界面布局元素的样式设计开发应用。In the process of front-end development and application, especially in the process of mobile terminal development, the product page designer will provide the design drawing of each page, and the front-end application development project must strictly follow the style design and development of the interface layout elements in the design drawing.

目前,为了对比前端应用页面是否与界面设计布局页面完全一致,应用工程师或测试工程师需要对特定的页面截图或者拍照获得应用的开发效果。然后通过使用图片查看软件工具打开设计图及开发效果图进行对比,可以确定比较大的实施差异。在某些情况下,应用开发工程师和测试工程师如果想做到像素级的差异对比,会使用一些可以获取并显示图片像素点的软件去对比页面元素的布局位置和像素颜色的差异,以确定偏差情况。At present, in order to compare whether the front-end application page is completely consistent with the interface design layout page, the application engineer or test engineer needs to take a screenshot or take a photo of a specific page to obtain the application development effect. Then, by using the picture viewing software tool to open the design drawing and the development effect drawing for comparison, a relatively large implementation difference can be determined. In some cases, if application development engineers and test engineers want to achieve pixel-level difference comparison, they will use some software that can obtain and display image pixel points to compare the layout position of page elements and the difference in pixel color to determine the deviation Condition.

然而,目前这种对比方法存在效率低且不准确的缺点,增加了前端应用开发和测试等工程师的工作负担。However, the current comparison method has the disadvantages of low efficiency and inaccuracy, which increases the workload of engineers such as front-end application development and testing.

发明内容Contents of the invention

本发明提供了一种确定差异信息的方法、装置、设备及存储介质,以解决确定界面设计原图与实际开发界面之间差距的效率低的问题。The invention provides a method, device, equipment and storage medium for determining difference information to solve the problem of low efficiency in determining the gap between the original interface design drawing and the actual development interface.

第一方面,本发明提供了一种确定差异信息的方法,包括:In a first aspect, the present invention provides a method for determining difference information, including:

获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面;Obtain the screen projection data of the screen projection sending end, and display an image to be proofread in the screen projection receiving end according to the screen projection data, wherein the image to be proofreading includes the current display interface of the screen projection sending end;

对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层;The original design image in the screen projection receiving end and the image to be proofread are superimposed to obtain a target double layer, wherein the target double layer includes the first layer corresponding to the image to be proofread and Design the second layer corresponding to the original drawing;

根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。According to the difference between the first layer and the second layer, the difference information between the original design drawing and the current display interface is determined.

第二方面,本发明提供了一种确定差异信息的装置,包括:In a second aspect, the present invention provides a device for determining difference information, including:

图像显示模块,用于获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面;An image display module, configured to obtain the screen projection data of the screen projection sending end, and display an image to be proofread in the screen projection receiving end according to the screen projection data, wherein the image to be proofreading includes the current display of the screen projection sending end interface;

双图层确定模块,用于对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层;A double-layer determination module, configured to superimpose the original design image in the screen projection receiving end and the image to be proofread to obtain a target double-layer, wherein the target double-layer includes the image to be proofread The first layer corresponding to the image and the second layer corresponding to the original design image;

差异信息确定模块,用于根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。The difference information determination module is configured to determine the difference information between the original design drawing and the current display interface according to the difference between the first layer and the second layer.

第三方面,本发明提供了一种电子设备,该电子设备包括:In a third aspect, the present invention provides an electronic device, which includes:

至少一个处理器;at least one processor;

以及与至少一个处理器通信连接的存储器;and a memory communicatively connected to at least one processor;

其中,存储器存储有可被至少一个处理器执行的计算机程序,该计算机程序被至少一个处理器执行,以使至少一个处理器能够执行上述第一方面的确定差异信息的方法。Wherein, the memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor, so that at least one processor can execute the method for determining difference information in the first aspect above.

第四方面,本发明提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机指令,计算机指令用于使处理器执行时实现上述第一方面的确定差异信息的方法。In a fourth aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining difference information in the first aspect above when executed.

本发明提供的确定差异信息的方案,获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面,对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层,根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。通过采用上述技术方案,通过将待校对图像投屏至投屏接收端中,并在投屏接收端中将待校对图像和设计原图进行叠放,实现了在同一设备的两个图层上对比实际界面和设计原图之间的差距,解决了传统对比方法的操作繁琐和不准确问题,大大减轻了前端应用开发和测试等工程师的工作负担,提高了工作效率。The solution for determining the difference information provided by the present invention is to obtain the screen projection data of the screen projection sending end, and display an image to be corrected on the screen projection receiving end according to the projection screen data, wherein the image to be corrected includes the projection screen The current display interface of the sending end performs overlay processing on the original design image in the screen projection receiving end and the image to be proofread to obtain a target double layer, wherein the target double layer includes the image corresponding to the image to be proofread The first layer of the first layer and the second layer corresponding to the original design image, and according to the gap between the first layer and the second layer, determine the difference information between the original design image and the current display interface . By adopting the above technical scheme, by projecting the image to be proofread to the screen projection receiving end, and superimposing the image to be proofread and the original design drawing on the screen projection receiving end, the two layers of the same device are realized. Comparing the gap between the actual interface and the original design drawing solves the cumbersome and inaccurate problems of traditional comparison methods, greatly reduces the workload of front-end application development and testing engineers, and improves work efficiency.

应当理解,本部分所描述的内容并非旨在标识本发明的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will be easily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是根据本发明实施例一提供的一种确定差异信息的方法的流程图;FIG. 1 is a flowchart of a method for determining difference information according to Embodiment 1 of the present invention;

图2是根据本发明实施例二提供的一种确定差异信息的方法的流程图;FIG. 2 is a flow chart of a method for determining difference information according to Embodiment 2 of the present invention;

图3是根据本发明实施例二提供的一种投屏接收端显示画面的示意图;Fig. 3 is a schematic diagram of a display screen of a projection receiving end provided according to Embodiment 2 of the present invention;

图4是根据本发明实施例三提供的一种确定差异信息的装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for determining difference information provided according to Embodiment 3 of the present invention;

图5是根据本发明实施例四提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。在本发明的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. In the description of the present invention, unless otherwise specified, "a plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

实施例一Embodiment one

图1为本发明实施例一提供了一种确定差异信息的方法的流程图,本实施例可适用于确定界面设计原图与实际开发界面的差异信息的情况,该方法可以由确定差异信息的装置来执行,该确定差异信息的装置可以采用硬件和/或软件的形式实现,该确定差异信息的装置可配置于电子设备中,该电子设备可以理解为投屏接收端,该电子设备是两个或多个物理实体构成,也可以是一个物理实体构成。Fig. 1 provides a flow chart of a method for determining difference information in Embodiment 1 of the present invention. This embodiment is applicable to the situation of determining the difference information between the original interface design drawing and the actual development interface. The method can be determined by determining the difference information The device for determining the difference information can be implemented in the form of hardware and/or software, and the device for determining the difference information can be configured in an electronic device, which can be understood as a projection receiving end, and the electronic device is two One or more physical entities, or one physical entity.

如图1所示,该本发明实施例一提供的一种确定差异信息的方法,具体包括如下步骤:As shown in FIG. 1, a method for determining difference information provided by Embodiment 1 of the present invention specifically includes the following steps:

S101、获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面。S101. Acquire screen projection data from a screen projection sender, and display an image to be corrected on the screen projection receiver according to the screen projection data, wherein the image to be corrected includes a current display interface of the screen projection sender.

在本实施例中,投屏接收端在获取到投屏数据后,可直接根据该投屏数据绘制出图像并对将其显示出来,该图像即为待校对图像。待校对图像可以是投屏发送端的当前显示界面,通过对投屏发送端进行操作,如切换当前显示界面等操作,可以实现对待校对图像的改变。其中,投屏接收端可以为计算机等电子设备,投屏发送端可以为车机等电子设备,投屏接收端和投屏发送端的系统可以不同,如投屏发送端可以为安卓系统,投屏接收端可以为Windows系统。In this embodiment, after acquiring the screen projection data, the screen projection receiving end can directly draw and display an image according to the screen projection data, and the image is the image to be proofread. The image to be proofread can be the current display interface of the screen projection sender, and the image to be proofread can be changed by operating the screen projection sender, such as switching the current display interface. Wherein, the screen projection receiving end can be electronic equipment such as a computer, and the screen projection sending end can be electronic equipment such as a car machine, and the systems of the screen projection receiving end and the screen projection sending end can be different. The receiving end can be a Windows system.

S102、对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层。S102. Perform overlay processing on the original design image in the screen projection receiving end and the image to be proofread to obtain a target double layer, wherein the target double layer includes the first image corresponding to the image to be proofread layer and the second layer corresponding to the original design drawing.

在本实施例中,可以预先在投屏接收端内存储设计原图,然后将待校对图像对应的第一图层和设计原图对应的第二图层叠放,叠放顺序不作限制。其中,第一图层和第二图层的透明度在此不作限制,该透明度可由用户通过对投屏接收端的操作来进行调节,如,通过滑动投屏接收端的设定区域滑块,来实现对第一图层和第二图层的透明度的调整。In this embodiment, the original design image can be stored in the screen projection receiving end in advance, and then the first layer corresponding to the image to be proofread and the second layer corresponding to the original design image are stacked, and the stacking order is not limited. Among them, the transparency of the first layer and the second layer is not limited here, and the transparency can be adjusted by the user through the operation of the screen projection receiving end, for example, by sliding the setting area slider of the screen projection receiving end to realize the Adjustment of the transparency of the first layer and the second layer.

S103、根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。S103. Determine difference information between the original design drawing and the current display interface according to the difference between the first layer and the second layer.

在本实施例中,由于第一图层和第二图层处于叠放状态,故可在投屏接收端对比第一图层和第二图层的差距,来确定设计原图与投屏发送端的当前显示界面之间的差异信息。如,通过切换第一图层和第二图层的叠放顺序和改变二者的透明度,来分别确定二者的颜色信息和位置信息等,再通过比对二者的信息之间的差距,即可得到差异信息。In this embodiment, since the first layer and the second layer are in a superimposed state, the difference between the first layer and the second layer can be compared at the receiving end of the screen projection to determine the original design and the screen projection. The difference information between the current display interface of the terminal. For example, by switching the stacking order of the first layer and the second layer and changing the transparency of the two, the color information and position information of the two are respectively determined, and then by comparing the gap between the two information, The difference information can be obtained.

本发明实施例提供的确定差异信息的方法,获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面,对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层,根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。本发明实施例技术方案,通过将待校对图像投屏至投屏接收端中,并在投屏接收端中将待校对图像和设计原图进行叠放,实现了在同一设备的两个图层上对比实际界面和设计原图之间的差距,解决了传统对比方法的操作繁琐和不准确问题,大大减轻了前端应用开发和测试等工程师的工作负担,提高了工作效率。The method for determining the difference information provided by the embodiment of the present invention is to obtain the screen projection data of the screen projection sending end, and display an image to be proofread on the screen projection receiving end according to the screen projection data, wherein the image to be proofread includes the The current display interface of the screen projection sending end performs superimposition processing on the original design image in the screen projection receiving end and the image to be proofread to obtain a target double layer, wherein the target double layer includes the image to be proofread The first layer corresponding to the image and the second layer corresponding to the original design image, according to the gap between the first layer and the second layer, determine the distance between the original design image and the current display interface diff information. The technical solution of the embodiment of the present invention realizes two layers on the same device by projecting the image to be proofread to the screen projection receiving end, and superimposing the image to be proofread and the original design drawing on the screen projection receiving end By comparing the gap between the actual interface and the original design image, it solves the cumbersome and inaccurate problems of the traditional comparison method, greatly reduces the workload of front-end application development and testing engineers, and improves work efficiency.

实施例二Embodiment two

图2为本发明实施例二提供的一种确定差异信息的方法的流程图,本发明实施例的技术方案在上述各可选技术方案的基础上进一步优化,给出了确定界面设计原图与实际开发界面的差异信息的具体方式。Fig. 2 is a flowchart of a method for determining difference information provided by Embodiment 2 of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, and the original diagram of the interface design and The specific way to actually develop the difference information of the interface.

可选的,所述对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,包括:接收图像拖动操作,并根据所述图像拖动操作确定是否将所述设计原图与所述待校对图像进行叠放处理,其中,所述图像拖动操作为对所述设计原图的拖动操作;若是,则将所述设计原图对应的第二图层叠放至所述待校对图像对应的第一图层之上,得到目标双图层。这样设置的好处在于,用户通过简单的图像拖动操作,就可将设计原图拖拽至待校对图像处,实现了在同一设备上同时显示设计原图和待校对图像。Optionally, the superimposition processing of the original design image in the screen projection receiving end and the image to be proofread to obtain the target double layer includes: receiving an image dragging operation, and dragging according to the image The operation determines whether to overlay the original design image and the image to be proofread, wherein the image dragging operation is a drag operation on the original design image; if so, the original design image is correspondingly The second layer of is superimposed on the first layer corresponding to the image to be proofread to obtain the target double layer. The advantage of this setting is that the user can drag the original design image to the image to be proofread through a simple image dragging operation, realizing the simultaneous display of the original design image and the image to be proofread on the same device.

可选的,所述根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息,包括:接收图层透明度调整操作,根据所述图层透明度调整操作调整所述第一图层和/或所述第二图层的透明度,得到目标第一图层和目标第二图层;根据所述目标第一图层和所述目标第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。这样设置的好处在于,用户可以根据需要,通过图层透明度调整操作调节出设计原图与当前显示界面的最佳视觉对比效果,提高了工作效率。Optionally, the determining the difference information between the original design image and the current display interface according to the difference between the first layer and the second layer includes: receiving a layer transparency adjustment operation, Adjust the transparency of the first layer and/or the second layer according to the layer transparency adjustment operation to obtain the target first layer and the target second layer; according to the target first layer and the target layer The gap between the target second layer and the difference information between the original design drawing and the current display interface are determined. The advantage of this setting is that the user can adjust the best visual contrast effect between the original design image and the current display interface through the layer transparency adjustment operation according to the needs, which improves the work efficiency.

可选的,在所述获取投屏发送端的投屏数据之前,还包括:建立投屏发送端和投屏接收端的通讯连接,并基于所述通讯连接,将所述投屏接收端中的安装文件通过调试桥推送至所述投屏发送端中,其中,所述安装文件为所述投屏发送端中第一投屏程序的安装文件;其中,所述获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,包括:利用所述投屏接收端中的第二投屏程序,确定所述投屏接收端中的数据接收端口,其中,所述投屏发送端的数据发送端口基于所述安装文件确定;利用所述数据接收端口接收所述投屏发送端的当前显示界面对应的视频流,并对所述视频流进行解码,根据解码结果显示待校对图像。这样设置的好处在于,通过预先建立的通讯连接,可以实现对投屏发送端中投屏程序的安装,以及实现投屏发送端对视频流的发送,再通过投屏接收端对视频的解码,即可实现对投屏发送端的当前显示界面的投屏。Optionally, before the acquisition of the screen projection data of the screen projection sender, it also includes: establishing a communication connection between the screen projection sender and the screen projection receiver, and based on the communication connection, installing The file is pushed to the screen projection sending end through the debugging bridge, wherein the installation file is the installation file of the first screen projection program in the screen projection sending end; wherein, the acquisition of the screen projection data of the screen projection sending end, Displaying the image to be proofread in the screen projection receiving end according to the screen projection data includes: using a second screen projection program in the screen projection receiving end to determine a data receiving port in the screen projection receiving end, wherein , the data sending port of the screen projection sending end is determined based on the installation file; use the data receiving port to receive the video stream corresponding to the current display interface of the screen projection sending end, and decode the video stream, according to the decoding result Display the image to be proofread. The advantage of this setting is that through the pre-established communication connection, the installation of the screen projection program in the screen projection sender can be realized, and the transmission of the video stream by the screen projection sender can be realized, and then the video can be decoded by the screen projection receiver. The screen projection of the current display interface of the screen projection sender can be realized.

如图2所示,本发明实施例二提供的一种确定差异信息的方法,具体包括如下步骤:As shown in Figure 2, a method for determining difference information provided by Embodiment 2 of the present invention specifically includes the following steps:

S201、建立投屏发送端和投屏接收端的通讯连接,并基于所述通讯连接,将所述投屏接收端中的安装文件通过调试桥推送至所述投屏发送端中。S201. Establish a communication connection between a screen projection sending end and a screen projection receiving end, and based on the communication connection, push an installation file in the screen projection receiving end to the screen projection sending end through a debugging bridge.

其中,所述安装文件为所述投屏发送端中第一投屏程序的安装文件。Wherein, the installation file is an installation file of the first screen projection program in the screen projection sending end.

示例性的,可以将screenRecorder应用作为投屏发送端中的第一投屏程序,将screenDisplay应用作为投屏接收端中应安装的投屏程序,故可以先建立投屏发送端和投屏接收端的通讯连接,然后利用投屏接收端中的Visual Studio MFC,将screenRecorder应用的安装文件通过adb(调试桥)推送到投屏发送端中。其中,screenRecorder应用可以对投屏发送端的当前显示界面的视频流进行编码,然后使用传输控制协议(TCP,TransmissionControl Protocol)将该视频流发送给screenDisplay应用,即发送给投屏接收端。Exemplarily, the screenRecorder application can be used as the first screen projection program in the screen projection sender, and the screenDisplay application can be used as the screen projection program that should be installed in the screen projection receiver, so you can first establish the screen projection sender and screen projection receiver. Communication connection, and then use Visual Studio MFC in the screen projection receiver to push the installation file of the screenRecorder application to the screen projection sender through adb (debugging bridge). Among them, the screenRecorder application can encode the video stream of the current display interface of the screen projection sender, and then use the Transmission Control Protocol (TCP, TransmissionControl Protocol) to send the video stream to the screenDisplay application, that is, to the screen projection receiver.

S202、利用所述投屏接收端中的第二投屏程序,确定所述投屏接收端中的数据接收端口。S202. Using the second screen projection program in the screen projection receiving end, determine a data receiving port in the screen projection receiving end.

其中,所述投屏发送端的数据发送端口基于所述安装文件确定。Wherein, the data sending port of the screen projection sending end is determined based on the installation file.

具体的,如上文所述,screenDisplay应用即为第二投屏程序,当第一投屏程序安装完毕并运行后,可绑定一个指定的TCP连接端口,并等待客户端(即screenDisplay应用)连接,投屏接收端中的TCP连接端口即为数据接收端口。Specifically, as mentioned above, the screenDisplay application is the second screen projection program. After the first screen projection program is installed and running, it can bind a specified TCP connection port and wait for the client (ie screenDisplay application) to connect , the TCP connection port in the screen projection receiving end is the data receiving port.

S203、利用所述数据接收端口接收所述投屏发送端的当前显示界面对应的视频流,并对所述视频流进行解码,根据解码结果显示待校对图像。S203. Use the data receiving port to receive the video stream corresponding to the current display interface of the screen projection sending end, decode the video stream, and display the image to be proofread according to the decoding result.

具体的,投屏接收端在接收到视频流后,可以利用FFmpeg等程序来对视频流中进行解码,根据解码后得到的信息,如图像尺寸和颜色等,来对视频流进行绘制,从而得到待校对图像,并对其进行显示。图3为一种投屏接收端显示画面的示意图,如图3所示,图3中1号区域为screenDisplay应用的主体窗口,2号区域为待校对图像显示区,8号区域为关闭应用按键。Specifically, after receiving the video stream, the receiving end of the projection screen can use programs such as FFmpeg to decode the video stream, and draw the video stream according to the information obtained after decoding, such as image size and color, so as to obtain The image to be proofread and displayed. Figure 3 is a schematic diagram of the display screen of a projection receiving end, as shown in Figure 3, the No. 1 area in Figure 3 is the main window of the screenDisplay application, the No. 2 area is the image display area to be proofread, and the No. 8 area is the button to close the application .

可选的,所述根据解码结果显示待校对图像,包括:将解码结果对应的视频图像帧转换为点阵图,并确定所述点阵图的透明度;根据所述点阵图和所述点阵图的透明度绘制投屏图像,以显示待校对图像。这样设置的好处在于,通过将视频图像帧转换为点阵图,可以在保证图像质量的同时,降低图像占用的内存。Optionally, the displaying the image to be corrected according to the decoding result includes: converting the video image frame corresponding to the decoding result into a bitmap, and determining the transparency of the bitmap; according to the bitmap and the point The transparency of the array image is used to draw the projected image to display the image to be proofread. The advantage of this setting is that by converting the video image frame into a bitmap, the memory occupied by the image can be reduced while ensuring the image quality.

具体的,投屏接收端可以将解码后得到的视频帧转换Bitmap(位图,又称栅格图或点阵图),然后配置点阵图的透明度,根据该透明度绘制Bitmap到投屏接收端的显示区域,以显示待校对图像。Specifically, the receiving end of the screen projection can convert the decoded video frame into a Bitmap (bitmap, also known as a raster image or a bitmap), and then configure the transparency of the bitmap, and draw the Bitmap to the receiving end of the projection screen according to the transparency. Display area to display the image to be proofread.

S204、接收图像拖动操作,并根据图像拖动操作确定是否将设计原图与待校对图像进行叠放处理,若是,则执行步骤205,若否,则执行步骤206。S204. Receive an image dragging operation, and determine whether to overlay the original design image and the image to be proofread according to the image dragging operation, if yes, perform step 205, and if not, perform step 206.

其中,所述图像拖动操作为对所述设计原图的拖动操作。Wherein, the image dragging operation is a dragging operation on the original design image.

示例性的,可在投屏接收端添加拖拽文件的事件监听,当有文件拖动到预设投屏区域的事件发生时,则可确定需要对设计原图与待校对图像进行叠放处理。此时,需要获取该文件的绝对路径,并判断该文件的格式是否为预设图片格式,如便携式网络图形(PNG,Portable Network Graphics)等图片格式。Exemplarily, an event listener for dragging and dropping files can be added at the receiving end of the projection screen. When an event occurs that a file is dragged to the preset projection screen area, it can be determined that the original design image and the image to be proofread need to be overlaid. . At this time, it is necessary to obtain the absolute path of the file, and determine whether the format of the file is a preset picture format, such as a picture format such as Portable Network Graphics (PNG, Portable Network Graphics).

S205、将所述设计原图对应的第二图层叠放至所述待校对图像对应的第一图层之上,得到目标双图层。S205. Overlay the second layer corresponding to the original design image on the first layer corresponding to the image to be proofread to obtain a target double layer.

具体的,如上文所述,若该文件的格式是预设图片格式,则可将该文件转为与待校对图像大小一致的Bitmap图片,根据该文件的透明度绘制原图Bitmap到待校对图像上,即将第二图层叠放至第一图层之上,从而得到目标双图层。如图3所示,图3中2号区域也为图片层叠显示区,即目标双图层显示区。Specifically, as mentioned above, if the format of the file is a preset image format, the file can be converted into a Bitmap image of the same size as the image to be proofread, and the original image Bitmap can be drawn on the image to be proofread according to the transparency of the file , that is, to overlay the second layer on top of the first layer to obtain the target double layer. As shown in FIG. 3 , the area No. 2 in FIG. 3 is also an image stack display area, that is, a target double-layer display area.

可选的,上述步骤还包括:接收图层切换操作,根据所述图层切换操作确定是否改变所述第一图层和所述第二图层的叠放顺序。这样设置的好处在于,用户可以通过简单的图层切换操作,实现对当前显示画面的切换,即堆设计原图和待校对图像的切换,方便了用户的校对工作。Optionally, the above steps further include: receiving a layer switching operation, and determining whether to change the stacking order of the first layer and the second layer according to the layer switching operation. The advantage of this setting is that the user can switch the current display screen through a simple layer switching operation, that is, switch between the original design image and the image to be proofread, which facilitates the user's proofreading work.

示例性的,如图3所示,图3中5号区域为层叠顺序切换按键,即图层切换按键,可以在第二投屏程序的应用窗口中添加一个切换按键,该按键只有0和1两种状态,并添加该按键的变化事件监听,当该按键状态为0时,将待校对图像绘制到设计原图正上方,当该按键状态为1时,将设计原图绘制到待校对图像正上方。Exemplarily, as shown in Figure 3, the area No. 5 in Figure 3 is a stacking sequence switching button, that is, a layer switching button, and a switching button can be added in the application window of the second screen projection program, and the button only has 0 and 1 Two states, and add the change event monitoring of the button. When the button state is 0, the image to be proofread is drawn directly above the original design image. When the button state is 1, the original design image is drawn to the image to be proofread. Directly above.

S206、接收图层透明度调整操作,根据所述图层透明度调整操作调整所述第一图层和/或所述第二图层的透明度,得到目标第一图层和目标第二图层。S206. Receive a layer transparency adjustment operation, and adjust the transparency of the first layer and/or the second layer according to the layer transparency adjustment operation to obtain a target first layer and a target second layer.

示例性的,可以在第二投屏程序的应用窗口中添加两个滚动条,并添加这两个滚动条的变化事件监听,如图3所示,图3中6号区域为第一图层透明度调节滚动条,7号区域为第二图层透明度调节滚动条。该滚动条的调节范围为,大于或等于0且小于或等于100,滚动条的位置对应的数字即为图层的透明度,如将滚动条滚动至数字0对应的位置时,图层的透明度为0。在滚动条滚动的同时记录对应的透明度,根据该透明度调整第一图层和第二图层的透明度。其中,对于未调整透明度的图层,可在调整另一图层后,将未调整透明度的图层直接确定为目标图层,如若第一图层未调整透明度,则可在调整第二图层后,将第一图层直接确定为目标第一图层。Exemplarily, two scroll bars can be added in the application window of the second screen projection program, and the change event monitoring of these two scroll bars can be added, as shown in FIG. 3 , and the area No. 6 in FIG. 3 is the first layer Transparency adjustment scroll bar, No. 7 area is the transparency adjustment scroll bar of the second layer. The adjustment range of the scroll bar is greater than or equal to 0 and less than or equal to 100. The number corresponding to the position of the scroll bar is the transparency of the layer. For example, when the scroll bar is scrolled to the position corresponding to the number 0, the transparency of the layer is 0. The corresponding transparency is recorded while the scroll bar is scrolling, and the transparency of the first layer and the second layer is adjusted according to the transparency. Among them, for a layer whose transparency has not been adjusted, after adjusting another layer, the layer whose transparency has not been adjusted can be directly determined as the target layer. If the transparency of the first layer is not adjusted, you can adjust the second layer After that, the first layer is directly determined as the target first layer.

S207、根据所述目标第一图层和所述目标第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。S207. According to the difference between the target first layer and the target second layer, determine the difference information between the original design image and the current display interface.

可选的,所述根据所述目标第一图层和所述目标第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息,包括:接收点击位置操作,并确定所述点击位置操作在所述目标第一图层中对应的第一点击位置,以及所述点击位置操作在所述目标第二图层中对应的第二点击位置,其中,所述点击位置操作为对所述目标第一图层和所述目标第二图层中任一图层的点击操作;确定所述第一点击位置的第一零透明度颜色和所述第二点击位置的第二零透明度颜色,并根据所述第一零透明度颜色和所述第二零透明度颜色的差距,确定所述设计原图与所述当前显示界面之间的差异信息。这样设置的好处在于,用户通过简单的点击操作,即可实现对设计原图与待校对图像中可能存在差异的位置的选定,并通过确定该点击位置的零透明度颜色的差距,可以准确的确定出设计原图与当前显示界面之间的差异。Optionally, the determining the difference information between the original design image and the current display interface according to the difference between the target first layer and the target second layer includes: receiving a click position operation, And determine the first click position corresponding to the click position operation in the first layer of the target, and the second click position corresponding to the click position operation in the second target layer, wherein the click The position operation is a click operation on any one of the target first layer and the target second layer; determine the first zero transparency color of the first click position and the second zero transparency color of the second click position 20 transparency color, and according to the difference between the first zero transparency color and the second zero transparency color, determine the difference information between the original design image and the current display interface. The advantage of this setting is that the user can select the position that may have differences between the original design image and the image to be proofread through a simple click operation, and by determining the zero-transparency color gap at the clicked position, accurate Determine the difference between the original design drawing and the current display interface.

具体的,可以添加点击事件监听,如图3所示,图3中8号区域为点击位置坐标显示区,当接收到点击位置操作后,记录该点击位置操作在目标第一图层或目标第二图层中对应的点击位置。确定目标第一图层和目标第二图层间的像素对应关系,当某一目标图层在接收到点击位置操作后确定点击位置时,根据该像素对应关系可立即确定另一目标图层对应的点击位置,其中,该点击位置可以为像素点坐标位置。图3中3号区域为目标第一图层的点击位置的颜色指示区,4号区域为目标第二图层的点击位置的颜色指示区,在确定点击位置后,可以确定该点击位置对应的像素点颜色,该颜色为零透明度颜色,并记录这两个点击位置对应的透明度颜色和点击位置,并自动计算该点击位置对应的两个目标图层的透明度颜色差值,该差值即为设计原图与当前显示界面之间的差异信息。其中,可以在预设显示区域对第一零透明度颜色、第二零透明度颜色以及二者的差距进行显示,显示的方式包括显示颜色编码和/或实际颜色等。Specifically, click event monitoring can be added, as shown in Figure 3, the No. 8 area in Figure 3 is the click position coordinate display area, when the click position operation is received, record the click position operation on the first layer of the target or the first layer of the target The corresponding click position in the second layer. Determine the pixel correspondence between the target first layer and the target second layer. When a target layer determines the click position after receiving the click position operation, the corresponding pixel of the other target layer can be immediately determined according to the pixel correspondence. The click position of , where the click position may be a pixel coordinate position. In Figure 3, area No. 3 is the color indication area of the click position of the first layer of the target, and area No. 4 is the color indication area of the click position of the second layer of the target. After the click position is determined, the corresponding click position can be determined. Pixel color, which is zero transparency color, record the transparency color and click position corresponding to the two click positions, and automatically calculate the transparency color difference of the two target layers corresponding to the click position, the difference is The difference information between the original design drawing and the current display interface. Wherein, the first zero-transparency color, the second zero-transparency color and the difference between them can be displayed in the preset display area, and the display manner includes displaying color codes and/or actual colors.

可选的,目标第一图层和目标第二图层可分别接收点击位置操作,并确定该点击位置操作中的第一点击位置操作在所述目标第一图层中对应的第一点击位置,以及确定该点击位置操作中的第二及点击位置操作在所述目标第二图层中对应的第二点击位置;确定所述第一点击位置的第一零透明度颜色和所述第二点击位置的第二零透明度颜色;根据所述第一零透明度颜色和所述第二零透明度颜色的差距,以及所述第一点击位置与所述第二点击位置的差距,确定所述设计原图与所述当前显示界面之间的差异信息。Optionally, the target first layer and the target second layer may respectively receive a click position operation, and determine the first click position corresponding to the first click position operation in the target first layer in the click position operation , and determine the second click position in the click position operation and the second click position corresponding to the second click position operation in the target second layer; determine the first zero transparency color of the first click position and the second click position The second zero transparency color of the position; according to the gap between the first zero transparency color and the second zero transparency color, and the gap between the first click position and the second click position, determine the original design Difference information with the current display interface.

本发明实施例提供的确定差异信息的方法,通过预先建立的通讯连接,可以实现对投屏发送端中投屏程序的安装,以及实现投屏发送端对视频流的发送,再通过投屏接收端对视频的解码,即可实现对投屏发送端的当前显示界面的投屏,用户通过简单的图像拖动操作,就可将设计原图拖拽至待校对图像处,实现了在同一设备上同时显示设计原图和待校对图像,用户还可以根据需要,通过图层透明度调整操作调节出设计原图与当前显示界面的最佳视觉对比效果,提高了工作效率。The method for determining the difference information provided by the embodiment of the present invention can realize the installation of the screen projection program in the screen projection sender through the pre-established communication connection, and realize the transmission of the video stream by the screen projection sender, and then receive it through the screen projection The end-to-end decoding of the video can realize the projection of the current display interface of the screen projection sender. The user can drag the original design image to the image to be proofread through a simple image dragging operation, realizing the same device. Simultaneously display the original design image and the image to be proofread. Users can also adjust the layer transparency adjustment operation to adjust the best visual contrast effect between the original design image and the current display interface according to needs, which improves work efficiency.

实施例三Embodiment three

图4为本发明实施例三提供的一种确定差异信息的装置的结构示意图。如图4所示,该装置配置于投屏接收端,该装置包括:图像显示模块301、双图层确定模块302以及差异信息确定模块303,其中:FIG. 4 is a schematic structural diagram of an apparatus for determining difference information provided by Embodiment 3 of the present invention. As shown in Figure 4, the device is configured at the screen projection receiving end, and the device includes: an image display module 301, a double layer determination module 302 and a difference information determination module 303, wherein:

图像显示模块,用于获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面;An image display module, configured to obtain the screen projection data of the screen projection sending end, and display an image to be proofread in the screen projection receiving end according to the screen projection data, wherein the image to be proofreading includes the current display of the screen projection sending end interface;

双图层确定模块,用于对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层;A double-layer determination module, configured to superimpose the original design image in the screen projection receiving end and the image to be proofread to obtain a target double-layer, wherein the target double-layer includes the image to be proofread The first layer corresponding to the image and the second layer corresponding to the original design image;

差异信息确定模块,用于根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。The difference information determination module is configured to determine the difference information between the original design drawing and the current display interface according to the difference between the first layer and the second layer.

本发明实施例提供的确定差异信息的装置,通过将待校对图像投屏至投屏接收端中,并在投屏接收端中将待校对图像和设计原图进行叠放,实现了在同一设备的两个图层上对比实际界面和设计原图之间的差距,解决了传统对比方法的操作繁琐和不准确问题,大大减轻了前端应用开发和测试等工程师的工作负担,提高了工作效率。The device for determining the difference information provided by the embodiment of the present invention realizes the realization of the same device by projecting the image to be proofread to the screen projection receiving end, and superimposing the image to be proofread and the original design drawing on the screen projection receiving end. Comparing the gap between the actual interface and the original design on the two layers of the comparison method solves the cumbersome and inaccurate problems of traditional comparison methods, greatly reduces the workload of front-end application development and testing engineers, and improves work efficiency.

可选的,双图层确定模块包括:Optionally, the double-layer determination module includes:

叠放判断单元,用于接收图像拖动操作,并根据所述图像拖动操作确定是否将所述设计原图与所述待校对图像进行叠放处理,其中,所述图像拖动操作为对所述设计原图的拖动操作;The overlay judging unit is configured to receive an image drag operation, and determine whether to perform overlay processing on the original design image and the image to be proofread according to the image drag operation, wherein the image drag operation is to The dragging operation of the original design drawing;

双图层确定单元,用于若叠放判断单元返回的信息为是,则将所述设计原图对应的第二图层叠放至所述待校对图像对应的第一图层之上,得到目标双图层。A double-layer determining unit, configured to stack the second layer corresponding to the original design image on the first layer corresponding to the image to be proofread to obtain the target if the information returned by the stacking judging unit is yes Double layer.

可选的,双图层确定模块还包括:Optionally, the double layer determination module also includes:

叠放顺序确定单元,用于接收图层切换操作,根据所述图层切换操作确定是否改变所述第一图层和所述第二图层的叠放顺序。The stacking sequence determining unit is configured to receive a layer switching operation, and determine whether to change the stacking sequence of the first layer and the second layer according to the layer switching operation.

可选的,差异信息确定模块包括:Optionally, the difference information determination module includes:

目标图层确定单元,用于接收图层透明度调整操作,根据所述图层透明度调整操作调整所述第一图层和/或所述第二图层的透明度,得到目标第一图层和目标第二图层;The target layer determination unit is configured to receive a layer transparency adjustment operation, adjust the transparency of the first layer and/or the second layer according to the layer transparency adjustment operation, and obtain the target first layer and the target layer second layer;

差异信息确定单元,用于根据所述目标第一图层和所述目标第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。The difference information determining unit is configured to determine the difference information between the original design drawing and the current display interface according to the difference between the target first layer and the target second layer.

可选的,所述根据所述目标第一图层和所述目标第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息,包括:接收点击位置操作,并确定所述点击位置操作在所述目标第一图层中对应的第一点击位置,以及所述点击位置操作在所述目标第二图层中对应的第二点击位置,其中,所述点击位置操作为对所述目标第一图层和所述目标第二图层中任一图层的点击操作;确定所述第一点击位置的第一零透明度颜色和所述第二点击位置的第二零透明度颜色,并根据所述第一零透明度颜色和所述第二零透明度颜色的差距,确定所述设计原图与所述当前显示界面之间的差异信息。Optionally, the determining the difference information between the original design image and the current display interface according to the difference between the target first layer and the target second layer includes: receiving a click position operation, And determine the first click position corresponding to the click position operation in the first layer of the target, and the second click position corresponding to the click position operation in the second target layer, wherein the click The position operation is a click operation on any one of the target first layer and the target second layer; determine the first zero transparency color of the first click position and the second zero transparency color of the second click position 20 transparency color, and according to the difference between the first zero transparency color and the second zero transparency color, determine the difference information between the original design image and the current display interface.

可选的,该装置还包括:Optionally, the device also includes:

安装文件发送模块,用于在所述获取投屏发送端的投屏数据之前,建立投屏发送端和投屏接收端的通讯连接,并基于所述通讯连接,将所述投屏接收端中的安装文件通过调试桥推送至所述投屏发送端中,其中,所述安装文件为所述投屏发送端中第一投屏程序的安装文件。The installation file sending module is used to establish the communication connection between the screen projection sending end and the screen projection receiving end before the acquisition of the screen projection data of the screen projection sending end, and based on the communication connection, the installation in the screen projection receiving end The file is pushed to the screen projection sending end through the debugging bridge, wherein the installation file is the installation file of the first screen projection program in the screen projection sending end.

可选的,图像显示模块包括:Optionally, the image display module includes:

接收端口确定单元,用于利用所述投屏接收端中的第二投屏程序,确定所述投屏接收端中的数据接收端口,其中,所述投屏发送端的数据发送端口基于所述安装文件确定;The receiving port determination unit is configured to use the second screen projection program in the screen projection receiving end to determine the data receiving port in the screen projection receiving end, wherein the data sending port of the screen projection sending end is based on the installation file confirmation;

图像显示单元,用于利用所述数据接收端口接收所述投屏发送端的当前显示界面对应的视频流,并对所述视频流进行解码,根据解码结果显示待校对图像。The image display unit is configured to use the data receiving port to receive the video stream corresponding to the current display interface of the screen projection sending end, decode the video stream, and display the image to be proofread according to the decoding result.

可选的,所述根据解码结果显示待校对图像,包括:将解码结果对应的视频图像帧转换为点阵图,并确定所述点阵图的透明度;根据所述点阵图和所述点阵图的透明度绘制投屏图像,以显示待校对图像。Optionally, the displaying the image to be corrected according to the decoding result includes: converting the video image frame corresponding to the decoding result into a bitmap, and determining the transparency of the bitmap; according to the bitmap and the point The transparency of the array image is used to draw the projected image to display the image to be proofread.

本发明实施例所提供的确定差异信息的装置可执行本发明任意实施例所提供的确定差异信息的方法,具备执行方法相应的功能模块和有益效果。The device for determining difference information provided in the embodiments of the present invention can execute the method for determining difference information provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

实施例四Embodiment four

图5示出了可以用来实施本发明的实施例的电子设备40的结构示意图。电子设备旨在表示各种形式的投屏接收端,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG. 5 shows a schematic structural diagram of an electronic device 40 that can be used to implement an embodiment of the present invention. Electronic device is intended to represent various forms of screencasting receivers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the inventions described and/or claimed herein.

如图5所示,电子设备40包括至少一个处理器41,以及与至少一个处理器41通信连接的存储器,如只读存储器(ROM)42、随机访问存储器(RAM)43等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器41可以根据存储在只读存储器(ROM)42中的计算机程序或者从存储单元48加载到随机访问存储器(RAM)43中的计算机程序,来执行各种适当的动作和处理。在RAM 43中,还可存储电子设备40操作所需的各种程序和数据。处理器41、ROM 42以及RAM 43通过总线44彼此相连。输入/输出(I/O)接口45也连接至总线44。As shown in FIG. 5 , the electronic device 40 includes at least one processor 41, and a memory connected in communication with the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores There is a computer program executable by at least one processor, and the processor 41 can operate according to a computer program stored in a read-only memory (ROM) 42 or loaded from a storage unit 48 into a random access memory (RAM) 43. Various appropriate actions and processes are performed. In the RAM 43, various programs and data necessary for the operation of the electronic device 40 are also stored. The processor 41 , ROM 42 and RAM 43 are connected to each other through a bus 44 . An input/output (I/O) interface 45 is also connected to the bus 44 .

电子设备40中的多个部件连接至I/O接口45,包括:输入单元46,例如键盘、鼠标等;输出单元47,例如各种类型的显示器、扬声器等;存储单元48,例如磁盘、光盘等;以及通信单元49,例如网卡、调制解调器、无线通信收发机等。通信单元49允许电子设备40通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 40 are connected to the I/O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器41可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器41的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器41执行上文所描述的各个方法和处理,例如确定差异信息的方法。Processor 41 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 41 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 41 executes various methods and processes described above, such as a method of determining difference information.

在一些实施例中,确定差异信息的方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元48。在一些实施例中,计算机程序的部分或者全部可以经由ROM 42和/或通信单元49而被载入和/或安装到电子设备40上。当计算机程序加载到RAM 43并由处理器41执行时,可以执行上文描述的确定差异信息的方法的一个或多个步骤。备选地,在其他实施例中,处理器41可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行确定差异信息的方法。In some embodiments, the method of determining difference information may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 48 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 40 via the ROM 42 and/or the communication unit 49 . When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the method for determining difference information described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured in any other suitable manner (for example, by means of firmware) to execute the method for determining difference information.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, so that the computer program causes the functions/operations specified in the flowcharts and/or block diagrams to be implemented when executed by the processor. A computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

上述提供的计算机设备可用于执行上述任意实施例提供的确定差异信息的方法,具备相应的功能和有益效果。The computer device provided above can be used to execute the method for determining difference information provided in any of the above embodiments, and has corresponding functions and beneficial effects.

实施例五Embodiment five

在本发明的上下文中,计算机可读存储介质可以是有形的介质,所述计算机可执行指令在由计算机处理器执行时用于执行确定差异信息的方法,该方法包括:In the context of the present invention, a computer-readable storage medium may be a tangible medium, said computer-executable instructions, when executed by a computer processor, for performing a method of determining difference information, the method comprising:

获取投屏发送端的投屏数据,根据所述投屏数据在所述投屏接收端中显示待校对图像,其中,所述待校对图像包含所述投屏发送端的当前显示界面;Obtain the screen projection data of the screen projection sending end, and display an image to be proofread in the screen projection receiving end according to the screen projection data, wherein the image to be proofreading includes the current display interface of the screen projection sending end;

对所述投屏接收端中的设计原图与所述待校对图像进行叠放处理,得到目标双图层,其中,所述目标双图层包括所述待校对图像对应的第一图层和设计原图对应的第二图层;The original design image in the screen projection receiving end and the image to be proofread are superimposed to obtain a target double layer, wherein the target double layer includes the first layer corresponding to the image to be proofread and Design the second layer corresponding to the original drawing;

根据所述第一图层和所述第二图层的差距,确定所述设计原图与所述当前显示界面之间的差异信息。According to the difference between the first layer and the second layer, the difference information between the original design drawing and the current display interface is determined.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or be stored for use by or with an instruction execution system, apparatus, or device or in connection with an instruction execution system, apparatus, or device. or a computer program used in conjunction with the device. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

上述提供的计算机设备可用于执行上述任意实施例提供的确定差异信息的方法,具备相应的功能和有益效果。The computer device provided above can be used to execute the method for determining difference information provided in any of the above embodiments, and has corresponding functions and beneficial effects.

值得注意的是,上述确定差异信息的装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that, in the above embodiment of the device for determining difference information, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition , the specific names of each functional unit are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, rearrangements and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

1. The method for determining the difference information is characterized by being applied to a screen projection receiving end and comprising the following steps:
acquiring screen projection data of a screen projection transmitting end, and displaying an image to be checked in the screen projection receiving end according to the screen projection data, wherein the image to be checked comprises a current display interface of the screen projection transmitting end;
overlapping the design original image in the screen projection receiving end and the image to be checked to obtain a target double-image layer, wherein the target double-image layer comprises a first image layer corresponding to the image to be checked and a second image layer corresponding to the design original image;
and determining difference information between the design original image and the current display interface according to the difference between the first image layer and the second image layer.
2. The method of claim 1, wherein the stacking the design artwork in the screen projection receiving end and the image to be checked to obtain a target double-layer includes:
receiving an image dragging operation, and determining whether to stack the design original image and the image to be checked or not according to the image dragging operation, wherein the image dragging operation is a dragging operation on the design original image;
If so, stacking the second image layer corresponding to the design original image onto the first image layer corresponding to the image to be checked to obtain a target double image layer.
3. The method as recited in claim 2, further comprising:
and receiving a layer switching operation, and determining whether to change the stacking sequence of the first layer and the second layer according to the layer switching operation.
4. The method of claim 1, wherein determining difference information between the design artwork and the current display interface based on the gap between the first layer and the second layer comprises:
receiving a layer transparency adjustment operation, and adjusting the transparency of the first layer and/or the second layer according to the layer transparency adjustment operation to obtain a target first layer and a target second layer;
and determining difference information between the design original drawing and the current display interface according to the difference between the target first drawing layer and the target second drawing layer.
5. The method of claim 4, wherein determining difference information between the design artwork and the current display interface based on the gap between the target first layer and the target second layer comprises:
Receiving a click position operation, determining a first click position corresponding to the click position operation in the first image layer of the target and a second click position corresponding to the click position operation in the second image layer of the target, wherein the click position operation is a click operation on any one image layer of the first image layer of the target and the second image layer of the target;
and determining a first zero transparency color of the first click position and a second zero transparency color of the second click position, and determining difference information between the design original image and the current display interface according to a difference between the first zero transparency color and the second zero transparency color.
6. The method according to claim 1, further comprising, before the acquiring the screen projection data of the screen projection transmitting end:
establishing communication connection between a screen projection transmitting end and a screen projection receiving end, and pushing an installation file in the screen projection receiving end to the screen projection transmitting end through a debugging bridge based on the communication connection, wherein the installation file is an installation file of a first screen projection program in the screen projection transmitting end;
the method for acquiring the screen projection data of the screen projection transmitting end, displaying the image to be checked in the screen projection receiving end according to the screen projection data comprises the following steps:
Determining a data receiving port in the screen throwing receiving end by using a second screen throwing program in the screen throwing receiving end, wherein the data transmitting port of the screen throwing transmitting end is determined based on the installation file;
and receiving a video stream corresponding to the current display interface of the screen-throwing transmitting end by utilizing the data receiving port, decoding the video stream, and displaying an image to be checked according to a decoding result.
7. The method of claim 6, wherein displaying the image to be collated based on the decoding result comprises:
converting a video image frame corresponding to a decoding result into a bitmap, and determining the transparency of the bitmap;
and drawing a screen projection image according to the bitmap and the transparency of the bitmap so as to display the image to be checked.
8. The device for determining the difference information is characterized by being configured at a screen projection receiving end and comprising:
the image display module is used for acquiring the screen projection data of the screen projection transmitting end, and displaying an image to be checked in the screen projection receiving end according to the screen projection data, wherein the image to be checked comprises a current display interface of the screen projection transmitting end;
the double-layer determining module is used for carrying out stacking processing on the design original image in the screen projection receiving end and the image to be checked to obtain a target double-layer, wherein the target double-layer comprises a first layer corresponding to the image to be checked and a second layer corresponding to the design original image;
And the difference information determining module is used for determining the difference information between the design original image and the current display interface according to the difference between the first image layer and the second image layer.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of determining difference information of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of determining difference information of any one of claims 1-7.
CN202310620799.3A 2023-05-30 2023-05-30 A method, device, equipment and storage medium for determining difference information Pending CN116594900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310620799.3A CN116594900A (en) 2023-05-30 2023-05-30 A method, device, equipment and storage medium for determining difference information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310620799.3A CN116594900A (en) 2023-05-30 2023-05-30 A method, device, equipment and storage medium for determining difference information

Publications (1)

Publication Number Publication Date
CN116594900A true CN116594900A (en) 2023-08-15

Family

ID=87593548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310620799.3A Pending CN116594900A (en) 2023-05-30 2023-05-30 A method, device, equipment and storage medium for determining difference information

Country Status (1)

Country Link
CN (1) CN116594900A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070252804A1 (en) * 2003-05-16 2007-11-01 Engel Gabriel D Display Control System
US20200005735A1 (en) * 2017-01-06 2020-01-02 Samsung Electronics Co., Ltd. Method for displaying screen image and electronic device therefor
CN112492358A (en) * 2020-11-18 2021-03-12 深圳市斯博科技有限公司 Screen projection method and device, computer equipment and storage medium
CN112650483A (en) * 2020-12-28 2021-04-13 京东数字科技控股股份有限公司 Method and device for restoring design draft, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070252804A1 (en) * 2003-05-16 2007-11-01 Engel Gabriel D Display Control System
US20200005735A1 (en) * 2017-01-06 2020-01-02 Samsung Electronics Co., Ltd. Method for displaying screen image and electronic device therefor
CN112492358A (en) * 2020-11-18 2021-03-12 深圳市斯博科技有限公司 Screen projection method and device, computer equipment and storage medium
CN112650483A (en) * 2020-12-28 2021-04-13 京东数字科技控股股份有限公司 Method and device for restoring design draft, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11880629B2 (en) Display control method and apparatus
CN110032701B (en) Image display control method and device, storage medium and electronic equipment
CN102664924B (en) Information processing method and device in remote assistance process
WO2021169236A1 (en) Rendering method and apparatus
CN104834431A (en) Spliced display system whole-wall labeling method and system and spliced display system
CN115935925A (en) Table adaptation method, electronic device, and computer-readable storage medium
US20120007794A1 (en) Feedback mechanism
CN114071190A (en) Cloud application video stream processing method, related device and computer program product
US8860773B2 (en) Telepresence for remote collaboration with a gestural interface
CN112988308A (en) Teaching display method and device, teaching all-in-one machine and storage medium
WO2024022179A1 (en) Media content display method and apparatus, electronic device and storage medium
CN114443192B (en) Multi-window virtual application method and device based on cloud desktop
CN115390713A (en) Screen control method, screen control device, electronic apparatus, program, and medium
CN116594900A (en) A method, device, equipment and storage medium for determining difference information
CN112162800B (en) Page display method, page display device, electronic equipment and computer readable storage medium
WO2025124073A1 (en) Remote screen switching method and apparatus, and client terminal and storage medium
CN107862035A (en) Network reading method and device for conference record, intelligent tablet and storage medium
US20230195288A1 (en) Method and apparatus for detecting a click on an icon, device, and storage medium
US20250013419A1 (en) Terminal, system and method for screen projection, storage medium, and electronic device
CN107291834B (en) Information input method, equipment and terminal based on readable codes
US20230059020A1 (en) Method for optimizing the image processing of web videos, electronic device, and storage medium applying the method
CN113836455B (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN118227063A (en) Display method, computer readable storage medium and electronic device
WO2024113187A1 (en) Multi-device cooperative control method, display device and system
CN116016814B (en) A method, apparatus, device, and readable storage medium for displaying data modes.

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20230815

RJ01 Rejection of invention patent application after publication