1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device with a function of separating panels of digital comic strips and a method thereof.
2. Description of Related Art
Comic strips are popularly viewed on electronic devices such as computers and smart phones. Some readers may like to edit some strips to share portions with others, for example. However, isolating an individual panel in a strip is not possible or at least difficult with most devices.
Therefore, what is needed is an electronic device with a function of separating panels of comic strips to overcome the described limitations.
Referring to
The processing unit 40 includes a comic strip acquiring module 41, a frame identifying module 42, a border identifying module 43, a panel separating module 44, and a sorting module 45.
The comic strip acquiring module 41 is configured for acquiring a comic strip 200 from the storage unit 20 in response to the received user input from the input unit 10, and displaying the acquired comic strip 200 on the display unit 30.
The frame identifying module 42 is configured for identifying the frame of the acquired comic strip. In one embodiment, the frame identifying module 42 identifies the frame 21 of the acquired comic strip via Sobel operator. In other embodiments, the frame identifying module 42 can identify the frame 21 of the acquired comic strip according to other algorithms.
The border identifying module 43 is configured for identifying whether there are first borders around the panels within the identified frame. When there are the first borders around the panels within the identified frame, the border identifying module 43 is further configured for identifying whether there are second borders around the panels within the identified frame and the first borders, and repeating the above steps until there are no more borders within the identified frame to be identified.
The panel separating module 44 is configured for separating the number of panels from the acquired comic strip according to the identified first borders and the second borders.
The sorting module 45 is configured for sorting the number of panels. In one embodiment, the sorting module 45 sorts the number of panels in a hierarchical tree structure according to a predetermined rule. The predetermined rule is when the comic strip is horizontally separated into two panels, the sorting module 45 takes the panel above the border as a left node in the tree structure, and takes the panel below the border as a right node in the tree structure; when the comic strip is perpendicularly separated into two panels, the sorting module 43 takes the panel on the left side of the border as a left node in the tree structure, and takes the panel on the right side of the border as a right node in the tree structure.
As shown in
In other embodiments, the processing unit 40 further includes an implementing module 46. The implementing module 46 is configured for performing some operation/s on the panels being selected, such as, zooming in/out, etc.
In step S601, the comic strip acquiring module 41 acquires a comic strip from the storage unit 20 in response to user input.
In step S602, the frame identifying module 42 identifies the frame of the acquired comic strip.
In step S603, the border identifying module 43 identifies whether there are first borders around the panels within the identified frame.
In step S604, the panel separating module 44 separates the number of panels from the acquired comic strip according to the identified first borders when there are first borders around the panels within the identified frame.
In step S605, the sorting module 45 sorts the number of panels.
In other embodiment, the method further includes the following steps: when there are the first borders around the panels within the identified frame, the border identifying module 43 further identifies whether there are second borders around the panels within the identified frame and the first borders, if yes, the panel separating module 44 separates the number of panels from the acquired comic strip according to the identified second borders, and the sorting module 45 further sorts the number of panels.
In other embodiments, the method further includes the following steps: the implementing module 46 performs some operation/s on the panels being selected (e.g. zoom in, zoom out, cropping).
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110082593.7 | Apr 2011 | CN | national |