E
E
eric_idle2017-01-08 01:18:12
Python
eric_idle, 2017-01-08 01:18:12

How to prepare an image for QR code recognition?

The zbarlight Python library recognizes only high-quality qr images, the slightly beveled photo of the qr code is no longer there. Are there any ways to prepare a photo for recognition? Preferably working more than once.

Answer the question

In order to leave comments, you need to log in

24 answer(s)
X
Xander017, 2017-01-08
@Xander017

I would try these instructions:
I do not think that this is the only library, maybe it's worth looking for more?

A
alex maslakoff, 2017-01-08
@teke_teke

try PIL library

S
Saboteur, 2017-06-22
@mak_ufo

The brain works the way it used to work.
Everything that you have now achieved (being distracted by your thoughts instead of attending to the current task), you have accumulated long and hard work all your previous life.
To develop the ability to concentrate on unpleasant and uninteresting things is done in the same way - you try to do it regularly through force. After a few years, the brain will get used to the new behavior.
You can call it willpower - the ability to consciously adapt to uncomfortable conditions.
PS Since childhood, such things have been trained. The older you get, the more difficult it is, and even the fact that you are aware of a specific flaw does not make it easier to get rid of it.

P
Puma Thailand, 2017-06-22
@opium

give up the Internet
buy a push-button phone for 300 rubles

M
Maxim Timofeev, 2017-06-22
@webinar

You have psychological problems. Why are you looking for an answer on it resource? Even if someone had something similar, the reasons may be different. There are a lot of them and what they advise you, not knowing the real reasons, may not only not help, but also aggravate the problem. Just go to a specialist. He will find the reason and give advice. Do not joke with such things, in the early stages everything is treated and simply, delay it and there may be sadness, very, very big sadness.
Once again:
problems with the PC or software - on the toaster
health problems - to the doctor.

M
MGriboedoff, 2017-06-23
@MGriboedoff

You don’t have anything special or inferiority or any serious problems - congratulations, relax.
If you are able to play a shooter, drive a car and not get stuck at the same time - everything is more than normal. There are people who can't even read a line, but you wrote a whole message.
With regards to diseases. Illness is when you go beyond:
a) you have hallucinations (sounds or visuals)
b) you remember everything and maybe also behave like a sociopath
Norm in the middle, so we are all sick in some sense, we are just within the norm. But the "treatment" here is exclusively yours, and this is your conscious choice: do you need to change yourself or not.
In short, everything that requires a long study does not give your brain a "buzz of victory" (the release of chemicals). Justify for yourself why you need this or that knowledge, and your brain will begin to produce the necessary substances for the process of retaining interest. As at the beginning, if it is difficult even to sit down stupidly, so in the process you will understand that you are moving towards the goal, and substances will be released. Moreover, if there is no real need for this knowledge, fantasize before starting classes, you have more imaginative thinking, judging by your problems. You can just do creative activities (drawing, music, etc.). Programming is still not to say that it is a creative activity, all algorithms have been written before you... you just combine and study technologies and developments in code structuring. It's rare to write something new.
1) If you break even to start studying something voluminous
There is a "hack" for those who cannot force themselves to start doing what they do not want by an effort of will. When studying physics and chemistry, for example, it is difficult to start, then before starting, imagine a fictional situation, which of course is connected with the real world. Fantasy should require you to possess certain knowledge. Imagine only the overall vivid picture, spend a couple of minutes on it no more. Accept for yourself the fact that the learning process is designed to give you knowledge in the right order for faster learning. The brain got what it wanted, you were able to start. Memorize the phrase "take it as a fact."
2) How zalipon begins
You have to memorize the terms, you go into "zalipon" when you start fantasizing while studying ...
3) Why did you fall asleep or don’t even remember what you read
When you visualized the data that you received and fantasized about what you hadn’t read about yet (and it’s not true or not quite right). And then you stumble upon information in the book that refutes your fantasies. Possible reactions: aversion to the process, or general erasure of information. This is a normal reaction of the brain, it's like stress. As during hostilities, unprepared people get lost and nothing, then they can’t tell, they confuse the sequence of what happened, etc.
4) What to do
At the study stage, you must memorize facts, presenting a minimum of images. Accept what you read as a fact. Do not go beyond the limits of the information that you received in images ... do not invent. This is not required during the learning phase. That's what you have to fight. You need to present everything exactly as it is written without additions, for better memorization.
5) When to Use Imaginative Thinking
It is clear that having some true knowledge, fantasizing, you can, with some degree of probability, get the right answer or directions for working out, conducting experiments, etc. But it is necessary when you make a decision, for example, to do something or not. When you try to sort out all the pros and cons, you make a subjective decision regarding your worldview. Here, imaginative thinking helps to do it quickly and correctly for you personally at a particular moment in time. This method is not suitable for obtaining already known knowledge. Watch video lessons at lectures, go, you can get information through visual presentation in a more convenient way. If you are doing research and trying to create a new energy-intensive battery. Here you can use imaginative thinking to understand what you can try to do, where to move, etc. Then you resort to both the conceptual apparatus and visualization when planning the course of work or experiment, etc. Make calculations relying only on fantasy is stupid and dangerous.
PS
Red pill:
To live and get high from life - do not bother.
Blue Pill:
To bother and learn to get high from this process.
And you can try both at different periods of life several times. It can be compared to how some become Buddhist monks. The bottom line is that you can become one and stop being one as many times as you want and this is not condemned by anyone.
PSS>
I wanted "shorter", but somehow it turned out long.

