Tran Son Hai

Auckland, New Zealand

bullshit.maori.nz

Age: 25

1d
comment Is there an easy way to add a border to the top and bottom of an Android View?
Very nice trick, although it could be nicer if we don't have to trick the computer in order to get things done.
2d
comment android.os.NetworkOnMainThreadException
This is a great solution for Android learners to avoid complicating their code unnecessarily by following some stupid "best practices". The idea is to temporarily get away with it to see if the core application works or not. "Best practice" is good for commercial products, but should not be forced to use. E.g. you could give warnings but returning an error and confusing people is really a bad idea. Thumb up for this answer, or just don't thumb it down.
2d
awarded Enthusiast
May
12
comment Does it make sense to replace the thermal paste in a new Intel i7 stock cooler?
Mostly agree, but for the first point: Usually the stock thermal paste dries out (and loses its cooling effect) after couple of years, especially if your computer is not only for simple tasks.
May
8
comment When open an image using imread with no second argument, what is the color mode? BGR or RGB?
Great, thanks alrikai.
May
8
accepted When open an image using imread with no second argument, what is the color mode? BGR or RGB?
May
7
comment Feature extraction using convolutional neural network?
Just curious, what do you use for OCR if not NN?
May
7
comment When open an image using imread with no second argument, what is the color mode? BGR or RGB?
Thank you for the answer, as you said: any given color pixel at index px_idx is 3 elements in order, with [px_idx + 0]: red channel, [px_idx + 1]: green channel, [px_idx + 2]: blue channel, so from 0 to 2 you have R,G,B respectively. That means the default order of channels is RGB, not BGR?
May
7
comment When open an image using imread with no second argument, what is the color mode? BGR or RGB?
Thanks for the answer. I know that it doesn't make much sense to have imshow() displaying an HSV image, the idea is to see if there's any difference between the HSV converted using CV_BGR2HSV and using CV_RGB2HSV. E.g. if they're identical they should be displayed identically even using imshow or imwrite to a file or any other ways.
May
7
asked When open an image using imread with no second argument, what is the color mode? BGR or RGB?
May
5
comment Cannot compile mergevec.cpp from Haartraining tutorial
Same problem here, where exactly should I add -I? original build command: g++ `pkg-config --cflags opencv` `pkg-config --libs opencv` -o mergevec mergevec.cpp cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp cvhaartraining.cpp
May
3
awarded Tumbleweed
May
2
comment Linux device driver: how to assign group/user permission and use it?
Same problem here, have you found the solution yet? Now I have to manually chmod the device driver to 777 each time the kernel is loaded, so annoying....
Apr
27
comment Activation value at output neuron equals 1, and the network doesn't learn anything
@alfa I normalize all inputs so that they sum to 1, but with some weights as big as 40, (and there're 16 input, 32 hidden neurons), I guess normalization is not at all helpful.
Apr
26
awarded Student
Apr
26
asked Activation value at output neuron equals 1, and the network doesn't learn anything
Apr
26
comment Simple feedforward neural network does not behave as intended
I don't get it, delta(hidden) = sum(deta(output) * weight(output, hidden)) * (value(hidden)) * (1-(value(hidden)) is the fixed formula, how could omitting the last two terms make it work???
Apr
26
asked Neural Network: Activation value at output neuron equals 1, and the network doesn't learn anything
Apr
23
awarded Popular Question
Apr
23
comment How to use pointers in an union
Thanks, that reinterpret_cast is new to me. I used *( (int*) a.array1D[0] and it works fine, I hope it's safe to use even though I don't know why it is not recommended.
1 2 3 4 5