WO2013172207A1 - Digital comics data compression device, method, and program - Google Patents

Digital comics data compression device, method, and program Download PDF

Info

Publication number
WO2013172207A1
WO2013172207A1 PCT/JP2013/062750 JP2013062750W WO2013172207A1 WO 2013172207 A1 WO2013172207 A1 WO 2013172207A1 JP 2013062750 W JP2013062750 W JP 2013062750W WO 2013172207 A1 WO2013172207 A1 WO 2013172207A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
compression
page
electronic comic
page image
Prior art date
Application number
PCT/JP2013/062750
Other languages
French (fr)
Japanese (ja)
Inventor
敏貢 福島
Original Assignee
富士フイルム株式会社
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 富士フイルム株式会社 filed Critical 富士フイルム株式会社
Priority to JP2014515571A priority Critical patent/JP5977342B2/en
Publication of WO2013172207A1 publication Critical patent/WO2013172207A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/15Data rate or code amount at the encoder output by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer

Definitions

  • the present invention relates to an electronic comic data compression apparatus, method, and program for performing data compression of electronic comic data.
  • each page image included in the huge electronic comic data is appropriately sized so that the comics can be viewed comfortably even in a small display area of the mobile terminal.
  • the image size vertical and horizontal size
  • the image size is adjusted to an appropriate total data size (file capacity).
  • Patent Document 1 the image file size is reduced by a predetermined ratio, and when the image format is changed, the image file is repeatedly changed until the data size of the image file reaches a target value.
  • a configuration is disclosed.
  • Patent Document 2 discloses a configuration for calculating the compression rate from the image width, height, file size, and the like written in the header in the case of lossy compression.
  • Patent Document 3 discloses a configuration in which an image of data having a small image size is prevented from being deteriorated as much as possible by compressing only a file having a predetermined image size or larger.
  • Patent Document 4 discloses a configuration in which an actual page image is taken in for each page and is compressed and encoded.
  • Patent Document 5 discloses obtaining the number of frames.
  • Patent Documents 1 to 4 disclose image file data compression technology, but when compressing an electronic comic image in units of pages, it is efficient without impairing the appearance of the compressed electronic comic image. There is no disclosure about how to compress well.
  • Patent Document 5 only describes that the number of frames is acquired, and there is no disclosure or suggestion about data compression based on the number of frames.
  • the present invention has been made in view of such circumstances, and when performing data compression of electronic comic data, an electronic comic data compression apparatus, method, and method that can generate electronic comic data with better image quality even at a high compression rate.
  • the purpose is to provide a program.
  • the present invention provides data acquisition means for acquiring electronic comic data including page images of a plurality of pages of comics, the number of frames for each page of page images of a plurality of pages of electronic comic data, and balloons.
  • Information acquisition means for acquiring at least one of the areas of the data, data compression means for compressing the page image of the electronic comic data in units of pages, and data for calculating the total data size of the electronic comic data compressed by the data compression means
  • the total data size calculated by the size calculating means and the data size calculating means is larger than the target value, at least one of the number of frames per page and the blowing area among the page images of the plurality of pages of the electronic comic data.
  • the page image selected on the basis of the compression ratio is increased and recompressed by the data compression means.
  • a compression control unit that provides an electronic comic data compression apparatus having a.
  • the “target value” of the total data size is a specified data value.
  • a designation input from the user may be accepted by the operation means, or a designation input may be accepted by means other than the operation means.
  • the designation input of “target value” may be accepted via a network, or the designation input may be accepted by extracting “target value” added to the electronic comic data from the electronic comic data.
  • the designation input of “target value” may be received in other modes.
  • the compression rate of the page image selected based on at least one of the number of frames per page and the blowing area is set. Since the compression is further increased, electronic comic data with better image quality can be generated even at a high compression rate.
  • the compression control unit increases the compression rate of the page image as the number of frames decreases, and the data compression unit Perform compression.
  • the compression control unit when the total data size calculated by the data size calculation unit is smaller than the target value, the compression control unit lowers the page image compression rate as the number of frames increases, and the data compression unit Perform compression.
  • the compression control unit increases the compression rate of the page image as the area of the balloon is smaller, and the data compression unit Perform compression.
  • the compression control unit when the total data size calculated by the data size calculating unit is smaller than the target value, the compression control unit lowers the page image compression rate as the area of the balloon increases, and the data compression unit re-executes the compression. Perform compression.
  • resizing means for changing the vertical and horizontal sizes of each of the page images of the plurality of pages of the electronic comic data to a specified vertical and horizontal size
  • the compression control means has a plurality of pages whose vertical and horizontal sizes have been changed by the resizing means. Compress the image.
  • the present invention provides at least one of data acquisition means for acquiring electronic comic data including page images of a plurality of pages of comics, and the number of frames for each page of the page images of the plurality of pages of electronic comic data and the area of the balloon.
  • Calculating the total data size of the electronic comic data after being compressed by the data compression means using the information acquisition means for acquiring the data and the data compression means capable of compressing the page image of the electronic comic data in units of pages, and calculating When the total data size is larger than the target value, the compression ratio of the page image selected based on at least one of the number of frames per page and the blowing area among the plurality of page images of the electronic comic data is increased.
  • compressing the data by the data compression means, and an electronic comic data compression method comprising: Subjected to.
  • the present invention provides a data acquisition unit in which the information processing apparatus acquires electronic comic data including page images of a plurality of pages of comics, and the number of frames and the number of balloons for each page of the page images of the plurality of pages of electronic comic data.
  • the total data size of the electronic comic data compressed by the data compression means is calculated using an information acquisition means for acquiring at least one of the areas and a data compression means capable of compressing the page image of the electronic comic data in units of pages. And when the calculated total data size is larger than the target value, the page image selected based on at least one of the number of frames per page and the blowout area among the plurality of page images of the electronic comic data And increasing the compression rate of the data compression means to compress the data compression means. To provide the ram.
  • the above program can be provided by being recorded on various recording media.
  • FIG. 1 is an overall configuration diagram illustrating an example of an electronic comic data distribution system.
  • the scanner 1 reads a comic (manga) manuscript on paper to generate an image file including an image for each page of the comic (hereinafter referred to as “page image”).
  • page image an image file including an image for each page of the comic
  • FIG. 1 shows an example in which an image file is acquired by reading a comic book on a paper surface as a scanned original by the scanner 1, the present invention is not limited to this case.
  • An image file may be acquired by inputting an electronically generated comic document (digital document) via a network or a recording medium.
  • the electronic comic editing device 2 is a device that edits electronic comic data including an image file input by the scanner 1 or the like to generate master electronic comic data (hereinafter referred to as “master data”).
  • master data master electronic comic data
  • the electronic comic editing device 2 is configured by a computer device, for example.
  • the server device 3 converts the master data of the electronic comic data edited by the electronic comic editing device 2 into electronic comic data of a format corresponding to each of the viewer devices 4 (4a to 4d) as necessary, and the electronic data The comic data is transmitted to the viewer device 4 via the network in response to a distribution request from the viewer device 4.
  • the server device 3 is configured by a computer device, for example.
  • the viewer device 4 receives the electronic comic data transmitted from the server device 3 and displays a page image (or frame image).
  • the viewer device 4 is various mobile terminals such as a mobile phone, a smartphone, and a tablet terminal, or various terminal devices (computer devices) such as a personal computer.
  • the display screen size of the viewer device 4 varies depending on the model.
  • the display screen size of the viewer device 4 is smaller than the entire display size of the page image for each page of the electronic comic data, the display corresponding to the display screen size of the viewer device 4 in the page image for each page. Display while moving the range sequentially.
  • Such sequential display on the display screen of the viewer device 4 while moving the display range corresponding to the display screen size in the page image is sometimes referred to as “sequential playback” or “screen feed playback”.
  • the “electronic comic data” transmitted from the server device 3 to the viewer device 4 is composed of an image file including a page image and an information file (accompanying information).
  • the page image is composed of an image for each page of a high-resolution image (for example, 3000 ⁇ 5000 pixels or 1500 ⁇ 2000 pixels).
  • the information file is information corresponding to all pages (or each page) of the comic. For example, it is described in a markup language such as an XML file.
  • Fig. 2 shows an example of an information file.
  • the information file of this example includes page information that is information about the page, frame information that is information about the frame, balloon information that is information about balloons, text area information that is information about text areas, and region of interest information that is information about areas of interest. , Association information indicating the association between these pieces of information, and the like.
  • Page information includes information about the page, page name, and page ID.
  • the information about the page is information including whether the content image is one page or two spread pages, and information including the size of the original content.
  • the page information in this example includes information about the electronic comic (title ID, title name, author, publisher (copyright owner), year of publication, language, etc.).
  • the page information may include a specified vertical and horizontal size (image size) of the page image related to the image resizing of the page image.
  • the page information may include a designated total data size (target value of the total data size) related to page image data compression.
  • Frame information includes frame area information.
  • the frame area information is information indicating the area (frame area) of each frame in the page image.
  • the frame area information in this example includes the coordinates of the vertices of each frame and the shape of each frame.
  • the frame area information may be vector data indicating a frame boundary or mask data indicating a frame area.
  • the frame information includes frame order information indicating the playback order of the frames in the page image.
  • the playback order of frames is, for example, information on right / left-open pages, information on contents indicating the language used, frame division detected from frame area information, etc., from upper right to lower left, upper left to lower right,
  • An appropriate pattern is selected from several frame order transition patterns such as the moving direction (left-right direction or up-down direction), and is automatically determined according to the selected transition pattern.
  • the frame information in this example includes the number of frames per page (the number of frames in one page).
  • the balloon information includes balloon area information.
  • the blowout area information include vector data indicating the outer periphery of the blowout area and mask data (bitmap information) indicating the blowout area.
  • the balloon area information is information indicating a balloon area within a page image (or within a frame).
  • the blowout area information may include the shape of the blowout, the position and orientation of the blowout start point (pitch of the blowout), and the size of the blowout. Moreover, you may represent blowing area
  • the balloon information may further include text information included in the balloon, balloon drawing line attributes (dotted line, solid line, etc.), balloon identification information, and frames to which the balloon belongs.
  • the balloon information of this example includes a balloon area per page (total area of balloons within one page).
  • the text information includes text area information and information related to the text content.
  • text area information for example, coordinate data of a plurality of points corresponding to the text area on the drawn line (coordinate data indicating each vertex of the outer periphery of the polygon), vector data indicating the outer periphery of the text area, text area (range) )
  • Mask data for example, bitmap information.
  • the information on the contents of the text includes text (text) character attribute information specified by OCR, the number of lines, line spacing, character spacing, display switching method, language used, vertical writing / horizontal writing, reading direction distinction, and the like.
  • the character attribute information includes a character size (number of points, etc.) and a character type (font, emphasized character, etc.).
  • the text information includes the speech of the speaker in the callout.
  • translated texts in various languages corresponding to the lines of the original text arranged in the balloon and the language used may be included in this text information.
  • the region-of-interest information includes coordinate data indicating each vertex (each vertex of the outer periphery of the polygon) of the region of interest (hereinafter also referred to as “ROI”), vector data indicating the outer periphery of the ROI, and mask data indicating the ROI (for example, Bit map data).
  • the region-of-interest information may include data indicating the shape of the ROI. Further, the region-of-interest information may further include information on a character included in the ROI (for example, a character ID automatically assigned).
  • the region-of-interest information may include priority, importance in display, character identification information (such as name), and character attributes (such as gender and age).
  • the region-of-interest information in this example indicates a region where a character appearing in a comic is drawn.
  • the association information is information indicating association between area information in the page image. In other words, the association between different types of areas is shown.
  • the association information includes associating text region information and region-of-interest information, association between balloon region information and region-of-interest information, association between text region information and balloon region information, association between text region information and frame information, balloon region Examples include association between information and frame information, association between region-of-interest information and frame information, and the like.
  • image resizing (“vertical / horizontal size”) performed mainly when converting the electronic comic data (master data) of the master into electronic comic data (distributed data) of a format corresponding to each of the viewer devices 4 (4a to 4d).
  • change converting the electronic comic data
  • encoding data compression
  • ⁇ Electronic comic data compression device In the electronic comic data distribution system of FIG. 1, data compression of electronic comic data is performed by the server device 3, but may be performed by the electronic comic editing device 2.
  • the electronic comic data compression apparatus according to the present invention will be specifically described as being applied to the server apparatus 3 or the electronic comic editing apparatus 2.
  • FIG. 3 is a block diagram showing an internal configuration example of the electronic comic data compression apparatus 10.
  • the electronic comic data compression apparatus 10 of this example includes a data acquisition means 12, a storage means 14, a display means 16, an operation means 18, and a CPU (central processing unit) 20.
  • the data acquisition unit 12 acquires electronic comic data including page images of a plurality of comic pages.
  • the data acquisition unit 12 is configured by a network interface that acquires electronic comic data via a network, for example.
  • the present invention is not limited to the case where electronic comic data is acquired via a network.
  • the electronic comic data may be acquired from the storage unit 14 described later or may be acquired from a removable recording medium.
  • the storage means 14 is constituted by a disk, a memory, or the like.
  • the memory includes RAM, ROM, and flash memory (nonvolatile memory).
  • the display means 16 is composed of various display devices such as a liquid crystal display device.
  • the operation means 18 is constituted by various operation devices such as a touch sensor (also referred to as “touch panel”).
  • the CPU 20 includes resizing means 120, data compression means 122, data size calculation means 124, data size determination means 126, compression order determination means 128 (information acquisition means), and compression control means 130.
  • the resizing means 120 changes the image size (vertical / horizontal size) of each page image of the electronic comic data to a specified image size (vertical / horizontal size).
  • the data compression means 122 compresses (encodes) page images of a plurality of pages of electronic comic data in units of pages.
  • the data size calculation means 124 calculates the total data size (file capacity) of the electronic comic data.
  • the data size determination unit 126 compares the total data size calculated by the data size calculation unit 124 with the total data size designated in advance (target value of the total data size).
  • the compression order determination unit 128 (information acquisition unit) acquires at least one of the number of frames for each page of the page image of the plurality of pages of the electronic comic data and the area of the balloon, and the number of frames and the balloon for each acquired page. Based on at least one of these areas, it is determined which page image of a plurality of page images is to be preferentially compressed (compression order).
  • the compression control unit 130 converts the page images of the plurality of pages of the electronic comic data into page units so that the total data size of the plurality of page images calculated by the data size calculation unit 124 is equal to or less than a target value (specified total data size).
  • the data compression means 122 compresses the data.
  • the compression control unit 130 of this example increases the compression rate for pages with a higher compression order determined by the compression order determination unit 128. Compress the page image.
  • Data compression processing (electronic comic data compression method) of the first embodiment will be described with reference to FIGS. This process is executed by the CPU 20 of the electronic comic data compression apparatus 10 according to a program.
  • the original electronic comic data (image resize and data compression are unprocessed electronic comic data) is acquired by the data acquisition means 12 (step S2).
  • the original electronic comic data 8 shown as an example in FIG. 5 includes page images P1, P2, and P3 for each page.
  • frame information (including the number of frames per page) regarding the frames in the page images P1, P2, and P3 of the acquired electronic comic data 8 by the compression order determination unit 128 (information acquisition unit) is converted into an electronic comic. Obtained by extracting from the information file of data 8 (step S4).
  • the page image P1 of the first page has one frame
  • the page image P2 of the second page has five frames
  • the page image P3 of the third page has six frames.
  • conversion specification a conversion condition (hereinafter also referred to as “conversion specification”) of electronic comic data corresponding to the viewer device 4 (client terminal) assumed to be distributed is acquired (step S6).
  • conversion conditions conversion specifications
  • ⁇ Image size of page image Horizontal size: 960 pixels
  • Vertical size 1600 pixels
  • Compression format JPEG -Total data size of electronic comic data (total file capacity) ... 750 Kbytes
  • the designation is input by the operation unit 18 and the storage unit 14 stores the designation. If the conversion condition is specified in the information file of the electronic comic data, the conversion condition may be extracted from the electronic comic data.
  • the number of frames of the electronic comic data 8 is determined for each page of the page images P1, P2, and P3 by the compression order determination means 128 (step S8).
  • the image size (vertical / horizontal size) of the page image is changed (image resizing) by the resizing means 120 (step S10).
  • the data compression means 122 compresses the page images P1, P2, and P3 of the electronic comic data 8 in units of pages (step S12).
  • the Q value (a parameter for determining the image quality after compression) at the time of data compression (encoding) at this stage is a set value (initial value) set in the storage unit 14 in advance.
  • the Q value is set to “60”.
  • data compression format is not limited to JPEG, and may be compressed in another format.
  • the total data size (file capacity) of the electronic comic data is calculated by the data size calculation means 124 (step S14).
  • the total (total data size) of the data sizes of all page images included in the electronic comic data is calculated.
  • the data size determination means 126 compares the total data size after data compression with the specified total data size (target value) acquired in step S6, and the total data size after data compression is the specified total data size. It is determined whether it is larger than the data size (step S16).
  • the compression rate is increased (that is, the Q value is lowered), and data compression is performed again (step S18).
  • the compression rate is increased preferentially from page images with a small number of frames.
  • the compression rate is increased from the previous time, and data compression is performed again on the page image of the original electronic comic data.
  • the page image P1 of the first page is one frame
  • the page image P2 of the second page is five frames
  • the page image P3 of the third page is six frames.
  • Data compression is performed again by increasing the compression rate for the page image P1 of the first page (decreasing the Q value).
  • the Q value is “55”
  • the data size of the page image P1 of the first page after data compression is 230 Kbytes
  • the total data size of the electronic comic data 8 is larger than the target value of 750 Kbytes.
  • the compression rate is sequentially increased (Q value is sequentially decreased), and compression encoding is performed.
  • the page image is converted (encoded) to the target total data size.
  • the Q value for the page image P1 of the first page is Data compression is repeated by decreasing in order from “60” to “55” and from “55” to “40”.
  • the decrement value of the Q value can take any value such as -5, -4, -3, -2, or -1.
  • the present invention is not limited to such a case.
  • the compression order determination of the compression order determination unit 128 and the compression control of the compression control unit 130 “the smaller the number of frames, the higher the compression rate of the page image” is. Embodiments are included.
  • As a first mode there is a mode in which the compression rate is increased stepwise as the number of frames is smaller for each page image.
  • the number of images to be compressed at a time increases, but it is possible to achieve an image quality that does not feel uncomfortable between pages.
  • a second mode there is a mode in which the number of frames for each page image is compared with a threshold value, and the compression rate is increased only for page images having a smaller number of frames than the threshold value.
  • the compression rate may be increased only for the page image having the smallest number of frames.
  • the compression control means 130 of the second embodiment causes the data compression means 122 to compress each of a plurality of page images of electronic comic data at a preset initial compression rate, and the total data size after compression is a target value. If the number of frames is smaller, the more the number of frames, the lower the page image compression rate, and the data compression means 122 performs recompression.
  • step S16 If it is determined in step S16 that the total data size after data compression (step S12) is larger than the specified total data size, a page image with a smaller number of frames than in the previous example is displayed as in the first embodiment. Compression is performed at a high compression rate (step S18), the total data size is calculated (step S20), and it is determined again whether it is larger than the specified total data size (target value) (step S22). If it is larger than the data size, steps S18 to S20 are repeated, and if it is less than the designated total data size, this processing is terminated.
  • step S16 If it is determined in step S16 that the total data size after data compression (step S12) is less than or equal to the specified total data size, the following processing is executed in the second embodiment.
  • step S24 it is determined whether or not the total data size after data compression (step S12) is smaller than the specified total data size. If it is smaller than the designated total data (Yes in step S24), the page image with a large number of frames is compressed at a lower compression rate than the previous time (step S26), and the total data size of the electronic comic data is calculated (step S28). ) If the total data size (target value) is still smaller than the designated total data size, steps S26 to S28 are repeated. If the total data size is larger than the designated total data size, the previous (previous) compression result (compressed page image) is finalized. It is adopted as a page image of typical electronic comic data (step S30).
  • “the more the number of frames, the lower the page image compression rate”, the following first mode and A second aspect is included.
  • a first mode there is a mode in which the compression rate is gradually decreased for a page image having a larger number of frames according to the number of frames for each page image.
  • the number of images to be compressed at a time increases, but it is possible to achieve an image quality that does not feel uncomfortable between pages.
  • a second mode there is a mode in which the number of frames for each page image is compared with a threshold value, and the compression rate is reduced only for the page image having a larger number of frames than the threshold value. Only the page image with the largest number of frames may have a low compression rate.
  • Electronic comic data with a large number of frames generally tends to have low redundancy, and image quality deterioration tends to be noticeable during compression (encoding). Therefore, according to the present embodiment, when there is a margin in capacity, deterioration in image quality is not conspicuous by reducing the compression rate from the initial set value (increasing the Q value) and performing recompression. It can be electronic comic data. That is, when data compression is performed so that the electronic comic data is stored in a predetermined total data size (file capacity), it is possible to create distribution data having good appearance by this method.
  • the data compression is performed by adjusting the compression rate based on the number of frames of the page image.
  • the compression is performed based on the area of the page image. Adjust the rate.
  • the data compression process (electronic comic data compression method) of the third embodiment will be described with reference to FIG. This process is executed by the CPU 20 of the electronic comic data compression apparatus 10 according to a program.
  • the original electronic comic data is acquired by the data acquisition means 12 (step S52).
  • the blowing information (including the balloon area in units of pages) regarding the blowing in the page images P1, P2, and P3 of the acquired electronic comic data 8 is obtained as electronic comic data. 8 is obtained by extracting from the information file 8 (step S54).
  • step S56 the conversion condition (conversion specification) of the electronic comic data corresponding to the viewer device 4 (client terminal) assumed to be distributed is acquired (step S56).
  • the compression order determination means 128 determines the area of the electronic comic data 8 that is blown out in units of pages of the page images P1, P2, and P3 (step S58).
  • step S60 the image size (vertical / horizontal size) of the page image is changed by the resizing means 120 (step S60).
  • the data compression means 122 compresses the page images P1, P2, and P3 of the electronic comic data 8 in units of pages (step S62).
  • the total data size (file capacity) of the electronic comic data is calculated by the data size calculation means 124 (step S64).
  • the data size determination unit 126 compares the total data size after data compression with the specified total data size (target value) acquired in step S56, and the total data size after data compression is It is determined whether it is larger than the total data size (step S66).
  • step S66 If it is larger than the designated total data size (Yes in step S66), the compression rate is increased (that is, the Q value is lowered), and data compression is performed again (step S68).
  • the compression rate is preferentially increased from the page image with a small area of the balloon.
  • recompression is performed on the page image of the original electronic comic data at a high compression rate.
  • the total data size is calculated (step S70), and it is determined again whether or not it is larger than the designated total data size (step S72). If it is still larger than the designated total data size, steps S68 to S70 are repeated and designated. If the total data size is equal to or smaller than the total data size, the process is terminated.
  • step S66 If it is determined in step S66 that the total data size after data compression (step S62) is less than or equal to the specified total data size, the following processing is executed in the second embodiment.
  • step S74 it is determined whether the total data size after data compression (step S62) is smaller than the designated total data size (step S74). If it is smaller than the specified total data (Yes in step S74), the page image having a large balloon area is compressed at a lower compression rate than the previous time (step S76), and the total data size of the electronic comic data is calculated (step S78). If the total data size is still smaller than the designated total data size, steps S76 to S78 are repeated. If the total data size is larger than the designated total data size, the previous (previous) compression result is adopted as the final electronic comic data (step S80). ).
  • comic images with a small balloon area have few lines (characters) and are often in a state where the lines can be read (viewed) even if the compression rate is increased (decreasing the Q value).
  • “the smaller the area of the balloon, the higher the compression ratio of the page image” is.
  • a second aspect is included.
  • As a first mode there is a mode in which the compression ratio is increased stepwise as the page image has a smaller balloon area, depending on the size of the balloon area for each page image. For example, in the page images P1 to P3 in FIG. 6, if P1 blowing area ⁇ P2 blowing area ⁇ P3 blowing area, P1 compression ratio> P2 compression ratio> P3 compression ratio.
  • the number of images to be compressed at a time increases, but it is possible to achieve an image quality that does not feel uncomfortable between pages.
  • a second mode there is a mode in which the area of the balloon is compared with a threshold value for each page image, and the compression rate is increased only for the page image whose area of the balloon is smaller than the threshold value.
  • the compression rate may be increased only for the page image having the smallest balloon area.
  • a second aspect is included.
  • a first mode there is a mode in which the compression rate is gradually decreased for a page image having a larger balloon area in accordance with the size of the balloon area for each page image. For example, in the page images P1 to P3 in FIG. 6, if P1 blowing area ⁇ P2 blowing area ⁇ P3 blowing area, P1 compression ratio> P2 compression ratio> P3 compression ratio.
  • a mode in which the area of the balloon is compared with a threshold value for each page image, and only the page image having the balloon area larger than the threshold value has a low compression rate.
  • the compression rate may be lowered only for the page image having the largest balloon area.
  • the frame number determination mode for determining the compression order of the page image based on the number of frames and the blowing determination mode for determining the compression order of the page image based on the area of the balloon are selectable.
  • the CPU 20 automatically selects the frame number determination mode or the balloon determination mode based on the frame information and the balloon information in the information file of the electronic comic data. For example, when the number of frames is only a page larger than a threshold value (frame number threshold value), or when the ratio of pages whose frame number is larger than the threshold value (frame number threshold value) is higher than the threshold value (ratio threshold value), A mode of selecting the determination mode is conceivable. Further, when only pages whose blowing area is larger than the threshold (blowing area threshold), or when the ratio of pages whose blowing area is larger than the threshold (blowing area threshold) is higher than the threshold (ratio threshold), A mode of selecting the number determination mode is conceivable.
  • the operation means 18 accepts a selection instruction input for selecting the frame number determination mode or the blowout determination mode. For example, if you want to prioritize the image quality of a page image with a large number of frames, select the frame number determination mode, and if you want to prioritize the ability to read words reliably, select the blowout determination mode. Is preferred.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A digital comics data compression device includes: a data acquisition means (12) for acquiring digital comics data that includes page images of a plurality of pages of comics; a compression order determination means (128) (information acquisition means) for acquiring at least one of the number of frames and a balloon area in each page of the page images of the plurality of pages in the digital comics data; a data compression means (122) capable of compressing the page images in the digital comics data in units of pages; a data size calculation means (124) for calculating the total data size of the digital comics data after the compression by the data compression means (122); and a compression control means (130) for increasing, when the total data size calculated by the data size calculation means (124) is larger than a target value, the compression ratio of a page image selected on the basis of at least one of the number of frames and the balloon area in each page, among the page images of the plurality of pages in the digital comics data, and for making the data compression means (122) compress the selected page image again.

