CN105138285B - Sharing method, device and the equipment of photographed data - Google Patents
Sharing method, device and the equipment of photographed data Download PDFInfo
- Publication number
- CN105138285B CN105138285B CN201510490243.2A CN201510490243A CN105138285B CN 105138285 B CN105138285 B CN 105138285B CN 201510490243 A CN201510490243 A CN 201510490243A CN 105138285 B CN105138285 B CN 105138285B
- Authority
- CN
- China
- Prior art keywords
- shooting data
- shooting
- module
- hard disk
- data
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000013500 data storage Methods 0.000 claims abstract description 52
- 230000006870 function Effects 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 17
- 239000004984 smart glass Substances 0.000 description 3
- 230000011664 signaling Effects 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Television Signal Processing For Recording (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The disclosure is directed to a kind of sharing method of photographed data, device and equipment, this method includes:The photographed data storage request that capture apparatus is sent is received, photographed data is carried in the photographed data storage request;The photographed data is stored in a hard disk;The photographed data stored in hard disk is sent to terminal device, to cause the terminal device to show the photographed data.The disclosure can simplify the shared procedure of photographed data, improve the sharing efficiency of photographed data.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a device for sharing shooting data.
Background
Users often record a drip in life by taking a picture or recording a video anytime and anywhere using a photographing device such as a camera, a mobile phone, a wearable device having a photographing function, or the like. Since the user sometimes needs to share the taken photo or video with other users, or the user sometimes takes a photo or video with one of the taking devices and needs to display the photo or video on the other device, the user needs to share the taken photo or video among the devices.
In the related art, when a user wants to watch a photo or a video through a terminal device such as a smart television or a computer after the photo or the video is taken through a shooting device, the user needs to first connect through a data line, copy through a storage device, or transmit through a wireless transmission mode such as bluetooth, so that the photo or the video is transmitted from the shooting device to the terminal device to share the photo or the video, and the sharing operation of the photo or the video is complicated.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a device for sharing shot data.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for sharing shooting data, including:
receiving a shooting data storage request sent by shooting equipment, wherein the shooting data storage request carries shooting data;
storing the shooting data in a hard disk;
and sending the shooting data stored in the hard disk to terminal equipment so that the terminal equipment displays the shooting data.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the shot data storage request carries attribute information corresponding to the shot data, where the attribute information includes at least one of the following information: the shooting equipment identification information, the shooting time information, the shooting place information and the resolution information;
after the shooting data is stored in the hard disk, the method further comprises the following steps:
generating storage path information of the shooting data;
and storing the corresponding relation between the attribute information and the storage path information in a database, wherein the database stores the attribute information and the storage path information which respectively correspond to all the shooting data in the hard disk.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, before the sending, to the terminal device, the shooting data stored in the hard disk, the method further includes:
receiving an access message sent by the terminal equipment, wherein the access message carries the attribute information;
inquiring whether the attribute information is stored in the database;
if the attribute information is stored in the database, acquiring storage path information corresponding to the attribute information; or,
if the attribute information is not stored in the database, sending data absence prompt information to the terminal equipment;
the sending the shooting data stored in the hard disk to the terminal device includes:
and sending the shooting data to the terminal equipment according to the storage path corresponding to the attribute information.
With reference to the first or second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, before the sending the shooting data stored in the hard disk to the terminal device, the method further includes:
judging whether the shooting data are stored in the hard disk or not;
the storing the shooting data in the hard disk includes:
and if the shooting data is not stored in the hard disk, storing the shooting data in the hard disk.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the determining whether the hard disk stores the shooting data includes:
performing hash operation on the shot data according to a preset hash function to generate a first hash value corresponding to the shot data, wherein the first hash value is used for judging whether the shot data is stored in the hard disk or not;
inquiring whether a hash value identical to the first hash value exists in the database, wherein the database stores hash values respectively corresponding to all the shooting data in the hard disk;
if the shooting data is not stored in the hard disk, storing the shooting data in the hard disk, including:
and if the database does not have the hash value which is the same as the first hash value, storing the shooting data in the hard disk, and storing the first hash value in the database.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, after querying whether a hash value that is the same as the first hash value exists in the database, the method further includes:
and if a second hash value identical to the first hash value exists in the database, storing the corresponding relation between the attribute information and the storage path information of the shooting data corresponding to the second hash value in the database.
With reference to the first aspect, in a sixth possible implementation manner of the first aspect, before the receiving a shooting data storage request sent by a shooting device, the method further includes:
and establishing wireless connection with the shooting equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided a shooting data sharing apparatus including:
the device comprises a first receiving module, a second receiving module and a processing module, wherein the first receiving module is used for receiving a shooting data storage request sent by shooting equipment, and the shooting data storage request carries shooting data;
the first storage module is used for storing the shooting data received by the first receiving module in a hard disk;
the first sending module is used for sending the shooting data stored in the hard disk by the first storage module to the terminal equipment so that the terminal equipment can display the shooting data.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the shooting data storage request received by the first receiving module carries attribute information corresponding to the shooting data, where the attribute information includes at least one of the following information: the shooting equipment identification information, the shooting time information, the shooting place information and the resolution information;
the device further comprises: the generating module and the second storage module;
the generating module is used for generating storage path information of the shooting data after the first storage module stores the shooting data;
the second storage module is configured to store a corresponding relationship between the attribute information and the storage path information generated by the generation module in a database, where the database stores attribute information and storage path information corresponding to all shooting data in the hard disk, respectively.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the apparatus further includes: the system comprises a second receiving module, a query module, an acquisition module, a second sending module and a third sending module;
the second receiving module is configured to receive an access message sent by the terminal device before the first sending module sends the shooting data stored in the hard disk to the terminal device, where the access message carries the attribute information;
the query module is configured to query whether the attribute information received by the second receiving module is stored in the database;
the obtaining module is used for obtaining the storage path information corresponding to the attribute information when the attribute information is stored in the database inquired by the inquiring module;
the second sending module is configured to send data absence prompting information to the terminal device when the query module queries that the attribute information is not stored in the database;
and the third sending module is configured to send the shooting data to the terminal device according to the storage path corresponding to the attribute information acquired by the acquiring module.
With reference to the first or second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the apparatus further includes: the judgment module and the third storage module;
the judging module is used for judging whether the shooting data are stored in the hard disk before the first sending module sends the shooting data stored in the hard disk to the terminal equipment;
the third storage module is configured to store the shooting data in the hard disk when the judgment module judges that the shooting data is not stored in the hard disk.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the determining module includes: the system comprises a generating sub-module, a query sub-module and a first storage sub-module;
the generation submodule is configured to perform a hash operation on the shot data according to a preset hash function, and generate a first hash value corresponding to the shot data, where the first hash value is used to determine whether the shot data is stored in the hard disk;
the query submodule is configured to query whether a hash value identical to the first hash value generated by the generation submodule exists in the database, where hash values corresponding to all pieces of shooting data in the hard disk are stored in the database;
the first storage sub-module is configured to store the shooting data in the hard disk and store the first hash value in the database when the query sub-module queries that the database does not have a hash value that is the same as the first hash value generated by the generation sub-module.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the determining module further includes: a second storage submodule;
the second storage sub-module is configured to store, in the database, a correspondence between the attribute information and storage path information of the shooting data corresponding to the second hash value when the querying sub-module queries that the second hash value identical to the first hash value exists in the database.
With reference to the second aspect, in a sixth possible implementation manner of the second aspect, the method further includes:
the establishing module is used for establishing wireless connection with the shooting equipment before the first receiving module receives the shooting data storage request sent by the shooting equipment.
According to a third aspect of the embodiments of the present disclosure, there is provided a shooting data sharing apparatus including:
a memory;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a shooting data storage request sent by shooting equipment, wherein the shooting data storage request carries shooting data;
storing the shooting data in a hard disk;
and sending the shooting data stored in the hard disk to terminal equipment so that the terminal equipment displays the shooting data.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the shooting data storage request sent by the shooting equipment is received, the shooting data is carried in the shooting data storage request, the shooting data is stored in the hard disk, and the shooting data stored in the hard disk is sent to the terminal equipment, so that the terminal equipment can display the shooting data. The router can store the shooting data into the hard disk after receiving the shooting data sent by the shooting equipment, and when a user wants to display the shooting data through the terminal equipment, the router can send the shooting data stored in the hard disk to the terminal equipment so that the terminal equipment can display the shooting data.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method of sharing photographing data according to an exemplary embodiment;
fig. 2 is a flowchart illustrating a photographing data sharing method according to another exemplary embodiment;
fig. 3 is a flowchart illustrating a photographing data sharing method according to still another exemplary embodiment;
fig. 4 is a flowchart illustrating a photographing data sharing method according to still another exemplary embodiment;
fig. 5 is a signaling diagram illustrating a method of sharing photographing data according to still another exemplary embodiment;
fig. 6 is a block diagram illustrating a photographing data sharing apparatus according to an exemplary embodiment;
fig. 7 is a block diagram illustrating a photographing data sharing apparatus according to another exemplary embodiment;
fig. 8 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment;
fig. 9 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment;
fig. 10 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment;
fig. 11 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment;
fig. 12 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment;
fig. 13 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of sharing photographic data according to an exemplary embodiment, and the method of sharing photographic data according to the present embodiment is used in a router, as illustrated in fig. 1, and includes the following steps.
In step S11, a shooting data storage request transmitted by the shooting device is received.
The shooting data storage request carries shooting data.
In step S12, the shooting data is stored in the hard disk.
In step S13, the shooting data stored in the hard disk is transmitted to the terminal device.
Further, the shooting data is displayed by the terminal equipment.
In this disclosure, the shooting device is a device having a shooting function, for example, the shooting device may be a camera, a mobile phone, a tablet computer, a wearable device having a shooting function, for example, a smart band, smart glasses, and the like, and the terminal device includes a mobile phone, a tablet computer, a television, and the like, so that the terminal device and the shooting device may be the same or different. After shooting data, the shooting device carries the shooting data in a shooting data storage request message and sends the shooting data to the router, wherein the shooting data comprises videos or photos and the like.
The router stores the shooting data carried in the message into the hard disk after receiving the shooting data storage request message sent by the shooting equipment, and when a user wants to display the shooting data on the terminal equipment, the router sends the shooting data stored in the hard disk to the terminal equipment, so that the terminal equipment displays the shooting data.
According to the shot data sharing method, the shot data storage request sent by the shooting device is received, the shot data is carried in the shot data storage request, the shot data is stored in the hard disk, and the shot data stored in the hard disk is sent to the terminal device, so that the terminal device can display the shot data. The router can store the shooting data into the hard disk after receiving the shooting data sent by the shooting equipment, and when a user wants to display the shooting data through the terminal equipment, the router can send the shooting data stored in the hard disk to the terminal equipment so that the terminal equipment can display the shooting data.
Fig. 2 is a flowchart illustrating a method for sharing shot data, which is used in a router according to another exemplary embodiment, and this embodiment describes in detail an embodiment in which a terminal device downloads shot data in a router on the basis of the embodiment illustrated in fig. 1, and as illustrated in fig. 2, the method for sharing shot data includes the following steps.
In step S21, a shooting data storage request transmitted by the shooting device is received.
The shooting data storage request carries shooting data, and the shooting data comprises videos or photos and the like. The shooting device is a device with a shooting function, such as a camera, a mobile phone, a tablet computer, and a wearable device with a shooting function, such as a smart band and smart glasses.
In step S22, the shooting data is stored in the hard disk.
In step S23, storage path information of the shooting data is generated.
In the embodiment of the present disclosure, after the shooting data is stored in the hard disk of the router, the storage path information of the shooting data in the hard disk is generated, for example: the shooting data is stored in the several sectors in the hard disk, and so on.
In step S24, the correspondence between the attribute information and the storage path information is stored in a database.
Furthermore, the database stores attribute information and storage path information corresponding to all the shooting data in the hard disk respectively.
In the embodiment of the present disclosure, the shooting data storage request further carries attribute information corresponding to the shooting data, where the attribute information includes at least one of the following information: shooting device identification information, shooting time information, shooting place information and resolution information. In a specific implementation process, after shooting data, the shooting device carries the shooting data and attribute information corresponding to the shooting data in a shooting data storage request in a form of a bit stream and sends the shooting data and the attribute information to the router, and the router analyzes the bit stream according to the received shooting data storage request to obtain the shooting data and the corresponding attribute information.
When the router obtains the attribute information of the shot data and determines the storage path information of the shot data in the hard disk of the router, the corresponding relation between the attribute information and the storage path information can be stored in the database of the router. In this way, since the database stores the attribute information and the storage path information corresponding to all the shot data in the hard disk, the shot data in the hard disk and the corresponding attribute information can be associated with each other by the correspondence relationship between the attribute information and the storage path information. For example: the shooting time of the first sector of the shooting data stored in the hard disk is 2015, 1 month and 1 day, the shooting place is Beijing, and the resolution is 1024 × 768.
In step S25, an access message sent by the terminal device is received.
Wherein the access message carries the attribute information.
In the embodiment of the present disclosure, the terminal device includes a mobile phone, a tablet computer, a television, and the like, and if the user wants to display the shot data on the terminal device, the terminal device directly downloads the corresponding shot data from the router, and in practical application, the user can carry the attribute information of the shot data that the user wants to display in the access message and send the access message to the router through the terminal device. For example: the user wants to display all photos shot in Beijing on 1 month and 1 day of 2015 year in the terminal equipment, the shooting time information is set to 1 month and 1 day of 2015 year, the shooting place information is set to Beijing, the set attribute information is sent to the terminal equipment, and the terminal equipment carries the received attribute information in the access message and sends the access message to the router.
In step S26, it is queried in the database whether the attribute information is stored.
In the embodiment of the present disclosure, after receiving an access message sent by a terminal device, a router needs to query whether attribute information carried in the access message is stored in a database, if the attribute information is stored in the database, then step S29 is executed after step S27 is executed, otherwise, step S28 is executed.
In step S27, the storage path information corresponding to the attribute information is acquired.
In the embodiment of the present disclosure, if the attribute information is stored in the database, the storage path information corresponding to the attribute information is obtained according to the corresponding relationship between the attribute information and the storage path information.
In step S28, data absence notification information is sent to the terminal device.
In the embodiment of the present disclosure, if the attribute information is not stored in the database, a data absence notification message is sent to the terminal device to notify that the shooting data accessed by the terminal device is not stored in the database.
In step S29, the shooting data is sent to the terminal device according to the storage path corresponding to the attribute information.
Further, the shooting data is displayed by the terminal equipment.
In the embodiment of the present disclosure, the router sends the shooting data stored in the storage path information to the terminal device according to the storage path information corresponding to the acquired attribute information, and the terminal device displays the shooting data after receiving the shooting data sent by the router.
According to the shot data sharing method, the shot data storage request sent by the shooting device is received, the shot data is carried in the shot data storage request, the shot data is stored in the hard disk, and the shot data stored in the hard disk is sent to the terminal device, so that the terminal device can display the shot data. The router can store the shooting data into the hard disk after receiving the shooting data sent by the shooting equipment, and when a user wants to display the shooting data through the terminal equipment, the router can send the shooting data stored in the hard disk to the terminal equipment so that the terminal equipment can display the shooting data. In addition, the attribute information of the shooting equipment and the corresponding relation of the storage path information are stored, and the terminal equipment can download the shooting data stored in the hard disk through the attribute information, so that the accuracy of the downloading of the shooting data is improved.
Fig. 3 is a flowchart illustrating a method for sharing shot data, which is used in a router according to still another exemplary embodiment, and this embodiment describes in detail an embodiment of determining whether shot data is already stored in a hard disk based on the embodiment illustrated in fig. 2, and the method for storing shot data includes the following steps, as illustrated in fig. 3.
In step S31, a shooting data storage request transmitted by the shooting device is received.
The shooting data storage request carries shooting data, and the shooting data comprises videos or photos and the like. The shooting device is a device with a shooting function, such as a camera, a mobile phone, a tablet computer, and a wearable device with a shooting function, such as a smart band and smart glasses.
In step S32, it is determined whether the shooting data is stored in the hard disk.
In step S33, if the shooting data is not stored in the hard disk, the shooting data is stored in the hard disk.
In the embodiment of the disclosure, after receiving a shooting data storage request sent by a shooting device, it is first determined whether the shooting data is already stored in a hard disk, if it is determined that the shooting data is already stored in the hard disk, a prompt message may be sent to the shooting device to notify the shooting device that the shooting data is already stored in the hard disk, and if it is determined that the shooting data is not stored in the hard disk, the shooting data is stored in the hard disk, so that a phenomenon that the same shooting data is repeatedly stored may be avoided, and a storage space of the hard disk is saved.
In step S34, the shooting data stored in the hard disk is transmitted to the terminal device.
Further, the shooting data is displayed by the terminal equipment.
According to the shot data sharing method, the shot data storage request sent by the shooting device is received, the shot data is carried in the shot data storage request, the shot data is stored in the hard disk, and the shot data stored in the hard disk is sent to the terminal device, so that the terminal device can display the shot data. The router can store the shooting data into the hard disk after receiving the shooting data sent by the shooting equipment, and when a user wants to display the shooting data through the terminal equipment, the router can send the shooting data stored in the hard disk to the terminal equipment so that the terminal equipment can display the shooting data. In addition, when the shooting data is judged not to be stored in the hard disk, the shooting data is stored, so that the storage space of the hard disk is saved.
Fig. 4 is a flowchart illustrating a method for sharing shot data, which is used in a router, according to still another exemplary embodiment, and this embodiment describes in detail how to determine whether the shot data is stored in the hard disk based on the embodiment illustrated in fig. 3, and as illustrated in fig. 4, the method for storing the shot data includes the following steps.
In step S41, a hash operation is performed on the captured data according to a preset hash function, so as to generate a first hash value corresponding to the captured data.
The first hash value is used for judging whether the shooting data are stored in the hard disk or not.
In the embodiment of the present disclosure, the router may perform hash operation on the shot data according to a preset hash function, and generate a first hash value corresponding to the shot data, so as to determine whether the shot data is stored in the hard disk by using the generated first hash value. The hash function may be, for example, MD4, MD5, SHA1, or the like, which may be selected according to actual situations, and the specific form of the hash function is not limited herein.
In step S42, the database is queried as to whether there is a hash value identical to the first hash value.
And the database stores hash values corresponding to all the shooting data in the hard disk respectively.
If the same hash value as the first hash value does not exist in the database, step S43 is executed, otherwise, step S44 is executed.
In step S43, the photographic data is stored in the hard disk, and the first hash value is stored in the database.
In the embodiment of the present disclosure, since the database stores hash values corresponding to all the shot data in the hard disk, if the database does not have a hash value identical to the first hash value, it indicates that the shot data corresponding to the first hash value is not stored in the hard disk, and therefore the shot data is stored in the hard disk, and the first hash value is stored in the database for use in the next query.
In step S44, the correspondence between the attribute information and the storage path information of the captured data corresponding to the second hash value is stored in a database.
In the embodiment of the present disclosure, if a second hash value identical to the first hash value exists in the database, it indicates that the shot data has been stored before, and the storage is not required to be repeated this time, however, since the shot data corresponding to the first hash value may be identical to the shot data corresponding to the second hash value, and the attribute information of the two may be different, at this time, the correspondence relationship between the attribute information and the storage path information of the shot data corresponding to the second hash value is stored in the database, so that the router searches for the corresponding information.
According to the shot data sharing method, the first hash value of the shot data is calculated, whether the hash value identical to the first hash value exists in the database or not is judged, whether the shot data is stored in the hard disk before is determined, repeated storage is avoided, and therefore the storage space of the hard disk can be saved.
Fig. 5 is a signaling diagram illustrating a method for sharing shot data according to still another exemplary embodiment, in this embodiment, a shooting device is different from a terminal device, and the terminal device downloads shot data from a hard disk as an example to describe in detail the technical solution of the present invention, and as shown in fig. 5, the method for sharing shot data includes the following steps.
In step S51, the photographing apparatus establishes a wireless connection with the router.
In step S52, the photographing apparatus transmits a photographing data storage request to the router.
The shooting data storage request carries shooting data.
In step S53, the router determines whether the shooting data is stored in the hard disk.
In step S54, if the shooting data is not stored in the hard disk, the router stores the shooting data in the hard disk.
In step S55, the router generates storage path information of the shot data.
In step S56, the router stores the correspondence between the attribute information and the stored path information in a database.
In step S57, the terminal device transmits an access message to the router.
Wherein, the access message carries attribute information.
In step S58, the router inquires in the database whether the attribute information is stored.
If the database stores the attribute information, step S61 is executed after step S59 is executed, otherwise, the whole process is ended after step S60 is executed.
In step S59, the router acquires the storage path information corresponding to the attribute information.
In step S60, the router transmits data absence notification information to the terminal device.
In step S61, the router sends the shooting data to the terminal device according to the storage path corresponding to the attribute information.
According to the shot data sharing method, the shot data storage request sent by the shooting device is received, the shot data is carried in the shot data storage request, the shot data is stored in the hard disk, and the shot data stored in the hard disk is sent to the terminal device, so that the terminal device can display the shot data. The router can store the shooting data into the hard disk after receiving the shooting data sent by the shooting equipment, and when a user wants to display the shooting data through the terminal equipment, the router can send the shooting data stored in the hard disk to the terminal equipment so that the terminal equipment can display the shooting data.
The above describes the implementation procedure of the storage method of the shot data, which can be implemented by the storage device, and the internal function and structure of the storage device will be explained below.
Fig. 6 is a block diagram illustrating a sharing apparatus of photographing data according to an exemplary embodiment, and as shown in fig. 6, the sharing apparatus includes a first receiving module 61, a first storing module 62, and a first transmitting module 63.
The first receiving module 61 is configured to receive a shooting data storage request sent by a shooting device, where the shooting data storage request carries shooting data;
the first storage module 62 is configured to store the shooting data received by the first receiving module 61 in a hard disk;
the first sending module 63 is configured to send the shooting data stored in the hard disk by the first storage module 62 to the terminal device, so that the terminal device displays the shooting data.
As shown in fig. 7, fig. 7 is a block diagram of a shooting data sharing apparatus according to another exemplary embodiment, and on the basis of the embodiment shown in fig. 6, the shooting data storage request received by the first receiving module 61 carries attribute information corresponding to the shooting data, where the attribute information includes at least one of the following information: the shooting equipment identification information, the shooting time information, the shooting place information and the resolution information; the apparatus further comprises a generating module 64 and a second storing module 65.
The generating module 64 is configured to generate storage path information of the shooting data after the first storage module 62 stores the shooting data;
the second storage module 65 is configured to store a corresponding relationship between the attribute information and the storage path information generated by the generation module 64 in a database, where the database stores attribute information and storage path information corresponding to all shooting data in the hard disk.
In addition, as shown in fig. 8, fig. 8 is a block diagram of a photographing data sharing apparatus according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 7, the apparatus further includes a second receiving module 66, an inquiring module 67, an acquiring module 68, a second transmitting module 69 and a third transmitting module 70.
The second receiving module 66 is configured to receive an access message sent by the terminal device before the first sending module 63 sends the shooting data stored in the hard disk to the terminal device, where the access message carries the attribute information;
the query module 67 is configured to query the database whether the attribute information received by the second receiving module 66 is stored;
the obtaining module 68 is configured to obtain storage path information corresponding to the attribute information when the querying module 67 queries that the attribute information is stored in the database;
the second sending module 69 is configured to send data absence prompting information to the terminal device when the querying module 67 queries that the attribute information is not stored in the database;
the third sending module 70 is configured to send the shooting data to the terminal device according to the storage path corresponding to the attribute information acquired by the acquiring module 68.
In addition, as shown in fig. 9, fig. 9 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 8, the apparatus further includes a judgment module 71 and a third storage module 72.
The determining module 71 is configured to determine whether the shooting data stored in a hard disk is stored in the hard disk before the first sending module 63 sends the shooting data stored in the hard disk to the terminal device;
the third storage module 72 is configured to store the shooting data in the hard disk when the determination module 71 determines that the shooting data is not stored in the hard disk.
In addition, as shown in fig. 10, fig. 10 is a block diagram of a captured data sharing apparatus according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 9, the determining module 71 further includes a generating sub-module 711, a querying sub-module 712, and a first storing sub-module 713.
The generating submodule 711 is configured to perform a hash operation on the shooting data according to a preset hash function, and generate a first hash value corresponding to the shooting data, where the first hash value is used to determine whether the shooting data is stored in the hard disk;
the query submodule 712 is configured to query whether a hash value identical to the first hash value generated by the generation submodule 711 exists in the database, where hash values corresponding to all pieces of shooting data in the hard disk are stored in the database;
the first storing sub-module 713 is configured to store the photographing data in the hard disk and store the first hash value in the database when the querying sub-module 712 queries that the database does not have a hash value that is the same as the first hash value generated by the generating sub-module 711.
In addition, as shown in fig. 11, fig. 11 is a block diagram of a device for sharing shooting data according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 10, the determining module 71 further includes a second storage sub-module 714.
The second storage sub-module 714 is configured to store, in the database, a corresponding relationship between the attribute information and storage path information of the shooting data corresponding to the second hash value when the querying sub-module 712 queries that the second hash value identical to the first hash value exists in the database.
In addition, as shown in fig. 12, fig. 12 is a block diagram illustrating a photographing data sharing apparatus according to still another exemplary embodiment, and the apparatus further includes a setup module 74 based on the embodiment shown in fig. 6.
The establishing module 74 is configured to establish a wireless connection with the shooting device before the first receiving module 61 receives the shooting data storage request sent by the shooting device.
The internal functions and structure of the sharing apparatus of shot data have been described above, and as shown in fig. 13, the sharing apparatus of shot data 1900 includes a memory 1932; further, if the means for sharing the shot data is a server or the like, the processing component 1922 may further include one or more processors and memory resources represented by the memory 1932 for storing instructions, such as an application program, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the method of:
receiving a shooting data storage request sent by shooting equipment, wherein the shooting data storage request carries shooting data;
storing the shooting data in a hard disk;
and sending the shooting data stored in the hard disk to terminal equipment so that the terminal equipment displays the shooting data.
The shooting data storage request carries attribute information corresponding to the shooting data, wherein the attribute information comprises at least one of the following information: the shooting equipment identification information, the shooting time information, the shooting place information and the resolution information;
after the shooting data is stored in the hard disk, the method further comprises the following steps:
generating storage path information of the shooting data;
and storing the corresponding relation between the attribute information and the storage path information in a database, wherein the database stores the attribute information and the storage path information which respectively correspond to all the shooting data in the hard disk.
Before the sending of the shooting data stored in the hard disk to the terminal device, the method further includes:
receiving an access message sent by the terminal equipment, wherein the access message carries the attribute information;
inquiring whether the attribute information is stored in the database;
if the attribute information is stored in the database, acquiring storage path information corresponding to the attribute information; or,
if the attribute information is not stored in the database, sending data absence prompt information to the terminal equipment;
the sending the shooting data stored in the hard disk to the terminal device includes:
and sending the shooting data to the terminal equipment according to the storage path corresponding to the attribute information.
Before the sending of the shooting data stored in the hard disk to the terminal device, the method further includes:
judging whether the shooting data are stored in the hard disk or not;
the storing the shooting data in the hard disk includes:
and if the shooting data is not stored in the hard disk, storing the shooting data in the hard disk.
Wherein the determining whether the shooting data is stored in the hard disk includes:
performing hash operation on the shot data according to a preset hash function to generate a first hash value corresponding to the shot data, wherein the first hash value is used for judging whether the shot data is stored in the hard disk or not;
inquiring whether a hash value identical to the first hash value exists in the database, wherein the database stores hash values respectively corresponding to all the shooting data in the hard disk;
if the shooting data is not stored in the hard disk, storing the shooting data in the hard disk, including:
and if the database does not have the hash value which is the same as the first hash value, storing the shooting data in the hard disk, and storing the first hash value in the database.
After querying whether a hash value identical to the first hash value exists in the database, the method further includes:
and if a second hash value identical to the first hash value exists in the database, storing the corresponding relation between the attribute information and the storage path information of the shooting data corresponding to the second hash value in the database.
Before receiving a shooting data storage request sent by a shooting device, the method further includes:
and establishing wireless connection with the shooting equipment.
The device 1900 may also include a power component 1926 for performing power management of the device 1900, a wired or wireless network interface 1950 for connecting the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (15)
1. A method for sharing shot data, comprising:
receiving a shooting data storage request sent by shooting equipment, wherein the shooting data storage request carries shooting data and attribute information corresponding to the shooting data;
storing the shooting data in a hard disk, and storing the corresponding relation between the attribute information and the storage path information of the shooting data in a database, wherein the database stores the attribute information and the storage path information which correspond to all the shooting data in the hard disk respectively;
receiving an access message sent by a terminal device, wherein the access message carries the attribute information;
and sending the shooting data stored in the hard disk to the terminal equipment according to the storage path information corresponding to the attribute information so that the terminal equipment displays the shooting data.
2. The method of claim 1, wherein the attribute information comprises at least one of the following information: the shooting equipment identification information, the shooting time information, the shooting place information and the resolution information;
after the shooting data is stored in the hard disk, the method further comprises the following steps:
and generating storage path information of the shooting data.
3. The method according to claim 2, wherein before the sending the shooting data stored in the hard disk to the terminal device, the method further comprises:
inquiring whether the attribute information is stored in the database;
if the attribute information is stored in the database, acquiring storage path information corresponding to the attribute information; or,
and if the attribute information is not stored in the database, sending data absence prompt information to the terminal equipment.
4. The method according to claim 2 or 3, wherein before the sending the shooting data stored in the hard disk to the terminal device, the method further comprises:
judging whether the shooting data are stored in the hard disk or not;
the storing the shooting data in the hard disk includes:
and if the shooting data is not stored in the hard disk, storing the shooting data in the hard disk.
5. The method according to claim 4, wherein the determining whether the shooting data is stored in the hard disk comprises:
performing hash operation on the shot data according to a preset hash function to generate a first hash value corresponding to the shot data, wherein the first hash value is used for judging whether the shot data is stored in the hard disk or not;
inquiring whether a hash value identical to the first hash value exists in the database, wherein the database stores hash values respectively corresponding to all the shooting data in the hard disk;
if the shooting data is not stored in the hard disk, storing the shooting data in the hard disk, including:
and if the database does not have the hash value which is the same as the first hash value, storing the shooting data in the hard disk, and storing the first hash value in the database.
6. The method of claim 5, wherein after querying the database for the presence of the same hash value as the first hash value, further comprising:
and if a second hash value identical to the first hash value exists in the database, storing the corresponding relation between the attribute information and the storage path information of the shooting data corresponding to the second hash value in the database.
7. The method according to claim 1, wherein before receiving the shooting data storage request sent by the shooting device, the method further comprises:
and establishing wireless connection with the shooting equipment.
8. An apparatus for sharing shot data, comprising:
the device comprises a first receiving module, a second receiving module and a processing module, wherein the first receiving module is used for receiving a shooting data storage request sent by shooting equipment, and the shooting data storage request carries shooting data and attribute information corresponding to the shooting data;
the first storage module is used for storing the shooting data received by the first receiving module in a hard disk;
the second storage module is used for storing the corresponding relation between the attribute information and the storage path information of the shooting data in a database, and the database stores the attribute information and the storage path information which correspond to all the shooting data in the hard disk respectively;
a second receiving module, configured to receive an access message sent by a terminal device, where the access message carries the attribute information;
and the third sending module is used for sending the shooting data stored in the hard disk by the first storage module to the terminal equipment according to the storage path information corresponding to the attribute information so as to enable the terminal equipment to display the shooting data.
9. The apparatus of claim 8,
the attribute information received by the first receiving module includes at least one of the following information: the shooting equipment identification information, the shooting time information, the shooting place information and the resolution information;
the device further comprises: a generation module;
the generating module is used for generating storage path information of the shooting data after the first storage module stores the shooting data.
10. The apparatus of claim 9, further comprising: the system comprises a query module, an acquisition module and a second sending module;
the query module is configured to query whether the attribute information received by the second receiving module is stored in the database;
the obtaining module is used for obtaining the storage path information corresponding to the attribute information when the attribute information is stored in the database inquired by the inquiring module;
and the second sending module is used for sending data absence prompt information to the terminal equipment when the query module queries that the attribute information is not stored in the database.
11. The apparatus of claim 9 or 10, further comprising: the judgment module and the third storage module;
the judging module is configured to judge whether the shooting data is stored in the hard disk before the third sending module sends the shooting data stored in the hard disk to the terminal device;
the third storage module is configured to store the shooting data in the hard disk when the judgment module judges that the shooting data is not stored in the hard disk.
12. The apparatus of claim 11, wherein the determining module comprises: the system comprises a generating sub-module, a query sub-module and a first storage sub-module;
the generation submodule is configured to perform a hash operation on the shot data according to a preset hash function, and generate a first hash value corresponding to the shot data, where the first hash value is used to determine whether the shot data is stored in the hard disk;
the query submodule is configured to query whether a hash value identical to the first hash value generated by the generation submodule exists in the database, where hash values corresponding to all pieces of shooting data in the hard disk are stored in the database;
the first storage sub-module is configured to store the shooting data in the hard disk and store the first hash value in the database when the query sub-module queries that the database does not have a hash value that is the same as the first hash value generated by the generation sub-module.
13. The apparatus of claim 12, wherein the determining module further comprises: a second storage submodule;
the second storage sub-module is configured to store, in the database, a correspondence between the attribute information and storage path information of the shooting data corresponding to the second hash value when the query sub-module queries that the second hash value identical to the first hash value exists in the database.
14. The apparatus of claim 8, further comprising:
the establishing module is used for establishing wireless connection with the shooting equipment before the first receiving module receives the shooting data storage request sent by the shooting equipment.
15. An apparatus for sharing shot data, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
receiving a shooting data storage request sent by shooting equipment, wherein the shooting data storage request carries shooting data and attribute information corresponding to the shooting data;
storing the shooting data in a hard disk, and storing the corresponding relation between the attribute information and the storage path information of the shooting data in a database, wherein the database stores the attribute information and the storage path information which correspond to all the shooting data in the hard disk respectively;
receiving an access message sent by a terminal device, wherein the access message carries the attribute information;
and sending the shooting data stored in the hard disk to the terminal equipment according to the storage path information corresponding to the attribute information so that the terminal equipment displays the shooting data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510490243.2A CN105138285B (en) | 2015-08-11 | 2015-08-11 | Sharing method, device and the equipment of photographed data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510490243.2A CN105138285B (en) | 2015-08-11 | 2015-08-11 | Sharing method, device and the equipment of photographed data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105138285A CN105138285A (en) | 2015-12-09 |
| CN105138285B true CN105138285B (en) | 2018-03-16 |
Family
ID=54723646
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510490243.2A Active CN105138285B (en) | 2015-08-11 | 2015-08-11 | Sharing method, device and the equipment of photographed data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105138285B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106533848B (en) * | 2016-10-13 | 2019-12-13 | 北京小米移动软件有限公司 | Data acquisition method and device |
| CN109951613B (en) * | 2017-12-20 | 2021-03-19 | 杭州海康威视数字技术股份有限公司 | Image transmitting method, image receiving method, image transmitting device, image receiving device, electronic device, and storage medium |
| CN111787070B (en) * | 2020-06-10 | 2022-07-12 | 俞力奇 | Equipment end resource management method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5490211A (en) * | 1994-04-20 | 1996-02-06 | Adams; David J. | Automatic call distributor with internal written message communication system and method |
| CN101025676A (en) * | 2006-02-08 | 2007-08-29 | 株式会社理光 | Content reproducing apparatus, content reproducing method and computer program product |
| CN101071447A (en) * | 2006-03-06 | 2007-11-14 | 索尼株式会社 | Search system, image-capturing apparatus, data storage apparatus, information processing apparatus |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100234071A1 (en) * | 2009-03-12 | 2010-09-16 | Comsys Communication & Signal Processing Ltd. | Vehicle integrated communications system |
-
2015
- 2015-08-11 CN CN201510490243.2A patent/CN105138285B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5490211A (en) * | 1994-04-20 | 1996-02-06 | Adams; David J. | Automatic call distributor with internal written message communication system and method |
| CN101025676A (en) * | 2006-02-08 | 2007-08-29 | 株式会社理光 | Content reproducing apparatus, content reproducing method and computer program product |
| CN101071447A (en) * | 2006-03-06 | 2007-11-14 | 索尼株式会社 | Search system, image-capturing apparatus, data storage apparatus, information processing apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105138285A (en) | 2015-12-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113986177B (en) | Screen projection method, screen projection device, storage medium and electronic device | |
| JP6419201B2 (en) | Method and apparatus for video playback | |
| JP6186508B2 (en) | Network connection method and terminal | |
| RU2595769C2 (en) | Method and device for token key binding to account | |
| CN106603667B (en) | Screen information sharing method and device | |
| US8620353B1 (en) | Automatic sharing and publication of multimedia from a mobile device | |
| CN105872350A (en) | Adjusting method and device for photographing parameter of camera | |
| US20220353552A1 (en) | Methods and devices for pulling live stream | |
| CN103929582A (en) | Method for setting and sharing shoot parameters, portable terminal and server | |
| US10477265B2 (en) | Method and apparatus for requesting data, and method and apparatus for obtaining data | |
| CN105138285B (en) | Sharing method, device and the equipment of photographed data | |
| US20140032551A1 (en) | Communication apparatus, method of controlling the communication apparatus, and recording medium | |
| CN113419898A (en) | File bailing method, device, equipment, storage medium and program product | |
| KR101744696B1 (en) | Method, device, program and recording medium for filtering information | |
| US10868921B2 (en) | Information processing device, imaging device, and system | |
| CN110149219B (en) | Shooting equipment configuration method and device | |
| CN105049735A (en) | Control method and device of network camera | |
| US8824854B2 (en) | Method and arrangement for transferring multimedia data | |
| CN112584221B (en) | Image acquisition method and system | |
| KR20120080379A (en) | Method and apparatus of annotating in a digital camera | |
| CN110278228B (en) | Data processing method and device for data processing | |
| TW201717047A (en) | Smart terminal, server and information update system | |
| US9232281B2 (en) | Communication management apparatus, terminal, communication management system, communication management method, program, and information storage medium | |
| CN110769065A (en) | Remote management method, system, terminal equipment and server | |
| CN109587289A (en) | Communication means and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |