Embedded image data coding method and system

文档序号:1939493 发布日期:2021-12-07 浏览:20次 中文

阅读说明:本技术 一种嵌入式图像数据编码方法及系统 (Embedded image data coding method and system ) 是由 梁堃 于 2021-09-06 设计创作,主要内容包括:本发明公开了一种嵌入式图像数据编码方法及系统,具体包括以下步骤:步骤一、样本定义;步骤二、认定推演;步骤三、识别加载;步骤四、分割加码;本发明涉及图像数据编码技术领域。该嵌入式图像数据编码方法及系统,根据客户端和图像编码系统构成一个传输迅速、识别精准的图像数据编码系统,以前景展示辅助背景缓慢展示的方式,保证用户可以迅速得到图像的主要信息,通过对不同用户能够接收的图像保真度进行检测,并将用户信息与系统进行绑定,在保证用户能够接收保真度的范围内进行图像的迅速传输,并且对图像进行命名处理,突出用户所需要得到的图像中的重点,降低背景图片的传输占用,进一步地提高图像的传输速度。(The invention discloses an embedded image data coding method and a system, which specifically comprise the following steps: step one, sample definition; step two, affirming deduction; step three, recognizing and loading; fourthly, segmenting and adding codes; the invention relates to the technical field of image data coding. The embedded image data coding method and the embedded image data coding system form an image data coding system with rapid transmission and accurate identification according to the client and the image coding system, ensure that a user can rapidly obtain main information of an image in a mode of slowly displaying a foreground display auxiliary background, rapidly transmit the image in a range of ensuring that the user can receive the fidelity by detecting the fidelity of the image which can be received by different users and binding the user information with the system, name the image, highlight important points in the image which the user needs to obtain, reduce transmission occupation of background images and further improve the transmission speed of the image.)

1. An embedded image data encoding method, characterized by: the method specifically comprises the following steps:

step one, sample definition: setting picture information corresponding to the picture name information as an abstract as a foreground, dividing the picture by taking the rest of the picture as a background, acquiring the picture loading progress of the background part when a plurality of users switch the picture, performing gradient arrangement, setting different preset levels of picture fidelity, and selecting a plurality of pictures as sample pictures based on the preset level setting;

step two, determining deduction: detecting that a user logs in an image coding system (2) through a client (1), binding user identity data, pushing out sample pictures with specific names to load on a user interface, recording the loading progress in the loading process, setting the progress of the user in picture switching as picture fidelity accepted by the user, after loading a plurality of sample pictures, obtaining the average value of a plurality of fidelity as the real fidelity of pictures required by the user, and after binding user specific data, defining the fidelity as the fidelity after the user adapts to the loaded pictures;

step three, recognition loading: after loading the picture information and the name information corresponding to the picture, identifying the name information and the picture information, searching a part corresponding to the name information in the picture information, setting the part which cannot be found as the part which cannot be identified, returning to a user, proposing to rename the picture, setting the part which is found to correspond to the name as an abstract part, marking the abstract part as a foreground, and marking the rest part as a background;

step four, splitting and adding codes: after the foreground part and the background part are identified, the foreground part picture and the background part picture are segmented in an image segmentation mode, then the information of the foreground part picture and the information of the background part picture are respectively encoded, the information of the foreground part picture is transmitted to a user display interface after being encoded, and the part corresponding to the information of the foreground part picture is displayed on the user display interface after being buffered and loaded.

2. The method of claim 1, wherein: and in the first step, different preset levels of picture fidelity are set, simultaneously, the real-time network speed of the network is monitored, and fluctuation adjustment is carried out on the basis of the preset level range of the fidelity according to the network speed, namely, the fidelity is adjusted upwards when the network speed is high, and the fidelity is adjusted downwards when the network speed is low.

3. The method of claim 1, wherein: and in the third step, an AI intelligent identification mode is adopted in the process of identifying the picture information and the name information corresponding to the picture.

4. An embedded image data encoding system, characterized by: the system comprises a client (1) and an image coding system (2), wherein the client (1) is in butt joint with the image coding system (2) and is used for acquiring user data and displaying coded data, the image coding system (2) specifically comprises a subjective screenshot unit (3), a fidelity detection unit (4), a coding loading unit (5) and a user definition unit (6), the subjective screenshot unit (3) is used for loading pictures and intelligently distinguishing the foreground and the background of the pictures, the fidelity detection unit (4) is used for setting a detection sample and setting a predetermined fidelity level based on the detection sample, the coding loading unit (5) performs coding processing according to picture marks and is used for sending picture information to the client (1), the user definition unit (6) is used for recording, screening, defining and binding user information, and the client (1) and the image coding system (2) are in butt joint through a fault-tolerant processing unit (7) And the method is used for processing the conventional errors.

5. An embedded image data encoding system according to claim 4, wherein: the subjective screenshot unit (3) specifically comprises an image loading module (8), an intelligent identification module (9), an abstract screenshot module (10) and a background loading module (11);

the image loading module (8) is used for loading the picture information and the name information of the picture, transmitting the picture information to the coding loading unit (5) and the user definition unit (6) and transmitting the picture information;

the intelligent identification module (9) is used for identifying the picture information and the picture name information, intelligently finding information of a part corresponding to the picture name in the picture information, and sending the found information to the abstract screenshot module (10) and the background loading module (11) for marking and positioning the picture information;

after receiving the information sent by the intelligent identification module (9), the abstract screenshot module (10) marks the part corresponding to the picture name in the picture for foreground loading;

and after receiving the information sent by the intelligent identification module (9), the background loading module (11) marks the part of the picture which does not correspond to the picture name and is used for background loading.

6. An embedded image data encoding system according to claim 4, wherein: the fidelity detection unit (4) specifically comprises a subjective review set module (12), a fidelity grading reservation module (13), a user binding module (14) and a fidelity adaptability adjustment module (15);

the subjective examination set module (12) is used for acquiring the loading progress of the background part of the pictures when the pictures are switched by a plurality of users, performing gradient arrangement, and sending the arrangement data information to the fidelity grading reservation module (13) to be used as fidelity grade definition reference data;

after the fidelity grading and reserving module (13) receives the data information sent by the subjective review set module (12), defining the fidelity of pictures with different gradients, and selecting representative pictures with different fidelity gradients as sample pictures for testing the requirement of a user on the fidelity;

the user binding module (14) is used for binding the user test information with the fidelity level set in the fidelity rating presetting module (13);

and the fidelity adaptability adjusting module (15) is used for monitoring the network speed and adaptively adjusting the fidelity of the picture on the basis of the preset level of the fidelity of the picture.

7. An embedded image data encoding system according to claim 4, wherein: the code loading unit (5) specifically comprises a name definition identification module (16), an image loading segmentation module (17), a code input module (18) and a buffer loading module (19);

the name definition identification module (16) receives the picture information sent by the subjective screenshot unit (3), and identifies the picture foreground and the picture background according to the picture mark information;

the image loading and segmenting module (17) is used for carrying out cutting processing according to the image foreground and the background identified by the name definition identification module (16);

the encoding input module (18) is used for encoding and loading the foreground and the background of the picture;

the buffer loading module (19) is used for loading the picture background.

8. An embedded image data encoding system according to claim 4, wherein: the user definition unit (6) specifically comprises a browsing switching loading progress recording module (20), an image name auditing and identifying module (21), a format screening module (22) and an authorization and authentication module (23);

the browsing switching loading progress recording module (20) is used for testing the progress of picture background loading when a user browses a sample picture to perform picture switching, and is used for testing the subjective fidelity of the user;

the image name auditing and identifying module (21) is used for identifying whether the image information is consistent with the name information corresponding to the image or not and ensuring the effective loading of the image;

the format screening module (22) is used for screening the picture output format and converting JPEG, PNG and PDF formats;

the authorization and authentication module (23) is used for authorizing the user to the image coding system (2) and used for authenticating and binding the user.

Technical Field

The invention relates to the technical field of image data coding, in particular to an embedded image data coding method and system.

Background

