CN109670056A - A kind of generation of 360 degree rotation image and read method - Google Patents

A kind of generation of 360 degree rotation image and read method Download PDF

Info

Publication number
CN109670056A
CN109670056A CN201811445614.5A CN201811445614A CN109670056A CN 109670056 A CN109670056 A CN 109670056A CN 201811445614 A CN201811445614 A CN 201811445614A CN 109670056 A CN109670056 A CN 109670056A
Authority
CN
China
Prior art keywords
attachment
data
product
size
file
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
CN201811445614.5A
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.)
Zhuhai Easy Fast Science And Technology Co Ltd
Original Assignee
Zhuhai Easy Fast Science And Technology 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 Zhuhai Easy Fast Science And Technology Co Ltd filed Critical Zhuhai Easy Fast Science And Technology Co Ltd
Priority to CN201811445614.5A priority Critical patent/CN109670056A/en
Publication of CN109670056A publication Critical patent/CN109670056A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention proposes a kind of generation methods of 360 degree rotation image, comprising the following steps: S100) acquisition product definition data, attachment define data and attachment data from the data of designated position;S200) data of acquisition are verified, the project of verification includes, contrast product defines in data and attachment defines corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if being all consistent, following steps are then continued to execute, if at least one is not consistent, mistake is prompted and terminates;S300) acquired product attribute, name of product, product description data are stored in the data field for showing file;The displaying sequence of file each in acquired attachment, institute's attachment data size and the angle of attachment rotation are stored in the attachment definition for showing file;Acquired attachment data is stored in the attachment area for showing file.

Description

A kind of generation of 360 degree rotation image and read method
Technical field
The present invention relates to field of image processing, in particular to the generation of a kind of 360 degree rotation image and read method.
Background technique
The small picture of small video is widely used in the shopping platforms such as a day cat, Taobao, Jingdone district at present, sees to consumer from 360 degree Commodity method is examined, better user experience is obtained.The method for storing this kind at present mainly passes through traditional picture such as mov, rm With movie formats storage.
Publication No. is 104574279 A of CN, and the application for a patent for invention of entitled " automatically generating 360 degree of panorama methods " discloses In file, a kind of method for automatically generating 360 degree of panoramas is disclosed, belongs to virtual reality, full-view image technical field, this method 2D picture is generated into 360 degree of panorama sketch online, establishes project first for the 2D picture of upload, parsing picture obtains picture midpoint The information of picture and absolute path are stored in XML file by absolute coordinate;It parses XML file and obtains the absolute of picture midpoint The absolute path of coordinate and picture calls the swf interface generated using flex, generates 360 degree of panorama sketch using panorama Pano;Quotient Family adds hot-zone and its explanation in 360 degree of panorama sketch.Finally 360 degree of panorama sketch, added hot-zone and hot-zone are illustrated to protect There are in XML file, 360 degree of exhibiting panoramagrams are come out by webpage.
As it can be seen that file caused by method used in the disclosure, needs to rely on webpage to show.
Summary of the invention
The present invention in the prior art to the storage of 360 degree panoramic pictures without unified standard, depend on flash, picture, Web browser checks problem, proposes generation and the read method of a kind of 360 degree rotation image.
Firstly, the present invention proposes a kind of generation method of 360 degree rotation image, comprising the following steps:
S100 product definition data) is obtained from the data of designated position, attachment defines data and attachment data;It is described Product definition data includes at least one in following items, product attribute, name of product, product description, accessory position, attachment Quantity, attachment size;It includes at least one in following items, product attribute, name of product, product that the attachment, which defines data, Description, accessory position, attachment quantity, attachment data size, the displaying sequence of each file and the angle of attachment rotation in attachment, The attachment data includes the data stored with image and/or video format;
S200) data of acquisition are verified, the project of verification includes that contrast product defines in data and attachment definition Corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if being all consistent, Following steps are then continued to execute, if at least one is not consistent, mistake is prompted and terminates;
S300) acquired product attribute, name of product, product description data are stored in the data field for showing file; The displaying sequence of file each in acquired attachment, institute's attachment data size and the angle of attachment rotation are stored in displaying text The attachment definition of part;Acquired attachment data is stored in the attachment area for showing file.
Further, in the above method proposed by the present invention, the displaying file further includes file header, the file header packet Include at least one of following items: file identifier, data field size, product attribute quantity, picture and/or number of videos, Rotate angle.
Further, in the above method proposed by the present invention, the data of the designated position include it is following be stored in it is following At least one of data in formatted file: database, form document, text document, XML document.
Further, in the above method proposed by the present invention, step S100 further includes following sub-step:
The format of attachment is judged, if picture and/video format, then continue to execute following steps;
It obtains the size of attachment and is compared with first size, if more than first size, then cut one in attachment Divide so that its size is not more than first size;If being less than first size, make its size no more than first size to stretch attachment.
Further, in the above method proposed by the present invention, step S101 further includes following sub-step:
Judge the size of attachment, if the size of attachment is greater than the first size, Encapsulated PostScript makes its size no more than first Size.
Secondly, step S300 further includes following subsequent step in the above method proposed by the present invention:
S400 image file) is read, it is fixed to obtain the product being respectively stored in data field, attachment definition and attachment area Adopted data, attachment define data and attachment data;Wherein, the product definition data includes at least one in following items , product attribute, name of product, product description, accessory position, attachment quantity, attachment size;The attachment defines data At least one of in following items, product attribute, name of product, product description, accessory position, attachment quantity, attachment data are big The displaying sequence of each file and the angle of attachment rotation in small and attachment, the attachment data includes with image and/or view The data of frequency format storage;
S500) data of acquisition are verified, the project of verification includes that contrast product defines in data and attachment definition Corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if being all consistent, Following steps are then continued to execute, if at least one is not consistent, prompt mistake;
S600) according to attachment displaying sequence and attachment rotation angle show area show attachment in image and/ Or video data and it is stored in storage device;
S700) in the document for the specified format that the non-image and/or non-video data in attachment is stored in storage device.
Further, in the above method that the application proposes, the show area is with touch control feedback device and control The display screen of device processed, wherein touch control feedback device is connected with control device, wherein touch control feedback device tool There is motion characteristic to collect feedback module, the motion characteristic being collected into can be fed back to the control device.
Further, the application propose the above method in, the document of the specified format include in Documents extremely Few one kind: text document, diagram text.
Secondly, the present invention proposes a kind of generating means of 360 degree rotation image, comprise the following modules:
Read module, for obtaining product definition data from the data of designated position, attachment defines data and attachment Data;The product definition data includes at least one in following items, product attribute, name of product, product description, attachment Position, attachment quantity, attachment size;It includes at least one in following items, product attribute, product that the attachment, which defines data, Title, product description, accessory position, attachment quantity, attachment data size, in attachment each file displaying sequence and attachment rotation The angle turned, the attachment data include the data stored with image and/or video format;
Correction verification module, for verifying to the data of acquisition, the project of verification includes that contrast product defines data neutralization Attachment defines corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if entirely Portion is consistent, then continues to execute following steps, if at least one is not consistent, prompts mistake and terminates;
Memory module shows file for being stored in acquired product attribute, name of product, product description data Data field;By the displaying sequence of file each in acquired attachment, institute's attachment data size and the angle storage of attachment rotation In the attachment definition for showing file;Acquired attachment data is stored in the attachment area for showing file.
Finally, the present invention proposes a kind of computer readable storage medium, it is stored thereon with computer instruction, described instruction is used In the above-mentioned method of execution.
The beneficial effects of the present invention are:
Can store the photo of the multiple angles of product simultaneously, other attribute informations of product, be conducive to the preservation of image data with And transmission, generated file need not rely on flash, picture, webpage to show.
Detailed description of the invention
Fig. 1 show a kind of generation for 360 degree rotation image that the application is proposed and the first embodiment of read method Flow chart;
Fig. 2 show a kind of generation for 360 degree rotation image that the application is proposed and the second embodiment of read method Flow chart;
Fig. 3 show a kind of generation for 360 degree rotation image that the application is proposed and the 3rd embodiment of read method Flow chart;
Fig. 4 show a kind of structure chart for 360 degree rotation image file that the application is proposed;
Fig. 5 show a kind of schematic diagram at the displaying interface for 360 degree rotation image that the application is proposed;
Fig. 6 show a kind of generation for 360 degree rotation image that the application is proposed and the fourth embodiment of read method Structure chart;
Fig. 7 show a kind of top view of the filming apparatus for 360 degree rotation image file that the application is proposed;
Fig. 8 show a kind of generation of the 360 degree rotation image proposed and the frame diagram of reading device.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.It should be noted that the case where not conflicting Under, the features in the embodiments and the embodiments of the present application can be combined with each other.The identical attached drawing mark used everywhere in attached drawing Note indicates the same or similar part.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature, It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this The descriptions such as upper and lower, left and right used in application are only the mutual alignment pass relative to each component part of the application in attached drawing For system.In the application and the "an" of singular used in the attached claims, " described " and "the" also purport It is including most forms, unless the context clearly indicates other meaning.
In addition, unless otherwise defined, the technology of all technical and scientific terms used herein and the art The normally understood meaning of personnel is identical.Term used in the description is intended merely to description specific embodiment herein, without It is to limit the application.Term as used herein "and/or" includes the arbitrary of one or more relevant listed items Combination.
It will be appreciated that though various elements may be described in this application using term first, second, third, etc., but These elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not taking off In the case where the application range, first element can also be referred to as second element, and similarly, second element can also be referred to as First element.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When ".
A kind of generation for 360 degree rotation image that the application shown in referring to Fig.1 is proposed and the first reality of read method A flow chart is applied, the present embodiment includes a kind of generation method of 360 degree rotation image file, is comprised the steps that in figure
S100 product definition data) is obtained from the data of designated position, attachment defines data and attachment data;It is described Product definition data includes at least one in following items, product attribute, name of product, product description, accessory position, attachment Quantity, attachment size;It includes at least one in following items, product attribute, name of product, product that the attachment, which defines data, Description, accessory position, attachment quantity, attachment data size, the displaying sequence of each file and the angle of attachment rotation in attachment, The attachment data includes the data stored with image and/or video format;
S200) data of acquisition are verified, the project of verification includes that contrast product defines in data and attachment definition Corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if being all consistent, Following steps are then continued to execute, if at least one is not consistent, mistake is prompted and terminates;
S300) acquired product attribute, name of product, product description data are stored in the data field for showing file; The displaying sequence of file each in acquired attachment, institute's attachment data size and the angle of attachment rotation are stored in displaying text The attachment definition of part;Acquired attachment data is stored in the attachment area for showing file.
Further, in the above method proposed by the present invention, the displaying file further includes file header, the file header packet Include at least one of following items: file identifier, data field size, product attribute quantity, picture and/or number of videos, Rotate angle.
Further, in the above method proposed by the present invention, the data of the designated position include it is following be stored in it is following At least one of data in formatted file: database, form document, text document, XML document.
Further, in the above method proposed by the present invention, step S100 further includes following sub-step:
The format of attachment is judged, if picture and/or video format, then continue to execute following steps;
It obtains the size of attachment and is compared with first size, if more than first size, then cut one in attachment Divide so that its size is not more than first size;If being less than first size, make its size no more than first size to stretch attachment.
Specifically, first size can be system default or manually be arranged, the restriction of first size, so that in attachment Image and/or video can adapt to the size of display device, so that image and/video clearly can fully be shown in display Device.
Further, it is possible to which the bandwidth of different resolution according to display device and transmission network makes the adaptation of active To define first size.
Specifically, the scaling of image can be realized by the method for image and/or view interpolation.Traditional interpolation method Have: arest neighbors interpolation, bilinear interpolation, double flat side's interpolation, bi-cubic interpolation and other higher-order methods.Arest neighbors interpolation and double For linear interpolation algorithm it is easy to appear sawtooth, the picture quality of generation is bad.Therefore general only not high to image quality requirements Occasion under use.Double flat side's interpolation and bi-cubic interpolation, substantially " low-pass filter ", in enhancing image smoothing effect It is lost many high-frequency informations simultaneously.And in many applications, detailed information is exactly extremely important, to consider how guaranteeing Retain detailed information while smooth effect as much as possible.It is distant that image interpolation technology is widely used in military radar image, satellite Feel particular images and the day ordinary persons such as image, astronomical observation image, geological prospecting data image, biomedical slice and micro-image The processing of object view object image.According to application purpose, the application of image interpolation technology can be classified as several situations:
(1) in Image Acquisition, transmission and real process, different display equipment has different resolution ratio, needs pair Video sequence and image carry out conversion of resolution.
(2) when user needs to be absorbed in certain details of image, scaling transformation is carried out to image.
(3) in transmission of video, in order to efficiently use limited bandwidth, the video flowing of low resolution can be transmitted, then High-definition video stream is converted into using interpolation algorithm in receiving end.
(4) efficiency is stored and transmitted for raising image, and carries out the compression and reconstruct of image.Such as: computer virtual is existing Image difference in real technology.
Further, the generation of the 360 degree rotation image proposed referring to the application shown in Fig. 3 a kind of and read method 3rd embodiment flow chart, in the above method proposed by the present invention, step S101 further includes following sub-step:
Judge the size of attachment, if the size of attachment is greater than the first size, Encapsulated PostScript makes its size no more than first Size.
Specifically, the first size can be system default or by being manually arranged, it is however generally that, if comprising too big in attachment Picture or video, it will so that generate after file it is too big, to be unfavorable for the transmission and preservation of file, it is therefore necessary to carry out Compression.
Specifically, the task of data compression tries reduction figure under the premise of not influencing or influencing picture quality less as far as possible As the data volume in data.Its top priority is the data for trying to remove various redundancies.
Further, picture compression can be divided into three kinds of lossless compression, lossy compression and mixing compression, and lossless compression can be complete The full original image that restores is distorted without introducing, it carries out data compression using the statistical property of data, the reduction after decompression Image is completely the same with original image.Lossy compression cannot restore initial data completely, but make to solve using human vision property Compressed image is as original.The above method is combined as mixed method.
Specifically, common lossless compression method has huffman coding, arithmetic coding etc., and compression method has prediction to compile Code, Frequency Domain Coding etc., hybrid coding have JPEG coding, mpeg encoded etc..
Secondly, a kind of 360 degree rotation image proposed referring to the application shown in Fig. 2 generation and read method Two embodiment flow charts, the application propose a kind of read method of image, comprising the following steps:
S400 image file) is read, it is fixed to obtain the product being respectively stored in data field, attachment definition and attachment area Adopted data, attachment define data and attachment data;Wherein, the product definition data includes at least one in following items , product attribute, name of product, product description, accessory position, attachment quantity, attachment size;The attachment defines data At least one of in following items, product attribute, name of product, product description, accessory position, attachment quantity, attachment data are big The displaying sequence of each file and the angle of attachment rotation in small and attachment, the attachment data includes with image and/or view The data of frequency format storage;
S500) data of acquisition are verified, the project of verification includes that contrast product defines in data and attachment definition Corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if being all consistent, Following steps are then continued to execute, if at least one is not consistent, prompt mistake;
S600) according to attachment displaying sequence and attachment rotation angle show area show attachment in image and/ Or video data and it is stored in storage device;
S700) in the document for the specified format that the non-image and/or non-video data in attachment is stored in storage device.
Further, in the above method that the application proposes, the show area is with touch control feedback device and control The display screen of device processed, wherein touch control feedback device is connected with control device, wherein touch control feedback device tool There is motion characteristic to collect feedback module, the motion characteristic being collected into can be fed back to the control device.
Further, the application propose the above method in, the document of the specified format include in Documents extremely Few one kind: text document, diagram text.
Further, in the above method that the application proposes, the storage device is nonvolatile memory.
Preferably, the nonvolatile memory includes solid state hard disk, embedded multi-media card, multimedia card, SD card, TF Card, USB flash disk etc..
Further, a kind of structure chart of the 360 degree rotation image file proposed referring to the application shown in Fig. 4, this Shen It please propose a kind of 360 degree rotation image file, including with flowering structure:
File header, for storing the file identifier defined .qec for file extension, data field size, product attribute Quantity, picture number;
Data field, for storing product attribute, name of product, product description data;
Attachment definition, for storing product attribute, name of product, product description, accessory position, attachment quantity, attachment The displaying sequence of each file and the angle-data of attachment rotation in size of data, attachment;
Attachment area, for storing image and/or video data;
Wherein, file header is located at the beginning of described image file, file header immediately data field thereafter, and data field is thereafter immediately Attachment definition, attachment definition immediately attachment area thereafter.
Specifically, the byte number of file header is fixed, and file identifier therein indicates that this document is qec file, therein Data field size is 2 reserved, and format is JSON or XML, and using compression algorithm, it is format that document definition area therein size, which is 2, For JSON or XML.
Specifically, JSON (JavaScript Object Notation, JS object numbered musical notation) is a kind of data of lightweight Exchange format.It is based on a subset of ECMAScript (European Computer association formulate js specification), using being completely independent Data are stored and indicated in the text formatting of programming language.Succinctly and clearly hierarchical structure makes JSON become ideal number According to exchange language.It is easy to people to read and write, while is also easy to machine parsing and generating, and effectively promoting network transmission effect Rate.
Specifically, it is that a kind of simple data are deposited that XML, which is extensible markup language (subset of standard generalized markup language), Store up language.Data are described using a series of simple labels, and these labels can be established with convenient mode, although expansible Markup language the space occupied occupies more spaces than binary data, but extensible markup language is extremely simple is easy to slap It holds and uses.
Further, referring to the data field in Fig. 4, data < field1:xxx, field2:xxx are housed in the data field >, respectively field 1 (field1) and field 2 (field2), wherein field 1 and field 2 can be the title of product, type, Description, the specific descriptions in relation to the product such as attribute.
Further, referring to the attachment definition in Fig. 4, housed in the attachment definition data seq:1, name: File1.jpg.type:pic, length:1024 } { seq:2, name:file2.mp4.type:video, length:4096 }, It respectively describes, displaying sequence is placed on the 1st, and the type of entitled file1.jpg is picture, and data length is 1024B's File and displaying sequence are placed on the 2nd, and the type of entitled file2.mp4 is video, and data length is the text of 4096B Part.
Further, attachment area houses two files of above-mentioned entitled file1.jpg and file2.mp4 respectively.
Further, a kind of signal at the displaying interface for 360 degree rotation image that the application referring to Figure 5 is proposed Figure, illustrates 4 pictures, respectively 1.jpg, 2.jpg, 3.jpg, 4.jpg in the figure, there is retouching for the product below picture It states and the description of above-mentioned 4 picture, for example, seq:1, name:file1.jpg.context-type:pic, length: 1024 }, indicate that displaying sequence is placed on the 1st, the type of entitled file1.jpg is picture, and data length is the text of 1024B Part, in addition, 4 picture 1.jpg, 2.jpg, 3.jpg in figure, 4.jpg are shown according to the 1 to the 4th sequence respectively, then It is shown respectively in mode counterclockwise.
Further, in this embodiment it is possible to which picture and video are placed on together in the same qec file, such as Fig. 4 institute Show.
The 4th of the generation of the 360 degree rotation image proposed referring to the application shown in fig. 6 a kind of and read method is real A structure chart is applied, the display screen with touch control feedback device and control device is shown in figure, wherein touch control feedback Device is connected with control device, wherein there is touch control feedback device motion characteristic to collect feedback module, can will collect To the control device, such user can control display on a display screen with certain movement for the motion characteristic feedback that arrives Screen, enables figure displayed on to be shown according to the idea of user, such as zoom in or out, in another example with certain Angle is rotated.
Specifically, the display screen can be the display screen of at least one of following equipment: desktop computer display screen, Note-book computer display screen, tablet personal computer display screen, mobile phone display screen, even television display screen.
Meanwhile the display screen can also have communication module, and by the communication module and communication means, by transmission network, Can with the external world, as in figure server 1 and server 2 communicated, wherein server 1 and server 2 have storage dress It sets, is stored with the file of qec format.Specifically, communication module can be communicated by wired and wireless mode, channel radio Letter mode includes at least following one kind: 2G, 3G, 4G, 5G and Wi-Fi.Further, photographic device is also shown in Fig. 6, the camera shooting Device can have can be around the rotary shelf for placing articles of object to be clapped rotation, and placement and the video camera on supporter, for shooting Object to be clapped.
Further, a kind of filming apparatus of the 360 degree rotation image file proposed referring to the application shown in Fig. 7 is bowed View shows the shooting guide rail being made of the concentric circles of two different radiis in figure, the bat in the shooting guide rail center of circle Holder is taken the photograph, which can support object to be clapped, and can move along guide rail around the shooting of the shooting tripod head rotary moveable Dynamic platform shoots and is equipped with high-definition camera in mobile station, can treat bat object every angle, θ and once be shot, shot All pictures can also be automatically uploaded to server by Cheng Hou, high-definition camera, wherein angle, θ can by system default or according to The needs actually shown are by being manually arranged.
On the other hand, in the present embodiment, different functions may be implemented in server 1 and server 2, specifically, service Device 1 can store untreated original product description and product picture, and the product picture can be by Fig. 6 Photographic device obtains, and the description of product can be staff and voluntarily supplement, when using method generation qec file of the invention Afterwards, it realizes and transmits and be saved in server 2 automatically by transmission network, server 2 can also pass through the difference in server 1 Fdisk realize.
Referring to a kind of generation of proposed 360 degree rotation image shown in Fig. 8 and the frame diagram of reading device, including with Lower module,
Read module, for obtaining product definition data from the data of designated position, attachment defines data and attachment Data;The product definition data includes at least one in following items, product attribute, name of product, product description, attachment Position, attachment quantity, attachment size;It includes at least one in following items, product attribute, product that the attachment, which defines data, Title, product description, accessory position, attachment quantity, attachment data size, in attachment each file displaying sequence and attachment rotation The angle turned, the attachment data include the data stored with image and/or video format;
Correction verification module, for verifying to the data of acquisition, the project of verification includes that contrast product defines data neutralization Attachment defines corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if entirely Portion is consistent, then continues to execute following steps, if at least one is not consistent, prompts mistake and terminates;
Memory module shows file for being stored in acquired product attribute, name of product, product description data Data field;By the displaying sequence of file each in acquired attachment, institute's attachment data size and the angle storage of attachment rotation In the attachment definition for showing file;Acquired attachment data is stored in the attachment area for showing file.
Further, in above-mentioned apparatus proposed by the present invention, the displaying file further includes file header, the file header packet Include at least one of following items: file identifier, data field size, product attribute quantity, picture and/or number of videos, Rotate angle.
Further, in above-mentioned apparatus proposed by the present invention, the data of the designated position include it is following be stored in it is following At least one of data in formatted file: database, form document, text document, XML document.
Further, in the above method proposed by the present invention, read module further includes following submodule:
Judgment module, for judging the format of attachment, if picture and/or video format, then continue to execute following steps;
Contrast module if more than first size, is then cut for obtaining the size of attachment and comparing with first size A part in attachment is so that its size is not more than first size;If being less than first size, make its size not to stretch attachment Greater than first size.
Specifically, first size can be system default or manually be arranged, the restriction of first size, so that in attachment Image and/or video can adapt to the size of display device, so that image and/video clearly can fully be shown in display Device.
Further, it is possible to which the bandwidth of different resolution according to display device and transmission network makes the adaptation of active To define first size.
Further, judgment module further includes following submodule:
Second judgment module, for judging the size of attachment, if the size of attachment is greater than the first size, Encapsulated PostScript makes Its size is not more than the first size.
Specifically, the first size can be system default or by being manually arranged, it is however generally that, if comprising too big in attachment Picture or video, it will so that generate after file it is too big, to be unfavorable for the transmission and preservation of file, it is therefore necessary to carry out Compression.
Specifically, the task of data compression tries reduction figure under the premise of not influencing or influencing picture quality less as far as possible As the data volume in data.Its top priority is the data for trying to remove various redundancies.
Further, picture compression can be divided into three kinds of lossless compression, lossy compression and mixing compression, and lossless compression can be complete The full original image that restores is distorted without introducing, it carries out data compression using the statistical property of data, the reduction after decompression Image is completely the same with original image.Lossy compression cannot restore initial data completely, but make to solve using human vision property Compressed image is as original.The above method is combined as mixed method.
Further, may also include after memory module with lower module:
Image reading module, for reading image file, acquisition is respectively stored in data field, attachment definition and attachment Product definition data, attachment in area define data and attachment data;Wherein, the product definition data includes following items At least one of in, product attribute, name of product, product description, accessory position, attachment quantity, attachment size;The attachment is fixed Adopted data include in following items at least one of, product attribute, name of product, product description, accessory position, attachment quantity, The displaying sequence of each file and the angle of attachment rotation in attachment data size and attachment, the attachment data includes to scheme Picture and/or the data of video format storage;
Data check module, for verifying to the data of acquisition, the project of verification includes that contrast product defines data It neutralizes attachment and defines corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, If being all consistent, following steps are continued to execute, if at least one is not consistent, prompt mistake;
Display module, the angle for displaying sequence and attachment rotation according to attachment are shown in attachment in show area Image and/or video data are simultaneously stored in storage device;
Attachment preserving module, for the non-image and/or non-video data in attachment to be stored in the specified of storage device In the document of format.
Further, in the above method that the application proposes, the show area is with touch control feedback device and control The display screen of device processed, wherein touch control feedback device is connected with control device, wherein touch control feedback device tool There is motion characteristic to collect feedback module, the motion characteristic being collected into can be fed back to the control device.
Further, the application propose the above method in, the document of the specified format include in Documents extremely Few one kind: text document, diagram text.
Further, in the above method that the application proposes, the storage device is nonvolatile memory.
Preferably, the nonvolatile memory includes solid state hard disk, embedded multi-media card, multimedia card, SD card, TF Card, USB flash disk etc..
In conclusion the file for the .qec that image file creation method through the invention generates, can store product simultaneously The photo of multiple angles, other attribute informations of product, picture storage format can self-defining plurality of pictures, program read when, from It is dynamic to be combined into the picture group demonstrated in order, so that the effect that product 360 degree rotation is shown is realized, due to the multiplicity of product attribute Property and uncertainty, the product attribute definition in product storage mode can customize, storage format can be by JAVA or other journeys Sequence decoding, can obtain all information of the products such as picture, description, convenient for the transmission of product between the systems after decoding.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method Journey technology include realized in computer program configured with the non-transitory computer-readable storage media of computer program, wherein Configured in this way storage medium make computer operated in a manner of specific and is predefined-according in a particular embodiment describing Method and attached drawing.Each program can be realized with the programming language of level process or object-oriented with logical with computer system Letter.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, the language can be compiling or The language of explanation.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
Further, this method can be realized in being operably coupled to suitable any kind of computing platform, including But it is not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated It computer platform or is communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be with storage No matter machine readable code on non-transitory storage medium or equipment is moveable or is integrated to calculate and put down to realize Platform, such as hard disk, optically read and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when depositing Storage media or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.In addition, Machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include in conjunction with microprocessor or When other data processors realize the instruction or program of steps described above, invention as described herein includes that these and other are different The non-transitory computer-readable storage media of type.When methods and techniques according to the present invention programming, the present invention is also Including computer itself.
This document describes embodiment of the disclosure, become known for executing optimal mode of the invention including inventor.It is readding After having read foregoing description, the variation of these embodiments will be apparent those skilled in the art.Inventor wishes skill Art personnel optionally use such modification, and inventor be intended to by be different from it is as specifically described herein in a manner of practice this public affairs The embodiment opened.Therefore, through applicable legal permission, the scope of the present disclosure includes describing in this appended claims The all modifications and equivalent of theme.In addition, the scope of the present disclosure covers any of the above-mentioned element in its all possible modification Combination, unless herein in addition instruction or otherwise significantly with contradicted by context.
Although description of the invention is quite detailed and especially several embodiments are described, it is not Any of these details or embodiment or any specific embodiments are intended to be limited to, but should be considered as is by reference to appended A possibility that claim provides broad sense in view of the prior art for these claims explanation, to effectively cover the present invention Preset range.In addition, with the foreseeable embodiment of inventor, present invention is described above, its purpose is to be provided with Description, and those still unforeseen at present change to unsubstantiality of the invention can still represent equivalent modifications of the invention.
Therefore, should be with descriptive sense rather than restrictive sense understands the specification and drawings.However, by apparent It is:, can be to the application in the case where not departing from the broader spirit and scope of the application as described in claims Make various modifications and change.
Other modifications are in spirit herein.Therefore, although disclosed technology may be allowed various modifications and substitution structure It makes, but has shown that in the accompanying drawings and its some embodiments shown in being described in detail above.It will be appreciated, however, that not It is intended to for the application to be confined to disclosed one or more concrete forms;On the contrary, its intention covers such as the appended claims Defined in fall in all modifications, alternative constructions and equivalent in spirit and scope.

Claims (10)

1. a kind of generation method of 360 degree rotation image, which comprises the following steps:
S100 product definition data) is obtained from the data of designated position, attachment defines data and attachment data;The product Defining data includes at least one in following items, product attribute, name of product, product description, accessory position, attachment number Amount, attachment size;It includes at least one in following items that the attachment, which defines data, and product attribute, name of product, product are retouched It states, the displaying sequence of each file and the angle of attachment rotation in accessory position, attachment quantity, attachment data size, attachment, institute Stating attachment data includes the data stored with image and/or video format;
S200) data of acquisition are verified, the project of verification includes that contrast product defines in data and attachment defines data In corresponding project, title, attachment quantity, the attachment size of type, product including contrast product, if all be consistent, after It is continuous to execute following steps, if at least one is not consistent, prompts mistake and terminate;
S300) acquired product attribute, name of product, product description data are stored in the data field for showing file;By institute The displaying sequence, institute's attachment data size of each file and the angle of attachment rotation are stored in and show file in the attachment of acquisition Attachment definition;Acquired attachment data is stored in the attachment area for showing file.
2. the method according to claim 1, wherein the displaying file further includes file header, the file header Including at least one of following items: file identifier, data field size, product attribute quantity, picture and/or video counts Amount, rotation angle.
3. the method according to claim 1, wherein the data of the designated position include it is following be stored in it is following At least one of data in formatted file: database, form document, text document, XML document.
4. the method according to claim 1, wherein step S100 further includes following sub-step:
The format of attachment is judged, if picture and/video format, then continue to execute following steps;
Obtain attachment size simultaneously compared with first size, if more than first size, then cut a part in attachment with Make its size no more than first size;If being less than first size, make its size no more than first size to stretch attachment.
5. the method according to claim 1, wherein step S101 further includes following sub-step:
Judge the size of attachment, if the size of attachment is greater than the first size, Encapsulated PostScript makes its size no more than the first size.
6. the method according to claim 1, wherein step S300 further includes following subsequent step:
S400 image file) is read, the Product Definition number being respectively stored in data field, attachment definition and attachment area is obtained Data and attachment data are defined according to, attachment;Wherein, the product definition data includes at least one in following items, is produced Product attribute, name of product, product description, accessory position, attachment quantity, attachment size;It includes following that the attachment, which defines data, In project at least one of, product attribute, name of product, product description, accessory position, attachment quantity, attachment data size with And the displaying sequence of each file and the angle of attachment rotation in attachment, the attachment data includes with image and/or video lattice The data of formula storage;
S500) data of acquisition are verified, the project of verification includes that contrast product defines in data and attachment defines data In corresponding project, title, attachment quantity, the attachment size of type, product including contrast product, if all be consistent, after It is continuous to execute following steps, if at least one is not consistent, prompt mistake;
S600 image and/or view in attachment) are shown in show area according to the displaying sequence of attachment and the angle of attachment rotation Frequency evidence is simultaneously stored in storage device;
S700) in the document for the specified format that the non-image and/or non-video data in attachment is stored in storage device.
7. according to the method described in claim 6, it is characterized in that, the show area is with touch control feedback device and control The display screen of device processed, wherein touch control feedback device is connected with control device, wherein touch control feedback device tool There is motion characteristic to collect feedback module, the motion characteristic being collected into can be fed back to the control device.
8. according to the method described in claim 6, it is characterized in that, the document of the specified format include in Documents extremely Few one kind: text document, diagram text.
9. a kind of generating means of 360 degree rotation image, which is characterized in that comprise the following modules:
Read module, for obtaining product definition data from the data of designated position, attachment defines data and attachment data; The product definition data include in following items at least one of, product attribute, name of product, product description, accessory position, Attachment quantity, attachment size;The attachment define data include in following items at least one of, product attribute, name of product, Product description, accessory position, attachment quantity, attachment data size, the displaying sequence of each file and attachment rotation in attachment Angle, the attachment data include the data stored with image and/or video format;
Correction verification module, for verifying to the data of acquisition, the project of verification includes that contrast product defines in data and attachment Define corresponding project in data, title, attachment quantity, the attachment size of type, product including contrast product, if whole phases Symbol, then continue to execute following steps, if at least one is not consistent, prompts mistake and terminates;
Memory module, for acquired product attribute, name of product, product description data to be stored in the data for showing file Area;The displaying sequence of file each in acquired attachment, institute's attachment data size and the angle of attachment rotation are stored in exhibition Show the attachment definition of file;Acquired attachment data is stored in the attachment area for showing file.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, described instruction is wanted for executing aforesaid right Seek the described in any item methods of 1-8.
CN201811445614.5A 2018-11-29 2018-11-29 A kind of generation of 360 degree rotation image and read method Pending CN109670056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811445614.5A CN109670056A (en) 2018-11-29 2018-11-29 A kind of generation of 360 degree rotation image and read method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811445614.5A CN109670056A (en) 2018-11-29 2018-11-29 A kind of generation of 360 degree rotation image and read method

Publications (1)

Publication Number Publication Date
CN109670056A true CN109670056A (en) 2019-04-23

Family

ID=66143380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811445614.5A Pending CN109670056A (en) 2018-11-29 2018-11-29 A kind of generation of 360 degree rotation image and read method

Country Status (1)

Country Link
CN (1) CN109670056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114155685A (en) * 2021-12-21 2022-03-08 中国华能集团清洁能源技术研究院有限公司 Underwater monitoring device and method for marine ranching

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012937A (en) * 2010-12-08 2011-04-13 萨·约翰尼 Method and system for releasing advertisements on image in hyper text document
CN102207674A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Panorama image shooting apparatus and method
CN103617533A (en) * 2013-09-12 2014-03-05 上海渐石网络科技有限公司 Commodity information display method and device
CN205983229U (en) * 2016-08-18 2017-02-22 深圳市飞研智能科技有限公司 Can 360 degrees robots that solid was shot
CN107734321A (en) * 2017-09-26 2018-02-23 韩世民 A kind of 3D imaging methods based on mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207674A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Panorama image shooting apparatus and method
CN102012937A (en) * 2010-12-08 2011-04-13 萨·约翰尼 Method and system for releasing advertisements on image in hyper text document
CN103617533A (en) * 2013-09-12 2014-03-05 上海渐石网络科技有限公司 Commodity information display method and device
CN205983229U (en) * 2016-08-18 2017-02-22 深圳市飞研智能科技有限公司 Can 360 degrees robots that solid was shot
CN107734321A (en) * 2017-09-26 2018-02-23 韩世民 A kind of 3D imaging methods based on mobile device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114155685A (en) * 2021-12-21 2022-03-08 中国华能集团清洁能源技术研究院有限公司 Underwater monitoring device and method for marine ranching