Description

電子コミックデータ圧縮装置、方法およびプログラムElectronic comic data compression apparatus, method and program
 本発明は、電子コミックデータのデータ圧縮を行う電子コミックデータ圧縮装置、方法およびプログラムに関する。 The present invention relates to an electronic comic data compression apparatus, method, and program for performing data compression of electronic comic data.
 携帯電話やスマートフォンなどの携帯端末に電子コミックデータを配信するにあたって、携帯端末の小さな表示領域でもある程度快適にコミックを閲覧できるように、巨大な電子コミックデータに含まれる各ページ画像を、適切な大きさの画像サイズ(縦横サイズ)に調整し、かつ、適切な総データサイズ(ファイル容量)に調整することが行われている。 When distributing electronic comic data to mobile terminals such as mobile phones and smartphones, each page image included in the huge electronic comic data is appropriately sized so that the comics can be viewed comfortably even in a small display area of the mobile terminal. The image size (vertical and horizontal size) is adjusted to an appropriate total data size (file capacity).
 特許文献1には、画像ファイルの画像サイズを予め決められた比率で縮小した上で、画像フォーマットの変更を行う際に、画像ファイルのデータサイズが目標値となるまで画像ファイルの変更を繰り返し行う構成が開示されている。 In Patent Document 1, the image file size is reduced by a predetermined ratio, and when the image format is changed, the image file is repeatedly changed until the data size of the image file reaches a target value. A configuration is disclosed.
 特許文献2には、非可逆の圧縮である場合、ヘッダに書かれている画像幅、高さ、ファイルサイズなどから、圧縮率を計算する構成が開示されている。 Patent Document 2 discloses a configuration for calculating the compression rate from the image width, height, file size, and the like written in the header in the case of lossy compression.
 特許文献3には、所定の画像サイズ以上のファイルのみを圧縮することにより、画像サイズの小さいデータの画像を出来るだけ劣化させないようにした構成が開示されている。 Patent Document 3 discloses a configuration in which an image of data having a small image size is prevented from being deteriorated as much as possible by compressing only a file having a predetermined image size or larger.
 特許文献4には、実紙面画像をページごとに取り込んで圧縮符号化する構成が開示されている。 Patent Document 4 discloses a configuration in which an actual page image is taken in for each page and is compressed and encoded.
 特許文献5には、コマ数を取得することが開示されている。 Patent Document 5 discloses obtaining the number of frames.
