System and method for eliminating residual shadow of ink screen
Technical Field
The invention relates to an electronic ink screen technology, in particular to a system and a method for eliminating residual shadows of an ink screen.
Background
The EINK screen, namely the electronic ink screen, is a new method and technology for innovating information display, and can enable the screen to display the common effect of paper. Such as amazon's KINDLE e-book, sony's DPT-SI e-book, hua's P8 cell phone back case, etc.
The ghost shadow has been a technical difficulty which is difficult to overcome by the electronic ink-water screen. Multiple screen swipes often result in a poor reading experience due to the presence of previously displayed image contours on the electronic ink screen. Because the gray scale corresponding to the voltage driven by the circuit will be inaccurate, the display content of a single point of the electronic ink screen will be interfered by adjacent points, so that only two frames of images are refreshed, and the different parts between the two frames of images can not be realized without influencing the parts which do not need to be transformed, so that the black ink has different black degree, and the white ink has no white completely, which is called 'ghost shadow'.
However, due to the limitation of the display principle, the refresh rate is far from the common LCD, and displaying static text is barely acceptable, but displaying dynamic video or animation, and the delay and afterimage generated in the refresh process cannot be viewed.
Disclosure of Invention
The invention aims to solve the problem of afterimage when a video or a dynamic picture is played on an ink-wash screen by adding an image edge detection module and an image fusion processing module.
To achieve the purpose, the following scheme is provided:
a system for eliminating residual shadow of ink screen is characterized by comprising
The video decoder decodes the YUV key frame image from the video file;
the image edge detection module is used for carrying out edge detection on the video key frame image and calibrating the edge detection;
the image fusion processing module is used for softening the calibrated key frame image edge and fusing the image edge with strong contrast with the background;
the image rendering module is used for displaying the video or the image on the ink screen;
the video decoder decodes the video file into a key frame image, transmits the key frame image to the image edge detection module for edge detection and calibration, transmits the calibrated key frame image to the image fusion processing module for image edge softening and background fusion, and finally transmits the image to the image rendering module for rendering and displaying.
Preferably, the image fusion processing module performs blurring and fusion after performing difference processing on pixels on the edge of the image and background pixels.
Preferably, the key frame image is an I frame image, and is an original frame image formed after video decoding.
Preferably, the edge detection and calibration of the key frame image is to detect and calibrate the edge of a main person or object in the key frame image.
The method for eliminating the residual shadow of the ink-water screen is characterized in that the method is realized by the system for eliminating the residual shadow of the ink-water screen, and comprises the following steps:
s1: opening a video file through a video player;
s2: the video decoder decodes the video file;
s3: decoding the key frame image within 2 seconds;
s4: respectively carrying out edge detection on the key frame images within 2 seconds through an image edge detection module, and calibrating;
s5: performing edge softening and background fusion on the calibrated key frame image through an image fusion processing module;
s6: regenerating the key frame images within 2 seconds after the processing into sequence images;
s7: sending the regenerated sequence image to an image rendering module for animation drawing to finish a video playing process of 2 seconds once;
s8: judging whether the video file is played completely;
s9: if so, ending the whole video playing process;
s10: if not, returning to step S3 to start the next 2-second playing flow until the playing is finished;
the invention has the beneficial effects that: after a dynamic video or an image is decoded, before the image is rendered and displayed, an image edge detection module and an image fusion processing module are added to detect and calibrate the edge of the decoded image, and then the edge and the background are fused, so that the edge softening is carried out on the background and the object with strong contrast, and therefore, when the display of a plurality of frames of dynamic images is switched on an ink screen, the serious afterimage phenomenon caused by strong contrast can not be generated, and the effect of improving the sensory experience of human eyes can be achieved.
Drawings
FIG. 1 is a schematic diagram of a system for eliminating residual shadow of an ink-wash screen;
FIG. 2 is a flow chart of a method for eliminating the ghost shadow of the ink-wash screen.
Detailed Description
Fig. 1 is a schematic diagram of a system for eliminating the residual shadow of the ink-water screen, which includes: a video decoder 200 for decoding YUV key frame image 201 from video file 100, an image edge detection module 300 for edge detection of video key frame image 201 and calibration, an image fusion processing module 301 for softening the calibrated edge of key frame image 201 and performing fusion processing of image edge with strong contrast and background, an image rendering module 302 for displaying video or image on ink screen 400,
the video decoder 200 decodes the video file 100 into a key frame image 201, transmits the key frame image 201 to the image edge detection module 300 for edge detection and calibration, transmits the calibrated key frame image 201 to the image fusion processing module 301 for image edge softening and background fusion, and finally transmits the image to the image rendering module 302 for rendering and displaying.
The image fusion processing module 301 performs difference processing on pixels on the edge of the image and background pixels, and then performs blurring and fusion.
Here, the key frame image 201 is an I frame image, and is an original frame image formed after video decoding.
The edge detection and calibration of the key frame image are to detect and calibrate the edge of a main person or object in the key frame image.
Fig. 2 is a flowchart of a method for eliminating the residual shadow of the ink-and-water screen, which is implemented according to the system for eliminating the residual shadow of the ink-and-water screen shown in fig. 1, and includes the following steps:
s1: opening a video file through a video player;
s2: the video decoder decodes the video file;
s3: decoding the key frame image within 2 seconds;
s4: respectively carrying out edge detection on the key frame images within 2 seconds through an image edge detection module, and calibrating;
s5: performing edge softening and background fusion on the calibrated key frame image through an image fusion processing module;
s6: regenerating the key frame images within 2 seconds after the processing into sequence images;
s7: sending the regenerated sequence image to an image rendering module for animation drawing to finish a video playing process of 2 seconds once;
s8: judging whether the video file is played completely;
s9: if so, ending the whole video playing process;
s10: if not, returning to step S3 to start the next 2-second playing flow until the playing is finished;
in step S3, the key frame images decoded within 2 seconds, for example, the key frame images decoded within 2 seconds are 10 images, in step S4, edge detection and scaling are performed on the 10 images, in step S5, edge softening and background fusion are performed on the 10 scaled key frame images, and in step S6, a 2-second sequence image is generated from the 10 key frame images again.