Method and device for determining shadow effect and electronic device

A determination method and shadow technology, applied in the field of image processing, can solve the problems of poor framing effect, physical exhaustion, high cost, etc., and achieve the effect of improving acquisition quality, realistic shadow effect, and beautiful appearance.

CN108986203AInactive Publication Date: 2018-12-11PACIFIC FUTURE TECH (SHENZHEN) CO LTD
12 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2018-12-11
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention provides a method and a device for determining a shadow effect, and an electronic device. The method comprises the following steps: obtaining a target picture, and decomposing the target picture into a first preset number of sub-pictures; determining a light intensity weighting center according to an image moment of the sub-picture, and determining light source position information of the target picture based on the light intensity weighting center and the geometric center of the sub-picture; generating a shadow effect of the target object according to the lightsource position information, the position information of the target object on the target picture, and the contour information. Through the method, the device and the electronic device, the light source position in the picture can be accurately and conveniently obtained, and other first-related factors are considered in the process of generating the shadow effect of the virtual object, so that theshadow effect of the virtual object is more realistic, and the immersion feeling of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of image processing, in particular to a method, device and electronic equipment for determining shadow effects. Background technique

[0002] Augmented Reality (AR) technology is a technology that calculates the position and angle of camera images in real time and adds corresponding images, videos, and 3D models to place virtual objects on the screen in the real world and interact with them. Users can perceive the existence of virtual objects by using AR devices. However, in the process of realizing the present invention, the inventor found that in related technologies, when rendering shadow effects on virtual objects, the shadow shape is generally only determined according to the shape of the virtual object, but in real scenes due to various factors The shape of the influence shadow generally has a certain deviation from its object body, which makes the shadow effect of the virtual object inconsist...

Examples

Embodiment Construction

[0037] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the embodiments of the present invention shall fall within the protection scope of the embodiments of the present invention.

[0038] The execution subject of the embodiment of the present invention is an electronic device or a server, and the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a desktop computer with a camera, and the like. Some embodiments of the...