Image processing method and device, equipment, storage medium and computer program product

By determining the pose of the 3D model in the 2D texture image and displaying it, the problem of model penetration when dragging 3D effects on the 2D screen is solved and the user experience is improved.

CN118537474APending Publication Date: 2024-08-23AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410654610.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When dragging a 3D effect on a 2D screen, it is difficult to accurately determine the position and direction of the 3D effect on the 2D screen, which may lead to the possibility of mold penetration and affect the user experience.

Method used

By obtaining the target model, responding to the triggering operation of the three-dimensional model, determining its pose in the first coordinate system, and determining the corresponding target two-dimensional texture image in at least two two-dimensional texture images, the occurrence of the mold-crossing phenomenon is avoided.

Benefits of technology

It effectively avoids the mold-crossing phenomenon when the 3D model is displayed on the 2D model, improves the user experience, and ensures the accurate dragging and display of 3D effects on the 2D screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537474A
    Figure CN118537474A
Patent Text Reader

Abstract

The invention provides an image processing method and device, equipment, a storage medium and a computer program product. The image processing method comprises the following steps: acquiring a target model; the target model comprises a two-dimensional model and a three-dimensional model on the two-dimensional model; in response to a triggering operation of the three-dimensional model, determining a first pose of the triggering operation in a first coordinate system; determining a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images according to the first pose; wherein each two-dimensional texture image in the at least two two-dimensional texture images corresponds to one first pose; and superposing the target two-dimensional texture image and the two-dimensional model and then displaying. According to the method, the target two-dimensional texture image corresponding to the three-dimensional model is determined and displayed according to the first pose corresponding to the triggering operation, so that the phenomenon that the three-dimensional model passes through the mode when being displayed on the two-dimensional model is avoided, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, apparatus, device, storage medium and computer program product. Background Art

[0002] With the development of intelligent vehicles, users have higher demands for vehicle personalization and comfort. In terms of visual presentation, more and more vehicles use pictures, animations, videos and sound effects to make professional and complex functions easier to understand, and use three-dimensional (3D) interfaces to present them.

[0003] When the user slides his finger on the screen, the 3D special effects need to be dragged on the two-dimensional (2D) screen in the direction of the finger sliding. Since 2D rendering and 3D rendering are at two rendering levels, and since 3D objects have volume and depth, but the 2D screen lacks the ability to directly perceive depth, it is difficult for the 2D screen to accurately determine the position and direction of the 3D special effects in the 3D space when dragging the 3D special effects, making it difficult to drag the 3D special effects on the 2D screen, and even causing the effect of model penetration when dragging the 3D special effects on the 2D screen. Summary of the invention

[0004] The embodiments of the present application provide an image processing method, apparatus, device, storage medium and computer program product, which avoid the phenomenon of model penetration when a three-dimensional model is displayed on a two-dimensional model.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides an image processing method, comprising:

[0007] Acquire a target model; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model;

[0008] In response to a trigger operation of the three-dimensional model, determining a first pose of the trigger operation in a first coordinate system;

[0009] According to the first posture, determining a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first postures;

[0010] The target two-dimensional texture image and the two-dimensional model are superimposed and displayed.

[0011] In a second aspect, an embodiment of the present application further provides an image processing device, characterized in that it includes:

[0012] An acquisition unit, used for acquiring a target model; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model;

[0013] A determination unit, configured to determine, in response to a trigger operation of the three-dimensional model, a first pose of the trigger operation in a first coordinate system; and determine, according to the first pose, a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first poses;

[0014] A display unit is used for displaying the target two-dimensional texture image and the two-dimensional model after superposition.

[0015] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the above-described image processing methods when executing the computer program.

[0016] In a possible implementation, the electronic device may be a controller in vehicle equipment (eg, a cockpit domain controller).

[0017] In a fourth aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the image processing method described in any one of the above items is implemented.

[0018] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which implements any of the above-described image processing methods when executed by a processor.

[0019] To summarize, in the image processing method provided in the embodiment of the present application, a target model is acquired; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model; in response to a trigger operation of the three-dimensional model, a first posture of the trigger operation in a first coordinate system is determined; according to the first posture, a target two-dimensional texture image corresponding to the three-dimensional model is determined in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first postures; and the target two-dimensional texture image and the two-dimensional model are superimposed and displayed.

[0020] For the solution of the present application, when displaying the three-dimensional model on the two-dimensional model, the target two-dimensional texture image corresponding to the three-dimensional model is determined and displayed according to the first position corresponding to the trigger operation. Compared with the related art of directly displaying the three-dimensional model on the two-dimensional model according to the trigger operation, the solution of the present application avoids the phenomenon of model penetration when the three-dimensional model is displayed on the two-dimensional model, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1A It is a structural schematic diagram of a three-dimensional model normally displayed on a two-dimensional model in the related art;

[0022] Figure 1B It is a structural schematic diagram of the phenomenon of model penetration when displaying a three-dimensional model and a two-dimensional model in the related art;

[0023] Figure 2 A schematic diagram of a first optional flow chart of the image processing method provided in an embodiment of the present application;

[0024] Figure 3 A second optional flow chart of the image processing method provided in the embodiment of the present application;

[0025] Figure 4 A third optional flow chart of the image processing method provided in the embodiment of the present application;

[0026] Figure 5 A fourth optional flow chart of the image processing method provided in the embodiment of the present application;

[0027] Figure 6 A fifth optional flow chart of the image processing method provided in the embodiment of the present application;

[0028] Fig. 7A An optional structural diagram of a two-dimensional model provided in an embodiment of the present application;

[0029] Figure 7B An optional structural schematic diagram of a three-dimensional model provided in an embodiment of the present application displayed on a two-dimensional model;

[0030] Figure 8 An optional structural diagram of a two-dimensional model coordinate provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of an optional structure of an image processing device provided in an embodiment of the present application;

[0032] Fig.10 An optional structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0034] It should be understood that the "embodiment of the present application" or "the aforementioned embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in the embodiment of the present application" or "in the aforementioned embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0035] In addition, the accompanying drawings are only schematic illustrations of embodiments of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0036] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0037] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.