The fidelity criterion specifically includes objective fidelity and subjective fidelity, and for objective fidelity: the lost information quantity can be expressed by a function of the coding input and the coding output, and the method has the advantages of convenient calculation or measurement; the subjective fidelity is to measure the quality of an image by a subjective method, wherein a lossless compressed picture occupies a large space and affects the image transmission speed, a conventional picture transmission usually adopts a lossy compression mode to transmit the image in order to ensure the speed, and the image is finally provided for people to see based on a decompressed picture, and the acceptance degree of each person is different, so that the conventional lossy compression adopts a uniform specification compression mode to prevent partial users from receiving the image, and in order to ensure the general acceptance of the users, the fidelity of the image needs to be improved as much as possible, thus the transmission speed of the image is affected undoubtedly.

Disclosure of Invention

Technical problem to be solved

In view of the deficiencies of the prior art, the present invention provides a method and a system for encoding embedded image data, which solves the above problems.

(II) technical scheme

In order to achieve the purpose, the invention provides the following technical scheme: an embedded image data coding method specifically comprises the following steps:

step one, sample definition: setting picture information corresponding to the picture name information as an abstract as a foreground, dividing the picture by taking the rest of the picture as a background, acquiring the picture loading progress of the background part when a plurality of users switch the picture, performing gradient arrangement, setting different preset levels of picture fidelity, and selecting a plurality of pictures as sample pictures based on the preset level setting;

step two, determining deduction: detecting that a user logs in an image coding system through a client, binding user identity data, pushing out sample pictures with specific names to be loaded on a user interface, recording the loading progress in the loading process, setting the progress of the user in picture switching as picture fidelity accepted by the user, after a plurality of sample pictures are loaded, obtaining a plurality of fidelity average values as the real fidelity of pictures required by the user, and after binding user specific data, defining the fidelity as the fidelity after the user adapts to the loaded pictures;

step three, recognition loading: after loading the picture information and the name information corresponding to the picture, identifying the name information and the picture information, searching a part corresponding to the name information in the picture information, setting the part which cannot be found as the part which cannot be identified, returning to a user, proposing to rename the picture, setting the part which is found to correspond to the name as an abstract part, marking the abstract part as a foreground, and marking the rest part as a background;

step four, splitting and adding codes: after the foreground part and the background part are identified, the foreground part picture and the background part picture are segmented in an image segmentation mode, then the information of the foreground part picture and the information of the background part picture are respectively encoded, the information of the foreground part picture is transmitted to a user display interface after being encoded, and the part corresponding to the information of the foreground part picture is displayed on the user display interface after being buffered and loaded.

By adopting the technical scheme, the fidelity of the images which can be received by different users is detected, the user information is bound with the system, the images are rapidly transmitted within the range that the users can receive the fidelity, the images are named, the key points in the images required by the users are highlighted, the transmission occupation of background images is reduced, and the transmission speed of the images is further improved.

The invention is further configured to: and in the first step, different preset levels of picture fidelity are set, simultaneously, the real-time network speed of the network is monitored, and fluctuation adjustment is carried out on the basis of the preset level range of the fidelity according to the network speed, namely, the fidelity is adjusted upwards when the network speed is high, and the fidelity is adjusted downwards when the network speed is low.

By adopting the technical scheme, the image transmission speed and the network speed are associated in real time, so that the image transmission has flexible adaptability.

The invention is further configured to: and in the third step, an AI intelligent identification mode is adopted in the process of identifying the picture information and the name information corresponding to the picture.

The invention also discloses an embedded image data coding system, which comprises a client and an image coding system, wherein the client is butted with the image coding system and is used for realizing the acquisition of user data and the display of coded data, the image coding system specifically comprises a subjective screenshot unit, a fidelity detection unit, a coding loading unit and a user definition unit, wherein the subjective screenshot unit is used for loading pictures and intelligently distinguishing the foreground and the background of the pictures, the fidelity detection unit is used for setting a detection sample and setting a preset fidelity level based on the detection sample, the coding loading unit carries out coding processing according to picture marks and is used for sending picture information to the client, the user definition unit is used for recording, screening, defining and binding user information, and the client is butted with the image coding system through a fault-tolerant processing unit, for the handling of routine errors.

