A photographing guidance method and apparatus, an electronic device, and a storage medium

By determining the physical position of the object to be modeled on the shooting device and matching it with a virtual polyhedron, augmented reality technology is used for shooting guidance, which solves the problem of reliance on human experience and improves the efficiency of taking pictures.

CN115937398BActive Publication Date: 2026-07-14BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2021-09-07
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

In existing technologies, the determination of the shooting angle and number of shots relies excessively on manual modeling experience, resulting in high labor costs and low efficiency.

Method used

The physical position of the object to be modeled is determined based on the physical position of the shooting device, a virtual polyhedron is matched, and augmented reality technology is used to display the virtual polyhedron on the shooting page to guide the shooting, automatically determining the shooting angle and number of shots.

Benefits of technology

It enables automatic determination of shooting angle and number of shots, reducing reliance on manual modeling experience and improving shooting efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115937398B_ABST
    Figure CN115937398B_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure discloses a photographing guiding method and device, electronic equipment and storage medium, the method comprises the following steps: determining the physical position of the object to be modeled according to the physical position of the shooting device; determining a virtual polyhedron matched with the object to be modeled according to the physical position of the object to be modeled; displaying the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology, and obtaining the photos of the object to be modeled under different shooting angles based on the virtual polyhedron. The photographing guiding method provided by the present disclosure realizes the automatic determination of the photographing angle and the number, improves the photographing efficiency, and solves the problem of excessive dependence on artificial modeling experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of information technology, and in particular to a photo-guided method, apparatus, electronic device, and storage medium. Background Technology

[0002] Before modeling a target object, it is usually necessary to take photos of the target object from different angles to obtain photos of the target object from multiple perspectives. Then, a physical model of the target object is built based on these photos. The more perspectives the photos cover, the higher the accuracy of the physical model.

[0003] Currently, it is usually done by manually holding a camera and taking pictures of the target object from different angles. The angle and number of pictures are determined based on the modeling experience of the person.

[0004] Clearly, current photography methods rely too heavily on human modeling experience, resulting in high labor costs and low efficiency. Summary of the Invention

[0005] To address or at least partially address the aforementioned technical problems, this disclosure provides a photo-taking guidance method, apparatus, electronic device, and storage medium that automatically determines the photo-taking angle and number of shots, improving photo-taking efficiency and resolving the problem of over-reliance on manual modeling experience.

[0006] In a first aspect, embodiments of this disclosure provide a photo-guided method, the method comprising:

[0007] The physical position of the object to be modeled is determined based on the physical position of the shooting device;

[0008] Determine a virtual polyhedron that matches the object to be modeled based on its physical position;

[0009] Based on AR (Augmented Reality) technology, the virtual polyhedron is displayed on the shooting page of the shooting device to guide the shooting and obtain photos of the object to be modeled from different shooting angles.

[0010] In this context, the faces that make up the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces that make up the virtual polyhedron represents the number of photographs of the object to be modeled needs to be taken.

[0011] Secondly, this disclosure also provides a photo-taking guidance device, which includes:

[0012] The first determining module is used to determine the physical position of the object to be modeled based on the physical position of the shooting device;

[0013] The second determining module is used to determine a virtual polyhedron that matches the object to be modeled based on the physical position of the object to be modeled.

[0014] The guidance module is used to display the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology, so as to guide the shooting based on the virtual polyhedron and obtain photos of the object to be modeled from different shooting angles;

[0015] In this context, the faces that make up the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces that make up the virtual polyhedron represents the number of photographs of the object to be modeled needs to be taken.

[0016] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:

[0017] One or more processors;

[0018] Storage device for storing one or more programs;

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the photo-taking guidance method as described above.

[0020] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the photographing guidance method as described above.

[0021] The technical solution provided in this disclosure has at least the following advantages compared with the prior art:

[0022] The photo-taking guidance method provided in this disclosure determines the physical position of the object to be modeled based on the physical position of the shooting device; determines a virtual polyhedron matching the object to be modeled based on the physical position of the object to be modeled; and displays the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology to guide the shooting process and obtain photos of the object to be modeled from different shooting angles. The faces of the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces of the virtual polyhedron represents the number of photos of the object to be modeled needs to be taken. This method achieves photo-taking guidance and solves the problem of over-reliance on manual modeling experience to determine the shooting angle and number of photos. Attached Figure Description

[0023] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0024] Figure 1 This is a flowchart of a photo-taking guidance method according to an embodiment of the present disclosure;