I
iSergios, 2017-08-17
@iSergios

I will probably give the most original advice. Do it. This is. His. Weapon.
There was such a problem. Probably still there, but I just learned to get around it. Let me tell you right now, there is no cure. If your attention jumps like that, then you will never become a crammer, capable of doing something monotonously for days on end. But this is not inferiority, but a feature in the best sense of the word. People like you and me are ideally suited for a ragged rhythm and a schedule like "today is thick, tomorrow is empty." When you set a goal for yourself, say to read a book/chapter... your brain will resist it and try to switch. Let's use it from the other side: we set a short-term goal - say, some part of the work - and immediately determine what we will switch to. From interesting. You can find an article in advance that you really want to read. Or just keep some kind of your pet project in the background, which is more pleasant to torment than the current work. Well, or even a toy (but here it is important not to overdo it). All. You will be surprised, but your brain, knowing that a little more, and it will switch to something else, will work in a completely different way. By the way, [email protected]@b it will not work. It is necessary to switch fully and necessarily with benefit. You should definitely feel progress in both directions. Otherwise it won't be very good. And yes ... It is time to relax - relax.
If you do everything right, productivity will increase significantly. Thanks to switching, you will be much less tired emotionally, and this has a good effect on motivation and general condition.
The method does not work or works poorly when exhausted. The latter is treated with sleep for at least 8 hours with early waking and perhaps the most innocuous preparations such as Ginkgo biloba extract.

A
Andrey Amsteady, 2017-06-23
@amsterdy

There are only two reasons for this.
1. You are not interested in the subject of current employment.
2. Your mind is too “rocked”.
Solutions:
1. Do something that is interesting to the point of madness.
2. Meditation.
I'm not kidding about meditation.
Good luck.

N
Nordwood, 2017-06-27
@nordwood

Don't worry bro, you're not the only one. Personally, I solved this issue with a warm-up. It's like in sports, before the exercises you need to warm up the muscles. Before any intellectual activity, I overclock my brain by playing the guitar, or I solve examples from Scanavi's brain problem book. The main thing is to find not a monotonous activity, but one that you like.

D
Dagaz of Suriname, 2017-06-27
@dagaz_of_suriname

