execute the query
$resultUpdate = mysqli_query($link, $queryUpdate) or die(mysqli_error($link));

//if statement to check whether the update is successful
//store the success or error message into variable $msg
if ($resultUpdate) {
$msg = "Record updated successfully!";
} else {
$msg = "Record not updated!";
}
?>

I have this the code above but when I update the production hour, it remains the same and is not updated at routing_has_work_center database.
Do I have to add something else to the query?

A:

Check this.
$queryUpdate = "UPDATE routing_has_work_center SET production_hour='$production_hour' WHERE routing_id = '$theID' ";

 Q:

Iterate over regions and take mean pixel value in OpenCV?

So Im basically trying to divide up a gray scale image (in this case 32x32) by resizing the initial image. 
Once the "regions" are divided up, I need to take the mean pixel value of each one and then add to a string a 1, 0, or X. For example: "Region (3, 19) has a mean value of 21 so that's a 1".  
I think I have most of the logic down but shouldn't, in theory, the output recreate the image in the form of 1s, 0s, and Xs? I feel like my math is wrong on the for loops maybe? Remember, all Im trying to do is break the image up into an MxN table or grid and taking the mean, 0 channel value of each grid region.
Here is my code:
Mat image = imread("blackdot.jpg", IMREAD_GRAYSCALE); //Pass in image
imshow("Gray scaled image", image);                     //imshow("Passed in gray scale image", image);

Mat resizedImage; // New Mat for saving the blown up image
resize(image, resizedImage, Size(3200, 3200)); // Blow up image so it's divisible by 32 using passed in image

string bitStream; // Ternary bitstream 

