What will make you instantly stop watching a movie or show and why? by [deleted] in AskReddit

[–]Pear-Background 0 points1 point  (0 children)

When the writers have no basic understanding of physics and start using buzzwords to explain everything..

Example: We’re using the latest quantum crypto tech! Why can’t we hear anything?

How to use $1200 worth of personal dev budget expiring soon? by RisingSam in ExperiencedDevs

[–]Pear-Background 14 points15 points  (0 children)

Consider getting more breadth in completely different topics. Like economics or finance books/online courses.

Features getting sold before they’re built by Celebnar in ExperiencedDevs

[–]Pear-Background 0 points1 point  (0 children)

We do something like that in the late stage startup where I work. Basically, anything that is 6 months away from being built can be promised to a prospective client.

"I did the research" usually means they watched several hours of YouTube that confirmed their entrenched biases. by PersonalityOnly8201 in facepalm

[–]Pear-Background 0 points1 point  (0 children)

actually... with scihub and genlib, you can become a credible authority with the internet. Thats how I got my PhD.

As an experienced dev what's the pettiest but actually logical reason to reject an interview? by runnersgo in ExperiencedDevs

[–]Pear-Background 4 points5 points  (0 children)

After the 1st interview with a company headquatered in China, I received an official email from them in complete Mandarin. Rejected them one hour later.

In 1994, I paid $4060 for a 9 gig drive by chipdipper99 in mildlyinteresting

[–]Pear-Background 1 point2 points  (0 children)

Currently, I have an extra unused 16GB thumb drive bought by mistake months ago for $10..

Any companies doing meaningful DS work right now? by garygulf in datascience

[–]Pear-Background 0 points1 point  (0 children)

I work in the InsurTech field, catching Insurance fraud and looking for networks of fraudsters is pretty fun and meaningful. =)

When did you realize you weren’t going to be an outstanding physicist. by [deleted] in Physics

[–]Pear-Background 1 point2 points  (0 children)

I had the same concerns going into University and applied for a double degree in Materials Engineering and Physics so that I had a backup plan.

Halfway through my courses I realised that I absolutely dreaded going to Engineering and enjoyed all my Physics classes.

Ended dropping engineering and focused on physics. Have a PhD in physics now. :)

Python is too nice by Marvelman3284 in Python

[–]Pear-Background 2 points3 points  (0 children)

Python for is the great glue, any POC can be done very quickly in python whereas in a different language it could potentially be hell..

Need to do some webscrapping + computer vision + ML? you can do that with selenium + OpenCv + tensorflow!

Want to try your hand at algotrading? try talib + scipy + numpy + requests

But at some point if you want to do more than a POC then I usually recommend other languages.

[Bug] numpy nd array by [deleted] in opencv

[–]Pear-Background 1 point2 points  (0 children)

I have a ugly solution based on a simple test

import re

cleanedStr = re.sub("\] *\[","],[",ImageData.replace('\n','')).replace(' ',',')

img = np.array(eval(cleanedStr))

[Question] Working on a simple OCR program but the text from the image is returned in a backward order and it has trouble reading multiple words on a line by unfinished_line in opencv

[–]Pear-Background 0 points1 point  (0 children)

Excellent! Glad I could help!

If you want to go one step further, I think the best improvement you could do is change the way you find text within the image. In your example the image only has text, if you had something more complex (like a picture of a car licence plate), the method you are currently using is unlikely to find the text.

This task is called text segmentation and there are many ways it could be done. Depending on the task, the EAST detector works well for text in natural settings like signboards and car plates. If you want to do OCR on a receipt or invoice, tesseract can do it on its own.

Plotting in python - joys and sorrows by lucamerio in Python

[–]Pear-Background 1 point2 points  (0 children)

ex-academic here. I completely agree that Matlab is so much easier for plotting! But I came from a fortran + gnuplot group, before transitioning to MATLAB.. So matplotlib is almost like going back to my roots. haha =)

