CN116561085A - Picture sharing method and electronic equipment - Google Patents

Picture sharing method and electronic equipment Download PDF

Info

Publication number
CN116561085A
CN116561085A CN202210109290.8A CN202210109290A CN116561085A CN 116561085 A CN116561085 A CN 116561085A CN 202210109290 A CN202210109290 A CN 202210109290A CN 116561085 A CN116561085 A CN 116561085A
Authority
CN
China
Prior art keywords
pictures
route
picture
shooting
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210109290.8A
Other languages
Chinese (zh)
Inventor
邵明浩
张亚运
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210109290.8A priority Critical patent/CN116561085A/en
Publication of CN116561085A publication Critical patent/CN116561085A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/587Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location

Abstract

The application provides a picture sharing method and electronic equipment. The method is applied to a first electronic device, and comprises the following steps: when determining that a plurality of pictures need to be shared, determining a plurality of segmentation routes and picture information of associated pictures of each segmentation route based on picture information of the plurality of pictures and a tour route when a user shoots the plurality of pictures; generating a data packet to be shared based on the plurality of segment routes and the picture information of the associated picture of each segment route; and transmitting the data packet to be shared to the second electronic equipment, so that the second electronic equipment analyzes the data packet to be shared and displays a plurality of segment routes and associated pictures of each segment route. Therefore, the plurality of pictures can be displayed in a sectional mode according to the tour route by fusing the time and the positions of the tour route and the plurality of pictures, and the user can intuitively browse the plurality of pictures according to the tour route in an immersive mode.

Description