By adopting the technical scheme, the image data coding system with rapid transmission and accurate identification is formed according to the client and the image coding system, so that a user can be ensured to obtain the main information of the image rapidly.

The invention is further configured to: the subjective screenshot unit specifically comprises an image loading module, an intelligent identification module, an abstract screenshot module and a background loading module;

the image loading module is used for loading the picture information and the name information of the picture, transmitting the picture information to the coding loading unit and the user definition unit and transmitting the picture information;

the intelligent identification module is used for identifying the picture information and the picture name information, intelligently finding information of a part corresponding to the picture name in the picture information, and sending the found information to the abstract screenshot module and the background loading module for marking and positioning the picture information;

after receiving the information sent by the intelligent identification module, the abstract screenshot module marks the part corresponding to the picture name in the picture for foreground loading;

and after receiving the information sent by the intelligent identification module, the background loading module marks the part of the picture, which does not correspond to the picture name, and is used for background loading.

By adopting the technical scheme, the loading of the image foreground and the background is realized, and the mark is provided for the subsequent image processing.

The invention is further configured to: the fidelity detection unit specifically comprises a subjective review set module, a fidelity grading reservation module, a user binding module and a fidelity adaptability adjustment module;

the subjective examination set module is used for acquiring the loading progress of the background part of pictures when a plurality of users switch the pictures, performing gradient arrangement and then sending the arrangement data information to the fidelity grading reservation module to be used as fidelity grade definition reference data;

after the fidelity grading and reserving module receives the data information sent by the subjective review set module, defining the fidelity of pictures with different gradients, and selecting representative pictures with different fidelity gradients as sample pictures for testing the requirement of a user on the fidelity;

the user binding module is used for binding the user test information with the fidelity level set in the fidelity rating presetting module;

and the fidelity adaptability adjusting module is used for monitoring the network speed and adaptively adjusting the fidelity of the picture on the basis of the preset level of the fidelity of the picture.

By adopting the technical scheme, the grading of the user about the image fidelity approval is realized, the image data transmission is carried out on the basis of the approval of the user, the real-time adjustment can be carried out according to the network speed, and the use of the user can be better fitted.

The invention is further configured to: the code loading unit specifically comprises a name definition identification module, an image loading segmentation module, a code input module and a buffer loading module;

the name definition identification module receives the picture information sent by the subjective screenshot unit and identifies the foreground and the background of the picture according to the picture marking information;

the image loading and dividing module is used for carrying out cutting processing according to the image foreground and the background identified by the name definition identification module;

the encoding input module is used for encoding and loading the foreground and the background of the picture;

the buffer loading module is used for loading the picture background.

By adopting the technical scheme, the foreground and the background of the image are coded and transmitted to the user interface for image display.

The invention is further configured to: the user definition unit specifically comprises a browsing switching loading progress recording module, an image name auditing and identifying module, a format screening module and an authorization authentication module;

the browsing switching loading progress recording module is used for testing the progress of picture background loading when a user browses a sample picture to perform picture switching and testing the subjective fidelity of the user;

the image name auditing and identifying module is used for identifying whether the image information is consistent with the name information corresponding to the image or not and ensuring the effective loading of the image;

the format screening module is used for screening an image output format and converting JPEG, PNG and PDF formats;

the authorization and authentication module is used for authorizing the user to the image coding system and for authenticating and binding the user.

By adopting the technical scheme, the requirements of the user on the image fidelity are collected, and reference materials are provided for the system to judge the fidelity requirements of the user.

(III) advantageous effects

The invention provides an embedded image data coding method and system. The method has the following beneficial effects:

(1) the embedded image data coding method and the embedded image data coding system form an image data coding system with rapid transmission and accurate identification according to the client and the image coding system, ensure that a user can rapidly obtain main information of an image, rapidly transmit the image within the range of ensuring that the user can receive the fidelity by detecting the fidelity of the image which can be received by different users and binding the user information with the system, name the image, highlight important points in the image which the user needs to obtain, reduce the transmission occupation of a background image and further improve the transmission speed of the image.