[0025] Figure 2 This is a schematic diagram of the structure of a virtual polyhedron in an embodiment of this disclosure;

[0026] Figure 3 This is a flowchart of a photo-taking guidance method according to an embodiment of the present disclosure;

[0027] Figure 4 This is a schematic diagram of the structure of a virtual polyhedron in an embodiment of this disclosure;

[0028] Figure 5 This is a schematic diagram of the structure of a photo-taking guidance device according to an embodiment of the present disclosure;

[0029] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this disclosure. Detailed Implementation

[0030] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0031] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0032] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0033] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0034] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0035] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0036] Figure 1 This is a flowchart illustrating a photo-taking guidance method according to an embodiment of this disclosure. The method can be executed by a photo-taking guidance device, which can be implemented in software and / or hardware. This device can be configured in an electronic device, such as a display terminal, specifically including but not limited to smartphones, PDAs, tablets, portable wearable devices, smart home devices (e.g., table lamps), and other electronic devices equipped with a display screen and a camera.

[0037] like Figure 1 As shown, the method may specifically include the following steps:

[0038] Step 110: Determine the physical position of the object to be modeled based on the physical position of the shooting device.

[0039] The shooting device can refer to a camera or a handheld terminal equipped with a camera, such as a smartphone. The physical location of the shooting device refers to its actual location in physical space; in other words, it refers to its coordinate position in the world coordinate system.

[0040] In one implementation, determining the physical position of the object to be modeled based on the physical position of the shooting device includes: determining the physical position of the shooting device based on a preset algorithm when the shooting device is located at the position of the object to be modeled; and determining the physical position of the shooting device as the physical position of the object to be modeled. When taking a picture of the object to be modeled, it is usually placed in a specific position to place it in an environment conducive to shooting, such as having light-colored surroundings to minimize the impact on the shooting. To obtain the physical position of the object to be modeled when it is placed in the specific position, the shooting device can be placed in the specific position first, and the physical position of the shooting device can be determined based on a preset algorithm. This physical position is the object position of the object to be modeled when it is placed in the specific position. Taking a smartphone as an example, a SLAM (Simultaneous Localization and Mapping) algorithm can be run on the smartphone. When the smartphone is placed in the specific position, the physical position of the smartphone is determined by the SLAM algorithm. This physical position is the physical position of the object to be modeled when it is placed in the specific position.

[0041] In another embodiment, determining the physical position of the object to be modeled based on the physical position of the imaging device includes: taking a picture of the object to be modeled using the imaging device to obtain an image of the object; determining the physical position of the imaging device based on a preset algorithm; performing image analysis on the image to determine the relative positional relationship between the object to be modeled and the imaging device; and determining the physical position of the object to be modeled based on the physical position of the imaging device and the relative positional relationship. That is, the positions of the object to be modeled and the imaging device are not limited; the object to be modeled can be placed anywhere, and the imaging device can also be placed anywhere, as long as the object to be modeled can be captured from the location of the imaging device. The relative position between the imaging device and the object to be modeled is determined based on the captured image, and then the physical position of the object to be modeled is determined based on the physical position of the imaging device and the relative position.

[0042] Step 120: Determine a virtual polyhedron that matches the object to be modeled based on the physical position of the object to be modeled.

[0043] In this context, the virtual polyhedron matching the object to be modeled refers to a polyhedron that can enclose the object, essentially a cover that encloses it. The virtual polyhedron comprises many faces, each representing a shooting perspective. That is, looking at the object from one face of the virtual polyhedron reveals a portion of the object from a specific viewpoint. The total number of faces in the virtual polyhedron represents the total number of images required. If the object to be modeled has a complex shape, the matching virtual polyhedron can include more faces to obtain as many images as possible, resulting in a more accurate object model built from these images. If the object to be modeled has a simpler shape, the matching virtual polyhedron can include fewer faces. The specific number of faces required for the virtual polyhedron can be set via parameters. For more detailed models, a higher number of faces is needed, typically set by experienced engineers. Once the number of faces is set, the virtual polyhedron is automatically generated. Guided by the virtual polyhedron, even those without modeling experience can photograph the object, thus addressing the problem of over-reliance on manual modeling experience.

[0044] For example, see references to Figure 2 The diagram shown is a structural schematic of a virtual polyhedron. Figure 2 As can be seen from this, the virtual polyhedron consists of many faces 210.