特開2002-057887号公報JP 2002-057887 A 特開2004-214828号公報JP 2004-214828 A 特開2006-109205号公報JP 2006-109205 A 特開2010-205252号公報JP 2010-205252 A 特開2008-84348号公報JP 2008-84348 A
 しかしながら、電子コミックデータの総データサイズを目標値まで小さくしたい場合、電子コミックデータを構成する各ページ画像の画像サイズ(縦横サイズ)と電子コミックデータの全体のデータサイズ(総データサイズ)とのバランスを考慮し、試行錯誤しながら圧縮率を決定する必要があった。 However, when it is desired to reduce the total data size of the electronic comic data to the target value, the balance between the image size (vertical and horizontal size) of each page image constituting the electronic comic data and the total data size (total data size) of the electronic comic data. Therefore, it was necessary to determine the compression rate through trial and error.
 近年、精緻に描かれた画像を含む電子コミックデータが提供されるようになり、圧縮率を上げても、圧縮後の画像の見栄えの劣化を目立たないようにすることが求められている。 In recent years, electronic comic data including precisely drawn images has been provided, and even if the compression rate is increased, it is required to make the appearance of the compressed image not noticeably deteriorated.
 特許文献1~4は、画像ファイルのデータ圧縮技術を開示しているが、電子コミックの画像をページ単位でデータ圧縮する際に、圧縮後の電子コミックの画像の見栄えを損なうことなく、かつ効率良く圧縮する方法については、開示がない。 Patent Documents 1 to 4 disclose image file data compression technology, but when compressing an electronic comic image in units of pages, it is efficient without impairing the appearance of the compressed electronic comic image. There is no disclosure about how to compress well.
 特許文献1記載のように、単に画像データのデータサイズが目標値となるまで画像ファイルの圧縮を繰り返す構成では、圧縮率を上げると、画質の劣化が目立ってしまう可能性が出てくる。例えば、コマ数の多いページでは、精緻な画像が描画されている可能性があるが、その画質の劣化が目立つ場合がある。また、例えば、吹出し面積の多いページでは、吹出し内の台詞(テキスト)の劣化が目立つ場合がある。 As described in Patent Document 1, in a configuration in which compression of an image file is simply repeated until the data size of the image data reaches a target value, when the compression rate is increased, there is a possibility that deterioration in image quality becomes conspicuous. For example, in a page with a large number of frames, a fine image may be drawn, but the degradation of the image quality may be conspicuous. In addition, for example, in a page with a large balloon area, the degradation of text (text) in the balloon may be conspicuous.
 特許文献5は、コマ数を取得することが記載されているだけであり、コマ数に基づいてデータ圧縮することについての開示及び示唆がない。 Patent Document 5 only describes that the number of frames is acquired, and there is no disclosure or suggestion about data compression based on the number of frames.
 以上のように、電子コミックデータの画像には、コマ、吹出しなどのコミック特有の模様が存在するが、上記の特許文献1~5には、これらのコミック特有の模様を利用して高圧縮率と高画質とを両立させるという思想がなく、示唆する記載もない。 As described above, there are comic-specific patterns such as frames and balloons in the images of electronic comic data. However, in Patent Documents 1 to 5 described above, a high compression rate is obtained by using these comic-specific patterns. There is no idea of achieving both high quality and high image quality, and there is no suggestion.
 本発明はこのような事情に鑑みてなされたもので、電子コミックデータのデータ圧縮を行う場合、高圧縮率でもより良い画質の電子コミックデータを生成することができる電子コミックデータ圧縮装置、方法およびプログラムを提供することを目的とする。 The present invention has been made in view of such circumstances, and when performing data compression of electronic comic data, an electronic comic data compression apparatus, method, and method that can generate electronic comic data with better image quality even at a high compression rate. The purpose is to provide a program.
 前記目的を達成するために、本発明は、コミックの複数ページのページ画像を含む電コミックデータを取得するデータ取得手段と、電子コミックデータの複数ページのページ画像のページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得する情報取得手段と、電子コミックデータのページ画像をページ単位で圧縮可能なデータ圧縮手段と、データ圧縮手段による圧縮後の電子コミックデータの総データサイズを算出するデータサイズ算出手段と、データサイズ算出手段によって算出された総データサイズが目標値よりも大きい場合、電子コミックデータの複数ページのページ画像のうちでページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を高くしてデータ圧縮手段に再圧縮させる圧縮制御手段と、を備えた電子コミックデータ圧縮装置を提供する。 To achieve the above object, the present invention provides data acquisition means for acquiring electronic comic data including page images of a plurality of pages of comics, the number of frames for each page of page images of a plurality of pages of electronic comic data, and balloons. Information acquisition means for acquiring at least one of the areas of the data, data compression means for compressing the page image of the electronic comic data in units of pages, and data for calculating the total data size of the electronic comic data compressed by the data compression means When the total data size calculated by the size calculating means and the data size calculating means is larger than the target value, at least one of the number of frames per page and the blowing area among the page images of the plurality of pages of the electronic comic data. The page image selected on the basis of the compression ratio is increased and recompressed by the data compression means. A compression control unit that provides an electronic comic data compression apparatus having a.
 ここで、総データサイズの「目標値」とは、指定のデータ値である。「目標値」は、操作手段によってユーザからの指定入力を受け付けてもよいし、操作手段以外の手段により指定入力を受け付けてもよい。例えば、ネットワークを介して「目標値」の指定入力を受け付けてもよいし、電子コミックデータに付加された「目標値」を電子コミックデータから抽出することにより指定入力を受け付けてもよい。それ以外の態様で「目標値」の指定入力を受け付けてもよい。 Here, the “target value” of the total data size is a specified data value. For the “target value”, a designation input from the user may be accepted by the operation means, or a designation input may be accepted by means other than the operation means. For example, the designation input of “target value” may be accepted via a network, or the designation input may be accepted by extracting “target value” added to the electronic comic data from the electronic comic data. The designation input of “target value” may be received in other modes.
 この構成により、データ圧縮手段による圧縮後の電子コミックデータの総データサイズが目標値よりも大きい場合、ページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を更に高くして圧縮するので、高圧縮率でもより良い画質の電子コミックデータを生成することができる。 With this configuration, when the total data size of the electronic comic data compressed by the data compression means is larger than the target value, the compression rate of the page image selected based on at least one of the number of frames per page and the blowing area is set. Since the compression is further increased, electronic comic data with better image quality can be generated even at a high compression rate.
 一実施形態では、圧縮制御手段は、データサイズ算出手段によって算出された総データサイズが目標値よりも大きい場合、コマの数が少ないほどページ画像の圧縮率を高くして、データ圧縮手段により再圧縮を行う。 In one embodiment, when the total data size calculated by the data size calculation unit is larger than the target value, the compression control unit increases the compression rate of the page image as the number of frames decreases, and the data compression unit Perform compression.
 一実施形態では、圧縮制御手段は、データサイズ算出手段によって算出された総データサイズが目標値よりも小さい場合、コマの数が多いほどページ画像の圧縮率を低くして、データ圧縮手段により再圧縮を行う。 In one embodiment, when the total data size calculated by the data size calculation unit is smaller than the target value, the compression control unit lowers the page image compression rate as the number of frames increases, and the data compression unit Perform compression.
 一実施形態では、圧縮制御手段は、データサイズ算出手段によって算出された総データサイズが目標値よりも大きい場合、吹出しの面積が小さいほどページ画像の圧縮率を高くして、データ圧縮手段により再圧縮を行う。 In one embodiment, when the total data size calculated by the data size calculation unit is larger than the target value, the compression control unit increases the compression rate of the page image as the area of the balloon is smaller, and the data compression unit Perform compression.
 一実施形態では、圧縮制御手段は、データサイズ算出手段によって算出された総データサイズが目標値よりも小さい場合、吹出しの面積が大きいほどページ画像の圧縮率を低くして、データ圧縮手段により再圧縮を行う。 In one embodiment, when the total data size calculated by the data size calculating unit is smaller than the target value, the compression control unit lowers the page image compression rate as the area of the balloon increases, and the data compression unit re-executes the compression. Perform compression.
 一実施形態では、電子コミックデータの複数ページのページ画像の各々の縦横サイズを指定の縦横サイズに変更するリサイズ手段を備え、圧縮制御手段は、リサイズ手段により縦横サイズが変更された複数ページのページ画像を圧縮する。 In one embodiment, there is provided resizing means for changing the vertical and horizontal sizes of each of the page images of the plurality of pages of the electronic comic data to a specified vertical and horizontal size, and the compression control means has a plurality of pages whose vertical and horizontal sizes have been changed by the resizing means. Compress the image.
 一実施形態では、コマの数に基づいてページ画像の圧縮率を変更するか吹出しの面積に基づいてページ画像の圧縮率を変更するかを、電子コミックデータに基づいて選択する手段を備える。 In one embodiment, there is provided means for selecting, based on electronic comic data, whether to change the compression rate of the page image based on the number of frames or to change the compression rate of the page image based on the area of the balloon.
 一実施形態では、コマの数に基づいてページ画像の圧縮率を変更するか吹出しの面積に基づいてページ画像の圧縮率を変更するかの選択指示の入力を受け付ける手段を備える。 In one embodiment, there is provided means for receiving an input of a selection instruction for changing the compression rate of the page image based on the number of frames or changing the compression rate of the page image based on the area of the balloon.
 また、本発明は、コミックの複数ページのページ画像を含む電子コミックデータを取得するデータ取得手段と、電子コミックデータの複数ページのページ画像のページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得する情報取得手段と、電子コミックデータのページ画像をページ単位で圧縮可能なデータ圧縮手段と、を用い、データ圧縮手段による圧縮後の電子コミックデータの総データサイズを算出するステップと、算出された総データサイズが目標値よりも大きい場合、電子コミックデータの複数ページのページ画像のうちでページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を高くしてデータ圧縮手段に圧縮させるステップと、を備えた電子コミックデータ圧縮方法を提供する。 Further, the present invention provides at least one of data acquisition means for acquiring electronic comic data including page images of a plurality of pages of comics, and the number of frames for each page of the page images of the plurality of pages of electronic comic data and the area of the balloon. Calculating the total data size of the electronic comic data after being compressed by the data compression means, using the information acquisition means for acquiring the data and the data compression means capable of compressing the page image of the electronic comic data in units of pages, and calculating When the total data size is larger than the target value, the compression ratio of the page image selected based on at least one of the number of frames per page and the blowing area among the plurality of page images of the electronic comic data is increased. And compressing the data by the data compression means, and an electronic comic data compression method comprising: Subjected to.
 また、本発明は、情報処理装置が、コミックの複数ページのページ画像を含む電子コミックデータを取得するデータ取得手段と、電子コミックデータの複数ページのページ画像のページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得する情報取得手段と、電子コミックデータのページ画像をページ単位で圧縮可能なデータ圧縮手段と、を用い、データ圧縮手段による圧縮後の電子コミックデータの総データサイズを算出するステップと、算出された総データサイズが目標値よりも大きい場合、電子コミックデータの複数ページのページ画像のうちでページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を高くしてデータ圧縮手段に圧縮させるステップと、を実行するためのプログラムを提供する。 Further, the present invention provides a data acquisition unit in which the information processing apparatus acquires electronic comic data including page images of a plurality of pages of comics, and the number of frames and the number of balloons for each page of the page images of the plurality of pages of electronic comic data. The total data size of the electronic comic data compressed by the data compression means is calculated using an information acquisition means for acquiring at least one of the areas and a data compression means capable of compressing the page image of the electronic comic data in units of pages. And when the calculated total data size is larger than the target value, the page image selected based on at least one of the number of frames per page and the blowout area among the plurality of page images of the electronic comic data And increasing the compression rate of the data compression means to compress the data compression means. To provide the ram.
 上記のプログラムは、各種の記録媒体に記録して提供することができる。 The above program can be provided by being recorded on various recording media.
 本発明によれば、電子コミックデータのデータ圧縮を行う場合、高圧縮率でもより良い画質の電子コミックデータを生成することができる。 According to the present invention, when data compression of electronic comic data is performed, it is possible to generate electronic comic data with better image quality even at a high compression rate.