[0039] At present, with the development of automobile intelligence, users' demand for automobile personalization and higher comfort has received widespread attention. In terms of visual presentation, more and more vehicles use pictures, animations, videos and sound effects to make professional and complex functions easier to understand and present them in three-dimensional views. This kind of three-dimensional rendering is more delicate and the real-time rendering of the three-dimensional environment is more realistic.

[0040] In the process of displaying special effects through 3D views, the related technologies have the following problems:

[0041] In the related art, 3D special effects are implemented by using sequence frames. Due to the large number of different types of 3D special effects, the workload of animation designers is large, and there are too many files, which will take up a lot of vehicle memory, and the sequence frame animation is not as realistic as the visual effects of 3D special effects. In the related art, videos can also be used instead of 3D special effects, but different models and cockpit systems may have different video formats and encoding requirements. Using videos instead of 3D special effects may cause compatibility issues, increase the complexity of development and maintenance, and pre-recorded videos cannot provide sufficient flexibility in some scenarios that require real-time response.

[0042] When the user slides his finger on the screen, the 3D special effect needs to be dragged on the 2D screen in the direction of the finger sliding. Since 2D rendering and 3D rendering are at two rendering levels, and since 3D objects have volume and depth, but 2D screens lack the ability to directly perceive depth, it is difficult for 2D screens to accurately determine the position and direction of 3D special effects in 3D space when dragging 3D special effects. Dragging 3D special effects on 2D screens may cause a penetration effect. Figure 1A and Figure 1B As shown, Figure 1A 101 is a schematic diagram of a structure in which a three-dimensional model is normally displayed on a two-dimensional model in the related art. 102 is a three-dimensional model. Figure 1A As shown, a plurality of three-dimensional models 102 are displayed on a two-dimensional model 101 . Figure 1B 101 is a schematic diagram of a structure in which a three-dimensional model and a two-dimensional model are displayed and a model through a model is displayed. Figure 1B As shown in the figure, the three-dimensional model 102 penetrates the two-dimensional model 101, resulting in a penetration phenomenon.

[0043] Based on the above problems, an embodiment of the present application proposes an image processing method, which determines and displays the target two-dimensional texture image corresponding to the three-dimensional model according to the first pose corresponding to the trigger operation, thereby avoiding the penetration phenomenon when the three-dimensional model is displayed on the two-dimensional model, and improving the user experience.

[0044] Figure 2A first optional flow chart of the image processing method provided in the embodiment of the present application, referring to Figure 2 As shown in the content, the image processing method may include but is not limited to steps S201 to S204.

[0045] The image processing method is used to determine and display the target two-dimensional texture image corresponding to the three-dimensional model according to the first pose corresponding to the trigger operation. The embodiment of the present application does not specifically limit the number of three-dimensional models. Below, the image processing method is described by taking a three-dimensional model as an example.

[0046] Step S201: The electronic device obtains a target model.

[0047] The target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model.

[0048] The target model refers to the model used for display, which is composed of a two-dimensional model and a three-dimensional model. The two-dimensional model can be a two-dimensional background image, such as the interior of a vehicle; the three-dimensional model can be a three-dimensional special effect image, such as a three-dimensional special effect displayed on the interior of a vehicle.

[0049] In a possible implementation, the target model can be obtained through an electronic device so as to facilitate the subsequent processing of the three-dimensional model therein, so as to achieve the effect of the three-dimensional model moving on the two-dimensional model following the drag. The electronic device refers to an electronic device with relevant processing capabilities. Exemplarily, the electronic device may include but is not limited to: a server, a computer or a tablet, etc. Model processing software is running on the electronic device, so that relevant processing can be performed through the model processing software. Exemplarily, the model processing software may be Unity software.

[0050] Step S202: The electronic device determines a first pose of the triggering operation in a first coordinate system in response to the triggering operation of the three-dimensional model.

[0051] A trigger operation refers to an operation used to trigger a specific function or response in an electronic device. A user can perform a trigger operation through a human-computer interaction interface. The trigger operation may include a click operation, a rotation operation, a drag operation, etc. Different functions or responses may be triggered according to different trigger operations.

[0052] The trigger operation of the 3D model refers to the trigger operation on the 3D model.

[0053] The first coordinate system refers to the coordinate system related to the interface elements in a specific interface, that is, the local coordinate system corresponding to the specific interface, which usually takes the center point or other specific point of the specific interface or an element therein as the origin, and defines the coordinate axis according to the size and direction of the specific interface or an element. For example, in the display interface of the vehicle interior picture, the first coordinate system can take the upper left corner or center point of the display interface as the origin, or the upper left corner or center point of an element in the interior picture as the origin, and define the X-axis and Y-axis according to the size of the display interface or an element.

[0054] The first pose refers to a pose in a first coordinate system, and the first pose may include a first position and a first angle.

[0055] In a possible implementation, in response to a trigger operation of the three-dimensional model, a corresponding function can be executed according to the trigger operation. When the trigger operation is a click operation or a drag operation, the first position of the trigger operation in the first coordinate system can be determined, thereby determining the first position of the trigger operation in the first coordinate system; when the trigger operation is a rotation operation, the first angle of the trigger operation in the first coordinate system can be determined, and the first position and the first angle are combined to determine the first position of the trigger operation in the first coordinate system.

[0056] Step S203: The electronic device determines, according to the first posture, a target two-dimensional texture image corresponding to the three-dimensional model from at least two two-dimensional texture images.

[0057] Wherein, each of the at least two two-dimensional texture images corresponds to one of the first postures.

[0058] A two-dimensional texture image refers to a texture image obtained after rendering a three-dimensional model.

[0059] The target two-dimensional texture image refers to a texture image corresponding to the first pose among the multiple two-dimensional texture images.

[0060] In a possible implementation, the three-dimensional model may be rendered from at least two different rendering poses to obtain two-dimensional texture images corresponding to at least two different rendering poses, wherein each rendering pose corresponds to a first pose in a first coordinate system, and therefore different two-dimensional texture images correspond to different first poses.

[0061] After the first pose is determined, a target two-dimensional texture image corresponding to the first pose may be determined from the at least two two-dimensional texture images to be displayed in a subsequent process.