I skimmed through the answers. I will support people who say that you need to teach the body to work in a different mode / warm up the attention muscle / meditate. And I will add. It's definitely a pattern. And you can work with it in different ways. I suggest paying attention to what I use myself, because I think this is the fastest and surest way to heal myself. Well, in general, I just like to know)
There is such a thing - cosmic energy. In a nutshell and on the fingers - these are the skills of controlling your consciousness. And with the help of your consciousness, you can heal your body and move to the astral plane and much more. Regarding absent-mindedness / mental prostration: in my opinion, the frequencies of the White Sun and the Pivot Point can help.
They are available in trial mode in the form of video recordings. You need to turn on the video, close your eyes, position your body comfortably - relax (!ideally - standing!), And, roughly speaking, tune in to the video, strive to fall asleep. let go of yourself. accept. open up. here . The response is instant. In order to fully own the frequency - to discover it yourself - you can go through the path of learning.
The frequency of the White Sun can be snatched here: magicgeo.ru/node/128
And the frequency of the Pivot Point is shown here: magicgeo.ru/node/328
I will add descriptions:

15. White Sun
Frequency of the anomalous zone. Cleanses energy meridians, activates neural connections and the nervous system as a whole. Raises the level of consciousness and improves memory. Removes the effects of magical influences.

29. Pivot point
Opens access to unlimited resources of cosmic energy. This new frequency creates a certain resonance in the higher energy centers, which can be perceived as an unwinding funnel centered on the pineal gland. This is a resonant receiver that allows you to turn on a high-quality energy resource. This energy of teachers, magicians, shamans. It is practically poured into space, but for its reception and use, the necessary resonance is necessary, which is the frequency of the Pivot Point. This is an unlimited resource of the highest quality energy, which allows you to improve the quality of life, discover new resources in yourself, increase the level of awareness, restore energy and harmonize the fields of energy centers and aura shells, and restore hormonal disorders. The use of this energy increases the level of internal endorphins in the blood and gives an ecstatic state.

Well, here, if you can contact me in a telegram. Be healthy =) My first post.

V
VeronichkaM, 2017-08-18
@VeronichkaM

So maybe your problem is with concentration at all, but with the motivational part and setting goals? I assume that since you asked your question here, you will be able to master this large number of letters in the answers, as you are looking for a solution to the problem. Thus, we set ourselves the task of "solving the problem." And in the situations you describe, for example, you may not see the prospects, the goals for which you are engaged in a particular business and thereby lose interest and control over attention. I saw such a test https://testometrika.com/personality-and-temper/a-... for motivation to succeed. You can check the motivational area. There are also wonderful sites like b17 where psychologists sit and you can find a specialist with a free consultation.

C
CityCat4, 2017-06-22
@CityCat4

It happens to me when I'm very tired. This is a kind of indicator for me - "it's time to quit work / play and go butt the pillow." When a decision, which in the normal state is made in seconds, requires a serious concentration of attention.
If this is when there is no fatigue, when you sleep well, well-fed and (conditionally) satisfied - apparently then see a doctor ...

R
Raphael™, 2017-06-22
@maxminimus

perhaps this is ordinary dementia + indifference + lack of independence - that is, underdevelopment
often people do not want to work with their heads - this is normal and very common by the
way, the Chinese officially call us underdeveloped in their designation of our state
go to a psychologist
and join the army

L
lere, 2017-06-22
@lere

Get rid of social media...

I
Ilya Dzensky, 2017-06-22
@idzenski