電子コミックデータ配信システムの一例を示す全体構成図Overall configuration diagram showing an example of an electronic comic data distribution system 電子コミックデータのファイル構成例を示す説明図Explanatory drawing showing an example of the file structure of electronic comic data 電子コミックデータ圧縮装置の構成例を示すブロック図The block diagram which shows the structural example of an electronic comic data compression apparatus 第1実施例のデータ圧縮処理の流れを示すフローチャートThe flowchart which shows the flow of the data compression process of 1st Example. 電子コミックデータ及びページ画像の一例の説明に用いる説明図Explanatory drawing used for explanation of an example of electronic comic data and page image 各ページ画像に対する初期の圧縮率でのデータ圧縮の説明に用いる説明図Explanatory drawing used to explain data compression at the initial compression rate for each page image 最もコマ数の大きいページ画像に対する圧縮率の変更の説明に用いる説明図Explanatory drawing used to explain the change in compression ratio for the page image with the largest number of frames 第2実施例のデータ圧縮処理の流れを示すフローチャートThe flowchart which shows the flow of the data compression process of 2nd Example. 第3実施例のデータ圧縮処理の流れを示すフローチャートThe flowchart which shows the flow of the data compression process of 3rd Example.
 以下、添付図面に従って、本発明の実施形態について、詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
 <電子コミックデータ配信システム>
 図1は、電子コミックデータ配信システムの一例を示す全体構成図である。スキャナ1は、紙面のコミック(マンガ)原稿を読み取ることで、コミックの1ページごとの画像(以下「ページ画像」という)を含む画像ファイルを生成する。尚、図1では、スキャナ1により紙面のコミック原稿をスキャン原稿として読み取ることで画像ファイルを取得する例を示したが、このような場合に本発明は限定されない。電子的に生成されたコミック原稿(デジタル原稿)を、ネットワークあるいは記録媒体を介して入力することで画像ファイルを取得してもよい。
<Electronic comic data distribution system>
FIG. 1 is an overall configuration diagram illustrating an example of an electronic comic data distribution system. The scanner 1 reads a comic (manga) manuscript on paper to generate an image file including an image for each page of the comic (hereinafter referred to as “page image”). Although FIG. 1 shows an example in which an image file is acquired by reading a comic book on a paper surface as a scanned original by the scanner 1, the present invention is not limited to this case. An image file may be acquired by inputting an electronically generated comic document (digital document) via a network or a recording medium.
 電子コミック編集装置2は、スキャナ1等で入力された画像ファイルを含む電子コミックデータの編集を行って、マスタの電子コミックデータ(以下「マスタデータ」という)を生成する装置である。電子コミック編集装置2は、例えば、コンピュータ装置によって構成される。 The electronic comic editing device 2 is a device that edits electronic comic data including an image file input by the scanner 1 or the like to generate master electronic comic data (hereinafter referred to as “master data”). The electronic comic editing device 2 is configured by a computer device, for example.
 サーバ装置3は、電子コミック編集装置2で編集された電子コミックデータのマスタデータを、必要に応じてビューワ装置4(4a~4d)の各々に対応した形式の電子コミックデータに変換し、その電子コミックデータをビューワ装置4からの配信要求に応じてネットワークを介してビューワ装置4に送信する。サーバ装置3は、例えば、コンピュータ装置によって構成される。 The server device 3 converts the master data of the electronic comic data edited by the electronic comic editing device 2 into electronic comic data of a format corresponding to each of the viewer devices 4 (4a to 4d) as necessary, and the electronic data The comic data is transmitted to the viewer device 4 via the network in response to a distribution request from the viewer device 4. The server device 3 is configured by a computer device, for example.
 ビューワ装置4は、サーバ装置3から送信された電子コミックデータを受信して、ページ画像(又はコマ画像)を表示する。ビューワ装置4は、携帯電話、スマートフォン、タブレット端末等の各種の携帯端末、あるいはパーソナルコンピュータ等の各種の端末装置(コンピュータ装置)である。 The viewer device 4 receives the electronic comic data transmitted from the server device 3 and displays a page image (or frame image). The viewer device 4 is various mobile terminals such as a mobile phone, a smartphone, and a tablet terminal, or various terminal devices (computer devices) such as a personal computer.
 ビューワ装置4の表示画面サイズは機種ごとに異なる。ビューワ装置4の表示画面サイズが電子コミックデータの1ページごとのページ画像の全体の表示サイズよりも小さい場合には、1ページごとのページ画像内で、ビューワ装置4の表示画面サイズに対応した表示範囲を順次移動させながら表示を行う。このようにページ画像内で表示画面サイズに対応した表示範囲を移動させながらビューワ装置4の表示画面に順次に表示することを、以下では「順次再生」又は「画面送り再生」ということもある。 The display screen size of the viewer device 4 varies depending on the model. When the display screen size of the viewer device 4 is smaller than the entire display size of the page image for each page of the electronic comic data, the display corresponding to the display screen size of the viewer device 4 in the page image for each page. Display while moving the range sequentially. Such sequential display on the display screen of the viewer device 4 while moving the display range corresponding to the display screen size in the page image is sometimes referred to as “sequential playback” or “screen feed playback”.
 サーバ装置3からビューワ装置4に送信する「電子コミックデータ」は、ページ画像を含む画像ファイルと、情報ファイル(付帯情報)とにより構成されている。 The “electronic comic data” transmitted from the server device 3 to the viewer device 4 is composed of an image file including a page image and an information file (accompanying information).
 ページ画像は、高解像度の画像(例えば3000×5000画素又は1500×2000画素)の1ページごとの画像からなる。 The page image is composed of an image for each page of a high-resolution image (for example, 3000 × 5000 pixels or 1500 × 2000 pixels).
 情報ファイルは、コミックの全ページ(又は1ページ毎)に対応する情報である。例えば、XMLファイル等のマークアップ言語で記述される。 The information file is information corresponding to all pages (or each page) of the comic. For example, it is described in a markup language such as an XML file.
 図2は、情報ファイルの一例の概要を示す。 Fig. 2 shows an example of an information file.
 本例の情報ファイルは、ページに関する情報であるページ情報、コマに関する情報であるコマ情報、吹出しに関する情報である吹出し情報、テキスト領域に関する情報であるテキスト領域情報、関心領域に関する情報である関心領域情報、これらの情報の互いの関連付けを示す関連付け情報、などを含む。 The information file of this example includes page information that is information about the page, frame information that is information about the frame, balloon information that is information about balloons, text area information that is information about text areas, and region of interest information that is information about areas of interest. , Association information indicating the association between these pieces of information, and the like.
 ページ情報は、ページに関する情報、ページ名、ページIDの情報を含む。ページに関する情報とは、コンテンツ画像が1ページか見開き2ページかを示す情報、オリジナルコンテンツの大きさ等を含む情報である。本例のページ情報は、電子コミックに関する情報(タイトルID、タイトル名、著者、出版社(版権者)、出版年、言語等)を含む。また、ページ情報は、ページ画像の画像リサイズに関するページ画像の指定の縦横サイズ(画像サイズ)を含んでいる場合がある。また、ページ情報は、ページ画像のデータ圧縮に関する指定の総データサイズ(総データサイズの目標値)を含んでいる場合がある。 Page information includes information about the page, page name, and page ID. The information about the page is information including whether the content image is one page or two spread pages, and information including the size of the original content. The page information in this example includes information about the electronic comic (title ID, title name, author, publisher (copyright owner), year of publication, language, etc.). Further, the page information may include a specified vertical and horizontal size (image size) of the page image related to the image resizing of the page image. Further, the page information may include a designated total data size (target value of the total data size) related to page image data compression.
 コマ情報は、コマ領域情報を含む。コマ領域情報は、ページ画像内の各コマの領域(コマ領域)を示す情報である。本例のコマ領域情報は、各コマの頂点の座標、各コマの形状が含まれる。コマ領域情報は、コマ境界を示すベクトルデータであっても良いし、コマ領域を示すマスクデータであっても良い。また、コマ情報は、ページ画像内のコマの再生順序を示すコマ順序情報を含む。コマの再生順序は、例えば、右開き/左開きのページに関する情報、使用言語を示すコンテンツに関する情報、コマ領域情報から検知されるコマ割り等に基づいてページの右上から左下、左上から右下、移動方向(左右方向又は上下方向)等のいくつかのコマ順序の遷移パターンのうちから適切なパターンを選択し、その選択した遷移パターンに従って自動的に決定される。 Frame information includes frame area information. The frame area information is information indicating the area (frame area) of each frame in the page image. The frame area information in this example includes the coordinates of the vertices of each frame and the shape of each frame. The frame area information may be vector data indicating a frame boundary or mask data indicating a frame area. The frame information includes frame order information indicating the playback order of the frames in the page image. The playback order of frames is, for example, information on right / left-open pages, information on contents indicating the language used, frame division detected from frame area information, etc., from upper right to lower left, upper left to lower right, An appropriate pattern is selected from several frame order transition patterns such as the moving direction (left-right direction or up-down direction), and is automatically determined according to the selected transition pattern.
 また、本例のコマ情報は、ページ単位のコマ数(1ページ内のコマの数)を含んでいる。 Also, the frame information in this example includes the number of frames per page (the number of frames in one page).
 吹出し情報は、吹出し領域情報を含む。吹出し領域情報としては、例えば、吹出し領域の外周縁を示すベクトルデータ、吹出し領域を示すマスクデータ(ビットマップ情報)が挙げられる。吹出し領域情報は、ページ画像内(又はコマ内)での吹出し領域を示す情報である。吹出し領域情報には、吹出しの形状、吹出しの起点(吹出しの頂点)の位置と向き、吹出しのサイズが含まれていてもよい。また、吹出しの特定位置(中心位置)と吹出しのサイズによって吹出し領域情報を表してもよい。吹出し情報には、吹出しに含まれるテキストの情報、吹出しの描線の属性(点線、実線など)、吹出しの話者の識別情報、吹出しの属するコマなどが更に含まれていてもよい。 The balloon information includes balloon area information. Examples of the blowout area information include vector data indicating the outer periphery of the blowout area and mask data (bitmap information) indicating the blowout area. The balloon area information is information indicating a balloon area within a page image (or within a frame). The blowout area information may include the shape of the blowout, the position and orientation of the blowout start point (pitch of the blowout), and the size of the blowout. Moreover, you may represent blowing area | region information with the specific position (center position) of blowing, and the size of blowing. The balloon information may further include text information included in the balloon, balloon drawing line attributes (dotted line, solid line, etc.), balloon identification information, and frames to which the balloon belongs.
 また、本例の吹出し情報は、ページ単位の吹出し面積(1ページ内の吹出しの総面積)を含んでいる。 In addition, the balloon information of this example includes a balloon area per page (total area of balloons within one page).
 テキスト情報は、テキスト領域情報とテキストの内容に関する情報とを含む。テキスト領域情報としては、例えば、描線上のテキスト領域に対応する複数点の座標データ(多角形の外周縁の各頂点を示す座標データ)、テキスト領域の外周縁を示すベクトルデータ、テキスト領域(範囲)を示すマスクデータ(例えばビットマップ情報)が挙げられる。また、テキストの内容に関する情報は、OCRにより特定されたテキスト(文章)文字属性情報、行数、行間隔、文字間隔、表示切替方法、使用言語、縦書き/横書き、読み方向の区別などを含む。文字属性情報には、文字サイズ(ポイント数など)、文字種別(フォント、強調文字など)がある。テキスト情報には、吹出し内の話者の台詞が含まれる。また、吹出し内に配置された原文の台詞に対応する各種言語の翻訳文とその使用言語(2以上の言語の翻訳文でもよい)も、このテキスト情報に含まれうる。 The text information includes text area information and information related to the text content. As text area information, for example, coordinate data of a plurality of points corresponding to the text area on the drawn line (coordinate data indicating each vertex of the outer periphery of the polygon), vector data indicating the outer periphery of the text area, text area (range) ) Mask data (for example, bitmap information). The information on the contents of the text includes text (text) character attribute information specified by OCR, the number of lines, line spacing, character spacing, display switching method, language used, vertical writing / horizontal writing, reading direction distinction, and the like. . The character attribute information includes a character size (number of points, etc.) and a character type (font, emphasized character, etc.). The text information includes the speech of the speaker in the callout. In addition, translated texts in various languages corresponding to the lines of the original text arranged in the balloon and the language used (translated sentences in two or more languages) may be included in this text information.
 関心領域情報としては、関心領域(以下「ROI」ともいう)の各頂点(多角形の外周縁の各頂点)を示す座標データ、ROIの外周縁を示すベクトルデータ、ROIを示すマスクデータ(例えばビットマップデータ)等が挙げられる。関心領域情報は、ROIの形状を示すデータを含んでいてもよい。また、関心領域情報には、ROIに含まれるキャラクタに関する情報(例えば、自動的につけられたキャラクタID)が更に含まれてもよい。また、関心領域情報には、優先順位、表示に当っての重要度、キャラクタの識別情報(名称など)、キャラクタの属性(性別、年齢など)が含まれてもよい。本例の関心領域情報は、コミックに登場するキャラクタが描かれた領域を示す。 The region-of-interest information includes coordinate data indicating each vertex (each vertex of the outer periphery of the polygon) of the region of interest (hereinafter also referred to as “ROI”), vector data indicating the outer periphery of the ROI, and mask data indicating the ROI (for example, Bit map data). The region-of-interest information may include data indicating the shape of the ROI. Further, the region-of-interest information may further include information on a character included in the ROI (for example, a character ID automatically assigned). The region-of-interest information may include priority, importance in display, character identification information (such as name), and character attributes (such as gender and age). The region-of-interest information in this example indicates a region where a character appearing in a comic is drawn.
 関連付け情報は、ページ画像内の領域情報同士の関連付けを示す情報である。言い換えると、種類の異なる領域同士の関連付けを示す。関連付け情報としては、テキスト領域情報と関心領域情報との関連付け、吹出し領域情報と関心領域情報との関連付け、テキスト領域情報と吹出し領域情報との関連付け、テキスト領域情報とコマ情報との関連付け、吹出し領域情報とコマ情報との関連付け、関心領域情報とコマ情報との関連付け等が挙げられる。 The association information is information indicating association between area information in the page image. In other words, the association between different types of areas is shown. The association information includes associating text region information and region-of-interest information, association between balloon region information and region-of-interest information, association between text region information and balloon region information, association between text region information and frame information, balloon region Examples include association between information and frame information, association between region-of-interest information and frame information, and the like.
 以下では、主として、マスタの電子コミックデータ(マスタデータ)をビューワ装置4(4a~4d)の各々に対応した形式の電子コミックデータ(配信データ)に変換する際に行う、画像リサイズ(「縦横サイズ変更」ともいう)及びデータ圧縮(「エンコード」ともいう)について、説明する。 In the following, image resizing (“vertical / horizontal size”) performed mainly when converting the electronic comic data (master data) of the master into electronic comic data (distributed data) of a format corresponding to each of the viewer devices 4 (4a to 4d). (Also referred to as “change”) and data compression (also referred to as “encoding”) will be described.
 <電子コミックデータ圧縮装置>
 図1の電子コミックデータ配信システムでは、電子コミックデータのデータ圧縮を、サーバ装置3で行っているが、電子コミック編集装置2で行うようにしてもよい。
