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.