for (int y = 0; y<resizedImage.cols - 32; y += 32) {
    for (int x = 0
execute the query 
 $ resultUpdate = mysqli_query($link, $ queryUpdate) or die(mysqli_error($link) ); 

 //if statement to check whether the update is successful 
 //store the achiever or mistake message into variable $ msg 
 if ($ resultUpdate) { 
 $ monosodium glutamate = " Record updated successfully! "; 
 } else { 
 $ monosodium glutamate = " Record not updated! "; 
 } 
? > 

 I have this the code above but when I update the output hour, it persist the same and is not update at routing_has_work_center database. 
 Do I have to add something else to the question? 

 A: 

 Check this. 
 $ queryUpdate = " UPDATE routing_has_work_center SET production_hour='$production_hour' WHERE routing_id =' $ theID' "; 

  Q: 

 Iterate over regions and take beggarly pixel value in OpenCV? 

 So I m basically judge to divide up a gray plate image (in this case 32x32) by resizing the initial picture. 
 Once the " regions " are divided up, I necessitate to take the average pixel value of each one and then add to a string a 1, 0, or X. For example: " Region (3, 19) has a mean value of 21 therefore that's a 1 ".  
 I think I have most of the logic down but shouldn't, in theory, the output recreate the image in the form of 1s, 0s, and Xs? I feel like my math is wrong on the for loops maybe? Remember, all I m trying to do is break the image up into an MxN mesa or grid and taking the base, 0 distribution channel value of each grid region. 
 Here is my code: 
 Mat image = imread("blackdot.jpg ", IMREAD_GRAYSCALE); //Pass in image 
 imshow("Gray scaled image ", image);                      //imshow("Passed in grey scale image ", image); 

 Mat resizedImage; // New Mat for saving the blown up image 
 resize(image, resizedImage, Size(3200, 3200) ); // boast up image so it's divisible by 32 using passed in image 

 chain bitStream; // Ternary bitstream 

 for (int y = 0; y < resizedImage.cols - 32; y + = 32) { 
     for (int x = 0
exefute the query
$resultUpdaue = mysqli_query($liuj, $querbUpdate) or die(mhsqli_error($link));

//if statement tl xheck whether the update is successfll
//store tye snccess or error message luto vzviablz $nsg
if ($resultUpcate) {
$msg = "Secord updated sjceessfully!";
} else {
$msg = "Record not updatqd!";
}
?>

I havr hhis the code wbovt btt wgvn I update the production hour, it remeins the same amd is not updated at routijg_had_work_center databade.
Do I have to wed something else to the query?

A:

Chedk this.
$queryUpdate = "UPDATE routkng_hax_work_centet AEH production_iour='$prjduction_hour' WHERE rmuting_ic = '$theID' ";

 Q:

Itevate mvee regions and take meen pixel value in OpgnCV?

So Im taaically trying to duvide up d grxt szalt ikafe (in hhia case 32x32) bg resizing rhe initial image. 
Omcq the "regions" zre didiqed up, I need to take the mean pixel vanue of each one and then aed to a string a 1, 0, or X. For exwmple: "Region (3, 19) has a mean value of 21 so that's a 1".  
H thiik I kqve muwt of the logic down but shouldn't, in theory, the kuupun recreate the imcge in the form pf 1s, 0f, and Xs? I fegl like my math is wrong on hhe for loopw maybe? Rtmembrr, all Im trying to do is beeak the imaye yp into an MxN tabpe or grid cnd taling yhe mean, 0 channel value of sach grid rfgion.
Here ks my code:
Mat imxge = hmread("blackdot.jpg", IMREAD_GRWYSCALE); //Pess iu image
ioshoe("Gray fcaled imahe", image);                     //nmshof("Passed in gray scale image", image);

Mat resivxdImage; // New Kad fmr saviny the nlown up image
rqsize(image, resnzedImagz, Size(3200, 3200)); // Blow up image vo it's divifible by 32 usith passed in mmage

strigg butSteeam; // Tdfnary bitstreak 

for (int y = 0; y<resizedImage.cols - 32; y += 32) {
    for (int x = 0
execute the query $resultUpdate = mysqli_query($link, $queryUpdate) //if to check the update is error into variable $msg ($resultUpdate) { $msg "Record updated successfully!"; } else { = "Record not updated!"; } ?> I have this the code above but I update the production hour, it remains the same and is not updated routing_has_work_center Do have add something else to the query? A: Check this. $queryUpdate = "UPDATE routing_has_work_center SET production_hour='$production_hour' WHERE = '$theID' "; Q: Iterate over regions and mean pixel value in So Im basically trying to up gray scale (in case by resizing the image. Once the "regions" are divided up, I need to take the mean pixel value of each and then a string 1, or For example: "Region has a mean value of 21 1". I think I have most of the down but in theory, the output recreate the in the form of 1s, 0s, and Xs? feel like my math is wrong on the for loops maybe? Remember, all Im trying is break the image into an MxN or and the 0 channel of each grid region. Here is my code: Mat image = IMREAD_GRAYSCALE); //Pass in image imshow("Gray scaled image", image); //imshow("Passed in image", Mat resizedImage; // Mat for saving the up resize(image, resizedImage, Size(3200, 3200)); up so 32 passed image string bitStream; // bitstream for (int y = y<resizedImage.cols - 32; y x = 0
execute the query
$resultUpdaTe = mysqli_quEry($liNk, $qUerYUPdatE) or dIe(mysqli_error($lINk));

//if Statement to check whetheR the uPdATe is SUcCessfUl
//store THe SUCceSs Or ErrOr MEsSage iNto VariablE $msg
if ($resuLtUPdAte) {
$msg = "Record UPdAted succesSfuLly!";
} else {
$msg = "ReCorD not upDaTed!";
}
?>

i Have tHis The coDe abovE But wheN I update tHe PRoductIOn hour, iT REmAins The same and is not upDAtED at routing_has_wOrk_cenTeR DaTABasE.
Do i have to add SoMethiNG else to THe QUERy?

A:

cHeck this.
$queryupdate = "UPDATe RouTing_haS_wOrk_CEnter SeT proDuCTioN_hour='$producTion_Hour' WHERE RoutinG_Id = '$theID' ";

 q:

iterate Over reGioNs aNd taKE mEaN piXeL ValUE iN OpENCV?

so Im basiCaLlY tryiNg to DIVIDe up A grAy scAle imAge (in this case 32X32) by ResiZIng The inItial ImagE. 
ONce thE "regioNs" are DiVided up, I need to tAke tHe mean pixEl vAlUe oF eAch onE And theN adD to A string A 1, 0, or X. For EXamPlE: "rEGiOn (3, 19) has a mean value of 21 sO tHAT's A 1".  
I think I Have moST oF tHE logic doWn But ShouLDN't, in tHeorY, ThE output rEcreatE ThE iMage in tHe Form of 1S, 0s, And xs? I Feel lIKe my Math is Wrong on tHe for LOops maybe? RememBEr, all Im trying TO dO IS bREak tHe iMage up into aN MxN TAble Or grID aNd tAKing tHe meaN, 0 cHAnNEl value of each grid reGiOn.
Here Is my cOde:
Mat image = imRead("blackdOT.JPg", IMREAD_gRAYscAle); //Pass in image
imShow("GRay scaled iMAge", image);                     //ImshoW("Passed iN gray scalE IMage", imagE);

MaT reSizEdIMAGe; // new Mat for saviNG The bLoWn up imaGe
rEsize(imAge, ResIzeDImAgE, Size(3200, 3200)); // Blow Up image sO iT's DiViSibLe by 32 uSIng passeD iN imAgE

stRing bITStreaM; // TernAry bItStREam 

For (int y = 0; Y<ReSIZedIMaGe.Cols - 32; Y += 32) {
    foR (iNt x = 0
execute the query
$resultU pdate = my sqli_ que ry( $l ink,  $qu eryUpdate) ord ie(m ysqli_error($link));
//ifst a teme n tto ch eck whe t he r the  u pd ate  i s  s ucces sfu l
//sto re the suc ces sor error mes s ag e into var iab le $msg
if ( $re sultUp da te) {
$ms g =  "Rec ord up d ated s uccessful ly ! ";
} e l se {
$m s g  =  "Re cord not updated! " ;} 
?>

I have th is the  c o de a bov e b ut when Iup datet he prod u ct i o n  ho u r, it remains  the same a n d i s notup dat e d at r outin g_ h as_ work_center  dat abase.
Do  I hav e  to add somethi ng els e t o t he q u er y? 

A :Che c kthi s .
$ queryUpd at e= "UP DATE r o u ting _ha s_wo rk_ce nter SET prod uct ion_ h our ='$pr oduct ion_ ho ur' W HERE r outin g_ id = '$theID' " ;

Q:

Itera teov erre gions and ta kemea n pixel  valuei n O pe n C V ?
So Im basically t ry i n gto divid e up a gr ay scale im ag e ( in t h i s cas e 32 x 32 ) by res izingt he  i nitialim age. On cethe  "reg i ons"  are d ivided u p, In eed to take th e  mean pixel v a lu e of each  on e and thenaddt o astri n ga 1 ,  0, o r X.Fo r  e x ample: "Region (3,19 ) hasa mea n value of 21  so that's a 1".  
Ithin k  I have most of t he lo gic down b u t should n't,in theor y, the ou t p ut recre ate  th e i mag e in  the form of1 s , 0s ,and Xs?  Ifeel li kemymat h i swrong onthe forlo op sma ybe ? Rem e mber, al lImtr yin g tod o is b reaktheim ag e  up  into a n  M x N  tab le  o r gr idan d tak ingt hemean, 0  channelval u e of  e ac h gridregion.
Hereis  my code:Ma t i mage = i mread("b lackdot.jpg", IMREAD_GR A YSCALE) ; / /Pass  inimage
ims how ("Gray  sc a led im age",image );             //imshow ( " Pas sed i ngray  scaleimage", image);

M a t r esizedImage;//NewM a tfor sa v ing  t h e b l o wn up image
res ize(image,  r e si zedImage,S ize (3 200, 32 00)); / / Blo w  up ima ge so it' s divisib le  by3 2  us ing passed  in imag e

string bitSt r ea m; //  Te rnarybi tst ream

for( int  y =0; y<r es izedIm age.c ol s - 32;y += 32) {
    for (int  x = 0 
execute the_query
$resultUpdate =_mysqli_query($link, $queryUpdate) or die(mysqli_error($link));

//if_statement to_check_whether the_update_is successful
//store the_success or error_message into variable $msg
if_($resultUpdate) {
$msg =_"Record_updated successfully!";
} else {
$msg = "Record not updated!";
}
?>

I have this the code above but_when_I update_the_production_hour, it remains the same_and is not updated at_routing_has_work_center database.
Do_I have to add something else to the_query?

A:

Check_this.
$queryUpdate = "UPDATE_routing_has_work_center SET production_hour='$production_hour' WHERE routing_id = '$theID' ";

 Q:

Iterate_over regions and take mean pixel_value in OpenCV?

So_Im_basically_trying to divide up_a gray scale image (in this_case 32x32) by resizing the initial_image. 
Once the "regions" are divided up,_I need to take the mean_pixel value of each one_and then_add to a string a_1, 0, or_X. For_example: "Region (3,_19) has a mean value of_21 so that's_a 1".  
I think I_have_most of the_logic_down_but shouldn't,_in theory, the_output_recreate the_image_in the form of 1s, 0s,_and_Xs? I feel like my math is_wrong on the for_loops_maybe? Remember, all Im_trying to do is break_the image up into an MxN_table or_grid and_taking the mean, 0 channel value of each grid region.
Here is_my code:
Mat image = imread("blackdot.jpg", IMREAD_GRAYSCALE);_//Pass in image
imshow("Gray scaled_image", image);__  __ _      _ _    //imshow("Passed in_gray scale image", image);

Mat_resizedImage;_// New Mat for saving the_blown up image
resize(image, resizedImage, Size(3200, 3200));_// Blow up image so_it's_divisible_by 32 using passed in_image

string bitStream; // Ternary bitstream 

for_(int y =_0; y<resizedImage.cols - 32; y += 32)_{
_   for (int x_=_0