[0045] Step 130: Based on augmented reality (AR) technology, the virtual polyhedron is displayed on the shooting page of the shooting device to guide the shooting process and obtain photos of the object to be modeled from different shooting angles.

[0046] In this virtual polyhedron, the faces representing the shooting angles from which the object to be modeled needs to be photographed, and the number of faces representing the number of photographs of the object to be modeled, are used to construct a 3D model of the object. For example, if the object to be modeled is a shoe, then photographs of the shoe taken from different shooting angles are used to construct a 3D model of the shoe. This 3D model can be used to implement a virtual try-on function in a virtual try-on scenario. Specifically, on the try-on page, the user's feet are photographed using the terminal camera, and then the 3D model of the shoe to be tried on is controlled to be worn on the photographed user's feet, presenting a virtual try-on effect. Furthermore, the 3D model of the shoe can be stored on the server as a file package. When the client needs to access the 3D model of the shoe, it retrieves the corresponding 3D model from the server.

[0047] Specifically, taking a smartphone as an example, from the user's perspective, although the user holds the phone and points the camera at the object to be modeled, the shooting page displayed on the phone does not show the object being modeled, but rather the virtual polyhedron. When the user moves the phone and changes the position of the camera, the corresponding face of the virtual polyhedron displayed on the shooting page changes color. For example, initially, many faces of the virtual polyhedron are red, only the target face currently being pointed at by the camera is green. If the user triggers the shooting control at this time, i.e., takes a picture, the target face currently being pointed at by the camera remains green. Even if the user moves the phone to point the camera at other faces of the virtual polyhedron, the target face remains green, indicating that a picture has been taken. If the user does not trigger the shooting control when the camera is pointed at the target face, and then moves the phone so that the camera is no longer pointed at the target face but at another face, the target face returns to red, indicating that the picture of the target face has not yet been taken. The other faces the camera is pointing at temporarily turn green, and only when the user takes a picture of the face the camera is pointing at will that face remain green.

[0048] By using multiple faces of a virtual polyhedron to guide users in taking photos, users don't need to choose shooting angles themselves; they can simply aim at the multiple faces of the virtual polyhedron and take pictures. By controlling the color of each face of the virtual polyhedron, users can easily remember which angles of photos have been taken and which angles of photos have not yet been taken, which can very conveniently guide users to complete the shooting quickly and improve shooting efficiency.

[0049] Specifically, in one implementation, based on augmented reality (AR) technology, the virtual polyhedron is displayed on the shooting page of the shooting device to guide shooting and obtain photos of the object to be modeled from different shooting angles. This includes: providing a first prompt to guide the user to focus the shooting device on a target face that makes up the virtual polyhedron, where the target face is one of the multiple faces that make up the virtual polyhedron. The first prompt can be delivered via voice announcement, displaying prompt text, or displaying prompt gestures. In response to the shooting operation on the target face via the shooting device, the color of the target face changes to prompt the user to focus the shooting device on other faces that make up the virtual polyhedron. Other faces refer to any face other than the target face. Since the target face has already been photographed, the user can be guided to continue photographing other faces. Here, the faces that make up the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces that make up the virtual polyhedron represents the number of photos of the object to be modeled needs to be taken.

[0050] Furthermore, in one embodiment, a shooting distance prompt can be provided. Specifically, if the user is far from the object to be modeled, the user is prompted to move closer; if the user is close to the object, the user is prompted to move away. Specifically, the step of displaying the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology to guide shooting and obtain photos of the object to be modeled from different shooting angles includes: if the virtual polyhedron extends beyond the shooting page (i.e., the shooting page cannot display the complete virtual polyhedron), a second prompt is issued to prompt the user to move the shooting device closer to the object; if the area occupied by the virtual polyhedron on the shooting page is less than a set value, a third prompt is issued to prompt the user to move the shooting device away from the object. The second and third prompts can be delivered via voice or displayed text.

[0051] The photo-taking guidance method provided in this embodiment determines the physical position of the object to be modeled based on the position of the shooting device, and then determines a virtual polyhedron that can be placed over the object based on its physical position. The determined virtual polyhedron is displayed on the shooting page, and the user is guided to take photos by using multiple faces of the virtual polyhedron. This eliminates the need for the user to select a shooting angle; the user only needs to aim at the multiple faces of the virtual polyhedron to take the photo. By controlling the color of each face of the virtual polyhedron, the user can easily remember which angles of photos have been taken and which angles have not yet been taken, which can very conveniently guide the user to quickly complete the shooting process and improve shooting efficiency.