Here is a summary:
1. Check the level of motivation (whether I'm rushing from what I want)
2. Drink glycine and other substances to increase concentration.
3. Train concentration with the Pomodoro method. Or Yana Frank.
4. Force yourself to do one thing without stopping for 5 minutes. Exactly 5. Then it sucks and turns into 50.
I don’t believe that you can’t work with concentration even for 15-20 minutes. If so, then you have more problems at the level of vitamins and body chemistry. Even my 5-year-old daughter can draw for 2 hours without a break.

A
Andrey Larin, 2017-06-22
@engine9

It is important to understand whether it is with the concentration of problems, maybe you are just sick of what you are doing. I would start with an honest answer.
Are there any activities where there is no such problem? Like games?

S
SV999Z, 2017-06-23
@SV999Z

Was it always like this, or did it start somewhere?
There is a suspicion of a big hello from the parents and going into "oppositional defiant disorder". To a psychotherapist with this, only a sane person will have to be looked for.

S
Sergey Ryzhkin, 2017-06-23
@Franciz

https://www.youtube.com/watch?v=FwvUnwJxIBI

D
Dmitry, 2017-06-23
@EvilsInterrupt

Go to Google and type "Maxim Dorofeev". This dude will save your life. His lectures are on YouTube.
Briefly: If you catch yourself thinking that you are dreaming about xs something or thinking again about "But then you should have said ....", but you are not doing something that is important to do right now. It means "monkey" (see \ read Dorofeev or Tim who invented a rational type and a monkey and other personalities). This means that the fucking monkey does not stick what needs to be done!
Which brain takes on a task, difficult or important? The answer is wrong! He takes UNDERSTANDING!
Did the monkey understand? Is it clear what to do? This already suggests that you can move forward, at least break it down into subtasks. And this must be done. Then if the task, according to subjective estimates, is more than 10\20 minutes,

C
Chelman, 2017-06-23
@Chelman

If we approach the question seriously, that is, from the point of view of psychology, then the answer will be as follows: modern psychology (some of its directions) says that if we do or do not do something, then there is a reason for this in the subconscious and this reason there is a positive good intention towards us. It's like a soldier whom we once put into service and he helped us solve some problem, but the fact is that the soldier is still performing his tasks, but now this has begun to interfere with us - goals, interests, etc. have changed. d.
The easiest theory to understand that describes such mental phenomena is the theory of the parts of the personality in NLP, and the most effective, in my opinion, method of quickly and effectively working through the parts of the personality in order to eliminate the negative results of their activity is Essential Transformation.
Video courses teaching the process of essential transformation can be found on the Internet, on torrents.
True, I have not yet seen the best course, from Yu. Moshkin and Yu. Chekchurin, in free access, but you can buy a recording for about 2000 rubles. on the official site. If you are from Moscow or St. Petersburg, then go to offline classes when they are available - the technique is very simple and very effective. Good luck!

A
Alexander Sinitsyn, 2017-06-24
@a_u_sinitsin

Can't concentrate on your studies... join the army. Everything is simple there, I lost concentration, found an outfit out of turn or some other adventures on my ... neck))
Or, as an option without an army, martial arts, like Wing Chun. There, when they were bobbing with their hands, I got distracted, immediately got in the ear. Concentration and train.

L
Leviophan, 2017-06-28
@Leviophan

I can advise you to write down, sketch by hand what you are learning or what you should concentrate on. It helps me remember and understand better.
Well, I agree with everyone that it is worth limiting external stimuli (sounds, light, etc.).
Another thing that works is .. imagine that what you are learning is like a series or a movie that you can retell to a friend. Those. perceive not as stressful, not interesting information, but vice versa.
In general, the problem is very familiar to me, I withdraw into myself even when people talk to me, i.e. a person has been telling me something for about 10 minutes, but I only heard the beginning and the rest of the time I looked at one point and disconnected from the conversation.

M
Maxim Kotenko, 2017-07-05
@mistik_max

In fact, this is a problem of 99% of the people of the planet, and if you have come to realize it, then the only way out is to improve your concentration, and here all the methods that suit you are good)

K
Konstantin Adrianov, 2020-04-02
@Const_Adry

Look, I remember one psychologist advised to write down your thoughts, exactly what you constantly think about. Write down so that these thoughts do not interfere with sleep. So you can try to do that. And you will be happy)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question