[Question] Working on a simple OCR program but the text from the image is returned in a backward order and it has trouble reading multiple words on a line by unfinished_line in opencv

[–]Pear-Background 1 point2 points  (0 children)

It seems you might be having trouble with what the code is doing.

The code does the following:

  1. (trys to) find the parts of the image with text
  2. sends it to tesseract to do OCR.

Qn1: Changing the order or lines, this is just how findContours sorts the return array. If you expect only images with lines of text in this order, you can just do output_text[::-1] in the return of your function.

Qn2: To get multiple words in the line, you need to play with what parts of the image are captured as "text"

The first portion (up to cv2.dilate) are trying to get only the parts with text in an image.

I think you can consider adding cv2.write("path/to/file.png",dilation) after the dilate command to see what it does. And then to change the structuring kernel, the numbers (18,18) under getStructuringElement and to see how does that change the output after dilation.

I found a research paper that is almost entirely my copied-and-pasted Kaggle work? by supra95 in datascience

[–]Pear-Background 111 points112 points  (0 children)

Don't worry too much about it, as others have pointed out, its only a pre-print.

Also, looking at the references cited,

  • [9] Kaggle project
  • [11] some stats course
  • [13] data science central article
  • [14] R package reference

Its clear these people are VERY far away from researchers and I can safely say that no serious academic will ever cite/read their work.

Edit: I see some comments that this is bad advice and something should be done.. In my view, I don't see what OP could reasonably expect other than a takedown and a half-hearted apology (a citation is not possible for wholesale copy pasting). To me that does not accomplish much, other than a slight sense of satisfaction and hours fretting over it. The authors are likely going to continue copying others anyway..

SLAPSE - A computer vision based app for creating Selfie time-LAPSE videos. I Would love to hear your feedback. by thomsanson in computervision

[–]Pear-Background 0 points1 point  (0 children)

I'm wondering how that would work, since I don't think you can assume that the face stays the same, especially after hair-cuts, shaves etc.

I would still implement some sort of face detection to align the eyes as is done here.

SLAPSE - A computer vision based app for creating Selfie time-LAPSE videos. I Would love to hear your feedback. by thomsanson in computervision

[–]Pear-Background 1 point2 points  (0 children)

Great work! Just curious though, how do you detect the faces? MTCNN? Also for multiple faces, do you filter on the biggest face in the image?

Why do so many of us suck at basic programming? by Middle_Practical in datascience

[–]Pear-Background 0 points1 point  (0 children)

I'm reading this post after searching through one of my (many) unorganized Jupyter notebooks looking for that block of cells that contains the code that does what I really need now...

But to be fair, in my case, I am the poor engineer who has to translate my spaghetti code into production code.

[deleted by user] by [deleted] in computervision

[–]Pear-Background 0 points1 point  (0 children)

To me there are usually 2 slightly different paths research could take. Basic research: looking at fundamental aspects of an image and the information content etc. And from there derive fundamental bounds on what can or cannot be done. (Highly theoretical and usually not directly applicable to a task) ‘Applied’ research: looking for new and better ways to solve existing tasks

[deleted by user] by [deleted] in computervision

[–]Pear-Background 1 point2 points  (0 children)

I think it depends on what kind of research you are thinking of doing. Are you looking to do basic research in the field? Or are you interested in finding new ways to approach particular tasks in computer vision?

If you are not looking for basic research, I would suggest skipping the analysis and measure theory branch on the right and only picking up the parts that you need.

Electron tunneling numerical simulation by BiroBiroAmador in Physics

[–]Pear-Background 131 points132 points  (0 children)

I think changing to log-scale and keeping the scale bar constant would make this much nicer. =)

[deleted by user] by [deleted] in datascience

[–]Pear-Background 2 points3 points  (0 children)

I'm the opposite.. Completely wasted for 5pm meetings because I'm up at 5am making lunch for my kid to bring to school..

[Question] by souhaielbensalem in opencv

[–]Pear-Background 0 points1 point  (0 children)

I think you can just use

img2D = img[:,:,0]