Write a program that is used to increase the deletion of a picture of the city

Source: Internet
Author: User
A JPG format map, which has the names of major cities, write and delete changes to the city on the program!


Reply to discussion (solution)

Actually very good to do ...

This is more difficult.

Your JPG-formatted map with a city name should also be generated by the PHP program ... Or just a JPG of the original picture ....

is a single picture.

You show examples of pictures and actions of the target
I give you the code (the condition is not sufficient, there is no solution)

First there is a picture (this picture is not a picture of any city)
And depending on your situation, for example, which city you need.
Write something on the coordinates of the response on the picture
Output picture

For example, write a program, the map of Inner Mongolia This city delete, only delete the word

Your response to my reply has been delayed by 24 hours, so I will respond to you at most 240 hours later.
1, the Union ancient is the provincial division, not the city.
2, the algorithm is also very simple:
A) positioning
b) Replace the pixel of the anchor point with the pixel on the left of the anchor point
D) Anchor point = Anchor Point + 1
e) Repeat B until the pixel of the anchor point = = The pixel to the left of the initial anchor point

Your response to my reply has been delayed by 24 hours, so I will respond to you at most 240 hours later.
1, the Union ancient is the provincial division, not the city.
2, the algorithm is also very simple:
A) positioning
b) Replace the pixel of the anchor point with the pixel on the left of the anchor point
D) Anchor point = Anchor Point + 1
e) Repeat B until the pixel of the anchor point = = The pixel to the left of the initial anchor point
The first answer is the bright spot.
Not very clear, the obvious problem of an image processing, why in this section?
Even if you need PHP to call, it seems to be to call the C-written program to achieve the corresponding function more efficient bar

This is an interview problem, the interview is a PHP programmer, it is impossible to write in C,, and there is your solution, seemingly not feasible.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.