CN104243923A - Image processing and previewing method and system - Google Patents

Image processing and previewing method and system Download PDF

Info

Publication number
CN104243923A
CN104243923A CN201410455179.XA CN201410455179A CN104243923A CN 104243923 A CN104243923 A CN 104243923A CN 201410455179 A CN201410455179 A CN 201410455179A CN 104243923 A CN104243923 A CN 104243923A
Authority
CN
China
Prior art keywords
picture
former
thumbnail
preview
download
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.)
Granted
Application number
CN201410455179.XA
Other languages
Chinese (zh)
Other versions
CN104243923B (en
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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201410455179.XA priority Critical patent/CN104243923B/en
Publication of CN104243923A publication Critical patent/CN104243923A/en
Application granted granted Critical
Publication of CN104243923B publication Critical patent/CN104243923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an image processing and previewing method and system. For the request for inquiring an original image, a thumbnail corresponding to the original image is copied to a thumbnail virtual route, and the thumbnail virtual route is sent to a client side; for the request for previewing/downloading of the original image, the original image needing to be previewed/downloaded by the client side is copied to an original image virtual route, and the original image virtual route is sent to the client side; unrecognizable image files in a monitoring video are mapped to a virtual route in a virtual memory disk mode so that the client side can preview thumbnails instantly, a user selects the original image needing to be loaded, the time is saved for the user, and the user experience is improved. The thumbnails obtained through compression are saved temporarily in a buffer queue, and when a CPU is idle, the thumbnails are saved in a storage device in sequence; in this way, the occupied CPU can be reduced, and the situation that a system operates slowly or breaks down is avoided.

Description

The method and system of a kind of picture processing and preview picture
Technical field
The present invention relates to technical field of computer information processing, relate to the method and system of a kind of picture processing and preview picture particularly.
Background technology
CCTV camera is the accurate video camera being used in security protection aspect, its pixel and resolution higher than the video heads of computer, than the digital camera of specialty or DV low.The video capturing device that CCTV camera is mostly just single, seldom possesses data hold function.CCTV camera mainly divides into gun-type, hemisphere, high-speed ball external form, also has the differentiation of simulation monitoring and IP network monitoring in addition, is widely used in multiple security fields such as bank, traffic, safe city.
The candid photograph function of CCTV camera is often used, in prior art user search capture picture time often can only see picture items for information, needing to click after picture items for information could the former figure of preview, and the whole preview picture process took time is longer, and lacks visual understanding.Thumbnail preview technology is adopted to the picture that CCTV camera is captured, user can be allowed the very first time to see image content, and then select whether load the former figure of preview, if need to load former figure, click thumbnail and get final product complete operation, save user time, and can Consumer's Experience be improved.But existing CCTV camera adopts embedded system usually, cpu performance is very limited, adopts thumbnail preview technique compresses picture to need to take CPU more, easily causes system cloud gray model slowly or paralysis.Thumbnail is finally directly presented on webpage, common way adopts the virtual route of Webserver to map actual file path, the loading of preview graph is completed by browser and webserver, but in CCTV camera, cause file system read-only to prevent frequent write operation, the embedded system of CCTV camera uses self-defining storage system usually, there is no the file path that system can identify, so the virtual route of Webserver cannot be adopted to map actual file path, and then the loading of thumbnail cannot be realized.
Summary of the invention
For this reason, it is more that technical problem to be solved by this invention is that CCTV camera adopts thumbnail preview technique compresses picture to need to take CPU, easily cause system cloud gray model slowly or paralysis, the embedded system of CCTV camera uses self-defining storage system usually, there is no the file path that system can identify, the virtual route of Webserver cannot be adopted to map actual file path, and then the loading of thumbnail cannot be realized, thus the method and system of a kind of picture processing and preview picture are proposed.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A method for picture processing, comprises the steps:
Obtain former picture, and be that thumbnail stores by the copy picture compression of former picture;
Receive the former picture request of inquiry that client sends;
Copy the thumbnail corresponding with former picture to thumbnail virtual route, and former for inquiry picture response and described thumbnail virtual route are sent to client, select for client the former picture needing preview/download;
Receive former preview picture/download request that described client sends;
Replication client needs the former picture of preview/download to former picture virtual route, and former preview picture/download response and described former picture virtual route are sent to client, for client preview/download.
The method of above-mentioned picture processing, the former picture of described acquisition, and the step being thumbnail by the copy picture compression of former picture specifically comprises:
Obtain former picture, by described former picture-storage to memory;
Generate the copy picture of described former picture;
The copy picture of former picture is carried out compression process and obtains thumbnail;
Thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.
The method of above-mentioned picture processing, the described copy picture to former picture carries out compressing the step that process obtains thumbnail and specifically comprises:
The picture processing and obtain rgb format of decoding is carried out to the copy picture of former picture;
It is the picture of the rgb format of QCIF size by the picture compression of described rgb format;
The thumbnail of JPG form is obtained after being encoded by the image data of the rgb format of described QCIF size.
The method of above-mentioned picture processing, copies the thumbnail corresponding with former picture to the step of thumbnail virtual route and specifically comprises:
Send the former picture request of inquiry to memory;
The inquiry former picture corresponding with the former picture request of inquiry that reception memorizer sends is replied;
Send the request of inquiry thumbnail to described memory;
The inquiry thumbnail corresponding to the request of described inquiry thumbnail receiving the transmission of described memory is replied;
Copy the thumbnail corresponding with former picture that store in memory to thumbnail virtual route.
The method of above-mentioned picture processing, replication client needs the former picture of preview/download specifically to comprise to the step of former picture virtual route:
Send former preview picture/download request to memory;
Former preview picture/the download corresponding with former preview picture/download request that reception memorizer sends is replied;
Copy the former picture corresponding with the former preview picture/download request extremely former picture virtual route stored in memory.
The method of above-mentioned picture processing, described in copy the thumbnail corresponding with former picture in the step of thumbnail virtual route:
If the compression process of former picture does not complete, then copy the thumbnail of acquiescence to thumbnail virtual route, the content that the thumbnail of described acquiescence is pointed out is that former picture loads.
A method for preview picture, comprises the steps:
Send the former picture request of inquiry to server end;
The former picture response of the inquiry that reception server end sends and thumbnail virtual route, select the former picture needing preview/download;
Send former preview picture/download request to server end;
The former preview picture that reception server end sends/download response and former picture virtual route, select preview/download.
A system for picture processing, comprising:
The copy picture compression of former picture for obtaining former picture, and is that thumbnail stores by pretreatment module;
First receiver module, for receiving the former picture request of inquiry that client sends;
First processing module and the first sending module, first processing module is for copying the thumbnail corresponding with former picture to thumbnail virtual route, first sending module is used for former for inquiry picture response and described thumbnail virtual route to be sent to client, selects for client the former picture needing preview/download;
Second receiver module, for receiving former preview picture/download request that described client sends;
Second processing module and the second sending module, second processing module is used for replication client needs the former picture of preview/download to former picture virtual route, second sending module is used for former preview picture/download response and described former picture virtual route to be sent to client, for client preview/download.
The system of above-mentioned picture processing, described pretreatment module specifically comprises:
Picture obtains submodule, for obtaining former picture, and by described former picture-storage to memory;
Copy picture generates submodule, for generating the copy picture of described former picture;
Compression submodule, obtains thumbnail for carrying out compression process to the copy picture of former picture;
Sub module stored, for thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.
The system of above-mentioned picture processing, described compression submodule specifically comprises:
Decoding sub-module, for carrying out the picture processing and obtain rgb format of decoding to the copy picture of former picture;
Compression submodule, for by the picture compression of the rgb format in described decoding sub-module being the picture of rgb format of QCIF size;
Encoding submodule, for obtaining the thumbnail of JPG form after the image data coding of the rgb format by the QCIF size in described compression submodule.
The system of above-mentioned picture processing, described first processing module specifically comprises:
Former picture request sends submodule, for sending the former picture request of inquiry to memory;
Former picture response receives submodule, and the inquiry former picture corresponding with the former picture request of inquiry sent for reception memorizer is replied;
Thumbnail request sends submodule, for sending the request of inquiry thumbnail to described memory;
Thumbnail response receives submodule, and the inquiry thumbnail corresponding to the request of described inquiry thumbnail sent for receiving described memory is replied;
Thumbnail path replication module, for copying the thumbnail corresponding with former picture that store in memory to thumbnail virtual route.
The system of above-mentioned picture processing, described second processing module specifically comprises:
Preview/download request sends submodule, for sending former preview picture/download request to memory;
Preview/download request receives submodule, and the former preview picture/download corresponding with former preview picture/download request sent for reception memorizer is replied;
Former picture path replication module, for copying the former picture corresponding with the former preview picture/download request extremely former picture virtual route stored in memory.
The system of above-mentioned picture processing, in described first processing module:
If the compression process of former picture does not complete, then copy the thumbnail of acquiescence to thumbnail virtual route, the content that the thumbnail of described acquiescence is pointed out is that former picture loads.
A system for preview picture, comprising:
Former picture query request sending module, for sending the former picture request of inquiry to server end;
Receive the response of former picture query and processing module, the former picture response of inquiry sent for reception server end and thumbnail virtual route, select the former picture needing preview/download;
Former preview picture/download request sending module, for sending former preview picture/download request to server end;
Receive former preview picture/download response and processing module, the former preview picture/download response sent for reception server end and former picture virtual route, select preview/download.
A system for picture processing and preview picture, comprising:
Server end, comprises above-mentioned picture processing system;
Client, comprises above-mentioned preview picture system.
Technique scheme of the present invention has the following advantages compared to existing technology:
(1) method and system of picture processing of the present invention, by obtaining and storing former picture, receive the former picture request of inquiry that client sends, copy the thumbnail corresponding with former picture to thumbnail virtual route, and described thumbnail virtual route is sent to client, the former picture needing preview/download is selected for client, receive former preview picture/download request that described client sends, replication client needs the former picture of preview/download to former picture virtual route and described former picture virtual route is sent to client, for client preview/download.By the mode of virtual flash disk, picture file unrecognizable in CCTV camera is mapped in virtual route, make client can in very first time preview thumbnail, user selects the former picture needing to load, just can preview/download former picture, save the time of user, and improve Consumer's Experience.
(2) method and system of picture processing of the present invention, carry out compression process to the copy picture of former picture and obtain thumbnail, then be temporary in buffer queue by thumbnail, when CPU is in the free time, successively by thumbnail storage in memory.So just can reduce and take CPU, prevent from causing the situation that system cloud gray model is slow or paralyse.
(3) method and system of preview picture of the present invention, by sending the former picture request of inquiry to server end, the former picture response of the inquiry that reception server end sends and thumbnail virtual route, the page of client just can show thumbnail, user can select the former picture needing preview/download intuitively, select to send former preview picture/download request to server end according to user, the former preview picture/downloads that reception server end sends is replied and former picture virtual route, and user can preview/download former picture.Whole preview picture process, simple, intuitive, expends time in short, improves Consumer's Experience.
Accompanying drawing explanation
In order to make content of the present invention be more likely to be clearly understood, below according to a particular embodiment of the invention and by reference to the accompanying drawings, the present invention is further detailed explanation, wherein
Fig. 1 is the method flow diagram of a kind of picture processing of one embodiment of the invention;
Fig. 2 is a kind of thumbnail compression process schematic diagram of one embodiment of the invention;
Fig. 3 is a kind of thumbnail storage process schematic of one embodiment of the invention;
Fig. 4 is a kind of thumbnail storage process time schematic diagram of mechanism of one embodiment of the invention;
Fig. 5 is the method flow diagram of a kind of preview picture of one embodiment of the invention;
Fig. 6 is the system block diagram of a kind of picture processing of one embodiment of the invention;
Fig. 7 is the system block diagram of a kind of preview picture of one embodiment of the invention;
Fig. 8 is a kind of picture query and the whole process schematic of preview picture of one embodiment of the invention.
Embodiment
Embodiment 1
The present embodiment provides a kind of method of picture processing, the picture that the present embodiment is taken for CCTV camera, as shown in Figure 1, comprises the steps:
Server end obtains former picture, and is that thumbnail stores by the copy picture compression of former picture.The former picture obtained captures by CCTV camera the picture obtained.Described server end can be the processor of CCTV camera.
The former picture request of inquiry that received server-side client sends.Described client can be web page server end.
Server end copies the thumbnail corresponding with former picture to thumbnail virtual route, and former for inquiry picture response and described thumbnail virtual route are sent to client, selects for client the former picture needing preview/download.
Former preview picture/download request that client described in received server-side sends.
Server end replication client needs the former picture of preview/download to former picture virtual route, and former preview picture/download response and described former picture virtual route are sent to client, for client preview/download.
In CCTV camera, described former picture is captured by mediactrl module in charge, and former image data is transferred to kernel service layer ipcrec module, by ipcrec module, picture compression is become thumbnail, again by rpdata module stored in sd card, during inquiry thumbnail, rpdata module sends the data to ipcrec module, hands to cgiapp layer and is transferred to client.
The former picture of described acquisition, and the step being thumbnail by the copy picture compression of former picture specifically comprises:
Obtain former picture, by described former picture-storage to memory.Generate the copy picture of described former picture.The copy picture of former picture is carried out compression process and obtains thumbnail.Thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.10 seconds about consuming time of a hypertonic sketch map after tested, so be temporary in buffer queue by thumbnail, utilize the free time of CPU by thumbnail slowly stored in memory device, so just can reduce and take CPU, prevents from causing system cloud gray model slowly or the situation of paralysis.
The acquisition of former picture and storage can complete very soon, and thumbnail compression is a relative process slowly.
The described copy picture to former picture carries out compressing the step that process obtains thumbnail and specifically comprises:
Carry out to the copy picture of former picture the picture processing and obtain rgb format of decoding, the copy picture of former picture and former picture is all the picture of JPG form.It is the picture of the rgb format of QCIF size by the picture compression of described rgb format.The thumbnail of JPG form will be obtained after the data encoding of the picture of the rgb format of QCIF size.
In CCTV camera, whole thumbnail compression process as shown in Figure 2:
CCTV camera processor IPC Core module captures former picture, and is retained in device memory rpdata module by former picture, and is sent in decoding unit Decode module by the copy picture of former picture.
The copy picture decode of the former picture of JPG form is the picture of rgb format by decoding unit Decode module.
The picture compression of the just described rgb format of compression unit Resize module is the picture of the rgb format of QCIF size.
Coding unit Encode module will obtain the thumbnail of JPG form after the data encoding of the picture of the rgb format of QCIF size, and is sent in device memory rpdata module by described thumbnail.
Wherein, QCIF is conventional standard image format, QCIF=176 × 144 pixel.The copy picture of the former picture of JPG form is carried out decoding the coding/decoding method that adopts of picture that processes and obtain rgb format and the image data of the rgb format of QCIF size to be carried out coding method that thumbnail that coded treatment obtains JPG form adopts be all the conventional method of image processing field.
Copy the thumbnail corresponding with former picture to the step of thumbnail virtual route specifically to comprise:
Send the former picture request of inquiry to memory.The inquiry former picture corresponding with the former picture request of inquiry that reception memorizer sends is replied.Send the request of inquiry thumbnail to described memory.The inquiry thumbnail corresponding to the request of described inquiry thumbnail receiving the transmission of described memory is replied.Copy the thumbnail corresponding with former picture that store in memory to thumbnail virtual route.
Replication client needs the former picture of preview/download specifically to comprise to the step of former picture virtual route:
Send former preview picture/download request to memory.Former preview picture/the download corresponding with former preview picture/download request that reception memorizer sends is replied.Copy the former picture corresponding with the former preview picture/download request extremely former picture virtual route stored in memory.
Describedly copy the thumbnail corresponding with former picture in the step of thumbnail virtual route:
If the compression process of former picture does not complete, then copy the thumbnail of acquiescence to thumbnail virtual route, the content that the thumbnail of described acquiescence is pointed out is that former picture loads.But former picture has stored, so the thumbnail clicking acquiescence just can obtain corresponding former picture, do not affect user and use.After thumbnail completes compression, system can replace the thumbnail of acquiescence, time user inquires about again, just can see the thumbnail after having compressed.
In CCTV camera, the time mechanism in thumbnail storage process and storing process as shown in Figure 3-4:
Former pictorial information in CCTV camera processor ipccore module is sent in pending list, and is sent in device memory rpdata module by former pictorial information.Successively the thumbnail compressed in pending list is put into thumbnail cache list, utilize cpu idle time by thumbnail slowly stored in device memory rpdata module by thumbnail cache list.What do not complete in pending list just sends default thumbnail in device memory rpdata module.
So when picture compression is also when carrying out, user inquires about picture can provide default thumbnail, the content of thumbnail can be shown as: load, user still can load former picture by clicking thumbnail, because former picture has stored for a long time, does not affect the use of user, after thumbnail completes compression, can default thumbnail be replaced, if now there is user again to inquire about, real thumbnail can be seen.
The method and system of a kind of picture processing provided by the invention, by obtaining and storing former picture, receive the former picture request of inquiry that client sends, copy the thumbnail corresponding with former picture to thumbnail virtual route, and described thumbnail virtual route is sent to client, the former picture needing preview/download is selected for client, receive former preview picture/download request that described client sends, replication client needs the former picture of preview/download to former picture virtual route and described former picture virtual route is sent to client, for client preview/download.By the mode of virtual flash disk, picture file unrecognizable in CCTV camera is mapped in virtual route, make client can in very first time preview thumbnail, user selects the former picture needing to load, just can preview/download former picture, save the time of user, and improve Consumer's Experience.Compression process is carried out to the copy picture of former picture and obtains thumbnail, then thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.So just can reduce and take CPU, prevent from causing the situation that system cloud gray model is slow or paralyse.
Embodiment 2
The present embodiment provides a kind of method of preview picture, as shown in Figure 5, comprises the steps:
Send the former picture request of inquiry to server end.
The former picture response of the inquiry that reception server end sends and thumbnail virtual route, select the former picture needing preview/download.
Send former preview picture/download request to server end.
The former preview picture that reception server end sends/download response and former picture virtual route, select preview/download.
In CCTV camera, after client sends picture request, the former picture response of inquiry and thumbnail virtual route that server end sends can be received, the then thumbnail preview of display monitoring video camera on web browser.
In CCTV camera, client selects to want the former picture of preview/downloads, can click the thumbnail of correspondence, then the former preview picture of display monitoring video camera on web browser.
The method of a kind of preview picture that the present embodiment provides, by sending the former picture request of inquiry to server end, the former picture response of the inquiry that reception server end sends and thumbnail virtual route, the page of client just can show thumbnail, user can select the former picture needing preview/download intuitively, select to send former preview picture/download request to server end according to user, the former preview picture/downloads that reception server end sends is replied and former picture virtual route, and user can preview/download former picture.Whole preview picture process, simple, intuitive, expends time in short, improves Consumer's Experience.
Embodiment 3
The present embodiment provides a kind of system of picture processing, as shown in Figure 6, comprising:
The copy picture compression of former picture for obtaining former picture, and is that thumbnail stores by pretreatment module.
First receiver module, for receiving the former picture request of inquiry that client sends.
First processing module and the first sending module, first processing module is for copying the thumbnail corresponding with former picture to thumbnail virtual route, first sending module is used for former for inquiry picture response and described thumbnail virtual route to be sent to client, selects for client the former picture needing preview/download.
Second receiver module, for receiving former preview picture/download request that described client sends.
Second processing module and the second sending module, second processing module is used for replication client needs the former picture of preview/download to former picture virtual route, second sending module is used for former preview picture/download response and described former picture virtual route to be sent to client, for client preview/download.
Described pretreatment module specifically comprises:
Picture obtains submodule, for obtaining former picture, and by described former picture-storage to memory.
Copy picture generates submodule, for generating the copy picture of described former picture.
Compression submodule, obtains thumbnail for carrying out compression process to the copy picture of former picture.
Sub module stored, for thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.
Described compression submodule specifically comprises:
Decoding sub-module, for carrying out the picture processing and obtain rgb format of decoding to the copy picture of former picture.
Compression submodule, for by the picture compression of the rgb format in described decoding sub-module being the picture of rgb format of QCIF size.
Encoding submodule, for obtaining the thumbnail of JPG form after the image data coding of the rgb format by the QCIF size in described compression submodule.
Described first processing module specifically comprises:
Former picture request sends submodule, for sending the former picture request of inquiry to memory.
Former picture response receives submodule, and the inquiry former picture corresponding with the former picture request of inquiry sent for reception memorizer is replied.
Thumbnail request sends submodule, for sending the request of inquiry thumbnail to described memory.
Thumbnail response receives submodule, and the inquiry thumbnail corresponding to the request of described inquiry thumbnail sent for receiving described memory is replied.
Thumbnail path replication module, for copying the thumbnail corresponding with former picture that store in memory to thumbnail virtual route.
Described second processing module specifically comprises:
Preview/download request sends submodule, for sending former preview picture/download request to memory.
Preview/download request receives submodule, and the former preview picture/download corresponding with former preview picture/download request sent for reception memorizer is replied.
Former picture path replication module, for copying the former picture corresponding with the former preview picture/download request extremely former picture virtual route stored in memory.
In described first processing module:
If the compression process of former picture does not complete, then copy the thumbnail of acquiescence to thumbnail virtual route, the content that the thumbnail of described acquiescence is pointed out is that former picture loads.
The system of a kind of picture processing that the present embodiment provides, by obtaining and storing former picture, receive the former picture request of inquiry that client sends, copy the thumbnail corresponding with former picture to thumbnail virtual route, and described thumbnail virtual route is sent to client, the former picture needing preview/download is selected for client, receive former preview picture/download request that described client sends, replication client needs the former picture of preview/download to former picture virtual route and described former picture virtual route is sent to client, for client preview/download.By the mode of virtual flash disk, picture file unrecognizable in CCTV camera is mapped in virtual route, make client can in very first time preview thumbnail, user selects the former picture needing to load, just can preview/download former picture, save the time of user, and improve Consumer's Experience.Compression process is carried out to the copy picture of former picture and obtains thumbnail, then thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.So just can reduce and take CPU, prevent from causing the situation that system cloud gray model is slow or paralyse.
Embodiment 4
The present embodiment provides a kind of system of preview picture, as shown in Figure 7, comprising:
Former picture query request sending module, for sending the former picture request of inquiry to server end.
Receive the response of former picture query and processing module, the former picture response of inquiry sent for reception server end and thumbnail virtual route, select the former picture needing preview/download.
Former preview picture/download request sending module, for sending former preview picture/download request to server end.
Receive former preview picture/download response and processing module, the former preview picture/download response sent for reception server end and former picture virtual route, select preview/download.
The system of a kind of preview picture that the present embodiment provides, by sending the former picture request of inquiry to server end, the former picture response of the inquiry that reception server end sends and thumbnail virtual route, the page of client just can show thumbnail, user can select the former picture needing preview/download intuitively, select to send former preview picture/download request to server end according to user, the former preview picture/downloads that reception server end sends is replied and former picture virtual route, and user can preview/download former picture.Whole preview picture process, simple, intuitive, expends time in short, improves Consumer's Experience.
Embodiment 5
The present embodiment provides the system of a kind of picture processing and preview picture, it is characterized in that, comprising:
Server end, comprises the picture processing system described in embodiment 3.
Client, comprises the preview picture system described in embodiment 4.
In CCTV camera, picture query and the whole process schematic of preview picture as shown in Figure 8:
Web page user end WEB Client in client sends the former picture request of inquiry, web browser WEB Server in client receives WEB Client and sends the former picture request of inquiry and this request be sent in CCTV camera processor IPC Core, IPC Core receives WEB Server and sends the former picture request of inquiry and this request be sent in CCTV camera device memory rpdata module, rpdata module receives IPC Core and sends the former picture request of inquiry and return the former picture response of inquiry in IPC Core, IPC Core sends the request of inquiry thumbnail in rpdata module, rpdata module receives this inquiry thumbnail request and returns the response of inquiry thumbnail in IPC Core, IPC Core receives the inquiry thumbnail response of rpdata module transmission and copies on virtual route by thumbnail, copy after virtual route completes, the former picture response of IPC Core transmission inquiry and thumbnail virtual route are to WEBServer, WEB Server receives this response and thumbnail virtual route and sends it to WEBClient, WEB Client carries out selecting former picture, send former preview picture/download request to WEBServer, WEB Server receives the former preview picture/download request of WEB Client transmission and sends it to IPC Core, IPC Core sends former picture request to rpdata module, rpdata module receives this request and returns the response of former picture to IPC Core, IPC Core copies former picture and also former preview picture/download response and former picture virtual route is sent to WEB Server to virtual route, former preview picture/download response and former picture virtual route are sent to WEB Client by WEB Server, complete the process of whole CCTV camera picture processing and preview picture.
A kind of picture processing that the present embodiment provides and the system of preview picture, comprise server end and client, by server end and client, the thumbnail of the picture that user can capture in the acquisition CCTV camera of quicklook, and then the picture can selecting required for preview/download user, be user-friendly to, improve Consumer's Experience.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that the processor established by computer or other programmable data process is performed produces the device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.

Claims (15)

1. a method for picture processing, is characterized in that, comprises the steps:
Obtain former picture, and be that thumbnail stores by the copy picture compression of former picture;
Receive the former picture request of inquiry that client sends;
Copy the thumbnail corresponding with former picture to thumbnail virtual route, and former for inquiry picture response and described thumbnail virtual route are sent to client, select for client the former picture needing preview/download;
Receive former preview picture/download request that described client sends;
Replication client needs the former picture of preview/download to former picture virtual route, and former preview picture/download response and described former picture virtual route are sent to client, for client preview/download.
2. the method for picture processing according to claim 1, is characterized in that, the former picture of described acquisition, and the step being thumbnail by the copy picture compression of former picture specifically comprises:
Obtain former picture, by described former picture-storage to memory;
Generate the copy picture of described former picture;
The copy picture of former picture is carried out compression process and obtains thumbnail;
Thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.
3. the method for picture processing according to claim 1 and 2, is characterized in that, the described copy picture to former picture carries out compressing the step that process obtains thumbnail and specifically comprises:
The picture processing and obtain rgb format of decoding is carried out to the copy picture of former picture;
It is the picture of the rgb format of QCIF size by the picture compression of described rgb format;
The thumbnail of JPG form is obtained after being encoded by the image data of the rgb format of described QCIF size.
4. according to the method for the arbitrary described picture processing of claim 1-3, it is characterized in that, copy the thumbnail corresponding with former picture to the step of thumbnail virtual route and specifically comprise:
Send the former picture request of inquiry to memory;
The inquiry former picture corresponding with the former picture request of inquiry that reception memorizer sends is replied;
Send the request of inquiry thumbnail to described memory;
The inquiry thumbnail corresponding to the request of described inquiry thumbnail receiving the transmission of described memory is replied;
Copy the thumbnail corresponding with former picture that store in memory to thumbnail virtual route.
5. according to the method for the arbitrary described picture processing of claim 1-4, it is characterized in that, replication client needs the former picture of preview/download specifically to comprise to the step of former picture virtual route:
Send former preview picture/download request to memory;
Former preview picture/the download corresponding with former preview picture/download request that reception memorizer sends is replied;
Copy the former picture corresponding with the former preview picture/download request extremely former picture virtual route stored in memory.
6., according to the method for the arbitrary described picture processing of claim 1-5, it is characterized in that, described in copy the thumbnail corresponding with former picture in the step of thumbnail virtual route:
If the compression process of former picture does not complete, then copy the thumbnail of acquiescence to thumbnail virtual route, the content that the thumbnail of described acquiescence is pointed out is that former picture loads.
7. a method for preview picture, is characterized in that, comprises the steps:
Send the former picture request of inquiry to server end;
The former picture response of the inquiry that reception server end sends and thumbnail virtual route, select the former picture needing preview/download;
Send former preview picture/download request to server end;
The former preview picture that reception server end sends/download response and former picture virtual route, select preview/download.
8. a system for picture processing, is characterized in that, comprising:
The copy picture compression of former picture for obtaining former picture, and is that thumbnail stores by pretreatment module;
First receiver module, for receiving the former picture request of inquiry that client sends;
First processing module and the first sending module, first processing module is for copying the thumbnail corresponding with former picture to thumbnail virtual route, first sending module is used for former for inquiry picture response and described thumbnail virtual route to be sent to client, selects for client the former picture needing preview/download;
Second receiver module, for receiving former preview picture/download request that described client sends;
Second processing module and the second sending module, second processing module is used for replication client needs the former picture of preview/download to former picture virtual route, second sending module is used for former preview picture/download response and described former picture virtual route to be sent to client, for client preview/download.
9. the system of picture processing according to claim 8, is characterized in that, described pretreatment module specifically comprises:
Picture obtains submodule, for obtaining former picture, and by described former picture-storage to memory;
Copy picture generates submodule, for generating the copy picture of described former picture;
Compression submodule, obtains thumbnail for carrying out compression process to the copy picture of former picture;
Sub module stored, for thumbnail is temporary in buffer queue, when CPU is in the free time, successively by thumbnail storage in memory.
10. the system of picture processing according to claim 8 or claim 9, it is characterized in that, described compression submodule specifically comprises:
Decoding sub-module, for carrying out the picture processing and obtain rgb format of decoding to the copy picture of former picture;
Compression submodule, for by the picture compression of the rgb format in described decoding sub-module being the picture of rgb format of QCIF size;
Encoding submodule, for obtaining the thumbnail of JPG form after the image data coding of the rgb format by the QCIF size in described compression submodule.
The system of 11.-10 arbitrary described picture processings according to Claim 8, it is characterized in that, described first processing module specifically comprises:
Former picture request sends submodule, for sending the former picture request of inquiry to memory;
Former picture response receives submodule, and the inquiry former picture corresponding with the former picture request of inquiry sent for reception memorizer is replied;
Thumbnail request sends submodule, for sending the request of inquiry thumbnail to described memory;
Thumbnail response receives submodule, and the inquiry thumbnail corresponding to the request of described inquiry thumbnail sent for receiving described memory is replied;
Thumbnail path replication module, for copying the thumbnail corresponding with former picture that store in memory to thumbnail virtual route.
The system of 12.-11 arbitrary described picture processings according to Claim 8, it is characterized in that, described second processing module specifically comprises:
Preview/download request sends submodule, for sending former preview picture/download request to memory;
Preview/download request receives submodule, and the former preview picture/download corresponding with former preview picture/download request sent for reception memorizer is replied;
Former picture path replication module, for copying the former picture corresponding with the former preview picture/download request extremely former picture virtual route stored in memory.
The system of 13.-12 arbitrary described picture processings according to Claim 8, is characterized in that, in described first processing module:
If the compression process of former picture does not complete, then copy the thumbnail of acquiescence to thumbnail virtual route, the content that the thumbnail of described acquiescence is pointed out is that former picture loads.
The system of 14. 1 kinds of preview pictures, is characterized in that, comprising:
Former picture query request sending module, for sending the former picture request of inquiry to server end;
Receive the response of former picture query and processing module, the former picture response of inquiry sent for reception server end and thumbnail virtual route, select the former picture needing preview/download;
Former preview picture/download request sending module, for sending former preview picture/download request to server end;
Receive former preview picture/download response and processing module, the former preview picture/download response sent for reception server end and former picture virtual route, select preview/download.
The system of 15. 1 kinds of picture processings and preview picture, is characterized in that, comprising:
Server end, comprises the picture processing system described in claim 8-13;
Client, comprises preview picture system according to claim 14.
CN201410455179.XA 2014-09-09 2014-09-09 A kind of method and system of picture processing and preview picture Active CN104243923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410455179.XA CN104243923B (en) 2014-09-09 2014-09-09 A kind of method and system of picture processing and preview picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410455179.XA CN104243923B (en) 2014-09-09 2014-09-09 A kind of method and system of picture processing and preview picture

Publications (2)

Publication Number Publication Date
CN104243923A true CN104243923A (en) 2014-12-24
CN104243923B CN104243923B (en) 2017-12-15

Family

ID=52231159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410455179.XA Active CN104243923B (en) 2014-09-09 2014-09-09 A kind of method and system of picture processing and preview picture

Country Status (1)

Country Link
CN (1) CN104243923B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119954A (en) * 2015-07-08 2015-12-02 广州三星通信技术研究有限公司 File transmission method, apparatus and system
CN106528617A (en) * 2016-09-30 2017-03-22 北京小米移动软件有限公司 Webpage picture display method and apparatus
CN106954038A (en) * 2017-02-17 2017-07-14 福建星网物联信息系统有限公司 A kind of long-range method, decoder and system for checking NVR pictures
CN108810117A (en) * 2018-05-30 2018-11-13 京东方科技集团股份有限公司 Access method, device, electronic equipment and the storage medium of image
WO2019024332A1 (en) * 2017-07-31 2019-02-07 平安科技(深圳)有限公司 Picture displaying method, server, and computer readable storage medium
CN110299967A (en) * 2019-08-02 2019-10-01 中国工商银行股份有限公司 A kind of picture transmission method, device and storage medium
CN110580242A (en) * 2018-06-07 2019-12-17 深圳艾派网络科技股份有限公司 picture storage and display method and system in network disk application
CN114884925A (en) * 2022-04-18 2022-08-09 深圳市绿联科技股份有限公司 Method, device and system for transmitting composite photo data and electronic equipment
WO2023066036A1 (en) * 2021-10-22 2023-04-27 华为技术有限公司 Cross-device file display method and system, and device
WO2023185966A1 (en) * 2022-03-29 2023-10-05 北京字跳网络技术有限公司 Image loading method and apparatus, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022497A (en) * 2006-02-13 2007-08-22 索尼株式会社 Information processing apparatus, method, and program
CN101083761A (en) * 2006-12-07 2007-12-05 腾讯科技(深圳)有限公司 Graphics file transferring method and system
CN102684986A (en) * 2011-04-14 2012-09-19 天脉聚源(北京)传媒科技有限公司 Method and system for displaying pictures at terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022497A (en) * 2006-02-13 2007-08-22 索尼株式会社 Information processing apparatus, method, and program
CN101083761A (en) * 2006-12-07 2007-12-05 腾讯科技(深圳)有限公司 Graphics file transferring method and system
CN102684986A (en) * 2011-04-14 2012-09-19 天脉聚源(北京)传媒科技有限公司 Method and system for displaying pictures at terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119954A (en) * 2015-07-08 2015-12-02 广州三星通信技术研究有限公司 File transmission method, apparatus and system
CN106528617A (en) * 2016-09-30 2017-03-22 北京小米移动软件有限公司 Webpage picture display method and apparatus
CN106528617B (en) * 2016-09-30 2019-08-16 北京小米移动软件有限公司 A kind of method and device that Web page picture is shown
CN106954038B (en) * 2017-02-17 2021-08-13 福建星网物联信息系统有限公司 Method, decoder and system for remotely viewing NVR (network video recorder) picture
CN106954038A (en) * 2017-02-17 2017-07-14 福建星网物联信息系统有限公司 A kind of long-range method, decoder and system for checking NVR pictures
WO2019024332A1 (en) * 2017-07-31 2019-02-07 平安科技(深圳)有限公司 Picture displaying method, server, and computer readable storage medium
US11094000B2 (en) 2018-05-30 2021-08-17 Boe Technology Group Co., Ltd Method and system for image transaction, electronic device and storage medium
CN108810117A (en) * 2018-05-30 2018-11-13 京东方科技集团股份有限公司 Access method, device, electronic equipment and the storage medium of image
CN110580242A (en) * 2018-06-07 2019-12-17 深圳艾派网络科技股份有限公司 picture storage and display method and system in network disk application
CN110299967A (en) * 2019-08-02 2019-10-01 中国工商银行股份有限公司 A kind of picture transmission method, device and storage medium
WO2023066036A1 (en) * 2021-10-22 2023-04-27 华为技术有限公司 Cross-device file display method and system, and device
WO2023185966A1 (en) * 2022-03-29 2023-10-05 北京字跳网络技术有限公司 Image loading method and apparatus, electronic device and storage medium
CN114884925A (en) * 2022-04-18 2022-08-09 深圳市绿联科技股份有限公司 Method, device and system for transmitting composite photo data and electronic equipment
CN114884925B (en) * 2022-04-18 2023-04-18 深圳市绿联科技股份有限公司 Method, device and system for transmitting composite photo data and electronic equipment

Also Published As

Publication number Publication date
CN104243923B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN104243923A (en) Image processing and previewing method and system
US20140267439A1 (en) Image Delivery Architecture
CN107040794A (en) Video broadcasting method, server, virtual reality device and panoramic virtual reality play system
CN106453572B (en) Method and system based on Cloud Server synchronous images
GB2533624A (en) Methods, devices, and computer programs for improving coding of media presentation description data
CN107977371A (en) Requesting method, display methods and the client of page elements
WO2011156138A2 (en) Adaptive image rendering and use of imposter
US8864020B2 (en) Mapping an image to an object using a matrix code
US10360727B2 (en) Methods for streaming visible blocks of volumetric video
CN104572966A (en) Zip file unzipping method and device
US7703012B2 (en) Adaptable transfer and publication of digital media
CN107948715A (en) Live network broadcast method and device
CN108696505A (en) Video distribution apparatus, video reception apparatus, method of video distribution and recording medium
US9471950B2 (en) Device and method of inserting watermarks through conversing contents automatically
CA2824868C (en) Variants of files in a file system
KR102024642B1 (en) Live Steaming Server device and operating method thereof
Gao et al. Mobile media communication, processing, and analysis: A review of recent advances
WO2015009750A1 (en) Providing bitmap image format files from media
US10607314B2 (en) Image auto resizing
US8990265B1 (en) Context-aware durability of file variants
WO2024046082A1 (en) Picture processing method, system, electronic device, medium, and program product
US9451275B2 (en) System and method for storing and moving graphical image data sets with reduced data size requirements
US11481423B1 (en) Apparatus and method for delivering augmented reality content associated with a scanned object
JP2022167830A (en) Apparatus, method and computer-readable medium for access
US20230007314A1 (en) System and method of server-side dynamic spatial and temporal adaptations for media processing and streaming

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