LONDON — Hungary’s highest court on Tuesday overturned the conviction of a camerawoman who was filmed kicking refugees at the height of the migrant crisis in 2015, briefly becoming a symbol of the country’s hostility to people fleeing the war in Syria.

The court acknowledged in a statement that the conduct of the camerawoman, Petra Laszlo, was “morally deplorable and against the law,” but found that the lower courts had wrongly convicted her of disorderly conduct, a misdemeanor under Hungarian law. If there had been disorder, it said, the migrants who ran through a police cordon were to blame.

“It was not the conduct of the accused that disturbed peace in the community, but the charge of several hundred immigrants, resisting police intervention,” the court said.

Instead of a misdemeanor, Ms. Laszlo should have been charged with “disturbance,” a regulatory offense usually punished by a fine, the court ruled. The statute of limitations for the lesser charge has expired, so she will not be punished for the incident.