3D picture cutting method and terminal

A picture and 3D technology, applied in the field of image processing, can solve problems such as poor user experience, users cannot preview, and pictures cannot be restored, and achieve the effect of convenient restoration.

Pending Publication Date: 2021-11-16
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] A 3D image is a 3D element that is widely used in a wide range of scenarios. In some cases, the user needs to crop the 3D image without losing the texture information of the original 3D image. However, the existing 3D image cropping methods are all direct Copy the texture information of the specified area, and then generate a new 3D picture based on the copied content. The cropped picture cannot be restored, and the user cannot preview the cropped result, and the user experience is poor

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • 3D picture cutting method and terminal
  • 3D picture cutting method and terminal
  • 3D picture cutting method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0078] Please refer to figure 1 , Embodiment 1 of the present invention is:

[0079] A 3D image clipping method, specifically comprising:

[0080] S1. Receive a picture cropping instruction, and generate a cropping shape object and a cropping frame object;

[0081] Generate a clipped shape object specifically as:

[0082] Generate a 2D vector graphic of the same size as the 3D image to be cropped;

[0083] Specifically, use the SVGImporter open source library to generate a 2DShape graphic (two-dimensional vector graphics) with the same size as the original image;

[0084] changing the shader that renders the 2D vector graphics to a texture that can display the 3D image to be cropped;

[0085] Adding thickness information to the two-dimensional vector graphics, generating the same three-dimensional vector graphics as the 3D picture to be cropped, as a cropping shape object;

[0086] Specifically, add the same thickness information as the 3D picture to be cropped for the 2D...

Embodiment 2

[0103] Please refer to image 3 , the second embodiment of the present invention is:

[0104] Apply the above 3D image cropping method to the actual scene:

[0105] E1. Use DevIL to read image texture array information, and use Unity's Image component to display in 3D, specifically:

[0106] Read the texture array information of the 3D picture to be cropped based on DevIL (a graphics open source library), and save the 3D picture to be cropped as a Texture2D (a picture format) that can be recognized by Unity (a development tool) )information;

[0107] Load the Texture2D information of the locally stored 3D image to be cropped in Unity, and display it in 3D through the Image component;

[0108] E2. Generate a cropping shape object and cropping frame, specifically:

[0109] The user sends a crop command, and the material rendering shader (shader) of the 3D image to be cropped is replaced with a shader with a lower brightness value;

[0110] Generate 2DShape graphics (two-dim...

Embodiment 3

[0133] Please refer to figure 2 , Embodiment three of the present invention is:

[0134] A 3D picture cropping terminal 1, the terminal 1 includes a processor 2, a memory 3, and a computer program stored on the memory 3 and operable on the processor 2, when the processor 2 executes the computer program Each step in Embodiment 1 or Embodiment 2 is realized.

[0135] To sum up, the present invention provides a 3D image clipping method and terminal. By setting the clipping shape object, when clipping, the shader rendering the 3D image to be cropped is replaced with a low-brightness shader, and the rendering clipping The shader of the shape object is set to display the texture of the 3D image to be cropped, and the cropping frame object is set on the cropping shape object, and the shader for rendering the 3D image to be cropped in the cropping frame object is set to normal brightness, so that the clipping process can be realized In addition, the cropping frame object can perfor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a 3D picture cutting method and a terminal, and the method comprises the steps: generating a cutting shape object and a cutting frame object by receiving a picture cutting instruction; covering the to-be-cut 3D picture with the cutting shape object; previewing a cutting result in the cutting frame object; when a cutting confirmation instruction is received, copying the texture of the 3D picture to be cut in the cutting frame object to the cutting shape object, and closing texture display of the to-be-cut 3D picture; when a restoration instruction is received, deleting the cut shape object, and starting texture display of the to-be-cut 3D picture; adding a cut shape object to cover a to-be-cut 3D picture, and when cutting is confirmed, copying a part of picture texture, which needs to be cut, on the to-be-cut 3D picture to the cutting shape object, thereby realizing preview of a cutting result in a cutting process and restoration of the to-be-clipped 3D picture after cutting is completed.

Description

technical field [0001] The present invention relates to the field of image processing, in particular to a 3D image cropping method and terminal. Background technique [0002] A 3D image is a 3D element that is widely used in a wide range of scenarios. In some cases, the user needs to crop the 3D image without losing the texture information of the original 3D image. However, the existing 3D image cropping methods are all direct Copy the texture information of the specified area, and then generate a new 3D picture according to the copied content. The cropped picture cannot be restored, and the user cannot preview the cropped result, so the user experience is poor. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a 3D picture cropping method and terminal, enabling users to preview the cropping results during the cropping process and restore the cropped pictures. [0004] In order to solve the above-mentioned technic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06T15/04G06T15/55G06T19/20G06T5/00
CPCG06T15/04G06T15/55G06T19/20G06T5/00Y02D10/00
Inventor 刘德建曹增欢方振华高秀英郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products