[0052] Figure 3 This is a flowchart illustrating a photo-guided method in one embodiment. Based on the above embodiments, this embodiment provides a specific implementation method for step 120, "determining a virtual polyhedron matching the object to be modeled based on the physical position of the object to be modeled."

[0053] like Figure 3 As shown, the photo-taking guidance method includes the following steps:

[0054] Step 310: Determine the physical position of the object to be modeled based on the physical position of the shooting device.

[0055] Step 320: Determine multiple circles on a set plane based on the physical position and shape characteristics of the object to be modeled.

[0056] The plane can be a horizontal plane, a vertical plane perpendicular to the horizontal plane, or a plane that forms a certain angle with the horizontal plane.

[0057] Taking a horizontal plane as an example, multiple circles are determined on the plane based on the physical position and shape characteristics of the object to be modeled. This includes: determining a first circle on the horizontal plane with the physical position of the object as the first center and a first preset value as the first radius; moving the first center a preset distance in the opposite direction of gravity (i.e., vertically upward) to obtain a second center; determining a second circle on the horizontal plane with the second center as the center and a second preset value as the second radius; similarly, continuing to move the first center in the opposite direction of gravity to obtain a third center, a fourth center, and so on. Correspondingly, determining a third circle on the horizontal plane with a third preset value as the third radius, a fourth circle on the horizontal plane with a fourth preset value as the fourth radius, and so on, until the first center reaches a set position. The multiple circles include the first circle and the second circle, and the first preset value, the preset distance, the second preset value, and the set position are determined based on the shape characteristics of the object to be modeled. It is understandable that if the bottom of the object to be modeled is wider than the top, such as a cone shape, then the second radius of the second circle is smaller than the first radius of the first circle; if the bottom of the object to be modeled is narrower than the top, such as an inverted cone shape, then the second radius of the second circle is larger than the first radius of the first circle.

[0058] The total number of circles that make up the virtual polyhedron on the horizontal plane is determined by the shape of the object to be modeled. Since the final virtual polyhedron needs to be able to enclose the object to be modeled, the virtual polyhedron must be wider than the widest part of the object to be modeled and taller than the highest part of the object to be modeled.

[0059] Step 330: Determine multiple faces based on the multiple circles on the set plane, and form the virtual polyhedron based on the multiple faces.

[0060] In one embodiment, determining multiple faces based on multiple circles on a set plane includes: determining a preset number of points on a first arc of the first circle; determining a preset number of points on a second arc of the second circle; and connecting the points on the first arc and the points on the second arc in a one-to-one correspondence to form the multiple faces; the preset number is determined based on the shape characteristics of the object to be modeled. Here, connecting the points on the first arc and the points on the second arc in a one-to-one correspondence means that a point on the first arc can only be connected to a point on the second arc, and a point on the second arc can only be connected to a point on the first arc. (See reference...) Figure 4 The diagram shows a virtual polyhedron structure, which includes multiple circles on a horizontal plane. Each circle has multiple points on its arc, and the points on adjacent arcs are connected one-to-one to form multiple faces.

[0061] Step 340: Based on augmented reality (AR) technology, the virtual polyhedron is displayed on the shooting page of the shooting device to guide the shooting process and obtain photos of the object to be modeled from different shooting angles.

[0062] In this context, the faces that make up the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces that make up the virtual polyhedron represents the number of photographs of the object to be modeled needs to be taken.

[0063] Figure 5 This is a schematic diagram of the structure of a photo-taking guidance device according to an embodiment of this disclosure. Figure 5 As shown, the photo-taking guidance device specifically includes: a first determining module 510, a second determining module 520, and a guiding module 530.

[0064] The system includes a first determining module 510, used to determine the physical position of the object to be modeled based on the physical position of the shooting device; a second determining module 520, used to determine a virtual polyhedron matching the object to be modeled based on the physical position of the object to be modeled; and a guiding module 530, used to display the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology, to guide the shooting based on the virtual polyhedron and obtain photos of the object to be modeled from different shooting angles. The faces that make up the virtual polyhedron represent the shooting angles that need to be taken of the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken of the object to be modeled.

[0065] Optionally, the first determining module 510 includes a first determining unit, used to determine the physical position of the shooting device based on a preset algorithm when the shooting device is located at the position of the object to be modeled; and a second determining unit, used to determine the physical position of the shooting device as the physical position of the object to be modeled.