<Electronic comic data compression device>
In the electronic comic data distribution system of FIG. 1, data compression of electronic comic data is performed by the server device 3, but may be performed by the electronic comic editing device 2.
 以下では、本発明に係る電子コミックデータ圧縮装置を、サーバ装置3又は電子コミック編集装置2に適用したものとして、具体的に説明する。 Hereinafter, the electronic comic data compression apparatus according to the present invention will be specifically described as being applied to the server apparatus 3 or the electronic comic editing apparatus 2.
 図3は、電子コミックデータ圧縮装置10の内部構成例を示すブロック図である。 FIG. 3 is a block diagram showing an internal configuration example of the electronic comic data compression apparatus 10.
 本例の電子コミックデータ圧縮装置10は、データ取得手段12、記憶手段14、表示手段16、操作手段18、及びCPU(中央処理装置)20を含んで構成されている。 The electronic comic data compression apparatus 10 of this example includes a data acquisition means 12, a storage means 14, a display means 16, an operation means 18, and a CPU (central processing unit) 20.
 データ取得手段12は、コミックの複数ページのページ画像を含む電子コミックデータを取得する。データ取得手段12は、例えば、ネットワークを介して電子コミックデータを取得するネットワークインタフェースによって構成される。尚、本発明は、ネットワークを介して電子コミックデータを取得する場合に限定されない。例えば、電子コミックデータを、後述の記憶手段14から取得してもよいし、リムーバブルな記録媒体から取得してもよい。 The data acquisition unit 12 acquires electronic comic data including page images of a plurality of comic pages. The data acquisition unit 12 is configured by a network interface that acquires electronic comic data via a network, for example. The present invention is not limited to the case where electronic comic data is acquired via a network. For example, the electronic comic data may be acquired from the storage unit 14 described later or may be acquired from a removable recording medium.
 記憶手段14は、ディスク、メモリなどによって構成される。メモリは、RAM、ROM、及びフラッシュメモリ(不揮発性メモリ)を含む。 The storage means 14 is constituted by a disk, a memory, or the like. The memory includes RAM, ROM, and flash memory (nonvolatile memory).
 表示手段16は、例えば液晶表示デバイスなどの、各種の表示デバイスによって構成される。 The display means 16 is composed of various display devices such as a liquid crystal display device.
 操作手段18は、例えばタッチセンサ(「タッチパネル」ともいう)などの、各種の操作デバイスによって構成される。 The operation means 18 is constituted by various operation devices such as a touch sensor (also referred to as “touch panel”).
 CPU20は、リサイズ手段120、データ圧縮手段122、データサイズ算出手段124、データサイズ判定手段126、圧縮順位判定手段128(情報取得手段)、及び、圧縮制御手段130を含んで構成されている。 The CPU 20 includes resizing means 120, data compression means 122, data size calculation means 124, data size determination means 126, compression order determination means 128 (information acquisition means), and compression control means 130.
 リサイズ手段120は、電子コミックデータの複数ページのページ画像の各々の画像サイズ(縦横サイズ)を、指定の画像サイズ(縦横サイズ)に変更する。 The resizing means 120 changes the image size (vertical / horizontal size) of each page image of the electronic comic data to a specified image size (vertical / horizontal size).
 データ圧縮手段122は、電子コミックデータの複数ページのページ画像をページ単位でデータ圧縮(エンコード)する。 The data compression means 122 compresses (encodes) page images of a plurality of pages of electronic comic data in units of pages.
 データサイズ算出手段124は、電子コミックデータの総データサイズ(ファイル容量)を算出する。 The data size calculation means 124 calculates the total data size (file capacity) of the electronic comic data.
 データサイズ判定手段126は、データサイズ算出手段124によって算出される総データサイズと、予め指定された総データサイズ(総データサイズの目標値)とを比較する。 The data size determination unit 126 compares the total data size calculated by the data size calculation unit 124 with the total data size designated in advance (target value of the total data size).
 圧縮順位判定手段128(情報取得手段)は、電子コミックデータの複数ページのページ画像のページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得し、取得したページごとのコマの数及び吹出しの面積のうち少なくとも一方に基づいて、複数ページのページ画像のうちいずれのページのページ画像を優先して圧縮するか(圧縮順位)を、判定する。 The compression order determination unit 128 (information acquisition unit) acquires at least one of the number of frames for each page of the page image of the plurality of pages of the electronic comic data and the area of the balloon, and the number of frames and the balloon for each acquired page. Based on at least one of these areas, it is determined which page image of a plurality of page images is to be preferentially compressed (compression order).
 圧縮制御手段130は、データサイズ算出手段124によって算出される複数ページ画像の総データサイズが目標値(指定の総データサイズ)以下になるように、電子コミックデータの複数ページのページ画像をページ単位でデータ圧縮手段122に圧縮させる。本例の圧縮制御手段130は、データサイズ算出手段124によって算出された総データサイズが目標値よりも大きい場合、圧縮順位判定手段128によって判定された圧縮順位が高いページほど圧縮率を高くしてページ画像を圧縮させる。 The compression control unit 130 converts the page images of the plurality of pages of the electronic comic data into page units so that the total data size of the plurality of page images calculated by the data size calculation unit 124 is equal to or less than a target value (specified total data size). The data compression means 122 compresses the data. When the total data size calculated by the data size calculation unit 124 is larger than the target value, the compression control unit 130 of this example increases the compression rate for pages with a higher compression order determined by the compression order determination unit 128. Compress the page image.
 <第1実施例のデータ圧縮処理>
 第1実施例のデータ圧縮処理(電子コミックデータ圧縮方法)について、図4~図7を用いて、説明する。本処理は、電子コミックデータ圧縮装置10のCPU20によって、プログラムに従い、実行される。
<Data compression processing of the first embodiment>
Data compression processing (electronic comic data compression method) of the first embodiment will be described with reference to FIGS. This process is executed by the CPU 20 of the electronic comic data compression apparatus 10 according to a program.
 まず、データ取得手段12によって、元の電子コミックデータ(画像リサイズ及びデータ圧縮を未処理の電子コミックデータである)を取得する(ステップS2)。図5に一例として示す元の電子コミックデータ8は、1ページごとのページ画像P1、P2、P3を含んでいる。 First, the original electronic comic data (image resize and data compression are unprocessed electronic comic data) is acquired by the data acquisition means 12 (step S2). The original electronic comic data 8 shown as an example in FIG. 5 includes page images P1, P2, and P3 for each page.
 次に、圧縮順位判定手段128(情報取得手段)により、取得された電子コミックデータ8のページ画像P1、P2、P3内のコマに関するコマ情報(ページ単位のコマの数を含む)を、電子コミックデータ8の情報ファイルから抽出することにより取得する(ステップS4)。例えば、図5の電子コミックデータであれば、第1ページのページ画像P1では1コマ、第2ページのページ画像P2では5コマ、第3ページのページ画像P3では6コマである。 Next, frame information (including the number of frames per page) regarding the frames in the page images P1, P2, and P3 of the acquired electronic comic data 8 by the compression order determination unit 128 (information acquisition unit) is converted into an electronic comic. Obtained by extracting from the information file of data 8 (step S4). For example, in the case of the electronic comic data of FIG. 5, the page image P1 of the first page has one frame, the page image P2 of the second page has five frames, and the page image P3 of the third page has six frames.
 次に、配信を想定するビューワ装置4(クライアント端末)に対応した電子コミックデータの変換条件(以下「変換スペック」ともいう)を取得する(ステップS6)。 Next, a conversion condition (hereinafter also referred to as “conversion specification”) of electronic comic data corresponding to the viewer device 4 (client terminal) assumed to be distributed is acquired (step S6).
 例えば、次のような変換条件(変換スペック)が指定されている。
・ページ画像の画像サイズ・・・横サイズ:960pixel、縦サイズ:1600pixel
・圧縮フォーマット・・・JPEG
・電子コミックデータの総データサイズ(ファイル総容量)・・・750Kバイト
 この変換条件は、システム利用者が、任意の値を指定できるものとする。本例では、操作手段18により指定入力し、記憶手段14により記憶する。尚、電子コミックデータの情報ファイルに変換条件が指定されている場合には、電子コミックデータから変換条件を抽出するようにしてもよい。