[0062] Step S204: The electronic device superimposes the target two-dimensional texture image and the two-dimensional model and displays them.

[0063] In a possible implementation, after determining the target two-dimensional texture, the target two-dimensional texture and the two-dimensional model may be superimposed and displayed according to a preset orientation, for example, the target two-dimensional texture may be placed on the upper layer of the two-dimensional model and then superimposed and displayed. For example, when the two-dimensional model is a vehicle interior image and the target two-dimensional texture corresponds to a three-dimensional special effect on the vehicle interior image, the target two-dimensional texture may be placed on the upper layer of the two-dimensional model and then superimposed and displayed to achieve the effect of displaying the three-dimensional special effect on the vehicle interior image.

[0064] In a possible implementation, the target two-dimensional texture can also be placed in the lower layer or other orientation of the two-dimensional model and then displayed after superimposition. The orientation of the target two-dimensional texture and the two-dimensional model can be adjusted according to actual needs, and the embodiment of the present application does not make specific limitations on this.

[0065] The image processing method provided by the embodiment of the present application includes: acquiring a target model; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model; in response to a trigger operation of the three-dimensional model, determining a first posture of the trigger operation in a first coordinate system; according to the first posture, determining a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first postures; and displaying the target two-dimensional texture image and the two-dimensional model after superimposing them.

[0066] For the solution of the present application, when displaying the three-dimensional model on the two-dimensional model, the target two-dimensional texture image corresponding to the three-dimensional model is determined and displayed according to the first position corresponding to the trigger operation. Compared with the related art of directly displaying the three-dimensional model on the two-dimensional model according to the trigger operation, the solution of the present application avoids the phenomenon of model penetration when the three-dimensional model is displayed on the two-dimensional model, and improves the user experience.

[0067] The image processing method of the present application can also render a three-dimensional model to obtain a two-dimensional texture image corresponding to the three-dimensional model.

[0068] refer to Figure 3 The process may include but is not limited to the following steps S301 to S303.

[0069] Step S301: The electronic device creates at least two rendering cameras.

[0070] Rendering camera refers to the camera that performs rendering processing in the rendering engine.

[0071] In a possible implementation, at least two rendering cameras may be created by an electronic device to render a three-dimensional model according to the at least two cameras to obtain a corresponding number of two-dimensional texture images.

[0072] Step S302: The electronic device determines a rendering pose of each of the at least two rendering cameras.

[0073] Rendering pose refers to the pose of the rendering camera in the rendering scene, including the position and orientation of the rendering camera.

[0074] In a possible implementation, each rendering camera may correspond to a rendering pose. The rendering pose of the rendering camera may be determined by the position and viewing angle of the rendering camera corresponding to the three-dimensional model in the rendering scene. In the process of determining the rendering pose of the rendering camera, the composition principles (such as the rule of thirds, symmetry, balance, etc.) may be applied to select the rendering pose. The rendering pose of the rendering camera may also be determined according to the display requirements of the three-dimensional model (such as which parts need to be highlighted and which parts need to be fully displayed). The embodiments of the present application do not specifically limit this.

[0075] In a possible implementation, each rendering camera may correspond to multiple rendering poses. For example, the position of the rendering camera pair may be determined according to the display requirements of the three-dimensional model, and after the position is determined, the orientation of the rendering camera may be switched so that the position corresponds to multiple rendering poses.

[0076] Step S303: The electronic device renders the three-dimensional model at the rendering posture of each rendering camera to obtain a two-dimensional texture image corresponding to the rendering posture.

[0077] In the case where each rendering camera corresponds to a rendering pose, the 3D model can be rendered (e.g., vertex transformation, primitive assembly, texture calculation shading, and rasterization) by each rendering camera to obtain the same number of 2D texture images as the number of rendering cameras. Each 2D texture image corresponds to a rendering pose, and each 2D texture image corresponds to a different rendering pose.

[0078] In the case where each rendering camera corresponds to multiple rendering poses, for example, each rendering camera corresponds to four rendering poses, the 3D model can be rendered by each rendering camera to obtain 2D texture images four times the number of rendering cameras, wherein each 2D texture image corresponds to a rendering pose, and each 2D texture image corresponds to a different rendering pose.

[0079] Here, there is no limitation on the color of the rendering, etc., and it can be configured according to actual needs. For example, the rendering color can refer to the actual color of the 3D model; it can also be adjusted to the desired color according to actual needs. For different types of target types, the corresponding rendering camera type may be different, and the rendering camera corresponding to the 3D model may be a perspective camera.

[0080] The above-mentioned embodiment renders the three-dimensional model through at least two rendering cameras to obtain a two-dimensional texture image corresponding to the rendering posture of the rendering camera, so as to respond to the trigger operation and display it through the two-dimensional texture image, thereby avoiding the phenomenon of model penetration when the three-dimensional model is displayed on the two-dimensional model.

[0081] The image processing method of the present application can also determine the first posture in the first coordinate system according to the second posture in the screen coordinate system.

[0082] The following describes the implementation scheme of the trigger operation under different operation types.

[0083] In a possible implementation, when the triggering operation is a click operation, the click operation may be used to achieve an effect of displaying the three-dimensional model based on the first pose corresponding to the click operation.

[0084] In a possible implementation, when the trigger operation is a rotation operation, the first angle corresponding to the three-dimensional model can be determined by the rotation angle of the rotation operation, thereby determining the first posture corresponding to the three-dimensional model, so as to achieve the effect of switching the viewing angle of the three-dimensional model according to the rotation operation.

[0085] In a possible implementation, when the trigger operation is a drag operation, the drag operation corresponds to multiple first poses, and the three-dimensional model corresponds to multiple target two-dimensional texture images. Each of the multiple target two-dimensional texture images can be sequentially superimposed with the two-dimensional model and displayed. It is understandable that the drag operation includes multiple click operations, each click operation corresponds to a different first pose, and the first pose corresponding to the drag operation can be determined in real time and the target two-dimensional texture image corresponding to the first pose can be determined, and the target two-dimensional texture image is superimposed with the two-dimensional model and displayed. In the process of the first pose changing, the corresponding target two-dimensional texture image also changes, so as to achieve the effect that the three-dimensional model moves following the drag operation.