Picture sharing method and electronic equipment
Technical Field
The application relates to the technical field of electronics, in particular to a picture sharing method and electronic equipment.
Background
With the continuous development of the Internet and electronic equipment, a plurality of pictures can be shared among the electronic equipment, so that the social requirement of sharing pictures among users is met.
In the related art, the user 1 often uses the electronic device 1 to share a plurality of pictures taken when visiting a city/place/scenic spot to the electronic device 2 of the user 2, so that the electronic device 2 can share the image data and the shooting position of the plurality of pictures, and support to query each picture in the electronic map.
However, in the related art, the manner in which the electronic device 2 displays the plurality of pictures cannot enable the user to experience the process of capturing the plurality of pictures in the field, and the method has no reference value for the user to make a route for visiting the city/place/scenic spot corresponding to the plurality of pictures.
Disclosure of Invention
The picture sharing method and the electronic device are used for realizing segmented display of the pictures according to the tour route by fusing time and positions of the tour route and the pictures, so that a user can intuitively browse the pictures according to the tour route in an immersive mode.
In a first aspect, the present application provides a picture sharing method, which is applied to a first electronic device.
The method comprises the following steps:
when determining that a plurality of pictures need to be shared, determining a plurality of segmentation routes and picture information of associated pictures of each segmentation route based on picture information of the plurality of pictures and a tour route when a user shoots the plurality of pictures, wherein the picture information of the plurality of pictures at least comprises image data, shooting time and shooting position of each picture;
Generating a data packet to be shared based on the plurality of segment routes and the picture information of the associated picture of each segment route;
and transmitting the data packet to be shared to the second electronic equipment, so that the second electronic equipment analyzes the data packet to be shared and displays a plurality of segment routes and associated pictures of each segment route.
According to the picture sharing method provided by the first aspect, when the first electronic device determines that a plurality of pictures need to be shared, based on picture information of the plurality of pictures and the tour route when the user shoots the plurality of pictures, a plurality of segmentation routes and picture information of associated pictures of each segmentation route can be determined, and time and position fusion can be carried out on the tour route and the plurality of pictures. The first electronic device can generate the data packet to be shared based on the plurality of segment routes and the picture information of the associated picture of each segment route, so that the data packet to be shared is convenient to store and transmit. The first electronic device can transmit the data packet to be shared to the second electronic device, a new mode of picture sharing is provided, and interest and enthusiasm of users for sharing pictures are improved. Therefore, the second electronic equipment analyzes the data packet to be shared to obtain a plurality of segment routes and picture information of associated pictures of each segment route. The second electronic equipment can display the plurality of segmented routes and the associated pictures of each segmented route based on the plurality of segmented routes and the picture information of the associated pictures of each segmented route, can display the plurality of pictures in a segmented mode according to the tour route, and is beneficial to a user to intuitively browse the plurality of pictures according to the tour route in an immersive mode.
In one possible design, the method further comprises:
acquiring navigation information of a vehicle driven by a user when a plurality of pictures are taken;
determining a driving route of the vehicle based on the navigation information of the vehicle;
the driving route of the vehicle is determined as the tour route.
Therefore, the first electronic device can fuse the driving route of the vehicle with the plurality of pictures in time and position to generate the data packet to be shared.
In one possible design, the method further comprises:
acquiring movement information of equipment used by a user when taking a plurality of pictures;
filtering invalid information in the mobile information of the equipment to obtain filtered mobile information of the equipment;
and fitting the filtered movement information of the equipment through the navigation information of the standard route to obtain the tour route.
Therefore, the first electronic device can fuse the moving route of the device with the time and the positions of the plurality of pictures based on the moving route of the device with effectiveness, and generate the data packet to be shared.
In one possible design, the method further comprises:
based on the picture information of the pictures, carrying out picture filtering and position aggregation on the pictures to obtain a plurality of shooting interest points;
And fitting a plurality of shooting interest points through navigation information of the standard route to obtain the tour route.
In one possible design, fitting a plurality of shooting interest points through navigation information of a standard route to obtain a tour route includes:
based on the time of each shooting interest point, time averaging is carried out on a plurality of shooting interest points, and the intermediate time of the shooting interest points is obtained;
based on the intermediate time of the shooting interest points, time ordering the shooting interest points to obtain a time ordering relation of the shooting interest points;
based on the time ordering relation of the shooting interest points, the positions of every two shooting interest points adjacent to each other in time are used as the starting position and the ending position, the route between every two shooting interest points adjacent to each other in time is calculated through the navigation information of the standard route, and the plurality of routes are combined to obtain the tour route.
Therefore, the first electronic device can fuse the time and the position of the tour route obtained by the pictures with the pictures, and generate the data packet to be shared.
In one possible design, determining the plurality of segment routes and the picture information of the associated picture for each segment route based on the picture information of the plurality of pictures and the tour route when the user took the plurality of pictures includes:
Based on the picture information of the pictures, carrying out picture filtering and position aggregation on the pictures to obtain a plurality of shooting interest points;
dividing the tour route based on a plurality of shooting interest points, and taking the positions of every two adjacent shooting interest points as a starting position and a stopping position to obtain a plurality of segmented routes;
and associating each segmented route with the plurality of pictures based on the picture information of the plurality of pictures to obtain the picture information of the associated picture of each segmented route.
Therefore, the first electronic device can determine the plurality of segment routes and the picture information of the associated pictures of each segment route by taking the shooting interest point as the starting position and the ending position.
In one possible design, based on the picture information of the plurality of pictures, performing picture filtering and position aggregation on the plurality of pictures to obtain a plurality of shooting interest points, including:
dividing pictures with shooting positions in the same area in a plurality of pictures into a group to obtain a plurality of groups of pictures;
and carrying out position and time averaging on the multiple groups of pictures based on the picture information of each group of pictures to obtain a shooting interest point corresponding to each group of pictures, and the position and time of each shooting interest point.
In one possible design, when the tour route is obtained from a vehicle driven by the user while taking the plurality of pictures, the method further comprises:
determining a parking position in the tour route as a division point;
judging whether shooting interest points exist in the area of the division points;
when shooting interest points exist in the area of the division points, determining the division points as newly added shooting interest points;
and when the shooting interest points do not exist in the area to which the division points belong, determining that the division points are not the shooting interest points.
Thus, the first electronic device can acquire a plurality of shooting interest points as soon as possible.
In one possible design, before generating the data packet to be shared, the method further includes:
and displaying a plurality of segment routes and associated pictures of each segment route.
Thus, the user can preview the effect that a plurality of pictures are displayed according to the tour route.
In one possible design, when the starting position and the ending position of each segment route are two shooting interest points adjacent in time, and each shooting interest point is obtained by performing picture filtering and position aggregation on a plurality of pictures based on picture information of the plurality of pictures, displaying the plurality of segment routes and associated pictures of each segment route, including:
In the electronic map, each segment route is displayed between every two adjacent shooting interest points by adopting a connecting line with an arrow, the direction of the arrow of each connecting line points to a shooting interest point with a later time from the shooting interest points with an earlier time in the corresponding two shooting interest points, and an icon of an associated picture of each segment route is displayed in the area of each shooting interest point.
Thus, a possible implementation manner is provided for displaying a plurality of pictures and a tour route.
In one possible design, the method further comprises:
performing inverse geocoding analysis on the shooting positions of the associated pictures of each segmented route, and determining the place name of each shooting interest point;
and displaying the place name of each shooting interest point in the area of each shooting interest point.
Thus, the user can quickly learn each shooting interest point.
In one possible design, the method further comprises:
upon receiving an operation on an icon of an associated picture of a segmented route, a user interface is displayed for browsing each of the associated pictures of the segmented route.
Therefore, besides displaying a plurality of pictures and a tour route, the related pictures of the single shooting interest point can be displayed, and the effect of in-situ navigation is achieved.
In one possible design, when the album application is installed in the first electronic device, the method further includes:
displaying a control in a user interface of the album application;
after receiving the operation triggered on the control, determining that a plurality of pictures need to be shared.
Therefore, an entry for triggering the first electronic device to share a plurality of pictures by adopting a new picture sharing mode is provided.
In a second aspect, the present application provides a picture sharing method applied to a second electronic device.
The method comprises the following steps:
acquiring a data packet to be shared from a first electronic device, wherein the data packet to be shared is generated by the first electronic device based on a plurality of segmentation routes and picture information of associated pictures of each segmentation route, and when the first electronic device determines that a plurality of pictures need to be shared, the picture information of the plurality of pictures is determined based on the picture information of the plurality of pictures and a tour route when a user shoots the plurality of pictures, and the picture information of the plurality of pictures at least comprises image data, shooting time and shooting position of each picture;
analyzing the data packet to be shared to obtain a plurality of segment routes and picture information of associated pictures of each segment route;
Based on the plurality of segment routes and the picture information of the associated picture of each segment route, the plurality of segment routes and the associated picture of each segment route are displayed.
According to the picture sharing method provided by the second aspect, the second electronic device can display the plurality of segment routes and the associated pictures of each segment route based on the plurality of segment routes and the picture information of the associated pictures of each segment route, and can display the plurality of pictures in a segmented mode according to the tour route, so that a user can intuitively browse the plurality of pictures in an immersive mode according to the tour route.
In one possible design, when the starting position and the ending position of each segment route are two shooting interest points adjacent in time, and each shooting interest point is obtained by performing picture filtering and position aggregation on a plurality of pictures based on picture information of the plurality of pictures, displaying the plurality of segment routes and associated pictures of each segment route, including:
thus, the user can browse a plurality of pictures according to the tour route.
In the electronic map, each segment route is displayed between every two adjacent shooting interest points by adopting a connecting line with an arrow, the direction of the arrow of each connecting line points to a shooting interest point with a later time from the shooting interest points with an earlier time in the corresponding two shooting interest points, and an icon of an associated picture of each segment route is displayed in the area of each shooting interest point.
Thus, a possible implementation manner is provided for displaying a plurality of pictures and a tour route.
In one possible design, the method further comprises:
performing inverse geocoding analysis on the shooting positions of the associated pictures of each segmented route, and determining the place name of each shooting interest point;
and displaying the place name of each shooting interest point in the area of each shooting interest point.
Thus, the user can quickly learn each shooting interest point.
In one possible design, the method further comprises:
upon receiving an operation on an icon of an associated picture of a segmented route, a user interface is displayed for browsing each of the associated pictures of the segmented route.
Therefore, besides displaying a plurality of pictures and a tour route, the related pictures of the single shooting interest point can be displayed, and the effect of in-situ navigation is achieved.
In one possible design, when the album application is installed in the second electronic device, displaying a plurality of segment routes and an associated picture of each segment route, including:
a plurality of segment routes and associated pictures of each segment route are displayed in a user interface of the album application.
Therefore, an entry for triggering the second electronic device to display a plurality of pictures in a new mode of picture sharing is provided.
In a third aspect, the present application provides an electronic device, comprising: a memory and a processor; the memory is used for storing program instructions; the processor is configured to invoke the program instructions in the memory, to cause the electronic device to perform the picture sharing method in any of the first aspect and the possible designs of the first aspect, and/or to cause the electronic device to perform the picture sharing method in any of the second aspect and the possible designs of the second aspect.
In a fourth aspect, the present application provides a chip system for use in an electronic device comprising a memory, a display screen, and a sensor; the chip system includes: a processor; when the processor executes the computer instructions stored in the memory, the electronic device performs the picture sharing method in any one of the possible designs of the first aspect and the first aspect, and/or the electronic device performs the picture sharing method in any one of the possible designs of the second aspect and the second aspect.
In a fifth aspect, the present application provides a computer readable storage medium, on which a computer program is stored, the computer program being configured to, when executed by a processor, cause an electronic device to implement a picture sharing method in any one of the first aspect and the first possible design, and/or cause the electronic device to implement a picture sharing method in any one of the second aspect and the second possible design.
In a sixth aspect, the present application provides a computer program product comprising: executing instructions stored in a readable storage medium, the executing instructions being readable by at least one processor of the electronic device, the executing instructions being executable by the at least one processor to cause the electronic device to implement the picture sharing method in the first aspect and any one of the possible designs of the first aspect, and/or to cause the electronic device to implement the picture sharing method in the second aspect and any one of the possible designs of the second aspect.
Drawings
Fig. 1 is a signaling interaction diagram of a picture sharing method according to an embodiment of the present application;
FIGS. 2A-2B are schematic diagrams illustrating the effect of a route according to an embodiment of the present application;
FIGS. 3A-3B are schematic diagrams illustrating the effect of a route according to an embodiment of the present application;
FIGS. 4A-4B are schematic diagrams illustrating the effect of a route according to one embodiment of the present application;
FIG. 5 is a schematic diagram showing the effect of a route according to an embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a picture sharing method according to an embodiment of the present disclosure;
fig. 7A-7B are schematic diagrams illustrating an effect of aggregating multiple pictures according to an embodiment of the present application;
Fig. 8 is a schematic diagram of an effect of aggregation of multiple pictures according to an embodiment of the present application;
fig. 9A-9B are schematic diagrams illustrating effects of displaying a plurality of pictures according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 11 is a software block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c alone may represent: a alone, b alone, c alone, a combination of a and b, a combination of a and c, b and c, or a combination of a, b and c, wherein a, b, c may be single or plural. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The terms "center," "longitudinal," "transverse," "upper," "lower," "left," "right," "front," "rear," and the like refer to an orientation or positional relationship based on that shown in the drawings, merely for convenience of description and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore should not be construed as limiting the present application.
The picture sharing method and the electronic device can fuse the tour route of the user when shooting a plurality of pictures into the plurality of pictures to generate the data packet to be shared, are favorable for sharing the tour route and the plurality of pictures to other users together, provide a new picture sharing mode, promote the interest and enthusiasm of the user for sharing the pictures, display the plurality of pictures on the electronic map according to the tour route in a segmentation mode based on the data packet to be shared, realize the visual browsing of the plurality of pictures in the field, and are favorable for the user to intuitively browse the plurality of pictures according to the tour route in an immersive mode.
In addition, based on the data package to be shared, the associated pictures of the single shooting position in the tour route can be navigated and browsed in the field, so that the experience can be effectively and accurately carried out according to the existing experience of the sharing user.
Based on the foregoing description, the following embodiments of the present application take a plurality of electronic devices as an example, and the picture sharing method provided in the present application will be described in detail with reference to the accompanying drawings and application scenarios.
For convenience of explanation, the plurality of electronic devices of the present application are illustrated by taking the first electronic device and the second electronic device as examples. The communication connection may include a wired communication connection and/or a wireless communication connection, where the wired communication connection may use a mode such as a cable, an optical fiber, a digital subscriber line (digital subscriber line, DSL), and the wireless communication connection may use a mode such as bluetooth, infrared, wireless (Wi-Fi), microwave, and the like.
Referring to fig. 1, fig. 1 is a signaling interaction diagram of a picture sharing method according to an embodiment of the present application.
As shown in fig. 1, the picture sharing method of the present application may include:
s101, when the first electronic device determines that a plurality of pictures need to be shared, determining a plurality of segmentation routes and picture information of associated pictures of each segmentation route based on picture information of the plurality of pictures and a tour route when a user shoots the plurality of pictures, wherein the picture information of the plurality of pictures at least comprises image data, shooting time and shooting position of each picture.
The plurality of pictures mentioned in the application may include two pictures and more than two pictures, and the plurality of pictures may be pictures of one or more city sceneries/places/points for a user to visit. For example, the plurality of pictures may be pictures taken by a user while visiting various attractions of a city.
In addition, the picture information of the plurality of pictures may include a photographing apparatus identification of each picture, which may be represented by contents such as a device model number or a device name, such as a device ID, in addition to the image data, photographing time, and photographing position of each picture.
The first electronic device may determine that a plurality of pictures need to be shared after receiving an operation of a user on the first electronic device, or may determine that a plurality of pictures need to be shared after receiving a request sent by the second electronic device.
In some embodiments, when the album application is installed in the first electronic device, the first electronic device may display a control in a user interface of the album application. The control is used for triggering the first electronic equipment to start the picture sharing function. The specific implementation of the user interface and the control is not limited in this application.
After receiving the operation triggered on the control, the first electronic device may determine that multiple pictures need to be shared. Wherein the operation triggered on the control may include, but is not limited to, click, double click, long press, etc. Thus, the first electronic device may perform S101.
It should be noted that, besides the album application, a system application or a third party application installed in the first electronic device may also start the picture sharing function of the first electronic device, so that the first electronic device may execute the content of the S101 embodiment.
Therefore, when the fact that a plurality of pictures need to be shared is determined, the first electronic device can acquire picture information and a tour route of the plurality of pictures.
In general, an electronic device may store a photographing time and a photographing position of a picture in addition to image data of the picture. For example, extension information (e.g., exif information) of a picture is stored in a format such as JPG in a picture file. Attribute information of the picture and image data are recorded in the extension information, and the attribute information may include, but is not limited to, a photographing device identification, photographing time, photographing position, and the like.
Based on the above description, the first electronic device may acquire the picture information of the plurality of pictures, that is, the image data, the photographing time, the photographing position, and the like of each picture by parsing the picture file.
In addition to acquiring the picture information of the plurality of pictures, the first electronic device may also determine a tour route. The tour route is the route of the actual journey when the user shoots a plurality of pictures.
Thus, the first electronic device may divide the tour route into a plurality of segment routes based on the picture information of the plurality of pictures and the tour route, and may determine the picture information of the associated picture of each segment route.
In summary, the first electronic device may be ready in advance to provide a new way of picture sharing.
S102, the first electronic device generates a data packet to be shared based on a plurality of segment routes and picture information of associated pictures of each segment route.
The first electronic device may generate the data packet to be shared based on the plurality of segment routes and the picture information of the associated picture of each segment route in a plurality of manners. The specific implementation manner of the data packet to be shared is not limited.
In some embodiments, the first electronic device may store navigation information for each segment route and an association between each segment route and the associated picture in the configuration file. The first electronic device can obtain the picture information containing the pictures and the data package to be shared of the configuration file, and the data storage and transmission are convenient.
S103, the first electronic device transmits the data packet to be shared to the second electronic device.
The first electronic device may directly send the data packet to be shared to the second electronic device.
Alternatively, the first electronic device may send the data packet to be shared to a sharing platform (e.g., a server or other electronic device). The sharing platform is used for publicly browsing the data packets to be shared. Therefore, the second electronic device can acquire the data to be shared from the sharing platform, and the purpose that the first electronic device transmits the data packet to be shared to the second electronic device is achieved.
And S104, the second electronic equipment analyzes the data packet to be shared to obtain a plurality of segment routes and picture information of associated pictures of each segment route.
After the second electronic device obtains the data packet to be shared, the data packet to be shared may be parsed according to the generation mode of the data packet to be shared in S102, so as to obtain a plurality of segment routes and picture information of associated pictures of each segment route.
In some embodiments, when the to-be-shared data packet includes the picture information of the plurality of pictures and the configuration file, the second electronic device may read the picture information of the plurality of pictures, and may read the navigation information of the plurality of segment routes and the association relationship between each segment route and the associated picture from the configuration file.
Therefore, the second electronic device can associate the plurality of segmented routes with the plurality of pictures based on the picture information of the plurality of pictures, the navigation information of the plurality of segmented routes and the association relation between each segmented route and the associated picture, so as to obtain the picture information of the plurality of segmented routes and the associated picture of each segmented route.
S105, the second electronic device displays the plurality of segment routes and the associated picture of each segment route based on the plurality of segment routes and the picture information of the associated picture of each segment route.
The second electronic equipment can display the plurality of the segment routes and the associated pictures of each segment route based on the plurality of the segment routes and the picture information of the associated pictures of each segment route, so that the plurality of pictures are visually displayed in a mode of adopting the segment routes and the associated pictures.
In some embodiments, when the album application is installed in the second electronic device, the second electronic device may display the plurality of segment routes and the associated picture of each segment route in one user interface of the album application. The specific implementation manner of the user interface is not limited in this application. For example, the user interface is used to present an electronic map. Therefore, the second electronic equipment can display a plurality of segmented routes and associated pictures of each segmented route on the electronic map, and a user can conveniently browse a plurality of pictures on the electronic map according to the tour route.
It should be noted that, in addition to the album application, a system application or a third party application installed in the second electronic device may also display a plurality of segment routes and associated pictures of each segment route.
According to the picture sharing method, when the first electronic device determines that a plurality of pictures need to be shared, based on the picture information of the plurality of pictures and the tour route when the user shoots the plurality of pictures, a plurality of segmentation routes and the picture information of the associated pictures of each segmentation route can be determined, and the tour route and the plurality of pictures can be fused in time and position. The first electronic device can generate the data packet to be shared based on the plurality of segment routes and the picture information of the associated picture of each segment route, so that the data packet to be shared is convenient to store and transmit. The first electronic device can transmit the data packet to be shared to the second electronic device, a new mode of picture sharing is provided, and interest and enthusiasm of users for sharing pictures are improved. The second electronic equipment analyzes the data packet to be shared to obtain a plurality of segmented routes and picture information of associated pictures of each segmented route. The second electronic equipment can display the plurality of segmented routes and the associated pictures of each segmented route based on the plurality of segmented routes and the picture information of the associated pictures of each segmented route, can display the plurality of pictures in a segmented mode according to the tour route, and is beneficial to a user to intuitively browse the plurality of pictures according to the tour route in an immersive mode.
Based on the foregoing description, the specific implementation manner in which the first electronic device may acquire the tour route in a plurality of ways is not limited.
The following describes in detail, in connection with several implementations, a specific implementation procedure of the first electronic device to obtain the tour route.
In some embodiments, the user often drives the vehicle while visiting, and the navigation information of the vehicle may accurately and completely record the route of the journey that the user is visiting.
Based on the above description, the first electronic device may acquire navigation information of a vehicle that the user drives when taking a plurality of pictures. The specific implementation manner of the navigation information of the vehicle is not limited in the application. For example, the navigation information of the vehicle may be a correspondence relation or longitude and latitude coordinates of a set of electronic maps, and the navigation information of the vehicle may be represented by a form, a key-value, an array, or the like.
For example, the vehicle may send navigation information of the vehicle to the first electronic device after the user has finished the tour. Alternatively, the vehicle may send navigation information of the vehicle to the server after the user finishes the tour, so that the server can store the navigation information of the vehicle. The first electronic device may obtain navigation information of the vehicle from the server.
Thus, the first electronic device can determine the driving route of the vehicle based on the navigation information of the vehicle. The first electronic device may determine a driving route of the vehicle as a tour route. Therefore, the first electronic device can fuse the driving route of the vehicle with the plurality of pictures in time and position to generate the data packet to be shared.
In other embodiments, when the user begins a tour, a device used by the user when taking multiple pictures may turn on a switch that records the route of the tour that the user is browsing so that the device may record the complete tour of the user.
The device may be a shooting device for a plurality of pictures, or may be a device carried by a user other than the shooting device, which is not limited in this application. For example, a user may carry a cell phone that may take multiple pictures and a watch that may record a tour route.
Based on the above description, the first electronic device may obtain movement information of the device. Wherein the movement information of the device may be used to indicate a movement route of the device. The specific implementation manner of the mobile information of the device is not limited in the application. For example, the movement information of the device may be a correspondence relationship or longitude and latitude coordinates of a set of electronic maps, and the movement information of the device may be represented by a form, a key-value, an array, or the like.
Because the user may take a picture at a certain stop position or may walk back and forth at the stop position in the process of taking a picture to be shared, a phenomenon of detouring the moving route of the device may occur. Therefore, the first electronic device can filter invalid information in the mobile information of the device to obtain the filtered mobile information of the device, and the validity of the mobile information of the device is ensured. The invalid information may be understood as movement information generated by a detour phenomenon. Thereby, the moving route of the apparatus can be corrected.
Therefore, the first electronic equipment fits the filtered mobile information of the first electronic equipment through the navigation information of the standard route, and the tour route can be determined. Therefore, the first electronic device can fuse the moving route of the device with the time and the positions of the plurality of pictures to generate the data packet to be shared.
The navigation information of the standard route is disclosed, and the navigation information of the standard route can be used for indicating the standard route in the electronic map, and the standard route can be understood as a route obtained by navigating in the electronic map according to the starting position and the ending position in the mobile information of the device.
Referring to fig. 2A-2B, fig. 2A-2B are schematic views illustrating an effect of a route according to an embodiment of the present application.
As shown in fig. 2A, the route 11 is a moving route of the apparatus before correction, and a detour phenomenon occurs in a part of the route 11 within the frame a, and a detour phenomenon occurs in a part of the route 11 within the frame b.
As shown in fig. 2B, the route 12 is a corrected moving route of the apparatus, i.e., a tour route, and the partial route of the route 12 within the frame a corrects the detour phenomenon, and the partial route of the route 12 within the frame B corrects the detour phenomenon.
In summary, the first electronic device may obtain an accurate tour route by correcting the movement route of the device.
The first electronic device can correct the moving route of the device in various modes.
Next, a specific implementation manner in which the first electronic device may correct the moving route of the device will be described in detail.
Mode one: distance contrast of split routes
The first electronic device may progressively divide the moving route of the device segment by segment, and determine whether a ratio between a distance of each of the divided routes and a distance of the standard route exceeds a preset ratio (e.g., 2:1). The standard route here may be a route obtained by navigating in an electronic map with a start position and an end position in the route segmented by each segment.
If so, the first electronic device may determine that the currently segmented route may have a detour. Thus, the first electronic device needs to correct the currently divided route, and may replace the currently divided route with the standard route.
If not, the first electronic device may continue to analyze the next segmented route until the distance from the standard route ends in comparison to the last segmented route in the device's travel route.
Thus, the first electronic device may determine the corrected movement route of the device as the tour route.
Referring to fig. 3A-3B, fig. 3A-3B are schematic views illustrating an effect of a route according to an embodiment of the present application.
As shown in fig. 3A, the route 21 is a moving route of the apparatus before correction, and the line segment AB in the route 21 is a divided route of one of the moving routes of the apparatus before correction, and a detour phenomenon occurs in the line segment AB in the route 21.
As shown in fig. 3B, the route 22 is a corrected moving route of the apparatus, that is, a tour route, and the line segment AB in the route 22 is a divided route of the corrected moving route of the apparatus, and the line segment AB in the route 22 corrects the detour phenomenon.
Mode two: range filtering of shooting interest points
The first electronic device may determine a main stay position when the user is visiting as the photographing point of interest based on the photographing position of each of the plurality of pictures. Thus, the first electronic device can obtain a plurality of shooting interest points.
The detour phenomenon exists due to the high probability of stay locations. Therefore, the first electronic device can correct the route in the area (such as 500 meters) of each shooting interest point by combining the standard route, and obtain the corrected moving route of the device. The standard route here may be a route obtained by navigating in an electronic map with shooting interest points adjacent to each other every two times as a start position and an end position.
Thus, the first electronic device may determine the corrected movement route of the device as the tour route.
Referring to fig. 4A-4B, fig. 4A-4B are schematic views illustrating an effect of a route according to an embodiment of the present application.
As shown in fig. 4A, the route 31 is a moving route of the apparatus before correction, and a partial route of the route 31 in the frame c is a route in the area to which one shooting interest point before correction belongs, and a detour phenomenon occurs in a partial route of the route 31 in the frame c.
As shown in fig. 4B, the route 32 is a corrected moving route of the apparatus, i.e., a tour route, and a part of the route 32 in the frame c is a corrected route in the region of the photographing interest point, and a part of the route 32 in the frame c corrects the detour phenomenon.
In other embodiments, the first electronic device may perform picture filtering and position aggregation on the multiple pictures based on the picture information of the multiple pictures, to obtain multiple shooting interest points and positions and times of each shooting interest point.
Wherein the shooting interest point can be determined based on the main shooting position (i.e. the aforementioned stay position) in the plurality of pictures. For example, if there is at least one picture among the plurality of pictures within the preset range, the first electronic device may determine a center position of the preset range as a position of the photographing interest point, and determine a time of photographing the interest point based on the photographing time of the aforementioned at least one picture.
Therefore, the first electronic device can fit a plurality of shooting interest points through the standard route based on the position and time of each shooting interest point to obtain the tour route. Therefore, the first electronic device can fuse the time and the position of the tour route obtained by the pictures with the pictures, and generate the data packet to be shared.
The standard route is understood to be a route obtained by navigating in an electronic map with every two adjacent shooting interest points as a starting position and an ending position. Every two adjacent shooting interest points in time are understood to be obtained by all combining and arranging a plurality of shooting interest points according to the sequence from the early to the late in time.
In some embodiments, the first electronic device may average the positions and times of the plurality of shooting interest points based on the positions and times of each shooting interest point, to obtain an intermediate time of the plurality of shooting interest points. The first electronic device performs time sequencing on the plurality of shooting interest points based on the intermediate time of the plurality of shooting interest points to obtain a time sequencing relation of the plurality of shooting interest points.
Wherein the time ordering relation of the plurality of photographing points herein may be used to indicate an ordering order of each of the interest points in the plurality of photographing interest points in an early-to-late order of time or in a late-to-early order of time.
Therefore, the first electronic device calculates the route between every two shooting interest points adjacent to each other in time by taking the positions of the shooting interest points adjacent to each other in time as the starting position and the ending position based on the time ordering relation of the shooting interest points, and the route between every two shooting interest points adjacent to each other in time is calculated through the navigation information of the standard route, and the plurality of routes are combined to obtain the tour route.
In summary, the first electronic device may obtain a tour route based on the disclosed standard route. Referring to fig. 5, fig. 5 is a schematic diagram illustrating an effect of a route according to an embodiment of the present application.
As shown in fig. 5, the segmented route 41, the segmented route 42, and the segmented route 43 may be combined into a tour route.
The segment path 41 is formed by connecting a frame d1 and a frame d2, and the direction of the segment path 41 is from the frame d1 to the frame d2. The segment line 42 is formed by connecting the frame d2 and the frame d3, and the direction of the segment line 42 is from the frame d2 to the frame d3. The segment line 43 is formed by connecting the frame d3 and the frame d4, and the direction of the segment line 43 is from the frame d3 to the frame d4.
The geometric center position of the frame D1 is the shooting interest point a, the geometric center position of the frame D2 is the shooting interest point B, the geometric center position of the frame D4 is the shooting interest point C, and the geometric center position of the frame D4 is the shooting interest point D.
The time ordering relation among the shooting interest point A, the shooting interest point B, the shooting interest point C and the shooting interest point D is that the time of the shooting interest point A is earlier than the time of the shooting interest point B, the time of the shooting interest point B is earlier than the time of the shooting interest point C, and the time of the shooting interest point C is earlier than the time of the shooting interest point D.
Based on the foregoing description of S101, the first electronic device may determine the plurality of segment routes and the picture information of the associated picture of each segment route based on the picture information of the plurality of pictures and the tour route in a plurality of ways.
Referring to fig. 6, fig. 6 is a flowchart illustrating a picture sharing method according to an embodiment of the present disclosure.
As shown in fig. 6, the picture sharing method of the present application may include:
s201, the first electronic device performs picture filtering and position aggregation on the pictures based on the picture information of the pictures to obtain a plurality of shooting interest points.
The specific implementation manner of shooting the interest point can be referred to the above mentioned content, and will not be described herein.
In some embodiments, the first electronic device may use a density-based clustering algorithm (such as a DBSCAN (density-based spatial clustering of applications with noise) algorithm), and divide the pictures with shooting positions in the same area into a group based on the shooting position of each picture in the multiple pictures, so as to implement aggregation of the pictures. The first electronic device may obtain multiple groups of pictures centered on different areas, where each group of pictures is a picture within the same area.
The size of the region corresponding to each group of the pictures is not limited in the application. In addition, the size of the region corresponding to each group of the pictures may be the same or different.
Therefore, the first electronic device performs position and time averaging on the multiple groups of pictures based on the picture information of each group of pictures, and can determine one shooting interest point corresponding to each group of pictures and the position and time of each shooting interest point.
Next, a detailed implementation process of the first electronic device obtaining the plurality of shooting interest points will be described in detail with reference to fig. 7A to 7B.
Referring to fig. 7A-7B, fig. 7A-7B are schematic diagrams illustrating an effect of aggregating multiple pictures according to an embodiment of the present application. For convenience of description, a plurality of pictures include: examples of the "about" include "about" 1.Jpg,2.Jpg,3.Jpg,4.Jpg,5.Jpg,6.Jpg,7.Jpg,8.Jpg,9.Jpg,10.Jpg,11.Jpg, and 12. Jpg.
As shown in fig. 7A, the photographing position of 1.Jpg is the geometric center of the frame 11, the photographing position of 2.Jpg is the geometric center of the frame 12, the photographing position of 3.Jpg is the geometric center of the frame 13, and the photographing position of 4.Jpg is the geometric center of the frame 14.
The frame 11, the frame 12, the frame 13, and the frame 14 are in the area a1, and thus, 1.Jpg,2.Jpg,3.Jpg, and 4.Jpg may be a group of the images corresponding to the photographing interest point a, the time of photographing the interest point a may be the middle time of the group of the images, and the position of photographing the interest point a may be the center position of the area a 1.
The shooting position of 5.Jpg is the geometric center of the frame 21, the shooting position of 6.Jpg is the geometric center of the frame 22, and the shooting position of 7.Jpg is the geometric center of the frame 23.
The frames 21, 22 and 23 are in the area a2, and thus, 5.Jpg,6.Jpg and 7.Jpg may be a group of the images corresponding to the photographing interest point B, the time of photographing the interest point B may be the middle time of the group of the images, and the position of photographing the interest point B may be the center position of the area a 2.
The shooting position of 8.Jpg is the geometric center of the frame 31, the shooting position of 9.Jpg is the geometric center of the frame 32, and the shooting position of 10.Jpg is the geometric center of the frame 13.
The frame 31, the frame 32, and the frame 33 are in the area a3, and thus, 8.Jpg,9.Jpg, and 10.Jpg may be a group of the images corresponding to the photographing interest point C, the time of photographing the interest point C may be the middle time of the group of the images, and the position of the photographing interest point C may be the center position of the area a 3.
The shooting position of 11.Jpg is the geometric center of the frame 41, and the shooting position of 12.Jpg is the geometric center of the frame 42.
Both boxes 41 and 42 are in region a4, and thus, 11.Jpg and 12.Jpg may be a group of the images corresponding to the photographing interest point D, the time of photographing the interest point D may be the middle time of the group of the images, and the position of the photographing interest point D may be the center position of region a 4.
The areas a1, a2, a3, and a4 are different in size.
In summary, the first electronic device may obtain a plurality of shooting interest points, and a position and a time of each shooting interest point.
In addition, besides the time and the position of the shooting interest points, the first electronic device may further perform inverse geocoding analysis on the shooting position of the associated picture of each segment route, so as to determine the location name of each shooting interest point. Wherein, the inverse geocoding and geocoding are the inverse process.
Thus, the position and time of each photographing interest point may be stored as in table 1.
For convenience of explanation, in table 1, a shooting interest point a, a shooting interest point B, a shooting interest point C, and a shooting interest point D shown in fig. 7A to 7B are exemplified.
TABLE 1
In addition, the vehicle generally includes a traveling state and a parking state. When the tour route is a driving route of the vehicle, the tour route cannot characterize that the vehicle is in a stopped state. While the vehicle is in a stopped state, the user may take a picture and may set this as a shooting interest point.
In view of the above-described manner of dividing a group of pictures only taking into account the shooting positions of the pictures, the first electronic device may check whether the parking position when the vehicle is in a parked state is a shooting interest point after obtaining a plurality of shooting interest points.
In some embodiments, the first electronic device may determine the parking position as the division point when there is a picture of the parking position in the tour route based on the picture information of the plurality of pictures. The parking position in the tour route is understood to be the position of the vehicle when it is in a parked state.
Therefore, the first electronic device can judge whether shooting interest points exist in the area of the division points.
When the shooting interest point exists in the area of the division point, the first electronic device can determine that the user shoots a picture when the vehicle is in a parking state. Thus, the first electronic device may determine the segmentation point as a newly added shooting interest point.
Thus, the position of the newly added shooting interest point is the position of the division point, and the position of the newly added shooting interest point is the time of the division point (i.e., the parking time).
When the shooting interest point does not exist in the area of the division point, the first electronic device can determine that the user does not shoot a picture when the vehicle is in a parking state. Thus, the first electronic device may determine that the division point is not a shooting interest point.
S202, the first electronic device segments the tour route based on a plurality of shooting interest points, and obtains a plurality of segmented routes by taking the positions of every two adjacent shooting interest points as a starting position and an ending position.
The first electronic device divides the tour route based on time ordering relations of the shooting interest points to obtain a plurality of divided routes, and associates the shooting interest points with the divided routes by taking the positions of every two shooting interest points adjacent in time as a starting position and a stopping position to obtain a plurality of segmented routes.
The plurality of segment routes take the shooting interest point with the earliest time among the plurality of shooting interest points as a starting position and take the shooting interest point with the latest time among the plurality of shooting interest points as a termination position.
It can be understood that when the earliest shooting interest point of the plurality of shooting interest points overlaps with the start position of the tour route, the start position of the plurality of segmented routes is the start position of the tour route.
When the earliest shooting interest point in the plurality of shooting interest points is not overlapped with the starting position of the tour route, the plurality of segmented routes do not comprise routes between the earliest shooting interest point in the plurality of shooting interest points and the starting position of the tour route.
Similarly, when the latest shooting interest point among the plurality of shooting interest points overlaps with the end position of the tour route, the end position of the plurality of segmented routes is the end position of the tour route.
When the latest shooting interest point among the plurality of shooting interest points is not overlapped with the end position of the tour route, the plurality of segmented routes do not include a route between the latest shooting interest point among the plurality of shooting interest points and the end position of the tour route.
Next, a specific implementation manner of dividing the tour route by the first electronic device based on the shooting interest points will be described in detail with reference to fig. 8.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an effect of aggregation of multiple pictures according to an embodiment of the present application. For convenience of explanation, in fig. 8, four photographing points of interest shown in table 1 are used for illustration.
As shown in fig. 8, route 10 is a tour route. The photographing interest point a, the photographing interest point B, the photographing interest point C, and the photographing interest point D divide the route 1 into three segmented routes, namely, the segmented route 11, the segmented route 12, and the segmented route 13, in order of time from early to late.
For the segmented route 11, the starting position of the segmented route 11 is the shooting interest point a, and the ending position of the segmented route 11 is the shooting interest point B.
For the segmented route 12, the starting position of the segmented route 12 is the shooting interest point B, and the ending position of the segmented route 12 is the shooting interest point C.
For the segmented route 13, the start position of the segmented route 13 is the shooting interest point C, and the end position of the segmented route 13 is the shooting interest point D.
Wherein, the box 51 corresponds to the shooting interest point a, the box 52 corresponds to the shooting interest point B, the box 53 corresponds to the shooting interest point C, and the box 54 corresponds to the shooting interest point D.
In summary, the first electronic device may divide the tour route based on the shooting interest points, to obtain a plurality of segmented routes.
And S203, the first electronic equipment associates each segmented route with the plurality of pictures based on the picture information of the plurality of pictures to obtain the picture information of the associated picture of each segmented route.
The first electronic device may associate each segment route with the plurality of pictures based on the picture information of the plurality of pictures, to obtain picture information of an associated picture of each segment route.
Thus, the first electronic device may determine the plurality of segment routes and the picture information of the associated picture of each segment route.
Based on the above description, the first electronic device may take the point of interest as a start position and an end position, and store the navigation information of the multiple segment routes and the picture information of the associated picture of each segment in a fusion manner.
The data format of the fusion store may be as shown in table 2. For ease of illustration, table 2 is illustrated with three segment routes shown in fig. 8.
TABLE 2
Based on the foregoing description of S105, the second electronic device may display a plurality of segment routes and associated pictures of each segment route based on the plurality of shooting interest points.
In some embodiments, the second electronic device may display each segment route between every two time-adjacent shooting interest points in the electronic map using a link with an arrow, the direction of the arrow of each link being from the time-early shooting interest point to the time-later shooting interest point of the corresponding two shooting interest points, and display an icon of the associated picture of each segment route in the area to which each shooting interest point belongs.
Wherein, the icon of the associated picture of each segment route can comprise a plurality of display modes. For example, the icon of the associated picture of any one of the segment routes may be a thumbnail of each of the associated pictures of the segment routes, or may be a stacked thumbnail of each of the associated pictures of the segment routes, or may be a thumbnail of one of the associated pictures of the segment routes and a count corner mark displayed at an upper right corner of the thumbnail, where the count corner mark is used to indicate the total number of pictures of the associated pictures of the segment routes, which is not limited in this application.
In addition, the second electronic device may display a place name of each photographing interest point within a region to which each photographing interest point belongs, in addition to displaying a plurality of segment routes and associated pictures of each segment route. Therefore, the user can know the shooting interest point in time in the second electronic equipment.
In addition, the second electronic device may display a user interface upon receiving an operation on the icon of the associated picture of a segmented route. Wherein the user interface may be used to browse each of the associated pictures of the segmented route. The foregoing operations may include, but are not limited to, click, double click, long press, etc. The specific implementation of the user interface is not limited in this application.
Therefore, the user can select a single shooting interest point in the second electronic equipment to browse and navigate in the field, the possibility of navigating in the field is provided for browsing the associated picture of the single shooting interest point, and the experience is effectively and accurately carried out according to the existing experience of the sharing user.
In some embodiments, a thumbnail of each picture and a control may be included in the user interface. Wherein the control is used for providing an entry for browsing each picture. The specific implementation of the control is not limited in this application. Therefore, after receiving the operation triggered on the control, the second electronic equipment can play each picture in turn according to the sequence of the shooting time of each picture.
9A-9B, a detailed description of a specific implementation in which the second electronic device may display a plurality of segment routes and associated pictures for each segment route based on the plurality of capture points of interest is provided.
Referring to fig. 9A-9B, fig. 9A-9B are schematic diagrams illustrating an effect of displaying a plurality of pictures according to an embodiment of the present application. For convenience of explanation, fig. 9A to 9B illustrate three segment routes shown in table 2 and associated pictures of each segment route.
As shown in fig. 9A, the second electronic device may display the segment route 11, the segment route 12, and the segment route 13 on the electronic map using the connection lines with arrows, display the associated picture of the photographing interest point a using the icon 21, display the associated picture of the photographing interest point B using the icon 22, display the associated picture of the photographing interest point C using the icon 23, display the associated picture of the photographing interest point D using the icon 24, and display the location name (xx lake) of the photographing interest point a, the location name (xx tree) of the photographing interest point B, the location name (x 1 building) of the photographing interest point C, and the location name (x 2 building) of the photographing interest point D.
Upon receiving the operation on icon 21, the second electronic device may display the user interface exemplarily shown in fig. 9B for browsing 1.Jpg,2.Jpg,3.Jpg, and 4.Jpg.
In fig. 9B, the user interface may include: a region 11 and a control 12. The region 11 may be used to display a thumbnail of 1.Jpg, a thumbnail of 2.Jpg, a thumbnail of 3.Jpg, and a thumbnail of 4. Jpg. The control 12 may be used to enter a user interface that loops through 1.Jpg,2.Jpg,3.Jpg,4.Jpg in order of the shooting times of 1.Jpg,2.Jpg,3.Jpg, and 4.Jpg from early to late.
Additionally, the user interface may further include: control 13 and control 14. Wherein the control 13 library is used for providing an entry to a last shooting interest point earlier in time than the shooting interest point a. The control 14 library is used to provide access to the next shooting interest point later in time than shooting interest point a.
Based on the foregoing description, before generating the data packet to be shared, the first electronic device may also display a plurality of segment routes and associated pictures of each segment route as shown in S102. The specific implementation manner of the above process may refer to the description that the second electronic device displays a plurality of segment routes and associated pictures of each segment route, which is not described herein. Therefore, the first electronic device can realize preview display of a plurality of pictures.
In addition, the first electronic device may also display a location name of each photographing interest point within the area to which each photographing interest point belongs. The specific implementation manner of the above process may refer to the description that the second electronic device displays the location name of each shooting interest point, which is not described herein. Therefore, the user can know the shooting interest point in time in the first electronic equipment.
In addition, after receiving an operation on the icon of the associated picture of the one segment route, the first electronic device may also display a user interface for browsing each of the associated pictures of the segment route. The foregoing operations may include, but are not limited to, click, double click, long press, etc. The specific implementation of the user interface is not limited in this application. Therefore, the user can select a single shooting interest point in the first electronic device to browse and navigate pictures.
Based on the above description, any one of the electronic devices may be a mobile phone (such as a folding screen mobile phone, a large screen mobile phone, etc.), a tablet computer, a notebook computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, an ultra-mobile personal computer, a UMPC, a netbook, a personal digital assistant (personal digital assistant, PDA), a smart television, a smart screen, a high definition television, a 4K television, a smart speaker, a smart projector, etc., and the specific type of the electronic device is not limited in this application.
The electronic device according to the present application will be described with reference to fig. 10 by taking the electronic device as an example of a mobile phone.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, a user identification module (subscriber identification module, SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated herein does not constitute a specific limitation on the electronic device 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the connection between the modules illustrated in the present application is merely illustrative, and does not limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Taking an Android system with a layered architecture as an example, the application exemplifies a software structure of the electronic device 100. The type of the operating system of the electronic device is not limited in this application. For example, an Android system, a Linux system, a Windows system, an iOS system, a hong OS system (harmony operating system, hong OS), and the like.
Fig. 11 is a software block diagram of an electronic device according to an embodiment of the present application. As shown in fig. 11, the hierarchical architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (APP), an application framework layer (APP framework), an Zhuoyun row (Android run) and system library (library), and a kernel layer (kernel).
The application layer may include a series of application packages.
As shown in fig. 11, the application package may include Applications (APP) such as camera, gallery, calendar, call, map, navigation, WLAN, bluetooth, music, video, game, chat, shopping, travel, instant messaging (e.g., short message), smart home, device control, etc.
The intelligent home application can be used for controlling or managing home equipment with networking function. For example, home appliances may include electric lights, televisions, and air conditioners. For another example, the home appliances may also include a burglarproof door lock, a speaker, a floor sweeping robot, a socket, a body fat scale, a desk lamp, an air purifier, a refrigerator, a washing machine, a water heater, a microwave oven, an electric cooker, a curtain, a fan, a television, a set-top box, a door and window, and the like.
In addition, the application package may further include: the home screen (i.e. desktop), the negative screen, the control center, the notification center, etc. application programs.
The negative one screen, which may be referred to as "-1 screen", refers to a User Interface (UI) that slides the screen rightward on the main screen of the electronic device until it slides to the leftmost split screen. For example, the negative screen may be used to place shortcut service functions and notification messages, such as global search, shortcut entries (payment codes, weChat, etc.) for a page of an application, instant messaging and reminders (express information, expense information, commute road conditions, driving travel information, schedule information, etc.), and attention dynamics (football stand, basketball stand, stock information, etc.), etc. The control center is an up-slide message notification bar of the electronic device, that is, a user interface displayed by the electronic device when a user starts an up-slide operation at the bottom of the electronic device. The notification center is a drop-down message notification bar of the electronic device, i.e., a user interface displayed by the electronic device when a user begins to operate downward on top of the electronic device.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 11, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
Window managers (window manager) are used to manage window programs such as manage window states, attributes, view (view) additions, deletions, updates, window order, message collection and processing, and the like. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. And, the window manager accesses the portal of the window for the outside world.
The content provider is used to store and retrieve data and make such data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
A resource manager (resource manager) provides various resources for applications such as localization strings, icons, pictures, layout files of user interfaces (layout xml), video files, fonts, colors, identification numbers (identity document, IDs) of user interface components (user interface module, UI components) (also known as serial numbers or accounts), etc. And the resource manager is used for uniformly managing the resources.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The android runtime includes a core library and virtual machines. And the Android running process is responsible for scheduling and managing the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of the Android system.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGLES), 2D graphics engine (e.g., SGL), image processing library, etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the software and hardware of the electronic device 100 is illustrated below in connection with a scenario in which sound is played using a smart speaker.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of an intelligent sound box icon, the intelligent sound box application calls an interface of an application framework layer, starts the intelligent sound box application, further starts audio driving by calling a kernel layer, and converts an audio electric signal into a sound signal by a loudspeaker 170A.
It is to be understood that the structure illustrated herein does not constitute a specific limitation on the electronic device 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Illustratively, the present application provides an electronic device comprising: a memory and a processor; the memory is used for storing program instructions; the processor is configured to invoke the program instructions in the memory to cause the electronic device to execute the picture sharing method in the foregoing embodiment.
Illustratively, the present application provides a chip system for use with an electronic device including a memory, a display screen, and a sensor; the chip system includes: a processor; when the processor executes the computer instructions stored in the memory, the electronic device executes the picture sharing method in the previous embodiment.
Illustratively, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes an electronic device to implement the picture sharing method in the previous embodiments.
Illustratively, the present application provides a computer program product comprising: and executing the instructions, wherein the executing instructions are stored in the readable storage medium, and the at least one processor of the electronic device can read the executing instructions from the readable storage medium, so that the at least one processor executes the executing instructions to enable the electronic device to realize the picture sharing method in the previous embodiment.
In the above-described embodiments, all or part of the functions may be implemented by software, hardware, or a combination of software and hardware. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer readable storage medium. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (20)

