Month: October 2024
جـلب الـحبيب طائعا 595204937 / 00966شــيخ روحــاني قوي
جـلب الـحبيب طائعا 595204937 / 00966شــيخ روحــاني قوي
جـلب الـحبيب طائعا 595204937 / 00966شــيخ روحــاني قوي Read More
How to count number of individual values?
I want to count how many times the same value appears in a table column (Stamp Date) for the same person. Individual values have been calculated manually. What would be a good way to implement this with formulas?
Thank you.
I want to count how many times the same value appears in a table column (Stamp Date) for the same person. Individual values have been calculated manually. What would be a good way to implement this with formulas? Thank you. Read More
جـلبـ الـحبيبـ بقوة 578385770 : 00966 شـيخـ معالجـ روحـانيـ متميز
جـلبـ الـحبيبـ بقوة 578385770 : 00966 شـيخـ معالجـ روحـانيـ متميز
جـلبـ الـحبيبـ بقوة 578385770 : 00966 شـيخـ معالجـ روحـانيـ متميز Read More
Failed to upgrade Windows Server 2016 to Windows Server 2019
I have an issue when I try to do an in-place upgrade from Windows Server 2016 to Windows Server 2019. Installation keep fails at 5%
The server is Domain joined I used Local admin & Domain admin same error
According to Upgrade logs i found these errors:
PidGenX function failed on this product key. (hr = 0x8a010001)
ProductKey: Failed to report Host OS channel to telemetry
ERROR,OrphanFileFinder::GetEvidence,98,onecorebaseappcompatinventorysoftwareinvlibfile.cpp(1881)AEINV.dll!00007FFD2AC46D01
DoExecute: Cannot extract file WindowsSystem32Recoverywinre.wim from C:$WINDOWS.~BTSourcesInstall.wim. Error 0x80070522[gle=0x00000522]
ExecuteOperations: Failed execution phase Downlevel. Error: 0x80070522
ExecuteCurrentOperations reported failure!
Using action error code: [0x80070522]
CDlpActionImageDeploy::ExecuteRoutine(487): Result = 0x80070522
ExecuteInstallMode(883): Result = 0x80070522
ExecuteDownlevelMode(390): Result = 0x80070522
I have an issue when I try to do an in-place upgrade from Windows Server 2016 to Windows Server 2019. Installation keep fails at 5%The server is Domain joined I used Local admin & Domain admin same errorAccording to Upgrade logs i found these errors:PidGenX function failed on this product key. (hr = 0x8a010001)ProductKey: Failed to report Host OS channel to telemetryERROR,OrphanFileFinder::GetEvidence,98,onecorebaseappcompatinventorysoftwareinvlibfile.cpp(1881)AEINV.dll!00007FFD2AC46D01DoExecute: Cannot extract file WindowsSystem32Recoverywinre.wim from C:$WINDOWS.~BTSourcesInstall.wim. Error 0x80070522[gle=0x00000522]ExecuteOperations: Failed execution phase Downlevel. Error: 0x80070522ExecuteCurrentOperations reported failure!Using action error code: [0x80070522]CDlpActionImageDeploy::ExecuteRoutine(487): Result = 0x80070522ExecuteInstallMode(883): Result = 0x80070522ExecuteDownlevelMode(390): Result = 0x80070522 Read More
Updating MS Teams – different versions + vulnerable version showing in Defender
Hi experts,
for months… I’ve been struggling with understanding how MS Teams is present/installed on our company and laptops and why I see 20 devices out of 65 total in defender marked as “Update Microsoft Teams” as the number 2 of “TOP SECURITY RECOMMENDATIONS“.
It looks like the rest of the devices are just fine… but for few months… I still have 20 devices there… including mine. So lets try to focus on mine.
I am using “NEW MS Teams” version below (checking this via TEAMS > Settings)
When I check via “Add / Remove programs”, I see the below:
So I guess the Microsoft Teams on the top is the NEW TEAMS that I use… The other two are not reported as vulnerable in Defender – picture will be below.
Now, this is what I see in Defender SW inventory for my laptop when I search for TEAMS:
My Questions:
why I can’t see the version of TEAMS there that I see when checking my TEAMS > Settings?the two other TEAMS (add-in and machine-wide) are not marked as vulnerable, so thats finewhat are the other TEAMS that are displayed in DEFENDER SW inventory for my laptop?and the most important one – HOW DO I PATCH the vulnerable ones? If I do not seem to have them installed?
I am so confused by this…. and it is really frustrating as it affect negatively the Vulnerability Score that is one of our key indicator for checking our overall security 😕
thanks for any advice
Hi experts, for months… I’ve been struggling with understanding how MS Teams is present/installed on our company and laptops and why I see 20 devices out of 65 total in defender marked as “Update Microsoft Teams” as the number 2 of “TOP SECURITY RECOMMENDATIONS”. It looks like the rest of the devices are just fine… but for few months… I still have 20 devices there… including mine. So lets try to focus on mine. I am using “NEW MS Teams” version below (checking this via TEAMS > Settings) When I check via “Add / Remove programs”, I see the below:So I guess the Microsoft Teams on the top is the NEW TEAMS that I use… The other two are not reported as vulnerable in Defender – picture will be below. Now, this is what I see in Defender SW inventory for my laptop when I search for TEAMS: My Questions:why I can’t see the version of TEAMS there that I see when checking my TEAMS > Settings?the two other TEAMS (add-in and machine-wide) are not marked as vulnerable, so thats finewhat are the other TEAMS that are displayed in DEFENDER SW inventory for my laptop?and the most important one – HOW DO I PATCH the vulnerable ones? If I do not seem to have them installed? I am so confused by this…. and it is really frustrating as it affect negatively the Vulnerability Score that is one of our key indicator for checking our overall security 😕 thanks for any advice Read More
جـلب الـحبيب & زواجـ البائر 595204937 / 00966رقـم شيخـ روحانـي
جـلب الـحبيب & زواجـ البائر 595204937 / 00966رقـم شيخـ روحانـي السعـوديـة قـطـر الامـاراتـ الـكويـت رد الـمطلقـة فـك الـسحر خـاتـم روحـانـي رقـمـ مـعالـج روحانيـ جـلب الحـبيب الـسعـودـية.
جـلب الـحبيب & زواجـ البائر 595204937 / 00966رقـم شيخـ روحانـي السعـوديـة قـطـر الامـاراتـ الـكويـت رد الـمطلقـة فـك الـسحر خـاتـم روحـانـي رقـمـ مـعالـج روحانيـ جـلب الحـبيب الـسعـودـية. Read More
Getting Ads on both Outlook for Android and Outlook for iPad
Hi,
I have a Microsoft 365 subscription attached to my main email address. I pay £5.99 per month. I have downloaded and configured an IMAP inbox for Outlook on my Android phone and Outlook on my iPad. I am successfully receiving imap inbox email to my configured email address inboxes respectively.
I am persistently receiving Ads in the inbox on both devices and it has been happening for about 3 months. The email inbox address is the same as my Microsoft 365 account.
Please help?!
Hi,I have a Microsoft 365 subscription attached to my main email address. I pay £5.99 per month. I have downloaded and configured an IMAP inbox for Outlook on my Android phone and Outlook on my iPad. I am successfully receiving imap inbox email to my configured email address inboxes respectively.I am persistently receiving Ads in the inbox on both devices and it has been happening for about 3 months. The email inbox address is the same as my Microsoft 365 account.Please help?! Read More
How to make HoloLens2’s eyes display different content
大家好,我正在做一个东西。想让HoloLens2在左右眼显示不同的内容,在物体不挂载到相机下的时候。
大家好,我正在做一个东西。想让HoloLens2在左右眼显示不同的内容,在物体不挂载到相机下的时候。 Read More
matlab串口接收数据大小达不到STMUART发送数据大小
我是用matlab接收来自STM32串口的数据,数据的发送速度是500Hz,在串口助手上验证过没有问题,但是如果使用matlab接收就会缺少大概6s的数据,这是我的读取函数function readSensorData(app, src, ~)
% 读取数据并将数据放入队列
while src.NumBytesAvailable >= 5
% currentTime = datetime(‘now’); % 串口数据到达时记录时间戳
tic
frameHeader = read(src, 2, "uint8");
toc
if frameHeader(1) == 0x55 && frameHeader(2) == 0xAA
fun_data = read(src, 2, "uint8");
len = fun_data(2);
if src.NumBytesAvailable >= len + 1
if len ~= 0
dataToSend = read(src, len, "uint8");
checksum = read(src, 1, "uint8");
% 计算校验
expectedChecksum = bitcmp(mod(sum([fun_data, dataToSend]), 256), ‘uint8’);
if (checksum == expectedChecksum)
app.processData(dataToSend)
end
end
end
else
read(src, 1, ‘uint8’);
end
end
end
其中app.processData执行内容已经被我关闭,可以忽略我是用matlab接收来自STM32串口的数据,数据的发送速度是500Hz,在串口助手上验证过没有问题,但是如果使用matlab接收就会缺少大概6s的数据,这是我的读取函数function readSensorData(app, src, ~)
% 读取数据并将数据放入队列
while src.NumBytesAvailable >= 5
% currentTime = datetime(‘now’); % 串口数据到达时记录时间戳
tic
frameHeader = read(src, 2, "uint8");
toc
if frameHeader(1) == 0x55 && frameHeader(2) == 0xAA
fun_data = read(src, 2, "uint8");
len = fun_data(2);
if src.NumBytesAvailable >= len + 1
if len ~= 0
dataToSend = read(src, len, "uint8");
checksum = read(src, 1, "uint8");
% 计算校验
expectedChecksum = bitcmp(mod(sum([fun_data, dataToSend]), 256), ‘uint8’);
if (checksum == expectedChecksum)
app.processData(dataToSend)
end
end
end
else
read(src, 1, ‘uint8’);
end
end
end
其中app.processData执行内容已经被我关闭,可以忽略 我是用matlab接收来自STM32串口的数据,数据的发送速度是500Hz,在串口助手上验证过没有问题,但是如果使用matlab接收就会缺少大概6s的数据,这是我的读取函数function readSensorData(app, src, ~)
% 读取数据并将数据放入队列
while src.NumBytesAvailable >= 5
% currentTime = datetime(‘now’); % 串口数据到达时记录时间戳
tic
frameHeader = read(src, 2, "uint8");
toc
if frameHeader(1) == 0x55 && frameHeader(2) == 0xAA
fun_data = read(src, 2, "uint8");
len = fun_data(2);
if src.NumBytesAvailable >= len + 1
if len ~= 0
dataToSend = read(src, len, "uint8");
checksum = read(src, 1, "uint8");
% 计算校验
expectedChecksum = bitcmp(mod(sum([fun_data, dataToSend]), 256), ‘uint8’);
if (checksum == expectedChecksum)
app.processData(dataToSend)
end
end
end
else
read(src, 1, ‘uint8’);
end
end
end
其中app.processData执行内容已经被我关闭,可以忽略 上位机,信号处理,stm32 MATLAB Answers — New Questions
get class name and plot it in variables window.
Hello everyone!
I have a question about create class
I want to have classname like this in variables window:
val = (classname)
nch: 4
N: 8192
F: 100
df: 0.012207
T: 81.92
dt: 0.01
quantity: force,acc
sifactor: 1
labels: 1F,1A
How can I do that? Thank you all.Hello everyone!
I have a question about create class
I want to have classname like this in variables window:
val = (classname)
nch: 4
N: 8192
F: 100
df: 0.012207
T: 81.92
dt: 0.01
quantity: force,acc
sifactor: 1
labels: 1F,1A
How can I do that? Thank you all. Hello everyone!
I have a question about create class
I want to have classname like this in variables window:
val = (classname)
nch: 4
N: 8192
F: 100
df: 0.012207
T: 81.92
dt: 0.01
quantity: force,acc
sifactor: 1
labels: 1F,1A
How can I do that? Thank you all. signal processing MATLAB Answers — New Questions
Modeling a manipulator with elastic joint in Simscape Multibody
I need to model in Simscape a single-link manipulator with an elastic joint (like in the figure).
I tried modeling this way but I am not sure it’s the smartest way. I used the block ‘Ideal Torque Source’ to simulate the motor torque.
Any suggestion?I need to model in Simscape a single-link manipulator with an elastic joint (like in the figure).
I tried modeling this way but I am not sure it’s the smartest way. I used the block ‘Ideal Torque Source’ to simulate the motor torque.
Any suggestion? I need to model in Simscape a single-link manipulator with an elastic joint (like in the figure).
I tried modeling this way but I am not sure it’s the smartest way. I used the block ‘Ideal Torque Source’ to simulate the motor torque.
Any suggestion? simscape, simscape multibody, joint, elastic joint MATLAB Answers — New Questions
i need a matlab code to detect a currency to determine wether it is fake or real.i need a code that can compare the new processed image to a database and any other code i can use.
%here are some of the codes.am i using the right codes?
%are there any other codes i can use?
clear all;
close all;
Ireal = imread(‘C:UsersNatiDesktopnati projectNew folderNew folderprogress natibirrIMG_20180513_10260.jpg’); % Real
Iscaned = imread(‘C:UsersNatiDesktopnati projectNew folderNew folderprogress natibirrIMG_20180513_102606.jpg’); % scaned
%%//Pre-analysis
hsvImageReal = rgb2hsv(Ireal);
hsvImagescaned = rgb2hsv(Iscaned);
figure;
imshow([hsvImageReal(:,:,1) hsvImageReal(:,:,2) hsvImageReal(:,:,3)]);
title(‘Real pre process’);
figure;
imshow([hsvImagescaned(:,:,1) hsvImagescaned(:,:,2) hsvImagescaned(:,:,3)]);
title(‘scaned’);
%%//Initial segmentation
croppedImageReal = hsvImageReal(:,90:95,:);
croppedImagescaned = hsvImagescaned(:,93:98,:);
satThresh = 0.4;
valThresh = 0.3;
BWImageReal = (croppedImageReal(:,:,2) > satThresh & croppedImageReal(:,:,3) < valThresh);
figure;
subplot(1,2,1);
imshow(BWImageReal);
title(‘Real initial seg’);
BWImagescaned = (croppedImagescaned(:,:,2) > satThresh & croppedImagescaned(:,:,3) < valThresh);
subplot(1,2,2);
imshow(BWImagescaned);
title(‘scaned’);
%%//Post-process
se = strel(‘line’, 6, 90);
BWImageCloseReal = imclose(BWImageReal, se);
BWImageClosescaned = imclose(BWImagescaned, se);
figure;
subplot(1,2,1);
imshow(BWImageCloseReal);
title(‘Real post process’);
subplot(1,2,2);
imshow(BWImageClosescaned);
title(‘scaned’);
%%//Area open the image
figure;
areaopenReal = bwareaopen(BWImageCloseReal, 15);
subplot(1,2,1);
imshow(areaopenReal);
title(‘Real area open image’);
subplot(1,2,2);
areaopenscaned = bwareaopen(BWImageClosescaned, 15);
imshow(areaopenscaned);
title(‘scaned’);
%//Count how many objects there are
[~,countReal] = bwlabel(areaopenReal);
[~,countscaned] = bwlabel(areaopenscaned);
disp([‘The total number of black lines for the real note is: ‘ num2str(countReal)]);
disp([‘The total number of black lines for the scaned note is: ‘ num2str(countscaned)]);
%%
% convert to gray scale
grt = rgb2gray(Ireal);
grs = rgb2gray(Iscaned);
% contrast enhance the gray image to emphasize dark lines in lighter background
grt = imadjust(grt);
grs = imadjust(grs);
% close rgb. choose a larger k. idea is to remove the dark line
k = 7;
se = ones(k);
Irealcl = imclose(Ireal, se);
Iscanedcl = imclose(Iscaned, se);
% convert closed image to gray scale
grtcl = rgb2gray(Irealcl);
grscl = rgb2gray(Iscanedcl);
% take the difference (closed-gray-scale – contrast-enhanced-gray-scale)
difft = grtcl – grt;
diffs = grscl – grs;
% take the projection of the difference
pt = sum(difft’);
pf = sum(diffs’);
% smooth the projection
ptfilt = conv(pt, ones(1, k)/k, ‘same’);
pffilt = conv(pf, ones(1, k)/k, ‘same’);
% threshold (multiplication by max element is just for visualization)
tht = (pt > graythresh(pt))*max(pt);
thf = (pf > graythresh(pf))*max(pf);
% get the number of segments.
[lblt, nt] = bwlabel(tht);
[lblf, nf] = bwlabel(thf);
figure,
subplot(2, 1, 1), imshow(difft’), title(‘difference image for solid line’)
subplot(2, 1, 2), imshow(diffs’), title(‘difference image for broken line’)
figure,
subplot(2, 1, 1), plot(1:length(pt), pt, 1:length(pt), ptfilt, 1:length(pt), tht),
title(‘solid line image’),
legend(‘projection’, ‘smoothed’, ‘thresholded’, ‘location’, ‘eastoutside’)
subplot(2, 1, 2), plot(1:length(pf), pf, 1:length(pf), pffilt, 1:length(pf), thf),
title(‘broken line image’),
legend(‘projection’, ‘smoothed’, ‘thresholded’, ‘location’, ‘eastoutside’)
%%%
%% //Extract the black strips for each image
blackStripReal = Ireal(:,200:725,:);
blackStripscaned = Iscaned(:,200:725,:);
figure;
subplot(1,3,1);
imshow(blackStripReal);
title(‘Real black stripe’);
subplot(1,3,2);
imshow(blackStripscaned);
title(‘scaned’);
%%%
%% //Convert into grayscale then threshold
blackStripReal = rgb2gray(blackStripReal);
blackStripscaned = rgb2gray(blackStripscaned);
figure;
subplot(1,3,1);
imshow(blackStripReal);
title(‘Realblack strip’);
subplot(1,3,2);
imshow(blackStripscaned);
title(‘scaned’);%here are some of the codes.am i using the right codes?
%are there any other codes i can use?
clear all;
close all;
Ireal = imread(‘C:UsersNatiDesktopnati projectNew folderNew folderprogress natibirrIMG_20180513_10260.jpg’); % Real
Iscaned = imread(‘C:UsersNatiDesktopnati projectNew folderNew folderprogress natibirrIMG_20180513_102606.jpg’); % scaned
%%//Pre-analysis
hsvImageReal = rgb2hsv(Ireal);
hsvImagescaned = rgb2hsv(Iscaned);
figure;
imshow([hsvImageReal(:,:,1) hsvImageReal(:,:,2) hsvImageReal(:,:,3)]);
title(‘Real pre process’);
figure;
imshow([hsvImagescaned(:,:,1) hsvImagescaned(:,:,2) hsvImagescaned(:,:,3)]);
title(‘scaned’);
%%//Initial segmentation
croppedImageReal = hsvImageReal(:,90:95,:);
croppedImagescaned = hsvImagescaned(:,93:98,:);
satThresh = 0.4;
valThresh = 0.3;
BWImageReal = (croppedImageReal(:,:,2) > satThresh & croppedImageReal(:,:,3) < valThresh);
figure;
subplot(1,2,1);
imshow(BWImageReal);
title(‘Real initial seg’);
BWImagescaned = (croppedImagescaned(:,:,2) > satThresh & croppedImagescaned(:,:,3) < valThresh);
subplot(1,2,2);
imshow(BWImagescaned);
title(‘scaned’);
%%//Post-process
se = strel(‘line’, 6, 90);
BWImageCloseReal = imclose(BWImageReal, se);
BWImageClosescaned = imclose(BWImagescaned, se);
figure;
subplot(1,2,1);
imshow(BWImageCloseReal);
title(‘Real post process’);
subplot(1,2,2);
imshow(BWImageClosescaned);
title(‘scaned’);
%%//Area open the image
figure;
areaopenReal = bwareaopen(BWImageCloseReal, 15);
subplot(1,2,1);
imshow(areaopenReal);
title(‘Real area open image’);
subplot(1,2,2);
areaopenscaned = bwareaopen(BWImageClosescaned, 15);
imshow(areaopenscaned);
title(‘scaned’);
%//Count how many objects there are
[~,countReal] = bwlabel(areaopenReal);
[~,countscaned] = bwlabel(areaopenscaned);
disp([‘The total number of black lines for the real note is: ‘ num2str(countReal)]);
disp([‘The total number of black lines for the scaned note is: ‘ num2str(countscaned)]);
%%
% convert to gray scale
grt = rgb2gray(Ireal);
grs = rgb2gray(Iscaned);
% contrast enhance the gray image to emphasize dark lines in lighter background
grt = imadjust(grt);
grs = imadjust(grs);
% close rgb. choose a larger k. idea is to remove the dark line
k = 7;
se = ones(k);
Irealcl = imclose(Ireal, se);
Iscanedcl = imclose(Iscaned, se);
% convert closed image to gray scale
grtcl = rgb2gray(Irealcl);
grscl = rgb2gray(Iscanedcl);
% take the difference (closed-gray-scale – contrast-enhanced-gray-scale)
difft = grtcl – grt;
diffs = grscl – grs;
% take the projection of the difference
pt = sum(difft’);
pf = sum(diffs’);
% smooth the projection
ptfilt = conv(pt, ones(1, k)/k, ‘same’);
pffilt = conv(pf, ones(1, k)/k, ‘same’);
% threshold (multiplication by max element is just for visualization)
tht = (pt > graythresh(pt))*max(pt);
thf = (pf > graythresh(pf))*max(pf);
% get the number of segments.
[lblt, nt] = bwlabel(tht);
[lblf, nf] = bwlabel(thf);
figure,
subplot(2, 1, 1), imshow(difft’), title(‘difference image for solid line’)
subplot(2, 1, 2), imshow(diffs’), title(‘difference image for broken line’)
figure,
subplot(2, 1, 1), plot(1:length(pt), pt, 1:length(pt), ptfilt, 1:length(pt), tht),
title(‘solid line image’),
legend(‘projection’, ‘smoothed’, ‘thresholded’, ‘location’, ‘eastoutside’)
subplot(2, 1, 2), plot(1:length(pf), pf, 1:length(pf), pffilt, 1:length(pf), thf),
title(‘broken line image’),
legend(‘projection’, ‘smoothed’, ‘thresholded’, ‘location’, ‘eastoutside’)
%%%
%% //Extract the black strips for each image
blackStripReal = Ireal(:,200:725,:);
blackStripscaned = Iscaned(:,200:725,:);
figure;
subplot(1,3,1);
imshow(blackStripReal);
title(‘Real black stripe’);
subplot(1,3,2);
imshow(blackStripscaned);
title(‘scaned’);
%%%
%% //Convert into grayscale then threshold
blackStripReal = rgb2gray(blackStripReal);
blackStripscaned = rgb2gray(blackStripscaned);
figure;
subplot(1,3,1);
imshow(blackStripReal);
title(‘Realblack strip’);
subplot(1,3,2);
imshow(blackStripscaned);
title(‘scaned’); %here are some of the codes.am i using the right codes?
%are there any other codes i can use?
clear all;
close all;
Ireal = imread(‘C:UsersNatiDesktopnati projectNew folderNew folderprogress natibirrIMG_20180513_10260.jpg’); % Real
Iscaned = imread(‘C:UsersNatiDesktopnati projectNew folderNew folderprogress natibirrIMG_20180513_102606.jpg’); % scaned
%%//Pre-analysis
hsvImageReal = rgb2hsv(Ireal);
hsvImagescaned = rgb2hsv(Iscaned);
figure;
imshow([hsvImageReal(:,:,1) hsvImageReal(:,:,2) hsvImageReal(:,:,3)]);
title(‘Real pre process’);
figure;
imshow([hsvImagescaned(:,:,1) hsvImagescaned(:,:,2) hsvImagescaned(:,:,3)]);
title(‘scaned’);
%%//Initial segmentation
croppedImageReal = hsvImageReal(:,90:95,:);
croppedImagescaned = hsvImagescaned(:,93:98,:);
satThresh = 0.4;
valThresh = 0.3;
BWImageReal = (croppedImageReal(:,:,2) > satThresh & croppedImageReal(:,:,3) < valThresh);
figure;
subplot(1,2,1);
imshow(BWImageReal);
title(‘Real initial seg’);
BWImagescaned = (croppedImagescaned(:,:,2) > satThresh & croppedImagescaned(:,:,3) < valThresh);
subplot(1,2,2);
imshow(BWImagescaned);
title(‘scaned’);
%%//Post-process
se = strel(‘line’, 6, 90);
BWImageCloseReal = imclose(BWImageReal, se);
BWImageClosescaned = imclose(BWImagescaned, se);
figure;
subplot(1,2,1);
imshow(BWImageCloseReal);
title(‘Real post process’);
subplot(1,2,2);
imshow(BWImageClosescaned);
title(‘scaned’);
%%//Area open the image
figure;
areaopenReal = bwareaopen(BWImageCloseReal, 15);
subplot(1,2,1);
imshow(areaopenReal);
title(‘Real area open image’);
subplot(1,2,2);
areaopenscaned = bwareaopen(BWImageClosescaned, 15);
imshow(areaopenscaned);
title(‘scaned’);
%//Count how many objects there are
[~,countReal] = bwlabel(areaopenReal);
[~,countscaned] = bwlabel(areaopenscaned);
disp([‘The total number of black lines for the real note is: ‘ num2str(countReal)]);
disp([‘The total number of black lines for the scaned note is: ‘ num2str(countscaned)]);
%%
% convert to gray scale
grt = rgb2gray(Ireal);
grs = rgb2gray(Iscaned);
% contrast enhance the gray image to emphasize dark lines in lighter background
grt = imadjust(grt);
grs = imadjust(grs);
% close rgb. choose a larger k. idea is to remove the dark line
k = 7;
se = ones(k);
Irealcl = imclose(Ireal, se);
Iscanedcl = imclose(Iscaned, se);
% convert closed image to gray scale
grtcl = rgb2gray(Irealcl);
grscl = rgb2gray(Iscanedcl);
% take the difference (closed-gray-scale – contrast-enhanced-gray-scale)
difft = grtcl – grt;
diffs = grscl – grs;
% take the projection of the difference
pt = sum(difft’);
pf = sum(diffs’);
% smooth the projection
ptfilt = conv(pt, ones(1, k)/k, ‘same’);
pffilt = conv(pf, ones(1, k)/k, ‘same’);
% threshold (multiplication by max element is just for visualization)
tht = (pt > graythresh(pt))*max(pt);
thf = (pf > graythresh(pf))*max(pf);
% get the number of segments.
[lblt, nt] = bwlabel(tht);
[lblf, nf] = bwlabel(thf);
figure,
subplot(2, 1, 1), imshow(difft’), title(‘difference image for solid line’)
subplot(2, 1, 2), imshow(diffs’), title(‘difference image for broken line’)
figure,
subplot(2, 1, 1), plot(1:length(pt), pt, 1:length(pt), ptfilt, 1:length(pt), tht),
title(‘solid line image’),
legend(‘projection’, ‘smoothed’, ‘thresholded’, ‘location’, ‘eastoutside’)
subplot(2, 1, 2), plot(1:length(pf), pf, 1:length(pf), pffilt, 1:length(pf), thf),
title(‘broken line image’),
legend(‘projection’, ‘smoothed’, ‘thresholded’, ‘location’, ‘eastoutside’)
%%%
%% //Extract the black strips for each image
blackStripReal = Ireal(:,200:725,:);
blackStripscaned = Iscaned(:,200:725,:);
figure;
subplot(1,3,1);
imshow(blackStripReal);
title(‘Real black stripe’);
subplot(1,3,2);
imshow(blackStripscaned);
title(‘scaned’);
%%%
%% //Convert into grayscale then threshold
blackStripReal = rgb2gray(blackStripReal);
blackStripscaned = rgb2gray(blackStripscaned);
figure;
subplot(1,3,1);
imshow(blackStripReal);
title(‘Realblack strip’);
subplot(1,3,2);
imshow(blackStripscaned);
title(‘scaned’); fake currency detection system., currency, fake currency MATLAB Answers — New Questions
error generating olap cube
When generating the project server olap cube we get this error:
Cant load file ‘Microsoft.AnalysisServices, Version=15.0.0.0, Culture=neutral
Our sql server version is 2019 (15.0.4390.2)
We have installed AMO, ADOMD and SQL_AS_OLEDB but still fails.
any idea?
When generating the project server olap cube we get this error:Cant load file ‘Microsoft.AnalysisServices, Version=15.0.0.0, Culture=neutral Our sql server version is 2019 (15.0.4390.2)We have installed AMO, ADOMD and SQL_AS_OLEDB but still fails.any idea? Read More
Sharing folder with two Accounts
Hello,
i have two OneDrive accounts. One business account (I work at a University) and one private account (@live.de with a paid OneDrive subscriptions).
I work with many people around the world (researchers) and they share folders with me. One collaborator shared a folder with me and gave me the OneDrive Link. When clicking on it, I can open it but can’t edit it. I noticed that it opens it with my private OneDrive account with doesn’t have Office 356. So I switched to my work account. I can’t see the shared folder. Whenever I click the link now, it seems that I’m not logged in.
Then I told him to deliberate share it with my work email. So I get an email to my work email that the folder was shared. When I click on the link from my work email it opens in my private OneDrive account… When logging out of my private account I can access the folder, but not edit. It asks me to log in. I try to login with my work account (btw. I am already logged in) and it says “Something wen’t wrong”.
First: MS has the worst ever authentication mechanisms I’ve ever seen and it caused only trouble so far (I am not even starting to talk about Teams), but how the hell can I open that folder that was shared with me with my work email with my work account???
best
Dominik
Hello, i have two OneDrive accounts. One business account (I work at a University) and one private account (@live.de with a paid OneDrive subscriptions).I work with many people around the world (researchers) and they share folders with me. One collaborator shared a folder with me and gave me the OneDrive Link. When clicking on it, I can open it but can’t edit it. I noticed that it opens it with my private OneDrive account with doesn’t have Office 356. So I switched to my work account. I can’t see the shared folder. Whenever I click the link now, it seems that I’m not logged in.Then I told him to deliberate share it with my work email. So I get an email to my work email that the folder was shared. When I click on the link from my work email it opens in my private OneDrive account… When logging out of my private account I can access the folder, but not edit. It asks me to log in. I try to login with my work account (btw. I am already logged in) and it says “Something wen’t wrong”.First: MS has the worst ever authentication mechanisms I’ve ever seen and it caused only trouble so far (I am not even starting to talk about Teams), but how the hell can I open that folder that was shared with me with my work email with my work account??? bestDominik Read More
Conditional access policy not recognised
Hello everyone,
We’re evaulating Cloud Apps session/conditional access/session policies but have hit a weird snag.
We have created a conditional access policy in EntraID with session control of Use Conditional Access App Control. This was initially set to Monitor Only (Preview)
I then signed in with the test user and logged into the various 365 services, and confirmed these apps were onboarded into the Conditional Access App Control apps page.
So far so good. However when I’ve attempted to create either a Access or Session Policy in the Cloud Apps Policy Management section, there is an error saying that there are no conditional access policies set up.
I changed the conditional access policies in Entra ID to “Custom Policy” and waited a few hours, but still getting the error. I have created additional conditional access policies in EntraID from scratch and waited over night, but it still seems that EntraID and the Cloud Apps parts aren’t talking with each other.
When I create a policy, I get a warning that there isn’t a corresponding CA policy. The Access/Session policy is reated, but has [Entra ID Policy Missing] in the title.
I’m not sure where I’m going wrong with this. I’ve followed various guides and checked various forums but aside from the obvious I’m at a loss. Has anyone else come up against this before, or should I raise a ticket with MS to look at the back end?
Thanks in advance,
Mark
Hello everyone, We’re evaulating Cloud Apps session/conditional access/session policies but have hit a weird snag. We have created a conditional access policy in EntraID with session control of Use Conditional Access App Control. This was initially set to Monitor Only (Preview) I then signed in with the test user and logged into the various 365 services, and confirmed these apps were onboarded into the Conditional Access App Control apps page. So far so good. However when I’ve attempted to create either a Access or Session Policy in the Cloud Apps Policy Management section, there is an error saying that there are no conditional access policies set up. I changed the conditional access policies in Entra ID to “Custom Policy” and waited a few hours, but still getting the error. I have created additional conditional access policies in EntraID from scratch and waited over night, but it still seems that EntraID and the Cloud Apps parts aren’t talking with each other. When I create a policy, I get a warning that there isn’t a corresponding CA policy. The Access/Session policy is reated, but has [Entra ID Policy Missing] in the title. I’m not sure where I’m going wrong with this. I’ve followed various guides and checked various forums but aside from the obvious I’m at a loss. Has anyone else come up against this before, or should I raise a ticket with MS to look at the back end? Thanks in advance,Mark Read More
SPFx Application Customizer not registering when using PowerShell JSON to register
I’ve been tasked to create a site script which will run when an SPO global admin creates an SPO Site collection:
$themeName = “ASCv12”
$site_script = @’
{
“$schema”: “schema.json”,
“actions”: [
{
“verb”: “setSiteExternalSharingCapability”,
“capability”: “Disabled”
},
{
“verb”: “applyTheme”,
“themeName”: “Blue Yonder”
},
{
“verb”: “associateExtension”,
“title”: “site-script-hide-client-side-solution”,
“location”: “ClientSideExtension.ApplicationCustomizer”,
“clientSideComponentId”: “34e874b4-48ed-4fa6-97b9-04a6054f2902”,
“scope”: “Site”
}
],
“bindata”: { },
“version”: 1
}
‘@@
I’ve read this documentation:
Site template JSON schema | Microsoft Learn which shows the exact syntax I’m using. I’ve tried using the clientSideComponentId from the:
package-solution.jsonmanifest.jsonRoot App catalog Product Id number (I’ve uploaded it to this app catalog.)
But when the site is created, the extension does not work. I’ve checked logging and nothing is triggering.
The SPFx extension is an Application Customizer which is vanilla. I’ve not customized it because I wanted to test it out first of all. But as mentioned, it’s not triggering.
Can anyone advise? Has anyone encountered this before and did you resolve it?
I’ve been tasked to create a site script which will run when an SPO global admin creates an SPO Site collection:$themeName = “ASCv12”
$site_script = @’
{
“$schema”: “schema.json”,
“actions”: [
{
“verb”: “setSiteExternalSharingCapability”,
“capability”: “Disabled”
},
{
“verb”: “applyTheme”,
“themeName”: “Blue Yonder”
},
{
“verb”: “associateExtension”,
“title”: “site-script-hide-client-side-solution”,
“location”: “ClientSideExtension.ApplicationCustomizer”,
“clientSideComponentId”: “34e874b4-48ed-4fa6-97b9-04a6054f2902”,
“scope”: “Site”
}
],
“bindata”: { },
“version”: 1
}
‘@@I’ve read this documentation:Site template JSON schema | Microsoft Learn which shows the exact syntax I’m using. I’ve tried using the clientSideComponentId from the:package-solution.jsonmanifest.jsonRoot App catalog Product Id number (I’ve uploaded it to this app catalog.)But when the site is created, the extension does not work. I’ve checked logging and nothing is triggering.The SPFx extension is an Application Customizer which is vanilla. I’ve not customized it because I wanted to test it out first of all. But as mentioned, it’s not triggering.Can anyone advise? Has anyone encountered this before and did you resolve it? Read More
SharePoint Rest API threshold exception even if the first part of filter not have enough 5000 items
I have a list WTasks around 40.000 items. And the first part of filter not reach 5000 items, but still got Threshold exception
Fields:
– UserId (just Number, not lookup) – indexed
– Status (lookup to the ItemStatus list by ID) – indexed
– ItemType (string) – indexed
All are indexed – single.
I do this Rest API call:
_api/web/lists/getbytitle(‘WTasks’)/items?$top=2000&$filter=UserId eq 21 and ItemType eq ‘Product Support’&$select=ID,Title
And got the threshold exception. I know this happened when the first part of filter return more than 5000 items (this case is “UserId eq 21”).
But it actually just has 4.230 items that UserId = 21.
And 3245 items match “UserId eq 21 and ItemType eq ‘Product Support'”
I don’t know why this happens with the list.
Please help on this.
Thanks a lot.
I have a list WTasks around 40.000 items. And the first part of filter not reach 5000 items, but still got Threshold exceptionFields:- UserId (just Number, not lookup) – indexed- Status (lookup to the ItemStatus list by ID) – indexed- ItemType (string) – indexedAll are indexed – single.I do this Rest API call:_api/web/lists/getbytitle(‘WTasks’)/items?$top=2000&$filter=UserId eq 21 and ItemType eq ‘Product Support’&$select=ID,Title And got the threshold exception. I know this happened when the first part of filter return more than 5000 items (this case is “UserId eq 21”). But it actually just has 4.230 items that UserId = 21. And 3245 items match “UserId eq 21 and ItemType eq ‘Product Support'”I don’t know why this happens with the list. Please help on this.Thanks a lot. Read More
IF function ?
Dear All,
I have the following task to solve. I have variable data in one cell which used for further calculation. There are basically only two variants 30 or 60. If the value is 30 the callculation needs to be ((cell1+cell2)*2)*60, if it is 60 the calculation is cell1+cell2*60. Cell1 and cell2 independent, but the calculation depends on the given value (30 or60) in another cell. Which formula would you suggest to use?
Dear All, I have the following task to solve. I have variable data in one cell which used for further calculation. There are basically only two variants 30 or 60. If the value is 30 the callculation needs to be ((cell1+cell2)*2)*60, if it is 60 the calculation is cell1+cell2*60. Cell1 and cell2 independent, but the calculation depends on the given value (30 or60) in another cell. Which formula would you suggest to use? Read More
جـلب الـحبيب بالثقة 594027142 | 00966 عالم الشيخ الروحاني
جـلب الـحبيب بالثقة 594027142 | 00966 عالم الشيخ الروحاني
جـلب الـحبيب بالثقة 594027142 | 00966 عالم الشيخ الروحاني Read More
n-Channel Mosfet 3-D Lookup table, temperature dependent parameterization. Problems simulating different temperatures
Hello, I am trying to simulate the behavior of a MOSFET at different temperatures (25ºC and 17ºC), but I am having some issues. I have chosen the n-Channel MOSFET model from the Simulink library and below I attach the circuit and the parameters I have used based on the curves provided by the manufacturer.
The parameterization used is a 3-D Lookup table, temperature dependent, and in the following image, you can see the matrix used for IDs (datos_Ids) which depends on Vgs, Vds, and T.
When the simulation is run, even if the value in Temperature Source is changed, the same simulation always results; it seems to be independent of the temperature.
Any suggestions?
Thank you very muchHello, I am trying to simulate the behavior of a MOSFET at different temperatures (25ºC and 17ºC), but I am having some issues. I have chosen the n-Channel MOSFET model from the Simulink library and below I attach the circuit and the parameters I have used based on the curves provided by the manufacturer.
The parameterization used is a 3-D Lookup table, temperature dependent, and in the following image, you can see the matrix used for IDs (datos_Ids) which depends on Vgs, Vds, and T.
When the simulation is run, even if the value in Temperature Source is changed, the same simulation always results; it seems to be independent of the temperature.
Any suggestions?
Thank you very much Hello, I am trying to simulate the behavior of a MOSFET at different temperatures (25ºC and 17ºC), but I am having some issues. I have chosen the n-Channel MOSFET model from the Simulink library and below I attach the circuit and the parameters I have used based on the curves provided by the manufacturer.
The parameterization used is a 3-D Lookup table, temperature dependent, and in the following image, you can see the matrix used for IDs (datos_Ids) which depends on Vgs, Vds, and T.
When the simulation is run, even if the value in Temperature Source is changed, the same simulation always results; it seems to be independent of the temperature.
Any suggestions?
Thank you very much 3-d lookup table, temperature dependent parameteri, n-channel mosfet MATLAB Answers — New Questions