[0086] refer to Figure 4 The process may include but is not limited to the following steps S401 to S403.

[0087] Step S401: The electronic device determines a second posture of the triggering operation in a screen coordinate system in response to a triggering operation of the three-dimensional model.

[0088] A trigger operation refers to an operation used to trigger a specific function or response in an electronic device. A user can perform a trigger operation through a human-computer interaction interface. The trigger operation may include a click operation, a rotation operation, a drag operation, etc. Different functions or responses may be triggered according to different trigger operations.

[0089] The trigger operation of the three-dimensional model refers to the trigger operation on the three-dimensional model. The trigger operation can be performed by using a finger on the screen of the electronic device, by using a mouse on the electronic device, or by interactive methods such as gesture recognition and voice control.

[0090] The screen coordinate system refers to the two-dimensional coordinate system on a computer monitor or other graphics display device. In the screen coordinate system, the point in the upper left corner of the screen is usually taken as the origin, the horizontal right direction is taken as the positive direction of the X axis, and the vertical downward direction is taken as the positive direction of the Y axis.

[0091] The second posture refers to a posture in the screen coordinate system, and the second posture may include a second position and a second angle.

[0092] When the trigger operation is a click operation, the click operation can be used to realize the effect of displaying the three-dimensional model based on the second posture corresponding to the click operation; when the trigger operation is a drag operation, the drag operation can be used to realize the three-dimensional model to be displayed in real time according to the second posture corresponding to the drag operation, so as to realize the effect that the three-dimensional model moves with the drag operation; when the trigger operation is a rotation operation, the second angle corresponding to the three-dimensional model can be determined by the rotation angle of the rotation operation, thereby determining the second posture corresponding to the three-dimensional model, so as to realize the effect that the three-dimensional model switches the viewing angle according to the rotation operation.

[0093] In a possible implementation, in response to a trigger operation of the three-dimensional model, a corresponding function may be executed according to the trigger operation. When the trigger operation is a click operation or a drag operation, the second position of the trigger operation in the screen coordinate system may be determined, thereby determining the second posture of the trigger operation in the screen coordinate system; when the trigger operation is a rotation operation, the second angle of the trigger operation in the screen coordinate system may be determined, thereby determining the second posture of the trigger operation in the screen coordinate system.

[0094] In a possible implementation, a perspective switching button may be provided on the display interface to switch the perspective of the three-dimensional model according to a triggering operation of the perspective switching button, thereby changing the second posture of the triggering operation in the screen coordinate system.

[0095] Step S402: The electronic device determines that the second position in the second posture is within a draggable range in the screen coordinate system.

[0096] The draggable range refers to the movable range of the three-dimensional model, which corresponds to the displayable range of the three-dimensional model. If the second position is not within the draggable range in the screen coordinate system, the three-dimensional model cannot be displayed.

[0097] In a possible implementation manner, a draggable range in the screen coordinate system may be determined to determine whether the second position is within the draggable range.

[0098] refer to Figure 5 The process may include but is not limited to the following steps S501 to S504.

[0099] Step S501: The electronic device determines the maximum value and the minimum value of the ordinate in the first coordinate system.

[0100] The first coordinate system refers to the coordinate system related to the interface elements in a specific interface, that is, the local coordinate system corresponding to the specific interface, which usually takes the center point or other specific point of the specific interface or an element therein as the origin, and defines the coordinate axis according to the size and direction of the specific interface or an element. For example, in the display interface of the vehicle interior picture, the first coordinate system can take the upper left corner or center point of the display interface as the origin, or the upper left corner or center point of an element in the interior picture as the origin, and define the X-axis and Y-axis according to the size of the display interface or an element.

[0101] The maximum value of the ordinate in the first coordinate system refers to the maximum representable value in the Y-axis direction in the first coordinate system.

[0102] The minimum value of the ordinate in the first coordinate system refers to the minimum representable value in the Y-axis direction in the first coordinate system.

[0103] In a possible implementation, the maximum representable number and the minimum representable number in the Y-axis direction in the coordinate system of the display interface may be obtained.

[0104] Step S502: The electronic device determines the maximum ordinate value, minimum ordinate value, maximum abscissa value and minimum abscissa value of the two-dimensional model in the first coordinate system based on the maximum ordinate value and minimum ordinate value in the first coordinate system.

[0105] refer to Figure 6 In a possible implementation, the process may include but is not limited to the following steps S601 to S604.

[0106] Step S601: The electronic device uses the maximum value and the minimum value of the ordinate in the first coordinate system as the maximum value and the minimum value of the ordinate of the two-dimensional view in the first coordinate system.

[0107] like Figure 8As shown, O is the origin of the local coordinate system, and A, B, C, and D are four vertices of the two-dimensional screen. The vertex coordinates of vertices A, B, C, and D in the two-dimensional view ABCD in the first coordinate system can be determined first, and the maximum and minimum ordinate values ​​of the two-dimensional view in the first coordinate system can be determined by the vertex coordinates.

[0108] In a possible implementation, when the maximum and minimum ordinate values ​​of the two-dimensional view in the first coordinate system are different from those in the first coordinate system, the maximum and minimum ordinate values ​​in the first coordinate system may be used as the maximum and minimum ordinate values ​​of the two-dimensional view in the first coordinate system.

[0109] Step S602: The electronic device determines a minimum slope and a maximum slope of the two-dimensional view according to vertex coordinates of the two-dimensional view in the first coordinate system.

[0110] In one possible implementation, the slopes of the two-dimensional view (which may include the slope corresponding to the side AB and the slope corresponding to the side CD) can be determined based on the vertex coordinates of vertices A, B, C, and D in the two-dimensional view ABCD, and the minimum slope and the maximum slope can be determined from the slopes.

[0111] Step S603: The electronic device determines a minimum value of the horizontal coordinate of the two-dimensional view based on the minimum slope of the two-dimensional view and a minimum value of the vertical coordinate in the first coordinate system.

[0112] In a possible implementation, the minimum value of the horizontal coordinate of the two-dimensional view may be determined based on the minimum slope of the two-dimensional view and the minimum value of the vertical coordinate in the first coordinate system. Exemplarily, the minimum value of the horizontal coordinate of the two-dimensional view in the first coordinate system may be determined according to formula (1) to formula (2):