1. The picture sharing method is characterized by being applied to first electronic equipment, and comprises the following steps:
when determining that a plurality of pictures need to be shared, determining a plurality of segmentation routes and picture information of associated pictures of each segmentation route based on the picture information of the plurality of pictures and a tour route when a user shoots the plurality of pictures, wherein the picture information of the plurality of pictures at least comprises image data, shooting time and shooting position of each picture;
generating a data packet to be shared based on the plurality of segment routes and the picture information of the associated picture of each segment route;
and transmitting the data packet to be shared to a second electronic device, so that the second electronic device analyzes the data packet to be shared and displays the plurality of segment routes and associated pictures of each segment route.
2. The method according to claim 1, wherein the method further comprises:
acquiring navigation information of a vehicle driven by a user when the plurality of pictures are taken;
determining a driving route of the vehicle based on the navigation information of the vehicle;
a driving route of the vehicle is determined as the tour route.
3. The method according to claim 1, wherein the method further comprises:
acquiring movement information of equipment used by a user when the plurality of pictures are taken;
filtering invalid information in the mobile information of the equipment to obtain filtered mobile information of the equipment;
and fitting the filtered movement information of the equipment through the navigation information of the standard route to obtain the tour route.
4. The method according to claim 1, wherein the method further comprises:
based on the picture information of the pictures, carrying out picture filtering and position aggregation on the pictures to obtain a plurality of shooting interest points;
and fitting the plurality of shooting interest points through navigation information of the standard route to obtain the tour route.
5. The method of claim 4, wherein the fitting the plurality of shooting interest points to obtain the tour route through navigation information of a standard route comprises:
Based on the time of each shooting interest point, time averaging is carried out on the shooting interest points to obtain the intermediate time of the shooting interest points;
based on the intermediate time of the plurality of shooting interest points, time ordering the plurality of shooting interest points to obtain a time ordering relation of the plurality of shooting interest points;
based on the time ordering relation of the shooting interest points, the positions of every two shooting interest points adjacent to each other in time are used as the starting position and the ending position, the route between every two shooting interest points adjacent to each other in time is calculated through the navigation information of the standard route, and the plurality of routes are combined to obtain the tour route.
6. The method of any of claims 1-5, wherein determining a plurality of segment routes and picture information for an associated picture for each segment route based on picture information for the plurality of pictures and a tour route that the user took the plurality of pictures comprises:
based on the picture information of the pictures, carrying out picture filtering and position aggregation on the pictures to obtain a plurality of shooting interest points;
dividing the tour route based on the shooting interest points, and taking the positions of every two adjacent shooting interest points as a starting position and a stopping position to obtain a plurality of segmented routes;
And associating each segmented route with the plurality of pictures based on the picture information of the plurality of pictures to obtain the picture information of the associated picture of each segmented route.
7. The method according to claim 4 or 6, wherein the performing picture filtering and position aggregation on the plurality of pictures based on the picture information of the plurality of pictures to obtain a plurality of shooting interest points includes:
dividing pictures with shooting positions in the same area in the plurality of pictures into a group to obtain a plurality of groups of pictures;
and carrying out position and time averaging on the multiple groups of pictures based on the picture information of each group of pictures to obtain a shooting interest point corresponding to each group of pictures, and the position and time of each shooting interest point.
8. The method of claim 7, wherein when the tour route is obtained from a vehicle driven by a user while taking the plurality of pictures, the method further comprises:
determining a parking position in the tour route as a split point;
judging whether shooting interest points exist in the region of the division points;
when shooting interest points exist in the area of the division points, determining the division points as newly added shooting interest points;
And when the shooting interest point does not exist in the area of the division point, determining that the division point is not the shooting interest point.
9. The method according to any one of claims 1-8, wherein prior to generating the data packet to be shared, the method further comprises:
and displaying the plurality of segment routes and the associated picture of each segment route.
10. The method of claim 9, wherein when the start position and the end position of each segment route are two time-adjacent capturing points of interest, each capturing point of interest is obtained by performing picture filtering and position aggregation on the plurality of pictures based on the picture information of the plurality of pictures, the displaying the plurality of segment routes and the associated picture of each segment route comprises:
in the electronic map, each segment route is displayed between every two adjacent shooting interest points by adopting a connecting line with an arrow, the direction of the arrow of each connecting line points to a shooting interest point with a later time from the shooting interest points with an earlier time in the corresponding two shooting interest points, and an icon of an associated picture of each segment route is displayed in the area of each shooting interest point.
11. The method according to claim 10, wherein the method further comprises:
performing inverse geocoding analysis on the shooting positions of the associated pictures of each segmented route, and determining the place name of each shooting interest point;
and displaying the place name of each shooting interest point in the area of each shooting interest point.
12. The method according to claim 10, wherein the method further comprises:
after receiving an operation on an icon of an associated picture of a segment route, displaying a user interface for browsing each picture of the associated pictures of the segment route.
13. The method of any of claims 1-12, wherein when an album application is installed in the first electronic device, the method further comprises:
displaying a control in a user interface of the album application;
and after receiving the operation triggered on the control, determining that the plurality of pictures need to be shared.
14. The picture sharing method is characterized by being applied to a second electronic device, and comprises the following steps:
acquiring a data packet to be shared from a first electronic device, wherein the data packet to be shared is generated by the first electronic device based on a plurality of segment routes and picture information of associated pictures of each segment route, the picture information of the plurality of segment routes and the associated pictures of each segment route is determined by the first electronic device based on the picture information of the plurality of pictures and a tour route when a user shoots the plurality of pictures when the first electronic device determines that the plurality of pictures need to be shared, and the picture information of the plurality of pictures at least comprises image data, shooting time and shooting position of each picture;
Analyzing the data packet to be shared to obtain the plurality of segmented routes and the picture information of the associated picture of each segmented route;
and displaying the plurality of segment routes and the associated picture of each segment route based on the picture information of the plurality of segment routes and the associated picture of each segment route.
15. The method of claim 14, wherein when the start position and the end position of each segment route are two time-adjacent capturing points of interest, each capturing point of interest is obtained by performing picture filtering and position aggregation on the plurality of pictures based on the picture information of the plurality of pictures, the displaying the plurality of segment routes and the associated picture of each segment route comprises:
in the electronic map, each segment route is displayed between every two adjacent shooting interest points by adopting a connecting line with an arrow, the direction of the arrow of each connecting line points to a shooting interest point with a later time from the shooting interest points with an earlier time in the corresponding two shooting interest points, and an icon of an associated picture of each segment route is displayed in the area of each shooting interest point.
16. The method of claim 15, wherein the method further comprises:
Performing inverse geocoding analysis on the shooting positions of the associated pictures of each segmented route, and determining the place name of each shooting interest point;
and displaying the place name of each shooting interest point in the area of each shooting interest point.
17. The method of claim 15, wherein the method further comprises:
after receiving an operation on an icon of an associated picture of a segment route, displaying a user interface for browsing each picture of the associated pictures of the segment route.
18. The method of any of claims 14-17, wherein the displaying the plurality of segment routes and the associated picture of each segment route when the album application is installed in the second electronic device comprises:
displaying the plurality of segment routes and associated pictures of each segment route in a user interface of the album application.
19. An electronic device, comprising: a memory and a processor;
the memory is used for storing program instructions;
the processor is configured to invoke the program instructions in the memory, to cause the electronic device to perform the picture sharing method of any of claims 1-13, or to cause the electronic device to perform the picture sharing method of any of claims 14-18.
20. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the picture sharing method of any one of claims 1-13 or cause the electronic device to perform the picture sharing method of any one of claims 14-18.
CN202210109290.8A 2022-01-28 2022-01-28 Picture sharing method and electronic equipment Pending CN116561085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210109290.8A CN116561085A (en) 2022-01-28 2022-01-28 Picture sharing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210109290.8A CN116561085A (en) 2022-01-28 2022-01-28 Picture sharing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116561085A true CN116561085A (en) 2023-08-08