(2) According to the embedded image data encoding method and system, after the fidelity requirements of users are graded, the transmission network speed of the image data is monitored in real time, and the fidelity is adjusted in real time according to the transmission network speed, so that the image transmission has flexible adaptability, and the influence of the network speed on the image data transmission is further effectively reduced.

Drawings

FIG. 1 is a schematic block diagram of the system of the present invention;

FIG. 2 is a system schematic block diagram of a subjective screenshot unit of the present invention;

FIG. 3 is a system schematic block diagram of a fidelity detection unit of the present invention;

FIG. 4 is a system schematic block diagram of an encoding load unit of the present invention;

FIG. 5 is a system schematic block diagram of a user-defined element of the present invention.

In the figure, 1, client; 2. an image encoding system; 3. a subjective screenshot unit; 4. a fidelity detection unit; 5. a code loading unit; 6. a user definition unit; 7. a fault tolerant processing unit; 8. an image loading module; 9. an intelligent identification module; 10. a summary screenshot module; 11. a background loading module; 12. a subjective review gathering module; 13. a fidelity grading and reserving module; 14. a user binding module; 15. a fidelity adaptability adjustment module; 16. a name definition identification module; 17. an image loading and segmenting module; 18. a code input module; 19. a buffer loading module; 20. a browsing switching loading progress recording module; 21. an image name auditing and identifying module; 22. a format screening module; 23. and an authorization and authentication module.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1-5, an embodiment of the present invention provides a technical solution: an embedded image data coding method specifically comprises the following steps:

step one, sample definition: setting picture information corresponding to picture name information as a foreground, dividing the picture by taking the rest as a background, collecting the picture loading progress of the background part when a plurality of users switch the pictures, performing gradient arrangement, as a further explanation, the picture loading progress is the progress of loading based on the original resolution of the picture, such as an image with the resolution of 72ppi, when the image is loaded to 36ppi, the loading progress is 50 percent, and setting the image to different preset levels of picture fidelity, wherein on the basis of the preset levels, the network real-time network speed is monitored, fluctuation adjustment is performed on the basis of the preset level range of the fidelity according to the speed of the network speed, namely, when the network speed is high, the fidelity is increased, when the network speed is low, the fidelity is decreased, as a further explanation, on the setting of the fidelity acceptance level of the user is determined, the fidelity receives pictures at normal network speed, the time is fixed, if pictures reaching the fidelity level are received at 1s, the transmission speed is higher under the condition that the network speed is higher than the normal network speed, and pictures for higher fidelity are provided, so that a good watching experience is provided for a user, a plurality of pictures are selected as sample pictures based on the setting of the preset level, and the selected pictures are pictures watched by the user when different preset levels of fidelity are set;

step two, determining deduction: detecting that a user logs in an image coding system 2 through a client 1, binding user identity data, pushing out sample pictures with specific names to load on a user interface, recording the loading progress in the loading process, setting the progress of the user in picture switching as picture fidelity accepted by the user, after loading of a plurality of sample pictures is finished, obtaining the average value of a plurality of fidelity values as the real fidelity of pictures required by the user, and after binding user specific data, defining the fidelity as the fidelity after the user adapts to the loaded pictures;

step three, recognition loading: after the picture information and the name information corresponding to the picture are loaded, the name information and the picture information are identified in an AI intelligent identification mode, the part corresponding to the name information is found from the picture information, the part which cannot be found is set as the unrecognizable part, the picture is returned to a user and renamed, the found part corresponding to the name is set as an abstract part and is marked as a foreground, the rest part is marked as a background and is used as a further explanation and is used as a picture of a flower, when the picture is named, the picture is named as information irrelevant to the flower such as a cup or a table, and the user needs to be returned for renaming;

step four, splitting and adding codes: after the foreground part and the background part are identified, the foreground part picture and the background part picture are segmented in an image segmentation mode, then the information of the foreground part picture and the information of the background part picture are respectively encoded, the information of the foreground part picture is transmitted to a user display interface after being encoded, and the part corresponding to the information of the foreground part picture is displayed on the user display interface after being buffered and loaded.