[0066] Optionally, the first determining module 510 includes a shooting unit for shooting the object to be modeled using a shooting device to obtain a captured image of the object to be modeled; an analysis unit for performing image analysis on the captured image to determine the relative positional relationship between the object to be modeled and the shooting device; and a third determining unit for determining the physical position of the object to be modeled based on the physical position of the shooting device and the relative positional relationship.

[0067] Optionally, the second determining module 520 includes: a fourth determining unit, used to determine multiple circles on a set plane based on the physical position and shape characteristics of the object to be modeled; a fifth determining unit, used to determine multiple faces based on the multiple circles on the set plane; and to form the virtual polyhedron based on the multiple faces.

[0068] Optionally, the fourth determining unit includes: a first determining subunit, used to determine a first circle on a horizontal plane with the physical position of the object to be modeled as the first center and a first preset value as the first radius; a first moving subunit, used to move the first center of the circle a preset distance in the opposite direction of gravity to obtain a second center; and a second determining subunit, used to determine a second circle on a horizontal plane with the second center as the center and a second preset value as the second radius; wherein the plurality of circles includes the first circle and the second circle, and the first preset value, the preset distance, and the second preset value are determined according to the shape characteristics of the object to be modeled.

[0069] Optionally, the fifth determining unit includes: a third determining subunit, used to determine a preset number of points on the first arc of the first circle; and to determine a preset number of points on the second arc of the second circle; and a connecting subunit, used to connect the points on the first arc and the points on the second arc one-to-one to form the plurality of surfaces; the preset number is determined according to the shape characteristics of the object to be modeled.

[0070] Optionally, the guidance module 530 includes: a first prompting unit for providing a first prompt to prompt the user to align the shooting focus of the shooting device with the target face that makes up the virtual polyhedron; and a control unit for controlling the color of the target face to change in response to the shooting operation of the shooting device on the target face, so as to prompt the user to align the shooting focus of the shooting device with the other faces that make up the virtual polyhedron; wherein, the faces that make up the virtual polyhedron represent the shooting angles that need to be photographed on the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken on the object to be modeled.

[0071] Optionally, the guidance module 530 includes: a second prompting unit, configured to provide a second prompt if the virtual polyhedron extends beyond the shooting page, prompting the user to move the shooting device closer to the object to be photographed; and a third prompting unit, configured to provide a third prompt if the area occupied by the virtual polyhedron on the shooting page is less than a set value, prompting the user to move the shooting device away from the object to be photographed.

[0072] The photo-taking guidance device provided in this embodiment determines the physical position of the object to be modeled based on the position of the shooting device, and then determines a virtual polyhedron that can be placed over the object based on the physical position of the object. The determined virtual polyhedron is displayed on the shooting page, and the user is guided to take photos by using multiple faces of the virtual polyhedron. This eliminates the need for the user to select a shooting angle; the user only needs to aim at the multiple faces of the virtual polyhedron to take a picture. By controlling the color of each face of the virtual polyhedron, the user can easily remember which angles of photos have been taken and which angles have not yet been taken, which can very conveniently guide the user to complete the shooting quickly and improve shooting efficiency.

[0073] The photo-taking guidance device provided in this embodiment can execute the steps in the photo-taking guidance method provided in this embodiment, and has the execution steps and beneficial effects, which will not be repeated here.

[0074] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this disclosure. See below for details. Figure 6 The diagram illustrates a structural schematic suitable for implementing the electronic device 600 in the embodiments of this disclosure. The electronic device 600 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), wearable electronic devices, etc., as well as fixed terminals such as digital TVs, desktop computers, smart home devices, etc. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0075] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes to implement the methods of embodiments as described in this disclosure, based on a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of electronic device 600. The processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. An input / output (I / O) interface 605 is also connected to bus 604.

[0076] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0077] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts, thereby implementing the methods as described above. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.

[0078] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0079] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0080] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0081] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:

[0082] The physical position of the object to be modeled is determined based on the physical position of the shooting device; a virtual polyhedron matching the object to be modeled is determined based on the physical position of the object to be modeled; based on augmented reality (AR) technology, the virtual polyhedron is displayed on the shooting page of the shooting device to guide the shooting and obtain photos of the object to be modeled from different shooting angles; wherein, the faces that make up the virtual polyhedron represent the shooting angles that need to be taken of the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken of the object to be modeled.