Family

ID=87500624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210109290.8A Pending CN116561085A (en) 2022-01-28 2022-01-28 Picture sharing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116561085A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117739995A (en) * 2024-02-20 2024-03-22 厦门精图信息技术有限公司 System and method for realizing navigation and space-time backtracking based on shooting and live-action map

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117739995A (en) * 2024-02-20 2024-03-22 厦门精图信息技术有限公司 System and method for realizing navigation and space-time backtracking based on shooting and live-action map

Similar Documents

Publication Publication Date Title
CN111666119B (en) UI component display method and electronic device
EP3923634A1 (en) Method for identifying specific position on specific route and electronic device
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN115473957B (en) Image processing method and electronic equipment
WO2020000448A1 (en) Flexible screen display method and terminal
CN114546190A (en) Application display method and electronic equipment
CN113254409B (en) File sharing method, system and related equipment
WO2021258814A1 (en) Video synthesis method and apparatus, electronic device, and storage medium
CN116009999A (en) Card sharing method, electronic equipment and communication system
CN113961157A (en) Display interaction system, display method and equipment
CN116070035B (en) Data processing method and electronic equipment
CN115914461B (en) Position relation identification method and electronic equipment
CN116561085A (en) Picture sharing method and electronic equipment
CN116048358B (en) Method and related device for controlling suspension ball
CN112416984A (en) Data processing method and device
CN115022807B (en) Express information reminding method and electronic equipment
CN111339513B (en) Data sharing method and device
CN116828100A (en) Bluetooth audio playing method, electronic equipment and storage medium
CN113867851A (en) Electronic equipment operation guide information recording method, electronic equipment operation guide information acquisition method and terminal equipment
CN113950045A (en) Subscription data downloading method and electronic equipment
CN114205318B (en) Head portrait display method and electronic equipment
CN116048831B (en) Target signal processing method and electronic equipment
WO2023116669A1 (en) Video generation system and method, and related apparatus
US20230259346A1 (en) Application Module Startup Method and Electronic Device
CN117311580A (en) Screen splitting method and foldable electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination