Summary of the invention
The present invention provides the method and device that a kind of photograph taking shows, in order to solve the storage of prior art cameraThe problem that limited space cannot store large space photo.
The present invention provides a kind of method that photograph taking shows, including:
Receive the instruction that photo is found a view, it is judged that camera internal memory remaining space size;
If described camera internal memory remaining space is little, it is stored in described after described picture compression of finding a view is processedIn camera internal memory;
Read described camera internal memory show described in find a view photo, and by described photo of finding a view from described cameraInternal memory is deleted.
Some beneficial effects of the embodiment of the present invention may include that
The shortcoming that photo of finding a view is taken up space relatively greatly and camera memory headroom is less is shot in order to overcome, will shootingPhoto of finding a view be compressed preserve, by read camera internal memory show and upload photo of finding a view, decreaseCamera memory headroom is taken by photo of finding a view, and optimizes the memory storage space of camera.
In one embodiment, method also includes:
If described camera internal memory remaining space is big, directly at photo of finding a view described in described camera memory storage.
The described step to being stored in described camera internal memory after picture compression process of finding a view includes:
According to the size of described camera internal memory remaining space, use different compression algorithms that photo of finding a view is carried outCompression processes.
Described compression algorithm includes: jpeg algorithm, PNG algorithm and GIF algorithm.
Needing what compression processed to find a view in photo, if described camera internal memory remaining space is big, using PNGAlgorithm and GIF algorithm are compressed, if described camera internal memory remaining space is little, use jpeg algorithm to enterRow compression.
The technical scheme that the embodiment of the present invention provides, according to the size of described camera internal memory remaining space, usesPhoto is compressed processing by different compression algorithms, optimizes the compression process of photo further, decreasesMemory space shared by photo.
The device that a kind of photograph taking shows, for camera, including:
Receive judge module, for receiving the instruction that photo is found a view, it is judged that camera internal memory remaining space is bigLittle;
Compression memory module, if little, to described photo pressure of finding a view for described camera internal memory remaining spaceContracting is stored in described camera internal memory after processing;
Display removing module, for read described camera internal memory show described in find a view photo, and by describedPhoto of finding a view is deleted from described camera internal memory.
In order to overcome the shortcoming that shooting photo is taken up space relatively greatly and camera memory headroom is less, by shootingPhoto is compressed preserving, and shows and upload pictures by reading camera internal memory, decreases photo to phaseTaking of machine memory headroom, optimizes the memory storage space of camera.
Described compression memory module, if it is big to be additionally operable to described camera internal memory remaining space, directly describedFind a view described in camera memory storage photo.
Described compression memory module includes:
Compression submodule, for the size according to described camera internal memory remaining space, uses different compressionsPhoto of finding a view is compressed processing by algorithm.
Described compression algorithm includes: jpeg algorithm, PNG algorithm and GIF algorithm.
Described compression submodule, specifically for needing what compression processed to find a view in photo, if described cameraInternal memory remaining space is big, uses PNG algorithm and GIF algorithm to be compressed, if described camera internal memory remainsComplementary space is little, uses jpeg algorithm to be compressed.
The technical scheme that the embodiment of the present invention provides, according to the size of described camera internal memory remaining space, usesPhoto is compressed processing by different compression algorithms, optimizes the compression process of photo further, decreasesMemory space shared by photo.
Other features and advantages of the present invention will illustrate in the following description, and, partly from explanationBook becomes apparent, or understands by implementing the present invention.The purpose of the present invention and other advantages canRealize by structure specifically noted in the description write, claims and accompanying drawing and obtain?.
Below by drawings and Examples, technical scheme is described in further detail.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that described hereinPreferred embodiment is merely to illustrate and explains the present invention, is not intended to limit the present invention.
Fig. 1 is the flow chart of a kind of method that photograph taking shows in the embodiment of the present invention.As it is shown in figure 1,Comprise the following steps S101-S103:
Step S101, camera receives the instruction that photo is found a view, it is judged that camera internal memory remaining space size.
In the education activities of step S101, student side finds a view photo to teacher.In student side, photograph of finding a viewNeed to show in this locality photo after sheet.In this process, camera operator opens the camera lens of camera, camera lensStart to find a view, it can be seen that the picture of camera view from the display of camera.Phase machine check internal memory residue skyBetween, if remaining space is big, camera the most directly stores the photo found a view.
In step S101, owing to camera does not has actual photographed, so the photo found a view is stored in internal memory.
Step S102, if described camera internal memory remaining space is little, described picture compression of finding a view is processed by cameraAfter be stored in described camera internal memory.
In step s 102, if camera remaining space is little, then photo of finding a view is compressed, especially adoptsCompress by quality.
Step S103, camera is by reading described camera internal memory and show and find a view described in uploading photo, and by instituteState photo of finding a view to delete from described camera internal memory.
In step s 103, because the picture found a view is stored in the buffer that display screen is corresponding,Conversion is found a view the refreshing of simply camera display screen, so need not camera rdma read again, therefore can delete cameraThe picture found a view in internal memory.
The technical scheme that the embodiment of the present invention provides, in order to overcome shooting photo to be taken up space relatively greatly when finding a viewThe shortcoming that camera memory headroom is less, photo of finding a view is compressed preserving, and shows by reading camera internal memoryShowing and upload photo of finding a view, decreasing photo and take camera memory headroom, the internal memory optimizing camera is depositedStorage space.
Fig. 2 is the flow chart of the method that another kind of photograph taking shows in the embodiment of the present invention.As in figure 2 it is shown,The method in the client, comprises the following steps S201-S206:
Step S201, camera receives the instruction that photo is found a view, it is judged that camera internal memory remaining space size.
In the education activities of step S201, student side shooting finds a view photo to teacher.In student side, takeNeed to show in this locality photo after scape photo.In this process, camera operator opens the camera lens of camera,Camera lens starts to find a view, it can be seen that the picture of camera view from the display of camera.Phase machine check internal memory remainsComplementary space, if remaining space is big, camera the most directly stores the photo that photo is found a view.
In step s 201, owing to camera does not has actual photographed, so the photo found a view is stored in internal memory.Step S202, if described camera internal memory remaining space is little, according to the size of described camera internal memory remaining space,Different compression algorithms is used to be compressed photo of finding a view processing.
Step S203, is needing what compression processed to find a view in photo, if described camera internal memory remaining space is relativelyGreatly, use PNG algorithm and GIF algorithm that photo of finding a view is compressed.Step S204, compresses at needsProcess finds a view in photo, if described camera internal memory remaining space is little, uses jpeg algorithm to photograph of finding a viewSheet is compressed.
Step S205, if described camera internal memory remaining space is big, directly described in described camera memory storageFind a view photo.
Step S206, camera is by reading described camera internal memory and show and find a view described in uploading photo, and by instituteState photo of finding a view to delete from described camera internal memory.
In step S206, because the picture found a view is stored in the buffer that display screen is corresponding,Conversion is found a view the refreshing of simply camera display screen, so need not camera rdma read again, therefore can delete cameraThe picture found a view in internal memory.
The technical scheme that the embodiment of the present invention provides, according to the size of described camera internal memory remaining space, adoptsIt is compressed processing to photo of finding a view by different compression algorithms, optimizes the compressed of photo of finding a view furtherJourney, decreases the memory space found a view shared by photo.
The method shown corresponding to a kind of photograph taking of above-described embodiment offer, the embodiment of the present invention also carriesThe device shown for a kind of photograph taking, as it is shown on figure 3, include:
Receive judge module 31, for receiving the instruction that photo is found a view, it is judged that camera internal memory remaining space is bigLittle;
Compression memory module 32, if little, to described photo of finding a view for described camera internal memory remaining spaceCompression is stored in described camera internal memory after processing;
Display removing module 33, for read described camera internal memory show described in find a view photo, and by instituteState photo of finding a view to delete from described camera internal memory.
The technical scheme that the embodiment of the present invention provides, in order to overcome shooting photo to be taken up space camera relatively greatlyThe shortcoming that memory headroom is less, is compressed the photo of shooting preserving, and shows by reading camera internal memoryShow and upload pictures, decrease photo and camera memory headroom is taken, optimize the memory storage of cameraSpace.
A kind of method shown for the photograph taking of camera provided corresponding to above-described embodiment, the present inventionEmbodiment also provides for the device that a kind of photograph taking shows, this device is used for camera end, as shown in Figure 4, bagInclude:
Receive judge module 41, for receiving the instruction that photo is found a view, it is judged that camera internal memory remaining space is bigLittle;
Compression memory module 42, if little, to described photo of finding a view for described camera internal memory remaining spaceCompression is stored in described camera internal memory after processing;
Display removing module 43, for read described camera internal memory show described in find a view photo, and by instituteState photo of finding a view to delete from described camera internal memory.
Wherein: described compression memory module 42, if it is big to be additionally operable to described camera internal memory remaining space, directlyAt photo of finding a view described in described camera memory storage.
Wherein: described compression memory module 42 includes:
Compression submodule 421, for the size according to described camera internal memory remaining space, uses different pressuresPhoto of finding a view is compressed processing by compression algorithm.
Described compression algorithm includes: jpeg algorithm, PNG algorithm and GIF algorithm.
Described compression submodule 421, specifically for needing what compression processed to find a view in photo, if describedCamera internal memory remaining space is big, uses PNG algorithm and GIF algorithm to be compressed, if in described cameraDeposit remaining space little, use jpeg algorithm to be compressed.
The technical scheme that the embodiment of the present invention provides, in order to overcome shooting photo to be taken up space camera relatively greatlyThe shortcoming that memory headroom is less, is compressed the photo of shooting preserving, and shows by reading camera internal memoryShow and upload pictures, decrease photo and camera memory headroom is taken, optimize the memory storage of cameraSpace.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meterCalculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knotThe form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or moreComputer-usable storage medium containing computer usable program code (include but not limited to disk memory andOptical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present inventionThe flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embeddingThe processor of formula datatron or other programmable data processing device is to produce a machine so that by calculatingThe instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart oneThe device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to setIn the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memoryInstruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chartThe function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makesSequence of operations step must be performed to produce computer implemented place on computer or other programmable devicesReason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart oneThe step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present inventionThe spirit and scope of invention.So, if these amendments of the present invention and modification belong to the claims in the present inventionAnd within the scope of equivalent technologies, then the present invention is also intended to comprise these change and modification.