[0113] y min =k min x min +b min Formula (1);

[0114] According to formula (1), formula (2) can be obtained:

[0115] x min =(y min -b min ) / k min Formula (2);

[0116] In formula (1) and formula (2), x min Indicates the minimum value of the horizontal axis, y min Indicates the minimum value of the ordinate, b min represents the minimum constant term, k min Indicates the minimum slope.

[0117] Step S604: The electronic device determines a maximum value of a horizontal coordinate of the two-dimensional view based on a maximum slope of the two-dimensional view and a maximum value of a vertical coordinate in the first coordinate system.

[0118] In a possible implementation, the maximum value of the horizontal coordinate of the two-dimensional view may be determined based on the maximum slope of the two-dimensional view and the maximum value of the vertical coordinate in the first coordinate system. Exemplarily, the maximum value of the horizontal coordinate of the two-dimensional view in the first coordinate system may be determined according to formula (3):

[0119] x max =(y max -b max ) / k max Formula (3);

[0120] In formula (3), x max Indicates the maximum value of the horizontal axis, y max Indicates the maximum value of the vertical coordinate, b max represents the largest constant term, k max Indicates the maximum slope.

[0121] Step S503: The electronic device determines a display range of the two-dimensional view in the first coordinate system according to the maximum ordinate value, the minimum ordinate value, the maximum abscissa value, and the minimum abscissa value of the two-dimensional view in the first coordinate system.

[0122] The display range refers to the display range of the two-dimensional image in the first coordinate system, which corresponds to the draggable range in the screen coordinate system.

[0123] In one possible implementation, after determining the maximum ordinate, minimum ordinate, maximum abscissa, and minimum abscissa of the two-dimensional view in the first coordinate system, the display range of the two-dimensional view in the first coordinate system can be determined based on the maximum ordinate, minimum ordinate, maximum abscissa, and minimum abscissa of the two-dimensional view in the first coordinate system.

[0124] Step S504: The electronic device determines a draggable range in the screen coordinate system according to a display range of the two-dimensional view in the first coordinate system.

[0125] In a possible implementation, the maximum ordinate, minimum ordinate, maximum abscissa and minimum abscissa of the two-dimensional view in the first coordinate system may be respectively converted into the maximum ordinate, minimum ordinate, maximum abscissa and minimum abscissa of the two-dimensional view in the screen coordinate system, and the draggable range of the two-dimensional view in the screen coordinate system is determined according to the maximum ordinate, minimum ordinate, maximum abscissa and minimum abscissa of the two-dimensional view in the screen coordinate system.

[0126] Step S403: The electronic device converts the second posture in the screen coordinate system into the first posture in the first coordinate system.

[0127] In a possible implementation, the second position in the screen coordinate system can be converted to the first position in the first coordinate system by translation, scaling, etc. The second angle in the screen coordinate system can be converted to the first angle in the first coordinate system by scaling, etc., and finally the first position and the first angle are combined to determine the first orientation in the first coordinate system.

[0128] In the above embodiment, in response to a trigger operation of the three-dimensional model, the first pose in the first coordinate system is determined according to the second pose of the trigger operation in the screen coordinate system, thereby improving the accuracy of the first pose.

[0129] The following describes the application of the method for implementing dragging of a three-dimensional view on a two-dimensional view provided in an embodiment of the present application in an actual scenario.

[0130] With the development of intelligent vehicles, users' demands for personalized and more comfortable vehicles have received widespread attention. In terms of visual presentation, more and more vehicles use pictures, animations, videos and sound effects to make professional and complex functions easier to understand and present them in three-dimensional views. This kind of three-dimensional rendering is more delicate and the real-time rendering of the three-dimensional environment is more realistic.

[0131] In the process of displaying special effects through 3D views, the related technologies have the following problems:

[0132] In the related art, 3D special effects are implemented by using sequence frames. Due to the large number of different types of 3D special effects, the workload of animation designers is large, and there are too many files, which will take up a lot of vehicle memory, and the sequence frame animation is not as realistic as the visual effects of 3D special effects. In the related art, videos can also be used instead of 3D special effects, but different models and cockpit systems may have different video formats and encoding requirements. Using videos instead of 3D special effects may cause compatibility issues, increase the complexity of development and maintenance, and pre-recorded videos cannot provide sufficient flexibility in some scenarios that require real-time response.

[0133] When the user slides his finger on the screen, the 3D special effects need to be dragged on the 2D screen in the direction of the finger sliding. Since 2D rendering and 3D rendering are at two rendering levels, and since 3D objects have volume and depth, but 2D screens lack the ability to directly perceive depth, it is difficult for 2D screens to accurately determine the position and direction of 3D special effects in 3D space when dragging 3D special effects, and dragging 3D special effects on 2D screens may cause a penetration effect.

[0134] Based on the above problems, the embodiment of the present application determines and displays the target two-dimensional texture image corresponding to the three-dimensional model according to the first posture corresponding to the trigger operation, thereby avoiding the phenomenon of model penetration when the three-dimensional model is displayed on the two-dimensional model, and improving the user experience.

[0135] In a possible implementation, the 3D special effects view (corresponding to the 3D model in the above embodiment) seen by the camera (corresponding to the rendering camera in the above embodiment) can be rendered to a texture through RenderTexture in Unity (corresponding to the electronic device in the above embodiment), and the steps are as follows:

[0136] Step S01, create a renderTexture through the following algorithm:

[0137] RenderTexture renderTexture=new RenderTexture(width,height,depth,RenderTextureFormat.default);

[0138] renderTexture.Create();

[0139] Step S02, configuring a camera to render special effects onto the RenderTexture created in step S01;

[0140] Step S03: Use the RawImage component to display the content of the RenderTexture on the UI. Since RawImage does not directly support RenderTexture, the RenderTexture needs to be converted into a two-dimensional Texture.

[0141] In one possible implementation, the same 3D special effect can be displayed from multiple different angles and positions, and the views of these different perspectives and positions can be integrated into the UI to achieve multi-perspective and multi-position display of the 3D special effect in Unity.