Similar Documents

Publication Publication Date Title
Ohm Multimedia communication technology: Representation, transmission and identification of multimedia signals
KR20210102482A (en) Method and apparatus for improving image padding of video-based point cloud compression codec
US9432616B1 (en) Systems and methods for up-scaling video
US10003768B2 (en) Apparatus and methods for frame interpolation based on spatial considerations
US6904176B1 (en) System and method for tiled multiresolution encoding/decoding and communication with lossless selective regions of interest via data reuse
US6178204B1 (en) Adaptive control of video encoder&#39;s bit allocation based on user-selected region-of-interest indication feedback from video decoder
KR20190015495A (en) Method and apparatus for video image encoding, and method and apparatus for decoding video image
CN103167284B (en) A kind of video stream transmission method and system based on picture super-resolution
CN106780363B (en) Picture processing method and device and electronic equipment
CN111510739B (en) Video transmission method and device
CN109547724B (en) Video stream data processing method, electronic equipment and storage device
KR102327972B1 (en) Projection image construction method and device
CN105900421A (en) Techniques for encoding, decoding and representing high dynamic range images
JP7177034B2 (en) Method, apparatus and stream for formatting immersive video for legacy and immersive rendering devices
CN111669564B (en) Image reconstruction method, system, device and computer readable storage medium
CN101588509B (en) Video picture coding and decoding method
CN105933707B (en) A kind of compression method and device of panoramic video
CN107592549A (en) Panoramic video based on two-way communication plays camera system
CN108174084A (en) panoramic video processing method and terminal device
US11437072B2 (en) Recording presentations using layered keyframes
CN109670056A (en) A kind of generation of 360 degree rotation image and read method
WO2019130794A1 (en) Video processing device
CN107707830A (en) Panoramic video based on one-way communication plays camera system
CN106664387B9 (en) Computer device and method for post-processing video image frame and computer readable medium
Řeřábek et al. JPEG backward compatible coding of omnidirectional images

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190423