The embedded image data coding system comprises a client 1 and an image coding system 2, wherein the client 1 is in butt joint with the image coding system 2 and is used for realizing the acquisition of user data and the display of coded data, the image coding system 2 specifically comprises a subjective screenshot unit 3, a fidelity detection unit 4, a coding loading unit 5 and a user definition unit 6, wherein the subjective screenshot unit 3 is used for loading a picture and intelligently distinguishing the foreground and the background of the picture, and specifically, as shown in the attached drawing 2, the subjective screenshot unit 3 further comprises an image loading module 8, an intelligent identification module 9, an abstract screenshot module 10 and a background loading module 11;

the image loading module 8 is used for loading the picture information and the name information of the picture, and transmitting the picture information to the code loading unit 5 and the user definition unit 6 for picture information transmission;

the intelligent identification module 9 is used for identifying the picture information and the picture name information, intelligently finding information of a part corresponding to the picture name in the picture information, and sending the found information to the abstract screenshot module 10 and the background loading module 11 for marking and positioning the picture information;

after receiving the information sent by the intelligent identification module 9, the abstract screenshot module 10 marks the part of the picture corresponding to the picture name for foreground loading;

after receiving the information sent by the intelligent identification module 9, the background loading module 11 marks a part of the picture that does not correspond to the picture name, and is used for background loading.

The fidelity detection unit 4 is configured to set a detection sample, and set a predetermined level of fidelity based on the detection sample, specifically, as shown in fig. 3, the fidelity detection unit 4 further includes a subjective review set module 12, a predetermined level of fidelity 13, a user binding module 14, and a fidelity adaptability adjustment module 15;

the subjective review set module 12 is used for acquiring the loading progress of the background part of the pictures when the pictures are switched by a plurality of users, performing gradient arrangement, and sending the arrangement data information to the fidelity rating presetting module 13 to be used as fidelity rating definition reference data;

after receiving the data information sent by the subjective review set module 12, the fidelity grading reservation module 13 defines the fidelity of pictures with different gradients, and selects representative pictures with different fidelity gradients as sample pictures for testing the requirements of users on the fidelity;

the user binding module 14 is used for binding the user test information with the fidelity level set in the fidelity rating presetting module 13;

the fidelity adaptability adjusting module 15 is used for monitoring the network speed and adaptively adjusting the fidelity of the picture on the basis of the preset level of the fidelity of the picture.

The code loading unit 5 performs coding processing according to the picture marks, and is configured to send picture information to the client 1, specifically, as shown in fig. 4, the code loading unit 5 further includes a name definition identification module 16, an image loading and dividing module 17, a code input module 18, and a buffer loading module 19;

the name definition identification module 16 receives the picture information sent by the subjective screenshot unit 3, and identifies the foreground and the background of the picture according to the picture mark information;

the image loading and dividing module 17 is used for performing cutting processing according to the image foreground and background identified by the name definition identification module 16;

the encoding input module 18 is used for encoding and loading the foreground and the background of the picture;

the buffer loading module 19 is used for loading the picture background.

The user defining unit 6 is configured to record, filter, define, and bind user information, and specifically, as shown in fig. 5, the user defining unit 6 specifically includes a browsing switching loading progress recording module 20, an image name auditing and identifying module 21, a format filtering module 22, and an authorization and authentication module 23;

the browsing switching loading progress recording module 20 is used for testing the progress of picture background loading when a user browses a sample picture to perform picture switching, and is used for testing the subjective fidelity of the user;

the image name auditing and identifying module 21 is used for identifying whether the image information is consistent with the name information corresponding to the image or not, and is used for ensuring the effective loading of the image;

the format screening module 22 is used for screening the picture output format and converting JPEG, PNG and PDF formats;

the authorization and authentication module 23 is used for authorizing the user to the image coding system 2 and for authenticating the user.

The client 1 and the image coding system 2 are interfaced through the fault-tolerant processing unit 7, and are used for processing a regular error, which specifically includes a connection mode error, a transmission mode error, and a transmission data error.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种距离测量方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!