For example, the following conversion conditions (conversion specifications) are specified.
・ Image size of page image: Horizontal size: 960 pixels, Vertical size: 1600 pixels
・ Compression format: JPEG
-Total data size of electronic comic data (total file capacity) ... 750 Kbytes It is assumed that the system user can specify an arbitrary value for this conversion condition. In this example, the designation is input by the operation unit 18 and the storage unit 14 stores the designation. If the conversion condition is specified in the information file of the electronic comic data, the conversion condition may be extracted from the electronic comic data.
 次に、圧縮順位判定手段128によって、電子コミックデータ8のコマの数をページ画像P1、P2、P3のページ単位で判定する(ステップS8)。 Next, the number of frames of the electronic comic data 8 is determined for each page of the page images P1, P2, and P3 by the compression order determination means 128 (step S8).
 次に、リサイズ手段120によって、ページ画像の画像サイズ(縦横サイズ)の変更(画像リサイズ)を行う(ステップS10)。 Next, the image size (vertical / horizontal size) of the page image is changed (image resizing) by the resizing means 120 (step S10).
 次に、データ圧縮手段122によって、電子コミックデータ8のページ画像P1、P2、P3をページ単位にデータ圧縮する(ステップS12)。 Next, the data compression means 122 compresses the page images P1, P2, and P3 of the electronic comic data 8 in units of pages (step S12).
 この段階でのデータ圧縮(エンコード)時のQ値(圧縮後の画質を決定するパラメータである)は、予め記憶手段14に設定された設定値(初期値)である。例えば、圧縮フォーマットがJPEGである場合に、Q値を「60」とする。 The Q value (a parameter for determining the image quality after compression) at the time of data compression (encoding) at this stage is a set value (initial value) set in the storage unit 14 in advance. For example, when the compression format is JPEG, the Q value is set to “60”.
 尚、データ圧縮のフォーマット(形式)は、JPEGに限定されるものではなく、他のフォーマットで圧縮してよい。 Note that the data compression format (form) is not limited to JPEG, and may be compressed in another format.
 次に、データサイズ算出手段124によって、電子コミックデータの総データサイズ(ファイル容量)を算出する(ステップS14)。本例では、電子コミックデータに含まれる全てのページ画像のデータサイズの合計(総データサイズ)を算出する。 Next, the total data size (file capacity) of the electronic comic data is calculated by the data size calculation means 124 (step S14). In this example, the total (total data size) of the data sizes of all page images included in the electronic comic data is calculated.
 次に、データサイズ判定手段126によって、データ圧縮後の総データサイズと、ステップS6で取得した指定の総データサイズ(目標値)とを比較し、データ圧縮後の総データサイズが、指定の総データサイズよりも大きいか否かを判定する(ステップS16)。 Next, the data size determination means 126 compares the total data size after data compression with the specified total data size (target value) acquired in step S6, and the total data size after data compression is the specified total data size. It is determined whether it is larger than the data size (step S16).
 例えば、図6に示すように、データ圧縮後、データサイズは、第1ページのページ画像P1が243Kバイト、第2ページのページ画像P2が256Kバイト、第3ページのページ画像P3が300Kバイトになったため、総データサイズ(ファイル容量)は799Kバイト(=243+256+300Kバイト)である。つまり、指定の総データサイズ(目標値)が750Kバイトであるため、49Kバイト(=799-750Kバイト)の超過になった(ステップS16でYes)。 For example, as shown in FIG. 6, after data compression, the data size is 243 Kbytes for the page image P1 of the first page, 256 Kbytes for the page image P2 of the second page, and 300 Kbytes for the page image P3 of the third page. Therefore, the total data size (file capacity) is 799 Kbytes (= 243 + 256 + 300 Kbytes). That is, since the designated total data size (target value) is 750 Kbytes, it exceeds 49 Kbytes (= 799-750 Kbytes) (Yes in step S16).
 そこで、圧縮率を上げて(即ちQ値を下げて)、再びデータ圧縮を行う(ステップS18)。ここで、コマの数が少ないページ画像から優先的に圧縮率を上げる。本例では、前回よりも圧縮率を上げて、元の電子コミックデータのページ画像に対して再びデータ圧縮を行う。 Therefore, the compression rate is increased (that is, the Q value is lowered), and data compression is performed again (step S18). Here, the compression rate is increased preferentially from page images with a small number of frames. In this example, the compression rate is increased from the previous time, and data compression is performed again on the page image of the original electronic comic data.
 図5に示した電子コミックデータ8では、第1ページのページ画像P1が1コマ、第2ページのページ画像P2が5コマ、第3ページのページ画像P3が6コマなので、最もコマ数の少ない第1ページのページ画像P1に対する圧縮率を上げて(Q値を下げて)、再びデータ圧縮を行う。Q値を「55」にした場合のデータ圧縮後の第1ページのページ画像P1のデータサイズは230Kバイトになり、電子コミックデータ8の総データサイズが目標値である750Kバイトよりも大きくなるため、最初のデータ圧縮後の総データサイズよりも49Kバイト以上小さくなるまで、圧縮率を順次上げて(Q値を順次下げて)、圧縮エンコードを行う。本実施例では、Q値を「40」にすることで、目標の総データサイズとなるようにページ画像を変換(エンコード)する。 In the electronic comic data 8 shown in FIG. 5, the page image P1 of the first page is one frame, the page image P2 of the second page is five frames, and the page image P3 of the third page is six frames. Data compression is performed again by increasing the compression rate for the page image P1 of the first page (decreasing the Q value). When the Q value is “55”, the data size of the page image P1 of the first page after data compression is 230 Kbytes, and the total data size of the electronic comic data 8 is larger than the target value of 750 Kbytes. Until the total data size after the first data compression becomes 49 Kbytes or more, the compression rate is sequentially increased (Q value is sequentially decreased), and compression encoding is performed. In this embodiment, by setting the Q value to “40”, the page image is converted (encoded) to the target total data size.
 例えば、図7に示すように、第1ページのページ画像P1の縦横サイズをリサイズ直後の縦横サイズ(横960pixel、縦1600pixel)に保ちつつ、第1ページのページ画像P1に対し、Q値を、「60」から「55」、「55」から「40」と、順に下げて、データ圧縮を繰り返す。なお、Q値のデクリメント値は、-5、-4、-3、-2、あるいは-1など、任意の値を取ることができる。 For example, as shown in FIG. 7, while maintaining the vertical and horizontal sizes of the page image P1 of the first page at the vertical and horizontal sizes immediately after the resizing (horizontal 960 pixels, vertical 1600 pixels), the Q value for the page image P1 of the first page is Data compression is repeated by decreasing in order from “60” to “55” and from “55” to “40”. The decrement value of the Q value can take any value such as -5, -4, -3, -2, or -1.
 尚、容易な技術理解のため、圧縮制御手段130によって、コマ数が最も少ないP1のみ圧縮率を順次高くする場合(即ち、P1の圧縮率>P2の圧縮率=P3の圧縮率)を説明したが、このような場合に本発明は限定されない。 For easy understanding of the technology, the case where the compression control means 130 sequentially increases the compression ratio of only P1 having the smallest number of frames (that is, the compression ratio of P1> the compression ratio of P2 = the compression ratio of P3) has been described. However, the present invention is not limited to such a case.
 本明細書で圧縮順位判定手段128の圧縮順位判定及び圧縮制御手段130の圧縮制御における「コマの数が少ないほどページ画像の圧縮率を高くし」には、次の第1の態様及び第2の態様が含まれる。第1の態様として、ページ画像ごとのコマの数の大小に応じて、コマの数が少ないページ画像ほど圧縮率を段階的に高くする態様がある。この態様では、図6のページ画像P1~P3の場合、P1のコマ数<P2のコマ数<P3のコマ数なので、P1の圧縮率>P2の圧縮率>P3の圧縮率、とする。この態様では、総データサイズが目標値よりも大きい場合に1度で圧縮する画像数が多くなるが、ページ間で違和感のない画質にできる。第2の態様として、ページ画像ごとにコマの数を閾値と比較し、閾値よりもコマの数が少ないページ画像のみ圧縮率を高くする態様がある。この態様では、コマの数が閾値以上であるページ画像の品質低下を無くすことができる。前述のようにコマの数が最も少ないページ画像のみ圧縮率を高くしてもよい。 In the present specification, in the compression order determination of the compression order determination unit 128 and the compression control of the compression control unit 130, “the smaller the number of frames, the higher the compression rate of the page image” is. Embodiments are included. As a first mode, there is a mode in which the compression rate is increased stepwise as the number of frames is smaller for each page image. In this aspect, in the case of the page images P1 to P3 in FIG. 6, since the number of frames of P1 <the number of frames of P2 <the number of frames of P3, the compression ratio of P1> the compression ratio of P2> the compression ratio of P3. In this aspect, when the total data size is larger than the target value, the number of images to be compressed at a time increases, but it is possible to achieve an image quality that does not feel uncomfortable between pages. As a second mode, there is a mode in which the number of frames for each page image is compared with a threshold value, and the compression rate is increased only for page images having a smaller number of frames than the threshold value. In this aspect, it is possible to eliminate the deterioration in the quality of the page image in which the number of frames is equal to or greater than the threshold value. As described above, the compression rate may be increased only for the page image having the smallest number of frames.
 コマの数が少ないコミックのページ画像は、画像の冗長性が高い傾向にあり、圧縮率を上げて(Q値を下げて)圧縮しても、ページ画像の画質の劣化が目立ち難い。よって、電子コミックデータを目的の総データサイズ(総ファイル容量)に収める画像変換を行う場合、本発明により、見栄えのよいページ画像のみからなる電子コミックデータを自動で生成することが可能となる。 Comic page images with a small number of frames tend to have high image redundancy, and even if the compression rate is increased (lowering the Q value), the image quality of the page image is hardly noticeable. Therefore, when performing image conversion that stores electronic comic data in a target total data size (total file capacity), according to the present invention, it is possible to automatically generate electronic comic data consisting only of a good-looking page image.
 <第2実施例のデータ圧縮処理>
 第2実施例のデータ圧縮処理(電子コミックデータ圧縮方法)について、図8を用いて、説明する。本処理は、電子コミックデータ圧縮装置10のCPU20によって、プログラムに従い、実行される。
<Data Compression Processing of Second Embodiment>
The data compression processing (electronic comic data compression method) of the second embodiment will be described with reference to FIG. This process is executed by the CPU 20 of the electronic comic data compression apparatus 10 according to a program.
 第2実施例の圧縮制御手段130は、電子コミックデータの複数ページのページ画像の各々を、予め設定された初期の圧縮率でデータ圧縮手段122に圧縮させ、圧縮後の総データサイズが目標値よりも小さい場合、コマの数が多いほどページ画像の圧縮率を低くして、データ圧縮手段122により再圧縮を行う。 The compression control means 130 of the second embodiment causes the data compression means 122 to compress each of a plurality of page images of electronic comic data at a preset initial compression rate, and the total data size after compression is a target value. If the number of frames is smaller, the more the number of frames, the lower the page image compression rate, and the data compression means 122 performs recompression.
 図8において、図4に示した第1実施例のデータ圧縮処理と同様のステップには、同じ符号を付した。以下では、第1実施例と異なる点のみ説明する。 In FIG. 8, the same steps as those in the data compression process of the first embodiment shown in FIG. Hereinafter, only differences from the first embodiment will be described.
 ステップS16にて、データ圧縮(ステップS12)後の総データサイズが指定の総データサイズよりも大きいと判定された場合、第1実施例と同様に、コマの数の少ないページ画像を前回よりも高い圧縮率で圧縮し(ステップS18)、総データサイズを算出し(ステップS20)、再び指定の総データサイズ(目標値)よりも大きいか否かを判定し(ステップS22)、依然として指定の総データサイズよりも大きければ、ステップS18~S20を繰り返し、指定の総データサイズ以下であれば本処理を終了する。 If it is determined in step S16 that the total data size after data compression (step S12) is larger than the specified total data size, a page image with a smaller number of frames than in the previous example is displayed as in the first embodiment. Compression is performed at a high compression rate (step S18), the total data size is calculated (step S20), and it is determined again whether it is larger than the specified total data size (target value) (step S22). If it is larger than the data size, steps S18 to S20 are repeated, and if it is less than the designated total data size, this processing is terminated.
 ステップS16にて、データ圧縮(ステップS12)後の総データサイズが指定の総データサイズ以下であると判定された場合、第2実施例では、次のような処理を実行する。 If it is determined in step S16 that the total data size after data compression (step S12) is less than or equal to the specified total data size, the following processing is executed in the second embodiment.
 ステップS24にて、データ圧縮(ステップS12)後の総データサイズが指定の総データサイズよりも小さいか否かを判定する。指定の総データよりも小さい場合(ステップS24でYes)、コマの数の多いページ画像を前回よりも低い圧縮率で圧縮し(ステップS26)、電子コミックデータの総データサイズを算出し(ステップS28)、依然として指定の総データサイズ(目標値)より小さければ、ステップS26~S28を繰り返し、指定の総データサイズ以上であれば、前回(ひとつ前)の圧縮結果(圧縮されたページ画像)を最終的な電子コミックデータのページ画像として採用する(ステップS30)。 In step S24, it is determined whether or not the total data size after data compression (step S12) is smaller than the specified total data size. If it is smaller than the designated total data (Yes in step S24), the page image with a large number of frames is compressed at a lower compression rate than the previous time (step S26), and the total data size of the electronic comic data is calculated (step S28). ) If the total data size (target value) is still smaller than the designated total data size, steps S26 to S28 are repeated. If the total data size is larger than the designated total data size, the previous (previous) compression result (compressed page image) is finalized. It is adopted as a page image of typical electronic comic data (step S30).
 尚、本明細書で圧縮順位判定手段128の圧縮順位判定及び圧縮制御手段130の圧縮制御における「コマの数が多いほどページ画像の圧縮率を低くし」には、次の第1の態様及び第2の態様が含まれる。第1の態様として、ページ画像ごとのコマの数の大小に応じて、コマの数が多いページ画像ほど圧縮率を段階的に低くする態様がある。この態様では、図6のページ画像P1~P3の場合、P1のコマ数<P2のコマ数<P3のコマ数なので、P1の圧縮率>P2の圧縮率>P3の圧縮率、とする。この態様では、総データサイズが目標値よりも小さい場合に1度で圧縮する画像数が多くなるが、ページ間で違和感のない画質にできる。第2の態様として、ページ画像ごとにコマの数を閾値と比較し、閾値よりもコマの数が多いページ画像のみ圧縮率を低くする態様がある。コマの数が最も多いページ画像のみ圧縮率を低くしてもよい。 In the present specification, in the compression order determination of the compression order determination unit 128 and the compression control of the compression control unit 130, “the more the number of frames, the lower the page image compression rate”, the following first mode and A second aspect is included. As a first mode, there is a mode in which the compression rate is gradually decreased for a page image having a larger number of frames according to the number of frames for each page image. In this aspect, in the case of the page images P1 to P3 in FIG. 6, since the number of frames of P1 <the number of frames of P2 <the number of frames of P3, the compression ratio of P1> the compression ratio of P2> the compression ratio of P3. In this aspect, when the total data size is smaller than the target value, the number of images to be compressed at a time increases, but it is possible to achieve an image quality that does not feel uncomfortable between pages. As a second mode, there is a mode in which the number of frames for each page image is compared with a threshold value, and the compression rate is reduced only for the page image having a larger number of frames than the threshold value. Only the page image with the largest number of frames may have a low compression rate.
 コマの数の多い電子コミックデータは、一般に、冗長性が低い傾向にあり、圧縮(エンコード)時に画質の劣化が目立ち易い。よって、本実施例によれば、容量に余裕がある場合には、初期の設定値よりも圧縮率を下げて(Q値を上げて)、再圧縮を行うことで、画質の劣化が目立ち難い電子コミックデータとすることができる。即ち、電子コミックデータを所定の総データサイズ(ファイル容量)に収めるデータ圧縮を行う場合、本方式により、見栄えの良い配信データを作成することが可能となる。 Electronic comic data with a large number of frames generally tends to have low redundancy, and image quality deterioration tends to be noticeable during compression (encoding). Therefore, according to the present embodiment, when there is a margin in capacity, deterioration in image quality is not conspicuous by reducing the compression rate from the initial set value (increasing the Q value) and performing recompression. It can be electronic comic data. That is, when data compression is performed so that the electronic comic data is stored in a predetermined total data size (file capacity), it is possible to create distribution data having good appearance by this method.
 <第3実施例のデータ圧縮処理>
 第1実施例及び第2実施例では、ページ画像のコマの数に基づいて、圧縮率を調整してデータ圧縮を行ったが、第3実施例では、ページ画像における吹出しの面積に基づいて圧縮率を調整する。