[0083] Optionally, when one or more of the above-described procedures are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.

[0084] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0086] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0087] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0088] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0089] According to one or more embodiments of this disclosure, a photo-taking guidance method is provided, comprising: determining the physical position of an object to be modeled based on the physical position of a shooting device; determining a virtual polyhedron matching the object to be modeled based on the physical position of the object to be modeled; displaying the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology, so as to guide the shooting based on the virtual polyhedron and obtain photos of the object to be modeled from different shooting angles; wherein, the faces constituting the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces constituting the virtual polyhedron represents the number of photos of the object to be modeled needs to be taken.

[0090] According to one or more embodiments of this disclosure, in the photo-taking guidance method provided in this disclosure, optionally, determining the physical position of the object to be modeled based on the physical position of the shooting device includes: when the shooting device is located at the position of the object to be modeled, determining the physical position of the shooting device based on a preset algorithm; and determining the physical position of the shooting device as the physical position of the object to be modeled.

[0091] According to one or more embodiments of this disclosure, in the photo-guided method provided in this disclosure, optionally, determining the physical position of the object to be modeled based on the physical position of the shooting device includes: taking a picture of the object to be modeled using the shooting device to obtain a captured image of the object to be modeled; determining the physical position of the shooting device based on a preset algorithm; performing image analysis on the captured image to determine the relative positional relationship between the object to be modeled and the shooting device; and determining the physical position of the object to be modeled based on the physical position of the shooting device and the relative positional relationship.

[0092] According to one or more embodiments of this disclosure, in the photo-guided method provided in this disclosure, optionally, the step of determining a virtual polyhedron matching the object to be modeled based on the physical position of the object to be modeled includes: determining multiple circles on a set plane based on the physical position and shape characteristics of the object to be modeled; determining multiple faces based on the multiple circles on the set plane; and assembling the virtual polyhedron based on the multiple faces.

[0093] According to one or more embodiments of this disclosure, in the photo-guided method provided in this disclosure, optionally, determining multiple circles on a set plane based on the physical position and shape characteristics of the object to be modeled includes: determining a first circle on a horizontal plane with the physical position of the object to be modeled as the first circle center and a first preset value as the first radius; moving the first circle center a preset distance in the opposite direction of gravity to obtain a second circle center; determining a second circle on a horizontal plane with the second circle center as the circle center and a second preset value as the second radius; wherein the multiple circles include the first circle and the second circle, and the first preset value, the preset distance, and the second preset value are determined according to the shape characteristics of the object to be modeled.

[0094] According to one or more embodiments of this disclosure, in the photo-guided method provided in this disclosure, optionally, the step of determining multiple faces based on multiple circles on a set plane includes: determining a preset number of points on a first arc of the first circle; determining a preset number of points on a second arc of the second circle; connecting the points on the first arc and the points on the second arc one-to-one to form the multiple faces; the preset number is determined according to the shape characteristics of the object to be modeled.

[0095] According to one or more embodiments of this disclosure, in the photo-taking guidance method provided in this disclosure, optionally, the step of displaying the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology to guide shooting based on the virtual polyhedron and obtain photos of the object to be modeled from different shooting angles includes: providing a first prompt to prompt the user to align the shooting focus of the shooting device with the target face that makes up the virtual polyhedron; and controlling the color of the target face to change in response to the shooting operation of the shooting device on the target face to prompt the user to align the shooting focus of the shooting device with the other faces that make up the virtual polyhedron; wherein, the faces that make up the virtual polyhedron represent the shooting angles that need to be photographed on the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken on the object to be modeled.

[0096] According to one or more embodiments of this disclosure, in the photo-taking guidance method provided in this disclosure, optionally, the step of displaying the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology to guide the shooting and obtain photos of the object to be modeled from different shooting angles includes: if the virtual polyhedron extends beyond the shooting page, a second prompt is made to prompt the user to move the shooting device closer to the object to be photographed; if the area occupied by the virtual polyhedron on the shooting page is smaller than a set value, a third prompt is made to prompt the user to move the shooting device away from the object to be photographed.

[0097] According to one or more embodiments of this disclosure, a photo-taking guidance device is provided, comprising: a first determining module, configured to determine the physical position of an object to be modeled based on the physical position of a shooting device; a second determining module, configured to determine a virtual polyhedron matching the object to be modeled based on the physical position of the object to be modeled; and a guiding module, configured to display the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology, so as to guide the shooting based on the virtual polyhedron and obtain photos of the object to be modeled from different shooting angles; wherein, the faces constituting the virtual polyhedron represent the shooting angles from which the object to be modeled needs to be photographed, and the number of faces constituting the virtual polyhedron represents the number of photos of the object to be modeled needs to be taken.