[0142] For example, multiple cameras can be placed in Unity, each camera is located at a different position and orientation (corresponding to the rendering posture in the above embodiment) to capture three-dimensional special effects from different angles. Each camera is rendered and output to an independent RenderTexture so that the perspective of each camera can be captured separately and stored in its corresponding RenderTexture. In the process of each camera capturing three-dimensional special effects, an adjustment mechanism can be set according to actual needs to dynamically adjust the position and orientation of the camera through the adjustment mechanism to adapt to more complex perspective and position changes. The position and angle of the camera can also be adjusted by changing the value of the Transform component of the camera in Unity or using the animation system.

[0143] In a possible implementation, one camera corresponds to one position and multiple viewing angles, and the RenderTexture corresponding to each camera stores multiple textures corresponding to the multiple viewing angles at the position.

[0144] In a possible implementation, since the multi-view and multi-position display of 3D special effects requires the use of multiple cameras and RenderTextures, the rendering burden is increased. The rendering burden can be reduced by adjusting the camera's rendering settings, using a lower resolution RenderTexture, or optimizing other elements in the scene.

[0145] In a possible implementation, after the rendering of the three-dimensional special effects is completed, the state of the finger dragging can be determined by implementing the unity interfaces IBegindragHandler, IdragHandler, and IEnddragHandler. When the finger operates the operation interface (corresponding to the trigger operation in the above embodiment), the current position and angle of the finger in the screen coordinate system of the operation interface are obtained according to the algorithm Input.GetTouch(0).position (corresponding to the second posture in the above embodiment). Among them, the finger operation on the operation interface may include drag operation, click operation, rotation operation, etc., and the drag operation is used as an example for explanation below.

[0146] In a possible implementation, the coordinate points in the screen coordinate system of the operation interface can be converted into coordinate points in the local coordinate system (corresponding to the first coordinate system in the above embodiment) corresponding to the two-dimensional view (corresponding to the two-dimensional model in the above embodiment) by translation, scaling, etc. Among them, the screen coordinate system can take the upper left corner of the screen as the origin (0, 0), the right direction as the positive direction of the X axis, and the downward direction as the positive direction of the Y axis. The local coordinate system can take the upper left corner of the rectangle corresponding to the two-dimensional view as the origin, the right direction as the positive direction of the X axis, and the downward direction as the positive direction of the Y axis.

[0147] In a possible implementation, the coordinate point in the screen coordinate system can be converted to the coordinate point in the local coordinate system by the following algorithm:

[0148] RectTransformUtility.ScreenPointToLocalPointInRectangle(parentRT,screenPoint,Camera.main,out localPos);

[0149] In a possible implementation, the draggable range of the finger in the screen coordinate system may be determined according to the range of the two-dimensional image in the local coordinate system.

[0150] In a possible implementation, taking the vehicle interior image as a two-dimensional image as an example, Fig. 7A As shown, 701 is a two-dimensional screen, and the range of the two-dimensional screen 701 is the display range of the vehicle interior image in the local coordinate system. The draggable range of the finger can be determined according to the display range of the vehicle interior image in the local coordinate system, so that the electronic device can determine and display the texture to be displayed in response to the trigger operation within the draggable range, and when the trigger operation is not within the draggable range, there is no need to display the texture.

[0151] like Figure 7B As shown, Figure 7B An optional structural schematic diagram of a three-dimensional model provided in an embodiment of the present application displayed on a two-dimensional model, wherein 701 is a two-dimensional screen, 702 is a texture corresponding to the three-dimensional special effects view, and texture 702 can be displayed on the two-dimensional screen 701 according to the position of the finger drag.

[0152] like Figure 8As shown, O is the origin of the local coordinate system, and A, B, C, and D are four vertices of the two-dimensional screen. The vertex coordinates of vertices A, B, C, and D in the two-dimensional screen ABCD in the local coordinate system can be determined respectively, and at least two slopes (which may include the slope corresponding to the side AB and the slope corresponding to the side CD) can be determined according to the multiple vertex coordinates, and the Y-axis maximum value and the Y-axis minimum value of the two-dimensional screen are respectively converted into the Y-axis maximum value and the Y-axis minimum value in the local coordinate system, and the X-axis maximum value and the X-axis minimum value of the two-dimensional screen in the local coordinate system are determined according to the two slopes corresponding to the two-dimensional screen and the Y-axis maximum value and the Y-axis minimum value, so as to determine the range of the two-dimensional screen in the local coordinate system (corresponding to the display range of the two-dimensional view in the first coordinate system in the above embodiment), and the range of the two-dimensional screen in the local coordinate system can be converted into the range of the two-dimensional screen in the screen coordinate system (corresponding to the draggable range of the two-dimensional view in the screen coordinate system in the above embodiment) by translation, scaling, etc., that is, the draggable range of the finger in the screen coordinate system.

[0153] In a possible implementation, after respectively determining the vertex coordinates of vertices A, B, C, and D in the two-dimensional screen ABCD in the local coordinate system, the Y-axis maximum value and the Y-axis minimum value of the two-dimensional screen can be respectively converted into the Y-axis maximum value and the Y-axis minimum value in the local coordinate system, and then the corresponding X-axis coordinate is determined according to the scaling ratio of the converted Y-axis coordinate value to determine the X-axis maximum value and the X-axis minimum value of the two-dimensional screen in the local coordinate system, thereby determining the range of the two-dimensional screen in the local coordinate system. The range of the two-dimensional screen in the local coordinate system can be converted into the range of the two-dimensional screen in the screen coordinate system by translation, scaling, etc., that is, the draggable range of the finger in the screen coordinate system.

[0154] In a possible implementation, the draggable range of the finger in the X-axis direction of the screen coordinate system can be determined according to the initial position of the finger in the screen coordinate system. For example, the initial position of the finger in the screen coordinate system can be converted to the initial position of the finger in the local coordinate system. The vertex coordinates of vertices A, B, C, and D in the two-dimensional screen ABCD in the local coordinate system are determined respectively, and at least two slopes are determined according to the vertex coordinates of A, B, C, and D, and the Y-axis maximum value and the Y-axis minimum value of the two-dimensional screen are respectively converted to the Y-axis maximum value and the Y-axis minimum value in the local coordinate system, and the X-axis maximum value and the X-axis minimum value of the two-dimensional screen in the local coordinate system are determined according to the two slopes corresponding to the two-dimensional screen and the initial Y coordinate of the finger in the local coordinate system, so as to determine the range of the two-dimensional screen in the X-axis direction in the local coordinate system, and the range of the two-dimensional screen in the X-axis direction in the local coordinate system can be converted into the range of the two-dimensional screen in the X-axis direction in the screen coordinate system by translation, scaling, etc., that is, the draggable range of the three-dimensional special effect view in the X-axis direction in the screen coordinate system.

