Xueba's computing system

Chapter 13 Looking Forward to the Future 2

Chapter 13 Looking Forward to the Future 2
The color number problem can be solved by collecting a large amount of image data through crawlers and then making a statistical arrangement.

But the other problem - the size problem - is not so easy.

At first glance, the size problem seems to be the easiest to solve, but it is not.

Because Lin Yuan couldn't call the admissions office of Zijin Aviation School and ask them to provide the length and width of the admission letter, the position and size of each picture on it, and the position and size of each word in electronic form.

The size is not just the size of the admission letter itself, but also includes the size and position of every pattern and font on it.

If you have a little understanding of digital images, you will know that it is impossible to replicate an identical physical object based solely on a picture of the physical object found on the Internet.

Because there is a problem with any photography of real objects - perspective and depth of field.

Simply put, humans are three-dimensional creatures. But pictures are two-dimensional. Taking a picture is to project three-dimensional space into two-dimensional space. So there must be distortion.

To obtain the original appearance of a picture, it is necessary to perform geometric transformation on the picture. The key to geometric transformation lies in the reference object.

Because you can't know where the photographer was standing when taking the photo, or the various angle parameters of the camera, so you can only find anchor references from the picture.

The most common reference object is usually a table, because almost all tables have vertical sides.

Whether it is a right-angled or rounded-cornered table, its horizontal and vertical sides are generally vertical. However, it is almost impossible for them to be vertical when projected into a photo.

By obtaining the angles of the two lines on the two-dimensional plane, we can deduce the parameters of the geometric transformation, because different shooting angles will inevitably lead to different angle parameters.

Nowadays, digital image processing tools such as Halcon and OpenCV have already encapsulated such common image processing functions. Therefore, Lin Yuan only needs to set the parameters and call it.

But the problem right now is - the evil beauty.

In this age where photos are no longer photos and are full of photo frauds, many times the phone automatically turns on the beauty function without the photographer's knowledge.

This results in the captured image containing data that is no longer original. For example, the lines are stretched, or even worse, they are distorted and then stretched flat.

As a result, the photos that Lin Yuan restored always had these distortions. Either the corners were crooked, or some of the fonts on them were unreal.

In desperation, he had to turn to the computing power system for help.

Lin Yuan used the computing system to correct the image.

Image correction is a common function of the computing system because its training materials can be found everywhere. Whenever Lin Yuan looks at the laptop screen or the mobile phone screen, he sees a two-dimensional image.

These two-dimensional images are the best training materials for computing systems.

It can even be said that as long as Lin Yuan uses his phone, the computing system is collecting two-dimensional image materials.

Therefore, letting the computing system complete the final image beautification is a piece of cake.

Why didn't Lin Yuan just let the computing system generate an admission letter with one click? First, Lin Yuan didn't want to waste precious accumulated computing power, and didn't want to bear the side effects of a large number of calculations. The final image beautification requires much less calculation than directly generating it with one click. Naturally, the computing power consumption and side effects are much smaller.

Secondly, Lin Yuan didn't like to ask the computing system for help in everything, otherwise he would become a puppet of the system. This would make him feel uncomfortable - what if he became the shell of a hermit crab?

Lin Yuan's mind moved slightly.

【Set computing power: 50T/S. 】

As is customary, he set a very conservative value.

In less than three seconds, a beautified admission letter with his portrait on it appeared before his eyes.

【Zijin Aeronautics and Astronautics University】

【Graduate Admission Letter】

【Name: Lin Yuan】

【Major: Computer Science and Technology】

. .

The system also considerately converts the digital format of the image into the print format - CMYK.

There are two pictures in total, both front and back, with 2K resolution. Overall, it is not big, only about 10M.

But the next thing was troublesome, because the computing system could collect input through Lin Yuan's eyes, but there was currently no way to output data. Therefore, even if the final generated image was right in front of him, Lin Yuan could not download it.

'System, can you generate a WIFI in my brain so that we can communicate wirelessly in the future?'

There is no response from the system.

'Bluetooth is also OK, although the speed is a bit slower.'

"If that doesn't work, Morse code will work too."

'Oh my god, I don't want to lose!'

In the end, Lin Yuan had no choice but to accept the only feasible solution - manual defeat.

Because all data in the computer world are numbers, and pictures are just a bunch of 8-bit bytes of numbers.

10M is approximately equal to 10 to the power of 7 bytes.

Ten million bytes!!!
Each byte looks like this: 1A, 2B. Two-digit characters consisting of 0~9, A~F.

Lin Yuan wants to input ten million such characters into the computer.

If two bytes are input per second, then 120 bytes are input per minute, 7200 bytes are input per hour, and 24 bytes are input in 172 hours.

Lin Yuan would need to type continuously for about two months without sleep.

It has to be said that a small snowflake in the computer world is a mountain in the real world.

All of this stems from the powerlessness of the human brain and limbs when faced with CPUs measured in G.

"Alas, carbon-based life is indeed insignificant!" Lin Yuan could only laugh at himself.

'But I am an intelligent carbon-based life form.'

'The system will blur the non-important areas of the notice and only ensure the resolution of the important areas.'

Most of the areas on a notice have small color changes, so these areas are directly blurred. Then do a reverse sharpening process.

However, for areas with richer content, such as text, signatures and seals, and photos, the resolution must be guaranteed.

In fact, the area on a notice that needs to ensure resolution is only about 20%.

Lin Yuan then lowered the image resolution to 1080P. After all, he was just going to use this certificate to get a tutoring job, not to deal with any authorities, so 1080P resolution would definitely be enough.

Since the overall data volume of 1080P is only three-quarters of 2K, 80% of the negligible area will be cut off.

Lin Yuan's time for manual data input was reduced to more than 200 hours.

This time is still too long. Lin Yuan wished he had a pair of laser eyes so he could type the data directly into his notebook.

In order to save time, Lin Yuan abandoned the cover. Because everyone's admission letter cover is the same, and there are not many words on the cover, and the picture is not very clear. So Lin Yuan simply generated a cover himself, and only the body of the letter was generated by the system.

So the manual input time was cut in half again, to 100 hours.

A week later, a genuine admission letter for graduate students from Zijin University of Aeronautics and Astronautics was finally issued.

(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like