[0098] According to one or more embodiments of this disclosure, in the photo-taking guidance device provided in this disclosure, optionally, the first determining module includes a first determining unit, used to determine the physical position of the shooting device based on a preset algorithm when the shooting device is located at the position of the object to be modeled; and a second determining unit, used to determine the physical position of the shooting device as the physical position of the object to be modeled.

[0099] According to one or more embodiments of this disclosure, in the photo-taking guidance device provided in this disclosure, optionally, the first determining module includes a shooting unit, used to take a picture of the object to be modeled by the shooting device to obtain a photographed image of the object to be modeled; an analysis unit, used to perform image analysis on the photographed image to determine the relative positional relationship between the object to be modeled and the shooting device; and a third determining unit, used to determine the physical position of the object to be modeled based on the physical position of the shooting device and the relative positional relationship.

[0100] According to one or more embodiments of this disclosure, in the photo-taking guidance device provided in this disclosure, optionally, the second determining module includes: a fourth determining unit, used to determine multiple circles on a set plane based on the physical position and shape characteristics of the object to be modeled; a fifth determining unit, used to determine multiple faces based on the multiple circles on the set plane; and to form the virtual polyhedron based on the multiple faces.

[0101] According to one or more embodiments of this disclosure, in the photographic guidance device provided in this disclosure, optionally, the fourth determining unit includes: a first determining subunit, configured to determine a first circle on a horizontal plane with the physical position of the object to be modeled as the first center and a first preset value as the first radius; a first moving subunit, configured to move the first center of the circle a preset distance in the opposite direction of gravity to obtain a second center; and a second determining subunit, configured to determine a second circle on a horizontal plane with the second center as the center and a second preset value as the second radius; wherein the plurality of circles includes the first circle and the second circle, and the first preset value, the preset distance, and the second preset value are determined according to the shape characteristics of the object to be modeled.

[0102] According to one or more embodiments of this disclosure, in the photo-taking guidance device provided in this disclosure, optionally, the fifth determining unit includes: a third determining subunit, used to determine a preset number of points on the first arc of the first circle; and to determine a preset number of points on the second arc of the second circle; a connecting subunit, used to connect the points on the first arc and the points on the second arc one-to-one to form the plurality of surfaces; the preset number is determined according to the shape characteristics of the object to be modeled.

[0103] According to one or more embodiments of this disclosure, in the photo-taking guidance device provided in this disclosure, optionally, the guidance module includes: a first prompting unit, used to provide a first prompt to prompt the user to align the shooting focus of the shooting device with the target face that makes up the virtual polyhedron; and a control unit, used to control the color of the target face to change in response to the shooting operation of the shooting device on the target face, so as to prompt the user to align the shooting focus of the shooting device with the other faces that make up the virtual polyhedron; wherein, the faces that make up the virtual polyhedron represent the shooting angles that need to be photographed on the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken on the object to be modeled.

[0104] According to one or more embodiments of this disclosure, in the photo-taking guidance device provided in this disclosure, optionally, the guidance module includes: a second prompting unit, configured to provide a second prompt if the virtual polyhedron exceeds the shooting page, so as to prompt the user to move the shooting device closer to the object to be photographed; and a third prompting unit, configured to provide a third prompt if the area occupied by the virtual polyhedron on the shooting page is less than a set value, so as to prompt the user to move the shooting device away from the object to be photographed.

[0105] According to one or more embodiments of this disclosure, this disclosure provides an electronic device, including:

[0106] One or more processors;

[0107] Memory, used to store one or more programs;

[0108] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the photo-guided methods provided in this disclosure.

[0109] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements any of the photographic guidance methods provided in the present disclosure.

[0110] This disclosure also provides a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the photographing guidance method described above.