[0155] For example, after converting the maximum Y-axis value and the minimum Y-axis value of the two-dimensional image to the maximum Y-axis value and the minimum Y-axis value in the local coordinate system, for a two-dimensional image whose left slope is smaller than the right slope, the range of the two-dimensional image in the X-axis direction in the screen coordinate system can be determined by the following algorithm:

[0156] float kMin=(leftTopCorner.y-leftBottomCorner.y) / (leftTopCorner.x-leftBottomCorner.x); Algorithm (1);

[0157] float bMin=leftBottomCorner.y-leftBottomCorner.x*kMin; Algorithm (2);

[0158] float xMin=(outPos.y-bMin) / kMin; Algorithm (3);

[0159] float kMax=(rightTopCorner.y-rightBottomCorner.y) / (rightTopCorner.x-rightBottomCorner.x); Algorithm (4);

[0160] float bMax=rightBottomCorner.y-rightBottomCorner.x*kMax; algorithm (5);

[0161] float xMax=(outPos.y-bMax) / kMax; algorithm (6);

[0162] Among them, kMin represents the minimum slope, leftTopCorner.y represents the Y coordinate of the upper left corner of the two-dimensional screen, leftBottomCorner.y represents the Y coordinate of the lower left corner of the two-dimensional screen, leftTopCorner.x represents the X coordinate of the upper left corner of the two-dimensional screen, leftBottomCorner.x represents the X coordinate of the lower left corner of the two-dimensional screen, bMin represents the minimum constant term, xMin represents the minimum X-axis value of the two-dimensional screen, outPos.y represents the Y coordinate of the finger in the local coordinate system, kMax represents the maximum slope, rightTopCorner.y represents the Y coordinate of the upper right corner of the two-dimensional screen, rightBottomCorner.y represents the Y coordinate of the lower right corner of the two-dimensional screen, rightTopCorner.x represents the X coordinate of the upper right corner of the two-dimensional screen, rightBottomCorner.x represents the X coordinate of the lower right corner of the two-dimensional screen, bMax represents the maximum constant term, and xMax represents the maximum X-axis value of the two-dimensional screen.

[0163] The minimum slope can be determined by the above algorithm (1); the minimum constant term can be determined by the above algorithm (2); the minimum X-axis value can be determined by the above algorithm (3); the maximum slope can be determined by the above algorithm (4); the maximum constant term can be determined by the above algorithm (5); the maximum X-axis value can be determined by the above algorithm (6), and thus the range of the two-dimensional image in the X-axis direction in the local coordinate system can be determined according to the X-axis minimum value and the X-axis maximum value, that is, the draggable range of the three-dimensional special effect view in the X-axis direction in the local coordinate system.

[0164] After determining the draggable range, the coordinate point of the finger in the screen coordinate system can be assigned to the anchor point of the three-dimensional special effects view in the local coordinate system (corresponding to the first position in the above embodiment) in response to a drag operation or a click operation within the draggable range, so as to determine the corresponding texture (corresponding to the target two-dimensional texture image in the above embodiment) according to the anchor point position for display.

[0165] When the operation is a rotation operation, the viewing angle of the texture (corresponding to the first angle in the above embodiment) can be determined according to the angle of the finger rotation operation in the screen coordinate system (corresponding to the second angle in the above embodiment) to display the texture corresponding to the viewing angle.

[0166] In a possible implementation, the three-dimensional special effect view can also be operated through interactive methods such as gesture recognition and voice control.

[0167] In an embodiment of the present application, the corresponding position and viewing angle are determined according to the operation of the finger, so that the texture corresponding to the position and viewing angle is determined from multiple textures and displayed, thereby avoiding the phenomenon of penetration when the three-dimensional special effects view is displayed on a two-dimensional screen, and improving the user experience.

[0168] In yet another embodiment of the present application, based on the same inventive concept as the above-mentioned embodiment, Fig. 9 Schematic diagram of an image processing device provided in an embodiment of the present application. Fig. 9 As shown, the image processing device 900 includes an acquisition unit 901, a determination unit 902 and a display unit 903, wherein:

[0169] An acquisition unit 901 is used to acquire a target model; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model;

[0170] A determination unit 902 is configured to determine, in response to a trigger operation of the three-dimensional model, a first pose of the trigger operation in a first coordinate system; and determine, according to the first pose, a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first poses;

[0171] The display unit 903 is used for displaying the target two-dimensional texture image and the two-dimensional model after superposition.

[0172] In a possible implementation, the acquisition unit 901 is also used to create at least two rendering cameras; for each of the at least two rendering cameras, a rendering pose of each rendering camera is determined; for each rendering camera, the three-dimensional model is rendered under the rendering pose of the rendering camera to obtain a two-dimensional texture image corresponding to the rendering pose.

[0173] In a possible implementation, when the trigger operation includes a drag operation, the drag operation corresponds to multiple first postures; the three-dimensional model corresponds to multiple target two-dimensional texture images; and the display unit 903 is further used to sequentially superimpose each of the multiple target two-dimensional texture images with the two-dimensional model and display them.

[0174] In a possible implementation, the determination unit 902 is also used to determine, in response to a trigger operation of the three-dimensional model, a second posture of the trigger operation in the screen coordinate system; determine that a second position in the second posture is within a draggable range in the screen coordinate system; and convert the second posture in the screen coordinate system into a first posture in the first coordinate system.

