Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method of calculating the zoom ratio of a picture

A technology of image scaling and scaling, which is applied in data compression, computer graphics and image processing, and can solve problems such as ineffective use of wrong questions and troublesome collection of wrong questions.

Active Publication Date: 2018-12-25
浙江万朋云软件技术有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For problems such as troublesome collection of wrong questions and ineffective use of wrong questions, etc., after-school platform only needs to take photos and upload wrong questions, and at the same time export the wrong question book with one click, so that sorting out wrong questions is no longer a problem, it has been solved Wrong questions, improving grades is a must!

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described below.

[0037] A method for calculating the zoom ratio of pictures, the main components are: a client, used for users to submit wrong content pictures and related data; a server, used for receiving requests from clients, and calculating font height information of pictures according to algorithms, and assembling wrong titles The word information of the question book, and return the assembled word result information to the client.

[0038] Concrete steps of the inventive method:

[0039] Step (1), establish a picture font height set DSA i = {}, font height mode DSB = {};

[0040] Step (2), dividing the picture into n parts according to the ratio;

[0041] Step (3), for each picture block P after cutting i Carry out progressive scanning, 1≤i≤n, calculate the line height A of the text according to the RGB color value of the pixel i , and record the font height in the mode set DSB={{A i , Weight i}}; Weight i Indicates...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for calculating a picture zoom ratio. The method comprises the following steps of: establishing a font height set and a height mode in a certain line of a picture; dividing a picture into components according to a set proportion; scanning each picture block line by line after cutting, calculating the line height of the text, eliminating the value of the line heighttoo small and too large; establishing a picture font height set; calculating an average value of the font height of the current image block according to the font height set of each picture block, obtaining the average value of the font height of the picture and judging whether the font height is within a set norm; the set of modal numbers being arranged from high to low according to the modal numbers; calculating the average value and obtain the absolute value through the formula; comparing the calculated font height with the standard five-point font height, the zoom ratio of the current picture being obtained; the final zoomed height and width of the picture being calculated according to the zoom scale and compared with the current word width and maximum height, and the resulting heightand width being assembled into the word. The invention not only saves paper, but also ensures clear picture.

Description

technical field [0001] The invention belongs to the fields of data compression and computer graphic image processing, and relates to an algorithm for calculating RGB color values ​​of picture pixels. Background technique [0002] For problems such as troublesome collection of wrong questions and ineffective use of wrong questions, etc., after-school platform only needs to take photos and upload wrong questions, and at the same time export the wrong question book with one click, so that sorting out wrong questions is no longer a problem, it has been solved Wrong questions, improving grades is a must! [0003] In addition, due to the relatively high pixels of the current photo-shooting equipment, the size and size of the generated pictures are too large. In order to avoid too many word pages printed out of the wrong book due to such pictures, they should be scaled and assembled in the word document with an appropriate ratio. , saving paper while ensuring the clarity of the pi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T3/40G06T7/90
CPCG06T3/40G06T7/90
Inventor 何永志黄雪芹汪瀛波
Owner 浙江万朋云软件技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products