[0111] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0112] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0113] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for guiding photo taking, characterized in that, The method includes: The physical position of the object to be modeled is obtained based on the physical position of the shooting device; Obtain a virtual polyhedron that matches the physical position of the object to be modeled; Based on augmented reality (AR) technology, the virtual polyhedron is displayed on the shooting page of the shooting device to guide the shooting and obtain photos of the object to be modeled from different shooting angles. The photos of the object to be modeled from different shooting angles are used to construct a three-dimensional model of the object to be modeled. Wherein, the faces that make up the virtual polyhedron represent the shooting angles that need to be photographed on the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken on the object to be modeled. The step of obtaining a virtual polyhedron matching the object to be modeled based on its physical position includes: Multiple circles are determined on a set plane based on the physical position and shape characteristics of the object to be modeled; Multiple surfaces are determined based on the multiple circles on the defined plane; The virtual polyhedron is composed of the multiple faces.

2. The method according to claim 1, characterized in that, The step of obtaining the physical position of the object to be modeled based on the physical position of the shooting device includes: When the shooting device is located at the position of the object to be modeled, the physical position of the shooting device is obtained based on a preset algorithm; The physical position of the shooting device is obtained as the physical position of the object to be modeled.

3. The method according to claim 1, characterized in that, The step of obtaining the physical position of the object to be modeled based on the physical position of the shooting device includes: The object to be modeled is photographed using a photographing device to obtain a photographed image of the object to be modeled. The physical location of the shooting device is obtained based on a preset algorithm; Image analysis is performed on the captured images to obtain the relative positional relationship between the object to be modeled and the capturing device; The physical position of the object to be modeled is obtained based on the physical position of the shooting device and the relative positional relationship.

4. The method according to claim 1, characterized in that, The step of determining multiple circles on a set plane based on the physical position and shape features of the object to be modeled includes: A first circle is defined on a horizontal plane with the physical position of the object to be modeled as the first center and a first preset value as the first radius. The second center is obtained by moving the first center of the circle a predetermined distance in the opposite direction of gravity. A second circle is defined on the horizontal plane with the second center as the center and the second preset value as the second radius; The plurality of circles includes the first circle and the second circle, and the first preset value, the preset distance, and the second preset value are determined according to the shape features of the object to be modeled.

5. The method according to claim 4, characterized in that, The step of determining multiple surfaces based on multiple circles on a defined plane includes: A predetermined number of points are determined on the first arc of the first circle; A predetermined number of points are determined on the second arc of the second circle; Connect the points on the first arc with the points on the second arc one by one to form the plurality of surfaces; The preset quantity is determined based on the shape characteristics of the object to be modeled.

6. The method according to any one of claims 1-5, characterized in that, The augmented reality (AR) technology displays a virtual polyhedron on the shooting page of the shooting device to guide the shooting process and obtain photographs of the object to be modeled from different shooting angles, including: The first prompt is given to prompt the user to align the shooting focus of the shooting device with the target surface that makes up the virtual polyhedron; In response to the shooting operation of the shooting device on the target surface, the color of the target surface is changed to prompt the user to focus the shooting device on the other faces that make up the virtual polyhedron.

7. The method according to any one of claims 1-5, characterized in that, The augmented reality (AR) technology displays a virtual polyhedron on the shooting page of the shooting device to guide the shooting process and obtain photographs of the object to be modeled from different shooting angles, including: If the virtual polyhedron extends beyond the shooting page, a second prompt will be given to encourage the user to move the shooting device closer to the object to be modeled. If the virtual polyhedron occupies a smaller area on the shooting page than a set value, a third prompt will be given to remind the user to move the shooting device away from the object to be modeled.

8. A photo-taking guidance device, characterized in that, include: The first determining module is used to obtain the physical position of the object to be modeled based on the physical position of the shooting device; The second determining module is used to obtain a virtual polyhedron that matches the object to be modeled based on the physical position of the object to be modeled. The guidance module is used to display the virtual polyhedron on the shooting page of the shooting device based on augmented reality (AR) technology, so as to guide the shooting based on the virtual polyhedron and obtain photos of the object to be modeled from different shooting angles. The photos of the object to be modeled from different shooting angles are used to construct a three-dimensional model of the object to be modeled. Wherein, the faces that make up the virtual polyhedron represent the shooting angles that need to be photographed on the object to be modeled, and the number of faces that make up the virtual polyhedron represents the number of photos that need to be taken on the object to be modeled. The step of obtaining a virtual polyhedron matching the object to be modeled based on its physical position includes: Multiple circles are determined on a set plane based on the physical position and shape characteristics of the object to be modeled; Multiple surfaces are determined based on the multiple circles on the defined plane; The virtual polyhedron is composed of the multiple faces.

9. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Photographing equipment position prompting method and device, storage medium and electronic equipment

    CN111415386A

  • KR20210070747A