<Data Compression Processing of Third Embodiment>
In the first and second embodiments, the data compression is performed by adjusting the compression rate based on the number of frames of the page image. In the third embodiment, the compression is performed based on the area of the page image. Adjust the rate.
 第3実施例のデータ圧縮処理(電子コミックデータ圧縮方法)について、図9を用いて、説明する。本処理は、電子コミックデータ圧縮装置10のCPU20によって、プログラムに従い、実行される。 The data compression process (electronic comic data compression method) of the third embodiment will be described with reference to FIG. This process is executed by the CPU 20 of the electronic comic data compression apparatus 10 according to a program.
 まず、データ取得手段12によって、元の電子コミックデータを取得する(ステップS52)。 First, the original electronic comic data is acquired by the data acquisition means 12 (step S52).
 次に、圧縮順位判定手段128(情報取得手段)により、取得された電子コミックデータ8のページ画像P1、P2、P3内の吹出しに関する吹出し情報(ページ単位の吹き出し面積を含む)を、電子コミックデータ8の情報ファイルから抽出することにより取得する(ステップS54)。 Next, by using the compression order determination means 128 (information acquisition means), the blowing information (including the balloon area in units of pages) regarding the blowing in the page images P1, P2, and P3 of the acquired electronic comic data 8 is obtained as electronic comic data. 8 is obtained by extracting from the information file 8 (step S54).
 次に、配信を想定するビューワ装置4(クライアント端末)に対応した電子コミックデータの変換条件(変換スペック)を取得する(ステップS56)。 Next, the conversion condition (conversion specification) of the electronic comic data corresponding to the viewer device 4 (client terminal) assumed to be distributed is acquired (step S56).
 次に、圧縮順位判定手段128によって、電子コミックデータ8の吹出しの面積をページ画像P1、P2、P3のページ単位で判定する(ステップS58)。 Next, the compression order determination means 128 determines the area of the electronic comic data 8 that is blown out in units of pages of the page images P1, P2, and P3 (step S58).
 次に、リサイズ手段120によって、ページ画像の画像サイズ(縦横サイズ)の変更を行う(ステップS60)。 Next, the image size (vertical / horizontal size) of the page image is changed by the resizing means 120 (step S60).
 次に、データ圧縮手段122によって、電子コミックデータ8のページ画像P1、P2、P3をページ単位にデータ圧縮する(ステップS62)。 Next, the data compression means 122 compresses the page images P1, P2, and P3 of the electronic comic data 8 in units of pages (step S62).
 次に、データサイズ算出手段124によって、電子コミックデータの総データサイズ(ファイル容量)を算出する(ステップS64)。 Next, the total data size (file capacity) of the electronic comic data is calculated by the data size calculation means 124 (step S64).
 次に、データサイズ判定手段126によって、データ圧縮後の総データサイズと、ステップS56で取得された指定の総データサイズ(目標値)とを比較し、データ圧縮後の総データサイズが、指定の総データサイズよりも大きいか否かを判定する(ステップS66)。 Next, the data size determination unit 126 compares the total data size after data compression with the specified total data size (target value) acquired in step S56, and the total data size after data compression is It is determined whether it is larger than the total data size (step S66).
 指定の総データサイズよりも大きい場合(ステップS66でYes)、圧縮率を上げて(即ちQ値を下げて)、再びデータ圧縮を行う(ステップS68)。ここで、吹出しの面積が小さいページ画像から優先的に圧縮率を上げる。本例では、高くした圧縮率で、元の電子コミックデータのページ画像に対して再圧縮を行う。総データサイズを算出し(ステップS70)、再び指定の総データサイズよりも大きいか否かを判定し(ステップS72)、依然として指定の総データサイズよりも大きければ、ステップS68~S70を繰り返し、指定の総データサイズ以下であれば本処理を終了する。 If it is larger than the designated total data size (Yes in step S66), the compression rate is increased (that is, the Q value is lowered), and data compression is performed again (step S68). Here, the compression rate is preferentially increased from the page image with a small area of the balloon. In this example, recompression is performed on the page image of the original electronic comic data at a high compression rate. The total data size is calculated (step S70), and it is determined again whether or not it is larger than the designated total data size (step S72). If it is still larger than the designated total data size, steps S68 to S70 are repeated and designated. If the total data size is equal to or smaller than the total data size, the process is terminated.
 ステップS66にて、データ圧縮(ステップS62)後の総データサイズが指定の総データサイズ以下であると判定された場合、第2実施例では、次のような処理を実行する。 If it is determined in step S66 that the total data size after data compression (step S62) is less than or equal to the specified total data size, the following processing is executed in the second embodiment.
 ステップS74にて、データ圧縮(ステップS62)後の総データサイズが指定の総データサイズよりも小さいか否かを判定する(ステップS74)。指定の総データよりも小さい場合(ステップS74でYes)、吹出しの面積の大きいページ画像を前回よりも低い圧縮率で圧縮し(ステップS76)、電子コミックデータの総データサイズを算出し(ステップS78)、依然として指定の総データサイズより小さければ、ステップS76~S78を繰り返し、指定の総データサイズ以上であれば、前回(ひとつ前)の圧縮結果を最終的な電子コミックデータとして採用する(ステップS80)。 In step S74, it is determined whether the total data size after data compression (step S62) is smaller than the designated total data size (step S74). If it is smaller than the specified total data (Yes in step S74), the page image having a large balloon area is compressed at a lower compression rate than the previous time (step S76), and the total data size of the electronic comic data is calculated (step S78). If the total data size is still smaller than the designated total data size, steps S76 to S78 are repeated. If the total data size is larger than the designated total data size, the previous (previous) compression result is adopted as the final electronic comic data (step S80). ).
 一般に吹出しの面積の小さいコミック画像はセリフ(文字)が少なく、圧縮率を上げても(Q値を下げても)、セリフを読める(視認できる)状態にあることが多い。 In general, comic images with a small balloon area have few lines (characters) and are often in a state where the lines can be read (viewed) even if the compression rate is increased (decreasing the Q value).
 尚、本明細書で圧縮順位判定手段128の圧縮順位判定及び圧縮制御手段130の圧縮制御における「吹き出しの面積が小さいほどページ画像の圧縮率を高くし」には、次の第1の態様及び第2の態様が含まれる。第1の態様として、ページ画像ごとの吹き出しの面積の大小に応じて、吹き出しの面積が小さいページ画像ほど圧縮率を段階的に高くする態様がある。例えば、図6のページ画像P1~P3で、P1の吹き出し面積<P2の吹き出し面積<P3の吹き出し面積、である場合、P1の圧縮率>P2の圧縮率>P3の圧縮率、とする。この態様では、総データサイズが目標値よりも大きい場合に1度で圧縮する画像数が多くなるが、ページ間で違和感のない画質にできる。第2の態様として、ページ画像ごとに吹き出しの面積を閾値と比較し、閾値よりも吹き出しの面積が小さいページ画像のみ圧縮率を高くする態様がある。この態様では、吹き出しの面積が閾値以上であるページ画像の品質低下を無くすことができる。吹き出しの面積が最も小さいページ画像のみ圧縮率を高くしてもよい。 In the present specification, in the compression order determination of the compression order determination unit 128 and the compression control of the compression control unit 130, “the smaller the area of the balloon, the higher the compression ratio of the page image” is. A second aspect is included. As a first mode, there is a mode in which the compression ratio is increased stepwise as the page image has a smaller balloon area, depending on the size of the balloon area for each page image. For example, in the page images P1 to P3 in FIG. 6, if P1 blowing area <P2 blowing area <P3 blowing area, P1 compression ratio> P2 compression ratio> P3 compression ratio. In this aspect, when the total data size is larger than the target value, the number of images to be compressed at a time increases, but it is possible to achieve an image quality that does not feel uncomfortable between pages. As a second mode, there is a mode in which the area of the balloon is compared with a threshold value for each page image, and the compression rate is increased only for the page image whose area of the balloon is smaller than the threshold value. In this aspect, it is possible to eliminate the deterioration in the quality of the page image in which the area of the balloon is equal to or greater than the threshold value. The compression rate may be increased only for the page image having the smallest balloon area.
 また、本明細書で圧縮順位判定手段128の圧縮順位判定及び圧縮制御手段130の圧縮制御における「吹き出しの面積が大きいほどページ画像の圧縮率を低くし」には、次の第1の態様及び第2の態様が含まれる。第1の態様として、ページ画像ごとの吹き出し面積の大小に応じて、吹き出しの面積が大きいページ画像ほど圧縮率を段階的に低くする態様がある。例えば、図6のページ画像P1~P3で、P1の吹き出し面積<P2の吹き出し面積<P3の吹き出し面積、である場合、P1の圧縮率>P2の圧縮率>P3の圧縮率、とする。第2の態様として、ページ画像ごとに吹き出しの面積を閾値と比較し、閾値よりも吹き出し面積が大きいページ画像のみ圧縮率を低くする態様がある。吹き出しの面積が最も多いページ画像のみ圧縮率を低くしてもよい。 Further, in this specification, in the compression order determination of the compression order determination unit 128 and the compression control of the compression control unit 130, “the larger the area of the balloon, the lower the page image compression rate” A second aspect is included. As a first mode, there is a mode in which the compression rate is gradually decreased for a page image having a larger balloon area in accordance with the size of the balloon area for each page image. For example, in the page images P1 to P3 in FIG. 6, if P1 blowing area <P2 blowing area <P3 blowing area, P1 compression ratio> P2 compression ratio> P3 compression ratio. As a second mode, there is a mode in which the area of the balloon is compared with a threshold value for each page image, and only the page image having the balloon area larger than the threshold value has a low compression rate. The compression rate may be lowered only for the page image having the largest balloon area.
 <モード選択>
 ページ画像の圧縮順位をコマの数により判定するコマ数判定モードと、ページ画像の圧縮順位を吹出しの面積に基づいて判定する吹出し判定モードとを、選択可能に構成することが、好ましい。
<Mode selection>
It is preferable that the frame number determination mode for determining the compression order of the page image based on the number of frames and the blowing determination mode for determining the compression order of the page image based on the area of the balloon are selectable.
 例えば、CPU20により、電子コミックデータの情報ファイルのコマ情報及び吹出し情報に基づいて、コマ数判定モードとするか吹出し判定モードとするかを自動的に選択する。例えば、コマ数が閾値(コマ数閾値)よりも大きいページのみである場合、あるいはコマ数が閾値(コマ数閾値)よりも大きいページの割合が閾値(割合閾値)よりも高い場合には、吹出し判定モードを選択するという態様が考えられる。また、吹出し面積が閾値(吹出し面積閾値)よりも大きいページのみである場合、あるいは吹出し面積が閾値(吹出し面積閾値)よりも大きいページの割合が閾値(割合閾値)よりも高い場合には、コマ数判定モードを選択するという態様が考えられる。 For example, the CPU 20 automatically selects the frame number determination mode or the balloon determination mode based on the frame information and the balloon information in the information file of the electronic comic data. For example, when the number of frames is only a page larger than a threshold value (frame number threshold value), or when the ratio of pages whose frame number is larger than the threshold value (frame number threshold value) is higher than the threshold value (ratio threshold value), A mode of selecting the determination mode is conceivable. Further, when only pages whose blowing area is larger than the threshold (blowing area threshold), or when the ratio of pages whose blowing area is larger than the threshold (blowing area threshold) is higher than the threshold (ratio threshold), A mode of selecting the number determination mode is conceivable.
 また、操作手段18は、コマ数判定モードとするか吹出し判定モードとするかの選択指示入力を受け付けることが、好ましい。例えば、コマ数が多いページ画像の画質を優先したい場合にはコマ数判定モードを選択し、セリフを確実に読み取りできることを優先したい場合には吹出し判定モードを選択するといった、操作を可能とすることが、好ましい。 Further, it is preferable that the operation means 18 accepts a selection instruction input for selecting the frame number determination mode or the blowout determination mode. For example, if you want to prioritize the image quality of a page image with a large number of frames, select the frame number determination mode, and if you want to prioritize the ability to read words reliably, select the blowout determination mode. Is preferred.
 尚、本発明は、本明細書において説明した例や図面に図示された例には限定されず、本発明の要旨を逸脱しない範囲において、各種の設計変更や改良を行ってよいのはもちろんである。 The present invention is not limited to the examples described in the present specification and the examples illustrated in the drawings, and various design changes and improvements may be made without departing from the scope of the present invention. is there.
 10:電子コミックデータ圧縮装置、12:データ取得手段、14:記憶手段、16:表示手段、18:操作手段、20:CPU、120:リサイズ手段、122;データ圧縮手段、124:データサイズ算出手段、126:データサイズ判定手段、128:圧縮順位判定手段(情報取得手段)、130:圧縮制御手段 10: Electronic comic data compression device, 12: Data acquisition means, 14: Storage means, 16: Display means, 18: Operation means, 20: CPU, 120: Resize means, 122; Data compression means, 124: Data size calculation means 126: data size determination means, 128: compression order determination means (information acquisition means), 130: compression control means

