zzm

0

votes
0

answer
2

views

opencv Python PPF detector crash

I´ve noticed that the PPF3DDetector is now available in Python too. So I´ve tried to run this piece of sample code: ppf_load_match, but Python keeps chrashing when 'matching'. It takes a while to train the model, but you can increase the first argument of 'cv.ppf_match_3d_PPF3DDetector' to run it...
ZZM
1

votes
0

answer
26

views

am trying to implement my own custom loss function in Keras, But it not work

The losses have remained the same and have not fallen as expected. Here is my Code to test if the loss function work well: def my_loss(y_true, y_pred): return tf.reduce_mean(tf.sigmoid(-200 * (y_pred - 1.05))) model.compile(optimizer=tf.train.AdamOptimizer(), loss=ml.my_loss, metrics=['mae', ml.my...
zzm
1

votes
1

answer
321

views

numpy packbits pack to uint16 array

I´ve got a 3D numpy bit array, I need to pack them along the third axis. So exactly what numpy.packbits does. But unfortunately it packs it only to uint8, but I need more data, is there a similar way to pack it to uint16 or uint32?
ZZM
2

votes
0

answer
14

views

Python crash cv structured light

Python keeps crashing when I run cv.structured_light_StructuredLightPattern.decode https://docs.opencv.org/4.0.0/d9/dbb/classcv_1_1structured__light_1_1StructuredLightPattern.html import numpy as np import cv2 as cv pWidth=1280 pHeight=720 kWidth=1920 kHeight=1280 blackImages=np.zeros([2,pHeight,...
ZZM
6

votes
1

answer
914

views

how can I get system proxy setting in node js

I'm writing a desktop application on windows with electron. Now I need to use the System global proxy setting as my own proxy while using request to get some data like this request({ url: 'http://ahdas.drnh.gov.tw/index.php', method: 'POST', proxy: this.proxyRequestUrl, headers: { 'User-Agent': this...
zzm