[0175] In a possible implementation, the determination unit 902 is further used to determine the maximum value and the minimum value of the ordinate in the first coordinate system; determine the maximum value, the minimum value, the maximum value and the minimum value of the ordinate of the two-dimensional model in the first coordinate system based on the maximum value and the minimum value of the ordinate in the first coordinate system; determine the display range of the two-dimensional view in the first coordinate system according to the maximum value, the minimum value, the maximum value and the minimum value of the ordinate of the two-dimensional view in the first coordinate system; determine the draggable range in the screen coordinate system according to the display range of the two-dimensional view in the first coordinate system.

[0176] In a possible implementation, the determination unit 902 is further used to use the maximum value and the minimum value of the ordinate in the first coordinate system as the maximum value and the minimum value of the ordinate of the two-dimensional view in the first coordinate system; determine the minimum slope and the maximum slope of the two-dimensional view according to the vertex coordinates of the two-dimensional view in the first coordinate system; determine the minimum value of the abscissa of the two-dimensional view based on the minimum slope of the two-dimensional view and the minimum value of the ordinate in the first coordinate system; determine the maximum value of the abscissa of the two-dimensional view based on the maximum slope of the two-dimensional view and the maximum value of the ordinate in the first coordinate system.

[0177] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0178] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.

[0179] The embodiment of the present application provides a computer-readable storage medium, on which one or more computer programs are stored, and the one or more computer programs can be executed by one or more processors, and the one or more computer programs implement some or all of the steps in the above method when executed by the processor. The computer-readable storage medium can be transient or non-transient.

[0180] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in an electronic device, a processor in the electronic device executes some or all of the steps for implementing the above method.

[0181] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.

[0182] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.

[0183] Fig.10 A hardware entity diagram of an electronic device provided in an embodiment of the present application, such as Fig.10 As shown, the hardware entity of the electronic device 1000 includes: a processor 1001 and a memory 1002, wherein the memory 1002 stores a computer program that can be run on the processor 1001, and the processor 1001 implements the steps in the method of any of the above embodiments when executing the program.

[0184] The memory 1002 stores computer programs that can be run on the processor. The memory 1002 is configured to store instructions and applications executable by the processor 1001. It can also cache data to be processed or processed by the processor 1001 and various modules in the electronic device 1000 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0185] When the processor 1001 executes the program, the steps of any of the above-mentioned image processing methods can be implemented. The processor 1001 generally controls the overall operation of the electronic device 1000.

[0186] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0187] The processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a central processing unit, a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, and the embodiments of the present application are not specifically limited.

[0188] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0189] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.

[0190] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0191] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0192] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0193] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0194] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0195] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0196] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. An image processing method, characterized in that: include: Acquire a target model; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model; In response to a trigger operation of the three-dimensional model, determining a first pose of the trigger operation in a first coordinate system; According to the first posture, determining a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first postures; The target two-dimensional texture image and the two-dimensional model are superimposed and displayed.

2. The image processing method according to claim 1, characterized in that: Before determining, according to the first posture, a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images, the method further includes: Create at least two rendering cameras; For each of the at least two rendering cameras, determining a rendering pose of each of the rendering cameras; For each of the rendering cameras, the three-dimensional model is rendered at the rendering posture of the rendering camera to obtain a two-dimensional texture image corresponding to the rendering posture.

3. The image processing method according to claim 2, characterized in that: In a case where the trigger operation includes a drag operation, the drag operation corresponds to a plurality of the first postures; The three-dimensional model corresponds to a plurality of target two-dimensional texture images; The displaying of the target two-dimensional texture image and the two-dimensional model after superposition includes: Each of the plurality of target two-dimensional texture images is sequentially superimposed with the two-dimensional model and then displayed.

4. The image processing method according to claim 1, characterized in that: The step of determining, in response to a trigger operation of the three-dimensional model, a first pose of the trigger operation in a first coordinate system includes: In response to a trigger operation of the three-dimensional model, determining a second posture of the trigger operation in a screen coordinate system; Determine that a second position in the second posture is within a draggable range in the screen coordinate system; The second pose in the screen coordinate system is converted to the first pose in the first coordinate system.

5. The image processing method according to claim 4, characterized in that: The method further comprises: Determine the maximum value and the minimum value of the ordinate in the first coordinate system; Determine the maximum value of the ordinate, the minimum value of the ordinate, the maximum value of the abscissa, and the minimum value of the abscissa of the two-dimensional model in the first coordinate system based on the maximum value of the ordinate and the minimum value of the ordinate in the first coordinate system; Determining a display range of the two-dimensional view in the first coordinate system according to a maximum ordinate value, a minimum ordinate value, a maximum abscissa value, and a minimum abscissa value of the two-dimensional view in the first coordinate system; The draggable range in the screen coordinate system is determined according to the display range of the two-dimensional view in the first coordinate system.

6. The image processing method according to claim 5, characterized in that: The determining, based on the maximum value of the ordinate and the minimum value of the ordinate in the first coordinate system, the maximum value of the ordinate, the minimum value of the ordinate, the maximum value of the ordinate, and the minimum value of the ordinate of the two-dimensional model in the first coordinate system comprises: Using the maximum value and the minimum value of the ordinate in the first coordinate system as the maximum value and the minimum value of the ordinate of the two-dimensional view in the first coordinate system; determining a minimum slope and a maximum slope of the two-dimensional view according to vertex coordinates of the two-dimensional view in the first coordinate system; determining a minimum value of a horizontal coordinate of the two-dimensional view based on a minimum slope of the two-dimensional view and a minimum value of a vertical coordinate in the first coordinate system; A maximum value of the abscissa of the two-dimensional view is determined based on the maximum slope of the two-dimensional view and a maximum value of the ordinate in the first coordinate system.

7. An image processing device, characterized in that: include: An acquisition unit, used for acquiring a target model; the target model includes a two-dimensional model and a three-dimensional model on the two-dimensional model; A determination unit, configured to determine, in response to a trigger operation of the three-dimensional model, a first pose of the trigger operation in a first coordinate system; and determine, according to the first pose, a target two-dimensional texture image corresponding to the three-dimensional model in at least two two-dimensional texture images; wherein each of the at least two two-dimensional texture images corresponds to one of the first poses; A display unit is used for displaying the target two-dimensional texture image and the two-dimensional model after superposition.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the image processing method according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image processing method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the image processing method according to any one of claims 1 to 6 is implemented.