Claims (10)

  1.  コミックの複数ページのページ画像を含む電子コミックデータを取得するデータ取得手段と、
     前記電子コミックデータの前記複数ページのページ画像におけるページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得する情報取得手段と、
     前記電子コミックデータの前記ページ画像をページ単位で圧縮可能なデータ圧縮手段と、
     前記データ圧縮手段による圧縮後の前記電子コミックデータの総データサイズを算出するデータサイズ算出手段と、
     前記データサイズ算出手段によって算出された前記総データサイズが目標値よりも大きい場合、前記電子コミックデータの前記複数ページのページ画像のうちで前記ページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を高くして前記データ圧縮手段に再圧縮させる圧縮制御手段と、
     を備えた電子コミックデータ圧縮装置。
    Data acquisition means for acquiring electronic comic data including page images of a plurality of comic pages;
    Information acquisition means for acquiring at least one of the number of frames per page and the area of the balloon in the page image of the plurality of pages of the electronic comic data;
    Data compression means capable of compressing the page image of the electronic comic data in units of pages;
    Data size calculating means for calculating the total data size of the electronic comic data after being compressed by the data compressing means;
    When the total data size calculated by the data size calculating means is larger than a target value, at least one of the number of frames per page and the blowing area among the plurality of page images of the electronic comic data. Compression control means for increasing the compression rate of the page image selected based on the data compression means and recompressing the data;
    Electronic comic data compression device equipped with.
  2.  前記圧縮制御手段は、前記データサイズ算出手段によって算出された前記総データサイズが目標値よりも大きい場合、前記コマの数が少ないほど前記ページ画像の圧縮率を高くして、前記データ圧縮手段により再圧縮を行う請求項1に記載の電子コミックデータ圧縮装置。 When the total data size calculated by the data size calculation unit is larger than a target value, the compression control unit increases the compression rate of the page image as the number of frames decreases, and the data compression unit The electronic comic data compression apparatus according to claim 1, wherein recompression is performed.
  3.  前記圧縮制御手段は、前記データサイズ算出手段によって算出された前記総データサイズが目標値よりも小さい場合、前記コマの数が多いほど前記ページ画像の圧縮率を低くして、前記データ圧縮手段により再圧縮を行う請求項2に記載の電子コミックデータ圧縮装置。 When the total data size calculated by the data size calculation unit is smaller than a target value, the compression control unit reduces the compression rate of the page image as the number of frames increases, and the data compression unit The electronic comic data compression apparatus according to claim 2, wherein recompression is performed.
  4.  前記圧縮制御手段は、前記データサイズ算出手段によって算出された前記総データサイズが目標値よりも大きい場合、前記吹出しの面積が小さいほど前記ページ画像の圧縮率を高くして、前記データ圧縮手段により再圧縮を行う請求項1に記載の電子コミックデータ圧縮装置。 When the total data size calculated by the data size calculation unit is larger than a target value, the compression control unit increases the compression rate of the page image as the area of the blowout decreases, and the data compression unit The electronic comic data compression apparatus according to claim 1, wherein recompression is performed.
  5.  前記圧縮制御手段は、前記データサイズ算出手段によって算出された前記総データサイズが目標値よりも小さい場合、前記吹出しの面積が大きいほど前記ページ画像の圧縮率を低くして、前記データ圧縮手段により再圧縮を行う請求項4に記載の電子コミックデータ圧縮装置。 When the total data size calculated by the data size calculation unit is smaller than a target value, the compression control unit lowers the compression rate of the page image as the area of the balloon increases, and the data compression unit The electronic comic data compression apparatus according to claim 4, wherein recompression is performed.
  6.  前記電子コミックデータの前記複数ページのページ画像の各々の縦横サイズを指定の縦横サイズに変更するリサイズ手段を備え、
     前記圧縮制御手段は、前記リサイズ手段により縦横サイズが変更された前記複数ページのページ画像を圧縮する請求項1から5のうちいずれか1項に記載の電子コミックデータ圧縮装置。
    Resize means for changing the vertical and horizontal size of each of the page images of the plurality of pages of the electronic comic data to a specified vertical and horizontal size;
    6. The electronic comic data compression device according to claim 1, wherein the compression control unit compresses the page images of the plurality of pages whose vertical and horizontal sizes have been changed by the resizing unit.
  7.  前記コマの数に基づいて前記ページ画像の圧縮率を変更するか前記吹出しの面積に基づいて前記ページ画像の圧縮率を変更するかを、前記電子コミックデータに基づいて選択する手段を備える請求項1から6のうちいずれか1項に記載の電子コミックデータ圧縮装置。 A means for selecting, based on the electronic comic data, whether to change the compression ratio of the page image based on the number of frames or to change the compression ratio of the page image based on the area of the balloon. The electronic comic data compression device according to any one of 1 to 6.
  8.  前記コマの数に基づいて前記ページ画像の圧縮率を変更するか前記吹出しの面積に基づいて前記ページ画像の圧縮率を変更するかの選択指示の入力を受け付ける手段を備える請求項1から6のうちいずれか1項に記載の電子コミックデータ圧縮装置。 7. The apparatus according to claim 1, further comprising means for receiving an input of a selection instruction to change the compression ratio of the page image based on the number of frames or to change the compression ratio of the page image based on the area of the balloon. The electronic comic data compression apparatus of any one of them.
  9.  情報処理装置が、
     コミックの複数ページのページ画像を含む電子コミックデータを取得するデータ取得手段と、前記電子コミックデータの前記複数ページのページ画像におけるページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得する情報取得手段と、前記電子コミックデータの前記ページ画像をページ単位で圧縮可能なデータ圧縮手段と、を用い、
     前記データ圧縮手段による圧縮後の前記電子コミックデータの総データサイズを算出するステップと、
     算出された前記総データサイズが目標値よりも大きい場合、前記電子コミックデータの前記複数ページのページ画像のうちで前記ページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を高くして前記データ圧縮手段に圧縮させるステップと、
     を実行するための電子コミックデータ圧縮方法。
    Information processing device
    Data acquisition means for acquiring electronic comic data including page images of a plurality of pages of comics, and information for acquiring at least one of the number of frames per page and the area of balloons in the page images of the plurality of pages of the electronic comic data Using an acquisition unit and a data compression unit capable of compressing the page image of the electronic comic data in units of pages,
    Calculating a total data size of the electronic comic data after being compressed by the data compression means;
    When the calculated total data size is larger than a target value, a page image selected based on at least one of the number of frames per page and the blowing area among the plurality of page images of the electronic comic data Increasing the compression rate of the data compression means to the data compression means;
    Electronic comic data compression method for executing.
  10.  情報処理装置が、
     コミックの複数ページのページ画像を含む電子コミックデータを取得するデータ取得手段と、前記電子コミックデータの前記複数ページのページ画像におけるページごとのコマの数及び吹出しの面積のうち少なくとも一方を取得する情報取得手段と、前記電子コミックデータの前記ページ画像をページ単位で圧縮可能なデータ圧縮手段と、を用い、
     前記データ圧縮手段による圧縮後の前記電子コミックデータの総データサイズを算出するステップと、
     算出された前記総データサイズが目標値よりも大きい場合、前記電子コミックデータの前記複数ページのページ画像のうちで前記ページごとのコマの数及び吹出し面積のうち少なくとも一方に基づいて選択したページ画像の圧縮率を高くして前記データ圧縮手段に圧縮させるステップと、
     を実行するためのプログラム。
    Information processing device
    Data acquisition means for acquiring electronic comic data including page images of a plurality of pages of comics, and information for acquiring at least one of the number of frames per page and the area of the balloon in the page images of the plurality of pages of the electronic comic data Using acquisition means, and data compression means capable of compressing the page image of the electronic comic data in units of pages,
    Calculating a total data size of the electronic comic data after being compressed by the data compression means;
    When the calculated total data size is larger than a target value, a page image selected based on at least one of the number of frames and the blowing area for each page among the plurality of page images of the electronic comic data Increasing the compression ratio of the data compression means to the data compression means;
    A program for running.
PCT/JP2013/062750 2012-05-17 2013-05-02 Digital comics data compression device, method, and program WO2013172207A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014515571A JP5977342B2 (en) 2012-05-17 2013-05-02 Electronic comic data compression apparatus, method and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2012113515 2012-05-17
JP2012-113515 2012-05-17

Publications (1)

Publication Number Publication Date
WO2013172207A1 true WO2013172207A1 (en) 2013-11-21

Family

ID=49583615

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/062750 WO2013172207A1 (en) 2012-05-17 2013-05-02 Digital comics data compression device, method, and program

Country Status (2)

Country Link
JP (1) JP5977342B2 (en)
WO (1) WO2013172207A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017063331A (en) * 2015-09-25 2017-03-30 京セラドキュメントソリューションズ株式会社 Information processing apparatus, information processing method, and information processing program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001024896A (en) * 1999-07-02 2001-01-26 Xaxon R & D Kk Picture file format having character data independently of bit map data and its display device
JP2001101427A (en) * 1999-09-30 2001-04-13 Victor Co Of Japan Ltd Image compressing method, image compressing device, image expanding device and recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001024896A (en) * 1999-07-02 2001-01-26 Xaxon R & D Kk Picture file format having character data independently of bit map data and its display device
JP2001101427A (en) * 1999-09-30 2001-04-13 Victor Co Of Japan Ltd Image compressing method, image compressing device, image expanding device and recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KEI KAWAMURA: "Study on Super-High-Compression Coding for Comics", IPSJ SIG NOTES, vol. 2003, no. 99, 3 October 2003 (2003-10-03), pages 7 - 16 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017063331A (en) * 2015-09-25 2017-03-30 京セラドキュメントソリューションズ株式会社 Information processing apparatus, information processing method, and information processing program

Also Published As

Publication number Publication date
JP5977342B2 (en) 2016-08-24
JPWO2013172207A1 (en) 2016-01-12

Similar Documents

Publication Publication Date Title
WO2020192391A1 (en) Ocr-based image conversion method and apparatus, device and readable storage medium
JP4774816B2 (en) Image processing apparatus, image processing method, and computer program.
JP4261558B2 (en) Image processing method
JP5312420B2 (en) Content analysis apparatus, method and program
WO2008001843A1 (en) Image data providing device, image display device, image display system, control method for image data providing device, control method for image display device, control program and recording medium
JP2003531438A (en) System and method for digital document processing
JP2004172671A (en) Moving picture processing method and apparatus
US20080201635A1 (en) Document edit device and storage medium
JP4704217B2 (en) Album creating system, album creating method, and album creating program
JP5977342B2 (en) Electronic comic data compression apparatus, method and program
JP2005182735A (en) Document data display device, cellular phone device, document data display method, document data display program, computer-readable recording medium with it recorded, document data printer, document data output device, document data output method, document data output program, and computer-readable recording medium with it recorded
JP6128898B2 (en) Information processing apparatus, control method for information processing apparatus, and program
JP2006262442A (en) Image editing apparatus and image editing method
JP5501915B2 (en) Layout selection device, layout selection method, layout selection program, computer-readable recording medium, content display device, and content creation method
JP2006303937A (en) Image display, image displaying method and program for executng the same
JP2009065462A (en) Device, method, and program for summarizing video
WO2014042051A1 (en) Content creation device, method, and program
JP2011118818A (en) Image processing device
US8988423B2 (en) Electronic album generating apparatus, stereoscopic image pasting apparatus, and methods and programs for controlling operation of same
CN103136171B (en) E-book making method based on shock wave flash (SWF)
JP5780726B2 (en) Multi-column processing device, multi-column processing method, multi-column processing program, computer-readable recording medium, and content display device
JP4584115B2 (en) Image encoding apparatus, image encoding method, image encoding program, and computer-readable recording medium recording the image encoding program
JP4164458B2 (en) Information processing apparatus and method, computer program, and computer-readable storage medium
CN111722771A (en) Image association display method and device and computer readable medium
US8369637B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13791204

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2014515571

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13791204

Country of ref document: EP

Kind code of ref document: A1