Disclosure of Invention
The application provides at least a photo browsing method, a photo browsing device, an electronic device and a computer readable storage medium.
The first aspect of the present application provides a photo browsing method, including:
loading a local photo set, wherein the local photo set comprises a plurality of local photos;
Based on a live-action browsing instruction input by a user, displaying a live-action browsing interface, wherein the live-action browsing interface comprises a preset live-action model and a local photo associated with the live-action model;
And displaying the complete photo of the local photo corresponding to the selection instruction based on the selection instruction input by the user.
Therefore, the photo shot by the user can be restored to the real scene point through the correlation between the real scene model and the local photo, and the correlation between the local photo and the real scene point in the real scene model is experienced at the shooting point, the shooting angle and the like, so that a photo browsing mode with substitution sense is provided.
In some embodiments, the real scene model is a three-dimensional model and is displayed at the central position of the real scene browsing interface, and the associated local photos are respectively displayed at the surrounding positions of the real scene model according to shooting angles, wherein the shooting angles are based on the current position relationship of the real scene model.
Therefore, the interface display method of the three-dimensional model is provided, and the situation of shooting the photo is reflected through the position relation between the photo and the live-action model.
In some embodiments, after displaying the live-action browsing interface based on the live-action browsing instruction input by the user, before displaying the complete photo of the local photo corresponding to the selection instruction based on the selection instruction input by the user, the method further includes:
switching the display angle of the live-action model on the live-action browsing interface based on the rotation instruction input by the user;
And displaying the local photo associated with the current display angle of the live-action model on the live-action browsing interface based on the display angle of the live-action model.
Therefore, the method for displaying the angle of the live-action model is provided, and the photos displayed on the interface and the corresponding display positions are switched by changing the display angle of the live-action model.
In some embodiments, the relative position of the live-action model and the associated local photo is determined by the angle and distance at which the associated local photo was taken, based on the current display angle of the live-action model.
Accordingly, a display method is provided that determines the relative position of a live-action model and an associated local photo.
In some embodiments, the displaying the live-action browsing interface includes:
displaying the live-action browsing interface comprising a live-action browsing area and a list browsing area, wherein the photos of the live-action browsing area are in one-to-one correspondence with the photos of the list browsing area;
And in the case that the photos in the list browsing area are selected, displaying the selected photos in the live-action browsing area in an enlarged mode.
Therefore, the display method combining list browsing and live-action browsing is provided, and the required photos are selected in the list, so that the live-action browsing area performs enlarged display and labeling on the selected photos.
In some embodiments, the magnifying display of the selected photo in the live-action browsing area includes:
And under the condition that the photos in the list browsing area are selected and the current display angle of the live-action model cannot correspondingly display the selected photos, switching the display angle of the live-action model based on the selected photos, and displaying the selected photos in an enlarged mode.
Therefore, another display method combining list browsing and live-action browsing is provided, and the display angle of the live-action model in the live-action browsing area is switched by selecting the needed photos in the list.
In some embodiments, the displaying the complete photo of the local photo corresponding to the selection instruction includes:
Based on the networking browsing instruction input by the user, acquiring and displaying network data of the same shooting angle and/or the same shooting position as the complete photo from the Internet;
Wherein the network data comprises network photos or network videos.
Therefore, the display method for matching the local photo with the network photo is provided, the network photo with the same shooting environment and shooting object as the local photo can be obtained, and the information of the local photo is enriched.
In some embodiments, after the network data of the same photographing angle and/or the same photographing position as the complete photo is acquired and displayed from the internet, the photo browsing method includes:
based on the comparison browsing instruction input by the user, displaying a comparison browsing interface, wherein the comparison browsing interface comprises the complete photo and a network photo or a network video corresponding to the comparison browsing instruction;
and displaying shooting parameter comparison information of the complete photo and the network photo or the network video corresponding to the comparison browsing instruction on the comparison browsing interface.
Therefore, the display method for matching the local photo with the network photo can show the difference between the local photo and the network photo, and is beneficial to users to review the situation of shooting at the time.
The second aspect of the present application provides a photo browsing apparatus comprising:
The loading module is used for loading a local photo set, wherein the local photo set comprises a plurality of local photos;
the live-action browsing module is used for displaying a live-action browsing interface based on live-action browsing instructions input by a user, wherein the live-action browsing interface comprises a preset live-action model and a local photo associated with the live-action model;
And the complete browsing module is used for displaying the complete photo of the local photo corresponding to the selection instruction based on the selection instruction input by the user.
A third aspect of the present application provides an electronic device, including a memory and a processor coupled to each other, where the processor is configured to execute program instructions stored in the memory, so as to implement the photo browsing method in the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon program instructions which, when executed by a processor, implement the photo browsing method of the first aspect described above.
According to the scheme, the photo browsing device loads a local photo set, wherein the local photo set comprises a plurality of local photos, a live-action browsing interface is displayed based on live-action browsing instructions input by a user, the live-action browsing interface comprises a preset live-action model and the local photos related to the live-action model, and the complete photos of the local photos corresponding to the selection instructions are displayed based on selection instructions input by the user. According to the scheme, the photo shot by the user can be restored to the live-action site through the correlation between the live-action model and the local photo, and the correlation between the local photo and the live-action site in the live-action model is experienced at the shooting site, the shooting angle and the like, so that a photo browsing mode with substitution sense is provided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Detailed Description
The following describes embodiments of the present application in detail with reference to the drawings.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, interfaces, techniques, etc., in order to provide a thorough understanding of the present application.
The term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean that a exists alone, while a and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, may mean including any one or more elements selected from the group consisting of A, B and C.
Referring to fig. 1 and fig. 2, fig. 1 is a flow chart of a first embodiment of a photo browsing method according to the present application, and fig. 2 is an interface diagram of the photo browsing method according to the present application.
The main body of execution of the photo browsing method of the present application may be a photo browsing apparatus, for example, the photo browsing method may be executed by a terminal device or a server or other processing device, where the photo browsing apparatus may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a wireless phone, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the photo browsing method may be implemented by a processor invoking computer readable instructions stored in a memory.
Specifically, the photo browsing method of the embodiment of the present disclosure may include the steps of:
step S11, loading a local photo set, wherein the local photo set comprises a plurality of local photos.
In the embodiment of the disclosure, when a user starts a gallery function of managing photographed photos, the photo browsing device opens a local album and loads all photos in the local album. The photo browsing device displays a plurality of local photos in the local album according to the sequence of shooting time, as shown in an interface A in FIG. 2. The interface A displays the plurality of local photos in a time sequence through a thumbnail display mode, and in addition, the interface A can also display the plurality of local photos in a sequence mode such as a naming mode through a content list display mode.
Step S12, based on a live-action browsing instruction input by a user, displaying a live-action browsing interface, wherein the live-action browsing interface comprises a preset live-action model and a local photo associated with the live-action model.
It should be noted that, in the embodiment of the present application, the plurality of instructions, including the live-action browsing instruction, may be generated by clicking the corresponding location on the electronic device by the user. For example, the user may trigger a live-action browsing function through a control button on the electronic device, so as to generate a live-action browsing instruction, where the control button may be a physical button or a virtual button.
In the embodiment of the disclosure, the photo browsing device is preset with a live-action model. The live-action model of the step is specifically a live-action model for training the marked scenery spot by using a public photo set or a non-public photo set from the Internet, wherein the public photo set refers to a photo set which can be obtained by searching vocabulary directly through a Google, hundred degrees and other search engines, and the non-public photo set refers to a photo set which is obtained by screening an article insert picture published in some tourist websites or tourist forums, such as a leech, a tourist net and the like.
The construction process of the live-action model mainly comprises data acquisition and target reconstruction, specifically, a photo browsing device firstly collects a large number of public photo sets and non-public photo sets related to a certain marked place, and specifically comprises photo sets of different time, different angles and different positions based on the marked place. Then, the photo browsing device recovers or synthesizes the sparse feature point cloud of the landmark site through the collected photo set, so as to form a dense model, namely a live-action model of the step, and particularly please refer to a flow chart of the live-action model construction of fig. 3.
In the flowchart of fig. 3, the photo browsing device forms a live-action model by taking a large number of photos of the same landmark. The constructed live-action model can be a complete state model or an incomplete state model. The incomplete model of fig. 3 is generated because the photo browsing device cannot construct a complete real model because of the lack or absence of the photographed content of a certain partial angle of the landmark site in a large number of photos. It should be noted that, the incomplete real model is only because the training data is not comprehensive, and the incomplete real model can also be used in the photo browsing method of the application.
When receiving a live view browsing instruction input by a user, the photo browsing device switches from an interface A to an interface B in FIG. 2, namely a live view browsing interface. The method of inputting the live-action browsing command by the user can be that the user directly selects the photos in the local album, or can select the live-action browsing button in the interface A for the user, and at the moment, the photo browsing device defaults the first photo in the local album to be used as the basic photo for expanding the live-action browsing interface.
The live-action browsing interface is loaded with a preset live-action model and a local photo associated with the live-action model. The live-action browsing interface may display the live-action model and the local photo through an AR (Augmented Reality ) mode. In the AR mode, the real scene model is a three-dimensional model, and the real scene model is displayed at the central position of the real scene browsing interface. Based on the live-action model, the associated local photos are respectively displayed at the surrounding positions of the live-action model according to shooting angles. The shooting angle takes the current position relation of the live-action model as a standard, namely the relative position of the photo and the live-action model can show the relative position between the shooting angle and the marked place when the user shoots.
Through the method, the camera is restored to the position and the shooting angle of the live-action photographed by the user at the moment, a brand-new browsing mode with substitution sense can be provided for the user, and the user can recall the current time and space in live-action browsing.
Further, if the user needs to return to the local album, the user can select the back button in the live-action browsing interface, and the photo browsing device redisplays the interface a of the local album.
And step S13, based on the selection instruction input by the user, displaying the complete photo of the local photo corresponding to the selection instruction.
In the embodiment of the disclosure, the photo browsing device displays the complete photo of the local photo corresponding to the selection instruction based on the selection instruction input by the user.
Specifically, the real scene browsing interface mainly reflects the relative position of the local photo and the real scene model, and the local photo is displayed in a thumbnail mode. At this time, the user can click and select the thumbnail of the local photo to be viewed, and the photo browsing device switches from the live-action browsing interface to the interface C, where the interface C is mainly used for displaying the complete photo of the local photo selected by the user.
Further, the camera parameters, such as aperture, white balance, exposure time, etc., when the complete photo is taken can be displayed in the interface C, so that the user can know the real situation of taking the photo at the time.
Further, if the user needs to view the complete photos of other local photos, the user can select the back button in the interface C, and the photo browsing device redisplays the live-action browsing interface, so that the user reselects the local photos in the live-action browsing interface. In addition, the user can slide left and right in the interface C or select a switch button in the interface C, and the photo browsing device switches the currently displayed complete photo to other complete photos adjacent to the current complete photo in the live-action browsing interface.
In some possible implementations, the photo browsing apparatus accesses photos that the user browses over the network into the live view browsing function of the present embodiment. For example, when browsing the WeChat friend circle, the user can see the photos played outside by the friend, and can directly click the photos in the friend circle to enter the live-action browsing interface in FIG. 2, which is beneficial to widening the live-action browsing function. Through the live-action browsing mode, a user can quickly know the playing environment of friends and a live-action model of the playing environment.
The scheme is as above. The photo browsing device loads a local photo set, wherein the local photo set comprises a plurality of local photos, a live-action browsing interface is displayed based on live-action browsing instructions input by a user, the live-action browsing interface comprises a preset live-action model and the local photos related to the live-action model, and the complete photos of the local photos corresponding to the selection instructions are displayed based on selection instructions input by the user. According to the scheme, the photo browsing mode with substitution sense can be provided for restoring the photo shot by the user to the real scene.
With continued reference to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of a photo browsing method according to the present application.
Specifically, the photo browsing method of the embodiment of the present disclosure may include the steps of:
Step S21, loading a local photo set, wherein the local photo set comprises a plurality of local photos.
In the embodiment of the present disclosure, the photo browsing device displays a plurality of local photos in the local album according to the sequence of the shooting time, as shown in an interface a in fig. 2.
Step S22, based on a live-action browsing instruction input by a user, displaying a live-action browsing interface, wherein the live-action browsing interface comprises a preset live-action model and a local photo associated with the live-action model.
In the embodiment of the present disclosure, when receiving a live view browsing instruction input by a user, the photo browsing apparatus switches from interface a to interface B in fig. 2, that is, a live view browsing interface.
And S23, switching the display angle of the live-action model on the live-action browsing interface based on the rotation instruction input by the user.
In the embodiment of the disclosure, when the user needs to view other contents of the live-action model and the corresponding local photo, the user can input a rotation instruction through the AR mode. And the photo browsing device changes the display angle of the live-action model on the live-action browsing interface according to the rotating instruction.
And step S24, displaying the local photo related to the current display angle of the live-action model on the live-action browsing interface based on the display angle of the live-action model.
In the embodiment of the disclosure, when the photo browsing device loads the live-action model, positioning processing is performed on all the local photos and the live-action model in advance, so that a specific position and a specific shooting angle of each local photo shooting location relative to the labeled location are calculated, as shown in fig. 5. In fig. 5, each triangular pyramid represents a local photo, and the distance and the relative orientation of each triangular pyramid and the live-action model can represent the shooting position and the shooting angle of the local photo. By the positioning mode, the photo browsing device accurately positions the distance and the direction angle of the local photo in the positioning configuration file of the live-action model.
The positioning process may be performed at the server side or at the local device side. Specifically, the photo browsing device uploads the local photo to the server, the server locates the local photo, and then acquires and displays the live-action model returned by the server and the located local photo, or the photo browsing device directly acquires the live-action model of the server and completes the locating configuration process of the local photo in the live-action model at the local equipment.
In the embodiment of the disclosure, the relative position of the live-action model and the associated local photo is determined by the angle and distance for taking the associated local photo based on the current display angle of the live-action model. Therefore, after the display angle of the live-action model in the live-action browsing interface is switched, the photo browsing device needs to correspondingly display the local photo associated with the current display angle of the live-action model.
With reference to fig. 6, fig. 6 is a flowchart illustrating a photo browsing method according to a third embodiment of the present application.
Specifically, the photo browsing method of the embodiment of the present disclosure may include the steps of:
Step S31, loading a local photo set, wherein the local photo set comprises a plurality of local photos.
In the embodiment of the present disclosure, the photo browsing device displays a plurality of local photos in the local album according to the sequence of the shooting time, as shown in an interface a in fig. 2.
Step S32, based on a live-action browsing instruction input by a user, displaying a live-action browsing interface comprising a live-action browsing area and a list browsing area, wherein photos of the live-action browsing area are in one-to-one correspondence with photos of the list browsing area.
In the embodiment of the present disclosure, when receiving a live view browsing instruction input by a user, the photo browsing apparatus switches from interface a to interface B in fig. 2, that is, a live view browsing interface. The live-action browsing interface in fig. 2 further includes a live-action browsing area and a list browsing area, wherein the photos of the live-action browsing area correspond to the photos of the list browsing area one by one.
And S33, in the case that the photos in the list browsing area are selected, displaying the selected photos in the live-action browsing area in an enlarged mode.
In the embodiment of the disclosure, when the user needs to view the complete photo of the local photo, besides the above display manner, the user may select the local photo through the list browsing area, and then confirm the selected local photo in the live-action browsing area.
Specifically, when the local photo in the list browsing area is selected, the photo browsing device correspondingly performs labeling operations such as amplifying display or brightening on the selected photo in the live-action browsing area, so that a user can intuitively observe the position relationship of the selected local photo in the live-action model.
Further, when the local photo in the list browsing area is selected, but the live-action browsing area does not display the selected local photo currently, the photo browsing device can automatically switch the display angle of the live-action model according to the selected photo, so that the selected photo can be effectively enlarged and displayed in the live-action browsing area.
Fig. 7 is a flowchart of a photo browsing method according to a fourth embodiment of the present application.
Specifically, the photo browsing method of the embodiment of the present disclosure may include the steps of:
step S41, loading a local photo set, wherein the local photo set comprises a plurality of local photos.
In the embodiment of the present disclosure, the photo browsing device displays a plurality of local photos in the local album according to the sequence of the shooting time, as shown in an interface a in fig. 2.
Step S42, based on a live-action browsing instruction input by a user, displaying a live-action browsing interface, wherein the live-action browsing interface comprises a preset live-action model and a local photo associated with the live-action model.
In the embodiment of the present disclosure, when receiving a live view browsing instruction input by a user, the photo browsing apparatus switches from interface a to interface B in fig. 2, that is, a live view browsing interface.
Step S43, based on the selection instruction input by the user, displaying the complete photo of the local photo corresponding to the selection instruction.
In the embodiment of the disclosure, the photo browsing device displays the complete photo of the local photo corresponding to the selection instruction based on the selection instruction input by the user.
Step S44, based on the network browsing instruction input by the user, acquiring and displaying network data of the same shooting angle and/or the same shooting position as the complete photo from the Internet.
In the embodiment of the disclosure, the photo browsing device obtains and displays, from the internet, a network photo or a network video with the same shooting angle and shooting position as the complete photo displayed in the interface C according to the internet browsing command input by the user, and specifically please refer to the interface D in fig. 2.
Specifically, the user may input the web browsing instruction by clicking on the complete photo or clicking on a web browsing button in the interface C. When a network browsing instruction input by a user is acquired, the photo browsing device sends a network browsing request to the Internet, and acquires a network photo or a network video returned by the Internet. The network photos or the network videos come from public photo sets and non-public photo sets in the Internet, and have the same shooting angle and shooting position as the complete photos. The manner of displaying the live-action album by the photo browsing device can be the same as the manner of displaying the local album, and will not be repeated here.
Further, when the user needs to view the network photo or the network video in the live-action album, the photo browsing device switches the interface D to the interface C according to the selection instruction of the user for the network photo or the network video so as to display the complete photo or the complete video of the network photo or the network video on the interface C.
Step S45, based on the comparison browsing instruction input by the user, displaying a comparison browsing interface, wherein the comparison browsing interface comprises a complete photo and network data corresponding to the comparison browsing instruction.
In the embodiment of the present disclosure, the photo browsing apparatus displays a contrast browsing interface (not shown in the figure) according to a contrast browsing instruction input by a user. The comparison browsing interface at least comprises a complete photo of the local photo and a network photo or a network video which corresponds to the comparison browsing instruction, namely, is selected by a user. Through the comparison browsing interface, the user can intuitively observe the difference between the photo shot by the user and the photo shot by the net friend, and the user can restore to a live-action shooting place.
And step S46, displaying the complete photo and shooting parameter comparison information of the network data corresponding to the comparison browsing instruction on the comparison browsing interface.
In the embodiment of the disclosure, the photo browsing device can further display the complete photo and the shooting parameter comparison information of the network photo or the network video corresponding to the comparison browsing instruction, which is favorable for comparing the environment information of the user when playing and the environment information of the net friend playing, and improves the substitution sense of the user in the photo browsing process.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
With continued reference to fig. 8, fig. 8 is a schematic frame diagram of a photo browsing apparatus according to an embodiment of the application. The photo browsing apparatus 50 includes:
The loading module 51 is configured to load a local photo set, where the local photo set includes a plurality of local photos.
The live-action browsing module 52 is configured to display a live-action browsing interface based on a live-action browsing instruction input by a user, where the live-action browsing interface includes a preset live-action model and a local photo associated with the live-action model.
The complete browsing module 53 is configured to display, based on a selection instruction input by a user, a complete photo of the local photo corresponding to the selection instruction.
Referring to fig. 9, fig. 9 is a schematic diagram of a frame of an embodiment of an electronic device according to the present application. The electronic device 60 comprises a memory 61 and a processor 62 coupled to each other, the processor 62 being adapted to execute program instructions stored in the memory 61 for implementing the steps of any of the photo browsing method embodiments described above. In one specific implementation scenario, electronic device 60 may include, but is not limited to, a microcomputer, a server, and further, electronic device 60 may also include a mobile device such as a notebook computer, a tablet computer, etc., without limitation.
In particular, the processor 62 is used to control itself and the memory 61 to implement the steps in any of the path planning method embodiments described above. The processor 62 may also be referred to as a CPU (Central Processing Unit ). The processor 62 may be an integrated circuit chip having signal processing capabilities. The Processor 62 may also be a general purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application SPECIFIC INTEGRATED Circuit (ASIC), a Field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 62 may be commonly implemented by an integrated circuit chip.
Referring to fig. 10, fig. 10 is a schematic diagram of a frame of an embodiment of a computer readable storage medium according to the present application. The computer readable storage medium 70 stores program instructions 701 capable of being executed by a processor, the program instructions 701 being used to implement the steps of any of the photo browsing method embodiments described above.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.