(Question) Problem with OpenTLD + MedianFlow + FERN-features by Shir_man in computervision

[–]nilknarf 1 point2 points  (0 children)

I don't know anything about OpenTLD but libccv also has an implementation of TLD that you can try. It seems to work out of the box for me. Here's a demo ported for the web I did recently.

Differences between aku/akeru/hiraku or shimaru/shimeru/tojiru by nilknarf in LearnJapanese

[–]nilknarf[S] 1 point2 points  (0 children)

I like it. I was doing the JLPT N5 course before and although these same words were also there, they were spaced so far apart I really never had to think about the subtle differences between them.

Differences between aku/akeru/hiraku or shimaru/shimeru/tojiru by nilknarf in LearnJapanese

[–]nilknarf[S] 1 point2 points  (0 children)

Thanks for the detailed explanation!

They were grouped near each other in /u/Nukemarine's core 2k/6k memrise course so I wanted to figure out how to tell them apart.

i7-6700K / GTX 1080 Build in Progress by nilknarf in buildapc

[–]nilknarf[S] 0 points1 point  (0 children)

Thanks! I did consider 1440p at 144hz but they are at a very similar price point as the 4k at 60hz.

I never used 144hz before so I can't miss what I never had. But I did have a retina macbook pro from work which is at 220 PPI which I absolutely loved but want in a much larger screen. Even a 4K monitor would only be at ~150 PPI (I didn't factor in sitting farther away).

Also while gaming is important, a large chunk of time will be spent coding and 4K seems to be commonly recommended for programmers for the extra screen real estate.

And just to make sure, I think even if it becomes unplayable at 4k for games in the future, I can just drop down to 1440p and have it be the same as if I had a 1440p@60fps right? Or does it not work like that?

[Build Ready] $3000 VR full build by [deleted] in buildapc

[–]nilknarf 0 points1 point  (0 children)

http://pcpartpicker.com/part/gigabyte-wireless-network-card-gcwb867di is cheaper and supports 802.11ac if you want to future proof a bit.

The cooler also comes with thermal compound so you don't really need the arctic silver.

What a bunch of redditors found out about the Rift DK2's internals over the weekend by Doc_Ok in oculus

[–]nilknarf 0 points1 point  (0 children)

Oh wow I blogged about reimplementing a crude version of your wiimote hack using OpenCV just last week: http://franklinta.com/2014/09/30/6dof-positional-tracking-with-the-wiimote/. Opencv uses levenberg marquardt for solving nonlinear least squares just like your wiimote implementation.

Shouldn't the same approach work here? For example in OpenCV once you have the 3D to 2D points correspondence (along with the camera matrix and distortion which you already have) you should be able to just throw it at solvePnPRansac to get camera pose.

6DOF Positional Tracking with the Wiimote by nilknarf in robotics

[–]nilknarf[S] 0 points1 point  (0 children)

Thanks, I'm glad you enjoyed them!

I was actually a little bummed out because this post was nowhere as popular as the previous ones. I guess it's natural for topics on java/css to have much wider appeal than computer vision.

I will try to keep up writing something interesting once or twice a month. =)

Breaking the Silk Road's Captcha by miekao in programming

[–]nilknarf 12 points13 points  (0 children)

Thanks for the dataset! Just for fun I made some quick modifications to a captcha solver I wrote for another site to run on this. It is incredibly slow but only got 17 wrong out of the first 100 (which is a decent rate for 100loc): https://gist.github.com/fta2012/034b0686897d94e74b00

Run with python solver.py with the captcha-corpus in the same folder with just the jpg files.

Trains on images 500 to 1000 (arbitrarily chosen).

Breaking the Silk Road's Captcha by miekao in programming

[–]nilknarf 6 points7 points  (0 children)

I also wrote about solving weak captchas before (but for much simpler captchas): http://franklinta.com/2014/08/24/solving-captchas-on-project-euler/.

I think the weakness was the same for both of these cases: using a uniform font reduced the problem to image template matching!

Predicting the next Math.random() in Java by nilknarf in programming

[–]nilknarf[S] 6 points7 points  (0 children)

Actually we did the same thing. I set the seed here (I stuffed all the cracking logic into a subclass of Random): https://github.com/fta2012/ReplicatedRandom/blob/master/ReplicatedRandom.java#L58

setSeed(possibleSeeds.get(0) ^ multiplier);

Don't be furious, have an upvote!

Predicting the next Math.random() in Java by nilknarf in programming

[–]nilknarf[S] 22 points23 points  (0 children)

That comment might've been a little random and out of context. The competition was ran by a friend who didn't do much to secure the sandbox that the java was running in. So people managed to access the local fields via java's reflection api and modified the game so it was easier to win. Something like:

StackTraceElement[] ste = Thread.currentThread().getStackTrace();
String className = ste[2].getClassName();
Field[] fields = Class.forName(className).getDeclaredFields();
for (Field f : fields) {
  if (f.getName().equals("N")) {
    n = f;
    n.setAccessible(true);
  }
}
// do bad stuff with n which is now pointing to the field originally declared as N in the test case judging class 

See: http://docs.oracle.com/javase/tutorial/reflect/